/* Arcade after dark: saturated light, clear routes, and the original crafted pieces. */
body[data-theme="prism"]:not([data-bedtime="true"]) {
  --bg:#0b0520;--surface:#180d35;--surface-2:#261647;--board:#080b23;--tile:#111a36;--tile-2:#21123b;
  --ink:#f6fcff;--muted:#c6c2ee;--line:#58478b;--shadow:rgba(0,0,0,.45);
  --ui-accent:#bdff36;--ui-lilac:#39f4ff;--ui-peach:#ff48b4;--ui-pink:#ff48b4;
  --primary:#bdff36;--primary-text:#152003;--primary-edge:#658e12;--nav:#bdff36;--nav-text:#152003;
  --button:#1c123c;--button-text:#f6fcff;--button-edge:#7045a5;--reset:#1c123c;--reset-text:#f6fcff;--reset-edge:#7045a5;
  --hint:#bdff36;--hint-text:#152003;--hint-edge:#658e12;--frame:#38efff;--frame-depth:#9e2484;
  --tracker-bg:#231643;--tracker-edge:#6e53a5;--tracker-filled:#153341;--tracker-filled-edge:#36f3ff;
  --warm:#ffd93d;--warm-rgb:255,217,61;--trail-color:#33f6ff;
  background:radial-gradient(ellipse at 15% 15%,#2e1259,transparent 55%),radial-gradient(ellipse at 88% 80%,#361044,transparent 60%),#0b0520;
}
body[data-theme="prism"]:not([data-bedtime="true"]) .app[data-chapter] {
  --accent:#35f6ff;--accent-rgb:53,246,255;--accent-2:#ff3caf;--accent2-rgb:255,60,175;
  background:radial-gradient(ellipse at 0% 28%,rgba(0,185,255,.15),transparent 43%),radial-gradient(ellipse at 100% 65%,rgba(255,33,165,.18),transparent 45%),linear-gradient(160deg,#16092e,#0c0824 55%,#210a32);
}

/* Violet haze, electric arcs and a brighter perspective grid behind the board. */
body[data-theme="prism"]:not([data-bedtime="true"]) .world-atmosphere::before {
  background:radial-gradient(ellipse at 3% 30%,rgba(27,211,255,.23),transparent 45%),radial-gradient(ellipse at 98% 74%,rgba(255,39,167,.25),transparent 47%);
}
body[data-theme="prism"]:not([data-bedtime="true"]) .world-atmosphere::after {
  height:330px;bottom:-80px;background:linear-gradient(rgba(54,239,255,.27) 1px,transparent 1px),linear-gradient(90deg,rgba(255,65,175,.24) 1px,transparent 1px);background-size:38px 30px;opacity:.8;
}
body[data-theme="prism"]:not([data-bedtime="true"]) .scene-orbit { border-color:rgba(53,246,255,.4);box-shadow:inset 0 0 18px rgba(53,246,255,.045);animation-delay:-8s; }
body[data-theme="prism"]:not([data-bedtime="true"]) .scene-orbit.two { border-color:rgba(255,60,175,.4);animation-delay:-23s; }
body[data-theme="prism"]:not([data-bedtime="true"]) .scene-orbit::before { width:10px;height:10px;box-shadow:0 0 8px var(--accent),0 0 22px rgba(var(--accent-rgb),.65); }
body[data-theme="prism"]:not([data-bedtime="true"]) .scene-orbit.two::before { box-shadow:0 0 8px var(--accent-2),0 0 22px rgba(var(--accent2-rgb),.65); }
body[data-theme="prism"]:not([data-bedtime="true"]) .scene-ribbon { border-color:rgba(255,60,175,.3);background:linear-gradient(180deg,rgba(255,60,175,.15),transparent 60%); }
body[data-theme="prism"]:not([data-bedtime="true"]) .scene-ribbon.two { border-color:rgba(53,246,255,.3);background:linear-gradient(180deg,rgba(53,246,255,.12),transparent 60%); }
body[data-theme="prism"]:not([data-bedtime="true"]) .scene-flecks i { background:rgba(var(--accent-rgb),.18);box-shadow:0 0 8px rgba(var(--accent-rgb),.6),3px 3px 0 rgba(var(--accent2-rgb),.4); }
body[data-theme="prism"]:not([data-bedtime="true"]) .ambient-haze i { opacity:.2;background:radial-gradient(ellipse,#21b4ef,transparent 68%); }
body[data-theme="prism"]:not([data-bedtime="true"]) .ambient-haze i:last-child { background:radial-gradient(ellipse,#ff3caf,transparent 68%); }

/* A cyan and magenta cabinet frame around an illuminated floor matrix. */
body[data-theme="prism"]:not([data-bedtime="true"]) .board {
  border-color:#49f0ff;background:linear-gradient(135deg,#102647,#09071e 55%,#2e1246);
  box-shadow:0 4px 0 #87236e,inset 0 0 0 1px rgba(169,251,255,.22),0 0 13px rgba(53,246,255,.35),0 0 28px rgba(255,60,175,.22);
}
body[data-theme="prism"]:not([data-bedtime="true"]) .board.win,body[data-theme="prism"]:not([data-bedtime="true"]) .board.aligned {
  border-color:#d9ff63;box-shadow:0 4px 0 #658e12,0 0 15px rgba(189,255,54,.4),0 0 30px rgba(53,246,255,.2);
}
body[data-theme="prism"]:not([data-bedtime="true"]) .cell:not(.wall) {
  background:linear-gradient(145deg,#172448,#10132e);border-color:rgba(57,228,255,.3);
  box-shadow:inset 0 1px 0 rgba(128,247,255,.15),inset 0 0 9px rgba(18,125,204,.06);
}
body[data-theme="prism"]:not([data-bedtime="true"]) .cell:nth-child(2n):not(.wall) { background:linear-gradient(145deg,#241941,#151330);border-color:rgba(188,98,255,.3); }
body[data-theme="prism"]:not([data-bedtime="true"]) .cell.passed:not(.wall):not(.collected) { background:#173a4b;border-color:#40ddea;box-shadow:inset 0 0 13px rgba(53,246,255,.17); }
body[data-theme="prism"]:not([data-bedtime="true"]) .cell.collected:not(.wall) { background:linear-gradient(135deg,#263322,#142638);border-color:rgba(189,255,54,.52);box-shadow:inset 0 0 10px rgba(189,255,54,.1); }
body[data-theme="prism"]:not([data-bedtime="true"]) .cell.collected::after { background:#d5ff64;box-shadow:0 0 7px rgba(189,255,54,.55); }
body[data-theme="prism"]:not([data-bedtime="true"]) .cell.wall { filter:saturate(1.45) brightness(1.08) drop-shadow(0 0 3px rgba(31,184,255,.55)); }
body[data-theme="prism"]:not([data-bedtime="true"]) .cell.wall:nth-child(3n+1) { filter:saturate(1.45) brightness(1.08) drop-shadow(0 0 3px rgba(255,47,163,.6)); }
body[data-theme="prism"]:not([data-bedtime="true"]) .live-frame { border-color:rgba(53,246,255,.7);box-shadow:0 0 10px rgba(53,246,255,.3),0 0 22px rgba(255,60,175,.25); }
body[data-theme="prism"]:not([data-bedtime="true"]) .live-frame i { opacity:1; }
body[data-theme="prism"]:not([data-bedtime="true"]) .board-sheen { background:radial-gradient(ellipse at 5% 5%,rgba(53,246,255,.17),transparent 65%),radial-gradient(ellipse at 95% 100%,rgba(255,60,175,.12),transparent 60%); }

/* Gold coins, pink hearts and a cyan player read as distinct lit objects. */
body[data-theme="prism"]:not([data-bedtime="true"]) .cell.item:not(.collected) .piece-symbol { filter:saturate(1.25) brightness(1.12) drop-shadow(0 0 4px rgba(255,205,38,.65)); }
body[data-theme="prism"]:not([data-bedtime="true"]) .cell.item.paint:not(.collected) .piece-symbol { filter:saturate(1.25) brightness(1.12) drop-shadow(0 0 5px rgba(255,50,164,.65)); }
body[data-theme="prism"]:not([data-bedtime="true"]) .player .player-art { filter:saturate(1.3) brightness(1.08) drop-shadow(0 0 5px rgba(43,236,255,.6)); }
body[data-theme="prism"]:not([data-bedtime="true"]) .player::after { border-color:#8affff;box-shadow:0 0 9px rgba(53,246,255,.4); }
body[data-theme="prism"]:not([data-bedtime="true"]) .cell.portal::before { filter:saturate(1.3) drop-shadow(0 0 5px rgba(255,60,175,.65)); }
body[data-theme="prism"]:not([data-bedtime="true"]) .cell.exit.ready::before { filter:brightness(1.12) drop-shadow(0 0 5px rgba(189,255,54,.65)); }
body[data-theme="prism"]:not([data-bedtime="true"]) .trail-dot::before { background:#48ffff;box-shadow:0 0 7px rgba(53,246,255,.75); }

/* Carry the same neon language into the room map and score display. */
body[data-theme="prism"]:not([data-bedtime="true"]) .brand b { color:#c4ff44;text-shadow:0 0 13px rgba(189,255,54,.35); }
body[data-theme="prism"]:not([data-bedtime="true"]) .chapter-sigil { color:#4cf6ff;background:rgba(53,246,255,.12);box-shadow:0 0 8px rgba(53,246,255,.13); }
body[data-theme="prism"]:not([data-bedtime="true"]) .objective { background:#1f1240;box-shadow:0 0 0 1px rgba(173,80,255,.3),0 0 14px rgba(138,50,255,.13); }
body[data-theme="prism"]:not([data-bedtime="true"]) .objective i.done { box-shadow:inset 0 0 0 1px #3bf1ff,0 0 7px rgba(53,246,255,.3); }
body[data-theme="prism"]:not([data-bedtime="true"]) .flow-meter i.on { box-shadow:0 0 7px rgba(189,255,54,.4); }
body[data-theme="prism"]:not([data-bedtime="true"]) .flow-meter i.on:nth-child(3),body[data-theme="prism"]:not([data-bedtime="true"]) .flow-meter i.on:nth-child(4) { box-shadow:0 0 7px rgba(53,246,255,.45); }
body[data-theme="prism"]:not([data-bedtime="true"]) .rooms-button,body[data-theme="prism"]:not([data-bedtime="true"]) .controls .hint { box-shadow:0 2px 0 #658e12,0 0 13px rgba(189,255,54,.23); }
body[data-theme="prism"]:not([data-bedtime="true"]) .chapter-card { background:linear-gradient(135deg,#211343,#14132e);border-color:#644695; }
body[data-theme="prism"]:not([data-bedtime="true"]) .chapter-card.current,body[data-theme="prism"]:not([data-bedtime="true"]) .chapter-card.expanded { border-color:#39efff;box-shadow:inset 0 0 15px rgba(53,246,255,.05),0 0 10px rgba(53,246,255,.15); }
body[data-theme="prism"]:not([data-bedtime="true"]) .room-grid button { border:1px solid #754cad;background:linear-gradient(135deg,#2b184d,#182141); }
body[data-theme="prism"]:not([data-bedtime="true"]) .room-grid button.cleared { border-color:#329ca8;color:#94f9ff; }
body[data-theme="prism"]:not([data-bedtime="true"]) .room-grid button.playing { border-color:#d9ff63;background:#bdff36;color:#152003;box-shadow:0 0 10px rgba(189,255,54,.28); }
body[data-theme="prism"]:not([data-bedtime="true"]) .theme-picker [data-theme="prism"] i { --preview-bg:#180c37;background:radial-gradient(ellipse at 20% 70%,rgba(53,246,255,.2),transparent 70%),radial-gradient(ellipse at 90% 20%,rgba(255,60,175,.25),transparent 75%),#180c37; }

/* Static light only: low-power phones keep the same colors with smaller halos. */
body[data-theme="prism"]:not([data-bedtime="true"]) .app[data-effects="light"] .cell.wall { filter:saturate(1.35) brightness(1.06); }
body[data-theme="prism"]:not([data-bedtime="true"]) .app[data-effects="light"] .piece-symbol { filter:saturate(1.2) brightness(1.1); }
