.demo-page {
  min-height: 100vh;
  background: radial-gradient(ellipse at 68% 0, #32283c, transparent 63%), #17141c;
}
.demo-main {
  width: min(calc(100% - 2.3rem), 76rem);
  margin: 0 auto;
  padding: clamp(1rem, 3.5vw, 3.6rem) 0 2rem;
}
.player {
  isolation: isolate;
  overflow: hidden;
  background: #08070a;
  border: 1px solid #71657e;
  box-shadow: 5px 5px 0 #0c0a10;
}
.screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 72dvh;
  background: #000;
}
.cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(102deg, #171221f5 10%, #291d3be6 38%, #31234158 70%),
              url("/demo/stageport.webp") 54% center / cover;
}
.cover::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(119deg, transparent 68%, #ffdf24 68% 68.75%, #241b33 68.85% 70%, transparent 70.15%),
              radial-gradient(#1e152d70 .8px, transparent 1.15px);
  background-size: auto, 4px 4px;
}
.cover::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 1% 0 auto;
  width: 53%;
  background: url("/demo/akemi-status.webp") center bottom / auto 100% no-repeat;
  filter: drop-shadow(4px 3px 0 #1b1321);
}
.cover-copy { width: 63%; padding: 2rem clamp(1.5rem, 5vw, 5rem); }
.cover-label {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .86rem;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.cover h1 { font-size: clamp(3.3rem, 7.1vw, 7.3rem); margin: 1.1rem 0; }
.intro { color: #eee8f2; line-height: 1.5; max-width: 21rem; margin-bottom: 1.25rem; }
.start { gap: .65rem; }
.play-icon { width: 0; height: 0; border-block: .37em solid transparent; border-left: .62em solid currentColor; }
.launch-status { line-height: 1.4; font-size: .95rem; margin-top: .8rem; }
.player-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .7rem;
  padding: .38rem clamp(.65rem, 2.3vw, 1.65rem);
  min-height: 3.5rem;
  background: #201a27;
  border-top: 1px solid #63536f;
}
.player-title { font: italic 700 clamp(1.2rem, 2vw, 1.48rem)/1.1 var(--display); }
.player-title b { color: var(--gold); margin-left: .35em; font-size: .86em; }
.screen-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 2.75rem;
  background: transparent;
  border: 0;
  font-weight: 650;
  font-size: .9rem;
}
.screen-toggle:hover { color: var(--gold); background: transparent; }
.screen-toggle .expand { color: currentColor; }
.screen iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.player:fullscreen, .player.expanded {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  z-index: 20;
  width: 100%;
  height: 100%;
  height: 100dvh;
  border: 0;
}
.player:fullscreen .screen, .player.expanded .screen { flex: 1; min-height: 0; max-height: none; }
.player:fullscreen .player-bar, .player.expanded .player-bar { flex-shrink: 0; }
html.has-expanded-player { overflow: hidden; }
.below { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .55rem 2rem; margin-top: 1.15rem; }
.key-guide { width: 100%; font-size: .88rem; color: var(--quiet); line-height: 1.8; }
.key-guide kbd { font: inherit; font-weight: 700; color: var(--paper); }
.key-guide span { margin-inline: .22em; color: var(--violet); }
.game-links, .elsewhere { display: flex; align-items: center; flex-wrap: wrap; }
.game-links { gap: .65rem; }
.elsewhere { gap: .4rem; }
.elsewhere a {
  display: grid;
  place-items: center;
  width: 2.875rem;
  height: 2.875rem;
  padding: 0;
  border: 1px solid #796886;
  background: #241e2d;
  color: var(--paper);
}
.elsewhere svg { display: block; width: 1.38rem; height: 1.38rem; fill: currentColor; }
.elsewhere .wordmark { width: 2.35rem; }
.elsewhere a:hover, .elsewhere a:focus-visible {
  color: var(--gold);
  background: #382457;
  border-color: var(--gold);
}
.demo-page [hidden] { display: none !important; }
@media (max-width: 42rem) {
  .demo-main { width: calc(100% - 1.3rem); padding-top: .8rem; }
  .screen:has(.cover:not([hidden])) { min-height: 19.5rem; }
  .cover::after { right: 0; width: 53%; background-position: center bottom; }
  .cover-copy { width: 75%; padding: 1rem 1.1rem; }
  .cover h1 { font-size: clamp(3rem, 10.2vw, 4.1rem); }
  .cover-label { gap: .45rem; font-size: .78rem; }
  .intro { max-width: 13.2rem; }
  .below { gap: .85rem; }
  .below > * { width: 100%; }
  .elsewhere { padding-top: .75rem; border-top: 1px solid #52465c; }
  .player-title { font-size: 1.05rem; }
}
@media (max-width: 29rem) {
  .game-links { display: grid; grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 29rem) and (orientation: portrait) {
  .screen:has(.cover:not([hidden])) { min-height: 26rem; }
  .cover { align-items: flex-end; }
  .cover::after { inset: 0 0 auto; width: 100%; height: 62%; background-position: 65% top; }
  .cover-copy {
    width: 100%;
    padding: 1.5rem 1rem 1rem;
    background: linear-gradient(177deg, transparent 0 .7rem, var(--gold) .74rem .9rem, #211a29 .94rem);
  }
  .cover h1 { font-size: clamp(2.65rem, 9.4vw, 3.2rem); line-height: .99; margin: .6rem 0; }
  .cover h1 em { display: inline; }
  .intro { max-width: 18rem; line-height: 1.4; margin-bottom: .8rem; }
}
@media (max-height: 37rem) and (orientation: landscape) {
  .cover h1 { font-size: clamp(2.45rem, 6vw, 4.25rem); margin: .5rem 0; }
  .cover-copy { padding-block: .75rem; }
  .intro { margin-bottom: .55rem; }
  .player-bar { min-height: 2.6rem; padding-block: 0; }
  .screen-toggle { min-height: 2.6rem; }
}
