/* Play pages: the stage, four games, the boards. Same greys and type as the rest of the site. */
.play-list { margin-top: clamp(40px, 6vw, 80px); }
.streak { margin: 18px 0 0; }
.play-stage { margin-top: clamp(40px, 6vw, 80px); }
.play-in { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(40px, 6vw, 72px); display: grid; gap: 20px; }
.play-in p { margin: 0; }
.play-hud { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }

.play-btn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-block; border: 1px solid currentColor; padding: 13px 20px; font-size: var(--t-micro); line-height: 1.2; letter-spacing: .09em; text-transform: uppercase; text-align: center; -webkit-tap-highlight-color: transparent; }
.play-btn:hover { background: var(--stage-ink); color: var(--stage); }
.play-btn:focus-visible { outline: 1px solid var(--stage-ink); outline-offset: 4px; }
.play-btn:disabled { opacity: .4; cursor: default; }
.play-btn.big { font-size: clamp(26px, 4vw, 52px); font-weight: 700; letter-spacing: -.03em; padding: 16px 30px 18px; background: var(--stage); }
.play-btn.big:hover { background: var(--stage-ink); }

/* result + board name */
.result { display: grid; gap: 16px; border-top: 1px solid var(--stage-rule); padding-top: 28px; outline: none; }
.result-big { font-weight: 700; font-size: clamp(56px, 10vw, 160px); line-height: .84; letter-spacing: -.05em; text-transform: uppercase; }
.name-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 20px; }
.name-form label { flex-basis: 100%; color: var(--stage-mute); }
.name-form input { all: unset; box-sizing: content-box; width: 3.6ch; font-size: 44px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--stage-ink); padding: 2px 0 4px; }
.name-form input::placeholder { color: var(--stage-rule); }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* boards */
.boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; padding-top: clamp(48px, 7vw, 96px); }
.board-col h2 { margin: 0 0 12px; font-weight: 400; display: flex; justify-content: space-between; gap: 12px; }
.board-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.board-list li { display: grid; grid-template-columns: 4ch minmax(0,1fr) auto; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.board-list li span:nth-child(2) { font-weight: 700; letter-spacing: .1em; }
.board-list li.me { background: var(--ink); color: var(--wall); padding-left: 8px; padding-right: 8px; margin: 0 -8px; }
.board-list li.empty { grid-template-columns: 1fr; color: var(--mute); }
.play-next { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-top: clamp(48px, 7vw, 96px); }
.play-next a { text-decoration: none; }
.play-next a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* sing it back */
.sib-wrap { position: relative; }
.sib-staff { position: relative; height: clamp(270px, 46vh, 440px); cursor: pointer; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.sib-staff canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sib-staff:focus-visible { outline: 1px solid var(--stage-ink); outline-offset: 6px; }
.sib-start { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }

/* chop */
.chop-screen { position: relative; height: clamp(220px, 40vh, 520px); background: #000; overflow: hidden; }
.chop-screen img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; filter: grayscale(1); }
.chop:not(.is-ready) .chop-screen img { opacity: .35; }
.chop-n { position: absolute; left: 12px; bottom: 6px; font-weight: 700; font-size: clamp(64px, 13vw, 190px); line-height: .8; letter-spacing: -.05em; color: #fff; mix-blend-mode: difference; }
.chop-wave { display: block; width: 100%; height: 56px; }
.chop-pads { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.pad { all: unset; box-sizing: border-box; position: relative; aspect-ratio: 1; cursor: pointer; background: #111; overflow: hidden; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.pad img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) brightness(.5); pointer-events: none; }
.pad span { position: absolute; left: 8px; top: 7px; color: var(--stage-ink); }
.pad.is-hit img { filter: grayscale(1) brightness(1.15); }
.pad.is-hit { box-shadow: inset 0 0 0 2px var(--stage-ink); }
.pad:focus-visible { outline: 1px solid var(--stage-ink); outline-offset: 3px; }
.chop:not(.is-ready) .pad { cursor: wait; }
.chop-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; }
.chop-ctl .ctl { display: inline-flex; align-items: center; gap: 10px; }
.chop-ctl button { all: unset; cursor: pointer; padding: 10px 0; -webkit-tap-highlight-color: transparent; }
.chop-ctl button[aria-pressed="true"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.chop-ctl button:disabled { opacity: .35; cursor: default; }
.chop-ctl button:focus-visible { outline: 1px solid var(--stage-ink); outline-offset: 4px; }
.chop-ctl button.is-on { background: var(--stage-ink); color: var(--stage); padding: 10px 10px; }
.chop-ctl input[type="range"] { width: 130px; accent-color: var(--stage-ink); }
.chop-ctl output { min-width: 3ch; }

/* cut */
.play-cut .play-in, [data-game="cut"] { --ar: .8; }
.cut-board { display: flex; gap: 6px; aspect-ratio: var(--ar); width: min(100%, calc(64vh * var(--ar))); width: min(100%, calc(64svh * var(--ar))); margin: 0 auto; transition: gap .4s; }
.strip { all: unset; flex: 1 1 0; min-width: 0; cursor: pointer; background-color: #111; background-repeat: no-repeat; transition: transform .15s; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.strip.is-sel { outline: 2px solid var(--stage-ink); outline-offset: 3px; position: relative; z-index: 1; }
.strip:focus-visible { outline: 1px dashed var(--stage-ink); outline-offset: 3px; }
.cut-board.is-solved { gap: 0; }
.cut-board.is-solved .strip { cursor: default; outline: none; }
@media (prefers-reduced-motion: reduce) { .cut-board, .strip { transition: none; } }

/* hold */
.hold-frame { position: relative; height: clamp(380px, 70vh, 840px); height: clamp(380px, 70svh, 840px); background: #000; border: 1px solid var(--stage-rule); overflow: hidden; cursor: pointer; display: grid; place-items: center; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.hold-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; transform-origin: center 35%; }
.hold-word { font-weight: 700; font-size: clamp(88px, 22vw, 320px); line-height: .8; letter-spacing: -.06em; text-transform: uppercase; }
.hold-frame.is-on .hold-word { visibility: hidden; }
.hold-time { position: absolute; right: 16px; bottom: 12px; z-index: 2; font-weight: 700; font-size: clamp(28px, 5vw, 64px); line-height: 1; font-variant-numeric: tabular-nums; color: #fff; mix-blend-mode: difference; }
.hold-frame:focus-visible { outline: 1px solid var(--stage-ink); outline-offset: 4px; }
.hold-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px 28px; margin: 0; }
.hold-stats dd { margin: 6px 0 0; font-weight: 700; font-size: clamp(22px, 2.6vw, 34px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* flash */
.flash-wrap { position: relative; }
.flash-frame { position: relative; height: clamp(340px, 62vh, 760px); height: clamp(340px, 62svh, 760px); background: #000; overflow: hidden; display: grid; place-items: center; cursor: pointer; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.flash-frame img { height: 100%; width: 100%; object-fit: contain; display: block; pointer-events: none; filter: grayscale(1); }
.flash-tag { position: absolute; left: 14px; top: 12px; z-index: 2; color: #fff; mix-blend-mode: difference; }
.flash-n { position: absolute; right: 14px; bottom: 8px; z-index: 2; font-weight: 700; font-size: clamp(48px, 9vw, 140px); line-height: .8; letter-spacing: -.05em; color: #fff; mix-blend-mode: difference; font-variant-numeric: tabular-nums; }
.flash-frame:focus-visible { outline: 1px solid var(--stage-ink); outline-offset: 4px; }
.flash-start { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; }

/* hum */
.hum-staff { cursor: default; }
.hum-meter { height: 6px; background: var(--stage-rule); }
.hum-meter span { display: block; height: 100%; width: 0; background: var(--stage-ink); }

/* cover */
.cover-grid { display: grid; gap: 28px; }
@media (min-width: 980px) { .cover-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); align-items: start; } .cover-preview { position: sticky; top: 72px; } }
.cover-preview canvas { display: block; width: 100%; height: auto; max-height: 78vh; object-fit: contain; background: #111; }
.cover-ctl { display: grid; gap: 20px; }
.cover-row { display: grid; gap: 10px; }
.cover-pics { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.cover-pics button { all: unset; cursor: pointer; aspect-ratio: 4 / 5; overflow: hidden; outline-offset: 2px; }
.cover-pics img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) brightness(.6); }
.cover-pics button[aria-pressed="true"] { outline: 2px solid var(--stage-ink); }
.cover-pics button[aria-pressed="true"] img { filter: grayscale(1); }
.cover-pics button:focus-visible { outline: 1px dashed var(--stage-ink); }
.seg { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.seg button { all: unset; cursor: pointer; padding: 8px 0; -webkit-tap-highlight-color: transparent; }
.seg button[aria-pressed="true"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.seg button:focus-visible { outline: 1px solid var(--stage-ink); outline-offset: 4px; }
.cover-initials { all: unset; width: 3.6ch; font-size: 32px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--stage-ink); padding: 2px 0 4px; }
.cover-initials::placeholder { color: var(--stage-rule); }

/* prints */
.prints { padding-top: clamp(56px, 8vw, 112px); display: grid; gap: 16px; }
.sec-row { display: flex; justify-content: space-between; gap: 16px; }
.prints-note { margin: 0; max-width: 60ch; font-size: clamp(16px, 1.4vw, 19px); }
.prints-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .prints-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.prints-grid li { position: relative; aspect-ratio: 4 / 5; background: var(--rule); display: flex; align-items: flex-end; padding: 6px; box-sizing: border-box; overflow: hidden; }
.prints-grid li span { position: relative; z-index: 1; color: var(--mute); }
.prints-grid li.got span { color: #fff; mix-blend-mode: difference; }
.prints-grid li img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.prints p { margin: 0; }
.cert { border: 1px solid var(--ink); padding: 20px; display: grid; gap: 8px; max-width: 520px; }
.cert-n { font-weight: 700; font-size: clamp(48px, 8vw, 110px); line-height: .85; letter-spacing: -.05em; }

/* the new-print notice after a game */
.toast { position: fixed; left: var(--gl); right: var(--gr); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 35; max-width: 420px; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; background: var(--stage-ink); color: var(--stage); text-decoration: none; box-shadow: 0 0 0 1px var(--stage); }
.toast img { width: 64px; height: 80px; object-fit: cover; filter: grayscale(1); display: block; }
.toast > span { display: grid; gap: 4px; }
.toast b { font-size: 30px; line-height: 1; letter-spacing: -.03em; }
.toast .mute { color: #6b6a66; }
