/* §ARCADE (2026-10-30): the arcade page. The game's own night: violet void, cyan and hot pink, Courier for the
   readouts and Chakra Petch for the names. style.css comes first (the minigames' own styles live there); this
   gives the page back its scrolling, which the game turns off. One world, dark only, painted explicitly. */
:root { --void: #0d0221; --panel: #160733; --panel2: #1d0b42; --line: #3d1a6e; --fg: #ece6ff; --dim: #a397cf;
  --cyan: #00f0ff; --pink: #ff2975; --amber: #ffd319; --green: #39ff14;
  --disp: "Chakra Petch", "Courier New", monospace; --mono: "Courier New", Courier, monospace; }
html, body { height: auto; min-height: 100%; overflow: auto; touch-action: auto; overscroll-behavior: auto; -webkit-user-select: auto; user-select: auto; background: var(--void); color: var(--fg); }
body.arcade { font-family: var(--mono); font-size: 15px; line-height: 1.55; }
body.playing { overflow: hidden; touch-action: none; }
.wrap, .wrap *, .result *, .cutpanel * { box-sizing: border-box; }
.wrap { max-width: 1120px; margin: 0 auto; padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 48px max(16px, env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 28px; }

.top { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; }
.eyebrow { margin: 0; font-size: 12px; letter-spacing: .4em; color: var(--pink); }
.top h1 { margin: 0; font-family: var(--disp); font-weight: 700; font-size: clamp(40px, 9vw, 76px); line-height: 1; letter-spacing: .06em; color: var(--cyan); text-shadow: 0 0 22px rgba(0, 240, 255, .35), 4px 4px 0 rgba(255, 41, 117, .55); }
.lede { margin: 6px 0 0; max-width: 64ch; color: var(--dim); text-wrap: pretty; }
.acct { margin: 2px 0 0; font-size: 12px; letter-spacing: .06em; color: var(--dim); min-height: 1.4em; }
.acct b, .uname { color: var(--amber); font-weight: 700; letter-spacing: .06em; }
.who { display: flex; flex-direction: column; gap: 6px; }
.signin { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px dashed var(--line); }
.signin small { color: var(--dim); }
.guest { display: flex; flex-direction: column; gap: 8px; }
.signin[hidden] { display: none; }
.sinmsg { font-size: 12px; color: var(--pink); }
.signin .mk, .foot a { color: var(--cyan); font-size: 12px; text-decoration: none; border-bottom: 1px solid rgba(0, 240, 255, .4); }
.fb.needsin button[type=submit] { opacity: .55; }

/* settings for every game */
.setbar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; padding: 12px 14px; background: rgba(13, 2, 33, .94); border: 1px solid var(--line); backdrop-filter: blur(4px); }
.set { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lab { font-size: 11px; letter-spacing: .25em; color: var(--dim); }
.lab small { letter-spacing: .05em; opacity: .8; }
.seg { display: inline-flex; border: 1px solid var(--line); }
.seg button { font: inherit; font-size: 12px; letter-spacing: .12em; color: var(--dim); background: transparent; border: 0; border-right: 1px solid var(--line); padding: 8px 12px; cursor: pointer; }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--cyan); color: var(--void); }
select { font: inherit; font-size: 12px; letter-spacing: .1em; color: var(--fg); background: var(--panel); border: 1px solid var(--line); padding: 7px 10px; }

/* the groups and the games */
.group { display: flex; flex-direction: column; gap: 14px; }
.group[hidden] { display: none; }
.group h2 { margin: 0; font-family: var(--disp); font-size: clamp(20px, 3.4vw, 26px); letter-spacing: .14em; color: var(--fg); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.group h2 small { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--dim); font-weight: 400; }
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.games.salv { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.game { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 14px; background: linear-gradient(160deg, var(--panel2), var(--panel) 60%); border: 1px solid var(--line); overflow: hidden; }
.gh { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.game h3 { margin: 0; font-family: var(--disp); font-weight: 700; font-size: 21px; letter-spacing: .1em; color: var(--cyan); }
.games.salv .game h3 { font-size: 17px; color: var(--amber); padding-right: 0; }
.game .pitch { margin: 0; color: var(--fg); text-wrap: pretty; }
.game .how { margin: 0; font-size: 12px; color: var(--dim); }
.game .art { flex: none; width: 56px; height: 56px; margin: -4px -2px -8px 0; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); }
.game .art.pod { width: 36px; height: 46px; margin: 0 8px 0 0; border-radius: 50% 50% 18% 18%; background: radial-gradient(circle at 50% 30%, #6f6a8a, #24203a 70%); border-bottom: 6px solid #ff8a3d; box-shadow: 0 6px 18px rgba(255, 120, 40, .45); }
.modes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.mode { font: inherit; font-size: 12px; letter-spacing: .12em; color: var(--void); background: var(--cyan); border: 0; padding: 9px 12px; cursor: pointer; box-shadow: 3px 3px 0 var(--pink); }
.games.salv .mode { background: var(--amber); box-shadow: 3px 3px 0 #a5560f; }
.mode:hover { filter: brightness(1.1); }
.mode:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--pink); }
button:focus-visible, select:focus-visible, textarea:focus-visible, input:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* feedback */
.fb { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.fbrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.stars { display: inline-flex; gap: 2px; }
.star { font-size: 28px; line-height: 1; background: none; border: 0; color: #4a3a6e; cursor: pointer; padding: 2px 3px; }
.star.on { color: var(--amber); text-shadow: 0 0 10px rgba(255, 211, 25, .5); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: inherit; font-size: 11px; letter-spacing: .1em; color: var(--dim); background: transparent; border: 1px solid var(--line); padding: 6px 9px; cursor: pointer; }
.chip[aria-pressed="true"] { color: var(--void); background: var(--pink); border-color: var(--pink); }
.fb textarea, .fb input { box-sizing: border-box; font: inherit; font-size: 14px; color: var(--fg); background: #0a0119; border: 1px solid var(--line); padding: 8px 10px; width: 100%; resize: vertical; }
.fb input { width: auto; flex: 1 1 180px; }
.fbacts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sent { font-size: 13px; color: var(--dim); }
.sent.good { color: var(--green); } .sent.bad { color: var(--pink); }
.fb.done .stars, .fb.done .chips, .fb.done textarea, .fb.done input, .fb.done button[type=submit] { opacity: .45; pointer-events: none; }
.go { font: inherit; font-size: 14px; letter-spacing: .2em; color: var(--void); background: var(--cyan); border: 0; padding: 12px 22px; cursor: pointer; box-shadow: 4px 4px 0 var(--pink); }
.go.alt { background: transparent; color: var(--dim); box-shadow: none; border: 1px solid var(--line); font-size: 12px; padding: 10px 16px; }
.go.small { font-size: 12px; padding: 8px 14px; }
.go:disabled { opacity: .5; cursor: default; }

/* the result of a game, over everything */
.result { position: fixed; inset: 0; z-index: 90; display: none; align-items: flex-start; justify-content: center; overflow: auto; padding: max(18px, env(safe-area-inset-top)) 16px 28px; background: rgba(8, 1, 22, .9); }
.result.open { display: flex; }
.rbox { width: min(640px, 100%); display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 0 40px rgba(0, 240, 255, .08); }
.rk { margin: 0; font-size: 11px; letter-spacing: .28em; color: var(--dim); }
.rt { margin: 0; font-family: var(--disp); font-size: clamp(30px, 8vw, 44px); letter-spacing: .1em; color: var(--cyan); text-shadow: 0 0 14px rgba(0, 240, 255, .45); }
.rt.bad { color: var(--pink); text-shadow: 0 0 14px rgba(255, 41, 117, .45); }
.rs { margin: 0; color: var(--fg); font-variant-numeric: tabular-nums; }
.racts { display: flex; flex-wrap: wrap; gap: 10px; }
.rfb { border-top: 1px solid var(--line); padding-top: 14px; }

/* your notes on a game: over everything, the game frozen behind */
.notes { position: fixed; inset: 0; z-index: 95; display: none; align-items: flex-start; justify-content: center; overflow: auto; padding: max(18px, env(safe-area-inset-top)) 16px 28px; background: rgba(8, 1, 22, .92); }
.notes.open { display: flex; }
.notes .rbox { position: relative; }
.notes .quit, .cutbox .quit { position: absolute; top: 8px; right: 8px; font: inherit; font-size: 16px; color: var(--dim); background: transparent; border: 1px solid var(--line); width: 32px; height: 32px; cursor: pointer; }
.notes .rt { font-size: clamp(24px, 6vw, 34px); }
.mine { display: flex; flex-direction: column; gap: 8px; }
.mine .empty { margin: 0; color: var(--dim); }
.mynote { padding: 10px 12px; border: 1px solid var(--line); background: var(--panel2); display: flex; flex-direction: column; gap: 4px; }
.mynote .nh { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.mynote .nh b { color: var(--cyan); font-weight: 400; letter-spacing: .06em; } .mynote .nh i { color: var(--dim); font-size: 12px; margin-left: auto; }
.mynote .nst { color: var(--amber); } .mynote .nt { color: var(--pink); font-size: 12px; letter-spacing: .08em; } .mynote .nx { white-space: pre-wrap; }
.nacts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.nedit .fb { margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.notesbtn { position: fixed; top: 34px; left: 54px; z-index: 75; display: none; font: bold 12px var(--mono); letter-spacing: .08em; color: #e8e4f4; background: rgba(13, 2, 33, .78); border: 1px solid #3d1a6e; height: 30px; padding: 0 10px; cursor: pointer; }
.notesbtn small { opacity: .6; }
body.playing .notesbtn { display: block; }

/* a salvage game, over the page */
.cutpanel { position: fixed; inset: 0; z-index: 70; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(8, 1, 22, .94); touch-action: none; }
.cutpanel.open { display: flex; }
.cutbox { position: relative; width: min(420px, 100%); padding: 18px 16px 14px; background: var(--panel); border: 1px solid var(--line); }
.cutbox .cutgame { margin: 0; }
.cutbox .cghead { padding-right: 36px; }

/* Matt's list */
.admin .note { padding: 10px 12px; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 4px; }
.admin .list { display: flex; flex-direction: column; gap: 8px; }
.admin .nh { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.admin .nh b { color: var(--cyan); } .admin .nh i { color: var(--dim); font-size: 12px; margin-left: auto; }
.admin .nst { color: var(--amber); } .admin .nt { color: var(--pink); font-size: 12px; letter-spacing: .08em; }
.admin .note.hl { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber), 0 0 18px rgba(255, 211, 25, .25); }
.admin .ned { color: var(--dim); font-size: 11px; }
.admin .nx { white-space: pre-wrap; } .admin .nd { color: var(--dim); font-size: 11px; overflow-wrap: anywhere; }
.admin .sum { margin: 0; color: var(--dim); }

.foot { color: var(--dim); font-size: 12px; border-top: 1px solid var(--line); padding-top: 14px; max-width: 72ch; }
@media (prefers-reduced-motion: reduce) { .mode:active { transform: none; } }
