/* Sowcery — midnight botanical / art-nouveau tarot */
:root {
  --navy: #0a0f26; --ink: #070a1c; --panel: rgba(13, 19, 46, 0.93); --gold: #d9b877; --gold2: #fff0c2; --line: rgba(217, 184, 119, 0.5);
  --petal: #ff8fc0; --glow: #8fd8ff; --x: #ffd76a; --silver: #dfe6f2; --good: #9ff0a0; --bad: #ff6b6b; --text: #e9e6da; --dim: #a9aabf;
  --head: 'Cinzel', 'Trajan Pro', Georgia, serif; --body: 'Alegreya', Georgia, 'Times New Roman', serif; --logo: 'Cinzel Decorative', 'Cinzel', Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #04060f; overflow: hidden; color: var(--text); font-family: var(--body); -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; }
#game { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, #0c1330 0%, #04060f 75%); }
#stage { position: relative; overflow: hidden; box-shadow: 0 0 80px rgba(0, 0, 0, 0.9); background: #070b1c; }
#board { position: absolute; left: 0; top: 0; display: block; touch-action: none; }
#ui { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; pointer-events: none; font-size: 16px; }
#ui > * { pointer-events: auto; }
.hidden { display: none !important; }
b.k-p { color: var(--petal); } b.k-g { color: var(--glow); } b.k-x { color: var(--x); } b.k-s { color: var(--silver); } b.k-k { color: var(--gold2); }

/* boot */
#boot { text-align: center; }
.boot-title { font-family: var(--logo); font-size: 64px; color: var(--gold2); text-shadow: 0 0 30px rgba(255, 215, 106, 0.5); letter-spacing: 3px; }
.boot-bar { width: 320px; height: 8px; margin: 22px auto 12px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #0a0f26; }
.boot-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #8fd8ff, #ffd76a); transition: width 0.2s; }
#boot-msg { color: var(--dim); font-style: italic; font-size: 18px; }

/* panels */
.panel { position: absolute; background: linear-gradient(180deg, rgba(16, 23, 54, 0.94), rgba(8, 12, 32, 0.95)); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(120, 150, 255, 0.06), 0 14px 44px rgba(0, 0, 0, 0.55); }
.panel::before { content: ''; position: absolute; inset: 5px; border: 1px solid rgba(217, 184, 119, 0.18); border-radius: 12px; pointer-events: none; }
.h { font-family: var(--head); font-weight: 700; color: var(--gold); letter-spacing: 2.5px; text-transform: uppercase; font-size: 13px; }
.sep { height: 1px; margin: 12px 0; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.btn { font-family: var(--head); font-weight: 700; letter-spacing: 1.5px; font-size: 14px; color: var(--gold2); background: linear-gradient(180deg, #1d2757, #101738); border: 1px solid var(--gold); border-radius: 10px; padding: 9px 14px; cursor: pointer; text-transform: uppercase; transition: transform 0.08s, box-shadow 0.15s, filter 0.15s; text-align: center; }
.btn:hover { box-shadow: 0 0 18px rgba(255, 215, 106, 0.45); filter: brightness(1.15); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn.primary { background: linear-gradient(180deg, #ffe7a3, #d19c3c); color: #2a1a05; border-color: #fff3cf; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn.small { font-size: 12px; padding: 6px 10px; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--gold); }
.btn[disabled], .btn.off { opacity: 0.4; pointer-events: none; filter: grayscale(0.6); }
.coin { display: inline-block; width: 1em; height: 1em; border-radius: 50%; vertical-align: -0.12em; margin-right: 0.25em; background: radial-gradient(circle at 35% 30%, #ffffff, #c9d3e6 45%, #7c869c 100%); box-shadow: inset 0 0 0 1px rgba(40, 50, 80, 0.8), 0 0 6px rgba(200, 220, 255, 0.5); }

/* left HUD */
#hud-left { left: 18px; top: 18px; width: 296px; height: 864px; padding: 18px 18px; display: flex; flex-direction: column; }
.night-title { font-family: var(--head); font-weight: 900; font-size: 25px; color: var(--gold2); letter-spacing: 1px; line-height: 1.1; }
.night-sub { font-family: var(--head); color: var(--gold); font-size: 14px; letter-spacing: 3px; text-transform: uppercase; margin-top: 3px; }
.stages { margin-top: 12px; display: flex; flex-direction: column; gap: 5px; }
.stage-row { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--dim); padding: 4px 8px; border-radius: 8px; border: 1px solid transparent; }
.stage-row .nm { flex: 1; font-family: var(--head); font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; }
.stage-row .tg { font-family: var(--head); font-weight: 700; }
.stage-row.cur { color: var(--gold2); border-color: var(--line); background: rgba(217, 184, 119, 0.1); }
.stage-row.done { opacity: 0.5; } .stage-row.done .nm::after { content: ' ✓'; color: var(--good); }
.stage-row.hexed .nm { color: #ff9c9c; }
.hexbox { margin-top: 10px; display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; border: 1px solid rgba(255, 107, 107, 0.45); background: rgba(90, 14, 30, 0.35); min-height: 76px; }
.hexbox.calm { border-color: rgba(217, 184, 119, 0.25); background: rgba(217, 184, 119, 0.05); }
.hexbox img { width: 58px; height: 58px; border-radius: 50%; border: 2px solid #ff8f8f; object-fit: cover; flex: none; }
.hexbox.calm img { border-color: var(--gold); }
.hexbox .hn { font-family: var(--head); font-weight: 700; color: #ffb3b3; font-size: 14px; letter-spacing: 1px; }
.hexbox.calm .hn { color: var(--gold); }
.hexbox .hd { font-size: 14px; line-height: 1.2; color: var(--text); }
.machine { margin-top: 6px; text-align: center; }
.flo-line { min-height: 22px; font-family: var(--head); font-weight: 700; color: var(--x); letter-spacing: 1px; font-size: 15px; }
.mrow { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; }
.mbox { flex: 1; border-radius: 12px; padding: 6px 4px 8px; border: 1px solid; position: relative; }
.mbox .lab { font-family: var(--head); font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; opacity: 0.85; }
.mbox .val { font-family: var(--head); font-weight: 900; font-size: 30px; line-height: 1; margin-top: 2px; transition: transform 0.08s; display: inline-block; }
.mbox.p { border-color: rgba(255, 143, 192, 0.6); background: rgba(255, 143, 192, 0.1); color: var(--petal); }
.mbox.g { border-color: rgba(143, 216, 255, 0.6); background: rgba(143, 216, 255, 0.1); color: var(--glow); }
.mx { font-family: var(--head); font-weight: 900; font-size: 22px; color: #fff; }
.bump { animation: bump 0.22s ease-out; }
@keyframes bump { 0% { transform: scale(1.45); } 100% { transform: scale(1); } }
.lastsow { margin-top: 8px; font-size: 15px; color: var(--dim); min-height: 20px; }
.lastsow b { color: var(--gold2); font-family: var(--head); }
.counters { display: flex; gap: 10px; margin-top: 4px; }
.counter { flex: 1; text-align: center; border: 1px solid var(--line); border-radius: 12px; padding: 8px 4px; background: rgba(217, 184, 119, 0.06); }
.counter .n { font-family: var(--head); font-weight: 900; font-size: 34px; line-height: 1; color: var(--gold2); }
.counter .l { font-family: var(--head); font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); margin-top: 3px; }
.counter.zero .n { color: #777c95; }
.silverbox { margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 4px; font-family: var(--head); font-weight: 900; font-size: 28px; color: var(--silver); border: 1px solid rgba(223, 230, 242, 0.35); border-radius: 12px; padding: 6px; background: rgba(223, 230, 242, 0.06); }
.silverbox small { font-size: 11px; letter-spacing: 2px; color: var(--dim); font-weight: 700; margin-left: 8px; text-transform: uppercase; }
.spacer { flex: 1; }
.btnrow { display: flex; gap: 8px; } .btnrow .btn { flex: 1; padding: 8px 4px; font-size: 12px; }

/* right HUD */
#hud-right { left: 1290px; top: 18px; width: 292px; height: 864px; padding: 18px; display: flex; flex-direction: column; }
.flo { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 9px; border: 1px solid rgba(217, 184, 119, 0.18); margin-top: 6px; background: rgba(255, 255, 255, 0.02); cursor: help; }
.flo .lv { font-family: var(--head); font-weight: 700; font-size: 11px; color: #1a1305; background: var(--gold); border-radius: 6px; padding: 2px 5px; min-width: 38px; text-align: center; }
.flo .fn { flex: 1; font-family: var(--head); font-weight: 700; font-size: 14px; color: var(--gold2); letter-spacing: 0.5px; }
.flo .fv { font-family: var(--head); font-weight: 700; font-size: 13px; white-space: nowrap; }
.flo.hit { animation: flohit 0.8s ease-out; }
@keyframes flohit { 0% { background: rgba(255, 215, 106, 0.6); transform: scale(1.06); } 100% { background: rgba(255, 255, 255, 0.02); transform: scale(1); } }
.slots { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.slot { width: 76px; height: 76px; border-radius: 12px; border: 1px dashed rgba(217, 184, 119, 0.4); background: rgba(0, 0, 0, 0.25); position: relative; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.1s; }
.slot.full { border-style: solid; border-color: var(--good); box-shadow: 0 0 12px rgba(159, 240, 160, 0.25); }
.slot.full:hover { transform: translateY(-2px) scale(1.04); }
.slot.active { box-shadow: 0 0 0 3px var(--good), 0 0 22px rgba(159, 240, 160, 0.7); }
.slot img { width: 70px; height: 70px; border-radius: 10px; object-fit: cover; }
.slot.empty::after { content: 'potion'; font-family: var(--head); font-size: 9px; letter-spacing: 2px; color: rgba(217, 184, 119, 0.4); text-transform: uppercase; }
.charms { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; min-height: 46px; }
.charm { width: 46px; height: 46px; border-radius: 50%; border: 2px solid #c59bff; overflow: hidden; cursor: help; box-shadow: 0 0 10px rgba(197, 155, 255, 0.35); }
.charm img { width: 100%; height: 100%; object-fit: cover; }
.nocharm { color: rgba(169, 170, 191, 0.6); font-style: italic; font-size: 14px; padding-top: 10px; }
.bagline { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 10px; font-family: var(--head); font-weight: 700; font-size: 14px; color: var(--text); cursor: pointer; }
.bagline span { display: inline-flex; align-items: center; gap: 3px; } .bagline img { width: 22px; height: 22px; }
.seedinfo { font-size: 13px; color: var(--dim); margin-top: 6px; }

/* hint + tips */
#hint { position: absolute; left: 330px; width: 940px; top: 872px; text-align: center; font-size: 15px; color: #d8d6c8; text-shadow: 0 2px 6px #000, 0 0 12px #000; pointer-events: none; font-style: italic; }
#hint b { color: var(--gold2); font-style: normal; }
#tip { position: absolute; left: 360px; width: 880px; bottom: 44px; padding: 16px 20px; display: flex; gap: 16px; align-items: center; z-index: 30; animation: rise 0.35s ease-out; border-color: #fff0c2; box-shadow: 0 0 40px rgba(255, 215, 106, 0.35), 0 14px 44px rgba(0, 0, 0, 0.7); }
#tip img { width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--gold); flex: none; object-fit: cover; }
#tip .tt { flex: 1; font-size: 18.5px; line-height: 1.3; }
#tip .tt b { color: var(--gold2); }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* tooltip */
#tooltip { position: absolute; width: 268px; padding: 12px 14px; z-index: 96; pointer-events: none !important; border-radius: 12px; background: rgba(8, 11, 30, 0.97); border: 1px solid var(--gold); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7); }
#tooltip .tn { font-family: var(--head); font-weight: 900; font-size: 17px; color: var(--gold2); }
#tooltip .tg { font-family: var(--head); font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; margin: 1px 0 6px; }
#tooltip .td { font-size: 16px; line-height: 1.25; }
#tooltip .ts { margin-top: 6px; font-size: 14px; color: var(--good); font-style: italic; }
#tooltip .tf { margin-top: 6px; font-size: 13px; color: var(--dim); }
.r-common { color: #d6b27a; } .r-uncommon { color: #8fd3ff; } .r-rare { color: #ffd76a; } .r-legendary { color: #ff9de1; }
.t-potion { color: #9ff0a0; } .t-charm { color: #c9a0ff; } .t-page { color: #f1dfb3; } .t-seeds { color: #f6e7bd; } .t-pack { color: #7fe3d6; } .t-hex { color: #ff9c9c; }
.seedrow { display: flex; align-items: center; gap: 6px; font-size: 15px; margin-top: 4px; line-height: 1.2; } .seedrow img { width: 22px; height: 22px; flex: none; } .seedrow b.cnt { font-family: var(--head); color: var(--gold2); }

/* market */
#shop { left: 14px; top: 18px; width: 664px; height: 864px; padding: 16px 20px; display: flex; flex-direction: column; }
.shop-head { display: flex; gap: 14px; align-items: center; }
.shop-head img { width: 92px; height: 92px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; box-shadow: 0 0 20px rgba(255, 215, 106, 0.3); }
.shop-title { font-family: var(--logo); font-weight: 700; font-size: 27px; color: var(--gold2); text-shadow: 0 0 16px rgba(255, 215, 106, 0.35); }
.shop-quip { font-style: italic; color: #cfd0de; font-size: 16.5px; margin-top: 2px; line-height: 1.2; }
.shop-silver { margin-left: auto; font-family: var(--head); font-weight: 900; font-size: 34px; color: var(--silver); white-space: nowrap; text-align: right; }
.shop-silver small { display: block; font-size: 11px; letter-spacing: 2px; color: var(--dim); }
.shop-row { display: flex; gap: 12px; margin-top: 8px; justify-content: flex-start; }
.card { width: 147px; height: 236px; border-radius: 12px; position: relative; cursor: pointer; padding: 8px 9px 34px; text-align: center; background: linear-gradient(180deg, #1a2350, #0c1230); border: 1.5px solid currentColor; color: #d6b27a; transition: transform 0.12s, box-shadow 0.15s; flex: none; }
.card:hover { transform: translateY(-6px) rotate(-0.6deg); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.6), 0 0 22px currentColor; z-index: 2; }
.card::before { content: ''; position: absolute; inset: 3px; border-radius: 9px; border: 1px solid currentColor; opacity: 0.3; pointer-events: none; }
.card-tag { font-family: var(--head); font-size: 9.5px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; }
.card-art { width: 84px; height: 84px; margin: 4px auto 3px; border-radius: 10px; overflow: hidden; border: 1.5px solid currentColor; background: #0a0f26; }
.card-art.round { border-radius: 50%; }
.card-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-art.seedart { display: flex; align-items: center; justify-content: center; background: radial-gradient(circle, #1c2a55, #0a0f26); } .card-art.seedart img { width: 56px; height: 56px; }
.card-name { font-family: var(--head); font-weight: 700; font-size: 13.5px; color: var(--gold2); line-height: 1.1; min-height: 16px; }
.card-desc { font-size: 13.2px; line-height: 1.16; color: var(--text); margin-top: 4px; }
.card-price { position: absolute; left: 50%; bottom: 7px; transform: translateX(-50%); font-family: var(--head); font-weight: 900; font-size: 16px; color: var(--silver); background: #070a1c; border: 1px solid rgba(223, 230, 242, 0.5); border-radius: 20px; padding: 2px 12px; white-space: nowrap; }
.card.poor .card-price { color: var(--bad); border-color: rgba(255, 107, 107, 0.6); }
.card.sold { opacity: 0.22; pointer-events: none; filter: grayscale(1); }
.card.sold .card-price { visibility: hidden; }
.card.pending { box-shadow: 0 0 0 3px var(--good), 0 0 26px rgba(159, 240, 160, 0.7); transform: translateY(-6px); }
.card.dealt { animation: deal 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2) backwards; }
@keyframes deal { from { transform: translateY(40px) rotate(6deg) scale(0.7); opacity: 0; } to { transform: none; opacity: 1; } }
.shop-foot { margin-top: auto; display: flex; gap: 12px; align-items: stretch; }
.upnext { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: rgba(217, 184, 119, 0.05); display: flex; gap: 10px; align-items: center; min-height: 78px; }
.upnext img { width: 54px; height: 54px; border-radius: 50%; border: 2px solid #ff8f8f; object-fit: cover; }
.upnext .un { font-family: var(--head); font-weight: 700; color: var(--gold2); font-size: 15px; }
.upnext .ud { font-size: 14px; line-height: 1.2; color: var(--text); } .upnext .ud.hexed { color: #ffb3b3; }
.shop-btns { display: flex; flex-direction: column; gap: 8px; width: 196px; }
.shop-btns .btn.primary { font-size: 17px; padding: 14px 8px; }
.rowlab { margin-top: 10px; display: flex; align-items: baseline; gap: 10px; } .rowlab small { color: var(--dim); font-style: italic; font-size: 14px; }

/* popover (sell etc.) */
#popover { position: absolute; z-index: 55; padding: 12px; width: 220px; text-align: center; }
#popover .pn { font-family: var(--head); font-weight: 700; color: var(--gold2); margin-bottom: 8px; }
#popover .btn { display: block; width: 100%; margin-top: 6px; }

/* overlays / modals */
#overlay { position: absolute; inset: 0; z-index: 85; display: flex; align-items: center; justify-content: center; background: rgba(3, 5, 16, 0.72); animation: fade 0.25s; }
#overlay.clear { background: rgba(3, 5, 16, 0.25); pointer-events: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { position: relative; padding: 26px 30px; max-height: 840px; animation: popin 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.15); }
@keyframes popin { from { transform: scale(0.85); opacity: 0; } to { transform: none; opacity: 1; } }
.modal h1 { font-family: var(--logo); font-weight: 700; color: var(--gold2); font-size: 34px; margin: 0 0 6px; text-align: center; text-shadow: 0 0 20px rgba(255, 215, 106, 0.35); }
.modal h2 { font-family: var(--head); color: var(--gold); font-size: 15px; letter-spacing: 3px; text-transform: uppercase; margin: 0 0 14px; text-align: center; font-weight: 700; }
.modal p { font-size: 18px; line-height: 1.35; margin: 8px 0; }
.modal .close { position: absolute; right: 14px; top: 10px; font-family: var(--head); font-size: 22px; color: var(--gold); cursor: pointer; z-index: 3; }
.modal .foot { display: flex; gap: 12px; justify-content: center; align-items: center; margin-top: 18px; }
.scroll { overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.tally { width: 440px; } .tally .row { display: flex; justify-content: space-between; font-size: 20px; padding: 6px 4px; border-bottom: 1px dashed rgba(217, 184, 119, 0.25); opacity: 0; animation: rise 0.3s forwards; }
.tally .row b { font-family: var(--head); color: var(--silver); } .tally .row.neg b { color: var(--bad); }
.tally .sum { display: flex; justify-content: space-between; font-family: var(--head); font-weight: 900; font-size: 28px; color: var(--gold2); padding: 12px 4px 0; opacity: 0; animation: rise 0.3s forwards; }
.choices { display: flex; gap: 16px; justify-content: center; margin-top: 10px; }
.choices .card, .shop-row.big .card { width: 200px; height: 274px; padding-top: 10px; } .choices .card .card-art, .shop-row.big .card .card-art { width: 116px; height: 116px; margin-top: 6px; margin-bottom: 6px; }
.choices .card-desc, .shop-row.big .card-desc { font-size: 15.5px; line-height: 1.18; } .choices .card-name, .shop-row.big .card-name { font-size: 16px; } .choices .card-tag, .shop-row.big .card-tag { font-size: 10.5px; } .shop-row.big .card-price, .choices .card-price { font-size: 18px; }

/* night intro banner */
#intro { position: absolute; left: 0; right: 0; top: 300px; height: 300px; z-index: 65; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(180deg, transparent, rgba(4, 6, 18, 0.92) 18%, rgba(4, 6, 18, 0.92) 82%, transparent); animation: introA 0.4s ease-out; cursor: pointer; }
#intro.out { animation: introB 0.35s ease-in forwards; }
@keyframes introA { from { opacity: 0; transform: scaleY(0.6); } to { opacity: 1; transform: none; } }
@keyframes introB { to { opacity: 0; transform: scaleY(0.6); } }
#intro .im { font-family: var(--head); letter-spacing: 8px; color: var(--gold); font-size: 20px; text-transform: uppercase; }
#intro .it { font-family: var(--logo); font-weight: 700; font-size: 62px; color: var(--gold2); text-shadow: 0 0 30px rgba(255, 215, 106, 0.5); line-height: 1.1; }
#intro .ig { font-family: var(--head); font-size: 22px; color: var(--text); margin-top: 6px; } #intro .ig b { color: var(--gold2); font-size: 28px; }
#intro .ih { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding: 8px 18px; border: 1px solid rgba(255, 107, 107, 0.6); border-radius: 50px; background: rgba(90, 14, 30, 0.5); }
#intro .ih img { width: 62px; height: 62px; border-radius: 50%; border: 2px solid #ff8f8f; object-fit: cover; }
#intro .ih .hn { font-family: var(--head); font-weight: 900; color: #ffb3b3; font-size: 20px; } #intro .ih .hd { font-size: 18px; }

/* title screen */
#title { position: absolute; inset: 0; z-index: 80; background: #050816 center/cover no-repeat; display: flex; flex-direction: column; align-items: center; }
#title::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, rgba(5, 8, 22, 0) 0%, rgba(5, 8, 22, 0.25) 45%, rgba(5, 8, 22, 0.88) 100%); }
#title > * { position: relative; }
.logo { margin-top: 196px; font-family: var(--logo); font-weight: 900; font-size: 132px; line-height: 1; letter-spacing: 4px; background: linear-gradient(180deg, #fffbe6 10%, #ffd76a 50%, #c98a2c 90%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 0 #3b2406) drop-shadow(0 0 34px rgba(255, 215, 106, 0.55)); animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.tagline { font-family: var(--head); letter-spacing: 7px; font-size: 19px; color: #f1e6c8; text-transform: uppercase; margin-top: 6px; text-shadow: 0 2px 10px #000; }
.menu { margin-top: 44px; display: flex; flex-direction: column; gap: 12px; width: 340px; }
.menu .btn { font-size: 18px; padding: 13px; background: linear-gradient(180deg, rgba(29, 39, 87, 0.92), rgba(12, 18, 48, 0.94)); }
.menu .btn.primary { background: linear-gradient(180deg, #ffe7a3, #d19c3c); font-size: 21px; }
.menu .btn small { display: block; font-family: var(--body); font-style: italic; letter-spacing: 0; text-transform: none; font-weight: 400; font-size: 14px; opacity: 0.85; margin-top: 1px; }
.menurow { display: flex; gap: 12px; } .menurow .btn { flex: 1; font-size: 14px; padding: 11px 4px; }
.title-foot { position: absolute !important; bottom: 16px; left: 0; right: 0; text-align: center; color: rgba(233, 230, 218, 0.6); font-size: 14px; font-style: italic; }

/* kit select */
.kits { display: grid; grid-template-columns: repeat(3, 250px); gap: 14px; }
.kit { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; cursor: pointer; background: linear-gradient(180deg, #1a2350, #0c1230); transition: transform 0.12s, box-shadow 0.15s; position: relative; }
.kit:hover { transform: translateY(-3px); } .kit.sel { border-color: #fff0c2; box-shadow: 0 0 0 2px #fff0c2, 0 0 26px rgba(255, 215, 106, 0.5); }
.kit img { width: 92px; height: 92px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; }
.kit .kn { font-family: var(--head); font-weight: 900; color: var(--gold2); font-size: 17px; margin-top: 4px; } .kit .kd { font-size: 15px; line-height: 1.2; min-height: 54px; }
.kit.locked { cursor: default; } .kit.locked img { filter: grayscale(1) brightness(0.35); } .kit.locked .kd { color: var(--dim); font-style: italic; } .kit.locked:hover { transform: none; }
.kit .won { position: absolute; right: 8px; top: 6px; font-family: var(--head); font-size: 11px; color: var(--good); letter-spacing: 1px; }
.stakes { display: flex; gap: 8px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.stake { border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; cursor: pointer; font-family: var(--head); font-weight: 700; font-size: 13px; color: var(--gold); letter-spacing: 1px; }
.stake.sel { background: var(--gold); color: #1a1305; } .stake.locked { opacity: 0.35; cursor: default; }
.stake-desc { text-align: center; color: var(--dim); font-style: italic; margin-top: 8px; min-height: 22px; font-size: 16px; }

/* collection */
.tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 12px; }
.tab { font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; padding: 7px 14px; border: 1px solid var(--line); border-radius: 20px; cursor: pointer; color: var(--gold); }
.tab.sel { background: var(--gold); color: #1a1305; }
.grid { display: grid; grid-template-columns: repeat(9, 96px); gap: 10px; padding: 6px; }
.gi { width: 96px; text-align: center; cursor: help; } .gi .ga { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; margin: 0 auto; border: 2px solid currentColor; }
.gi img { width: 100%; height: 100%; object-fit: cover; } .gi .gn { font-family: var(--head); font-size: 10.5px; color: var(--text); margin-top: 3px; line-height: 1.1; min-height: 24px; }
.gi.unseen img { filter: brightness(0) invert(0.18); } .gi.unseen .gn { color: #5d6078; }
.lb { width: 620px; } .lb table { width: 100%; border-collapse: collapse; font-size: 18px; } .lb td, .lb th { padding: 6px 8px; text-align: left; border-bottom: 1px dashed rgba(217, 184, 119, 0.2); }
.lb th { font-family: var(--head); font-size: 11px; letter-spacing: 2px; color: var(--gold); text-transform: uppercase; } .lb td.rk { font-family: var(--head); font-weight: 900; color: var(--gold2); width: 44px; }
.lb tr.me td { color: var(--good); } .lb .empty { text-align: center; color: var(--dim); font-style: italic; padding: 30px; }
.field { display: flex; align-items: center; gap: 12px; margin: 12px 0; font-size: 18px; } .field label { width: 150px; font-family: var(--head); font-size: 13px; letter-spacing: 2px; color: var(--gold); text-transform: uppercase; }
.field input[type=range] { flex: 1; accent-color: #d9b877; } .field input[type=text] { flex: 1; background: #070a1c; border: 1px solid var(--line); color: var(--gold2); font-family: var(--head); font-size: 18px; padding: 8px 10px; border-radius: 8px; user-select: text; -webkit-user-select: text; }
.help { width: 900px; } .help .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 26px; } .help h3 { font-family: var(--head); color: var(--gold2); font-size: 17px; margin: 12px 0 2px; letter-spacing: 1px; } .help p { font-size: 17px; margin: 3px 0; line-height: 1.28; }
.statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 30px; font-size: 19px; width: 520px; margin: 0 auto; } .statgrid div { display: flex; justify-content: space-between; border-bottom: 1px dashed rgba(217, 184, 119, 0.2); padding: 4px 0; } .statgrid b { font-family: var(--head); color: var(--gold2); }
.unlocks { margin-top: 12px; text-align: center; } .unlock { display: inline-block; margin: 4px; padding: 6px 14px; border: 1px solid var(--good); border-radius: 20px; color: var(--good); font-family: var(--head); font-size: 13px; letter-spacing: 1px; animation: popin 0.5s backwards; }
.bigart { width: 150px; height: 150px; border-radius: 50%; border: 3px solid var(--gold); object-fit: cover; display: block; margin: 0 auto 10px; box-shadow: 0 0 40px rgba(255, 215, 106, 0.4); }
#toasts { position: absolute; left: 0; right: 0; top: 96px; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 97; pointer-events: none !important; }
.toast { padding: 9px 22px; border-radius: 30px; background: rgba(8, 11, 30, 0.95); border: 1px solid var(--gold); font-size: 18px; color: var(--gold2); animation: toast 2.6s forwards; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6); }
.toast.bad { border-color: var(--bad); color: #ffc2c2; }
@keyframes toast { 0% { opacity: 0; transform: translateY(-12px); } 8%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-8px); } }
.corner-btns { position: absolute; right: 22px; top: 18px; display: flex; gap: 8px; z-index: 5; }

.runstats div { display: flex; justify-content: space-between; font-size: 15px; color: var(--dim); padding: 3px 2px; } .runstats b { font-family: var(--head); color: var(--gold2); }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; width: 900px; padding: 4px; }
.feat { display: flex; gap: 12px; align-items: center; padding: 9px 12px; border: 1px solid rgba(217, 184, 119, 0.2); border-radius: 10px; opacity: 0.55; }
.feat.got { opacity: 1; border-color: var(--gold); background: rgba(217, 184, 119, 0.08); }
.feat .fm { font-size: 24px; color: var(--gold2); width: 22px; text-align: center; } .feat .fn { font-family: var(--head); font-weight: 700; color: var(--gold2); font-size: 15px; } .feat .fd { font-size: 15px; color: var(--text); }
.gardenrow { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 4px 0 12px; } .gt { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; border: 2px solid currentColor; cursor: help; } .gt img { width: 100%; height: 100%; object-fit: cover; }
.toast b { color: #fff; }
