/* The Arcade: niteloom.com/play, the Catch the fringe game and artist giveaway rooms. */
.arcade-head { padding-block: 40px 20px; }
.arcade-head .lede { max-width: 60ch; }
.arcade-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 8px 0 40px; }
.cab { position: relative; display: grid; gap: 10px; align-content: start; padding: 20px; border-radius: 22px; border: 2px solid var(--ink);
  background: linear-gradient(160deg, #2D1A52 0%, #22133F 60%, #1B3550 100%); box-shadow: 0 6px 0 var(--ink); color: var(--text); text-decoration: none; }
a.cab:hover { transform: translateY(-2px); }
.cab h2, .cab h3 { margin: 0; font: 400 26px/1.1 var(--f-groove); }
.cab p { margin: 0; color: var(--text-2); font-size: 15px; }
.cab .art { display: flex; align-items: end; gap: 6px; height: 120px; }
.cab .art img { height: 100%; width: auto; object-fit: contain; }
.cab .art img.ph { height: 84px; width: 84px; object-fit: cover; border-radius: 14px; border: 2px solid var(--ink); }
.cab .tag { justify-self: start; font: 400 12px/1 var(--f-sign); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: var(--gold); border: 2px solid var(--ink); border-radius: 999px; padding: 5px 10px; }
.cab .tag.mint { background: var(--mint); }
.cab .tag.dim { background: var(--text-3); }
.cab .go { justify-self: start; margin-top: 4px; }
.quest-dots { display: flex; gap: 6px; }
.quest-dots span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink); background: rgba(242, 126, 217, .18); }
.quest-dots span.on { background: var(--bloom); box-shadow: 0 0 10px var(--bloom); }
.code-chip { justify-self: start; font: 700 18px/1 var(--f-body); letter-spacing: .08em; color: var(--ink); background: var(--gold); border-radius: 10px; padding: 8px 12px; }
.tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tiers li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 12px; background: rgba(23, 11, 46, .55); border: 1px solid var(--line); font-size: 15px; }
.tiers b { color: var(--gold); }

/* ---------- the machine ---------- */
.play-wrap { display: grid; gap: 22px; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); align-items: start; padding-bottom: 48px; }
@media (max-width: 860px) { .play-wrap { grid-template-columns: 1fr; } }
.machine { position: relative; width: 100%; max-width: 440px; margin: 0 auto; aspect-ratio: 9 / 16; max-height: calc(100svh - 96px);
  border-radius: 24px; border: 3px solid var(--ink); box-shadow: 0 8px 0 var(--ink), 0 0 40px rgba(210, 26, 203, .25); overflow: hidden;
  background: radial-gradient(120% 70% at 50% 0%, #3A2270 0%, #22133F 55%, #170B2E 100%); touch-action: none; user-select: none; -webkit-user-select: none; }
@media (max-height: 760px) and (min-width: 861px) { .machine { max-width: 380px; } }
.machine canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.machine:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.hud { position: absolute; inset: 10px 12px auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; pointer-events: none; z-index: 2; }
.hud .sc { min-width: 46px; text-align: center; padding: 4px 10px 6px; border-radius: 999px; border: 2px solid var(--ink); background: rgba(23, 11, 46, .85); font: 400 24px/1 var(--f-groove); color: var(--gold); }
.hud .lv { padding: 6px 8px; border-radius: 999px; border: 2px solid var(--ink); background: rgba(23, 11, 46, .85); }
.hud .lv { display: flex; gap: 4px; }
.hud .lv i { width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--ink); background: var(--bloom); }
.hud .lv i.off { background: rgba(255, 255, 255, .12); }
.hud .tm { position: absolute; left: 0; right: 0; top: 46px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.hud .tm b { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: left; }
.hud .pz { pointer-events: auto; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink); background: rgba(23, 11, 46, .7); color: var(--text); font: 700 14px/1 var(--f-body); cursor: pointer; }
.panel { position: absolute; inset: 0; z-index: 3; display: grid; align-content: center; justify-items: center; gap: 12px; padding: 24px 22px; text-align: center;
  background: rgba(15, 7, 32, .82); backdrop-filter: blur(4px); overflow-y: auto; }
.panel[hidden] { display: none; }
.panel h2 { margin: 0; font: 400 34px/1.05 var(--f-groove); }
.panel p { margin: 0; color: var(--text-2); font-size: 15px; max-width: 32ch; }
.panel .big { font: 400 64px/1 var(--f-groove); color: var(--gold); text-shadow: 0 3px 0 var(--ink); }
.panel .crew { width: 120px; height: 120px; object-fit: contain; }
.panel .row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.panel .keys { font-size: 13px; color: var(--text-3); }
.pform { display: grid; gap: 10px; width: 100%; max-width: 330px; text-align: left; }
.pform label.f { display: grid; gap: 4px; font: 600 14px/1.3 var(--f-body); color: var(--text); }
.pform input[type=email], .pform input[type=text] { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line); background: rgba(23, 11, 46, .8); color: var(--text); font: 400 16px/1.2 var(--f-body); }
.pform input:focus-visible { outline: 2px solid var(--gold); border-color: var(--gold); }
.pform .ck { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; font-size: 14px; line-height: 1.4; color: var(--text-2); cursor: pointer; }
.pform .ck input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gold); }
.pform .btn { justify-self: stretch; text-align: center; }
.pform .err { color: var(--bloom); font-size: 14px; margin: 0; }
.pform .err:empty { display: none; }
.fine { font-size: 13px; color: var(--text-3); }
.fine a { color: var(--text-2); }

.side { display: grid; gap: 18px; }
.side .cab { box-shadow: 0 4px 0 var(--ink); }
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: b; }
.board li { counter-increment: b; display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(23, 11, 46, .55); font-size: 15px; }
.board li::before { content: counter(b); font: 700 14px/1 var(--f-body); color: var(--gold); }
.board li b { color: var(--text); }
.prize { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
.prize img { width: 96px; height: 96px; object-fit: cover; border-radius: 16px; border: 2px solid var(--ink); }
.count-down { font: 700 15px/1.3 var(--f-body); color: var(--gold); }
.note { padding: 12px 14px; border-radius: 14px; border: 2px solid var(--mint); background: rgba(79, 195, 161, .1); }
.note.warn { border-color: var(--bloom); background: rgba(242, 126, 217, .08); }
.linkish { background: none; border: 0; padding: 0; color: var(--gold); font: 600 15px/1.4 var(--f-body); text-decoration: underline; cursor: pointer; }

/* ---------- official rules ---------- */
.rules { max-width: 72ch; padding-bottom: 56px; }
.rules h2 { font: 400 26px/1.15 var(--f-groove); margin: 30px 0 8px; }
.rules p, .rules li { color: var(--text-2); }
.rules ol, .rules ul { padding-left: 1.2em; }
.rules code { word-break: break-all; font-size: 13px; color: var(--text); }
.verify { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(23, 11, 46, .55); border: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { a.cab:hover { transform: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pform label { font: 400 14px/1.4 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--text-2); }
.pform label.f { font-weight: 600; color: var(--text); }

/* ---------- controls under the newer games ---------- */
.ctl { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ctl[hidden] { display: none; }
.ctl .btn { flex: 1 1 0; min-height: 52px; padding-inline: 10px; justify-content: center; text-align: center; }
.ctl .dye { flex: 1 1 28%; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; border: 2px solid var(--ink);
  background: rgba(23, 11, 46, .85); color: var(--text); font: 700 15px/1 var(--f-body); cursor: pointer; box-shadow: 0 3px 0 var(--ink); }
.ctl .dye span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); background: var(--dye); }
.ctl .dye:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.punches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; max-width: 360px; }
.punches span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 14px; border: 2px dashed var(--line); font: 700 18px/1 var(--f-body); color: var(--text-3); background: rgba(23, 11, 46, .55); }
.punches span.on { border-style: solid; border-color: var(--gold); background: rgba(230, 204, 31, .12); }
.punches img { width: 70%; height: auto; }
.count-down.on { color: var(--mint); }
.clock-wrap { display: grid; gap: 22px; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); align-items: start; padding-bottom: 48px; }
@media (max-width: 860px) { .clock-wrap { grid-template-columns: 1fr; } }
.clock-art { width: 100%; height: auto; border-radius: 22px; border: 3px solid var(--ink); box-shadow: 0 8px 0 var(--ink); }
