:root {
  --bg: #0B1026;
  --panel: #141B3D;
  --panel-2: #1A2350;
  --panel-3: #1F2A5C;
  --wall: #2B3990;
  --wall-shade: #1E2870;
  --floor: #0E1533;
  --text: #EEF1FF;
  --muted: #A9B2E0;
  --runner: #2EE6D6;
  --chaser: #FF4D8D;
  --scroll: #FFD23F;
  --good-bg: #0F3B3A;
  --bad-bg: #3B1530;
  --bad-text: #FF8AB3;
  font-family: 'Fredoka', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); }
body { overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
h1, h2 { margin: 0; }
h2 { font-size: 18px; font-weight: 600; }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.small-text { font-size: 13px; line-height: 1.45; }
.error { color: var(--bad-text); min-height: 1.2em; margin: 4px 0 0; }

.screen { position: fixed; inset: 0; overflow: auto; }

/* ---------- shared pieces ---------- */
.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 30px; letter-spacing: 1px; }
.logo.small { font-size: 20px; }
.logo-mark { width: 44px; height: 44px; border-radius: 12px; background: var(--runner); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; font-size: 26px; }
.logo.small .logo-mark { width: 34px; height: 34px; font-size: 20px; border-radius: 10px; }

.btn { min-height: 48px; padding: 0 20px; border-radius: 14px; border: 2px solid var(--wall); background: var(--panel-3); font-weight: 600; font-size: 17px; cursor: pointer; }
.btn:hover { border-color: var(--runner); }
.btn:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--scroll); outline-offset: 2px; }
.btn-primary { background: var(--runner); color: var(--bg); border-color: var(--runner); }
.btn-primary:hover { background: #8FF5EC; }
.btn-small { min-height: 40px; font-size: 15px; padding: 0 14px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); border: 0; padding: 0; margin: 0; }
.field input, .field select { min-height: 48px; border-radius: 12px; border: 2px solid var(--wall); background: var(--bg); padding: 0 14px; font-size: 18px; color: var(--text); }
.field select:disabled { opacity: 0.75; }
.grow { flex: 1; }

.card { background: var(--panel); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.card.compact { padding: 18px; gap: 10px; }
.chip { background: var(--panel); border-radius: 999px; padding: 8px 16px; font-size: 15px; }

/* ---------- home ---------- */
#screen-home, #screen-over { display: flex; align-items: center; justify-content: center; padding: 24px; }
.home-card { width: min(460px, 100%); background: var(--panel); border-radius: 28px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.home-card.wide { width: min(820px, 100%); }
.tagline { margin: -4px 0 4px; color: var(--muted); line-height: 1.45; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 2px; background: var(--panel-3); }
.join-row { display: flex; gap: 12px; align-items: flex-end; }
.join-row .grow { flex: 1; min-width: 0; }
.join-row input { width: 100%; min-width: 0; }
.join-row .btn { flex: none; }
#code-input { text-transform: uppercase; letter-spacing: 6px; }

/* ---------- lobby ---------- */
.lobby { max-width: 1000px; margin: 0 auto; padding: 32px 24px; display: flex; flex-direction: column; gap: 24px; }
.lobby-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.room-code { background: var(--panel); border-radius: 16px; padding: 12px 20px; color: var(--muted); }
.room-code strong { color: var(--scroll); font-size: 30px; letter-spacing: 6px; margin-left: 10px; }
.lobby-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: start; }
.player-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.player-list li { display: flex; align-items: center; gap: 10px; background: var(--panel-2); border-radius: 12px; padding: 10px 12px; }
.player-list .dot { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.player-list .dot.chaser { border-radius: 9px 9px 3px 3px; }
.player-list .name { flex: 1; }
.player-list .tag { font-size: 12px; color: var(--muted); }
.player-list .out { opacity: 0.45; }
.player-list.many { gap: 4px; }
.player-list.many li { padding: 6px 10px; border-radius: 9px; font-size: 14px; }
.player-list.many .dot { width: 12px; height: 12px; }
.players-card { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.players-card .player-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.player-list button { min-height: 32px; border-radius: 8px; border: 0; background: var(--panel-3); padding: 0 10px; cursor: pointer; font-size: 13px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head h2 { margin: 0; }
.card-head + .player-list { margin-top: 12px; }
.settings { display: flex; flex-direction: column; gap: 14px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg label { flex: 1; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px; border: 2px solid var(--wall); background: var(--bg); padding: 0 12px; color: var(--text); cursor: pointer; text-align: center; }
.seg input:checked + span { border-color: var(--runner); background: var(--panel-3); color: var(--runner); font-weight: 600; }
.seg input:focus-visible + span { outline: 3px solid var(--scroll); outline-offset: 2px; }
.seg input:disabled + span { cursor: default; }
body:not(.is-host) .host-only { display: none !important; }
body.is-host .guest-only { display: none !important; }

.join-hint { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--panel-2); font-size: 15px; line-height: 1.45; }
.join-hint strong { color: var(--scroll); user-select: all; overflow-wrap: anywhere; }
.invite-banner { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--panel-2); line-height: 1.45; }
body.invited #btn-create, body.invited #screen-home .divider { display: none; }
.invite-banner strong { color: var(--scroll); letter-spacing: 2px; }

.leave-btn.confirm { border-color: var(--bad-text); color: var(--bad-text); }
.over-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.over-actions .btn { flex: 1; }

/* closet */
.closet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.small-seg { display: flex; gap: 6px; }
.chip-btn { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--wall); background: var(--bg); color: var(--text); cursor: pointer; font-size: 15px; }
.chip-btn[aria-pressed="true"], .chip-btn[aria-checked="true"] { border-color: var(--runner); color: var(--runner); background: var(--panel-3); font-weight: 600; }
.closet-body { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
#bear-preview { width: 260px; height: 300px; border-radius: 18px; background: radial-gradient(circle at 50% 35%, #26346f, #111833); cursor: grab; touch-action: none; flex: none; }
.closet-options { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 12px; }
.opt-label { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.swatches, .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 40px; height: 40px; border-radius: 12px; border: 3px solid transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25); cursor: pointer; }
.swatch[aria-checked="true"] { border-color: #ffffff; box-shadow: 0 0 0 3px var(--runner); }
.swatch.none { background: repeating-linear-gradient(45deg, #2a3366, #2a3366 6px, #1a2350 6px, #1a2350 12px); color: var(--muted); font-size: 11px; }
.player-list .look { font-size: 12px; color: var(--muted); }

/* ---------- game ---------- */
#screen-game { display: flex; flex-direction: column; padding: 16px 20px; gap: 14px; overflow: hidden; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.timer-pill { display: flex; align-items: baseline; gap: 10px; background: var(--panel); border-radius: 999px; padding: 8px 22px; }
.timer-pill span { color: var(--muted); font-size: 14px; }
.timer-pill strong { color: var(--scroll); font-size: 28px; font-variant-numeric: tabular-nums; }
.topbar-right { display: flex; gap: 10px; align-items: center; }
#role-chip.runner { color: var(--runner); }
#role-chip.chaser { color: var(--chaser); }

.game-layout { flex: 1; min-height: 0; display: flex; gap: 18px; }
.panel { width: 270px; flex: none; display: flex; flex-direction: column; gap: 12px; }
#powerup-panel { background: var(--panel); border-radius: 20px; padding: 18px; overflow: auto; }
.panel.side { width: 320px; overflow: auto; }
.board { flex: 1; min-width: 0; position: relative; border-radius: 18px; overflow: hidden; background: #000; }
#canvas { display: block; position: absolute; inset: 0; }
.darkness, .pings { position: absolute; inset: 0; pointer-events: none; }
/* Coral Reef: blue water over the 3D view, with a slow shimmer */
.board[data-tint="ocean"]::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(40,160,220,0) 30%, rgba(4,40,90,0.55) 100%),
    linear-gradient(180deg, rgba(90,200,255,0.30), rgba(20,120,200,0.26) 55%, rgba(8,60,130,0.38));
  animation: water-shimmer 6s ease-in-out infinite alternate; }
@keyframes water-shimmer { from { opacity: 0.85; } to { opacity: 1; } }
/* Every other world gets its own light and mood */
.board[data-tint]:not([data-tint=""]):not([data-tint="ocean"])::after { content: ''; position: absolute; inset: 0; pointer-events: none; animation: water-shimmer 7s ease-in-out infinite alternate; }
.board[data-tint="forest"]::after {
  background: radial-gradient(ellipse at 50% 40%, rgba(255,240,170,0) 40%, rgba(20,60,20,0.38) 100%),
    linear-gradient(160deg, rgba(255,236,150,0.22), rgba(255,255,255,0) 45%, rgba(40,90,30,0.15)); }
.board[data-tint="castle"]::after {
  background: radial-gradient(ellipse at 50% 45%, rgba(40,30,80,0) 32%, rgba(10,6,30,0.6) 100%),
    linear-gradient(180deg, rgba(120,130,255,0.14), rgba(255,140,60,0.08)); }
.board[data-tint="toys"]::after {
  background: radial-gradient(ellipse at 50% 40%, rgba(255,220,160,0) 45%, rgba(120,70,20,0.3) 100%),
    linear-gradient(135deg, rgba(255,230,160,0.28), rgba(255,255,255,0) 55%); }
.board[data-tint="candy"]::after {
  background: radial-gradient(ellipse at 50% 45%, rgba(255,180,220,0) 40%, rgba(200,60,140,0.32) 100%),
    linear-gradient(180deg, rgba(255,210,240,0.2), rgba(255,240,250,0)); }
.board[data-tint="snow"]::after {
  background: radial-gradient(ellipse at 50% 45%, rgba(220,240,255,0) 42%, rgba(200,225,255,0.55) 100%),
    linear-gradient(180deg, rgba(220,240,255,0.18), rgba(140,180,230,0.12)); }
#canvas { z-index: 0; }
.darkness, .pings, .minimap, .toasts, .spectate, .overlay, .dpad { z-index: 2; }
.minimap { position: absolute; left: 12px; bottom: 12px; width: 186px; image-rendering: pixelated; border-radius: 10px; border: 2px solid rgba(255,255,255,0.25); pointer-events: none; }
.webgl-error { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; font-size: 18px; }
.ping { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.ping-ring { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--scroll); box-shadow: 0 0 14px var(--scroll); animation: ping 1s ease-out infinite; }
.ping-name { position: absolute; left: 0; top: 18px; transform: translateX(-50%); white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--scroll); text-shadow: 0 1px 3px #000; }
.ping-arrow { display: none; position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; }
.ping-arrow::after { content: ''; position: absolute; right: -10px; top: 6px; border-left: 14px solid var(--scroll); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.ping.offscreen .ping-arrow { display: block; }
@keyframes ping { from { transform: scale(0.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.worlds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.worlds input { position: absolute; opacity: 0; pointer-events: none; }
.worlds span { display: flex; flex-direction: column; border-radius: 12px; border: 3px solid var(--wall); background: var(--bg); overflow: hidden; cursor: pointer; color: var(--text); }
.worlds img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.worlds b { font-size: 13px; font-weight: 600; padding: 6px 8px; text-align: center; }
.worlds input:checked + span { border-color: var(--runner); }
.worlds input:checked + span b { color: var(--runner); }
.worlds input:focus-visible + span { outline: 3px solid var(--scroll); outline-offset: 2px; }
.worlds input:disabled + span { cursor: default; }

.powerups { display: flex; flex-direction: column; gap: 8px; }
.pu { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; background: var(--panel-2); border: 2px solid transparent; border-radius: 14px; padding: 8px 10px; text-align: left; cursor: pointer; }
.pu:disabled { opacity: 0.45; cursor: default; }
.pu.active { border-color: var(--runner); background: var(--panel-3); }
.pu .icon { width: 38px; height: 38px; border-radius: 10px; background: var(--wall); display: flex; align-items: center; justify-content: center; flex: none; }
.pu .info { flex: 1; min-width: 0; }
.pu .label { font-weight: 600; font-size: 15px; }
.pu .desc { font-size: 12px; color: var(--muted); }
.pu .count { font-weight: 600; }
.pu .key { font-size: 11px; color: var(--muted); border: 1px solid var(--wall); border-radius: 6px; padding: 1px 6px; margin-left: 4px; }
.effects { display: flex; flex-direction: column; gap: 8px; }
.effect { background: var(--panel-2); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.effect .bar { height: 8px; background: var(--bg); border-radius: 999px; margin-top: 6px; overflow: hidden; }
.effect .bar div { height: 100%; background: var(--runner); border-radius: 999px; }
.keys { margin-top: auto; }

/* question card */
.question-card { background: var(--panel); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 14px; border: 3px solid transparent; transition: border-color 0.2s; }
.question-card.active { border-color: var(--scroll); }
.question-card.good { border-color: var(--runner); }
.question-card.bad { border-color: var(--chaser); }
.q-head { display: flex; align-items: center; gap: 12px; }
.q-badge { width: 38px; height: 38px; border-radius: 10px; background: var(--scroll); color: var(--bg); font-weight: 700; font-size: 22px; display: flex; align-items: center; justify-content: center; flex: none; }
.question-card.idle .q-badge { background: var(--panel-3); color: var(--muted); }
.q-title { font-weight: 600; font-size: 17px; }
.q-prompt { background: var(--bg); border-radius: 16px; padding: 18px 12px; text-align: center; font-size: 40px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.q-prompt.long { font-size: 30px; letter-spacing: 0; }
.q-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.q-choices button { min-height: 60px; border-radius: 14px; border: 3px solid var(--wall); background: var(--panel-3); font-size: 26px; font-weight: 600; cursor: pointer; }
.q-choices button:hover { border-color: var(--scroll); }
.q-idle-text { margin: 0; color: var(--muted); line-height: 1.45; }
.timebar { height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.timebar div { height: 100%; width: 100%; background: var(--scroll); border-radius: 999px; }
.q-result { margin: 0; min-height: 1.3em; font-size: 16px; line-height: 1.4; }
.q-result.good { color: var(--runner); }
.q-result.bad { color: var(--bad-text); }

/* overlays */
.overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 120px; font-weight: 700; color: var(--scroll); text-shadow: 0 0 30px rgba(255, 210, 63, 0.6); pointer-events: none; }
.toasts { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: 90%; }
.toast { background: rgba(20, 27, 61, 0.95); border: 2px solid var(--wall); border-radius: 12px; padding: 8px 16px; font-size: 15px; animation: toast-in 0.2s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.dpad { position: absolute; right: 16px; bottom: 16px; display: grid; grid-template-columns: repeat(3, 64px); grid-template-rows: repeat(3, 64px); gap: 6px; }
.dpad button { border-radius: 16px; border: 0; background: rgba(43, 57, 144, 0.85); color: var(--text); font-size: 24px; touch-action: none; }
.dpad button:active { background: var(--runner); color: var(--bg); }
.dpad [data-dir="up"] { grid-column: 2; grid-row: 1; }
.dpad [data-dir="left"] { grid-column: 1; grid-row: 2; }
.dpad [data-dir="right"] { grid-column: 3; grid-row: 2; }
.dpad [data-dir="down"] { grid-column: 2; grid-row: 3; }

/* sound */
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--wall); background: var(--panel); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text); font-size: 18px; }
.icon-btn:hover { border-color: var(--runner); }
.sound-btn .mute-x { display: none; }
body.muted .sound-btn .mute-x { display: inline; }
body.muted .sound-btn .wave { display: none; }
body.muted .sound-btn { color: var(--bad-text); }
.lobby-head-right { display: flex; align-items: center; gap: 12px; }
.sound-panel { position: fixed; top: 76px; right: 20px; z-index: 50; width: 320px; background: var(--panel); border: 2px solid var(--wall); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 16px 40px rgba(0,0,0,0.5); }
.sound-head { display: flex; justify-content: space-between; align-items: center; }
.sound-head .icon-btn { width: 36px; height: 36px; }
.slider { display: grid; grid-template-columns: 1fr 44px; grid-template-rows: auto auto; gap: 4px 10px; font-size: 15px; color: var(--muted); }
.slider input { grid-column: 1; grid-row: 2; width: 100%; accent-color: var(--runner); height: 28px; }
.slider output { grid-column: 2; grid-row: 2; align-self: center; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.sound-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sound-actions .btn { flex: 1; }
#sound-mute[aria-pressed="true"] { border-color: var(--bad-text); color: var(--bad-text); }

/* spectating */
.spectate { position: absolute; right: 12px; bottom: 12px; white-space: nowrap; display: flex; align-items: center; gap: 12px; background: rgba(10,14,30,0.85); border-radius: 999px; padding: 6px 8px; font-size: 17px; font-weight: 600; }
.spectate button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--panel-3); color: var(--text); font-size: 18px; cursor: pointer; }
.spectate button:hover { background: var(--wall); }
.spectate span { min-width: 160px; text-align: center; }

/* results */
.results { width: 100%; border-collapse: collapse; font-size: 15px; }
.results th { text-align: left; color: var(--muted); font-weight: 500; padding: 8px; border-bottom: 2px solid var(--panel-3); }
.results td { padding: 10px 8px; border-bottom: 1px solid var(--panel-2); }
.results tr.winner td:first-child { color: var(--scroll); font-weight: 600; }
.results tr.you td { background: var(--panel-2); }
.results tr.you td:first-child { border-radius: 10px 0 0 10px; }
.results tr.you td:last-child { border-radius: 0 10px 10px 0; }

/* smaller screens: stack panels under the maze */
@media (max-width: 1100px) {
  body { overflow: auto; }
  #screen-game { overflow: auto; }
  .game-layout { flex-direction: column; }
  .panel, .panel.side { width: 100%; }
  .board { min-height: 60vh; order: -2; }
  .panel.side { order: -1; }
  .keys { display: none; }
}

/* home: nickname hint and legal links */
.field .hint { display: block; margin-top: 6px; font-size: 13px; font-weight: 400; color: var(--muted); }
.home-card .legal-links { display: flex; justify-content: center; gap: 18px; margin-top: 4px; font-size: 13px; }
.home-card .legal-links a { color: var(--muted); text-underline-offset: 3px; }
.home-card .legal-links a:hover { color: var(--text); }

/* lobby: the start bar stays at the bottom of the screen */
.lobby-bar {
  position: sticky; bottom: 12px; z-index: 5;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 12px 12px 12px 20px; border-radius: 18px;
  background: var(--panel-3); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.lobby-count { font-weight: 600; }
.lobby-bar .error { flex: 1; margin: 0; min-width: 0; }
.lobby-bar .error:empty { display: block; }
.lobby-bar #lobby-wait { margin: 0 0 0 auto; }
.lobby-bar #btn-start { width: auto; min-width: 200px; margin-left: auto; }

/* narrow screens: keep the game's top bar on screen */
@media (max-width: 700px) {
  .topbar .logo { display: none; }
  #world-chip { display: none; }
  .topbar { justify-content: center; }
  .topbar-right { flex-wrap: wrap; justify-content: center; }
  .chip { white-space: nowrap; }
  .lobby-bar { padding: 10px; gap: 8px; }
  .lobby-bar #btn-start { flex: 1; min-width: 0; }
  .lobby-count { width: 100%; text-align: center; font-size: 14px; }
  .lobby-head-right { flex-wrap: wrap; gap: 8px; }
  .lobby-head-right .room-code { order: -1; width: 100%; padding: 8px 14px; }
  .lobby-head-right .room-code strong { font-size: 24px; }
  #btn-copy-invite { white-space: nowrap; }
}

/* nickname + random-name dice button */
.name-row { display: flex; gap: 8px; }
.name-row input { flex: 1; min-width: 0; }
.btn-dice { min-width: 52px; min-height: 48px; padding: 0 12px; font-size: 24px; line-height: 1; border-radius: 12px; }
.legal-notice { margin: 6px 0 0; font-size: 12px; line-height: 1.4; color: var(--muted); text-align: center; }

/* "‹ Teddy Arcade" link back to the arcade home page */
.home-card .back-link { align-self: flex-start; margin: -6px 0 4px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.home-card .back-link:hover { color: var(--text); }
