/* Reel Trouble: the page the demo plays on (/play/). Loaded after site.css and films.css, which bring the house at
   night, the bar at the top, the breadcrumb, the buttons and the footer. The page is the auditorium: a heading, the
   screen in its gilt frame, the keys under it. The game comes from itch.io into the frame when the visitor presses
   play (site.js, a[data-embed]); nothing on this page moves, so nothing competes with the game for the machine. */

.playhead { width: min(900px, 100% - 2 * (var(--edge) + 10px)); margin: 0 auto; text-align: center; }
.playhead h1 { margin-top: 10px; font: 400 clamp(30px, 4.4vw, 52px)/1.05 var(--display); text-transform: uppercase; color: var(--gold); text-wrap: balance; }
.playhead__deck { max-width: 40em; margin: 10px auto 0; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.5; text-wrap: balance; }

/* The screen. As wide as the window's height allows, so the whole picture is in view with no scrolling.
   The gate is 16:9 plus the 20 px of itch.io's bar under the game (its logo and the full-screen button). */
.screen { width: min(1292px, 100% - 2 * (var(--edge) + 10px), max(480px, (100vh - 150px) * 16 / 9)); margin: clamp(16px, 2.2vw, 26px) auto 0; }
.stage { aspect-ratio: auto; height: 0; padding-bottom: calc(56.25% + 20px); }
.stage > img, .stage__game { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__game { border: 0; opacity: 0; }
.stage.is-live .stage__game { opacity: 1; }
.stage.is-live > img { visibility: hidden; }
.stage.is-live::after { display: none; }  /* no vignette over the game */
/* The way in: the play disc and its words, together in the middle of the picture (in view before any scrolling). */
.stage__start { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 0 18px 4%; }
.stage__start::after { background: radial-gradient(60% 70% at 50% 48%, rgba(0, 0, 0, .62), rgba(0, 0, 0, .3)); }
.stage__start .yt__play { position: relative; left: auto; top: auto; margin: 0; }
.stage__label { position: relative; z-index: 1; text-align: center; font: 400 clamp(24px, 2.8vw, 36px)/1.15 var(--display); color: var(--gold); text-shadow: 0 2px 14px #000; }
.stage__label small { display: block; margin-top: 8px; font: 500 14px/1.4 var(--body); color: var(--ivory); }
html:not(.js) .stage__js, .js .stage__nojs, html:not(.js) .screen__tip { display: none; }
.stage__wait { position: absolute; left: 0; right: 0; top: 50%; z-index: 1; margin-top: -1em; text-align: center; font: 400 clamp(20px, 2.4vw, 28px)/1.2 var(--display); color: var(--gold); text-shadow: 0 2px 14px #000; }
.stage.is-loading > img { filter: brightness(.45); }

.screen__tip { max-width: 92ch; margin: 14px auto 0; text-align: center; font-size: 14px; color: rgba(243, 233, 210, .82); }
.screen__send { margin-top: 18px; text-align: center; }
.screen .cta__note { margin-inline: auto; text-align: center; }
.screen .cta__status { text-align: center; }

/* The keys, set like the back of a ticket. */
.keys { width: min(900px, 100% - 2 * (var(--edge) + 10px)); margin: clamp(30px, 5vw, 54px) auto 0; }
.keys h2 { font-size: clamp(24px, 3vw, 32px); color: var(--gold); text-align: center; }
.keys dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; margin: 16px 0 0; border-top: 1px solid rgba(231, 184, 74, .55); border-bottom: 1px solid rgba(231, 184, 74, .55); }
.keys dl div { display: grid; grid-template-columns: 10.5em minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px dotted rgba(243, 233, 210, .3); font-size: 15px; line-height: 1.5; }
.keys dl div:nth-last-child(-n+2) { border-bottom: 0; }
.keys dt { font: 600 11px/1.7 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); }
.keys dd { margin: 0; }
.keys kbd { display: inline-block; min-width: 1.9em; padding: 1px 6px; border: 1px solid rgba(243, 233, 210, .55); border-bottom-width: 3px; border-radius: 5px; background: rgba(0, 0, 0, .4); font: 600 13px/1.5 var(--body); text-align: center; color: var(--ivory); }
.keys__note { max-width: 62ch; margin: 14px auto 0; text-align: center; font-size: 14px; color: rgba(243, 233, 210, .82); }

/* The other ways in: the demo's own page, the downloads, the game's home page. */
.elsewhere { padding: clamp(40px, 7vw, 80px) calc(var(--edge) + 16px) clamp(56px, 9vw, 100px); }
.elsewhere .card { max-width: 780px; margin-inline: auto; }
.elsewhere .cta__note { margin-inline: auto; max-width: 60ch; }

@media (max-width: 760px) {
	.play .lobby__nav { gap: clamp(12px, 4vw, 26px); }  /* three places here: this page is the third */
	.keys dl { grid-template-columns: minmax(0, 1fr); }
	.keys dl div:nth-last-child(2) { border-bottom: 1px dotted rgba(243, 233, 210, .3); }
}
@media (hover: none) and (pointer: coarse) {
	.screen { width: min(720px, 100% - 2 * (var(--edge) + 10px)); }
	.stage { padding-bottom: 56.25%; }
	.keys { display: none; }  /* no keyboard here: the keys come with the link, on the desktop */
}
