.glow-page {
  --ink: #f5f8ff;
  --muted: #c6d0e3;
  --mint: #9fffe0;
  color: var(--ink);
  background: #10172d;
  color-scheme: dark;
}
.glow-page .collection-header, .glow-page .collection-footer,
.glow-page .ad-slot, .glow-page .mini-instructions { border-color: #3c4b6a; }
.glow-page .brand, .glow-page .all-games-link { color: var(--ink); }
.glow-page .brand-light, .glow-page .mini-instructions a { color: var(--mint); }
.glow-page .ad-label, .glow-page .collection-footer,
.glow-page .mini-instructions p { color: var(--muted); }
.glow-main { max-width: 1060px; }
.glow-hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(18px, 4vw, 48px);
  margin: 24px 0;
  padding: clamp(14px, 3vw, 32px);
  border: 1px solid #53678a;
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 5% 95%, #184d54 0, transparent 60%),
    radial-gradient(ellipse at 90% 0, #3d366d 0, transparent 65%),
    #17213c;
}
.glow-kicker {
  margin: 0 0 13px;
  color: var(--mint);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .18em;
}
.glow-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: .88;
  letter-spacing: -.07em;
}
.glow-title span { display: block; color: #a7eeff; }
.glow-rule { margin: 20px 0 0; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.13rem); line-height: 1.5; }
.glow-rule strong { color: var(--ink); }
.glow-facts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.glow-facts span {
  padding: 6px 10px;
  border: 1px solid #536d84;
  border-radius: 20px;
  color: #d3e9eb;
  font-size: 11px;
}
.glow-console {
  --trail: #9fffe0;
  --tile-lit: #23635e;
  min-width: 0;
  padding: clamp(10px, 2vw, 20px);
  border: 1px solid #7b8aa8;
  border-radius: 23px;
  background: #131c33;
  box-shadow: 0 14px 35px #060f22a1;
}
.glow-console[data-stage="1"] { --trail: #ffcf94; --tile-lit: #724d3b; }
.glow-console[data-stage="2"] { --trail: #f2aeff; --tile-lit: #614778; }
.glow-stats { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.glow-stats p { margin: 0; color: var(--muted); font-size: 12px; }
.glow-stats strong { color: var(--trail); font-size: 16px; font-variant-numeric: tabular-nums; }
.glow-board {
  position: relative;
  isolation: isolate;
  display: grid;
  aspect-ratio: 1;
  padding: 2px;
  border: 1px solid #63718c;
  border-radius: 17px;
  background: linear-gradient(155deg, #263957, #151e35);
}
.glow-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
}
.glow-trail {
  position: absolute;
  z-index: 0;
  inset: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  overflow: visible;
  pointer-events: none;
}
.glow-trail polyline {
  fill: none;
  stroke: var(--trail);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px var(--trail));
}
.glow-tile {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: #ccd8ef;
  background: transparent;
  font: 760 clamp(16px, 2.6vw, 24px) system-ui, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}
.glow-tile::before {
  position: absolute;
  z-index: -1;
  inset: 4px;
  border: 1px solid #667a99;
  border-radius: 10px;
  background: linear-gradient(145deg, #324766, #23334f);
  box-shadow: inset 0 -3px 0 #0b132c66;
  content: "";
  pointer-events: none;
  transition: background .15s, box-shadow .15s, transform .1s;
}
.glow-tile[data-visited="true"]::before {
  border-color: var(--trail);
  background: var(--tile-lit);
  box-shadow: inset 0 -3px 0 #0b132c44, 0 0 10px #9fffe033;
}
.glow-tile[data-current="true"]::before { border: 3px solid var(--trail); }
.glow-tile[data-goal="true"] { color: #ffe5a4; font-size: clamp(24px, 4vw, 35px); }
.glow-tile[data-next="true"]::before { border-color: #cfedff; }
.glow-tile:active:not(:disabled)::before { transform: scale(.93); }
.glow-tile:disabled { opacity: 1; cursor: default; }
.glow-console:is([data-state="won"], [data-state="between"]) .glow-trail { animation: glow-complete .5s ease-out; }
@keyframes glow-complete { 50% { filter: brightness(1.6); } }
.glow-status {
  display: grid;
  place-items: center;
  min-height: 43px;
  margin: 5px 0 7px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
}
.glow-console:is([data-state="won"], [data-state="between"]) .glow-status { color: var(--trail); font-weight: 750; }
.glow-controls { display: flex; gap: 6px; }
.glow-controls button {
  flex: 1;
  min-width: 0;
  min-height: 45px;
  padding: 6px;
  border: 1px solid #66799a;
  border-radius: 10px;
  color: var(--ink);
  background: #293a55;
  font: 750 12px system-ui, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}
.glow-controls .glow-primary { color: #102c37; border-color: #b5ffe8; background: var(--mint); }
.glow-controls button:disabled { opacity: .6; cursor: default; }
.glow-page [hidden] { display: none !important; }
.glow-page :focus-visible { outline: 3px solid #ffe9a6; outline-offset: 2px; }
@media (max-width: 680px) {
  .glow-page .collection-header { height: 54px; }
  .glow-hero { grid-template-columns: 1fr; gap: 15px; margin: 12px 0; border-radius: 22px; }
  .glow-title { font-size: clamp(2.5rem, 10.2vw, 4rem); line-height: .94; }
  .glow-title span { display: inline; }
  .glow-kicker { margin-bottom: 8px; font-size: 10px; }
  .glow-rule { margin-top: 9px; }
  .glow-facts { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .glow-tile::before { transition: none; }
  .glow-console:is([data-state="won"], [data-state="between"]) .glow-trail { animation: none; }
}
