/* Season 2: the season's canvas fills the stage exactly as the field canvas it
   stands in for, on flat paper (no ruled grid inside the field). */
#season-host{position:absolute;inset:0;border-radius:inherit;overflow:hidden}
#season-host[hidden]{display:none}
#season-host>canvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
#season-host>canvas:focus{outline:none}
#season-host>canvas:focus-visible{outline:2px solid var(--pencil);outline-offset:-3px}
body.season-playing #cv,body.shot-ready #season-host{display:none}
/* Light-based shots (Glow) always play on the night field, in either theme. */
#stage.season-night,#season-host[data-night]{background-color:#081A36}
/* A start button dims and softens the field behind it, as Count's and Flash's do. */
body[data-phase="play"] #stage>#season-host>canvas{transition:filter .22s ease,opacity .22s ease}
body[data-phase="play"] #stage:has(#stage-ui>.tap-prompt:not(.is-leaving))>#season-host>canvas{filter:blur(7px);opacity:.5}
@media (prefers-reduced-motion:reduce){body[data-phase="play"] #stage>#season-host>canvas{transition:none}}
/* The recap card's still of the reveal. */
.season-recap-stage{aspect-ratio:1;position:relative;overflow:hidden;background-color:var(--play-paper);border:1px solid var(--line);border-radius:10px}
.season-recap-stage.is-night{background-color:#081A36}
.season-recap-stage>canvas,.season-recap-stage>img{position:absolute;inset:0;width:100%;height:100%;display:block}

/* The update gate: the whole app waits behind one screen and one button. */
#update-gate{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;padding:max(24px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));background:var(--ground);color:var(--ink);animation:update-gate-in .32s cubic-bezier(.22,1,.36,1) both}
.update-gate-card{width:min(100%,400px);display:grid;justify-items:center;gap:12px;text-align:center;padding:28px 22px 22px;border:1px solid var(--line);border-radius:16px;background:var(--paper)}
.update-gate-mark{width:84px;height:84px;color:var(--ink);margin-bottom:4px}
.update-gate-mark svg{width:100%;height:100%}
.update-gate-eyebrow{margin:0;font:700 .72rem/1 var(--font-ui);letter-spacing:.16em;text-transform:uppercase;color:var(--pencil)}
#update-gate h2{margin:0;font:900 2.1rem/1.05 var(--display);text-wrap:balance}
#update-gate p#update-gate-copy{margin:0 0 6px;font:400 1rem/1.45 var(--font-ui);color:var(--ink-2);text-wrap:pretty}
#update-gate .btn.primary{width:100%;min-height:52px}
@keyframes update-gate-in{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){#update-gate{animation:none}}

/* Paper tooth (Fable handoff A1): a seeded grain on the field's paper, under
   every mark, so ink and type stay crisp. Grain only: never a line in the
   field. The tile is drawn by app.js (paperTooth) and refreshed with the theme. */
#stage{isolation:isolate}
#stage::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:0;background-image:var(--paper-tooth,none);background-size:var(--paper-tooth-size,160px) var(--paper-tooth-size,160px)}
#stage>#cv,#stage>#rotation-host,#stage>#season-host{z-index:0}
#stage.season-night::before{background-image:var(--paper-tooth-night,none)}
/* Only a live field is paper. The ready card and the Today sheet borrow
   #stage as a host and keep their own surfaces. */
body:not([data-phase="play"]):not([data-phase="reveal"]) #stage::before,body.shot-ready #stage::before{content:none}
.lab-panel .season-set{width:100%;margin:0 0 12px}
