/* App 样式（三）：电视台、名片、游戏厅、接椰子、专注岛、生日蛋糕 */

/* ---------- 电视台 ---------- */
.tv { display: grid; gap: 12px; justify-items: center; }
.tv__set { display: flex; gap: 12px; padding: 14px; background: #8a5a3a; box-shadow: 0 0 0 3px var(--ink), inset 0 0 0 4px #6b4429; position: relative; }
.tv__set::before, .tv__set::after { content: ''; position: absolute; top: -26px; width: 3px; height: 30px; background: var(--ink); }
.tv__set::before { left: 40%; transform: rotate(-25deg); }
.tv__set::after { left: 55%; transform: rotate(25deg); }
.tv__screen { padding: 6px; background: #111; border-radius: 10px; box-shadow: inset 0 0 0 3px #000; }
/* 视频本体不能 display:none（Chrome 会停止刷新帧），只缩成看不见的 2px */
.tv__screen { position: relative; }
.tv__src { position: absolute; left: 0; top: 0; width: 2px; height: 2px; opacity: .01; pointer-events: none; }
.tv__cv { display: block; width: 320px; height: 200px; image-rendering: pixelated; border-radius: 8px; }
.tv__knobs { display: grid; align-content: start; gap: 12px; padding-top: 10px; }
.tv__knobs i { width: 22px; height: 22px; border-radius: 50%; background: var(--sand); box-shadow: 0 0 0 3px var(--ink); }
.tv__label { color: var(--sun); }
.tv__ctrl { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 3px; }

/* ---------- 名片 ---------- */
.card3d { position: relative; height: 200px; perspective: 900px; cursor: pointer; }
.card3d__face {
  position: absolute; inset: 0; margin: 0; padding: 14px 16px; backface-visibility: hidden;
  background: #fffdf6; color: var(--ink); box-shadow: 4px 5px 0 #0008, inset 0 0 0 3px var(--stitch);
  transition: transform .6s var(--ease);
}
.card3d__front { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.card3d__st { height: 160px; }
.card3d__name { font-size: 24px; line-height: 1.3; color: var(--stitch); }
.card3d__title { color: #6b4429; }
.card3d__tag { margin-top: 10px; color: #7d86c4; letter-spacing: .2em; }
.card3d__back { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-content: center; transform: rotateY(180deg); }
.card3d__back dt { color: #7d86c4; }
.card3d__back dd { overflow-wrap: anywhere; }
.card3d.is-flipped .card3d__front { transform: rotateY(-180deg); }
.card3d.is-flipped .card3d__back { transform: rotateY(0); }
.card3d__acts { margin-top: 16px; padding: 3px; }

/* ---------- 游戏厅 ---------- */
.arcade { display: grid; gap: 14px; margin-top: 12px; }
.arcade__game { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 10px 12px; background: var(--panel-2); box-shadow: inset 0 0 0 2px var(--line); }
.arcade__st { height: 96px; }
.arcade__title { font-size: 24px; line-height: 1.3; color: var(--sun); }
.arcade__best { color: var(--stitch-hi); margin-bottom: 6px; }

/* ---------- 接椰子 ---------- */
.catch__cv { display: block; width: 100%; height: auto; aspect-ratio: 360 / 300; background: #4f8fe6; box-shadow: 0 0 0 3px var(--ink); cursor: pointer; touch-action: none; }
.catch__cv:focus { outline: none; }

/* ---------- 专注岛 ---------- */
.focus { display: grid; justify-items: center; gap: 14px; }
.focus__clock { font-size: 48px; line-height: 1.1; color: var(--sand); text-shadow: 3px 3px 0 var(--stitch), 6px 6px 0 var(--ink); }
.focus__isle { width: 360px; max-width: 100%; height: auto; aspect-ratio: 120 / 56; image-rendering: pixelated; box-shadow: 0 0 0 3px var(--ink); }
.focus__count { color: var(--dim); text-align: center; line-height: 20px; }

/* ---------- 生日蛋糕 ---------- */
.cake { display: grid; justify-items: center; gap: 12px; padding: 3px; }
.cake__cv { width: 240px; height: 192px; image-rendering: pixelated; }

@media (max-width: 720px) {
  .tv__cv { width: min(280px, 70vw); height: auto; aspect-ratio: 240 / 150; }
  .card3d { height: 230px; }
  .card3d__st { height: 110px; }
}
