/* PlayNest – the game page (builder B), in the approved home design's language: the player stage (ink frame with the
   category tint, the cover with the tilted artwork and the yellow Play button), the bar under the player, the score
   card, the texts, the share / report dialogs, theatre mode and fullscreen. Colours only through tokens; solid surfaces
   only (no glass, no blur). */

.gp{--side:340px;--bar-h:76px}
.gp-crumbs ol{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-wrap:wrap;align-items:center;gap:2px;font-size:13.5px;color:var(--muted);min-width:0}
.gp-crumbs li{display:inline-flex;align-items:center;gap:2px;min-width:0}
.gp-crumbs a{display:inline-flex;align-items:center;min-height:32px;padding:0 6px;border-radius:8px;font-weight:600;color:var(--muted)}
.gp-crumbs a:hover{background:var(--surface-2);color:var(--text)}
.gp-crumbs .ico{width:17px;height:17px}
.gp-crumbs .ico.sep{width:15px;height:15px;opacity:.6}
.gp-crumbs [aria-current]{padding:0 6px;color:var(--text);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:60vw}

/* ads around the player: with setting ads_game_delay they keep their place (no jump while playing) but stay
   invisible until Play + the delay (game.js adds .ad-on) */
.gp-ad{margin:0 0 var(--gap)}
.gp-ad-top{min-height:90px;max-width:970px;margin-left:auto;margin-right:auto}
.gp-ad-below{grid-area:below;min-height:90px;margin:0}
.gp-ad-side{min-height:250px;margin:0}
.gp [data-ad-delay]:not(.ad-on)>*{visibility:hidden}

/* layout: stage + below ad + about on the left, the side column on the right */
.gp-grid{display:grid;grid-template-columns:minmax(0,1fr) var(--side);grid-template-areas:"stage side" "below side" "about side";grid-template-rows:auto auto 1fr;gap:var(--gap) 20px;align-items:start}
.gp-grid>.gp-ad-below:empty{display:none}
.gp-stage{grid-area:stage;min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);overflow:hidden}
.gp-side{grid-area:side;min-width:0;display:grid;gap:var(--gap)}
.gp-about{grid-area:about;min-width:0}

/* the player */
.gp-player{position:relative;width:100%;aspect-ratio:var(--ar,16 / 9);max-height:max(440px,calc(100vh - 320px));min-height:360px;background:var(--hero-ink);color:var(--on-ink);overflow:hidden;isolation:isolate}
.gp-cover{position:absolute;inset:0;display:grid;place-items:center;padding:28px;z-index:2;
  background:
    repeating-linear-gradient(135deg,color-mix(in srgb,var(--on-ink) 4%,transparent) 0 2px,transparent 2px 22px),
    linear-gradient(115deg,var(--hero-ink) 30%,var(--tint,var(--violet)) 160%)}
.gp-cover-in{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:40px;width:min(100%,860px)}
.gp-art{position:relative;border-radius:20px;overflow:hidden;aspect-ratio:4/3;box-shadow:0 0 0 6px var(--on-ink),14px 16px 0 6px var(--yellow);transform:rotate(-1.6deg);animation:gpArt .7s cubic-bezier(.2,.8,.2,1) both}
.gp-art img{width:100%;height:100%;object-fit:cover}
@keyframes gpArt{from{opacity:0;transform:rotate(2deg) scale(.94)}to{opacity:1;transform:rotate(-1.6deg) scale(1)}}
.gp-cover-txt{display:grid;justify-items:start;gap:14px;min-width:0}
.gp-kicker{display:inline-flex;align-items:center;gap:8px;background:var(--yellow);color:var(--on-yellow);font-weight:800;font-size:12px;letter-spacing:.06em;text-transform:uppercase;padding:6px 12px;border-radius:999px}
.gp-kicker .ico{width:15px;height:15px}
.gp-cover-title{font:800 clamp(26px,2.6vw,42px)/1.05 var(--font-display);letter-spacing:-.02em;color:var(--on-ink);overflow-wrap:anywhere}
.gp-play{min-height:60px;padding:0 34px;font-size:18px;animation:gpPulse 2.4s ease-in-out infinite}
.gp-play .ico{width:22px;height:22px}
@keyframes gpPulse{0%,100%{box-shadow:0 4px 0 var(--yellow-deep),0 0 0 0 color-mix(in srgb,var(--yellow) 55%,transparent)}60%{box-shadow:0 4px 0 var(--yellow-deep),0 0 0 14px color-mix(in srgb,var(--yellow) 0%,transparent)}}
.gp-play:hover{transform:translateY(-1px) scale(1.03)}
.gp-cover-meta{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:13.5px;color:var(--band-text)}
.gp-cover-meta>span{display:inline-flex;align-items:center;gap:6px}
.gp-cover-meta .ico{width:16px;height:16px}
.gp-cover-meta .live{color:var(--on-ink)}
.gp-off-in{grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center;gap:12px;max-width:520px}
.gp-off-note{color:var(--band-text);font-size:14.5px}
.gp-rot-ic{width:60px;height:60px;border-radius:18px;display:grid;place-items:center;background:var(--violet);color:var(--on-violet)}
.gp-rot-ic .ico{width:30px;height:30px}

.gp-frame{position:absolute;inset:0;z-index:1}
.gp-frame iframe{display:block;width:100%;height:100%;border:0;background:var(--hero-ink)}
.gp-load{position:absolute;inset:0;z-index:3;display:grid;place-content:center;justify-items:center;gap:14px;background:var(--hero-ink);color:var(--band-text);font-weight:600;font-size:14px;text-align:center;padding:20px}
.gp-spin{width:46px;height:46px;border-radius:50%;border:4px solid var(--band-line);border-top-color:var(--yellow);animation:gpSpin .8s linear infinite}
@keyframes gpSpin{to{transform:rotate(360deg)}}
.gp.playing .gp-cover{display:none}

.gp-rotate{position:absolute;inset:0;z-index:4;display:grid;place-content:center;justify-items:center;gap:8px;padding:20px;text-align:center;background:var(--hero-ink);color:var(--band-text);font-size:14px}
.gp-rotate b{color:var(--on-ink);font:800 20px var(--font-display)}
.gp-rotate .gp-rot-ic{margin-bottom:6px;animation:gpTurn 2s ease-in-out infinite}
@keyframes gpTurn{0%,30%{transform:rotate(0)}55%,85%{transform:rotate(-90deg)}100%{transform:rotate(0)}}
.gp-rot-btns{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:10px}
.gp-rot-skip{background:var(--band);color:var(--on-ink)}
.gp-rot-skip:hover{background:var(--band-line)}

.gp-exit{display:none;position:absolute;top:10px;right:10px;z-index:6;align-items:center;gap:6px;min-height:40px;padding:0 14px;border-radius:999px;background:var(--ink);color:var(--on-ink);font-weight:700;font-size:13px;box-shadow:var(--shadow)}
.gp-exit .ico{width:18px;height:18px}
.gp-player:fullscreen{max-height:none;width:100%;height:100%;aspect-ratio:auto;border-radius:0}
.gp-player:fullscreen .gp-exit,.gp-player.fake-fs .gp-exit{display:inline-flex}
.gp-player.fake-fs{position:fixed;inset:0;z-index:300;width:100vw;height:100vh;height:100dvh;max-height:none;min-height:0;aspect-ratio:auto}
html.gp-lock,html.gp-lock body{overflow:hidden}

/* the bar under the player */
.gp-bar{display:flex;align-items:center;gap:12px 16px;padding:12px 16px;min-height:var(--bar-h);flex-wrap:wrap}
.gp-id{display:flex;align-items:center;gap:12px;min-width:0;flex:1 1 260px}
.gp-id img{width:56px;height:42px;border-radius:10px;object-fit:cover;flex:none}
.gp-id-t{min-width:0}
.gp-id h1{font-size:clamp(19px,1.6vw,24px);font-weight:800;line-height:1.15;overflow-wrap:anywhere}
.gp-sub{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin-top:3px;font-size:13.5px;color:var(--muted)}
.gp-sub a{font-weight:700;color:var(--violet-text)}
.gp-sub a:hover{text-decoration:underline}
.gp-sub .sep,.gp-bar .sep{width:4px;height:4px;border-radius:50%;background:currentColor;opacity:.5}
.gp-sub .rt{display:inline-flex;align-items:center;gap:4px;font-weight:700;color:var(--text)}
.gp-sub .rt .ico{width:15px;height:15px;color:var(--yellow-deep)}
.gp-acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-left:auto}
.gp-vote{display:flex;border-radius:999px;background:var(--surface-2);padding:3px}
.gp-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:42px;height:42px;padding:0 12px;border-radius:999px;background:var(--surface-2);color:var(--text);font-weight:700;font-size:14px;transition:background-color .15s ease,color .15s ease,transform .15s ease}
.gp-btn .ico{width:19px;height:19px}
.gp-btn:hover{background:var(--line)}
.gp-btn:active{transform:scale(.95)}
.gp-vote .gp-btn{height:36px;background:transparent}
.gp-vote .gp-btn:hover{background:var(--surface)}
.gp-btn[data-vote-btn="1"][aria-pressed="true"]{background:var(--violet);color:var(--on-violet)}
.gp-btn[data-vote-btn="-1"][aria-pressed="true"]{background:var(--ink);color:var(--on-ink)}
[data-theme="dark"] .gp-btn[data-vote-btn="-1"][aria-pressed="true"]{background:var(--line)}
.gp-fav[aria-pressed="true"]{background:var(--coral);color:var(--on-coral)}
.gp-fav[aria-pressed="true"] .ico{fill:currentColor}
.gp-theatre-btn[aria-pressed="true"]{background:var(--violet);color:var(--on-violet)}
.gp-btn.pop{animation:gpPop .35s ease}
@keyframes gpPop{50%{transform:scale(1.18)}}
.gp-credit{padding:0 16px 12px;font-size:12px;color:var(--muted)}

/* cards */
.gp-card{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:var(--shadow)}
.gp-muted{color:var(--muted);font-size:13.5px}
.gp-score{display:grid;gap:18px}
.gp-avg{display:flex;align-items:center;gap:14px}
.gp-avg>b{font:800 46px/1 var(--font-display);letter-spacing:-.02em;color:var(--strong)}
.gp-avg>div{display:grid;gap:4px}
.gp-stars-show{position:relative;display:inline-flex;width:max-content}
.gp-stars-show>span{display:flex;gap:2px}
.gp-stars-show .b{color:var(--line)}
.gp-stars-show .f{position:absolute;inset:0 auto 0 0;width:var(--v,0%);overflow:hidden;color:var(--yellow-deep)}
.gp-stars-show .ico{width:20px;height:20px}
.gp-rate-wrap{display:grid;gap:6px;padding:14px;border-radius:16px;background:var(--surface-2)}
.gp-rate-lbl{font-weight:800;font-family:var(--font-display);font-size:16px;color:var(--strong)}
.gp-rate{display:flex;gap:4px}
.gp-rate button{width:40px;height:40px;border-radius:10px;display:grid;place-items:center;color:var(--line-2);transition:transform .12s ease,color .12s ease}
.gp-rate button .ico{width:28px;height:28px}
.gp-rate button.on,.gp-rate button.hov{color:var(--yellow-deep)}
.gp-rate button:hover{transform:scale(1.12)}
.gp-rate.busy{opacity:.6;pointer-events:none}
.gp-likebar{display:grid;gap:8px}
.gp-lb-t span{display:inline-flex;align-items:center;gap:6px;font-size:14px;color:var(--muted)}
.gp-lb-t b{color:var(--strong);font-size:15px}
.gp-lb-t .ico{width:17px;height:17px;color:var(--violet-text)}
.gp-lb{height:8px;border-radius:999px;background:var(--surface-2);overflow:hidden}
.gp-lb i{display:block;height:100%;border-radius:inherit;background:var(--violet);transition:width .4s ease}
.gp-facts{margin:0;display:grid;gap:0;border-top:1px solid var(--line)}
.gp-facts>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px}
.gp-facts>div:last-child{border-bottom:0;padding-bottom:0}
.gp-facts dt{color:var(--muted)}
.gp-facts dd{margin:0;font-weight:700;color:var(--strong);text-align:right;min-width:0;overflow-wrap:anywhere}
.gp-facts dd a{color:var(--violet-text)}
.gp-facts .live i{width:8px;height:8px}

.gp-about h2{font-size:clamp(21px,1.8vw,26px);font-weight:800;margin-bottom:14px}
.gp-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.gp-chip{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 14px;border-radius:999px;background:var(--surface-2);font-weight:600;font-size:13.5px;color:var(--text);transition:background-color .15s ease,transform .15s ease}
.gp-chip:hover{background:var(--violet-soft);color:var(--violet-text);transform:translateY(-1px)}
.gp-chip .ico{width:15px;height:15px}
.gp-chip-cat{padding-left:4px;font-weight:700}
.gp-chip-cat .ci{width:28px;height:28px;border-radius:999px;display:grid;place-items:center;background:var(--c,var(--violet));color:var(--on-violet)}
.gp-text{color:var(--text);font-size:15.5px;line-height:1.7;max-width:80ch;overflow-wrap:anywhere}
.gp-howto{margin-top:18px;padding:16px 18px;border-radius:16px;background:var(--surface-2);border-left:4px solid var(--yellow)}
.gp-howto h3{display:flex;align-items:center;gap:8px;font-size:17px;margin-bottom:6px}
.gp-howto h3 .ico{width:19px;height:19px;color:var(--violet-text)}

/* dialogs */
.gp-dlg .dlg-b{display:grid;gap:16px}
.gp-copy{display:flex;gap:8px;min-width:0}
.gp-copy .in{min-width:0;flex:1}
.gp-copy .btn{min-height:48px}
.gp-share{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:8px}
.gp-sh{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:76px;padding:10px;border-radius:14px;background:var(--surface-2);color:var(--text);font-weight:600;font-size:13px;transition:background-color .15s ease,transform .15s ease}
.gp-sh:hover{background:var(--violet-soft);color:var(--violet-text);transform:translateY(-2px)}
.gp-sh .ico{width:24px;height:24px}
.gp-sh svg:not(.ico){width:24px;height:24px}
.gp-mb{margin-bottom:10px}
.gp-reasons{border:0;margin:0;padding:0;display:grid;gap:8px}
.gp-reason{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 14px;border-radius:12px;border:1px solid var(--line);background:var(--surface);cursor:pointer;font-weight:600;font-size:14.5px}
.gp-reason:hover{border-color:var(--violet)}
.gp-reason input{width:18px;height:18px;accent-color:var(--violet);flex:none;margin:0}
.gp-reason:has(input:checked){border-color:var(--violet);background:var(--violet-soft);color:var(--violet-text)}
.gp-fld{display:grid;gap:6px;margin-top:14px;font-weight:600;font-size:14px}
.gp-fld textarea{min-height:90px;resize:vertical}
.gp-err{margin-top:10px;color:var(--bad);font-weight:600;font-size:14px}
.gp-dlg-foot{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:16px}

/* theatre mode: the player takes the whole width, the details flow below */
.gp.theatre .gp-grid{grid-template-areas:"stage stage" "below below" "about side";grid-template-rows:auto}
.gp.theatre .gp-stage{background:var(--ink);border-color:var(--ink)}
.gp.theatre .gp-player{max-height:calc(100vh - 180px);min-height:420px;aspect-ratio:auto;height:calc(100vh - 180px)}
.gp.theatre .gp-bar{background:var(--surface)}
.gp.theatre .gp-credit{background:var(--surface);margin:0;padding-top:0}

@media (max-width:1359px){.gp{--side:310px}}
@media (max-width:1099px){
  .gp-grid,.gp.theatre .gp-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"stage" "below" "side" "about";grid-template-rows:auto}
  .gp-theatre-btn{display:none}
  .gp-side{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
  .gp-side>.gp-ad-side{order:2}
}
@media (max-width:979px){
  .gp-cover-in{gap:26px}
  .gp-art{box-shadow:0 0 0 4px var(--on-ink),8px 10px 0 4px var(--yellow)}
}
@media (max-width:767px){
  .gp{--bar-h:0px}
  .gp-crumbs ol{margin-bottom:8px}
  .gp-stage{border-radius:18px;margin:0 calc(var(--pad) * -1);border-left:0;border-right:0;border-radius:0}
  .gp-player{aspect-ratio:auto;min-height:0;height:auto;max-height:none}
  .gp-cover{position:relative;inset:auto;padding:22px 18px 24px}
  .gp-cover-in{grid-template-columns:minmax(0,1fr);gap:18px;justify-items:center;text-align:center}
  .gp-art{width:min(78%,300px);transform:rotate(-1.2deg)}
  .gp-cover-txt{justify-items:center}
  .gp-cover-meta{justify-content:center}
  .gp-play{width:100%;max-width:320px}
  .gp-off{position:relative}
  .gp.playing .gp-player{height:calc(100svh - 76px);min-height:320px}
  .gp.playing[data-landscape="1"] .gp-player{height:auto;aspect-ratio:var(--ar,16 / 9);min-height:240px}
  .gp.playing.rotate-on[data-landscape="1"] .gp-player{min-height:300px}
  .gp-bar{padding:12px var(--pad)}
  .gp-id{flex-basis:100%}
  .gp-acts{margin-left:0;width:100%;gap:6px}
  .gp-acts .gp-lbl{display:none}
  .gp-btn{min-width:40px;height:40px;padding:0 11px}
  .gp-vote .gp-btn{height:34px}
  .gp-credit{padding:0 var(--pad) 12px}
  .gp-side{grid-template-columns:minmax(0,1fr)}
  .gp-card{padding:18px;border-radius:18px}
  .gp-avg>b{font-size:40px}
  .gp-rate button{width:44px;height:44px}
  .gp-ad-top{min-height:60px}
}
@media (max-width:767px) and (orientation:landscape){
  .gp.playing .gp-player,.gp.playing[data-landscape="1"] .gp-player{height:calc(100svh - 64px);aspect-ratio:auto}
}
@media (max-width:420px){
  .gp-copy{flex-direction:column}
  .gp-copy .btn{width:100%}
  .gp-share{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (prefers-reduced-motion:reduce){.gp-play,.gp-art,.gp-rotate .gp-rot-ic{animation:none}}
