:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  color: #fff4d8;
  background: #360000;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: #360000;
}

body {
  min-width: 20rem;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 20%, #a81308 0, #540000 47rem, #210000 100%),
    #360000;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.page-shell {
  width: min(100%, 64rem);
  margin: 0 auto;
  filter: drop-shadow(0 0 2rem #120000cc);
}

.poster {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  container-type: inline-size;
  background: #820000;
  isolation: isolate;
}

.poster-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.poster-controls {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.online {
  position: absolute;
  top: 45.2%;
  left: 50%;
  width: 31%;
  height: 4.65%;
  margin: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.2cqw;
  border: 0.28cqw solid #ff5a00;
  border-radius: 999px;
  color: #1cff36;
  background:
    radial-gradient(ellipse at 50% 55%, #193814 0, #070700 67%, #310000 100%);
  box-shadow:
    inset 0 0 1.4cqw #000,
    0 0 1.2cqw #ff7c00,
    0 0 2.2cqw #ff2600;
  font: 900 clamp(1.05rem, 4.05cqw, 2.6rem)/1 Arial, Helvetica, sans-serif;
  letter-spacing: -0.04em;
  text-shadow: 0 0 0.8cqw #1cff36;
}

.online i {
  width: 2.45cqw;
  height: 2.45cqw;
  min-width: 0.58rem;
  min-height: 0.58rem;
  border-radius: 50%;
  background: #00ff25;
  box-shadow: 0 0 0.7cqw #00ff25, inset 0.3cqw 0.3cqw 0.45cqw #d7ffd4a8;
}

.online[data-error] {
  color: #ffe287;
  border-color: #ff9b37;
  text-shadow: 0 0 0.8cqw #ff8a00;
}

.online[data-error] i {
  background: #ff9c31;
  box-shadow: 0 0 0.7cqw #ff8a00;
}

.metric-value {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.5cqw;
  color: #ffd728;
  background:
    radial-gradient(ellipse at 50% 0, #8c0205 0, #5a0003 48%, #3d0002 100%);
  font-family: Arial Black, Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-shadow:
    0 0.2cqw 0 #9d3100,
    0 0 1cqw #f97c00a0;
}

.rounds-value {
  top: 54.58%;
  left: 27.45%;
  width: 15.9%;
  height: 4.2%;
  font-size: clamp(1.2rem, 5.25cqw, 3.35rem);
}

.starts-value {
  top: 54.58%;
  left: 66.05%;
  width: 21.7%;
  height: 4.2%;
  font-size: clamp(1.2rem, 4.75cqw, 3rem);
}

.ends-value {
  top: 62.28%;
  left: 55.7%;
  width: 21%;
  height: 3.6%;
  border-radius: 999px;
  background: linear-gradient(180deg, #a20b0de8, #690003f5);
  font-size: clamp(1.05rem, 3.55cqw, 2.35rem);
}

.session-strip {
  position: absolute;
  top: 65.45%;
  left: 17.5%;
  width: 65%;
  min-height: 1.65%;
  padding: 0.24cqw 1.15cqw;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6cqw;
  border: 0.1cqw solid #dc674faa;
  border-radius: 999px;
  color: #ffdfaa;
  background: #4d0005de;
  box-shadow: inset 0 0 1cqw #220000;
  font: 700 clamp(0.55rem, 1.45cqw, 0.95rem)/1.1 Arial, Helvetica, sans-serif;
  white-space: nowrap;
}

.session-strip span {
  color: #ffe9c8c4;
  font-weight: 500;
}

.session-strip b {
  color: #ff9e31;
  margin-inline: 0.15cqw;
}

.feedback {
  position: absolute;
  top: 68.12%;
  left: 10%;
  width: 80%;
  min-height: 1.8%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25cqw 1cqw;
  border-radius: 999px;
  color: #fff0c3;
  background: #4a0003df;
  font: 700 clamp(0.55rem, 1.55cqw, 1rem)/1.1 Arial, Helvetica, sans-serif;
  text-align: center;
  text-shadow: 0 0 0.55cqw #ff6a00;
}

.poster-hotspot {
  position: absolute;
  z-index: 2;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: transparent;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 150ms ease, box-shadow 150ms ease, transform 120ms ease;
}

.poster-hotspot.generate {
  top: 70.55%;
  left: 13.15%;
  width: 73.7%;
  height: 8.65%;
}

.poster-hotspot.play {
  top: 80.95%;
  left: 13.15%;
  width: 73.7%;
  height: 7.9%;
}

.poster-hotspot:hover:not(:disabled) {
  background: #ffffff12;
  box-shadow: inset 0 0 2cqw #ffffff52;
}

.poster-hotspot:active:not(:disabled) {
  transform: translateY(0.28cqw) scale(0.992);
}

.poster-hotspot:focus-visible {
  outline: 0.34cqw solid #fff;
  outline-offset: 0.45cqw;
  box-shadow: 0 0 1.2cqw #fff, 0 0 2.4cqw #ffd000;
}

.poster-hotspot:disabled {
  cursor: not-allowed;
  background: #20000077;
  box-shadow: inset 0 0 2.5cqw #130000b8;
}

.poster-hotspot[aria-busy="true"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 18%;
  width: 4cqw;
  height: 4cqw;
  margin: -2cqw 0 0 -2cqw;
  border: 0.48cqw solid #fff9;
  border-top-color: #fff;
  border-radius: 50%;
  animation: rotate 500ms linear infinite;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.game {
  margin: 1.1rem;
  padding: clamp(1rem, 4vw, 1.7rem);
  border: 3px solid #ffbd35;
  border-radius: 1.25rem;
  color: #fff3d6;
  background: linear-gradient(145deg, #740007, #2a0003);
  box-shadow: 0 0 1.5rem #ff5b002e, inset 0 0 1.5rem #ff5b001a;
  scroll-margin: 1rem;
}

.game h2 {
  margin: 0 0 0.75rem;
  color: #ffd16b;
  font: 900 clamp(1.35rem, 4vw, 2rem)/1 Arial Black, Arial, sans-serif;
  text-transform: uppercase;
}

.game p {
  line-height: 1.5;
}

.game iframe {
  display: block;
  width: 100%;
  height: clamp(28rem, 75svh, 48rem);
  border: 0;
  border-radius: 0.75rem;
  background: #170002;
}

.game .game-login {
  min-height: 3.25rem;
  margin-top: 1rem;
  padding: 0.85rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff1ad;
  border-radius: 999px;
  color: #3b1600;
  background: linear-gradient(#ffe99c, #f2ab20);
  box-shadow: 0 0 1rem #ffb00057, inset 0 0 0.7rem #fff8d4;
  font: 900 1rem/1 Arial Black, Arial, sans-serif;
  text-decoration: none;
  text-transform: uppercase;
}

footer {
  padding: 0.5rem 1.25rem 2rem;
  color: #f4c9ad;
  background: #210000;
  text-align: center;
}

details {
  max-width: 42rem;
  margin: 0 auto;
}

summary {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
}

details p {
  margin: 0.75rem auto;
  font-size: 1rem;
  line-height: 1.55;
}

@media (min-width: 64.01rem) {
  .page-shell {
    margin-block: 1.5rem;
    border-radius: 1.25rem;
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
