.gs3 {
  --gs3-bg: #000;
  --gs3-cabinet: #12080c;
  --gs3-cyan: #00ffff;
  --gs3-magenta: #ff0055;
  --gs3-gold: #ffe600;
  --gs3-muted: #8b97a3;
  box-sizing: border-box;
  width: min(100%, 42rem);
  margin: 0 auto;
  padding: 0.5rem;
  background: var(--gs3-bg);
  color: #e7fff6;
  font-family: ui-monospace, "Cascadia Mono", "Courier New", monospace;
}

.gs3 *,
.gs3 *::before,
.gs3 *::after {
  box-sizing: border-box;
}

.gs3-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.gs3-title {
  margin: 0;
  color: var(--gs3-magenta);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.gs3-sub {
  margin: 0.15rem 0 0;
  color: var(--gs3-cyan);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.gs3-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.gs3-btn,
.gs3-pad {
  height: 2.75rem;
  border-radius: 0.4rem;
  border: 2px solid var(--gs3-cyan);
  background: var(--gs3-cabinet);
  color: var(--gs3-cyan);
  font: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  touch-action: none;
  user-select: none;
}

.gs3-mute {
  border-color: var(--gs3-gold);
  color: var(--gs3-gold);
}

.gs3-cabinet {
  position: relative;
  width: min(100%, calc((100dvh - 11rem) * 880 / 800));
  margin: 0 auto;
  aspect-ratio: 880 / 800;
  container-type: inline-size;
  overflow: hidden;
  border: 3px solid #2a1614;
  border-radius: 1.25rem;
  background: #000;
  box-shadow:
    0 0 0 7px #0a0606,
    0 0 36px rgba(255, 0, 85, 0.18),
    inset 0 0 24px rgba(0, 255, 255, 0.05);
}

.gs3-cabinet canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.gs3-scan,
.gs3-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.gs3-scan {
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.18) 0px,
    rgba(0, 0, 0, 0.18) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: multiply;
}

.gs3-vignette {
  background: radial-gradient(ellipse at center, transparent 52%, rgba(0, 0, 0, 0.58) 100%);
  box-shadow: inset 0 0 48px rgba(0, 255, 255, 0.07);
}

.gs3 .cart-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4.5cqi 4cqi 3.5cqi;
  overflow: hidden;
}

.gs3 .marquee-art {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  object-position: 62% 46%;
  pointer-events: none;
  animation: gs3-drift 16s ease-in-out infinite alternate;
}

.gs3 .marquee-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.42) 22%, rgba(0, 0, 0, 0.05) 42%, rgba(0, 0, 0, 0.08) 62%, rgba(0, 0, 0, 0.82) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.45), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.45));
}

.gs3 .marquee-copy,
.gs3 .marquee-dock {
  position: relative;
  z-index: 1;
  text-align: center;
}

.gs3 .marquee-kicker,
.gs3 .marquee-threats,
.gs3 .marquee-blink,
.gs3 .marquee-title span {
  font-family: inherit;
}

.gs3 .marquee-kicker {
  margin: 0;
  color: #00ffff;
  font-size: clamp(9px, 2.4cqi, 13px);
  letter-spacing: 0.22em;
}

.gs3 .marquee-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.2cqi 0 0;
  line-height: 0.84;
}

.gs3 .marquee-title span {
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #ffe600;
  text-shadow:
    0 1px 0 #fff8d0,
    0 3px 0 #8a6a00,
    3px 0 0 #ff0055,
    -3px 0 0 #00ffff;
}

.gs3 .marquee-title span:first-child {
  font-size: clamp(12px, 3.3cqi, 20px);
  letter-spacing: 0.46em;
  color: #fff;
}

.gs3 .marquee-title .hero {
  margin-top: 0.6cqi;
  font-size: clamp(26px, 9.2cqi, 58px);
  letter-spacing: 0.06em;
}

.gs3 .marquee-title .iii {
  margin-top: 0.4cqi;
  font-size: clamp(28px, 8cqi, 52px);
  letter-spacing: 0.34em;
  color: #ff0055;
  text-shadow: 0 0 16px rgba(255, 0, 85, 0.85), 3px 0 0 #ffe600, -3px 0 0 #00ffff;
}

.gs3 .marquee-threats {
  margin: 1.4cqi 0 0;
  color: #e7fff6;
  font-size: clamp(8px, 2.15cqi, 12px);
  letter-spacing: 0.14em;
}

.gs3 .cart-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 10px;
  width: min(100%, 460px);
  margin: 0 auto;
}

.gs3 .cart-start,
.gs3 .cart-scores {
  height: 48px;
  margin: 0;
  min-width: 0;
  border: 3px solid #111;
  font: inherit;
  font-size: clamp(11px, 2.6cqi, 15px);
  letter-spacing: 0.12em;
  cursor: pointer;
}

.gs3 .cart-start {
  border-radius: 999px;
  background: radial-gradient(circle at 50% 28%, #fff6a8, #ffe600 46%, #b8860b);
  color: #1a0a00;
  box-shadow: 0 4px 0 #6a5200, 0 0 22px rgba(255, 230, 0, 0.55);
}

.gs3 .cart-scores {
  border-radius: 10px;
  background: rgba(8, 4, 10, 0.82);
  color: #00ffff;
  box-shadow: 0 4px 0 #063040, inset 0 0 0 1px #00ffff;
}

.gs3 .marquee-blink {
  margin: 10px 0 0;
  color: #ffe600;
  font-size: clamp(9px, 2.2cqi, 12px);
  letter-spacing: 0.28em;
  animation: gs3-blink 1.05s steps(2, end) infinite;
}

@keyframes gs3-drift {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@keyframes gs3-blink {
  0%, 46% { opacity: 1; }
  54%, 100% { opacity: 0.2; }
}

@media (prefers-reduced-motion: reduce) {
  .gs3 .marquee-art,
  .gs3 .marquee-blink {
    animation: none;
  }
}

.gs3-pads {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  max-width: 36rem;
  margin: 0.6rem auto 0;
}

.gs3-fire {
  border-color: var(--gs3-magenta);
  background: var(--gs3-magenta);
  color: #000;
}

.gs3-bomb {
  border-color: var(--gs3-gold);
  color: var(--gs3-gold);
}

.gs3-hint {
  margin: 0.45rem 0 0;
  text-align: center;
  color: var(--gs3-muted);
  font-size: 0.68rem;
}

.gs3 .score-board {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 12px;
  background: #050208;
  color: #e7fff6;
}

.gs3 .score-board[hidden] {
  display: none;
}

.gs3 .score-board h2 {
  margin: 0;
  color: #ffe600;
  font-size: 28px;
  letter-spacing: 0.12em;
  text-shadow: 3px 0 #ff0055, -2px 0 #00ffff;
}

.gs3 .score-board p {
  margin: 6px 0;
  color: #00ffff;
  font-size: 11px;
}

.gs3 .score-list {
  width: min(100%, 560px);
  margin: 0;
  padding: 8px 12px;
  list-style: none;
  border: 3px solid #ffe600;
  box-shadow: inset 0 0 0 2px #ff0055;
  background: #000;
}

.gs3 .score-list li {
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.08em;
}

.gs3 .score-nav {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.gs3 .score-nav button,
.gs3 .score-back {
  height: 40px;
  padding: 0 14px;
  border: 2px solid #00ffff;
  background: #12080c;
  color: #00ffff;
  font: inherit;
  cursor: pointer;
}

.gs3 .score-back {
  margin-top: 8px;
  border-color: #ffe600;
  color: #ffe600;
}
