.play-page { max-width: 1640px; padding-top: 1.8rem; }
.mobile-play-notice { max-width: 46rem; margin: clamp(1.5rem, 6vw, 4rem) auto; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); text-align: center; }
.mobile-play-notice h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.mobile-play-notice .lede { margin: 1.2rem auto 1.8rem; }
.mobile-play-icon { margin-bottom: 1rem; color: var(--gold); }
.mobile-play-icon .platform-icon { width: 3rem; height: 3rem; }
.mobile-play-notice[hidden], .play-heading[hidden], .play-frame[hidden] { display: none; }
html.play-theater-open, .play-theater-open body { overflow: hidden; }
.play-theater-open .topbar, .play-theater-open .play-heading, .play-theater-open .foot { visibility: hidden; }
.play-frame.play-theater { position: fixed; inset: 0; z-index: 100; width: 100%; height: 100dvh; background: #000; }
.play-frame.play-theater .play-stage { width: 100%; height: 100%; border: 0; border-radius: 0; }
.play-frame.play-theater .play-toolbar { position: absolute; top: 0.5rem; right: 0.5rem; z-index: 2; margin: 0; padding: 0.25rem; border-radius: var(--radius); background: #100b0bcc; }
.play-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.2rem; }
.play-heading h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0; }
.play-eyebrow { color: var(--gold); font: 0.68rem/1.5 "Trebuchet MS", sans-serif; letter-spacing: 0.2em; margin-bottom: 0.7rem; }
.play-account { margin: 0; color: var(--ink-dim); font-size: 0.9rem; }
.play-account strong { color: var(--gold); }
.play-frame { background: transparent; }
/* Quick clicks on the toolbar must never select the game frame. */
.play-toolbar, .play-host { -webkit-user-select: none; user-select: none; }
.play-toolbar { display: flex; justify-content: flex-end; gap: 0.5rem; margin-bottom: 0.5rem; }
.play-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; padding: 0.45rem; border: 1px solid #57402c; border-radius: var(--radius); background: #1b1410; color: var(--gold); cursor: pointer; }
.play-icon-button[hidden], .play-contract { display: none; }
.play-icon-button svg { width: 100%; height: 100%; }
.play-icon-button:hover { border-color: var(--gold); color: #ffe6bc; background: #302118; }
.play-icon-button:focus-visible { outline: 2px solid #ffe6bc; outline-offset: 3px; }
.play-icon-button[aria-pressed="true"] .play-expand { display: none; }
.play-icon-button[aria-pressed="true"] .play-contract { display: block; }
.play-frame:fullscreen { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; background: #000; }
.play-frame:fullscreen .play-toolbar { position: absolute; top: 0.5rem; right: 0.5rem; z-index: 2; margin: 0; padding: 0.25rem; border-radius: var(--radius); background: #100b0bcc; }
.play-frame:fullscreen #play-theater { display: none; }
.play-frame:fullscreen .play-stage { flex: 1; height: auto; min-height: 0; width: 100%; border: 0; border-radius: 0; }
/* In the world, theater and fullscreen put the toolbar left of the minimap, in
   the game's UI pixels (play.js placeToolbar). After the rules above, which it overrides. */
.play-frame.play-hud .play-toolbar { top: var(--play-hud-top); right: var(--play-hud-right); gap: calc(3px * var(--play-hud-unit)); padding: calc(3px * var(--play-hud-unit)); }
.play-frame.play-hud .play-icon-button { width: calc(26px * var(--play-hud-unit)); height: calc(26px * var(--play-hud-unit)); padding: calc(5px * var(--play-hud-unit)); }
.play-stage { position: relative; height: clamp(400px, calc(100dvh - 264px), 960px); overflow: hidden; border: 1px solid #57402c; border-radius: var(--radius); background: #1b0b05 url('/media/optimized/bg1.webp?v=021c8169fc') center/cover no-repeat; box-shadow: 0 18px 60px #0006; }
.play-host, .play-host iframe, .play-cover { position: absolute; inset: 0; width: 100%; height: 100%; }
.play-host iframe { display: block; border: 0; background: #000; }
.play-cover { display: flex; align-items: center; padding: clamp(1.5rem, 5vw, 5rem); background: linear-gradient(90deg, #100b0be8, #100b0b66 52%, #100b0b08 75%), url('/media/optimized/bg1.webp?v=021c8169fc') center/cover no-repeat; }
.play-cover[hidden], .play-loading[hidden], .play-button[hidden], #play-signin[hidden] { display: none; }
.play-invitation { width: min(100%, 28rem); text-align: center; }
.play-logo { position: relative; isolation: isolate; width: min(100%, 21rem, 34dvh); aspect-ratio: 1; margin: -0.5rem auto 0.75rem; }
.play-logo img, .play-logo video { display: block; width: 100%; height: 100%; object-fit: contain; }
.play-logo .play-logo-halo { position: absolute; inset: -7%; width: 114%; height: 114%; opacity: 0.65; filter: blur(22px); pointer-events: none; -webkit-mask-image: radial-gradient(ellipse closest-side, #000 48%, transparent 100%); mask-image: radial-gradient(ellipse closest-side, #000 48%, transparent 100%); }
.play-logo-art { position: relative; -webkit-mask-image: radial-gradient(ellipse closest-side, #000 74%, #000b 86%, transparent 100%); mask-image: radial-gradient(ellipse closest-side, #000 74%, #000b 86%, transparent 100%); }
#play-status { min-height: 3.3em; color: #ddcfc2; font-size: 1.1rem; max-width: 24rem; margin-inline: auto; }
.play-button { min-width: 13rem; padding: 1rem 2.5rem; border: 1px solid #cb9a51; border-radius: 2px; background: linear-gradient(#862a24, #511514); color: #ffe6bc; font: bold 1.05rem/1.2 "Trebuchet MS", sans-serif; text-transform: uppercase; letter-spacing: 0.18em; cursor: pointer; box-shadow: inset 0 0 0 3px #290b0970, 0 5px 20px #0006; }
.play-button:hover { background: linear-gradient(#a03a2e, #6a1e18); border-color: #f0ca82; }
.play-button:focus-visible, #play-signin:focus-visible { outline: 2px solid #ffe6bc; outline-offset: 5px; }
.play-loading { margin: 0.5rem 0 1.5rem; }
.play-loading progress { display: block; width: 100%; height: 10px; appearance: none; border: 1px solid #62442c; background: #1a100b; accent-color: #bf8b44; }
.play-loading progress::-webkit-progress-bar { background: #1a100b; }
.play-loading progress::-webkit-progress-value { background: linear-gradient(90deg, #a74325, #e2bb70); }
.play-loading progress::-moz-progress-bar { background: #c99b52; }
#play-detail { display: block; color: #b9a48c; font: 0.8rem/1.5 "Trebuchet MS", sans-serif; margin-top: 0.6rem; }
@media (max-width: 600px) {
  .play-heading { display: block; }
  .play-account { margin-top: 0.6rem; }
  .play-stage { background-image: url('/media/optimized/bg1-small.webp?v=c4b7f6971b'); background-position: 62% center; }
  .play-cover { background: linear-gradient(#100b0b99, #100b0b99), url('/media/optimized/bg1-small.webp?v=c4b7f6971b') 62% center/cover no-repeat; }
}
