/* maxstudio launcher — web (desktop + phone) and TV. Paper chrome throughout.
   Values lifted from design/shell WebMenu, WebMobile and Menu. */

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { text-decoration: none; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 4px; border-radius: 8px; }
.fine { font-size: 12.5px; color: var(--faint); }
.accent { color: var(--accent); font-weight: 500; }
.tag { display: inline-block; width: fit-content; font: 600 10.5px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--raised); color: var(--accent); }
.badge { display: inline-flex; align-items: center; gap: 7px; width: fit-content; padding: 5px 11px 5px 8px; border-radius: 999px; background: var(--raised); color: var(--accent); font: 600 12.5px/1 var(--font-body); }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 500 15px/1.2 var(--font-body); padding: 14px 21px; border-radius: var(--r-control); }
.primary { background: var(--primary); border: 1px solid var(--primary); color: var(--on-primary); box-shadow: var(--press); }
.primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.primary:active { transform: translateY(3px); box-shadow: none; }
.secondary { background: var(--surface); border: 1px solid var(--border); color: var(--accent); }
.big { font-size: 16px; padding: 17px 28px; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #89a171; }
@media (min-width: 900px) { .narrow-only { display: none !important; } }

/* ---- web --------------------------------------------------------------- */
.web { max-width: 1440px; margin: 0 auto; }
.site-header { display: flex; align-items: center; gap: 14px; padding: 26px 72px; }
.brand { display: flex; align-items: center; gap: 14px; font: 800 21px var(--font-display); color: var(--heading); }
.site-header nav { margin-left: auto; display: flex; gap: 28px; font-size: 14px; }
.site-header nav a { color: var(--muted); }
.site-header nav a:hover { color: var(--primary); }

.hero { display: flex; gap: 52px; align-items: center; padding: 34px 72px 0; }
.hero-copy { width: 470px; flex: none; display: flex; flex-direction: column; gap: 18px; }
.hero-copy > .eyebrow { display: flex; align-items: center; gap: 8px; }
.hero h1 { font-size: clamp(44px, 4.2vw, 60px); line-height: 1.04; }
.lede { margin: 0; font-size: 18px; line-height: 1.75; color: var(--muted); }
.hero-actions { display: flex; gap: 14px; align-items: center; margin-top: 8px; }
.text-link { font-size: 14px; color: var(--accent); }
.phone-note { display: flex; align-items: center; gap: 10px; width: fit-content; margin-top: 6px; padding: 11px 14px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 12px; font-size: 14px; color: var(--text); }
.hero-art { flex-grow: 1; min-width: 0; border-radius: 24px; overflow: hidden; border: 1px solid var(--border-soft); box-shadow: 0 18px 50px rgba(90,114,56,.10); }
.hero-art img { width: 100%; height: 490px; object-fit: cover; }

.band { padding: 84px 72px 0; }
.band h2 { font-size: 34px; margin-top: 8px; }
.band-head { display: flex; align-items: baseline; justify-content: space-between; }
.band-head h2 { font-size: 30px; margin: 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-card); box-shadow: var(--card); }
.pic-card, .game { padding: 0; overflow: hidden; }
.pic-card > img, .frame-pic { width: 100%; height: 240px; object-fit: cover; }
.pic-card > div:last-child { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.pic-card h3 { font-size: 20px; }
.pic-card p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--muted); }
.steps .pic-card > div.step { flex-direction: row; gap: 14px; }
.step h3 { font-size: 18px; }
.step p { margin-top: 5px; }
.num { flex: none; width: 32px; height: 32px; border-radius: 999px; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font: 800 15px/1 var(--font-display); }
.frame-pic { position: relative; background: #f6e5cc; }
.frame-pic img { width: 100%; height: 100%; object-fit: contain; }
/* The illustrated player spans y 32–90% of pov-body.jpg. */
.frame-outline { position: absolute; left: 50%; width: 76px; margin-left: -38px; top: 64px; height: 160px; border: 2.5px dashed var(--primary); border-radius: 16px; }
.move-card > div:last-child { gap: 11px; }
.moves { display: flex; flex-direction: column; gap: 8px; }
.move { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.move b { font: 800 14px var(--font-display); color: var(--heading); }
.move-icon { flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--raised); color: var(--primary); display: grid; place-items: center; }

.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.game { overflow: hidden; color: inherit; transition: transform .15s, box-shadow .15s; }
.game:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(90,114,56,.12); }
.game.today { border-color: var(--primary); }
.game img { width: 100%; height: 172px; object-fit: cover; }
.game > div { padding: 16px 18px 18px; }
.game .tags { display: flex; gap: 6px; }
.game .tag { background: var(--raised); }
.game h3 { font-size: 19px; margin-top: 10px; }
.game p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.soon { border: 2px dashed var(--border); border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--faint); text-align: center; padding: 20px; min-height: 200px; font-size: 13px; }
.soon b { font: 800 16px var(--font-display); color: var(--muted); }
.site-footer { display: flex; justify-content: space-between; margin-top: 84px; padding: 26px 72px; border-top: 1px solid var(--border); font-size: 13px; color: var(--faint); }
.site-footer a { color: var(--faint); }

@media (max-width: 1100px) {
  .site-header, .hero, .band, .site-footer { padding-left: 36px; padding-right: 36px; }
  .hero-copy { width: 400px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone: join a screen is the one primary; no QR — this IS the phone. */
@media (max-width: 899px) {
  .wide-only { display: none !important; }
  .site-header { padding: 18px 20px; }
  .brand { font-size: 17px; gap: 11px; } .brand svg { width: 28px; height: 28px; }
  .site-header nav { display: none; }
  .hero { flex-direction: column-reverse; align-items: stretch; gap: 0; padding: 4px 16px 0; }
  .hero-art { border-radius: 20px; box-shadow: none; }
  .hero-art img { height: 200px; object-position: 40% 50%; }
  .hero-copy { width: auto; padding: 24px 4px 0; gap: 11px; }
  .hero h1 { font-size: 34px; line-height: 1.08; }
  .lede { font-size: 15px; line-height: 1.7; }
  .hero-actions.stack { flex-direction: column; align-items: stretch; gap: 11px; margin-top: 6px; }
  .hero-actions .primary { min-height: 52px; }
  .hero-actions .secondary { min-height: 48px; }
  .hero-actions .fine { text-align: center; }
  .band { padding: 26px 16px 0; }
  .band h2 { font-size: 22px; }
  .ages { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
  .ages .pic-card { border: 0; background: none; box-shadow: none; }
  .ages .pic-card > img { height: 92px; border-radius: 12px; border: 1px solid var(--border-soft); }
  .ages .pic-card > div { padding: 6px 0 0; align-items: center; }
  .ages h3, .ages p { display: none; }
  .ages .tag { background: none; padding: 0; font-size: 12.5px; letter-spacing: 0; text-transform: none; }
  .steps { grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
  .steps .pic-card { display: flex; }
  .steps .pic-card > img, .steps .frame-pic { width: 96px; height: auto; min-height: 96px; flex: none; }
  .steps .frame-outline { display: none; }
  .steps .frame-pic img { position: absolute; inset: 0; }
  .steps .pic-card > div.step { padding: 12px 14px; }
  .steps .num { display: none; }
  .step h3 { font-size: 15px; } .step p { font-size: 13px; }
  .band-head h2 { font-size: 13px; }
  .game-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 12px; }
  .game { display: flex; }
  .game img { width: 132px; height: 96px; flex: none; }
  .game > div { padding: 13px 14px; display: flex; flex-direction: column; justify-content: center; }
  .game h3 { font-size: 16px; margin-top: 6px; order: -1; }
  .game p, .game .tag, .soon { display: none; }
  .site-footer { justify-content: center; margin-top: 26px; padding: 22px 20px; }
}

/* ---- TV: billboard + one row, 64px overscan, focus you can see from the sofa ---- */
body.is-tv { overflow: hidden; }
.tv { position: fixed; inset: 0; display: flex; flex-direction: column; }
.billboard { position: relative; flex: 0 0 59%; overflow: hidden; border-bottom: 1px solid var(--border); }
.billboard-art { position: absolute; right: 0; top: 0; width: 70%; height: 118%; object-fit: cover; }
.billboard::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 34%, rgba(var(--bg-rgb),.86) 46%, rgba(var(--bg-rgb),0) 72%); }
.billboard::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: 1; background: linear-gradient(rgba(var(--bg-rgb),0), rgba(var(--bg-rgb),.7)); }
.tv-header { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 14px; padding: 38px 64px 0; }
.pairing { margin-left: auto; display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 8px 16px 8px 8px; }
.pairing.joined { padding: 12px 18px; }
.pairing.joined::before { content: ''; width: 10px; height: 10px; border-radius: 999px; background: var(--primary); }
.pair-qr { width: 58px; height: 58px; background: #fff; border-radius: 8px; padding: 4px; line-height: 0; border: 1px solid var(--border-soft); }
.pair-qr canvas { width: 100%; height: 100%; }
.pair-copy { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--muted); }
.pair-copy > b { font-size: 14px; color: var(--heading); }
.pair-copy .code { color: var(--accent); letter-spacing: .12em; }
.billboard-copy { position: absolute; z-index: 2; left: 64px; bottom: 30px; width: 560px; }
.kicker { font-size: 14px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.kicker.muted { color: var(--muted-2); margin-bottom: 16px; }
.billboard-title { font: 900 clamp(48px, 5vw, 70px)/1.02 var(--font-display); letter-spacing: -.03em; color: var(--heading); margin-top: 12px; }
.billboard-copy p { margin: 14px 0 0; font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 40ch; }
.tv-play { margin-top: 26px; font-size: 18px; font-weight: 600; padding: 17px 30px; }
.tv-play:focus-visible { outline: 5px solid var(--focus); outline-offset: 5px; }
.billboard-move { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 15px; color: var(--muted); }
.billboard-move .badge { font-size: 15px; padding: 9px 15px 9px 11px; }
.tv-row { flex-grow: 1; padding: 22px 64px 0; min-height: 0; }
.tiles { display: flex; gap: 22px; align-items: flex-start; }
.tile { flex: none; width: 318px; color: var(--muted); transition: transform .18s; transform-origin: center top; border-radius: 12px; }
.tile img { width: 318px; height: 179px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }
.tile b { display: block; font: 800 19px var(--font-display); margin: 12px 0 8px; }
.tile:focus-visible { outline: none; transform: scale(1.06); color: var(--heading); }
.tile:focus-visible img { outline: 5px solid var(--focus); outline-offset: 5px; border-color: transparent; }
.tile.soon { height: 179px; border: 2px dashed var(--border); display: grid; place-items: center; color: var(--faint); font-size: 15px; }
@media (max-height: 760px) { .tile, .tile img { width: 260px; } .tile img { height: 146px; } .tile.soon { height: 146px; } .billboard-copy p { display: none; } }
