/* Apocalypse Survivors — gritty but cosy: dark earth, rust, lamp glow and toxic green. */
:root {
    --bg: #140e0b;
    --earth: #221710;
    --earth-2: #2f2118;
    --earth-3: #463224;
    --edge: #5e4532;
    --edge-hi: #7d5d43;
    --rust: #d0662c;
    --rust-hi: #f2924a;
    --rust-lo: #8f3f17;
    --toxic: #a6e64f;
    --toxic-lo: #5d9a2a;
    --lamp: #ffc46b;
    --bone: #f3e7d0;
    --bone-soft: #cdb99a;
    --bone-faint: #8f7b63;
    --good: #93d65a;
    --warn: #eaa93a;
    --bad: #ef5b42;
    --decide: #f0b43a;
    --panel: rgba(28, 19, 13, 0.94);
    --panel-2: rgba(44, 31, 22, 0.96);
    --glass: rgba(20, 13, 9, 0.72);
    --r: 16px;
    --ui: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
    --deco: "Black Ops One", "Impact", system-ui, sans-serif;
    --sat: env(safe-area-inset-top, 0px);
    --sab: env(safe-area-inset-bottom, 0px);
    --sal: env(safe-area-inset-left, 0px);
    --sar: env(safe-area-inset-right, 0px);
    --shadow: 0 2px 0 rgba(0, 0, 0, 0.35), 0 10px 26px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
    color: var(--bone);
    font: 16px/1.35 var(--ui);
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse at 50% -10%, rgba(255, 170, 90, 0.18), transparent 60%),
        radial-gradient(ellipse at 100% 110%, rgba(166, 230, 79, 0.08), transparent 55%),
        repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.012) 0 2px, transparent 2px 7px);
    background-attachment: fixed;
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }
.muted { color: var(--bone-faint); }
.small { font-size: 13px; }
.center { text-align: center; }

/* ---------------------------------------------------------------- buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 46px; padding: 10px 18px; border-radius: 12px;
    border: 2px solid var(--edge); background: linear-gradient(180deg, #3d2b1f, #2c1f16);
    color: var(--bone); font-weight: 600; font-size: 16px; cursor: pointer;
    box-shadow: 0 3px 0 #120b07, inset 0 1px 0 rgba(255, 220, 170, 0.08);
    transition: transform 0.08s, box-shadow 0.08s, filter 0.15s;
    touch-action: manipulation; text-align: center;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #120b07; }
.btn:disabled { opacity: 0.45; cursor: default; filter: saturate(0.4); transform: none; }
.btn small { font-weight: 500; opacity: 0.8; font-size: 0.8em; }
.btn-primary {
    color: #fff8ee; border-color: var(--rust-lo);
    background: linear-gradient(180deg, var(--rust-hi), var(--rust) 60%, #b9531f);
    box-shadow: 0 3px 0 var(--rust-lo), 0 8px 22px rgba(208, 102, 44, 0.35), inset 0 1px 0 rgba(255, 230, 190, 0.4);
    text-shadow: 0 1px 0 rgba(90, 30, 5, 0.55);
}
.btn-primary:active { box-shadow: 0 1px 0 var(--rust-lo); }
.btn-play {
    color: #142208; border-color: #4a7a1f;
    background: linear-gradient(180deg, #c6f27a, var(--toxic) 60%, #86c43a);
    box-shadow: 0 3px 0 #3d6618, 0 8px 22px rgba(166, 230, 79, 0.28), inset 0 1px 0 rgba(255, 255, 220, 0.5);
}
.btn-danger {
    color: #fff; border-color: #8a2416;
    background: linear-gradient(180deg, #ff7a5a, var(--bad) 60%, #c33a24);
    box-shadow: 0 3px 0 #7a1f12, 0 8px 22px rgba(239, 91, 66, 0.3);
}
.btn-ghost { background: transparent; box-shadow: none; border-color: transparent; color: var(--bone-soft); }
.btn-small { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 10px; }
.btn-big { min-height: 56px; font-size: 18px; padding: 12px 24px; border-radius: 14px; }

/* ---------------------------------------------------------------- screens */
.screen {
    min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: calc(16px + var(--sat)) calc(16px + var(--sar)) calc(16px + var(--sab)) calc(16px + var(--sal));
}

/* title */
.title-screen { position: relative; overflow: hidden; gap: 0; justify-content: flex-end; }
.title-art {
    position: absolute; inset: 0; z-index: 0;
    background: url("art/title.webp") center 22% / cover no-repeat, #1a120d;
    filter: saturate(1.05);
}
.title-art::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 6, 4, 0) 22%, rgba(16, 10, 7, 0.55) 48%, rgba(16, 10, 7, 0.96) 72%, #140e0b 100%),
        radial-gradient(ellipse at 50% 30%, transparent 40%, rgba(0, 0, 0, 0.45));
}
.title-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.title-main {
    position: relative; z-index: 2; width: 100%; max-width: 460px;
    display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
    animation: rise 0.9s cubic-bezier(.2, .8, .2, 1) both;
}
.logo { display: flex; flex-direction: column; align-items: center; }
.logo-kicker {
    margin: 0 0 4px; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; font-size: 12px;
    color: var(--toxic); text-shadow: 0 0 12px rgba(166, 230, 79, 0.6);
}
.game-title {
    font-family: var(--deco); font-weight: 400; line-height: 0.88; letter-spacing: 0.02em;
    display: flex; flex-direction: column; align-items: center;
    font-size: clamp(42px, 13vw, 74px);
    color: #ffe7c2;
    background: linear-gradient(180deg, #fff3d6 0%, #ffc46b 45%, #e0672b 75%, #9a3a12 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 3px 0 #2a1307) drop-shadow(0 0 22px rgba(255, 140, 60, 0.4));
}
.game-title span:last-child { font-size: 0.86em; }
.logo-sub {
    margin: 8px 0 0; padding: 3px 14px; border-radius: 999px;
    font-family: var(--deco); font-size: 15px; letter-spacing: 0.24em; text-transform: uppercase;
    color: #1d2a0d; background: linear-gradient(180deg, #c6f27a, var(--toxic));
    box-shadow: 0 0 18px rgba(166, 230, 79, 0.45), 0 2px 0 #3d6618;
}
.tagline { margin: 2px 0 4px; color: var(--bone-soft); font-size: 15px; max-width: 380px; text-shadow: 0 1px 2px #000; }
.title-btns { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 340px; }
.howto {
    width: 100%; max-width: 420px; text-align: left;
    background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r); padding: 4px 14px;
}
.howto summary { cursor: pointer; font-weight: 600; padding: 10px 0; color: var(--bone-soft); list-style: none; text-align: center; }
.howto summary::-webkit-details-marker { display: none; }
.howto-body { padding-bottom: 12px; font-size: 14.5px; color: var(--bone-soft); }
.howto-body h3 { font-size: 15px; color: var(--lamp); margin: 12px 0 4px; }
.howto-body ul { margin: 4px 0; padding-left: 18px; }
.howto-body li { margin: 3px 0; }
.howto-body b { color: var(--bone); }

/* panels (setup, lobby) */
.panel {
    width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 12px;
    background: linear-gradient(180deg, rgba(48, 34, 24, 0.97), rgba(28, 19, 13, 0.97));
    border: 2px solid var(--edge); border-radius: 20px; padding: 20px;
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 220, 170, 0.08);
    position: relative;
    animation: rise 0.45s cubic-bezier(.2, .8, .2, 1) both;
}
.panel::before {
    content: ""; position: absolute; inset: 6px; border-radius: 14px; pointer-events: none;
    border: 1px dashed rgba(255, 196, 107, 0.12);
}
.panel-title { font-family: var(--deco); font-weight: 400; font-size: 26px; color: var(--lamp); letter-spacing: 0.02em; }
.sub-title { font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--bone-faint); margin-top: 4px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--bone-soft); }
input, select {
    font: inherit; color: var(--bone); background: #160f0b; border: 2px solid var(--edge); border-radius: 12px;
    min-height: 46px; padding: 8px 12px; width: 100%;
}
input:focus, select:focus { outline: none; border-color: var(--rust-hi); box-shadow: 0 0 0 3px rgba(242, 146, 74, 0.25); }
.divider { display: flex; align-items: center; gap: 10px; color: var(--bone-faint); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--edge); }
.code-row { display: flex; gap: 8px; }
.code-row input { text-transform: uppercase; letter-spacing: 0.3em; text-align: center; font-weight: 700; min-width: 0; }
.code-row .btn { flex: none; }
.error { margin: 0; color: #ffb1a3; background: rgba(239, 91, 66, 0.14); border: 1px solid rgba(239, 91, 66, 0.4); padding: 8px 12px; border-radius: 10px; font-size: 14px; }
.lobby-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.player-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.player-list li {
    padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--edge);
    font-weight: 600;
}
.player-list li.me { border-color: var(--rust); background: rgba(208, 102, 44, 0.12); }
.player-list li.offline { opacity: 0.5; }
.player-list li.spectator { font-weight: 400; color: var(--bone-soft); }
.select-row { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--bone-soft); font-weight: 600; }
.blurb { margin: -4px 0 0; font-size: 14px; color: var(--bone-soft); font-style: italic; }
.blurb:empty { display: none; }
.diff-explain { list-style: none; margin: -4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--bone-faint); }
.diff-explain li { padding: 6px 10px; border-radius: 8px; border: 1px solid transparent; transition: all 0.2s; }
.diff-explain li b { color: var(--bone-soft); }
.diff-explain[data-sel="easy"] li[data-d="easy"],
.diff-explain[data-sel="normal"] li[data-d="normal"],
.diff-explain[data-sel="hard"] li[data-d="hard"] { color: var(--bone); border-color: var(--edge); background: rgba(0, 0, 0, 0.25); }
.diff-explain[data-sel="hard"] li[data-d="hard"] b { color: var(--bad); }
.diff-explain[data-sel="easy"] li[data-d="easy"] b { color: var(--good); }
.diff-explain[data-sel="normal"] li[data-d="normal"] b { color: var(--lamp); }

.net-banner {
    position: fixed; top: calc(8px + var(--sat)); left: 50%; transform: translateX(-50%); z-index: 90;
    background: var(--bad); color: #fff; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 14px;
    box-shadow: var(--shadow); animation: pulse 1.2s infinite;
}

/* mini-game overlay (content owned by script.js) */
.mg-overlay {
    position: fixed; inset: 0; z-index: 70;
    background: radial-gradient(ellipse at 50% 30%, rgba(40, 28, 20, 0.97), rgba(12, 8, 6, 0.99));
    animation: fade 0.25s both;
}

/* toasts */
.toasts {
    position: fixed; left: 50%; top: calc(112px + var(--sat)); transform: translateX(-50%); z-index: 95;
    display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none;
    width: min(92vw, 420px);
}
.toast {
    background: rgba(24, 16, 11, 0.95); border: 1px solid var(--edge); color: var(--bone);
    padding: 9px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; text-align: center;
    box-shadow: var(--shadow); animation: toastIn 0.3s cubic-bezier(.2, .9, .3, 1.3) both;
    transition: opacity 0.4s, transform 0.4s; max-width: 100%;
}
.toast.out { opacity: 0; transform: translateY(8px); }
.toast.tone-good { border-color: #4d7a2a; background: linear-gradient(180deg, rgba(48, 70, 26, 0.96), rgba(28, 40, 16, 0.96)); }
.toast.tone-bad { border-color: #8a2e1c; background: linear-gradient(180deg, rgba(90, 30, 18, 0.96), rgba(50, 18, 10, 0.96)); }
.toast.tone-alert { border-color: #a5491c; background: linear-gradient(180deg, rgba(110, 50, 18, 0.96), rgba(60, 26, 10, 0.96)); }
.toast.tone-decide { border-color: var(--decide); color: #fff3d6; background: linear-gradient(180deg, rgba(120, 82, 18, 0.96), rgba(70, 46, 10, 0.96)); }

/* ================================================================ game */
.game.sv-game {
    position: fixed; inset: 0; overflow: hidden; background: #120c09;
    user-select: none; -webkit-user-select: none;
}
.sv-game .map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.sv-game .map:active { cursor: grabbing; }

/* HUD: clock + resources */
.hud {
    position: absolute; top: calc(6px + var(--sat)); left: calc(6px + var(--sal)); right: calc(6px + var(--sar)); z-index: 10;
    display: flex; gap: 6px; align-items: stretch; pointer-events: none;
}
.hud > * { pointer-events: auto; }
.clock {
    flex: none; width: 58px; border-radius: 14px; padding: 4px 2px 3px; cursor: pointer;
    background: var(--glass); border: 1px solid rgba(255, 196, 107, 0.22);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.clock .ring { width: 34px; height: 34px; }
.clock .trk-night { fill: none; stroke: #3b3a6e; stroke-width: 5; }
.clock .trk-day { fill: none; stroke: #f0a94a; stroke-width: 5; }
.clock .hand { stroke: #1a120d; stroke-width: 1.6; }
.clock .hand.sun { fill: #ffe27a; }
.clock .hand.moon { fill: #dfe6ff; }
.clock .clk { display: flex; flex-direction: column; align-items: center; line-height: 1.05; }
.clock .clk b { font-family: var(--deco); font-weight: 400; font-size: 13px; color: var(--lamp); letter-spacing: 0.03em; }
.clock .clk small { font-size: 10px; color: var(--bone-soft); font-variant-numeric: tabular-nums; }
.sv-game.night .clock { border-color: rgba(150, 160, 255, 0.35); }

.resbar {
    flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px;
}
.res {
    position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center;
    column-gap: 3px; padding: 3px 6px 4px; border-radius: 10px; min-width: 0;
    background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transition: border-color 0.3s, background 0.3s;
}
.res .ri { grid-row: 1; font-size: 15px; line-height: 1; }
.res b { grid-row: 1; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; white-space: nowrap; }
.res .bar { grid-column: 1 / -1; grid-row: 2; display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; margin-top: 2px; }
.res .bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--rust), var(--lamp)); border-radius: 3px; transition: width 0.5s; }
.res .rate { position: absolute; right: 5px; top: 3px; font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.res .rate.up { color: var(--good); }
.res .rate.down { color: #ff9a85; }
.res[data-res="power"] .bar > i { background: linear-gradient(90deg, #d9b23a, #fff27a); }
.res[data-res="water"] .bar > i { background: linear-gradient(90deg, #2f86c0, #7fd3ff); }
.res[data-res="food"] .bar > i, .res[data-res="seeds"] .bar > i { background: linear-gradient(90deg, #5d9a2a, var(--toxic)); }
.res.full .bar > i { background: linear-gradient(90deg, #8a8a8a, #cfcfcf); }
.res.low { border-color: rgba(239, 91, 66, 0.8); background: rgba(70, 18, 10, 0.78); animation: lowPulse 1.2s infinite; }
.res.low b { color: #ffb1a3; }
.res.bump { animation: bump 0.4s; }

.substatus {
    position: absolute; z-index: 10; left: calc(6px + var(--sal)); top: calc(70px + var(--sat));
    display: flex; gap: 5px; flex-wrap: wrap; max-width: 62vw; pointer-events: none;
}
.substatus > * { pointer-events: auto; }
.chip {
    display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; min-height: 30px;
    background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.08); font-size: 13px; color: var(--bone-soft);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); cursor: pointer;
}
.chip b { color: var(--bone); font-weight: 800; font-variant-numeric: tabular-nums; }
.chip .sep { width: 1px; height: 12px; background: rgba(255, 255, 255, 0.15); margin: 0 2px; }
.chip .stars { color: var(--lamp); letter-spacing: 1px; }
.chip.diff { cursor: default; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding: 4px 9px; }
.chip.diff-easy { color: var(--good); }
.chip.diff-normal { color: var(--lamp); }
.chip.diff-hard { color: var(--bad); }

/* events stack */
.events {
    position: absolute; z-index: 12; left: calc(6px + var(--sal)); right: calc(58px + var(--sar)); bottom: calc(60px + var(--sab));
    display: flex; flex-direction: column-reverse; gap: 6px; pointer-events: none;
    max-height: 46%; overflow-y: auto; overscroll-behavior: contain;
}
.events > * { flex: none; }
.evc {
    pointer-events: auto; border-radius: 14px; overflow: hidden;
    background: linear-gradient(180deg, rgba(70, 26, 14, 0.94), rgba(40, 16, 9, 0.94));
    border: 1.5px solid rgba(239, 91, 66, 0.75);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 18px rgba(239, 91, 66, 0.18);
}
.evc.fresh { animation: slideIn 0.35s cubic-bezier(.2, .9, .3, 1.2) both; }
.evc.decision {
    border-color: var(--decide);
    background: linear-gradient(180deg, rgba(84, 58, 16, 0.96), rgba(46, 31, 9, 0.96));
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 22px rgba(240, 180, 58, 0.3);
}
.evc.invite { border-color: var(--toxic-lo); background: linear-gradient(180deg, rgba(40, 62, 20, 0.95), rgba(22, 34, 10, 0.95)); }
.evc.more { padding: 6px 12px; font-size: 12px; text-align: center; color: var(--bone-soft); border-color: var(--edge); background: var(--glass); }
.evc-head {
    width: 100%; display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 5px; border: 0; background: none;
    cursor: pointer; text-align: left; position: relative; min-height: 40px;
}
.evc-head.static { cursor: default; }
.evc-ico {
    flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 20px;
    background: rgba(0, 0, 0, 0.3);
}
.evc-ico img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5)); animation: wobble 2.4s ease-in-out infinite; }
.evc-name { flex: 1; font-weight: 700; font-size: 14px; line-height: 1.15; min-width: 0; }
.evc-t { font-weight: 800; font-size: 12px; color: #ffcf9a; font-variant-numeric: tabular-nums; }
.evbar { position: absolute; left: 48px; right: 10px; bottom: 5px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.evbar > i { display: block; height: 100%; background: var(--toxic); }
.evc-body { padding: 0 8px 8px; font-size: 13px; color: var(--bone-soft); }
.evc-body p { margin: 0 0 6px !important; }
.evc-btns .btn-ghost { flex: none; padding: 6px 8px; }
.evc-body p { margin: 0 0 8px; }
.evc-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.evc-btns .btn { flex: 1 1 auto; }

/* task bar + tools */
.taskbar {
    position: absolute; z-index: 11; left: 50%; transform: translateX(-50%); bottom: calc(10px + var(--sab));
    max-width: calc(100% - 84px - var(--sal) - var(--sar)); display: flex; align-items: center; gap: 8px;
    padding: 6px 8px 6px 14px; border-radius: 999px; min-height: 42px;
    background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: var(--shadow);
    font-size: 13.5px; transition: all 0.25s;
}
.taskbar .task-hint { white-space: nowrap; color: var(--bone-soft); font-size: 12px; padding-right: 6px; text-align: center; line-height: 1.25; }
.taskbar.busy { border-color: rgba(255, 196, 107, 0.45); }
.taskbar .task { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.taskbar .task.ko { color: #ffb1a3; }
.taskbar .tbar { width: 64px; flex: none; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.taskbar .tbar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--rust), var(--lamp)); transition: width 0.25s linear; }
.taskbar .x {
    flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.1);
    color: var(--bone-soft); cursor: pointer; font-size: 13px;
}
.tools {
    position: absolute; z-index: 11; right: calc(6px + var(--sar)); bottom: calc(10px + var(--sab));
    display: flex; flex-direction: column; gap: 6px;
}
.tool {
    position: relative; width: 44px; height: 44px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--glass); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    font-size: 19px; cursor: pointer; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.tool.on { border-color: var(--toxic); box-shadow: 0 0 12px rgba(166, 230, 79, 0.45); }
.tool .badge {
    position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
    background: var(--rust); color: #fff; font-size: 11px; font-style: normal; font-weight: 800; display: grid; place-items: center;
}
.menu-pop {
    position: absolute; z-index: 30; right: calc(58px + var(--sar)); bottom: calc(10px + var(--sab));
    display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 14px;
    background: var(--panel); border: 1px solid var(--edge); box-shadow: var(--shadow);
    animation: pop 0.2s both;
}

/* banner */
.banner {
    position: absolute; z-index: 40; left: 50%; top: 34%; transform: translate(-50%, -50%);
    display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; pointer-events: none;
    padding: 14px 26px; border-radius: 18px; min-width: 220px; max-width: 90vw;
    background: linear-gradient(180deg, rgba(40, 26, 16, 0.92), rgba(20, 13, 8, 0.92));
    border: 2px solid var(--edge-hi); box-shadow: var(--shadow), 0 0 40px rgba(255, 170, 80, 0.25);
}
.banner b { font-family: var(--deco); font-weight: 400; font-size: 30px; color: var(--lamp); letter-spacing: 0.03em; }
.banner small { color: var(--bone-soft); font-size: 14px; }
.banner.tone-night { border-color: #5a5aa0; box-shadow: var(--shadow), 0 0 40px rgba(120, 120, 255, 0.25); }
.banner.tone-night b { color: #cfd6ff; }
.banner.show { animation: bannerIn 2.8s cubic-bezier(.2, .9, .3, 1) both; }

/* bottom sheet / side panel */
.sheet {
    position: absolute; z-index: 20; left: 0; right: 0; bottom: 0;
    max-height: min(64%, 560px); display: flex; flex-direction: column;
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border-top: 2px solid var(--edge-hi); border-radius: 22px 22px 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.55);
    animation: sheetUp 0.28s cubic-bezier(.2, .9, .3, 1) both;
    padding-bottom: var(--sab);
}
.sheet::before {
    content: ""; position: absolute; top: 6px; left: 50%; width: 42px; height: 4px; margin-left: -21px;
    border-radius: 2px; background: rgba(255, 255, 255, 0.18); z-index: 2;
}
.sheet-in { overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px 14px; -webkit-overflow-scrolling: touch; }
.sv-game.has-sheet .taskbar, .sv-game.has-sheet .tools { opacity: 0; pointer-events: none; }
.sheet-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.sheet-head > div { flex: 1; min-width: 0; }
.sheet-head h2 { font-family: var(--deco); font-weight: 400; font-size: 22px; color: var(--lamp); letter-spacing: 0.02em; line-height: 1.1; }
.sheet-sub { margin: 2px 0 0; font-size: 13px; color: var(--bone-soft); }
.sh-ico { font-size: 28px; line-height: 1; }
.sheet-x {
    flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--edge); cursor: pointer;
    background: rgba(0, 0, 0, 0.35); color: var(--bone-soft); font-size: 15px;
}
.sec { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--bone-faint); margin: 14px 0 6px; font-weight: 700; }
.sec small { color: var(--bone-soft); letter-spacing: 0; }
.sheet-foot { position: sticky; bottom: -14px; display: flex; gap: 8px; margin: 12px -14px -14px; padding: 10px 14px 14px; background: linear-gradient(180deg, rgba(28, 19, 13, 0), var(--panel) 30%); }
.sheet-foot .btn-primary { flex: 1; }

/* build cards */
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 8px; }
.bcard {
    display: flex; flex-direction: column; gap: 4px; padding: 0 0 8px; border-radius: 14px; cursor: pointer; text-align: left;
    background: #241912; border: 2px solid var(--edge); overflow: hidden; transition: transform 0.12s, border-color 0.15s, box-shadow 0.15s;
}
.bcard:active { transform: scale(0.97); }
.bcard.sel { border-color: var(--toxic); box-shadow: 0 0 0 2px rgba(166, 230, 79, 0.3), 0 6px 18px rgba(166, 230, 79, 0.2); }
.bcard.no { filter: grayscale(0.7) brightness(0.75); }
.bcard.no.sel { border-color: var(--bad); box-shadow: none; }
.bart {
    position: relative; height: 66px; background: linear-gradient(180deg, #3a2a1f, #241912) center / cover no-repeat;
    display: flex; align-items: flex-end; justify-content: space-between; padding: 4px 6px;
}
.bart::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(20, 12, 8, 0.85)); }
.bicon { position: relative; z-index: 1; font-size: 24px; filter: drop-shadow(0 2px 2px #000); }
.bw { position: relative; z-index: 1; font-size: 10px; color: var(--lamp); letter-spacing: 1px; }
.bname { padding: 0 8px; font-weight: 800; font-size: 14px; }
.bcost { padding: 0 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.cost { font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); }
.cost.short { color: #ffb1a3; background: rgba(239, 91, 66, 0.2); }
.cost.free { color: var(--good); }
.btext { padding: 0 8px; font-size: 11.5px; color: var(--bone-faint); line-height: 1.25; }
.bcard.no .btext { color: #ffb1a3; }

/* room panel */
.room-hero {
    position: relative; margin: -16px -14px 10px; height: 132px; border-radius: 20px 20px 0 0; overflow: hidden;
    background: #2a1d15 center / cover no-repeat; display: flex; align-items: flex-end;
}
.rh-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 30%, rgba(20, 13, 9, 0.96)); }
.rh-title { position: relative; display: flex; align-items: flex-end; gap: 10px; padding: 0 14px 10px; }
.rh-icon { font-size: 34px; filter: drop-shadow(0 2px 3px #000); }
.rh-title h2 { font-family: var(--deco); font-weight: 400; font-size: 24px; color: var(--lamp); text-shadow: 0 2px 4px #000; }
.rh-title p { margin: 0; font-size: 13px; color: var(--bone-soft); text-shadow: 0 1px 3px #000; }
.room-hero .sheet-x { position: absolute; top: 12px; right: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.pill { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--bone-soft); }
.pill.good { color: var(--good); background: rgba(147, 214, 90, 0.12); }
.pill.warn { color: var(--warn); background: rgba(234, 169, 58, 0.14); }
.pill.bad { color: #ffb1a3; background: rgba(239, 91, 66, 0.18); }
.prods { display: flex; flex-wrap: wrap; gap: 6px; }
.prod {
    display: inline-flex; align-items: baseline; gap: 3px; padding: 6px 10px; border-radius: 12px;
    background: rgba(147, 214, 90, 0.1); border: 1px solid rgba(147, 214, 90, 0.25); font-size: 15px;
}
.prod b { color: var(--good); }
.prod small { font-size: 11px; color: var(--bone-faint); }
.prod.in { background: rgba(239, 91, 66, 0.08); border-color: rgba(239, 91, 66, 0.25); color: #ffb1a3; }
.prod.trait-hint { background: rgba(255, 196, 107, 0.08); border-color: rgba(255, 196, 107, 0.25); font-size: 12.5px; color: var(--lamp); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.slot {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px;
    border-radius: 12px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--edge); min-height: 92px; justify-content: center;
}
.slot.empty { border-style: dashed; cursor: pointer; color: var(--bone-faint); background: transparent; }
.slot.empty:not(:disabled):hover { border-color: var(--toxic); color: var(--toxic); }
.slot .plus { font-size: 26px; line-height: 1; }
.slot-face { border: 0; background: none; padding: 0; cursor: pointer; }
.slot-name { font-size: 12px; font-weight: 700; text-align: center; line-height: 1.1; }
.slot-x { position: absolute; top: 2px; right: 2px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.5); color: var(--bone-faint); cursor: pointer; font-size: 11px; }
.slot.leader { border-color: var(--lc); background: rgba(255, 255, 255, 0.04); }
.lead-dot { font-size: 26px; color: var(--lc); text-shadow: 0 0 10px var(--lc); }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.acts .btn { flex: 1 1 140px; }

.face { width: 56px; height: 56px; object-fit: contain; object-position: bottom; display: block; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #5a4434, #2a1d15); border: 2px solid var(--edge); }
.face.sm { width: 40px; height: 40px; }
.face.lg { width: 92px; height: 92px; border-width: 3px; border-color: var(--edge-hi); }
.face.sick { border-color: var(--toxic); box-shadow: 0 0 10px rgba(166, 230, 79, 0.5); }

.picker { margin-top: 12px; padding: 10px; border-radius: 14px; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--edge); animation: fade 0.2s both; }
.picker h3 { font-size: 13px; color: var(--lamp); margin: 0 0 8px; }
.pick-row {
    width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 8px; margin-bottom: 4px;
    border-radius: 12px; border: 1px solid transparent; background: rgba(255, 255, 255, 0.04); cursor: pointer; text-align: left; min-height: 50px;
}
.pick-row:hover:not(:disabled) { border-color: var(--edge-hi); background: rgba(255, 255, 255, 0.07); }
.pick-row:disabled { opacity: 0.4; cursor: default; }
.pick-row.cur { border-color: var(--toxic-lo); }
.pr-ico { width: 40px; text-align: center; font-size: 24px; }
.pr-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pr-main b { font-size: 14px; }
.pr-main small { font-size: 12px; color: var(--bone-faint); }
.pr-traits { font-size: 16px; }

/* npc panel */
.npc-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.npc-id { flex: 1; min-width: 0; }
.npc-id h2 { font-family: var(--deco); font-weight: 400; font-size: 24px; color: var(--lamp); }
.npc-head .sheet-x { align-self: flex-start; }
.traits { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.trait { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 8px; background: rgba(255, 196, 107, 0.1); border: 1px solid rgba(255, 196, 107, 0.25); color: var(--lamp); }
.needs { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 14px; background: rgba(0, 0, 0, 0.25); }
.need { display: grid; grid-template-columns: 24px 1fr 30px; align-items: center; gap: 8px; font-size: 14px; }
.need b { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; }
.nbar { height: 9px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.nbar > i { display: block; height: 100%; border-radius: 6px; transition: width 0.4s; }
.need.ok .nbar > i { background: linear-gradient(90deg, var(--toxic-lo), var(--good)); }
.need.warn .nbar > i { background: linear-gradient(90deg, #b07a1a, var(--warn)); }
.need.bad .nbar > i { background: linear-gradient(90deg, #a52a16, var(--bad)); }
.need.bad b { color: #ffb1a3; }

/* goals / log / people */
.days { position: relative; height: 26px; border-radius: 13px; background: rgba(0, 0, 0, 0.35); overflow: hidden; margin: 4px 0 10px; border: 1px solid var(--edge); }
.days > i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--rust-lo), var(--rust), var(--lamp)); }
.days span { position: relative; display: block; text-align: center; font-weight: 800; font-size: 13px; line-height: 24px; text-shadow: 0 1px 2px #000; }
.goals { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.goals li { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); font-size: 14px; }
.goals li.done { color: var(--good); }
.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.log li { display: flex; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 13.5px; border-left: 3px solid var(--edge); background: rgba(0, 0, 0, 0.18); }
.log li small { flex: none; color: var(--bone-faint); font-variant-numeric: tabular-nums; width: 50px; }
.log li.tone-good { border-color: var(--good); }
.log li.tone-bad { border-color: var(--bad); }
.log li.tone-alert { border-color: var(--rust-hi); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.person {
    display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px;
    background: rgba(0, 0, 0, 0.25); border: 1px solid var(--edge); cursor: pointer;
}
.person.sick { border-color: var(--toxic-lo); }
.person.leaving { border-color: var(--bad); animation: lowPulse 1.2s infinite; }
.person .pn { font-weight: 700; font-size: 13px; }
.person .pj { font-size: 13px; }
.howto-list { margin: 0; padding-left: 18px; font-size: 14.5px; color: var(--bone-soft); }
.howto-list li { margin: 6px 0; }
.howto-list b { color: var(--bone); }

/* end screen */
.endwrap {
    position: absolute; inset: 0; z-index: 60; overflow-y: auto; display: flex; justify-content: center; align-items: flex-start;
    padding: calc(20px + var(--sat)) 16px calc(20px + var(--sab));
    background: radial-gradient(ellipse at 50% 20%, rgba(60, 36, 20, 0.85), rgba(8, 5, 3, 0.95));
    animation: fade 0.6s both;
}
.end-card {
    width: 100%; max-width: 480px; margin: auto 0; text-align: center; padding: 22px 18px 18px; border-radius: 22px;
    background: linear-gradient(180deg, rgba(52, 36, 25, 0.98), rgba(26, 18, 12, 0.98)); border: 2px solid var(--edge-hi);
    box-shadow: var(--shadow), 0 0 60px rgba(255, 160, 70, 0.2);
    animation: rise 0.6s cubic-bezier(.2, .8, .2, 1) both;
}
.end-card.lost { box-shadow: var(--shadow), 0 0 60px rgba(239, 91, 66, 0.2); }
.end-hero {
    position: relative; margin: -22px -18px 0; height: 120px; border-radius: 20px 20px 0 0; overflow: hidden;
    background: radial-gradient(circle at 50% 70%, #ffcf7a, #c4602a 45%, #2a1a10) center / cover no-repeat;
    display: grid; place-items: end center;
}
.end-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(40, 27, 18, 0.98)); }
.end-hero span { position: relative; z-index: 1; font-size: 52px; line-height: 1; margin-bottom: -6px; filter: drop-shadow(0 0 18px rgba(255, 190, 90, 0.9)); animation: starPop 0.7s cubic-bezier(.2, 1.6, .4, 1) both; }
.end-card h1 { font-family: var(--deco); font-weight: 400; font-size: clamp(28px, 8vw, 38px); color: var(--lamp); margin-top: 6px; }
.end-card.lost h1 { color: #ff9a85; }
.end-reason { color: var(--bone-soft); margin: 6px 0 10px; }
.end-stars { display: flex; justify-content: center; gap: 8px; font-size: 42px; line-height: 1; }
.end-stars span { color: #4a3a2e; text-shadow: 0 2px 0 #000; }
.end-stars span.on { color: #ffd166; animation: starPop 0.6s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: var(--d); text-shadow: 0 0 18px rgba(255, 209, 102, 0.7), 0 2px 0 #7a4a10; }
.end-goals { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13px; color: var(--bone-faint); }
.end-goals li.done { color: var(--lamp); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.stat { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); }
.stat span { font-size: 20px; }
.stat b { font-size: 20px; font-weight: 800; }
.stat small { font-size: 11px; color: var(--bone-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; text-align: left; border-left: 2px solid var(--edge); }
.timeline li { position: relative; display: flex; gap: 8px; padding: 4px 0; font-size: 13px; color: var(--bone-soft); }
.timeline li::before { content: ""; position: absolute; left: -20px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--edge-hi); }
.timeline li.k-good::before, .timeline li.k-day::before { background: var(--good); }
.timeline li.k-bad::before, .timeline li.k-death::before { background: var(--bad); }
.timeline li.k-alert::before, .timeline li.k-event::before { background: var(--rust-hi); }
.timeline li small { flex: none; width: 46px; color: var(--bone-faint); }
.end-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.end-btns .btn { flex: 1 1 130px; }

/* ---------------------------------------------------------------- landscape */
@media (orientation: landscape) and (max-height: 560px) {
    .screen { justify-content: center; }
    .title-screen { flex-direction: row; justify-content: flex-end; align-items: center; }
    .title-art { background-position: center 30%; background-size: cover; right: 44%; }
    .title-art::after { background: linear-gradient(90deg, rgba(16, 10, 7, 0) 40%, #140e0b 98%); }
    .title-main { max-width: 52%; margin-right: 2%; gap: 10px; }
    .game-title { font-size: clamp(34px, 6.5vw, 58px); }
    .tagline { font-size: 13.5px; }
    .howto { max-height: 40vh; overflow-y: auto; }
    .panel { max-width: 560px; padding: 14px 18px; gap: 8px; }

    .hud { right: auto; width: min(640px, calc(100% - 270px)); }
    .resbar { grid-template-columns: repeat(7, minmax(0, 1fr)); }
    .res { padding: 4px 5px; }
    .clock { width: 54px; }
    .substatus { top: calc(56px + var(--sat)); max-width: 50vw; }
    .events { top: calc(6px + var(--sat)); bottom: auto; left: auto; right: calc(6px + var(--sar)); width: 260px; max-height: calc(100% - 70px - var(--sab)); flex-direction: column; }
    .sheet {
        left: auto; top: 0; bottom: 0; right: 0; width: min(380px, 52vw); max-height: none;
        border-radius: 22px 0 0 22px; border-top: 0; border-left: 2px solid var(--edge-hi);
        padding: var(--sat) var(--sar) var(--sab) 0; animation-name: sheetLeft;
    }
    .sheet::before { display: none; }
    .sv-game.has-sheet .events { display: none; }
    .sv-game.has-sheet .hud { width: calc(100% - min(380px, 52vw) - 14px); }
    .tools { flex-direction: row; }
    .events { max-height: calc(100% - 76px - var(--sab) - var(--sat)); }
    .taskbar { left: calc(8px + var(--sal)); transform: none; max-width: calc(100% - 230px - var(--sal) - var(--sar)); }
    .menu-pop { right: calc(6px + var(--sar)); bottom: calc(62px + var(--sab)); }
    .sv-game.has-sheet .taskbar, .sv-game.has-sheet .tools { opacity: 1; pointer-events: auto; }
    .sv-game.has-sheet .tools { right: calc(min(380px, 52vw) + 6px); }
    .sv-game.has-sheet .taskbar { max-width: calc(100% - min(380px, 52vw) - 230px); }
    .room-hero { border-radius: 20px 0 0 0; height: 112px; }
    .banner { top: 40%; }
    .toasts { top: calc(64px + var(--sat)); }
}
@media (max-width: 370px) {
    .res b { font-size: 13.5px; }
    .res .ri { font-size: 13px; }
    .res .rate { font-size: 9px; }
    .clock { width: 52px; }
    .chip { font-size: 12px; padding: 3px 8px; }
}

/* ---------------------------------------------------------------- motion */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { opacity: 0.7; } }
@keyframes lowPulse { 50% { box-shadow: 0 0 14px rgba(239, 91, 66, 0.6); } }
@keyframes bump { 40% { transform: scale(1.12); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetLeft { from { transform: translateX(100%); } to { transform: none; } }
@keyframes wobble { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) scale(1.05); } }
@keyframes starPop { from { transform: scale(0) rotate(-40deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bannerIn {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    10% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
    16% { transform: translate(-50%, -50%) scale(1); }
    82% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -60%) scale(0.98); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* shared mini-game session in a panel */
.playing {
    flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px 10px; border-radius: 12px;
    background: rgba(166, 230, 79, 0.1); border: 1px solid rgba(166, 230, 79, 0.4);
}
.playing .pl-t { font-weight: 700; color: var(--toxic); flex: 1 1 auto; }
.playing .pl-who { display: flex; gap: 4px; flex-wrap: wrap; }
.playing .who { font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1.5px solid var(--lc); color: var(--bone); }
.playing .pl-me { font-size: 12px; color: var(--bone-faint); }
.playing .btn { flex: none; }
.pill.diff-easy { color: var(--good); }
.pill.diff-normal { color: var(--lamp); }
.pill.diff-hard { color: var(--bad); }

.cheer-btn { margin: 6px 0 2px; width: 100%; background: linear-gradient(#ffd27a, #e9a23b); color: #2a1a08; border-color: #a86b1e; }
.cheer-btn:disabled { opacity: .55; }
