:root {
    --bg: #0b1120;
    --bg-soft: #0d1424;
    --panel: rgba(10, 16, 31, 0.92);
    --panel-light: rgba(30, 41, 59, 0.9);
    --text: #e2e8f0;
    --text-muted: #a5b4c8;
    --accent: #f8b500;
    --shadow: rgba(15, 23, 42, 0.35);
}

* {
    box-sizing: border-box;
}

.hidden {
    display: none !important;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at 12% 8%, rgba(185, 28, 28, 0.2), transparent 30%),
        radial-gradient(circle at 88% 18%, rgba(127, 29, 29, 0.16), transparent 28%),
        radial-gradient(circle at 50% 100%, rgba(30, 64, 175, 0.14), transparent 38%),
        linear-gradient(145deg, #111827 0%, var(--bg) 48%, #070b14 100%);
    color: var(--text);
}

/* Seasonal details stay attached to the relevant game screens. */
body.halloween-season { background-image:radial-gradient(ellipse at 8% 96%,rgba(180,83,9,.09),transparent 25%),radial-gradient(ellipse at 94% 12%,rgba(124,45,18,.08),transparent 28%),linear-gradient(145deg,#111827 0%,#100f19 48%,#070b14 100%); }
.controls { position:relative; }
.halloween-crow-flight { position:absolute; z-index:5; top:-23px; left:2%; width:54px; height:38px; object-fit:contain; pointer-events:none; filter:drop-shadow(0 2px 4px rgba(0,0,0,.7)); animation:halloween-crow-route 13s ease-in-out infinite; }
@keyframes halloween-crow-route { 0% { left:2%; top:-20px; transform:scaleX(1) scale(.82) rotate(-5deg); } 24% { left:35%; top:22px; transform:scaleX(1) scale(1) rotate(4deg); } 48% { left:77%; top:-13px; transform:scaleX(1) scale(.9) rotate(-3deg); } 52% { left:77%; top:-13px; transform:scaleX(-1) scale(.9) rotate(-3deg); } 76% { left:39%; top:18px; transform:scaleX(-1) rotate(5deg); } 100% { left:2%; top:-20px; transform:scaleX(-1) scale(.82) rotate(-5deg); } }
.pack-options { position:relative; }
.halloween-crow-set-flight { position:absolute; z-index:6; top:50px; left:-70px; width:48px; height:34px; object-fit:contain; opacity:0; pointer-events:none; filter:drop-shadow(0 2px 4px rgba(0,0,0,.7)); transition:opacity .25s ease; }
.halloween-crow-set-flight.is-airborne { opacity:.96; }
.halloween-pack-leaves { position:absolute; z-index:4; inset:-16px 0 0; overflow:visible; pointer-events:none; }
.halloween-pack-leaves img { position:absolute; top:-23px; left:8%; width:21px; height:24px; opacity:0; animation:halloween-pack-leaf-fall 5.8s ease-in infinite; }
.halloween-pack-leaves img:nth-child(2) { left:25%; width:17px; animation-duration:7.2s; animation-delay:-3.7s; filter:hue-rotate(27deg); }
.halloween-pack-leaves img:nth-child(3) { left:44%; width:23px; animation-duration:6.1s; animation-delay:-1.2s; filter:hue-rotate(345deg); }
.halloween-pack-leaves img:nth-child(4) { left:62%; width:18px; animation-duration:7.8s; animation-delay:-5.4s; filter:hue-rotate(18deg); }
.halloween-pack-leaves img:nth-child(5) { left:78%; width:22px; animation-duration:6.7s; animation-delay:-2.8s; filter:hue-rotate(355deg); }
.halloween-pack-leaves img:nth-child(6) { left:93%; width:16px; animation-duration:8.1s; animation-delay:-6.2s; }
@keyframes halloween-pack-leaf-fall { 0% { opacity:0; transform:translate3d(0,-6px,0) rotate(-25deg); } 12% { opacity:.9; } 55% { transform:translate3d(24px,100px,0) rotate(175deg); } 88% { opacity:.75; } 100% { opacity:0; transform:translate3d(-9px,190px,0) rotate(330deg); } }
#pack-view { position:relative; }
.halloween-pack-footer { position:relative; display:flex; align-items:flex-end; justify-content:center; width:calc(100% + 48px); max-width:none; margin:14px -24px -18px; overflow:hidden; isolation:isolate; }
.halloween-pack-footer::after { position:absolute; z-index:2; right:0; bottom:2px; left:0; height:10px; border-radius:50% 50% 0 0 / 80% 80% 0 0; background:linear-gradient(90deg,#637c35,#879343 22%,#526b32 48%,#899546 72%,#526b32); box-shadow:0 -2px 0 rgba(255,190,72,.48),0 -6px 12px rgba(249,115,22,.12); content:''; pointer-events:none; }
.halloween-pack-footer img { display:block; flex:1 1 0; width:33.333%; min-width:0; height:auto; max-height:145px; object-fit:contain; object-position:center bottom; filter:drop-shadow(0 4px 5px rgba(0,0,0,.3)); animation:halloween-scene-bob 7s ease-in-out infinite alternate; }
.halloween-pack-footer .harvest-scene-two { animation-delay:-2.4s; filter:saturate(1.08) drop-shadow(0 4px 5px rgba(0,0,0,.3)); }
.halloween-pack-footer .harvest-scene-three { animation-delay:-4.7s; filter:saturate(1.13) drop-shadow(0 4px 5px rgba(0,0,0,.3)); }
@keyframes halloween-scene-bob { from { translate:0 1px; } to { translate:0 -3px; } }
.halloween-ghost-flight { position:absolute; z-index:4; width:clamp(38px,5.5vw,62px); height:auto; opacity:.72; pointer-events:none; filter:drop-shadow(0 4px 9px rgba(192,174,255,.36)); }
.halloween-ghost-pack { top:17%; left:-72px; animation:halloween-ghost-cross 15s ease-in-out infinite; }
.halloween-ghost-inventory { top:10%; right:-72px; animation:halloween-ghost-reverse 17s ease-in-out infinite; }
.halloween-ghost-market { top:14%; left:-72px; animation:halloween-ghost-cross 18s ease-in-out infinite -6s; }
.halloween-ghost-arcade { top:12%; right:-72px; animation:halloween-ghost-reverse 16s ease-in-out infinite -4s; }
.halloween-ghost-pack-two { top:42%; left:-62px; width:clamp(30px,4.2vw,48px); opacity:.56; animation:halloween-ghost-low 21s ease-in-out infinite -8s; }
.halloween-ghost-inventory-two { top:38%; left:-62px; width:clamp(30px,4.2vw,48px); opacity:.54; animation:halloween-ghost-low 19s ease-in-out infinite -12s; }
.halloween-ghost-market-two { top:39%; right:-62px; width:clamp(30px,4.2vw,48px); opacity:.53; animation:halloween-ghost-reverse 22s ease-in-out infinite -13s; }
.halloween-ghost-arcade-two { top:35%; left:-62px; width:clamp(30px,4.2vw,48px); opacity:.56; animation:halloween-ghost-low 20s ease-in-out infinite -3s; }
@keyframes halloween-ghost-cross { 0% { left:-72px; top:18%; transform:translateY(0) rotate(-5deg) scale(.78); } 32% { top:9%; transform:translateY(-8px) rotate(4deg) scale(.95); } 68% { top:24%; transform:translateY(5px) rotate(-3deg) scale(1.02); } 100% { left:calc(100% + 12px); top:13%; transform:translateY(-5px) rotate(5deg) scale(.82); } }
@keyframes halloween-ghost-reverse { 0% { right:-72px; top:12%; transform:translateY(0) rotate(5deg) scale(.78); } 35% { top:22%; transform:translateY(6px) rotate(-4deg) scale(1); } 70% { top:8%; transform:translateY(-7px) rotate(3deg) scale(.94); } 100% { right:calc(100% + 12px); top:18%; transform:translateY(0) rotate(-5deg) scale(.82); } }
.halloween-pack-spider { position:absolute; z-index:4; top:0; right:12px; display:grid; justify-items:center; width:58px; pointer-events:none; }
.halloween-pack-spider > span { width:2px; height:clamp(55px,8vw,82px); background:linear-gradient(#d9d5e5,rgba(217,213,229,.18)); box-shadow:0 0 4px rgba(255,255,255,.25); }
.halloween-pack-spider img { display:block; width:50px; height:50px; filter:drop-shadow(0 3px 5px rgba(0,0,0,.55)); }
@keyframes halloween-ghost-low { 0% { left:-62px; top:39%; transform:translateY(0) rotate(4deg) scale(.7); } 28% { top:48%; transform:translateY(8px) rotate(-6deg) scale(.86); } 67% { top:34%; transform:translateY(-6px) rotate(5deg) scale(1); } 100% { left:calc(100% + 12px); top:43%; transform:translateY(3px) rotate(-4deg) scale(.74); } }
.pack-roll-overlay { overflow:hidden; }
.halloween-witch-flight { position:absolute; z-index:1; top:12%; left:-130px; width:112px; height:72px; object-fit:contain; opacity:.96; filter:drop-shadow(0 3px 5px rgba(0,0,0,.72)); pointer-events:none; animation:halloween-witch-route 7s ease-in-out infinite; }
@keyframes halloween-witch-route { 0% { left:-130px; top:17%; transform:rotate(-7deg) scale(.88); } 48% { left:calc(100% - 35px); top:8%; transform:rotate(7deg) scale(1.05); } 52% { left:calc(100% - 35px); top:8%; transform:scaleX(-1) rotate(7deg) scale(1.05); } 100% { left:-130px; top:17%; transform:scaleX(-1) rotate(-7deg) scale(.88); } }
.halloween-reward-witch { position:absolute; z-index:2; top:calc(50% - 285px); left:calc(50% - 440px); width:100px; height:66px; object-fit:contain; filter:drop-shadow(0 4px 7px rgba(0,0,0,.72)); pointer-events:none; animation:halloween-reward-witch-route 8s ease-in-out infinite; }
@keyframes halloween-reward-witch-route { 0% { transform:translate(0,14px) rotate(-7deg); } 25% { transform:translate(190px,-14px) rotate(5deg); } 50% { transform:translate(410px,10px) scaleX(-1) rotate(7deg); } 75% { transform:translate(190px,25px) scaleX(-1) rotate(-5deg); } 100% { transform:translate(0,14px) rotate(-7deg); } }
@media (max-width:620px) { .halloween-crow-flight { width:42px; height:31px; top:-20px; }.halloween-pack-footer { width:calc(100% + 24px); margin:10px -12px -12px; }.halloween-pack-footer img { max-height:74px; }.halloween-pack-footer .harvest-scene-three { display:none; }.halloween-crow-set-flight { width:38px; height:28px; }.halloween-pack-leaves img { width:16px; height:19px; }.halloween-witch-flight { width:86px; height:58px; }.halloween-reward-witch { top:calc(50% - 280px); left:calc(50% - 165px); width:75px; height:52px; animation-duration:7s; }.halloween-pack-spider { right:8px; }.halloween-pack-spider img { width:40px; height:40px; }.halloween-ghost-flight { width:40px; opacity:.6; } }
@media (prefers-reduced-motion:reduce) { .halloween-crow-flight,.halloween-witch-flight,.halloween-reward-witch,.halloween-ghost-flight,.halloween-pack-spider,.halloween-pack-footer img,.halloween-pack-leaves img { animation:none; opacity:.75; } }

.auth-screen {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: min(430px, 100%);
    padding: 32px;
    border: 1px solid rgba(248, 113, 113, 0.28);
    border-radius: 22px;
    background: rgba(10, 16, 31, 0.9);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38), 0 0 30px rgba(185, 28, 28, 0.12);
}

.auth-card h1 {
    margin: 0;
    font-size: clamp(1.9rem, 5vw, 2.6rem);
}

.auth-intro {
    margin: 10px 0 24px;
    color: var(--text-muted);
    line-height: 1.5;
}

.auth-form {
    display: grid;
    gap: 9px;
}

.auth-form label {
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 700;
}

.auth-form input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 10px;
    outline: none;
    background: rgba(15, 23, 42, 0.82);
    color: var(--text);
    font: inherit;
}

.auth-form input:focus {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.14);
}

.password-field {
    display: flex;
    align-items: center;
    gap: 8px;
}

.password-field input {
    min-width: 0;
}

.password-toggle {
    flex: 0 0 58px;
    min-height: 46px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563a8, #334b78);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(37, 99, 168, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.password-toggle:hover,
.auth-mode-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(37, 99, 168, 0.3);
}

.password-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
}

.password-rule {
    padding: 5px 9px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.password-rule.valid {
    border-color: rgba(52, 211, 153, 0.65);
    color: #6ee7b7;
}

.auth-submit {
    width: 100%;
    margin-top: 8px;
}

.auth-mode-toggle {
    width: 100%;
    margin-top: 14px;
    padding: 12px 16px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563a8, #334b78);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(37, 99, 168, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guest-entry-button {
    width: 100%;
    margin-top: 14px;
    padding: 10px 16px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.72);
    color: #cbd5e1;
    font-weight: 800;
    cursor: pointer;
}

.auth-status {
    min-height: 1.3em;
    margin: 18px 0 0;
    color: #cbd5e1;
    font-size: 0.85rem;
    line-height: 1.4;
}

.auth-status.error {
    color: #fca5a5;
}

.guest-modal {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(5px);
}

.guest-modal-card {
    width: min(430px, 100%);
    padding: 28px;
    border: 1px solid rgba(248, 113, 113, 0.38);
    border-radius: 18px;
    background: #0a101f;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.guest-modal-card h2 {
    margin: 0;
}

.guest-modal-card p:not(.section-kicker) {
    margin: 10px 0 22px;
    color: var(--text-muted);
    line-height: 1.5;
}

.guest-modal-actions {
    display: flex;
    gap: 10px;
}

.guest-modal-actions .primary-button,
.guest-modal-actions .guest-stay-button {
    flex: 1;
}

.guest-button,
.guest-stay-button {
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563a8, #334b78);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(37, 99, 168, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.username-display {
    margin-left: auto;
    color: #fecaca;
    font-size: 0.9rem;
    font-weight: 800;
}
.username-display.dedicated-player-title { background:linear-gradient(90deg,#38bdf8 5%,#e2e8f0 48%,#fb7185 95%); background-clip:text; -webkit-background-clip:text; -webkit-text-fill-color:transparent; color:transparent; }
.username-display.dedicated-player-title::after { display:block; margin-top:2px; color:#cbd5e1; font-size:.62em; font-weight:800; letter-spacing:.12em; text-align:center; content:attr(data-title-label); }
.username-display.admin-player-title { position:relative; isolation:isolate; color:#fff; background:linear-gradient(105deg,#fff7cc 0%,#fbbf24 14%,#fb7185 30%,#c084fc 47%,#38bdf8 62%,#34d399 78%,#fbbf24 91%,#fff7cc 100%); background-size:260% auto; background-clip:text; -webkit-background-clip:text; -webkit-text-fill-color:transparent; text-shadow:0 0 10px rgba(251,191,36,.72),0 0 24px rgba(192,132,252,.42),0 0 34px rgba(56,189,248,.25); animation:overlord-name-shine 5s linear infinite; }
.username-display.admin-player-title::after { display:block; margin-top:4px; padding:3px 8px; width:max-content; max-width:100%; border:1px solid rgba(192,132,252,.58); border-radius:999px; background:linear-gradient(100deg,rgba(30,41,100,.78),rgba(91,33,182,.7),rgba(8,145,178,.66),rgba(120,53,15,.72)); color:#fff7cc; -webkit-text-fill-color:#fff7cc; font-size:.58em; font-weight:1000; letter-spacing:.1em; text-align:center; text-shadow:0 0 8px rgba(255,255,255,.65),0 0 14px rgba(192,132,252,.72); content:'♛ ' attr(data-title-label) ' ♛'; box-shadow:0 0 14px rgba(192,132,252,.32),0 0 22px rgba(56,189,248,.18),inset 0 1px rgba(255,255,255,.16); }
.username-display.admin-player-title::before { position:absolute; z-index:-1; inset:-8px -11px; border-radius:15px; background:radial-gradient(ellipse at 22% 50%,rgba(56,189,248,.18),transparent 58%),radial-gradient(ellipse at 75% 45%,rgba(192,132,252,.2),transparent 62%),radial-gradient(ellipse,rgba(245,158,11,.12),transparent 74%); content:''; pointer-events:none; }
@keyframes overlord-name-shine { to { background-position:220% center; } }
.username-display[data-player-title]:not([data-player-title=""]):not(.admin-player-title):not(.dedicated-player-title) { position:relative; isolation:isolate; display:inline-flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; overflow:visible; white-space:normal; text-align:center; text-overflow:clip; }
.username-display[data-player-title="blackjack"] { color:#a7f3d0; background:linear-gradient(100deg,#052e2b,#047857 45%,#064e3b); text-shadow:0 0 10px rgba(52,211,153,.5); }
.username-display[data-player-title="pokerPro"] { color:#ffe4e6; background:linear-gradient(100deg,#4c0519,#be123c 48%,#881337); text-shadow:0 0 10px rgba(251,113,133,.55); }
.username-display[data-player-title="queenOfKings"] { color:#fef3c7; background:linear-gradient(100deg,#422006,#a16207 48%,#713f12); text-shadow:0 0 10px rgba(250,204,21,.6); }
.username-display[data-player-title="flappyFanatic"] { color:#e0f2fe; background:linear-gradient(100deg,#082f49,#0369a1 48%,#164e63); text-shadow:0 0 10px rgba(56,189,248,.58); }
.username-display[data-player-title]:not([data-player-title=""]):not(.admin-player-title):not(.dedicated-player-title)::before { position:absolute; z-index:-1; inset:-5px -8px; border:1px solid currentColor; border-radius:13px; opacity:.6; content:''; pointer-events:none; }
.username-display[data-player-title="blackjack"]::before { background:radial-gradient(ellipse at 20% 50%,rgba(52,211,153,.28),transparent 55%),linear-gradient(135deg,rgba(6,78,59,.52),rgba(2,44,34,.72)); box-shadow:0 0 18px rgba(16,185,129,.28),inset 0 0 0 1px rgba(167,243,208,.12); }
.username-display[data-player-title="pokerPro"]::before { background:radial-gradient(ellipse at 20% 50%,rgba(251,113,133,.3),transparent 55%),linear-gradient(135deg,rgba(136,19,55,.56),rgba(76,5,25,.75)); box-shadow:0 0 18px rgba(244,63,94,.3),inset 0 0 0 1px rgba(255,228,230,.12); }
.username-display[data-player-title="queenOfKings"]::before { background:radial-gradient(ellipse at 20% 50%,rgba(250,204,21,.3),transparent 55%),linear-gradient(135deg,rgba(113,63,18,.56),rgba(66,32,6,.75)); box-shadow:0 0 18px rgba(250,204,21,.28),inset 0 0 0 1px rgba(254,243,199,.12); }
.username-display[data-player-title="flappyFanatic"]::before { background:radial-gradient(ellipse at 20% 50%,rgba(56,189,248,.3),transparent 55%),linear-gradient(135deg,rgba(7,89,133,.56),rgba(8,47,73,.75)); box-shadow:0 0 18px rgba(14,165,233,.28),inset 0 0 0 1px rgba(224,242,254,.12); }
.username-display[data-player-title="blackjack"]::after { display:block; width:max-content; max-width:100%; padding:2px 8px; border:1px solid rgba(52,211,153,.65); border-radius:999px; background:linear-gradient(110deg,#064e3b,#022c22); color:#a7f3d0; content:'♠ ♥  JACK OF ALL  ♦ ♣'; }
.username-display[data-player-title="pokerPro"]::after { display:block; width:max-content; max-width:100%; padding:2px 8px; border:1px solid rgba(251,113,133,.7); border-radius:999px; background:linear-gradient(110deg,#881337,#4c0519); color:#ffe4e6; content:'🂡 🂱  POKER PRO  🂾 🂮'; }
.username-display[data-player-title="queenOfKings"]::after { display:block; width:max-content; max-width:100%; padding:2px 8px; border:1px solid rgba(250,204,21,.72); border-radius:999px; background:linear-gradient(110deg,#854d0e,#422006); color:#fef3c7; content:'♛  QUEEN OF KINGS  ♛'; }
.username-display[data-player-title="flappyFanatic"]::after { display:block; width:max-content; max-width:100%; padding:2px 8px; border:1px solid rgba(56,189,248,.7); border-radius:999px; background:linear-gradient(110deg,#075985,#082f49); color:#e0f2fe; content:'☁ ☁  FLAPPY FANATIC  ☁ ☁'; }
.username-display[data-player-title="blackjack"]::after,.username-display[data-player-title="pokerPro"]::after,.username-display[data-player-title="queenOfKings"]::after,.username-display[data-player-title="flappyFanatic"]::after { margin-top:3px; font-size:.55em; font-weight:950; letter-spacing:.04em; -webkit-text-fill-color:currentColor; }
/* Arcade-title nameplates: layered CSS art, so every equipped title has a distinct silhouette. */
.username-display[data-player-title="blackjack"],.username-display[data-player-title="pokerPro"],.username-display[data-player-title="queenOfKings"],.username-display[data-player-title="flappyFanatic"] { padding:5px 13px 6px; border:1px solid currentColor; border-radius:12px; box-shadow:inset 0 1px rgba(255,255,255,.18),inset 0 -12px 24px rgba(0,0,0,.2),0 0 19px currentColor; font-weight:950; letter-spacing:.025em; }
.username-display[data-player-title="blackjack"]::before,.username-display[data-player-title="pokerPro"]::before,.username-display[data-player-title="queenOfKings"]::before,.username-display[data-player-title="flappyFanatic"]::before { z-index:-1; inset:-5px -9px; opacity:1; }
.username-display[data-player-title="blackjack"]::after,.username-display[data-player-title="pokerPro"]::after,.username-display[data-player-title="queenOfKings"]::after,.username-display[data-player-title="flappyFanatic"]::after { position:relative; z-index:1; padding:3px 10px; box-shadow:inset 0 1px rgba(255,255,255,.15),0 3px 10px rgba(0,0,0,.22); }
.username-display[data-player-title="blackjack"] { border-color:#6ee7b7; background:linear-gradient(115deg,#052e2b,#047857 45%,#064e3b); color:#d1fae5; box-shadow:inset 0 1px rgba(255,255,255,.2),0 0 20px rgba(16,185,129,.48); }
.username-display[data-player-title="blackjack"]::before { border-color:rgba(110,231,183,.86); background:repeating-linear-gradient(118deg,transparent 0 15px,rgba(52,211,153,.13) 15px 17px),radial-gradient(ellipse at 50% 110%,rgba(52,211,153,.35),transparent 68%),linear-gradient(135deg,rgba(6,78,59,.85),rgba(2,44,34,.9)); box-shadow:0 0 22px rgba(16,185,129,.45),inset 0 0 0 2px rgba(167,243,208,.1); }
.username-display[data-player-title="blackjack"]::after { border-color:#6ee7b7; background:linear-gradient(110deg,#064e3b,#022c22); color:#d1fae5; content:'♠  ♣   JACK OF ALL   ♥  ♦'; }
.username-display[data-player-title="blackjack"] { position:relative; }
.username-display[data-player-title="blackjack"] { --title-card-red:#fb7185; }
.username-display[data-player-title="blackjack"]::before { background:radial-gradient(ellipse 20px 28px at 13% 50%,rgba(248,250,252,.92) 0 50%,transparent 53%),radial-gradient(ellipse 20px 28px at 17% 44%,rgba(52,211,153,.95) 0 49%,transparent 53%),radial-gradient(ellipse 20px 28px at 87% 50%,rgba(248,250,252,.92) 0 50%,transparent 53%),radial-gradient(ellipse 20px 28px at 83% 44%,rgba(251,113,133,.9) 0 49%,transparent 53%),repeating-linear-gradient(118deg,transparent 0 15px,rgba(52,211,153,.13) 15px 17px),radial-gradient(ellipse at 50% 110%,rgba(52,211,153,.35),transparent 68%),linear-gradient(135deg,rgba(6,78,59,.85),rgba(2,44,34,.9)); }
.username-display[data-player-title="pokerPro"] { border-color:#fda4af; background:linear-gradient(115deg,#4c0519,#be123c 45%,#881337); color:#fff1f2; box-shadow:inset 0 1px rgba(255,255,255,.2),0 0 22px rgba(244,63,94,.5); }
.username-display[data-player-title="pokerPro"]::before { border-color:rgba(253,164,175,.86); background:radial-gradient(ellipse at 50% 105%,rgba(251,113,133,.34),transparent 68%),linear-gradient(135deg,rgba(136,19,55,.88),rgba(76,5,25,.92)); box-shadow:0 0 25px rgba(244,63,94,.48),inset 0 0 0 2px rgba(255,228,230,.12); }
.username-display[data-player-title="pokerPro"]::after { border-color:#fda4af; background:linear-gradient(110deg,#9f1239,#4c0519); color:#fff1f2; content:'🂡  🂱   POKER PRO   🂾  🂮'; }
.username-display[data-player-title="queenOfKings"] { border-color:#fde68a; background:linear-gradient(115deg,#422006,#a16207 48%,#713f12); color:#fffbeb; box-shadow:inset 0 1px rgba(255,255,255,.22),0 0 22px rgba(250,204,21,.48); }
.username-display[data-player-title="queenOfKings"]::before { border-color:rgba(253,230,138,.9); background:radial-gradient(ellipse at 50% 5%,rgba(250,204,21,.4),transparent 62%),linear-gradient(135deg,rgba(113,63,18,.92),rgba(66,32,6,.94)); box-shadow:0 0 25px rgba(250,204,21,.42),inset 0 0 0 2px rgba(254,243,199,.12); }
.username-display[data-player-title="queenOfKings"]::after { border-color:#fde68a; background:linear-gradient(110deg,#854d0e,#422006); color:#fffbeb; content:'♛   QUEEN OF KINGS   ♛'; text-shadow:0 0 12px rgba(250,204,21,.8); }
.username-display[data-player-title="flappyFanatic"] { border-color:#bae6fd; background:linear-gradient(115deg,#082f49,#0369a1 48%,#164e63); color:#f0f9ff; box-shadow:inset 0 1px rgba(255,255,255,.24),0 0 22px rgba(14,165,233,.48); }
.username-display[data-player-title="flappyFanatic"]::before { border-color:rgba(186,230,253,.9); background:radial-gradient(ellipse at 18% 12%,rgba(255,255,255,.48),transparent 27%),radial-gradient(ellipse at 82% 18%,rgba(224,242,254,.36),transparent 29%),radial-gradient(ellipse at 50% 105%,rgba(56,189,248,.34),transparent 69%),linear-gradient(135deg,rgba(7,89,133,.92),rgba(8,47,73,.94)); box-shadow:0 0 26px rgba(14,165,233,.48),inset 0 0 0 2px rgba(224,242,254,.13); }
.username-display[data-player-title="flappyFanatic"]::after { border-color:#bae6fd; background:linear-gradient(110deg,#075985,#082f49); color:#f0f9ff; content:'☁   ☁   FLAPPY FANATIC   ☁   ☁'; text-shadow:0 0 12px rgba(56,189,248,.9); }
.username-display[data-player-title="flappyFanatic"]::before { inset:-12px -20px; border:0; border-radius:0; background:radial-gradient(ellipse 21px 12px at 17% 22%,#f0f9ff 0 70%,transparent 73%),radial-gradient(ellipse 17px 11px at 22% 18%,#fff 0 70%,transparent 73%),radial-gradient(ellipse 24px 13px at 80% 25%,#e0f2fe 0 70%,transparent 73%),radial-gradient(ellipse 18px 12px at 75% 20%,#fff 0 70%,transparent 73%),radial-gradient(ellipse at 50% 55%,rgba(56,189,248,.3),transparent 72%); filter:drop-shadow(0 3px 5px rgba(14,165,233,.55)); animation:title-cloud-drift 5s ease-in-out infinite alternate; }
.username-display[data-player-title="pokerPro"]::before { background:linear-gradient(135deg,transparent 0 49%,rgba(255,255,255,.08) 50% 51%,transparent 52%),radial-gradient(ellipse at 50% 105%,rgba(251,113,133,.34),transparent 68%),linear-gradient(135deg,rgba(136,19,55,.88),rgba(76,5,25,.92)); }
.username-display[data-player-title="pokerPro"]::after { position:relative; }
.username-display[data-player-title="pokerPro"] { position:relative; }
.username-display[data-player-title="pokerPro"]::before { background:radial-gradient(ellipse 19px 27px at 13% 52%,#fff1f2 0 49%,transparent 52%),radial-gradient(ellipse 19px 27px at 17% 44%,#fb7185 0 48%,transparent 52%),radial-gradient(ellipse 19px 27px at 87% 52%,#fff1f2 0 49%,transparent 52%),radial-gradient(ellipse 19px 27px at 83% 44%,#fda4af 0 48%,transparent 52%),radial-gradient(ellipse at 50% 105%,rgba(251,113,133,.34),transparent 68%),linear-gradient(135deg,rgba(136,19,55,.88),rgba(76,5,25,.92)); }
.username-display[data-player-title="queenOfKings"]::after { position:relative; margin-top:17px; }
.username-display[data-player-title="queenOfKings"] { overflow:visible; }
.username-display[data-player-title="queenOfKings"]::before { inset:-14px -11px -5px; background:radial-gradient(ellipse 8px 17px at 27% 20%,#fde68a 0 70%,transparent 74%),radial-gradient(ellipse 8px 17px at 40% 10%,#facc15 0 70%,transparent 74%),radial-gradient(ellipse 8px 17px at 53% 6%,#fef3c7 0 70%,transparent 74%),radial-gradient(ellipse 8px 17px at 66% 10%,#facc15 0 70%,transparent 74%),radial-gradient(ellipse 8px 17px at 79% 20%,#fde68a 0 70%,transparent 74%),linear-gradient(90deg,transparent 20%,#a16207 21% 85%,transparent 86%); filter:drop-shadow(0 0 8px rgba(250,204,21,.75)); }
.account-screen-username[data-player-title="flappyFanatic"] { position:relative; overflow:visible; }
.account-screen-username[data-player-title="flappyFanatic"]::before { position:absolute; z-index:-1; inset:-13px -18px; border:0; border-radius:0; background:radial-gradient(ellipse 31px 18px at 13% 20%,#f0f9ff 0 69%,transparent 73%),radial-gradient(ellipse 24px 16px at 20% 14%,#fff 0 69%,transparent 73%),radial-gradient(ellipse 34px 19px at 87% 19%,#e0f2fe 0 69%,transparent 73%),radial-gradient(ellipse 25px 16px at 80% 13%,#fff 0 69%,transparent 73%); content:''; pointer-events:none; filter:drop-shadow(0 4px 6px rgba(14,165,233,.56)); animation:title-cloud-drift 5s ease-in-out infinite alternate; }
.account-screen-username[data-player-title="queenOfKings"] { position:relative; overflow:visible; }
.account-screen-username[data-player-title="queenOfKings"]::before { position:absolute; z-index:-1; inset:-17px 8% auto; height:25px; border:0; border-radius:0; background:radial-gradient(ellipse 8px 19px at 18% 78%,#fde68a 0 70%,transparent 74%),radial-gradient(ellipse 9px 22px at 34% 42%,#facc15 0 70%,transparent 74%),radial-gradient(ellipse 9px 23px at 50% 28%,#fef3c7 0 70%,transparent 74%),radial-gradient(ellipse 9px 22px at 66% 42%,#facc15 0 70%,transparent 74%),radial-gradient(ellipse 8px 19px at 82% 78%,#fde68a 0 70%,transparent 74%),linear-gradient(90deg,transparent 12%,#a16207 13% 88%,transparent 89%); content:''; filter:drop-shadow(0 0 9px rgba(250,204,21,.72)); }
@keyframes title-cloud-drift { from { transform:translateX(-3px) translateY(1px); } to { transform:translateX(3px) translateY(-2px); } }
.account-screen-username[data-player-title="blackjack"],.account-screen-username[data-player-title="pokerPro"],.account-screen-username[data-player-title="queenOfKings"],.account-screen-username[data-player-title="flappyFanatic"] { position:relative; isolation:isolate; min-width:min(280px,100%); padding:10px 16px 11px; border-width:2px; border-radius:16px; box-shadow:inset 0 1px rgba(255,255,255,.2),inset 0 -16px 28px rgba(0,0,0,.2),0 0 26px currentColor; font-size:1.5rem; }
.account-screen-username[data-player-title="blackjack"]::after,.account-screen-username[data-player-title="pokerPro"]::after,.account-screen-username[data-player-title="queenOfKings"]::after,.account-screen-username[data-player-title="flappyFanatic"]::after { display:block; margin-top:8px; padding:5px 12px; border:1px solid currentColor; border-radius:999px; font-size:.48em; font-weight:1000; letter-spacing:.1em; text-shadow:0 0 10px currentColor; box-shadow:inset 0 1px rgba(255,255,255,.16),0 4px 14px rgba(0,0,0,.26); }
.account-screen-username[data-player-title="blackjack"] { color:#d1fae5; background:linear-gradient(115deg,#052e2b,#047857 45%,#064e3b); border-color:#6ee7b7; }
.account-screen-username[data-player-title="blackjack"]::after { content:'♠  ♣   JACK OF ALL   ♥  ♦'; background:linear-gradient(110deg,#064e3b,#022c22); }
.account-screen-username[data-player-title="pokerPro"] { color:#fff1f2; background:linear-gradient(115deg,#4c0519,#be123c 45%,#881337); border-color:#fda4af; }
.account-screen-username[data-player-title="pokerPro"]::after { content:'🂡  🂱   POKER PRO   🂾  🂮'; background:linear-gradient(110deg,#9f1239,#4c0519); }
.account-screen-username[data-player-title="queenOfKings"] { color:#fffbeb; background:linear-gradient(115deg,#422006,#a16207 48%,#713f12); border-color:#fde68a; }
.account-screen-username[data-player-title="queenOfKings"]::after { content:'♛   QUEEN OF KINGS   ♛'; background:linear-gradient(110deg,#854d0e,#422006); }
.account-screen-username[data-player-title="flappyFanatic"] { color:#f0f9ff; background:linear-gradient(115deg,#082f49,#0369a1 48%,#164e63); border-color:#bae6fd; }
.account-screen-username[data-player-title="flappyFanatic"]::after { content:'☁   ☁   FLAPPY FANATIC   ☁   ☁'; background:linear-gradient(110deg,#075985,#082f49); }
.player-identity-name { color:inherit; }
.player-title { display:block; margin-top:2px; font-size:.62rem; font-weight:900; letter-spacing:.07em; line-height:1.2; }
.player-title::before { display:inline-block; margin-right:3px; }
.player-identity-name[data-player-title="dedicated"] { color:#bae6fd; text-shadow:0 0 7px rgba(56,189,248,.6),0 0 12px rgba(251,113,133,.36); }
.player-identity-name[data-player-title="blackjack"] { color:#6ee7b7; text-shadow:0 0 8px rgba(16,185,129,.55); }
.player-identity-name[data-player-title="pokerPro"] { color:#fda4af; text-shadow:0 0 8px rgba(244,63,94,.55); }
.player-identity-name[data-player-title="queenOfKings"] { color:#fde68a; text-shadow:0 0 8px rgba(250,204,21,.6); }
.player-identity-name[data-player-title="flappyFanatic"] { color:#7dd3fc; text-shadow:0 0 8px rgba(14,165,233,.6); }
.player-identity-name[data-player-title="overlord"] { color:#f5d0fe; text-shadow:0 0 8px rgba(192,132,252,.75),0 0 14px rgba(56,189,248,.4); }
.player-title::before { display:inline-block; margin-right:3px; }
.player-title-dedicated { color:#7dd3fc; text-shadow:0 0 8px rgba(56,189,248,.45); }
.player-title-admin { color:#fde68a; font-size:.66rem; letter-spacing:.09em; text-shadow:0 0 8px rgba(251,191,36,.85),0 0 16px rgba(249,115,22,.45); }
.player-title-arcade { color:#c4b5fd; text-shadow:0 0 8px rgba(167,139,250,.55); }
.username-change-button select { margin-left:auto; max-width:55%; }
@media (prefers-reduced-motion:reduce) { .username-display.admin-player-title { animation:none; background-position:center; } }
.player-title-arcade { color:#c4b5fd; text-shadow:0 0 8px rgba(167,139,250,.55); }
.account-menu > .username-display.dedicated-player-title { display:flex; flex-direction:column; align-items:flex-start; color:transparent; -webkit-text-fill-color:transparent; }
.account-menu > .username-display.dedicated-player-title::after { content:attr(data-title-label); }
.player-title-picker { margin:12px 0; padding:14px; border:1px solid rgba(148,163,184,.2); border-radius:14px; background:linear-gradient(145deg,rgba(15,23,42,.92),rgba(8,15,31,.94)); }
.player-title-picker h3 { margin:0 0 11px; color:#e2e8f0; font-size:.9rem; }
.player-title-picker h3::after { display:block; margin-top:4px; color:#94a3b8; content:'Choose the badge that represents your style'; font-size:.68rem; font-weight:600; }
.player-title-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:9px; }
.player-title-card { display:grid; grid-template-columns:30px minmax(0,1fr); align-items:center; gap:2px 9px; min-height:56px; padding:9px 11px; border:1px solid rgba(148,163,184,.23); border-radius:11px; background:rgba(2,6,23,.58); color:#e2e8f0; text-align:left; cursor:pointer; transition:border-color .15s,background .15s,transform .15s,box-shadow .15s; }
.player-title-card:hover { transform:translateY(-1px); border-color:rgba(125,211,252,.56); }
.player-title-card.selected { border-color:rgba(56,189,248,.8); background:linear-gradient(120deg,rgba(8,145,178,.21),rgba(30,41,59,.72)); box-shadow:0 0 14px rgba(56,189,248,.12),inset 0 0 0 1px rgba(56,189,248,.12); }
.player-title-card-icon { grid-row:span 2; color:#c4b5fd; font-size:1.25rem; text-align:center; }
.player-title-card strong { min-width:0; color:#f8fafc; font-size:.66rem; letter-spacing:.045em; }
.player-title-card small { color:#94a3b8; font-size:.57rem; font-weight:850; letter-spacing:.07em; }
.overlord-title-card { border-color:rgba(192,132,252,.45); }
.overlord-title-card .player-title-card-icon { color:#fbbf24; }
.overlord-title-card.selected { border-color:#c084fc; background:linear-gradient(110deg,rgba(245,158,11,.18),rgba(192,132,252,.2),rgba(56,189,248,.15)); box-shadow:0 0 18px rgba(192,132,252,.2); }
.player-title-card-blackjack { border-color:rgba(52,211,153,.36); background:linear-gradient(125deg,rgba(6,78,59,.44),rgba(2,6,23,.68) 68%); }
.player-title-card-blackjack .player-title-card-icon { color:#34d399; text-shadow:0 0 10px rgba(52,211,153,.62); }
.player-title-card-blackjack strong,.player-title-blackjack { color:#6ee7b7; text-shadow:0 0 9px rgba(16,185,129,.5); }
.player-title-card-blackjack.selected { border-color:#34d399; box-shadow:0 0 16px rgba(52,211,153,.22),inset 0 0 0 1px rgba(52,211,153,.16); }
.player-title-card-pokerPro { border-color:rgba(251,113,133,.4); background:linear-gradient(125deg,rgba(136,19,55,.4),rgba(2,6,23,.68) 68%); }
.player-title-card-pokerPro .player-title-card-icon { color:#fb7185; text-shadow:0 0 10px rgba(251,113,133,.68); }
.player-title-card-pokerPro strong,.player-title-pokerPro { color:#fda4af; text-shadow:0 0 9px rgba(244,63,94,.48); }
.player-title-card-pokerPro.selected { border-color:#fb7185; box-shadow:0 0 16px rgba(251,113,133,.22),inset 0 0 0 1px rgba(251,113,133,.16); }
.player-title-card-queenOfKings { border-color:rgba(250,204,21,.42); background:linear-gradient(125deg,rgba(113,63,18,.46),rgba(2,6,23,.68) 68%); }
.player-title-card-queenOfKings .player-title-card-icon { color:#facc15; text-shadow:0 0 10px rgba(250,204,21,.7); }
.player-title-card-queenOfKings strong,.player-title-queenOfKings { color:#fde68a; text-shadow:0 0 9px rgba(250,204,21,.52); }
.player-title-card-queenOfKings.selected { border-color:#facc15; box-shadow:0 0 17px rgba(250,204,21,.22),inset 0 0 0 1px rgba(250,204,21,.16); }
.player-title-card-flappyFanatic { border-color:rgba(56,189,248,.42); background:linear-gradient(125deg,rgba(7,89,133,.46),rgba(2,6,23,.68) 68%); }
.player-title-card-flappyFanatic .player-title-card-icon { color:#38bdf8; text-shadow:0 0 10px rgba(56,189,248,.7); }
.player-title-card-flappyFanatic strong,.player-title-flappyFanatic { color:#7dd3fc; text-shadow:0 0 9px rgba(14,165,233,.52); }
.player-title-card-flappyFanatic.selected { border-color:#38bdf8; box-shadow:0 0 16px rgba(56,189,248,.23),inset 0 0 0 1px rgba(56,189,248,.16); }
.player-title-card-dedicated { border-color:rgba(192,132,252,.46); background:linear-gradient(125deg,rgba(88,28,135,.4),rgba(30,41,59,.7) 62%,rgba(8,145,178,.28)); }
.player-title-card-dedicated .player-title-card-icon { color:#e879f9; text-shadow:0 0 10px rgba(232,121,249,.72); }
.player-title-card-dedicated strong,.player-title-dedicated { color:#e9d5ff; text-shadow:0 0 9px rgba(192,132,252,.62),0 0 15px rgba(56,189,248,.3); }
.player-title-card-dedicated.selected { border-color:#e879f9; background:linear-gradient(115deg,rgba(126,34,206,.28),rgba(30,41,59,.76),rgba(8,145,178,.18)); box-shadow:0 0 18px rgba(192,132,252,.24),inset 0 0 0 1px rgba(232,121,249,.18); }
.username-display[data-player-title="blackjack"]::after,.player-title-blackjack { border-color:rgba(52,211,153,.55); background:linear-gradient(110deg,rgba(6,78,59,.9),rgba(2,6,23,.88)); color:#6ee7b7; text-shadow:0 0 9px rgba(16,185,129,.8); }
.username-display[data-player-title="blackjack"]::before { background:radial-gradient(ellipse at 35% 40%,rgba(52,211,153,.22),transparent 65%); }
.username-display[data-player-title="pokerPro"]::after,.player-title-pokerPro { border-color:rgba(251,113,133,.6); background:linear-gradient(110deg,rgba(136,19,55,.9),rgba(2,6,23,.88)); color:#fda4af; text-shadow:0 0 9px rgba(244,63,94,.8); }
.username-display[data-player-title="pokerPro"]::before { background:radial-gradient(ellipse at 35% 40%,rgba(251,113,133,.23),transparent 65%); }
.username-display[data-player-title="queenOfKings"]::after,.player-title-queenOfKings { border-color:rgba(250,204,21,.62); background:linear-gradient(110deg,rgba(113,63,18,.9),rgba(2,6,23,.88)); color:#fde68a; text-shadow:0 0 9px rgba(250,204,21,.8); }
.username-display[data-player-title="queenOfKings"]::before { background:radial-gradient(ellipse at 35% 40%,rgba(250,204,21,.22),transparent 65%); }
.username-display[data-player-title="flappyFanatic"]::after,.player-title-flappyFanatic { border-color:rgba(56,189,248,.6); background:linear-gradient(110deg,rgba(7,89,133,.9),rgba(2,6,23,.88)); color:#7dd3fc; text-shadow:0 0 9px rgba(14,165,233,.8); }
.username-display[data-player-title="flappyFanatic"]::before { background:radial-gradient(ellipse at 35% 40%,rgba(56,189,248,.24),transparent 65%); }
.username-display[data-player-title="dedicated"]::after,.player-title-dedicated { border-color:rgba(232,121,249,.55); background:linear-gradient(100deg,rgba(88,28,135,.72),rgba(30,41,59,.82),rgba(8,145,178,.62)); color:#f5d0fe; text-shadow:0 0 9px rgba(192,132,252,.8),0 0 13px rgba(56,189,248,.42); }
.username-display[data-player-title="dedicated"]::before { background:radial-gradient(ellipse at 30% 45%,rgba(192,132,252,.23),transparent 58%),radial-gradient(ellipse at 76% 45%,rgba(56,189,248,.18),transparent 62%); }
.player-title-blackjack::before { content:'♠ '; }
.player-title-pokerPro::before { content:'🂡 🂱 '; }
.player-title-queenOfKings::before { content:'♛ '; font-size:1.35em; }
.player-title-flappyFanatic::before { content:'☁ ☁ '; letter-spacing:.12em; }
.player-title-dedicated::before { content:'✦ '; }
.player-title-admin::before { content:'♛ '; }
.leaderboard-identity .player-title { width:max-content; max-width:100%; padding:3px 7px; border:1px solid currentColor; border-radius:999px; background:linear-gradient(100deg,rgba(15,23,42,.82),rgba(30,41,59,.76)); font-size:.57rem; }
.market-player-identity .player-title { width:max-content; max-width:100%; padding:3px 7px; border:1px solid currentColor; border-radius:999px; background:linear-gradient(100deg,rgba(15,23,42,.9),rgba(30,41,59,.82)); }
.market-player-listing-owner .player-identity-name { display:block; }
.dedicated-title-card { position:relative; overflow:hidden; border-color:rgba(56,189,248,.42); background:linear-gradient(120deg,rgba(8,47,73,.75),rgba(30,41,59,.78),rgba(131,24,67,.48)); }
.dedicated-title-card::after { position:absolute; top:0; right:0; width:54px; height:54px; background:linear-gradient(135deg,transparent 48%,rgba(125,211,252,.12) 49%,rgba(251,113,133,.16)); content:''; pointer-events:none; }
.dedicated-title-card .player-title-card-icon { color:#7dd3fc; text-shadow:0 0 8px rgba(56,189,248,.8),0 0 16px rgba(251,113,133,.45); }
.dedicated-title-card strong { background:linear-gradient(90deg,#7dd3fc,#f8fafc 48%,#fb7185); background-clip:text; -webkit-background-clip:text; color:transparent; }
.dedicated-title-card.selected { border-color:#7dd3fc; background:linear-gradient(110deg,rgba(8,145,178,.28),rgba(51,65,85,.82),rgba(190,24,93,.2)); box-shadow:0 0 17px rgba(56,189,248,.2),0 0 18px rgba(251,113,133,.1),inset 0 0 0 1px rgba(125,211,252,.17); }
.username-display.dedicated-player-title::after { padding:2px 6px; border:1px solid rgba(125,211,252,.38); border-radius:999px; background:linear-gradient(100deg,rgba(8,47,73,.74),rgba(51,65,85,.78),rgba(136,19,55,.62)); color:#e0f2fe; text-shadow:0 0 8px rgba(56,189,248,.72),0 0 12px rgba(251,113,133,.38); }
.player-title-dedicated { color:#bae6fd; background:linear-gradient(90deg,#7dd3fc,#f8fafc 50%,#fb7185); background-clip:text; -webkit-background-clip:text; -webkit-text-fill-color:transparent; text-shadow:0 0 8px rgba(56,189,248,.48); }
.player-title { position:relative; isolation:isolate; display:inline-flex; align-items:center; justify-content:center; gap:8px; width:max-content; max-width:100%; min-height:32px; margin:5px 0 2px; padding:5px 12px; overflow:hidden; border:1px solid var(--title-edge,#94a3b8); border-radius:11px; background:linear-gradient(115deg,var(--title-shade,#1e293b),rgba(2,6,23,.96)); color:var(--title-ink,#f8fafc); font-size:.65rem; font-weight:1000; letter-spacing:.09em; line-height:1.15; text-shadow:0 1px 5px rgba(0,0,0,.62),0 0 10px var(--title-glow,transparent); box-shadow:inset 0 1px rgba(255,255,255,.16),0 3px 12px rgba(0,0,0,.25),0 0 14px var(--title-glow,transparent); }
.player-title::before { display:grid; place-items:center; flex:0 0 24px; width:24px; height:24px; margin:0; border:1px solid currentColor; border-radius:7px; background:linear-gradient(145deg,rgba(255,255,255,.18),rgba(2,6,23,.35)); color:currentColor; content:'✦'; font-size:1rem; line-height:1; text-shadow:0 0 8px currentColor; }
.player-title::after { position:absolute; z-index:-1; inset:0; background:linear-gradient(110deg,transparent 20%,rgba(255,255,255,.12) 48%,transparent 72%); content:''; pointer-events:none; }
.player-title-blackjack { --title-edge:#34d399; --title-ink:#d1fae5; --title-shade:#065f46; --title-glow:rgba(16,185,129,.46); }
.player-title-blackjack::before { border-radius:50%; background:radial-gradient(circle at 50% 50%,#064e3b 0 54%,#a7f3d0 57% 63%,#047857 66%); content:'♠'; color:#ecfdf5; }
.player-title-pokerPro { --title-edge:#fb7185; --title-ink:#fff1f2; --title-shade:#9f1239; --title-glow:rgba(244,63,94,.46); }
.player-title-pokerPro::before { border-radius:5px; background:linear-gradient(140deg,#fff1f2 0 48%,#fb7185 50% 100%); color:#9f1239; content:'A'; transform:rotate(-7deg); }
.player-title-queenOfKings { --title-edge:#facc15; --title-ink:#fef3c7; --title-shade:#854d0e; --title-glow:rgba(250,204,21,.44); }
.player-title-queenOfKings::before { border:0; background:linear-gradient(145deg,transparent 0 20%,#fef3c7 21% 32%,transparent 33%),linear-gradient(35deg,transparent 0 20%,#facc15 21% 32%,transparent 33%),linear-gradient(90deg,#a16207,#facc15 50%,#854d0e); clip-path:polygon(0 0,25% 34%,39% 12%,50% 42%,62% 12%,76% 34%,100% 0,88% 100%,12% 100%); color:#422006; content:''; }
.player-title-flappyFanatic { --title-edge:#38bdf8; --title-ink:#e0f2fe; --title-shade:#075985; --title-glow:rgba(14,165,233,.46); }
.player-title-flappyFanatic::before { border:0; border-radius:0; background:radial-gradient(ellipse 8px 6px at 35% 58%,#fff 0 68%,transparent 72%),radial-gradient(ellipse 8px 7px at 53% 48%,#f0f9ff 0 68%,transparent 72%),radial-gradient(ellipse 9px 6px at 70% 58%,#dbeafe 0 68%,transparent 72%); filter:drop-shadow(0 2px 2px rgba(56,189,248,.7)); content:''; }
.player-title-dedicated { --title-edge:#e879f9; --title-ink:#f5d0fe; --title-shade:#581c87; --title-glow:rgba(192,132,252,.46); background:linear-gradient(105deg,#581c87,#164e63 52%,#881337); -webkit-text-fill-color:#f5d0fe; }
.player-title-dedicated::before { content:'✦'; }
.player-title-admin { --title-edge:#fbbf24; --title-ink:#fff7cc; --title-shade:#7e22ce; --title-glow:rgba(192,132,252,.55); background:linear-gradient(105deg,#7c2d12,#7e22ce 55%,#0e7490); }
.player-title-admin::before { border-radius:50% 50% 6px 6px; content:'♛'; }
.leaderboard-identity .player-title,.market-player-identity .player-title { padding:4px 9px; font-size:.58rem; }
.direct-online-card .player-title { margin-top:4px; }
.leaderboard-identity .player-title,.market-player-identity .player-title,.direct-online-card .player-title { position:relative; isolation:isolate; display:inline-flex; align-items:center; justify-content:center; flex-wrap:nowrap; white-space:nowrap; gap:8px; width:max-content; max-width:100%; min-height:34px; margin:6px 0 2px; padding:5px 12px; overflow:hidden; border:1px solid var(--title-edge,#94a3b8); border-radius:11px; background:linear-gradient(115deg,var(--title-shade,#1e293b),rgba(2,6,23,.96)); color:var(--title-ink,#f8fafc); font-size:.62rem; font-weight:1000; letter-spacing:.08em; line-height:1.15; text-shadow:0 1px 5px rgba(0,0,0,.62),0 0 10px var(--title-glow,transparent); box-shadow:inset 0 1px rgba(255,255,255,.16),0 3px 12px rgba(0,0,0,.25),0 0 14px var(--title-glow,transparent); }
.leaderboard-identity .player-title-label,.market-player-identity .player-title-label,.direct-online-card .player-title-label { flex:0 1 auto; min-width:0; white-space:nowrap; word-break:keep-all; overflow-wrap:normal; }
.leaderboard-identity .player-title::before,.market-player-identity .player-title::before,.direct-online-card .player-title::before { display:grid; place-items:center; flex:0 0 26px; width:26px; height:26px; margin:0; border:1px solid currentColor; border-radius:8px; background:linear-gradient(145deg,rgba(255,255,255,.18),rgba(2,6,23,.35)); color:currentColor; content:'✦'; font-size:1rem; line-height:1; text-shadow:0 0 8px currentColor; }
.leaderboard-identity .player-title::after,.market-player-identity .player-title::after,.direct-online-card .player-title::after { position:absolute; z-index:-1; inset:0; background:linear-gradient(110deg,transparent 20%,rgba(255,255,255,.12) 48%,transparent 72%); content:''; pointer-events:none; }
.leaderboard-identity .player-title-blackjack,.market-player-identity .player-title-blackjack,.direct-online-card .player-title-blackjack { --title-edge:#34d399; --title-ink:#d1fae5; --title-shade:#065f46; --title-glow:rgba(16,185,129,.46); }
.leaderboard-identity .player-title-blackjack::before,.market-player-identity .player-title-blackjack::before,.direct-online-card .player-title-blackjack::before { border-radius:50%; background:radial-gradient(circle at 50% 50%,#064e3b 0 54%,#a7f3d0 57% 63%,#047857 66%); content:'♠'; color:#ecfdf5; }
.leaderboard-identity .player-title-pokerPro,.market-player-identity .player-title-pokerPro,.direct-online-card .player-title-pokerPro { --title-edge:#fb7185; --title-ink:#fff1f2; --title-shade:#9f1239; --title-glow:rgba(244,63,94,.46); }
.leaderboard-identity .player-title-pokerPro::before,.market-player-identity .player-title-pokerPro::before,.direct-online-card .player-title-pokerPro::before { border-radius:5px; background:linear-gradient(140deg,#fff1f2 0 48%,#fb7185 50% 100%); color:#9f1239; content:'A'; transform:rotate(-7deg); }
.leaderboard-identity .player-title-queenOfKings,.market-player-identity .player-title-queenOfKings,.direct-online-card .player-title-queenOfKings { --title-edge:#facc15; --title-ink:#fef3c7; --title-shade:#854d0e; --title-glow:rgba(250,204,21,.44); }
.leaderboard-identity .player-title-queenOfKings::before,.market-player-identity .player-title-queenOfKings::before,.direct-online-card .player-title-queenOfKings::before { border:0; background:linear-gradient(145deg,#fef3c7,#facc15 48%,#a16207); clip-path:polygon(0 0,25% 34%,39% 12%,50% 42%,62% 12%,76% 34%,100% 0,88% 100%,12% 100%); color:#422006; content:''; }
.leaderboard-identity .player-title-flappyFanatic,.market-player-identity .player-title-flappyFanatic,.direct-online-card .player-title-flappyFanatic { --title-edge:#38bdf8; --title-ink:#e0f2fe; --title-shade:#075985; --title-glow:rgba(14,165,233,.46); }
.leaderboard-identity .player-title-flappyFanatic::before,.market-player-identity .player-title-flappyFanatic::before,.direct-online-card .player-title-flappyFanatic::before { border:0; border-radius:0; background:radial-gradient(ellipse 8px 6px at 35% 58%,#fff 0 68%,transparent 72%),radial-gradient(ellipse 8px 7px at 53% 48%,#f0f9ff 0 68%,transparent 72%),radial-gradient(ellipse 9px 6px at 70% 58%,#dbeafe 0 68%,transparent 72%); filter:drop-shadow(0 2px 2px rgba(56,189,248,.7)); content:''; }
.leaderboard-identity .player-title-dedicated,.market-player-identity .player-title-dedicated,.direct-online-card .player-title-dedicated { --title-edge:#e879f9; --title-ink:#f5d0fe; --title-shade:#581c87; --title-glow:rgba(192,132,252,.46); background:linear-gradient(105deg,#581c87,#164e63 52%,#881337); color:#f5d0fe; -webkit-text-fill-color:#f5d0fe; }
.leaderboard-identity .player-title-admin,.market-player-identity .player-title-admin,.direct-online-card .player-title-admin { --title-edge:#fbbf24; --title-ink:#fff7cc; --title-shade:#7e22ce; --title-glow:rgba(192,132,252,.55); background:linear-gradient(105deg,#7c2d12,#7e22ce 55%,#0e7490); }
.leaderboard-identity .player-title,.market-player-identity .player-title,.direct-online-card .player-title { z-index:0; gap:8px; min-height:36px; padding:5px 12px 5px 6px; overflow:visible; border-radius:12px; font-size:.64rem; letter-spacing:.095em; }
.leaderboard-identity .player-title::before,.market-player-identity .player-title::before,.direct-online-card .player-title::before { content:none; }
.leaderboard-identity .player-title-icon,.market-player-identity .player-title-icon,.direct-online-card .player-title-icon { position:relative; display:grid; place-items:center; flex:0 0 28px; width:28px; height:28px; overflow:hidden; border:1px solid var(--title-edge,#94a3b8); border-radius:9px; background:linear-gradient(145deg,rgba(255,255,255,.22),rgba(2,6,23,.42)); color:var(--title-ink,#fff); font-size:1rem; line-height:1; text-shadow:0 0 9px currentColor; box-shadow:inset 0 1px rgba(255,255,255,.2),0 1px 7px rgba(0,0,0,.25); }
.leaderboard-identity .player-title-icon::before,.market-player-identity .player-title-icon::before,.direct-online-card .player-title-icon::before { position:absolute; inset:2px; border:1px solid currentColor; border-radius:6px; opacity:.45; content:''; }
.leaderboard-identity .player-title-blackjack .player-title-icon,.market-player-identity .player-title-blackjack .player-title-icon,.direct-online-card .player-title-blackjack .player-title-icon { border-radius:50%; background:radial-gradient(circle at 35% 28%,#a7f3d0,#059669 58%,#064e3b); color:#ecfdf5; }
.leaderboard-identity .player-title-pokerPro .player-title-icon,.market-player-identity .player-title-pokerPro .player-title-icon,.direct-online-card .player-title-pokerPro .player-title-icon { border-radius:5px; background:linear-gradient(145deg,#fff1f2 0 43%,#fb7185 45% 100%); color:#9f1239; transform:rotate(-5deg); }
.leaderboard-identity .player-title-queenOfKings .player-title-icon,.market-player-identity .player-title-queenOfKings .player-title-icon,.direct-online-card .player-title-queenOfKings .player-title-icon { border:0; border-radius:3px; background:linear-gradient(145deg,#fef3c7,#facc15 54%,#a16207); color:#422006; clip-path:polygon(0 0,25% 34%,39% 12%,50% 42%,62% 12%,76% 34%,100% 0,88% 100%,12% 100%); }
.leaderboard-identity .player-title-flappyFanatic .player-title-icon,.market-player-identity .player-title-flappyFanatic .player-title-icon,.direct-online-card .player-title-flappyFanatic .player-title-icon { border:0; border-radius:0; background:radial-gradient(ellipse 9px 6px at 26% 62%,#fff 0 68%,transparent 72%),radial-gradient(ellipse 10px 8px at 49% 44%,#f0f9ff 0 68%,transparent 72%),radial-gradient(ellipse 10px 7px at 75% 62%,#dbeafe 0 68%,transparent 72%); color:transparent; filter:drop-shadow(0 2px 3px rgba(56,189,248,.7)); }
.leaderboard-identity .player-title-flappyFanatic .player-title-icon::after,.market-player-identity .player-title-flappyFanatic .player-title-icon::after,.direct-online-card .player-title-flappyFanatic .player-title-icon::after { position:absolute; top:-5px; right:-3px; width:12px; height:7px; background:linear-gradient(165deg,transparent 0 36%,#f8fafc 38% 53%,transparent 56%),linear-gradient(15deg,transparent 0 36%,#f8fafc 38% 53%,transparent 56%); content:''; filter:drop-shadow(0 0 2px #38bdf8); }
.leaderboard-identity .player-title-flappyFanatic,.market-player-identity .player-title-flappyFanatic,.direct-online-card .player-title-flappyFanatic { position:relative; }
.leaderboard-identity .player-title-flappyFanatic::before,.market-player-identity .player-title-flappyFanatic::before,.direct-online-card .player-title-flappyFanatic::before { position:absolute; top:-8px; right:7px; width:16px; height:9px; background:linear-gradient(160deg,transparent 0 38%,#fff 40% 54%,transparent 57%),linear-gradient(20deg,transparent 0 38%,#fff 40% 54%,transparent 57%); border:0; content:''; filter:drop-shadow(0 0 3px rgba(56,189,248,.8)); }
.leaderboard-identity .player-title-label,.market-player-identity .player-title-label,.direct-online-card .player-title-label { position:relative; z-index:1; }
.leaderboard-identity .player-title::after,.market-player-identity .player-title::after,.direct-online-card .player-title::after { z-index:0; border-radius:inherit; opacity:.6; }
.leaderboard-identity .player-title-queenOfKings .player-title-icon-crown,.market-player-identity .player-title-queenOfKings .player-title-icon-crown,.direct-online-card .player-title-queenOfKings .player-title-icon-crown { display:block; overflow:visible; width:28px; height:25px; border:0; border-radius:0; background:none; color:transparent; clip-path:none; filter:drop-shadow(0 1px 2px rgba(66,32,6,.7)) drop-shadow(0 0 4px rgba(250,204,21,.55)); transform:none; }
.player-title-crown-points { position:absolute; inset:1px 1px 6px; background:linear-gradient(145deg,#fff7cc 0%,#facc15 38%,#d97706 72%,#fef3c7 100%); clip-path:polygon(0 7%,25% 36%,37% 0,50% 35%,64% 0,76% 36%,100% 7%,88% 96%,12% 96%); }
.player-title-crown-band { position:absolute; right:3px; bottom:1px; left:3px; height:6px; border:1px solid #fef3c7; border-radius:2px 2px 5px 5px; background:linear-gradient(90deg,#92400e,#facc15 28%,#fef3c7 50%,#facc15 72%,#92400e); }
.leaderboard-identity .player-title-flappyFanatic::before,.market-player-identity .player-title-flappyFanatic::before,.direct-online-card .player-title-flappyFanatic::before { content:none; }
.leaderboard-identity .player-title-flappyFanatic .player-title-icon,.market-player-identity .player-title-flappyFanatic .player-title-icon,.direct-online-card .player-title-flappyFanatic .player-title-icon { position:relative; overflow:visible; border:0; background:none; }
.leaderboard-identity .player-title-flappyFanatic .player-title-icon::before,.market-player-identity .player-title-flappyFanatic .player-title-icon::before,.direct-online-card .player-title-flappyFanatic .player-title-icon::before { position:absolute; inset:6px 0 2px; border:0; border-radius:0; background:radial-gradient(ellipse 8px 6px at 24% 68%,#fff 0 68%,transparent 73%),radial-gradient(ellipse 9px 7px at 48% 48%,#f0f9ff 0 68%,transparent 73%),radial-gradient(ellipse 9px 6px at 73% 68%,#dbeafe 0 68%,transparent 73%); content:''; filter:drop-shadow(0 1px 2px rgba(14,165,233,.75)); }
.flappy-bird-art { position:absolute; z-index:2; display:block; width:15px; height:9px; pointer-events:none; }
.flappy-bird-art::before,.flappy-bird-art::after { position:absolute; top:3px; width:8px; height:4px; border-top:2px solid #fff; content:''; filter:drop-shadow(0 0 2px #0284c7); }
.flappy-bird-art::before { left:0; border-radius:90% 0 0; transform:rotate(19deg); }
.flappy-bird-art::after { right:0; border-radius:0 90% 0 0; transform:rotate(-19deg); }
.leaderboard-identity .player-title-icon-crown::before,.market-player-identity .player-title-icon-crown::before,.direct-online-card .player-title-icon-crown::before { content:none; }
.leaderboard-identity .player-title-icon-crown::after,.market-player-identity .player-title-icon-crown::after,.direct-online-card .player-title-icon-crown::after { content:none; }
.leaderboard-identity .player-title-flappyFanatic .player-title-icon::after,.market-player-identity .player-title-flappyFanatic .player-title-icon::after,.direct-online-card .player-title-flappyFanatic .player-title-icon::after { content:none; }
.username-display[data-player-title="flappyFanatic"]::before,.account-screen-username[data-player-title="flappyFanatic"]::before { inset:-9px -12px; border:0; border-radius:0; background:radial-gradient(ellipse 26px 14px at 12% 31%,#fff 0 68%,transparent 72%),radial-gradient(ellipse 18px 11px at 19% 24%,#f0f9ff 0 68%,transparent 72%),radial-gradient(ellipse 27px 15px at 88% 33%,#e0f2fe 0 68%,transparent 72%),radial-gradient(ellipse 19px 11px at 81% 24%,#fff 0 68%,transparent 72%),linear-gradient(135deg,#075985,#082f49); filter:drop-shadow(0 3px 5px rgba(14,165,233,.5)); }
.username-display[data-player-title="flappyFanatic"] .flappy-bird-art::before,.username-display[data-player-title="flappyFanatic"] .flappy-bird-art::after,.account-screen-username[data-player-title="flappyFanatic"] .flappy-bird-art::before,.account-screen-username[data-player-title="flappyFanatic"] .flappy-bird-art::after { top:3px; width:9px; height:5px; border-top:3px solid #fff; filter:drop-shadow(0 0 3px #0284c7); }
.username-display[data-player-title="flappyFanatic"] .flappy-bird-art-one { top:-10px; left:19%; transform:scale(1.1) rotate(-8deg); }
.username-display[data-player-title="flappyFanatic"] .flappy-bird-art-two { top:-16px; right:19%; transform:scale(.95) rotate(9deg); }
.account-screen-username[data-player-title="flappyFanatic"] .flappy-bird-art-one { top:-12px; left:18%; transform:scale(1.4) rotate(-8deg); }
.account-screen-username[data-player-title="flappyFanatic"] .flappy-bird-art-two { top:-19px; right:18%; transform:scale(1.15) rotate(9deg); }
.leaderboard-identity .player-title-blackjack .player-title-icon-clover,.market-player-identity .player-title-blackjack .player-title-icon-clover,.direct-online-card .player-title-blackjack .player-title-icon-clover { position:relative; display:block; overflow:visible; border:0; border-radius:0; background:none; color:transparent; transform:none; }
.player-title-clover-leaf { position:absolute; width:11px; height:11px; border:1px solid rgba(236,253,245,.85); border-radius:50% 50% 42% 50%; background:radial-gradient(circle at 32% 28%,#bbf7d0,#22c55e 58%,#047857); box-shadow:0 0 5px rgba(34,197,94,.7); }
.player-title-clover-leaf-1 { top:1px; left:4px; transform:rotate(-35deg); }
.player-title-clover-leaf-2 { top:1px; right:3px; transform:rotate(35deg); }
.player-title-clover-leaf-3 { top:10px; left:4px; transform:rotate(-145deg); }
.player-title-clover-leaf-4 { top:10px; right:3px; transform:rotate(145deg); }
.player-title-clover-stem { position:absolute; bottom:-1px; left:13px; width:3px; height:9px; border-radius:0 0 3px 3px; background:linear-gradient(#86efac,#15803d); transform:rotate(24deg); }
.leaderboard-identity .player-title-icon-playing-cards,.market-player-identity .player-title-icon-playing-cards,.direct-online-card .player-title-icon-playing-cards { position:relative; display:block; overflow:visible; border:0; border-radius:0; background:none; color:transparent; }
.player-title-mini-card { position:absolute; top:3px; left:4px; display:grid; place-items:start; width:14px; height:20px; padding:1px 2px; border:1px solid #fecdd3; border-radius:3px; background:linear-gradient(145deg,#fff 0 65%,#ffe4e6); color:#be123c; font-size:8px; font-weight:1000; line-height:1; box-shadow:0 1px 4px rgba(0,0,0,.4); }
.player-title-mini-card-1 { transform:rotate(-22deg) translate(-2px,2px); }
.player-title-mini-card-2 { z-index:2; border-color:#fff; color:#9f1239; transform:translate(6px,-1px); }
.player-title-mini-card-3 { transform:rotate(22deg) translate(12px,2px); }
.player-title-mini-card::after { position:absolute; right:1px; bottom:0; content:'♥'; font-size:6px; }
.username-display[data-player-title="blackjack"]::before,.account-screen-username[data-player-title="blackjack"]::before { background:radial-gradient(circle 7px at 13% 38%,#bbf7d0 0 68%,transparent 73%),radial-gradient(circle 7px at 17% 30%,#4ade80 0 68%,transparent 73%),radial-gradient(circle 7px at 13% 46%,#22c55e 0 68%,transparent 73%),radial-gradient(circle 7px at 21% 39%,#86efac 0 68%,transparent 73%),radial-gradient(circle 7px at 86% 39%,#bbf7d0 0 68%,transparent 73%),radial-gradient(circle 7px at 82% 31%,#4ade80 0 68%,transparent 73%),radial-gradient(circle 7px at 86% 47%,#22c55e 0 68%,transparent 73%),radial-gradient(circle 7px at 78% 39%,#86efac 0 68%,transparent 73%),linear-gradient(120deg,#064e3b,#022c22); }
.username-display[data-player-title="blackjack"]::after,.account-screen-username[data-player-title="blackjack"]::after { content:'🍀  JACK OF ALL  🍀'; }
.username-display[data-player-title="pokerPro"]::before,.account-screen-username[data-player-title="pokerPro"]::before { background:radial-gradient(ellipse 12px 19px at 15% 54%,#fff1f2 0 69%,transparent 73%),radial-gradient(ellipse 12px 19px at 19% 47%,#fb7185 0 67%,transparent 71%),radial-gradient(ellipse 13px 20px at 50% 43%,#fff 0 70%,transparent 74%),radial-gradient(ellipse 13px 20px at 50% 39%,#fecdd3 0 68%,transparent 72%),radial-gradient(ellipse 12px 19px at 85% 54%,#fff1f2 0 69%,transparent 73%),radial-gradient(ellipse 12px 19px at 81% 47%,#fda4af 0 67%,transparent 71%),linear-gradient(120deg,#9f1239,#4c0519); }
.username-display[data-player-title="pokerPro"]::after,.account-screen-username[data-player-title="pokerPro"]::after { content:'A  ♥     POKER PRO     ♦  K'; }
.player-title-icon .flappy-bird-art { top:-2px; right:-3px; transform:scale(.68); }
.username-display[data-player-title="flappyFanatic"] .flappy-bird-art-one { top:-9px; left:19%; transform:scale(1.1) rotate(-8deg); }
.username-display[data-player-title="flappyFanatic"] .flappy-bird-art-two { top:-15px; right:19%; transform:scale(.9) rotate(9deg); }
.account-screen-username[data-player-title="flappyFanatic"] .flappy-bird-art-one { top:-12px; left:18%; transform:scale(1.3) rotate(-8deg); }
.account-screen-username[data-player-title="flappyFanatic"] .flappy-bird-art-two { top:-19px; right:18%; transform:scale(1.1) rotate(9deg); }
.username-display[data-player-title="blackjack"],.username-display[data-player-title="pokerPro"],.username-display[data-player-title="queenOfKings"],.username-display[data-player-title="flappyFanatic"] { padding:4px 10px; border-radius:10px; font-size:clamp(.82rem,1.5vw,1rem); box-shadow:inset 0 1px rgba(255,255,255,.18),0 0 13px currentColor; }
.username-display[data-player-title="blackjack"]::before,.username-display[data-player-title="pokerPro"]::before,.username-display[data-player-title="queenOfKings"]::before,.username-display[data-player-title="flappyFanatic"]::before { inset:-3px -6px; border-radius:12px; opacity:.7; }
.username-display[data-player-title="blackjack"]::after,.username-display[data-player-title="pokerPro"]::after,.username-display[data-player-title="queenOfKings"]::after,.username-display[data-player-title="flappyFanatic"]::after { position:relative; margin-top:2px; padding:2px 7px; font-size:.5em; letter-spacing:.06em; }
.username-display[data-player-title="queenOfKings"]::after { margin-top:7px; }
.username-display[data-player-title="queenOfKings"]::before { inset:-10px -8px -3px; }
.username-display[data-player-title="flappyFanatic"]::before { inset:-8px -11px; }
.username-display[data-player-title="blackjack"]::before { background:radial-gradient(ellipse 13px 20px at 14% 50%,#ecfdf5 0 50%,transparent 54%),radial-gradient(ellipse 13px 20px at 18% 43%,#059669 0 48%,transparent 52%),radial-gradient(ellipse 13px 20px at 86% 50%,#fff1f2 0 50%,transparent 54%),radial-gradient(ellipse 13px 20px at 82% 43%,#fb7185 0 48%,transparent 52%),linear-gradient(135deg,#065f46,#022c22); }
.username-display[data-player-title="pokerPro"]::before { background:radial-gradient(ellipse 13px 20px at 14% 50%,#fff1f2 0 50%,transparent 54%),radial-gradient(ellipse 13px 20px at 18% 43%,#fb7185 0 48%,transparent 52%),radial-gradient(ellipse 13px 20px at 86% 50%,#fff1f2 0 50%,transparent 54%),radial-gradient(ellipse 13px 20px at 82% 43%,#fda4af 0 48%,transparent 52%),linear-gradient(135deg,#9f1239,#4c0519); }
.username-display[data-player-title="queenOfKings"]::before { background:radial-gradient(ellipse 5px 13px at 27% 20%,#fde68a 0 70%,transparent 74%),radial-gradient(ellipse 5px 13px at 40% 10%,#facc15 0 70%,transparent 74%),radial-gradient(ellipse 5px 13px at 53% 6%,#fef3c7 0 70%,transparent 74%),radial-gradient(ellipse 5px 13px at 66% 10%,#facc15 0 70%,transparent 74%),radial-gradient(ellipse 5px 13px at 79% 20%,#fde68a 0 70%,transparent 74%),linear-gradient(90deg,transparent 20%,#a16207 21% 85%,transparent 86%); }
.username-display[data-player-title="flappyFanatic"]::before { background:radial-gradient(ellipse 15px 9px at 15% 25%,#fff 0 69%,transparent 73%),radial-gradient(ellipse 12px 8px at 21% 18%,#f0f9ff 0 69%,transparent 73%),radial-gradient(ellipse 16px 9px at 85% 26%,#e0f2fe 0 69%,transparent 73%),radial-gradient(ellipse 12px 8px at 79% 18%,#fff 0 69%,transparent 73%),linear-gradient(135deg,#075985,#082f49); }
.username-display[data-player-title="flappyFanatic"]::before { background:radial-gradient(ellipse 24px 13px at 12% 24%,#fff 0 69%,transparent 73%),radial-gradient(ellipse 18px 11px at 19% 17%,#f0f9ff 0 69%,transparent 73%),radial-gradient(ellipse 25px 14px at 88% 26%,#e0f2fe 0 69%,transparent 73%),radial-gradient(ellipse 18px 11px at 80% 17%,#fff 0 69%,transparent 73%),radial-gradient(ellipse at 50% 110%,rgba(56,189,248,.28),transparent 74%),linear-gradient(135deg,#075985,#082f49); }
.username-display[data-player-title="flappyFanatic"]::after { position:relative; }
.username-display[data-player-title="flappyFanatic"]::after { text-shadow:0 0 10px rgba(56,189,248,.8); }
.username-display[data-player-title="flappyFanatic"] { position:relative; }
.username-display[data-player-title="flappyFanatic"] { --flappy-bird:#f8fafc; }
.username-display[data-player-title="flappyFanatic"]::before { background-image:radial-gradient(ellipse 24px 13px at 12% 24%,#fff 0 69%,transparent 73%),radial-gradient(ellipse 18px 11px at 19% 17%,#f0f9ff 0 69%,transparent 73%),radial-gradient(ellipse 25px 14px at 88% 26%,#e0f2fe 0 69%,transparent 73%),radial-gradient(ellipse 18px 11px at 80% 17%,#fff 0 69%,transparent 73%),radial-gradient(ellipse at 50% 110%,rgba(56,189,248,.28),transparent 74%),linear-gradient(135deg,#075985,#082f49); }
.username-display[data-player-title="flappyFanatic"]::after { padding-left:22px; padding-right:22px; background-image:linear-gradient(110deg,#075985,#082f49); }
.username-display[data-player-title="flappyFanatic"] { --cloud-puff:radial-gradient(ellipse 23px 13px at 12% 20%,#fff 0 70%,transparent 73%),radial-gradient(ellipse 23px 13px at 88% 20%,#e0f2fe 0 70%,transparent 73%); }
.username-display[data-player-title="flappyFanatic"]::after { background-color:#075985; }
.username-display[data-player-title="flappyFanatic"] .flappy-bird-art { position:absolute; z-index:2; top:-12px; width:15px; height:8px; pointer-events:none; }
.username-display[data-player-title="flappyFanatic"] .flappy-bird-art::before { position:absolute; inset:0; background:linear-gradient(160deg,transparent 0 37%,#f8fafc 39% 54%,transparent 57%),linear-gradient(20deg,transparent 0 37%,#f8fafc 39% 54%,transparent 57%); content:''; filter:drop-shadow(0 0 3px #38bdf8); }
.username-display[data-player-title="flappyFanatic"] .flappy-bird-art-one { left:18%; transform:scale(.8) rotate(-8deg); }
.username-display[data-player-title="flappyFanatic"] .flappy-bird-art-two { right:18%; top:-16px; transform:rotate(9deg); }

/* Give each title a complete scene across every displayed title badge. */
.leaderboard-identity .player-title-blackjack,.market-player-identity .player-title-blackjack,.direct-online-card .player-title-blackjack { background-color:#064e3b; background-image:radial-gradient(circle at 18% 50%,rgba(74,222,128,.25) 0 3px,transparent 4px),radial-gradient(circle at 23% 42%,rgba(134,239,172,.3) 0 3px,transparent 4px),radial-gradient(circle at 28% 50%,rgba(74,222,128,.24) 0 3px,transparent 4px),radial-gradient(circle at 23% 58%,rgba(134,239,172,.28) 0 3px,transparent 4px),radial-gradient(circle at 76% 50%,rgba(74,222,128,.25) 0 3px,transparent 4px),radial-gradient(circle at 81% 42%,rgba(134,239,172,.3) 0 3px,transparent 4px),radial-gradient(circle at 86% 50%,rgba(74,222,128,.24) 0 3px,transparent 4px),radial-gradient(circle at 81% 58%,rgba(134,239,172,.28) 0 3px,transparent 4px),linear-gradient(112deg,#064e3b,#047857 50%,#022c22); }
.leaderboard-identity .player-title-pokerPro,.market-player-identity .player-title-pokerPro,.direct-online-card .player-title-pokerPro { background-color:#4c0519; background-image:linear-gradient(78deg,transparent 0 8%,rgba(255,241,242,.95) 8% 22%,rgba(251,113,133,.9) 22% 23%,transparent 23% 77%,rgba(255,241,242,.95) 77% 91%,rgba(251,113,133,.9) 91% 92%,transparent 92%),linear-gradient(90deg,#881337,#be123c 48%,#4c0519); background-size:100% 84%,100% 100%; background-position:center,center; background-repeat:no-repeat; }
.leaderboard-identity .player-title-queenOfKings,.market-player-identity .player-title-queenOfKings,.direct-online-card .player-title-queenOfKings { background-color:#292929; background-image:repeating-conic-gradient(#555 0 25%,#202020 0 50%); background-size:18px 18px; color:#f8fafc; --title-edge:#e5e7eb; --title-ink:#fff; --title-shade:#303030; --title-glow:rgba(255,255,255,.28); }
.leaderboard-identity .player-title-flappyFanatic,.market-player-identity .player-title-flappyFanatic,.direct-online-card .player-title-flappyFanatic { background-color:#0284c7; background-image:radial-gradient(ellipse 22px 11px at 12% 22%,rgba(255,255,255,.96) 0 68%,transparent 72%),radial-gradient(ellipse 18px 9px at 18% 17%,rgba(224,242,254,.92) 0 68%,transparent 72%),radial-gradient(ellipse 23px 12px at 88% 24%,rgba(255,255,255,.92) 0 68%,transparent 72%),radial-gradient(ellipse 19px 10px at 82% 18%,rgba(224,242,254,.92) 0 68%,transparent 72%),linear-gradient(120deg,#0c4a6e,#0284c7 52%,#075985); }
.username-display[data-player-title="blackjack"] { background-image:radial-gradient(circle at 13% 42%,rgba(74,222,128,.34) 0 5px,transparent 6px),radial-gradient(circle at 17% 34%,rgba(134,239,172,.38) 0 5px,transparent 6px),radial-gradient(circle at 21% 42%,rgba(74,222,128,.32) 0 5px,transparent 6px),radial-gradient(circle at 17% 50%,rgba(134,239,172,.36) 0 5px,transparent 6px),radial-gradient(circle at 87% 42%,rgba(74,222,128,.34) 0 5px,transparent 6px),radial-gradient(circle at 83% 34%,rgba(134,239,172,.38) 0 5px,transparent 6px),radial-gradient(circle at 79% 42%,rgba(74,222,128,.32) 0 5px,transparent 6px),radial-gradient(circle at 83% 50%,rgba(134,239,172,.36) 0 5px,transparent 6px),linear-gradient(112deg,#064e3b,#047857 50%,#022c22); }
.username-display[data-player-title="pokerPro"] { background-image:linear-gradient(78deg,transparent 0 8%,rgba(255,241,242,.96) 8% 24%,rgba(251,113,133,.95) 24% 25%,transparent 25% 75%,rgba(255,241,242,.96) 75% 91%,rgba(251,113,133,.95) 91% 92%,transparent 92%),linear-gradient(115deg,#4c0519,#be123c 48%,#881337); background-size:100% 82%,100% 100%; background-position:center,center; background-repeat:no-repeat; }
.username-display[data-player-title="queenOfKings"] { background-image:repeating-conic-gradient(rgba(255,255,255,.12) 0 25%,rgba(0,0,0,.2) 0 50%),linear-gradient(110deg,#111,#444 50%,#151515); background-size:20px 20px,100% 100%; color:#fff; border-color:#e5e7eb; box-shadow:inset 0 1px rgba(255,255,255,.22),0 0 15px rgba(255,255,255,.24); }
.username-display[data-player-title="queenOfKings"]::after { border-color:#e5e7eb; background:linear-gradient(110deg,#111,#444,#111); color:#fff; }
.account-screen-username[data-player-title="blackjack"] { background-image:radial-gradient(circle at 12% 50%,rgba(74,222,128,.3) 0 5px,transparent 6px),radial-gradient(circle at 16% 42%,rgba(134,239,172,.32) 0 5px,transparent 6px),radial-gradient(circle at 20% 50%,rgba(74,222,128,.3) 0 5px,transparent 6px),radial-gradient(circle at 16% 58%,rgba(134,239,172,.32) 0 5px,transparent 6px),radial-gradient(circle at 88% 50%,rgba(74,222,128,.3) 0 5px,transparent 6px),radial-gradient(circle at 84% 42%,rgba(134,239,172,.32) 0 5px,transparent 6px),radial-gradient(circle at 80% 50%,rgba(74,222,128,.3) 0 5px,transparent 6px),radial-gradient(circle at 84% 58%,rgba(134,239,172,.32) 0 5px,transparent 6px),linear-gradient(112deg,#064e3b,#047857 50%,#022c22); }
.account-screen-username[data-player-title="pokerPro"] { background-image:linear-gradient(78deg,transparent 0 8%,rgba(255,241,242,.96) 8% 24%,rgba(251,113,133,.95) 24% 25%,transparent 25% 75%,rgba(255,241,242,.96) 75% 91%,rgba(251,113,133,.95) 91% 92%,transparent 92%),linear-gradient(115deg,#4c0519,#be123c 48%,#881337); background-size:100% 82%,100% 100%; background-position:center,center; background-repeat:no-repeat; }
.account-screen-username[data-player-title="queenOfKings"] { background-image:repeating-conic-gradient(rgba(255,255,255,.12) 0 25%,rgba(0,0,0,.2) 0 50%),linear-gradient(110deg,#111,#444 50%,#151515); background-size:20px 20px,100% 100%; color:#fff; border-color:#e5e7eb; box-shadow:inset 0 1px rgba(255,255,255,.22),0 0 18px rgba(255,255,255,.23); }
.account-screen-username[data-player-title="queenOfKings"]::after { border-color:#e5e7eb; background:linear-gradient(110deg,#111,#444,#111); color:#fff; }
.account-screen-username[data-player-title="flappyFanatic"] { background-image:radial-gradient(ellipse 34px 19px at 10% 18%,rgba(255,255,255,.98) 0 68%,transparent 72%),radial-gradient(ellipse 27px 16px at 17% 12%,rgba(224,242,254,.96) 0 68%,transparent 72%),radial-gradient(ellipse 35px 19px at 90% 20%,rgba(255,255,255,.96) 0 68%,transparent 72%),radial-gradient(ellipse 28px 16px at 82% 13%,rgba(224,242,254,.96) 0 68%,transparent 72%),linear-gradient(120deg,#0c4a6e,#0284c7 52%,#075985); }

/* Compact illustrated title treatments: let the pattern and colored type carry the design. */
.username-display[data-player-title="blackjack"],.username-display[data-player-title="pokerPro"],.username-display[data-player-title="queenOfKings"],.username-display[data-player-title="flappyFanatic"] { display:inline-flex; flex-direction:column; align-items:center; gap:1px; padding:2px 7px 3px; border:0; border-radius:8px; background-color:transparent; box-shadow:none; font-size:clamp(.82rem,1.5vw,1rem); line-height:1.08; }
.username-display[data-player-title="blackjack"] { color:#bbf7d0; text-shadow:0 1px 2px #052e16,0 0 8px rgba(74,222,128,.75); background-image:radial-gradient(circle at 16% 22%,rgba(134,239,172,.5) 0 3px,transparent 4px),radial-gradient(circle at 20% 16%,rgba(74,222,128,.5) 0 3px,transparent 4px),radial-gradient(circle at 24% 22%,rgba(134,239,172,.5) 0 3px,transparent 4px),radial-gradient(circle at 20% 28%,rgba(74,222,128,.5) 0 3px,transparent 4px),radial-gradient(circle at 80% 72%,rgba(134,239,172,.42) 0 3px,transparent 4px),radial-gradient(circle at 84% 66%,rgba(74,222,128,.42) 0 3px,transparent 4px),radial-gradient(circle at 88% 72%,rgba(134,239,172,.42) 0 3px,transparent 4px),radial-gradient(circle at 84% 78%,rgba(74,222,128,.42) 0 3px,transparent 4px),linear-gradient(110deg,rgba(6,78,59,.18),rgba(5,46,22,.34),rgba(6,78,59,.18)); }
.username-display[data-player-title="pokerPro"] { color:#fecdd3; text-shadow:0 1px 2px #4c0519,0 0 8px rgba(251,113,133,.75); background-image:linear-gradient(80deg,transparent 3%,rgba(255,241,242,.2) 4% 20%,transparent 21% 79%,rgba(255,241,242,.2) 80% 96%,transparent 97%),linear-gradient(110deg,rgba(136,19,55,.18),rgba(76,5,25,.32),rgba(136,19,55,.18)); }
.username-display[data-player-title="queenOfKings"] { color:#f8fafc; text-shadow:0 1px 2px #000,0 0 8px rgba(255,255,255,.54); background-image:repeating-conic-gradient(rgba(255,255,255,.12) 0 25%,rgba(0,0,0,.18) 0 50%); background-size:12px 12px; }
.username-display[data-player-title="flappyFanatic"] { color:#e0f2fe; text-shadow:0 1px 2px #082f49,0 0 8px rgba(56,189,248,.78); background-image:radial-gradient(ellipse 18px 8px at 13% 50%,rgba(255,255,255,.68) 0 68%,transparent 73%),radial-gradient(ellipse 16px 7px at 87% 48%,rgba(224,242,254,.62) 0 68%,transparent 73%),linear-gradient(110deg,rgba(7,89,133,.14),rgba(8,47,73,.25),rgba(7,89,133,.14)); }
.username-display[data-player-title="blackjack"]::before,.username-display[data-player-title="pokerPro"]::before,.username-display[data-player-title="queenOfKings"]::before,.username-display[data-player-title="flappyFanatic"]::before { inset:0; border:0; border-radius:inherit; opacity:1; box-shadow:none; }
.username-display[data-player-title="blackjack"]::after,.username-display[data-player-title="pokerPro"]::after,.username-display[data-player-title="queenOfKings"]::after,.username-display[data-player-title="flappyFanatic"]::after { z-index:2; margin-top:1px; padding:0; border:0; background:none; box-shadow:none; font-size:.48em; letter-spacing:.1em; }
.username-display[data-player-title="blackjack"]::after { color:#86efac; content:'♣ JACK OF ALL ♣'; }
.username-display[data-player-title="pokerPro"]::after { color:#fda4af; content:'A ♥  POKER PRO  ♦ K'; }
.username-display[data-player-title="queenOfKings"]::after { color:#e5e7eb; content:'♛ QUEEN OF KINGS ♛'; }
.username-display[data-player-title="flappyFanatic"]::after { color:#bae6fd; content:'☁ FLAPPY FANATIC ☁'; }
.account-screen-username[data-player-title="blackjack"],.account-screen-username[data-player-title="pokerPro"],.account-screen-username[data-player-title="queenOfKings"],.account-screen-username[data-player-title="flappyFanatic"] { display:inline-flex; flex-direction:column; align-items:flex-start; gap:1px; width:fit-content; min-width:0; max-width:100%; padding:4px 8px 5px; border:0; border-radius:8px; background-size:auto; box-shadow:none; font-size:1.25rem; line-height:1.1; }
.account-screen-username[data-player-title="blackjack"] { color:#bbf7d0; text-shadow:0 1px 2px #052e16,0 0 8px rgba(74,222,128,.75); background-image:radial-gradient(circle at 12% 20%,rgba(134,239,172,.52) 0 4px,transparent 5px),radial-gradient(circle at 16% 13%,rgba(74,222,128,.5) 0 4px,transparent 5px),radial-gradient(circle at 20% 20%,rgba(134,239,172,.52) 0 4px,transparent 5px),radial-gradient(circle at 16% 27%,rgba(74,222,128,.5) 0 4px,transparent 5px),radial-gradient(circle at 86% 76%,rgba(134,239,172,.45) 0 4px,transparent 5px),radial-gradient(circle at 90% 69%,rgba(74,222,128,.42) 0 4px,transparent 5px),radial-gradient(circle at 94% 76%,rgba(134,239,172,.45) 0 4px,transparent 5px),radial-gradient(circle at 90% 83%,rgba(74,222,128,.42) 0 4px,transparent 5px),linear-gradient(110deg,rgba(6,78,59,.2),rgba(5,46,22,.35),rgba(6,78,59,.2)); }
.account-screen-username[data-player-title="pokerPro"] { color:#fecdd3; text-shadow:0 1px 2px #4c0519,0 0 8px rgba(251,113,133,.75); background-image:linear-gradient(80deg,transparent 3%,rgba(255,241,242,.23) 4% 20%,transparent 21% 79%,rgba(255,241,242,.23) 80% 96%,transparent 97%),linear-gradient(110deg,rgba(136,19,55,.2),rgba(76,5,25,.34),rgba(136,19,55,.2)); }
.account-screen-username[data-player-title="queenOfKings"] { color:#f8fafc; text-shadow:0 1px 2px #000,0 0 8px rgba(255,255,255,.54); background-image:repeating-conic-gradient(rgba(255,255,255,.12) 0 25%,rgba(0,0,0,.18) 0 50%); background-size:14px 14px; }
.account-screen-username[data-player-title="flappyFanatic"] { color:#e0f2fe; text-shadow:0 1px 2px #082f49,0 0 8px rgba(56,189,248,.78); background-image:radial-gradient(ellipse 24px 11px at 13% 43%,rgba(255,255,255,.7) 0 68%,transparent 73%),radial-gradient(ellipse 20px 9px at 87% 42%,rgba(224,242,254,.66) 0 68%,transparent 73%),linear-gradient(110deg,rgba(7,89,133,.18),rgba(8,47,73,.28),rgba(7,89,133,.18)); }
.account-screen-username[data-player-title="blackjack"]::before,.account-screen-username[data-player-title="pokerPro"]::before,.account-screen-username[data-player-title="queenOfKings"]::before,.account-screen-username[data-player-title="flappyFanatic"]::before { inset:0; border:0; border-radius:inherit; box-shadow:none; }
.account-screen-username[data-player-title="blackjack"]::after,.account-screen-username[data-player-title="pokerPro"]::after,.account-screen-username[data-player-title="queenOfKings"]::after,.account-screen-username[data-player-title="flappyFanatic"]::after { margin:0; padding:0; border:0; background:none; box-shadow:none; font-size:.48em; letter-spacing:.1em; }
.account-screen-username[data-player-title="blackjack"]::after { color:#86efac; content:'♣ JACK OF ALL ♣'; }
.account-screen-username[data-player-title="pokerPro"]::after { color:#fda4af; content:'A ♥  POKER PRO  ♦ K'; }
.account-screen-username[data-player-title="queenOfKings"]::after { color:#e5e7eb; content:'♛ QUEEN OF KINGS ♛'; }
.account-screen-username[data-player-title="flappyFanatic"]::after { color:#bae6fd; content:'☁ FLAPPY FANATIC ☁'; }
.leaderboard-identity .player-title-blackjack,.market-player-identity .player-title-blackjack,.direct-online-card .player-title-blackjack { border:1px solid rgba(74,222,128,.55); border-radius:7px; color:#bbf7d0; background-color:#064e3b; background-image:radial-gradient(circle at 18% 50%,rgba(134,239,172,.34) 0 3px,transparent 4px),radial-gradient(circle at 23% 42%,rgba(74,222,128,.34) 0 3px,transparent 4px),radial-gradient(circle at 28% 50%,rgba(134,239,172,.34) 0 3px,transparent 4px),radial-gradient(circle at 23% 58%,rgba(74,222,128,.34) 0 3px,transparent 4px),radial-gradient(circle at 76% 50%,rgba(134,239,172,.34) 0 3px,transparent 4px),radial-gradient(circle at 81% 42%,rgba(74,222,128,.34) 0 3px,transparent 4px),radial-gradient(circle at 86% 50%,rgba(134,239,172,.34) 0 3px,transparent 4px),radial-gradient(circle at 81% 58%,rgba(74,222,128,.34) 0 3px,transparent 4px),linear-gradient(110deg,#064e3b,#047857 50%,#022c22); box-shadow:0 2px 8px rgba(16,185,129,.22); }
.guest-button:hover,
.guest-entry-button:hover,
.guest-stay-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(37, 99, 168, 0.3);
}

#game-area {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    background: rgba(7, 11, 20, 0.58);
}
.beta-label { flex: 0 0 auto; padding: 6px 10px; border: 1px solid rgba(125, 211, 252, .55); border-radius: 999px; background: linear-gradient(135deg, rgba(14,116,144,.55), rgba(67,56,202,.45)); color: #e0f2fe; font-size: .72rem; font-weight: 950; letter-spacing: .14em; box-shadow: inset 0 1px rgba(255,255,255,.18), 0 0 18px rgba(56,189,248,.16); }

.account-menu {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
}

.account-menu > .username-display {
    margin-left: 0;
    color: #e2e8f0;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.account-menu-button {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(203, 213, 225, 0.4);
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(71, 85, 105, 0.75), rgba(30, 41, 59, 0.92));
    color: #cbd5e1;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25), inset 0 1px rgba(255, 255, 255, 0.12);
    transition: transform 0.2s ease, background 0.2s ease;
}

.account-menu-button svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.account-menu-button svg circle {
    fill: none;
    stroke: currentColor;
}

.account-menu-button:hover,
.account-menu-button:focus-visible {
    transform: translateY(-2px);
    background: linear-gradient(145deg, rgba(100, 116, 139, 0.9), rgba(51, 65, 85, 0.96));
}

.account-menu-button:focus-visible {
    outline: 2px solid #cbd5e1;
    outline-offset: 3px;
}

.account-screen {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(3, 7, 18, 0.78);
    backdrop-filter: blur(8px);
}

.account-screen-card {
    position: relative;
    display: grid;
    gap: 14px;
    width: min(100%, 380px);
    max-height: calc(100vh - 48px);
    padding: 32px;
    overflow-y: auto;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 22px;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.account-screen-card h2 {
    margin: 0 40px 8px 0;
    font-size: 1.8rem;
}
.account-screen-card.password-reset-open > :not(#password-reset-screen) { display:none; }
.password-reset-screen { display:grid; gap:12px; }
.password-reset-screen h2 { margin:0 0 4px; }
.password-reset-screen > p { margin:0; color:var(--text-muted); line-height:1.5; }
.password-reset-screen > p strong { color:#bae6fd; overflow-wrap:anywhere; }
.password-reset-launch { justify-self:start; }
.password-reset-back { width:fit-content; padding:7px 0; border:0; background:none; color:#7dd3fc; font:inherit; font-weight:750; cursor:pointer; }

.account-screen-label {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.account-screen-username {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 1.35rem;
    font-weight: 800;
}
.auth-mode-toggle.hidden { display:none; }
.settings-password-section { display:grid; gap:10px; margin-top:18px; padding-top:16px; border-top:1px solid rgba(148,163,184,.22); }
.settings-password-section h3,.settings-password-section p { margin:0; }
.settings-password-section p { color:var(--text-muted); }
.auth-mode-toggle.hidden { display:none; }
.account-screen-username[data-player-title]:not([data-player-title=""]):not(.admin-player-title):not(.dedicated-player-title) { display:inline-flex; flex-direction:column; align-items:flex-start; gap:4px; padding:6px 10px; border:1px solid currentColor; border-radius:14px; }
.account-screen-username[data-player-title="blackjack"] { color:#a7f3d0; background:linear-gradient(110deg,#052e2b,#047857 55%,#064e3b); box-shadow:0 0 16px rgba(16,185,129,.24); }
.account-screen-username[data-player-title="blackjack"]::after { content:'♠ ♥  JACK OF ALL  ♦ ♣'; }
.account-screen-username[data-player-title="pokerPro"] { color:#ffe4e6; background:linear-gradient(110deg,#4c0519,#be123c 55%,#881337); box-shadow:0 0 16px rgba(244,63,94,.25); }
.account-screen-username[data-player-title="pokerPro"]::after { content:'🂡 🂱  POKER PRO  🂾 🂮'; }
.account-screen-username[data-player-title="queenOfKings"] { color:#fef3c7; background:linear-gradient(110deg,#422006,#a16207 55%,#713f12); box-shadow:0 0 16px rgba(250,204,21,.25); }
.account-screen-username[data-player-title="queenOfKings"]::after { content:'♛  QUEEN OF KINGS  ♛'; }
.account-screen-username[data-player-title="flappyFanatic"] { color:#e0f2fe; background:linear-gradient(110deg,#082f49,#0369a1 55%,#164e63); box-shadow:0 0 16px rgba(14,165,233,.25); }
.account-screen-username[data-player-title="flappyFanatic"]::after { content:'☁ ☁  FLAPPY FANATIC  ☁ ☁'; }

.username-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: -8px 0 12px;
}

.audio-settings {
    display: grid;
    gap: 7px;
    margin: 0 0 8px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 13px;
    background: rgba(2, 6, 23, .28);
}
.audio-settings h3 { margin: 0 0 3px; font-size: 1rem; }
.audio-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #e2e8f0; font-size: .88rem; font-weight: 750; }
.audio-setting-row output { color: #7dd3fc; font-variant-numeric: tabular-nums; }
.audio-volume-slider { width: 100%; margin: 0 0 5px; accent-color: #38bdf8; cursor: pointer; }
.audio-settings p { margin: 0; color: var(--text-muted); font-size: .74rem; line-height: 1.4; }
.audio-settings .background-song-toggle { justify-self: start; margin: 0 0 8px; }

.username-change-button {
    min-height: 40px;
    padding: 8px 11px;
    border: 1px solid rgba(96, 165, 250, 0.4);
    border-radius: 10px;
    background: rgba(37, 99, 168, 0.28);
    color: #dbeafe;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
}

.change-username-form {
    display: grid;
    gap: 9px;
    margin: -8px 0 8px;
}

.change-username-form input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
    font: inherit;
}

.change-password-form {
    display: grid;
    gap: 9px;
    margin-top: 14px;
}

.change-password-form label {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.change-password-form input {
    min-width: 0;
}

.password-change-hint {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 400;
}

.account-close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 1.8rem;
    cursor: pointer;
}

.admin-panel {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.admin-panel h3 {
    margin: 0 0 2px;
    color: #fbbf24;
}

.admin-rewards-menu {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.48);
}

.admin-grant-mutations { display:grid; gap:7px; padding:11px; border:1px solid rgba(192,132,252,.3); border-radius:12px; background:rgba(76,29,149,.12); }
.admin-grant-mutations > summary { color:#e9d5ff; font-size:.84rem; font-weight:800; cursor:pointer; }
.admin-grant-mutations[open] > summary { margin-bottom:2px; }
.admin-mutation-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.admin-mutation-options label { display:flex; align-items:center; gap:7px; min-width:0; padding:6px 7px; border:1px solid rgba(148,163,184,.17); border-radius:8px; background:rgba(15,23,42,.35); font-size:.77rem; }
.admin-mutation-options input { flex:0 0 auto; width:16px; height:16px; margin:0; accent-color:#c084fc; }
.admin-mutation-options i { display:grid; place-items:center; flex:0 0 20px; width:20px; height:20px; border-radius:50%; background:color-mix(in srgb,var(--mutation-color) 24%,#111827); color:var(--mutation-color); font-size:.83rem; font-style:normal; }
.admin-mutation-options span { overflow:hidden; text-overflow:ellipsis; }
.admin-grant-mutations small { color:#c4b5fd; line-height:1.4; }

.admin-rewards-menu summary {
    min-height: 28px;
    color: #fbbf24;
    font-weight: 800;
    cursor: pointer;
}

.admin-rewards-menu[open] summary {
    margin-bottom: 2px;
}

.admin-rewards-menu > .admin-action-button {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    line-height: 1.3;
    text-align: left;
    white-space: normal;
}

.admin-panel label {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.admin-panel input,
.admin-panel select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
    font: inherit;
}

.admin-panel select {
    color-scheme: dark;
}

.admin-panel select.admin-points-selected {
    border-color: rgba(251, 191, 36, 0.9);
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.2), 0 0 16px rgba(251, 191, 36, 0.16);
}

.admin-action-button {
    padding: 11px 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 10px;
    background: linear-gradient(135deg, #334155, #1e293b);
    color: #f8fafc;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.admin-account-list {
    display: grid;
    gap: 6px;
    max-height: 160px;
    margin: 0;
    padding: 10px;
    list-style: none;
    overflow-y: auto;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.7);
    color: #e2e8f0;
}

.admin-account-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    padding: 8px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 9px;
}

.admin-account-item span {
    flex: 1 1 100%;
    overflow-wrap: anywhere;
}

.admin-account-action {
    min-height: 34px;
    padding: 6px 9px;
    border: 1px solid rgba(248, 181, 0, 0.32);
    border-radius: 8px;
    background: rgba(248, 181, 0, 0.1);
    color: #fde68a;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
}

.admin-account-note {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.admin-status {
    min-height: 1em;
    margin: 0;
    color: #bbf7d0;
    font-size: 0.9rem;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
}

.currency-display {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 170px;
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(34, 197, 94, 0.2));
    border: 1px solid rgba(248, 181, 0, 0.5);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fef3c7;
    box-shadow: 0 10px 30px var(--shadow);
}

.socials-menu { position: relative; z-index: 5; flex: 0 0 auto; }
.socials-menu-button {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(165, 180, 252, .58);
    border-radius: 15px;
    background: linear-gradient(145deg, #5865f2, #404eed);
    color: #fff;
    box-shadow: 0 8px 22px rgba(64, 78, 237, .32), inset 0 1px rgba(255,255,255,.2);
    cursor: pointer;
    transition: transform .18s ease, filter .18s ease;
}

.socials-menu-button svg { width: 27px; height: 27px; fill: currentColor; }
.socials-menu-button:hover, .socials-menu-button:focus-visible { transform: translateY(-2px); filter: brightness(1.12); }
.socials-menu-button:focus-visible, .socials-menu-link:focus-visible { outline: 2px solid #c7d2fe; outline-offset: 3px; }
.socials-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    gap: 7px;
    width: 178px;
    padding: 9px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 16px;
    background: linear-gradient(155deg, #182338, #0c1424);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .48);
}
.socials-menu-panel.hidden { display: none; }
.socials-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 11px;
    border-radius: 11px;
    color: #f8fafc;
    font-size: .94rem;
    font-weight: 800;
    text-decoration: none;
    transition: background .16s ease, transform .16s ease;
}
.socials-menu-link:hover { transform: translateX(2px); background: rgba(148, 163, 184, .16); }
.socials-menu-link svg { width: 22px; height: 22px; fill: currentColor; }
.discord-social svg { color: #7289ff; }
.youtube-social svg { color: #ff3333; }

.daily-rewards-button {
    position: relative;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid rgba(248, 181, 0, 0.6);
    border-radius: 14px;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.28);
}

.rewards-ready-indicator { position: absolute; top: -8px; right: -8px; display: grid; width: 22px; height: 22px; place-items: center; border: 2px solid #fff; border-radius: 50%; background: #ef233c; color: #fff; font-size: 0.9rem; font-weight: 1000; line-height: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); }
.rewards-ready-indicator.hidden { display: none; }

.daily-rewards-screen {
    position: fixed;
    z-index: 110;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(3, 7, 18, 0.82);
    backdrop-filter: blur(8px);
}

.daily-rewards-screen.hidden .halloween-reward-witch { display:none; }

.daily-rewards-card {
    position: relative;
    width: min(760px, 100%);
    max-height: min(680px, 90vh);
    overflow: auto;
    padding: 28px;
    border: 1px solid rgba(216, 180, 254, 0.35);
    border-radius: 22px;
    background: linear-gradient(145deg, #17132b, #0d1424);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.daily-rewards-card h2 { margin: 0 48px 8px 0; }
.daily-rewards-status { min-height: 1.3em; margin: 0 0 18px; color: var(--text-muted); }
.rewards-section-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(148, 163, 184, 0.2); }
.rewards-section-tab { min-height: 40px; padding: 0 14px; border: 1px solid rgba(148, 163, 184, 0.25); border-radius: 10px; background: rgba(30, 41, 59, 0.75); color: var(--text-muted); font: inherit; font-weight: 700; cursor: pointer; }
.rewards-section-tab.active { border-color: #c084fc; background: rgba(126, 34, 206, 0.34); color: #fff; }
.rewards-section > h3 { margin: 0 0 12px; color: #e9d5ff; }
.hourly-rewards-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hourly-reward-card { display: grid; align-content: center; gap: 9px; min-height: 142px; padding: 16px; border: 1px solid rgba(148, 163, 184, 0.25); border-radius: 15px; background: linear-gradient(155deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.96)); }
.hourly-reward-card.pending { opacity: 0.58; }
.hourly-reward-card.complete { border-color: rgba(192, 132, 252, 0.55); }
.hourly-reward-card.claimed { border-color: rgba(74, 222, 128, 0.5); }
.hourly-reward-card > strong { color: #f8fafc; line-height: 1.35; }
.hourly-reward-value { color: #fde68a; font-weight: 900; }
.hourly-reward-state, .hourly-reward-claimed { color: var(--text-muted); font-size: 0.86rem; }
.daily-walk-progress { color:#bae6fd; font-size:.78rem; font-weight:800; }
.hourly-reward-claimed { color: #86efac; font-weight: 800; }
.hourly-claim-button { justify-self: start; min-height: 36px; padding: 7px 12px; border: 1px solid rgba(74, 222, 128, 0.45); border-radius: 9px; background: rgba(22, 101, 52, 0.58); color: #dcfce7; font: inherit; font-weight: 800; cursor: pointer; }
.daily-rewards-timeline { display: grid; grid-template-columns: repeat(7, minmax(88px, 1fr)); gap: 10px; align-items: stretch; }
.daily-reward-card { position: relative; display: flex; min-height: 190px; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px 8px; border: 1px solid rgba(148, 163, 184, 0.2); border-radius: 15px; background: linear-gradient(160deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.94)); text-align: center; }
.daily-reward-card.locked { filter: grayscale(1); opacity: 0.42; }
.daily-reward-card.current { border-color: #c084fc; box-shadow: 0 0 18px rgba(192, 132, 252, 0.2); }
.daily-reward-card.claimed { border-color: rgba(74, 222, 128, 0.45); }
.daily-reward-day { color: #cbd5e1; font-size: 0.84rem; font-weight: 800; }
.daily-reward-prize { color: #fef3c7; font-size: 0.94rem; }
.daily-reward-worth { color: var(--text-muted); font-size: 0.76rem; }
.daily-reward-state { color: var(--text-muted); font-size: 0.75rem; }
.daily-reward-card .primary-button { min-height: 38px; padding: 7px 12px; font-size: 0.84rem; }
.cc-reward-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #facc15, #f97316); color: #451a03; font-size: 0.78rem; font-weight: 900; box-shadow: 0 0 15px rgba(250, 204, 21, 0.25); }
.daily-reward-next { min-height: 1.3em; margin: 16px 0 0; color: var(--text-muted); font-size: 0.9rem; }
#hourly-mystery-section {
    overflow: hidden; padding: 22px; border: 1px solid rgba(56, 189, 248, 0.34); border-radius: 20px;
    background: radial-gradient(ellipse at 50% 0%, rgba(14, 116, 196, 0.24), transparent 62%), linear-gradient(150deg, rgba(16, 30, 52, 0.97), rgba(9, 15, 28, 0.98));
    box-shadow: inset 0 1px rgba(255,255,255,0.06), 0 16px 38px rgba(2, 8, 23, 0.36); font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}
#hourly-mystery-section > h3 { color: #bae6fd; font-size: 1.45rem; letter-spacing: 0.035em; text-shadow: 0 0 18px rgba(56, 189, 248, 0.3); }
.hourly-mystery-count { margin: 8px 0 0; color: #f8fafc; font-size: 1.03rem; font-weight: 900; letter-spacing: 0.06em; text-align: center; }
#hourly-mystery-section .daily-reward-next { margin: 8px 0 0; text-align: center; }
.hourly-gift-hint { margin: 18px 0 10px; color: #b6c8dc; font-size: 0.92rem; text-align: center; }
.hourly-mystery-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: min(410px, 100%); margin: 0 auto; }
.hourly-gift { --gift-fill: 0%; display: grid; justify-items: center; align-content: start; gap: 5px; min-height: 152px; padding: 12px; border: 1px solid rgba(148, 163, 184, 0.22); border-radius: 15px; background: linear-gradient(160deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.88)); color: #e2e8f0; font: inherit; cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s, opacity .2s; }
.hourly-gift:disabled { cursor: default; }
.hourly-gift.ready { border-color: rgba(56, 189, 248, 0.75); box-shadow: 0 0 22px rgba(14, 165, 233, 0.17), inset 0 0 18px rgba(14, 165, 233, 0.08); }
.hourly-gift.ready:not(:disabled):hover { transform: translateY(-3px); box-shadow: 0 0 28px rgba(14, 165, 233, 0.34); }
.hourly-gift:not(.ready) { opacity: .76; }
.hourly-gift-art { position: relative; display: block; width: 78px; height: 78px; margin: 0 auto 3px; filter: drop-shadow(0 8px 10px rgba(0,0,0,.32)); }
.hourly-gift-box { position: absolute; left: 10px; right: 10px; bottom: 5px; height: 48px; overflow: hidden; border: 3px solid #94a3b8; border-radius: 6px 6px 10px 10px; background: #475569; box-shadow: inset 0 4px rgba(255,255,255,.09); }
.hourly-gift-fill { position: absolute; right: 0; bottom: 0; left: 0; z-index: 0; background: linear-gradient(0deg, #0369a1, #38bdf8); transition: height .5s ease; }
.hourly-gift-ribbon { position: absolute; z-index: 1; top: 0; bottom: 0; left: calc(50% - 5px); width: 10px; background: rgba(186, 230, 253, .82); box-shadow: 0 0 10px rgba(56,189,248,.25); }
.hourly-gift-lid { position: absolute; top: 22px; left: 5px; z-index: 2; width: 68px; height: 14px; border: 3px solid #a8b4c4; border-radius: 5px; background: #64748b; }
.hourly-gift-bow { position: absolute; top: 9px; left: 28px; z-index: 3; width: 23px; height: 17px; border: 4px solid #cbd5e1; border-radius: 13px 13px 3px 13px; transform: rotate(18deg); }
.hourly-gift-bow::after { content: ""; position: absolute; left: 9px; top: 5px; width: 19px; height: 14px; border: 4px solid #cbd5e1; border-radius: 13px 13px 13px 3px; transform: rotate(43deg); }
.hourly-gift-name { color: #f8fafc; font-size: .94rem; font-weight: 900; letter-spacing: .04em; }
.hourly-gift-state { color: #9fb1c7; font-size: .78rem; font-weight: 800; }
.hourly-gift.ready .hourly-gift-state { color: #7dd3fc; }
.hourly-mystery-result { display: grid; justify-items: center; gap: 12px; margin-top: 14px; color: #e0f2fe; font-weight: 800; text-align: center; }
.hourly-box-summary { color: #f8fafc; font-size: 1.05rem; }
.hourly-box-rewards { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; }
.hourly-box-rewards .hourly-pack-reveal { flex: 1 1 150px; max-width: 190px; min-width: 135px; }
.hourly-pack-reveal { display: grid; justify-items: center; gap: 6px; min-width: 220px; padding: 14px 20px; border: 1px solid rgba(192, 132, 252, .62); border-radius: 16px; background: radial-gradient(circle at 50% 42%, rgba(168, 85, 247, .22), transparent 55%), linear-gradient(145deg, rgba(30, 27, 75, .92), rgba(15, 23, 42, .98)); box-shadow: 0 0 30px rgba(168, 85, 247, .2); animation: hourly-pack-pop .48s cubic-bezier(.2,1.45,.45,1) both; }
.hourly-pack-kicker { color: #c4b5fd; font-size: .68rem; font-weight: 900; letter-spacing: .11em; }
.hourly-pack-art { display: block; width: 76px; height: 76px; border: 4px solid rgba(255,255,255,.58); border-radius: 50%; box-shadow: 0 0 23px rgba(56,189,248,.28), inset 0 0 0 5px rgba(255,255,255,.11); }
.hourly-pack-art.hourglass-badge-art { background: radial-gradient(circle at 50% 34%, #f5d0fe, #c026d3 48%, #701a75 76%); position: relative; }
.hourly-pack-art.hourglass-badge-art::before { content: "⌛"; display: grid; height: 100%; place-items: center; color: #fff; font-size: 2.5rem; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.hourly-pack-reveal > strong { color: #fff; font-size: 1.05rem; }
.hourly-pack-reveal > span:last-child { color: #fde68a; font-size: .84rem; }
@keyframes hourly-pack-pop { from { opacity: 0; transform: scale(.72) rotate(-5deg); filter: brightness(1.8); } to { opacity: 1; transform: scale(1) rotate(0); filter: brightness(1); } }
.fire-badge { position: relative; display: inline-block; width: 40px; height: 48px; border-radius: 0; background: url('/assets/fire-badge.svg') center / contain no-repeat; filter: drop-shadow(0 3px 5px rgba(255, 91, 35, 0.3)); }
.fire-badge::before, .fire-badge::after { content: none; }
.inventory-art.fire-badge { position: relative; display: block; flex: 0 0 72px; width: 72px; height: 72px; margin: 0; overflow: visible; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #475569, #1e293b 72%); box-shadow: inset 0 0 0 4px rgba(255,255,255,.16); }
.inventory-art.fire-badge::before { content: ""; position: absolute; z-index: 1; inset: -12px -6px 0; background: url('/assets/fire-badge.svg') center / contain no-repeat; filter: drop-shadow(0 3px 5px rgba(255,91,35,.3)); }
.index-card.not-collected .inventory-art.fire-badge { filter: saturate(0.08) brightness(0.76); opacity: 0.7; }

@media (max-width: 620px) {
  #hourly-mystery-section { padding: 16px; }
  .hourly-mystery-controls { gap: 9px; }
  .hourly-gift { min-height: 140px; padding: 10px 6px; }
    .top-bar { flex-wrap: wrap; }
    .currency-display { min-width: 0; flex: 1 1 180px; }
    .daily-rewards-button { flex: 0 0 auto; }
    .daily-rewards-card { padding: 22px 16px; }
    .daily-rewards-timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .daily-reward-card { min-height: 160px; }
    .hourly-rewards-list { grid-template-columns: 1fr; }
}

.currency-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #facc15, #f97316);
    color: #451a03;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: -0.08em;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.inventory-heading {
    margin-bottom: 18px;
}

.inventory-heading h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.5rem;
}

.inventory-heading p {
    margin: 6px 0 0;
    color: var(--text-muted);
}

.open-index-button {
    display: block;
    width: 100%;
    min-height: 48px;
    margin-top: 18px;
    border: 1px solid rgba(248, 181, 0, 0.45);
    border-radius: 12px;
    background: rgba(251, 191, 36, 0.12);
    color: #fde68a;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    touch-action: manipulation;
}

.index-back-button {
    min-height: 44px;
    margin: 0 0 16px;
    padding: 9px 14px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.7);
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
}

.index-progress {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-weight: 700;
}

.index-rewards { margin: 0 0 20px; padding: 15px; border: 1px solid rgba(56,189,248,.22); border-radius: 15px; background: radial-gradient(ellipse at 0 0,rgba(14,116,144,.18),transparent 65%),linear-gradient(145deg,rgba(15,23,42,.85),rgba(8,15,31,.86)); }
.index-rewards-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.index-rewards-heading > div { display: grid; gap: 3px; }
.index-rewards-heading strong { color: #f8fafc; font-size: .96rem; }
.index-rewards-heading span { color: #94a3b8; font-size: .74rem; }
.index-rewards-heading .index-reward-milestone { flex: 0 0 auto; padding: 5px 9px; border: 1px solid rgba(56,189,248,.2); border-radius: 999px; background: rgba(8,145,178,.1); color: #7dd3fc; font-size: .68rem; font-weight: 850; }
.index-reward-steps { display: grid; grid-template-columns: repeat(auto-fit,minmax(135px,1fr)); gap: 8px; }
.index-reward-step { display: grid; align-content: start; justify-items: start; gap: 5px; min-height: 80px; padding: 10px; border: 1px solid rgba(148,163,184,.17); border-radius: 11px; background: rgba(2,6,23,.28); }
.index-reward-count { display: grid; place-items: center; min-width: 24px; height: 23px; padding: 0 5px; border-radius: 7px; background: rgba(51,65,85,.7); color: #cbd5e1; font-size: .68rem; font-weight: 900; }
.index-reward-step > strong { color: #e2e8f0; font-size: .8rem; }
.index-reward-step > small { color: #94a3b8; font-size: .67rem; line-height: 1.35; }
.index-reward-step.ready { border-color: rgba(250,204,21,.48); background: rgba(120,83,9,.12); }
.index-reward-step.ready > strong { color: #fde68a; }
.index-reward-step.earned { border-color: rgba(74,222,128,.35); background: rgba(20,83,45,.18); }
.index-reward-step.earned > strong { color: #bbf7d0; }
.index-completion-step { background: linear-gradient(145deg,rgba(30,41,59,.6),rgba(2,6,23,.34)); }
.index-reward-check { display: grid; place-items: center; width: 24px; height: 23px; border-radius: 7px; background: linear-gradient(145deg,#86efac,#22c55e); color: #052e16; font-weight: 1000; }
.inventory-art.index-checkmark-art { display: grid; place-items: center; border: 3px solid #bbf7d0; background: radial-gradient(circle at 32% 25%,#ecfccb,#4ade80 46%,#166534 100%); box-shadow: inset 0 0 0 4px rgba(255,255,255,.18),0 8px 20px rgba(34,197,94,.28); }
.inventory-art.index-checkmark-art::before { content: '\2713'; color: #052e16; font: 1000 2.5rem/1 system-ui,sans-serif; text-shadow: 0 1px 0 rgba(255,255,255,.55); }
.badge-preview-art.index-checkmark-art { display: grid; place-items: center; border: 5px solid #bbf7d0; background: radial-gradient(circle at 32% 25%,#ecfccb,#4ade80 46%,#166534 100%); box-shadow: inset 0 0 0 8px rgba(255,255,255,.18),0 0 48px rgba(34,197,94,.3); }
.badge-preview-art.index-checkmark-art::before { content: '\2713'; color: #052e16; font: 1000 clamp(7rem,28vw,17rem)/1 system-ui,sans-serif; text-shadow: 0 3px 0 rgba(255,255,255,.5); }
@media (max-width: 600px) {
  .index-rewards { padding: 12px; }
  .index-reward-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

.currency-name {
    color: #fde68a;
    font-size: 0.78rem;
    font-weight: 700;
}

.game-panel {
    position: relative;
    flex: 1 0 auto;
    min-height: max(520px, calc(100vh - 260px));
    background: var(--panel);
    border: none;
    padding: 0 24px 40px;
    box-shadow: 0 0 22px rgba(234, 88, 12, 0.2);
    isolation: isolate;
}

.game-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: conic-gradient(
        from var(--border-angle),
        #431407,
        #9a3412 18%,
        #fdba74 32%,
        #c2410c 46%,
        #451a03 64%,
        #f97316 82%,
        #431407
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
    animation: redFrameFlow 3s linear infinite;
}

.sets-section {
    position: relative;
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 36px 24px 100px;
}

.sets-heading {
    margin-bottom: 22px;
}

.sets-heading h2,
.set-card h3 {
    margin: 0;
}

.sets-heading p:not(.section-kicker) {
    margin: 8px 0 0;
    color: var(--text-muted);
}

.section-kicker {
    margin: 0 0 6px;
    color: #f87171;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.set-card {
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 18px;
    background: rgba(10, 16, 31, 0.82);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.set-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.set-progress {
    padding: 8px 12px;
    border: 1px solid rgba(248, 113, 113, 0.45);
    border-radius: 999px;
    color: #fecaca;
    font-weight: 700;
}

.set-progress.ready {
    border-color: rgba(74, 222, 128, 0.72);
    background: rgba(34, 197, 94, 0.14);
    color: #bbf7d0;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.16);
}

.set-items {
    display: grid;
    grid-template-columns: repeat(7, minmax(72px, 1fr));
    gap: 12px;
}

.flower-items { grid-template-columns: repeat(4, minmax(72px, 1fr)); }

.set-item {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 12px 8px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    color: var(--text-muted);
    text-align: center;
}

.set-item.owned {
    border-color: rgba(74, 222, 128, 0.55);
    color: var(--text);
}

.set-art {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    opacity: 0.26;
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.14), 0 8px 18px rgba(0, 0, 0, 0.22);
}

.set-item.owned .set-art {
    opacity: 1;
}

.set-source {
    color: #94a3b8;
    font-size: 0.68rem;
    line-height: 1.25;
}

.set-item-progress {
    color: #fde68a;
    font-size: 0.74rem;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}

.set-check {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 2px solid rgba(10, 16, 31, 0.9);
    border-radius: 50%;
    background: #22c55e;
    color: #052e16;
    font-size: 0.8rem;
    font-weight: 900;
}

.set-check:empty {
    display: none;
}

.set-reward {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.rainbow-badge {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff5570 0%, #ffd43b 36%, #4fe08f 58%, #35b9f4 78%, #a86cff 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 900;
    box-shadow: 0 0 18px rgba(255, 200, 85, 0.35), 0 8px 20px rgba(0, 0, 0, 0.24);
    filter: saturate(1.5) brightness(1.18);
}

.set-reward-copy {
    display: grid;
    gap: 4px;
    flex: 0 1 auto;
}

.set-reward-copy span {
    color: var(--text-muted);
}

.reward-points {
    color: #fde68a;
    font-size: 0.85rem;
    font-weight: 800;
    white-space: nowrap;
}

.static-badge {
    position: relative;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 50%;
    background:
        linear-gradient(90deg, #07111f 0 16%, #f8fafc 16% 32%, #32126b 32% 52%, #050505 52% 100%) 0 72% / 100% 28% no-repeat,
        linear-gradient(90deg, #f8fafc 0 14.28%, #fff500 14.28% 28.56%, #20e0e5 28.56% 42.84%, #20f000 42.84% 57.12%, #ec00e5 57.12% 71.4%, #eb0000 71.4% 85.68%, #1111e8 85.68% 100%) 0 0 / 100% 72% no-repeat,
        #050505;
    filter: saturate(0.82) contrast(0.92);
    overflow: hidden;
    box-shadow: inset 0 0 0 4px rgba(15, 23, 42, 0.2), 0 8px 20px rgba(0, 0, 0, 0.24);
}

.static-badge::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.12) 0 1px,
        rgba(15, 23, 42, 0.08) 1px 3px
    );
    opacity: 0.65;
    pointer-events: none;
}

.set-claim-button {
    margin-left: auto;
    padding: 11px 16px;
    border: 1px solid rgba(248, 113, 113, 0.5);
    border-radius: 10px;
    background: #7f1d1d;
    color: #fee2e2;
    font-weight: 800;
    cursor: pointer;
}

.set-claim-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.set-claim-button.ready {
    border-color: #4ade80;
    background: linear-gradient(135deg, #15803d, #166534);
    color: #f0fdf4;
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.28);
}

.set-claim-button.set-trade-pop {
    animation: set-trade-pop 620ms cubic-bezier(.2,.8,.25,1);
}

@keyframes set-trade-pop {
    28% { transform: scale(1.14); box-shadow: 0 0 0 5px rgba(74,222,128,.18), 0 0 34px rgba(74,222,128,.9); filter: brightness(1.35); }
    58% { transform: scale(.97); box-shadow: 0 0 0 2px rgba(74,222,128,.12), 0 0 20px rgba(74,222,128,.6); }
    100% { transform: scale(1); }
}

.set-card.set-trade-pop {
    animation: set-card-trade-flash 700ms ease-out;
}

@keyframes set-card-trade-flash {
    24% { transform: translateY(-4px); border-color: rgba(74,222,128,.95); box-shadow: 0 0 0 3px rgba(74,222,128,.16), 0 0 42px rgba(74,222,128,.48), 0 18px 50px rgba(0,0,0,.22); }
    100% { transform: translateY(0); border-color: rgba(148,163,184,.24); box-shadow: 0 18px 50px rgba(0,0,0,.22); }
}

@media (prefers-reduced-motion: reduce) {
    .set-claim-button.set-trade-pop, .set-card.set-trade-pop { animation: none; }
}

.controls {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.controls.hidden {
    display: none;
}

.pack-options {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}

.pack-purchase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.pack-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    min-height: 86px;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, #b85c62, #b98262 34%, #b8a85d 52%, #629b83 70%, #6488aa 86%, #887da3);
    border: 4px solid #9ca3af;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    text-align: center;
    text-shadow: 0 2px 8px rgba(15, 23, 42, 0.5);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
}

.neon-pack-logo {
    position: relative;
    z-index: 0;
    isolation: isolate;
    overflow: hidden;
    background: radial-gradient(circle, #12182b, #070b14 72%);
    border-color: #9ca3af;
    box-shadow: 0 0 24px rgba(255, 56, 209, 0.3), 0 12px 30px rgba(15, 23, 42, 0.35);
    text-shadow: 0 2px 5px #020617, 0 0 12px #ff38d1;
}

.shades-pack-logo {
    color: #fff;
    background: conic-gradient(#111827 25%, #f8fafc 0 50%, #111827 0 75%, #f8fafc 0);
    border-color: #6b7280;
    text-shadow: 0 2px 8px rgba(15, 23, 42, 0.7);
}

.ore-pack-logo {
    background: radial-gradient(circle at 28% 30%, #66e8ff 0 5%, transparent 6%), radial-gradient(circle at 72% 64%, #eacbff 0 7%, transparent 8%), linear-gradient(135deg, #172554, #075985 48%, #422006);
    border-color: #d1d5db;
    box-shadow: 0 0 20px rgba(203, 213, 225, .18), 0 12px 30px rgba(15, 23, 42, .35);
}
.bird-pack-logo { position:relative; isolation:isolate; justify-content:center; padding:6px 16px; overflow:hidden; border-color:#fdba74; background:radial-gradient(ellipse at 50% 0%,rgba(254,240,138,.3),transparent 42%),radial-gradient(ellipse at 16% 100%,rgba(34,197,94,.26),transparent 40%),linear-gradient(145deg,#164e63,#166534 48%,#713f12); box-shadow:0 0 22px rgba(249,115,22,.22),0 12px 30px rgba(15,23,42,.35); }
.bird-pack-logo::after { position:absolute; right:-20px; bottom:-40px; width:100px; height:100px; border:1px solid rgba(255,255,255,.12); border-radius:50%; content:''; box-shadow:0 0 0 9px rgba(255,255,255,.025),0 0 0 20px rgba(255,255,255,.025); pointer-events:none; }
.bird-pack-logo-art { position:relative; z-index:1; flex:0 0 64px; width:64px; height:64px; filter:drop-shadow(0 3px 4px rgba(0,0,0,.4)); }
.bird-pack-logo-copy { position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; min-width:0; }
.bird-pack-logo strong { color:#fff7d6; font-size:.95rem; letter-spacing:.045em; text-shadow:0 2px 8px #020617; white-space:nowrap; }
.shape-pack-logo { position:relative; isolation:isolate; overflow:hidden; display:flex; flex-direction:column; gap:5px; border-color:#c4b5fd; background:radial-gradient(ellipse at 50% 0%,rgba(103,232,249,.22),transparent 56%),linear-gradient(145deg,#312e81,#6d28d9 52%,#164e63); box-shadow:0 0 18px rgba(167,139,250,.24),0 12px 30px rgba(15,23,42,.35); }
.shape-pack-logo::before { position:absolute; z-index:-1; inset:0; content:""; background:linear-gradient(135deg,transparent 42%,rgba(255,255,255,.08) 42.2% 42.7%,transparent 43% 70%,rgba(255,255,255,.06) 70.2% 70.7%,transparent 71%); }
.shape-pack-symbols { display:flex; align-items:center; justify-content:center; gap:7px; }
.shape-pack-symbol { display:block; width:22px; height:22px; border:0; background:linear-gradient(145deg,#67e8f9,#818cf8 68%,#f0abfc); filter:drop-shadow(0 2px 3px #02061788); }
.shape-symbol-circle { border-radius:50%; background:linear-gradient(145deg,#fef08a,#f97316); }
.shape-symbol-square { background:linear-gradient(145deg,#67e8f9,#0284c7); }
.shape-symbol-triangle { clip-path:polygon(50% 0,100% 100%,0 100%); background:linear-gradient(145deg,#bef264,#16a34a); }
.shape-symbol-rectangle { transform:scaleY(.65); background:linear-gradient(145deg,#f9a8d4,#db2777); }
.shape-symbol-rhombus { transform:rotate(45deg) scale(.78); background:linear-gradient(145deg,#c4b5fd,#7c3aed); }
.shape-symbol-parallelogram { clip-path:polygon(25% 0,100% 0,75% 100%,0 100%); background:linear-gradient(145deg,#fda4af,#e11d48); }
.shape-symbol-hexagon { clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%); background:linear-gradient(145deg,#a5f3fc,#0891b2); }
.shape-symbol-octagon { clip-path:polygon(30% 0,70% 0,100% 30%,100% 70%,70% 100%,30% 100%,0 70%,0 30%); background:linear-gradient(145deg,#fde68a,#d97706); }
.shape-symbol-oval { border-radius:50%; transform:scaleX(1.35) scaleY(.72); background:linear-gradient(145deg,#f0abfc,#a21caf); }
.shape-symbol-trapezoid { clip-path:polygon(20% 0,80% 0,100% 100%,0 100%); background:linear-gradient(145deg,#86efac,#059669); }
.shape-symbol-pentagon { clip-path:polygon(50% 0,100% 38%,80% 100%,20% 100%,0 38%); background:linear-gradient(145deg,#fda4af,#be123c); }
.shape-pack-title { color:#fff; font-size:.95rem; font-weight:950; letter-spacing:.1em; text-shadow:0 2px 8px #020617; }
.bird-badge-art { position:relative; isolation:isolate; display:grid; place-items:center; overflow:hidden; border:2px solid rgba(255,255,255,.84); border-radius:50%; background:radial-gradient(circle at 32% 22%,rgba(255,255,255,.68),transparent 31%),var(--bird-color,linear-gradient(145deg,#cbd5e1,#475569)); box-shadow:inset 0 -14px 24px rgba(15,23,42,.24),0 5px 12px rgba(2,6,23,.38),0 0 0 2px rgba(255,255,255,.08); }
.bird-badge-art::before { position:absolute; z-index:-1; inset:6%; border:1px solid rgba(255,255,255,.3); border-radius:50%; background:radial-gradient(circle at 50% 0%,rgba(255,255,255,.16),transparent 70%); content:''; }
.bird-badge-art::after { position:absolute; inset:0; content:''; background-image:var(--bird-image); background-position:var(--bird-position,center); background-repeat:no-repeat; background-size:400% 700%; }
.card-art.bird-badge-art { border:3px solid rgba(255,255,255,.82); box-shadow:inset 0 -14px 24px rgba(15,23,42,.2),0 12px 30px rgba(0,0,0,.25); }
.bird-pack-collection { position:relative; margin:28px 0 18px; padding:22px; overflow:hidden; border:1px solid rgba(125,211,252,.3); border-radius:24px; background:radial-gradient(ellipse at 12% 0%,rgba(56,189,248,.16),transparent 38%),radial-gradient(ellipse at 100% 100%,rgba(168,85,247,.14),transparent 35%),linear-gradient(145deg,rgba(15,23,42,.97),rgba(6,12,25,.99)); box-shadow:0 18px 40px rgba(2,6,23,.3),inset 0 1px rgba(255,255,255,.06); }
.bird-pack-collection-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:18px; }
.bird-pack-kicker { color:#7dd3fc; font-size:.7rem; font-weight:900; letter-spacing:.16em; }
.bird-pack-collection-heading h2 { margin:5px 0; color:#f8fafc; font-size:clamp(1.25rem,3vw,1.8rem); }
.bird-pack-collection-heading p { max-width:650px; margin:0; color:#cbd5e1; line-height:1.5; }
.bird-pack-collection-count { flex:0 0 68px; display:grid; place-content:center; width:68px; height:68px; border:1px solid rgba(186,230,253,.55); border-radius:18px; background:linear-gradient(145deg,rgba(14,165,233,.24),rgba(124,58,237,.22)); color:#fff; font-size:1.35rem; font-weight:1000; text-align:center; }
.bird-pack-collection-count small { color:#bae6fd; font-size:.55rem; letter-spacing:.15em; }
.bird-pack-collection-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.bird-pack-species-card { position:relative; display:flex; align-items:center; min-width:0; gap:10px; padding:10px; overflow:hidden; border:1px solid rgba(255,255,255,.1); border-radius:15px; background:linear-gradient(135deg,rgba(30,41,59,.8),rgba(15,23,42,.9)); }
.bird-pack-species-picture { flex:0 0 58px; width:58px; height:43.5px; border:1px solid rgba(255,255,255,.28); border-radius:50%; background-color:rgba(255,255,255,.08); background-image:var(--bird-image); background-position:var(--bird-position,center); background-repeat:no-repeat; background-size:400% 700%; box-shadow:0 3px 8px rgba(0,0,0,.3); }
.bird-pack-species-info { display:flex; flex:1; flex-direction:column; min-width:0; gap:2px; }
.bird-pack-species-info strong { overflow:hidden; color:#f8fafc; font-size:.83rem; text-overflow:ellipsis; white-space:nowrap; }
.bird-pack-species-info span { color:#bae6fd; font-size:.72rem; font-weight:800; }
.bird-pack-species-info small { color:#cbd5e1; font-size:.67rem; }
.bird-pack-species-info a { width:max-content; max-width:100%; color:#7dd3fc; font-size:.62rem; font-weight:800; text-decoration:none; }
.bird-pack-species-info a:hover { color:#fef08a; text-decoration:underline; }
.bird-pack-species-rarity { position:absolute; top:5px; right:7px; color:#94a3b8; font-size:.55rem; font-weight:900; letter-spacing:.06em; text-transform:uppercase; }
.bird-pack-species-card.rarity-legendary,.bird-pack-species-card.rarity-godly { border-color:rgba(250,204,21,.32); background:linear-gradient(135deg,rgba(120,53,15,.22),rgba(15,23,42,.94)); }
.bird-pack-species-card.rarity-mythic { border-color:rgba(192,132,252,.36); background:linear-gradient(135deg,rgba(88,28,135,.2),rgba(15,23,42,.94)); }
.bird-pack-species-card { min-height:112px; gap:12px; padding:14px; border-radius:18px; background-image:radial-gradient(ellipse at 0 0,rgba(125,211,252,.12),transparent 58%),linear-gradient(145deg,rgba(24,39,61,.96),rgba(9,15,29,.98)); box-shadow:inset 0 1px rgba(255,255,255,.05),0 9px 20px rgba(0,0,0,.16); transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.bird-pack-species-card:hover { transform:translateY(-2px); border-color:rgba(125,211,252,.48); box-shadow:inset 0 1px rgba(255,255,255,.08),0 13px 24px rgba(0,0,0,.25); }
.bird-pack-species-picture { flex-basis:76px; width:76px; height:76px; border:1px solid rgba(255,255,255,.48); border-radius:50%; background-color:rgba(14,165,233,.12); background-position:var(--bird-position,center); background-repeat:no-repeat; background-size:400% 700%; box-shadow:0 0 0 4px rgba(255,255,255,.045),0 6px 14px rgba(0,0,0,.38); }
.bird-pack-species-info { gap:4px; padding-right:22px; }
.bird-pack-species-info strong { font-size:.88rem; }
.bird-pack-species-info span { color:#bae6fd; font-size:.73rem; }
.bird-pack-species-info small { color:#cbd5e1; font-size:.69rem; }
.bird-pack-species-card.rarity-common { border-color:rgba(148,163,184,.26); }
.bird-pack-species-card.rarity-uncommon { border-color:rgba(74,222,128,.32); background-image:radial-gradient(ellipse at 0 0,rgba(34,197,94,.13),transparent 58%),linear-gradient(145deg,rgba(24,39,61,.96),rgba(9,15,29,.98)); }
.bird-pack-species-card.rarity-rare { border-color:rgba(96,165,250,.38); background-image:radial-gradient(ellipse at 0 0,rgba(59,130,246,.15),transparent 58%),linear-gradient(145deg,rgba(24,39,61,.96),rgba(9,15,29,.98)); }
.bird-pack-species-card.rarity-epic { border-color:rgba(192,132,252,.4); background-image:radial-gradient(ellipse at 0 0,rgba(168,85,247,.15),transparent 58%),linear-gradient(145deg,rgba(24,39,61,.96),rgba(9,15,29,.98)); }
.bird-pack-species-card.rarity-legendary { border-color:rgba(251,191,36,.4); background-image:radial-gradient(ellipse at 0 0,rgba(245,158,11,.15),transparent 58%),linear-gradient(145deg,rgba(24,39,61,.96),rgba(9,15,29,.98)); }
.bird-pack-species-card.rarity-godly { border-color:rgba(248,113,113,.48); background-image:radial-gradient(ellipse at 0 0,rgba(239,68,68,.16),transparent 58%),linear-gradient(145deg,rgba(24,39,61,.96),rgba(9,15,29,.98)); }
.bird-pack-species-rarity { top:8px; right:10px; padding:3px 6px; border:1px solid rgba(255,255,255,.1); border-radius:999px; background:rgba(2,6,23,.54); }
.bird-badge-art { border-color:rgba(255,255,255,.9); box-shadow:inset 0 -14px 24px rgba(15,23,42,.24),0 8px 18px rgba(2,6,23,.42),0 0 20px color-mix(in srgb,var(--bird-color) 34%,transparent); }
@media(max-width:1000px) { .bird-pack-collection-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:680px) { .bird-pack-collection { padding:15px; } .bird-pack-collection-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; } .bird-pack-species-card { min-height:96px; gap:7px; padding:8px; } .bird-pack-species-picture { flex-basis:52px; width:52px; height:52px; } .bird-pack-species-info strong { font-size:.75rem; } .bird-pack-species-rarity { font-size:.48rem; } .bird-pack-logo-art { flex-basis:48px; width:48px; height:48px; } .bird-pack-logo { gap:6px; padding:6px; } .bird-pack-logo strong { font-size:.78rem; letter-spacing:0; } }
@media(max-width:390px) { .bird-pack-collection-grid { grid-template-columns:1fr; } }
.shape-badge-art { border:0; box-shadow:none; filter:drop-shadow(0 4px 5px rgba(2,6,23,.48)) drop-shadow(0 0 1px rgba(255,255,255,.8)); }
.card-art.shape-badge-art { box-shadow:none; filter:drop-shadow(0 4px 6px rgba(2,6,23,.52)) drop-shadow(0 0 1px rgba(255,255,255,.82)); }
.inventory-art.shape-badge-art:not(.shape-circle):not(.shape-oval), .badge-preview-art.shape-badge-art:not(.shape-circle):not(.shape-oval) { transform:scale(.86); }
.shape-circle { border-radius:50% !important; background:radial-gradient(circle at 30% 24%,#fef08a,#fb923c 48%,#c2410c) !important; }
.inventory-art.shape-circle, .badge-preview-art.shape-circle { transform:scale(.78); background:radial-gradient(circle at 32% 26%,#fed7aa,#fb923c 48%,#9a3412) !important; }
.shape-square { border-radius:0 !important; clip-path:polygon(5% 5%,95% 5%,95% 95%,5% 95%); background:linear-gradient(145deg,#67e8f9,#0284c7 62%,#1e3a8a) !important; }
.shape-triangle { border-radius:0 !important; clip-path:polygon(50% 4%,98% 94%,2% 94%); background:linear-gradient(145deg,#bef264,#16a34a 65%,#14532d) !important; }
.shape-rectangle { border-radius:8px !important; clip-path:inset(20% 4%); background:linear-gradient(145deg,#f9a8d4,#db2777 58%,#831843) !important; }
.inventory-art.shape-rectangle, .badge-preview-art.shape-rectangle { transform:scale(.9); }
.shape-rhombus { border-radius:0 !important; clip-path:polygon(50% 2%,98% 50%,50% 98%,2% 50%); background:linear-gradient(145deg,#c4b5fd,#7c3aed 58%,#312e81) !important; }
.inventory-art.shape-rhombus, .badge-preview-art.shape-rhombus { transform:scale(.9); }
.shape-parallelogram { border-radius:0 !important; clip-path:polygon(25% 4%,98% 4%,75% 96%,2% 96%); background:linear-gradient(145deg,#fda4af,#e11d48 58%,#881337) !important; }
.shape-hexagon { border-radius:0 !important; clip-path:polygon(25% 3%,75% 3%,98% 50%,75% 97%,25% 97%,2% 50%); background:linear-gradient(145deg,#a5f3fc,#0891b2 58%,#164e63) !important; }
.shape-octagon { border-radius:0 !important; clip-path:polygon(30% 2%,70% 2%,98% 30%,98% 70%,70% 98%,30% 98%,2% 70%,2% 30%); background:linear-gradient(145deg,#fde68a,#d97706 58%,#78350f) !important; }
.shape-decagon { border-radius:0 !important; clip-path:polygon(50% 1%,79% 7%,97% 29%,97% 71%,79% 93%,50% 99%,21% 93%,3% 71%,3% 29%,21% 7%); background:linear-gradient(145deg,#f0abfc,#a21caf 58%,#581c87) !important; }
.shape-oval { border-radius:0 !important; clip-path:ellipse(48% 34% at 50% 50%); background:linear-gradient(145deg,#f0abfc,#a21caf 58%,#581c87) !important; }
.shape-trapezoid { border-radius:0 !important; clip-path:polygon(20% 4%,80% 4%,98% 96%,2% 96%); background:linear-gradient(145deg,#86efac,#059669 58%,#064e3b) !important; }
.shape-pentagon { border-radius:0 !important; clip-path:polygon(50% 2%,98% 38%,80% 97%,20% 97%,2% 38%); background:linear-gradient(145deg,#fda4af,#be123c 58%,#4c0519) !important; }
.true-og-pack-logo { position:relative; flex-direction:column; gap:3px; overflow:hidden; border-color:#fde68a; background:radial-gradient(circle at 50% 0%,#475569,#111827 54%,#020617); color:#fef3c7; letter-spacing:.16em; box-shadow:0 0 26px rgba(250,204,21,.32),0 12px 30px rgba(15,23,42,.4); }
.true-og-pack-logo::before { position:absolute; inset:0; z-index:0; content:'10100110 01101001 11001010 01010110 10110010 01110101 10010110 01001101'; display:grid; align-content:center; overflow:hidden; padding:8px; color:rgba(125,211,252,.24); font:800 .56rem/1.45 ui-monospace,monospace; letter-spacing:.2em; overflow-wrap:anywhere; }
.true-og-pack-logo { isolation:isolate; }
.true-og-pack-logo > * { position:relative; z-index:1; }
.true-og-pack-logo span { color:#7dd3fc; font-size:.67rem; letter-spacing:.08em; text-transform:uppercase; }
.true-og-pack-purchase { flex:0 0 100%; flex-direction:row; flex-wrap:wrap; justify-content:center; align-items:center; gap:14px; width:100%; box-sizing:border-box; padding:14px; border:1px solid rgba(250,204,21,.24); border-radius:18px; background:linear-gradient(110deg,rgba(30,41,59,.86),rgba(15,23,42,.94)); }
.true-og-pack-purchase .true-og-pack-logo { flex:0 0 220px; }
.true-og-pack-purchase .primary-button { flex:0 1 240px; }
.true-og-pack-purchase[hidden] { display:none; }
.penguinlover18-pack-purchase { flex:0 0 100%; flex-direction:row; flex-wrap:wrap; justify-content:center; align-items:center; gap:14px; width:100%; box-sizing:border-box; padding:14px; border:1px solid rgba(125,211,252,.3); border-radius:18px; background:radial-gradient(ellipse at 50% 0%,rgba(56,189,248,.2),transparent 48%),linear-gradient(110deg,rgba(15,23,42,.9),rgba(8,47,73,.94)); }
.penguinlover18-pack-logo { position:relative; flex-direction:column; gap:3px; overflow:hidden; border-color:#7dd3fc; background:radial-gradient(circle at 50% 20%,#bae6fd,#0e7490 48%,#082f49); color:#f0f9ff; letter-spacing:.1em; text-shadow:0 2px 8px #020617; }
.penguinlover18-pack-logo::before { position:absolute; inset:0; display:grid; place-items:center; content:'🐧'; font-size:4.8rem; opacity:.25; }
.penguinlover18-pack-logo { isolation:isolate; }
.penguinlover18-pack-logo > * { position:relative; z-index:1; }
.penguinlover18-pack-logo span { color:#bae6fd; font-size:.67rem; letter-spacing:.08em; text-transform:uppercase; }
.penguinlover18-pack-purchase .penguinlover18-pack-logo { flex:0 0 220px; }
.penguinlover18-pack-purchase .primary-button { flex:0 1 240px; }
.penguinlover18-pack-purchase[hidden] { display:none; }
.penguinlover18-pack-countdown { flex:0 0 100%; color:#bae6fd; font-weight:800; text-align:center; }
.penguinlover18-pack-odds { flex:0 0 100%; color:#dbeafe; text-align:center; }
.penguinlover18-pack-odds summary { cursor:pointer; font-weight:800; }
.penguinlover18-pack-odds ul { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:5px 18px; max-width:850px; margin:10px auto 0; padding-left:20px; text-align:left; font-size:.83rem; }
.penguinlover18-badge-art { position:relative; display:grid; place-items:center; overflow:hidden; background:var(--bird-color); box-shadow:inset 0 0 0 3px rgba(255,255,255,.24),0 8px 20px rgba(2,6,23,.35); }
.penguinlover18-svg-art { position:absolute; inset:0; z-index:2; display:block; width:100%; height:100%; border-radius:inherit; }
.penguinlover18-badge-art.penguinlover18-badge-art::before,.penguinlover18-badge-art.penguinlover18-badge-art::after { content:none!important; }
.penguinlover18-badge-art::before { position:absolute; left:18%; bottom:0; z-index:1; content:'🐧'; font-size:3.8rem; filter:drop-shadow(0 3px 3px rgba(0,0,0,.45)); }
.penguinlover18-badge-art::after { position:absolute; left:51%; bottom:23%; z-index:2; content:'⚔️'; font-size:1.8rem; transform:rotate(-30deg); transform-origin:bottom left; filter:drop-shadow(0 2px 2px #020617); }
.penguinlover18-cool::after { top:47%; right:auto; bottom:auto; left:36%; content:'👓'; font-size:.95rem; transform:none; }
.penguinlover18-super::after { top:27%; right:auto; bottom:auto; left:38%; content:'⭐'; font-size:1.65rem; }
.penguinlover18-tornado::after { top:34%; right:5%; bottom:auto; z-index:0; content:'🌪️'; font-size:2.4rem; }
.penguinlover18-laser { background:linear-gradient(100deg,transparent 0%,rgba(248,113,113,.38) 10%,#fff 17%,#f43f5e 24%,transparent 90%) 48% 55%/52% 5% no-repeat,linear-gradient(103deg,transparent 0%,rgba(248,113,113,.32) 10%,#fff 17%,#f43f5e 24%,transparent 90%) 48% 62%/52% 5% no-repeat,var(--bird-color); }
.penguinlover18-laser::after { top:52%; right:auto; bottom:auto; left:31%; content:'••'; color:#fff; font-size:.65rem; letter-spacing:.22rem; text-shadow:0 0 4px #fff,0 0 9px #f43f5e; transform:none; }
.penguinlover18-laser::before { left:14%; }
.penguinlover18-one-eyed::after { top:43%; right:auto; bottom:auto; left:39%; content:'👁️'; font-size:1.1rem; }
.penguinlover18-sword::after { left:52%; bottom:21%; content:'🗡️'; font-size:2rem; transform:rotate(-30deg); }
.penguinlover18-badge-tag { display:inline-flex; align-items:center; width:max-content; margin:4px 0 7px; padding:4px 9px; border:1px solid rgba(196,181,253,.5); border-radius:999px; background:linear-gradient(110deg,rgba(109,40,217,.35),rgba(30,41,59,.78)); color:#e9d5ff; font-size:.66rem; font-weight:950; letter-spacing:.045em; box-shadow:0 0 12px rgba(167,139,250,.12); }
.card .penguinlover18-badge-tag { margin:0 auto 12px; }
.market-badge-option-copy .penguinlover18-badge-tag,.direct-badge-option-copy .penguinlover18-badge-tag,.market-auction-item-copy .penguinlover18-badge-tag { margin:3px 0 0; padding:2px 7px; font-size:.58rem; }
.penguinlover18-giraffe::before { content:'🦒'; }
.penguinlover18-giraffe::after { content:none; }
.true-og-pack-countdown { min-height:1em; color:#fde68a; font-size:.74rem; font-weight:800; }

.hour-pack-logo { position:relative; overflow:hidden; border-color:#7dd3fc; background:radial-gradient(circle at 50% 20%,rgba(186,230,253,.48),transparent 32%),linear-gradient(145deg,#164e63,#075985 48%,#172554); box-shadow:0 0 20px rgba(56,189,248,.2),0 12px 30px rgba(15,23,42,.35); }
.hour-pack-logo::before { position:absolute; inset:0; content:""; background:url('/assets/cohesive/boat.svg') 80% 76% / 62px 62px no-repeat,url('/assets/cohesive/kraken.svg') 13% 22% / 55px 55px no-repeat; opacity:.8; }
.hour-pack-description { margin:0; color:var(--text-muted); font-size:.8rem; font-weight:700; text-align:center; }
.hour-pack-logo { isolation:isolate; }
.hour-pack-logo::before { z-index:-1; }
.ore-badge-art { background-position: center; background-repeat: no-repeat; background-size: contain; }
.ore-iron-art { background-image: url('/assets/cohesive/ore-iron.svg'); }
.ore-gold-art { background-image: url('/assets/cohesive/ore-gold.svg'); }
.ore-emerald-art { background-image: url('/assets/cohesive/ore-emerald.svg'); }
.ore-ruby-art { background-image: url('/assets/cohesive/ore-ruby.svg'); }
.ore-sapphire-art { background-image: url('/assets/cohesive/ore-sapphire.svg'); }
.ore-geode-art { background-image: url('/assets/cohesive/ore-geode.svg'); }
.ore-diamond-art { background-image: url('/assets/cohesive/ore-diamond.svg'); }
.ore-magnet-art { background-image: url('/assets/cohesive/ore-magnet.svg'); }
.cave-badge-art { background: url('/assets/cohesive/cave-badge.svg') center / contain no-repeat; }
.metalic-badge-art { position:relative; display:block; overflow:hidden; isolation:isolate; border:2px solid #b9c5d7; border-radius:50%; background-color:#1d2c46; background-image:radial-gradient(ellipse at 20% 50%,rgba(222,151,220,.18),transparent 48%),radial-gradient(ellipse at 48% 3%,rgba(255,255,255,.78),transparent 42%),linear-gradient(90deg,#cdb0d1 0%,#beb8ce 17%,#839cb9 34%,#d3d9e2 45%,#8299b8 57%,#3f5576 73%,#1a2945 100%); box-shadow:inset 0 0 0 2px rgba(255,255,255,.26),inset 0 -9px 16px rgba(8,13,25,.4),0 0 14px rgba(153,174,210,.3); }
.metalic-badge-art::before { position:absolute; z-index:1; inset:-10%; content:''; opacity:.85; background:repeating-linear-gradient(166deg,rgba(255,255,255,.32) 0 1px,rgba(17,24,39,.15) 1px 2px,transparent 2px 4px); mix-blend-mode:overlay; }
.metalic-badge-art::after { position:absolute; z-index:2; inset:0; content:''; background:linear-gradient(112deg,transparent 20%,rgba(255,255,255,.2) 43%,transparent 59%),linear-gradient(180deg,rgba(255,255,255,.13),transparent 34%,rgba(6,12,27,.17)); pointer-events:none; }
.set-art.metalic-badge-art { background-size:cover; }
.metalic-badge-card .inventory-art.metalic-badge-art { flex:0 0 72px; }
.set-reward .metalic-badge-art { flex:0 0 54px; width:54px; height:54px; }
.binary-badge-art { position:relative; display:grid; place-items:center; overflow:hidden; border:3px solid #4ade80; border-radius:50%; background:radial-gradient(circle at 36% 26%,#14532d,#052e16 58%,#020403); box-shadow:inset 0 0 0 4px rgba(74,222,128,.16),0 0 18px rgba(34,197,94,.32); }
.binary-badge-art::before { position:relative; z-index:1; content:'1 0 1 0 0 1 1 0'; max-width:90%; color:#86efac; font:900 .75rem/1.25 ui-monospace,monospace; letter-spacing:.03em; text-align:center; text-shadow:0 0 8px #22c55e; overflow-wrap:anywhere; }
.binary-badge-art::after { position:absolute; inset:4px; border-radius:inherit; background:repeating-linear-gradient(0deg,transparent 0 5px,rgba(74,222,128,.16) 6px 7px); content:''; }
.first-edition-tag { display:inline-flex; align-items:center; gap:5px; width:max-content; max-width:100%; margin:4px 0; padding:4px 8px; border:1px solid rgba(250,204,21,.48); border-radius:999px; background:linear-gradient(120deg,rgba(120,83,9,.35),rgba(15,23,42,.88)); color:#fde68a; font-size:.68rem; font-weight:900; letter-spacing:.03em; }
.first-edition-star { position:absolute; z-index:4; top:2px; right:2px; display:grid; place-items:center; width:25px; height:25px; border:2px solid #422006; border-radius:50%; background:linear-gradient(135deg,#fef08a,#f59e0b); color:#422006; font-size:1rem; line-height:1; text-shadow:0 1px rgba(255,255,255,.45); box-shadow:0 2px 9px rgba(0,0,0,.48); }
.first-edition-art { position:relative; }
.card .first-edition-tag { margin:0 auto 12px; }
.inventory-details > .first-edition-tag { margin:4px 0 7px; }
.admin-first-edition-row[hidden] { display:none; }
.admin-first-edition-row label { display:flex; align-items:center; gap:9px; color:#fde68a; font-size:.78rem; font-weight:750; }
.admin-first-edition-row input[type=checkbox] { flex:0 0 auto; box-sizing:border-box; width:18px; height:18px; margin:0; padding:0; border-radius:4px; accent-color:#f59e0b; }
.inventory-art.blue-fire-badge-art,.badge-preview-art.blue-fire-badge-art { position:relative; display:block; flex:0 0 72px; width:72px; height:72px; margin:0; overflow:visible; border:3px solid #bae6fd; border-radius:50%; background:radial-gradient(circle at 34% 28%,#475569,#1e293b 72%); box-shadow:inset 0 0 0 4px rgba(255,255,255,.16),0 0 16px rgba(56,189,248,.4); }
.inventory-art.blue-fire-badge-art::before,.badge-preview-art.blue-fire-badge-art::before { content:''; position:absolute; z-index:1; inset:-12px -6px 0; background:url('/assets/fire-badge.svg') center / contain no-repeat; filter:hue-rotate(190deg) saturate(1.35) drop-shadow(0 3px 5px rgba(56,189,248,.52)); }
.happy-badge-art { position:relative; display:grid; place-items:center; border:3px solid #fde68a; border-radius:50%; background:radial-gradient(circle at 32% 22%,#fef9c3,#facc15 62%,#a16207); box-shadow:0 0 15px rgba(250,204,21,.35); }
.happy-badge-art::before { content:'\263A'; color:#713f12; font:900 3rem/1 Arial,sans-serif; text-shadow:0 1px 0 #fef3c7; }
.star-badge-art { position:relative; display:grid; place-items:center; border:3px solid #e9d5ff; border-radius:50%; background:radial-gradient(circle at 35% 25%,#f5d0fe,#a855f7 60%,#3b0764); box-shadow:0 0 18px rgba(192,132,252,.48); }
.star-badge-art::before { content:'\2605'; color:#fef08a; font-size:3.1rem; text-shadow:0 0 12px #fef08a; }
.triple-badge-art { position:relative; display:block; overflow:hidden; border:4px solid #fde68a; border-radius:50%; background:radial-gradient(circle at 35% 20%,#fff7c2,#f59e0b 45%,#581c87 78%,#111827); box-shadow:0 0 24px rgba(250,204,21,.7),inset 0 0 0 5px rgba(255,255,255,.18); }
.triple-badge-art::before,.triple-badge-art::after { content:''; position:absolute; top:24%; width:56%; height:56%; border:3px solid #fde68a; border-radius:50%; background:radial-gradient(circle at 32% 24%,#fff7c2 0%,#f59e0b 48%,#581c87 86%); box-shadow:0 2px 7px rgba(15,23,42,.58),inset 0 0 0 3px rgba(255,255,255,.2); }
.triple-badge-art::before { left:8%; z-index:1; }
.triple-badge-art::after { right:8%; z-index:1; }
.triple-badge-art .triple-extra-circle { position:absolute; z-index:2; top:41%; left:24%; width:52%; height:52%; border:3px solid #fde68a; border-radius:50%; background:radial-gradient(circle at 32% 24%,#fff7c2 0%,#f59e0b 48%,#581c87 86%); box-shadow:0 2px 7px rgba(15,23,42,.62),inset 0 0 0 3px rgba(255,255,255,.2); }
.ore-set-items { grid-template-columns: repeat(7, minmax(72px, 1fr)); }
.ore-set-reward-art { flex: 0 0 58px; width: 58px; height: 58px; }

.neon-pack-logo::before {
    position: absolute;
    z-index: -1;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    content: "";
    background:
        radial-gradient(ellipse at 32% 24%, rgba(255, 255, 255, 0.9), transparent 15%),
        radial-gradient(ellipse at 50% 48%, transparent 38%, rgba(2, 6, 23, 0.8) 100%),
        repeating-linear-gradient(0deg, transparent 0 12px, rgba(2, 6, 23, 0.92) 12px 14px),
        repeating-linear-gradient(90deg, transparent 0 12px, rgba(2, 6, 23, 0.92) 12px 14px),
        linear-gradient(90deg, #38c9ff 0%, #7784ff 20%, #ff70cd 42%, #ff9f57 61%, #f8ff7a 78%, #68ff9d 100%);
    box-shadow: 0 0 25px rgba(226, 232, 240, 0.65), inset -12px -10px 18px rgba(2, 6, 23, 0.65);
}

.primary-button {
    appearance: none;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #2563a8, #334b78);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 24px rgba(37, 99, 168, 0.3);
}

.primary-button:hover {
    transform: translateY(-2px);
}

.status-text {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    min-height: 1.2em;
}

.status-text.hidden {
    display: none;
}

.tab-bar {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    width: calc(100% + 48px);
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 -24px 22px;
    padding: 10px 18px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(251,146,60,.55) rgba(15,23,42,.35);
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    background: rgba(7, 11, 20, 0.78);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 24px 24px 0 0;
}

.tab-button {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
    border: none;
    border-radius: 10px 10px 0 0;
    padding: 12px 22px;
    background: rgba(30, 41, 59, 0.45);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.tab-button.active {
    background: rgba(185, 28, 28, 0.2);
    color: var(--text);
    border-bottom-color: #ef4444;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.leaderboard-heading { margin:4px 0 18px; }
.leaderboard-heading h2 { margin:4px 0 8px; color:#f8fafc; }
.leaderboard-heading > p:not(.section-kicker) { color:#aab8ca; }
.leaderboard-admin-toggle { display:inline-flex; align-items:center; gap:8px; margin:4px 12px 12px 0; padding:9px 12px; border:1px solid rgba(148,163,184,.24); border-radius:10px; color:#dbeafe; cursor:pointer; }
.leaderboard-admin-toggle input { width:18px; height:18px; accent-color:#38bdf8; }
.leaderboard-grid { display:grid; grid-template-columns:repeat(3,minmax(250px,1fr)); gap:14px; align-items:start; overflow-x:auto; padding-bottom:6px; }
.leaderboard-card, .credits-card { padding:clamp(14px,2.5vw,20px); border:1px solid rgba(56,189,248,.18); border-radius:15px; background:linear-gradient(145deg,rgba(15,23,42,.96),rgba(8,18,34,.94)); }
.leaderboard-card h3, .credits-card h3 { margin:0 0 5px; color:#f8fafc; }
.leaderboard-card > p { margin:0 0 14px; color:#94a3b8; font-size:.84rem; }
.leaderboard-list { display:grid; gap:8px; margin:0; padding:0; list-style:none; counter-reset:none; }
.leaderboard-row { display:grid; grid-template-columns:38px minmax(72px,.8fr) minmax(120px,1.2fr); align-items:center; gap:9px; min-height:54px; padding:9px; border:1px solid rgba(148,163,184,.12); border-radius:10px; background:rgba(2,6,23,.48); }
.leaderboard-rank { color:#fbbf24; font-weight:950; }
.leaderboard-identity { min-width:0; overflow-wrap:anywhere; color:#e2e8f0; font-size:.9rem; }
.leaderboard-stat { display:grid; justify-items:end; text-align:right; color:#bae6fd; font-weight:800; }
.leaderboard-row-time .leaderboard-stat, .leaderboard-row-cc .leaderboard-stat { font-size:1rem; font-weight:850; }
.leaderboard-stat small { color:#94a3b8; font-size:.72rem; font-weight:650; }
.leaderboard-mutations { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:4px; }
.leaderboard-mutation-mark { display:grid; place-items:center; width:23px; height:23px; border:2px solid var(--mutation-color,#c084fc); border-radius:50%; background:#0f172a; color:var(--mutation-color); font-size:.8rem; line-height:1; }
.leaderboard-empty { padding:12px; color:#94a3b8; }
.credits-card { margin-top:16px; }
.credits-list { display:grid; gap:8px; margin:12px 0 0; }
.credits-list > div { display:grid; grid-template-columns:minmax(110px,.4fr) minmax(0,1fr); gap:12px; padding:9px 0; border-top:1px solid rgba(148,163,184,.14); }
.credits-list dt { color:#7dd3fc; font-weight:850; }
.credits-list dd { margin:0; color:#e2e8f0; }
#leaderboard-status { min-height:1.25em; color:#fde68a; font-size:.82rem; }

.direct-trade-dock[hidden] { display:none !important; }
.direct-trade-dock { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 12px; padding:11px 14px; border:1px solid rgba(56,189,248,.32); border-radius:12px; background:linear-gradient(110deg,rgba(8,47,73,.94),rgba(15,23,42,.96)); color:#e0f2fe; font-size:.9rem; font-weight:750; }
.direct-trade-dock button { flex:0 0 auto; min-height:40px; padding:8px 13px; border:0; border-radius:9px; background:#0284c7; color:white; font:inherit; font-weight:850; cursor:pointer; }
.direct-trade-dock button:focus-visible { outline:3px solid #bae6fd; outline-offset:2px; }

.market-heading { margin: 4px 0 20px; }
.market-global-notice { position: fixed; z-index: 3000; top: max(12px, env(safe-area-inset-top)); left: 50%; width: min(680px, calc(100vw - 28px)); box-sizing: border-box; padding: 17px 22px; border: 2px solid rgba(134,239,172,.85); border-radius: 16px; background: linear-gradient(135deg,#14532d,#166534); color: #f0fdf4; box-shadow: 0 16px 50px rgba(0,0,0,.55), 0 0 30px rgba(74,222,128,.35); font-size: clamp(1rem, 3.5vw, 1.2rem); font-weight: 950; line-height: 1.4; text-align: center; opacity: 0; transform: translate(-50%,-24px) scale(.97); transition: opacity .22s ease, transform .22s ease; pointer-events: none; }
.market-global-notice[hidden] { display: none; }
.market-global-notice.market-notice-visible { opacity: 1; transform: translate(-50%,0) scale(1); }
.market-heading h2 { margin: 4px 0 8px; color: #f8fafc; }
.market-heading > p:not(.section-kicker) { color: #bac8d9; }
.market-summary { font-weight: 800; color: #fde68a !important; }
.market-request-panel { margin: 0 0 18px; padding: 16px; border: 1px solid rgba(125,211,252,.28); border-radius: 14px; background: rgba(15,23,42,.68); }
.market-request-panel h3 { margin: 0 0 6px; color: #f8fafc; }
.market-request-panel > p { color: #bac8d9; font-size: .84rem; }
.market-create-request { padding: 10px 14px; border: 0; border-radius: 9px; background: linear-gradient(135deg,#0e7490,#0284c7); color: white; font: inherit; font-weight: 850; cursor: pointer; }
.market-create-request-panel { margin-top: 14px; }
.market-create-request-panel[hidden] { display: none; }
.market-request-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.market-request-form label[hidden] { display: none; }
.market-request-form label { display: grid; gap: 5px; color: #cbd5e1; font-size: .8rem; font-weight: 750; }
.market-request-form .market-player-only-option { display: flex; flex: 1 1 100%; align-items: center; gap: 9px; padding: 4px 0; }
.market-player-only-option input { width: 18px; height: 18px; accent-color: #38bdf8; }
.market-request-form select { min-width: 185px; padding: 9px; border: 1px solid rgba(148,163,184,.35); border-radius: 8px; background: #0f172a; color: #f8fafc; font: inherit; }
.market-request-form button { padding: 9px 12px; border: 0; border-radius: 8px; background: #0369a1; color: white; font: inherit; font-weight: 800; cursor: pointer; }
.market-request-status { min-height: 1em; margin: 8px 0; color: #fde68a !important; font-weight: 750; }
.market-request-values { display: flex; flex: 1 1 100%; align-items: center; justify-content: flex-start; gap: 14px; margin: 5px 0; color: #cbd5e1; }
.market-request-values > span:not(.market-request-value-arrow) { display: grid; justify-items: center; gap: 4px; min-width: 100px; padding: 9px; border: 1px solid rgba(148,163,184,.2); border-radius: 10px; background: rgba(2,6,23,.35); font-size: .8rem; }
.market-request-values .market-badge-art { flex-basis: 48px; width: 48px; height: 48px; }
.market-cc-art { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border: 2px solid #facc15; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fef08a, #eab308 65%, #a16207); color: #422006; font-weight: 950; box-shadow: 0 0 14px #eab30855; }
.market-request-values > span > strong { color: #e2e8f0; }
.market-request-values > span > b { color: #fde68a; }
.market-request-value-arrow { color: #7dd3fc; font-size: 1.3rem; }
.market-remove-request, .market-extra-request button:not(.market-trade-button) { padding: 6px 9px; border: 1px solid rgba(148,163,184,.3); border-radius: 8px; background: #334155; color: #e2e8f0; font: inherit; font-size: .75rem; font-weight: 800; cursor: pointer; }
.market-player-accept-button { margin-top: 2px; }
.market-request-panel { position: relative; overflow: hidden; border-color: rgba(56,189,248,.32); background: radial-gradient(ellipse at 10% 0%,rgba(8,145,178,.13),transparent 55%),linear-gradient(145deg,rgba(15,23,42,.92),rgba(8,15,31,.96)); box-shadow: 0 16px 44px rgba(2,6,23,.24); }
.market-request-panel::before { position: absolute; top: 0; left: 22px; right: 22px; height: 1px; background: linear-gradient(90deg,transparent,rgba(125,211,252,.6),transparent); content: ''; }
.market-request-panel > p { margin: 5px 0 13px; }
.direct-online-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.direct-online-heading h4 { margin: 0 auto 0 0; }
.direct-online-heading > span { color: #94a3b8; font-size: .72rem; }
.direct-online-heading button { min-height: 40px; padding: 8px 13px; border: 1px solid rgba(125,211,252,.3); border-radius: 9px; background: rgba(8,145,178,.2); color: #e0f2fe; font: inherit; font-size: .76rem; font-weight: 800; cursor: pointer; }
.direct-online-heading button:disabled { opacity: .65; cursor: wait; }
.market-create-request { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; box-shadow: 0 5px 18px rgba(2,132,199,.23); transition: transform .16s ease, box-shadow .16s ease; }
.market-create-request:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(2,132,199,.32); }
.market-create-request span { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: rgba(255,255,255,.17); font-size: 1.1rem; line-height: 1; }
.market-create-request-panel { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(148,163,184,.16); animation: market-builder-enter .2s ease-out both; }
@keyframes market-builder-enter { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.market-trade-builder { display: grid; grid-template-columns: minmax(0,1fr) 36px minmax(0,1fr); align-items: center; gap: 12px; width: 100%; }
.market-trade-choice { display: grid; align-content: start; gap: 12px; min-width: 0; padding: 15px; border: 1px solid rgba(148,163,184,.2); border-radius: 14px; background: rgba(2,6,23,.36); }
.market-trade-give { border-color: rgba(56,189,248,.27); }
.market-trade-get { border-color: rgba(250,204,21,.24); }
.market-trade-choice-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 1px; }
.market-trade-choice-icon { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border: 1px solid rgba(125,211,252,.26); border-radius: 11px; background: rgba(8,145,178,.16); color: #7dd3fc; font-size: 1.2rem; font-weight: 900; }
.market-trade-get .market-trade-choice-icon { border-color: rgba(250,204,21,.27); background: rgba(202,138,4,.12); color: #fde68a; }
.market-trade-eyebrow { color: #94a3b8; font-size: .62rem; font-weight: 900; letter-spacing: .12em; }
.market-trade-choice h4 { margin: 1px 0 0; color: #f8fafc; font-size: 1rem; }
.market-trade-choice label { display: grid; gap: 6px; color: #cbd5e1; font-size: .75rem; font-weight: 750; }
.market-trade-choice input[type="number"] { box-sizing: border-box; width: 100%; min-width: 0; min-height: 43px; padding: 9px 11px; border: 1px solid rgba(148,163,184,.34); border-radius: 9px; outline: none; background: #0b1427; color: #f8fafc; font: inherit; font-size: .84rem; }
.market-trade-choice input[type="number"]:focus { border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56,189,248,.13); }
.market-badge-picker-field { display: grid; gap: 6px; min-width: 0; }
.market-badge-picker-label { color: #cbd5e1; font-size: .75rem; font-weight: 800; }
.market-badge-picker-hint { color: #94a3b8; font-size: .68rem; }
.market-badge-picker { display: grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap: 12px; max-height: 340px; overflow: auto; padding: 5px; overscroll-behavior: contain; }
.market-request-form .market-badge-option { position: relative; display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 58px; padding: 7px 9px; border: 1px solid rgba(148,163,184,.2); border-radius: 10px; background: rgba(2,6,23,.4); cursor: pointer; transition: border-color .15s,background .15s,box-shadow .15s; }
.market-badge-option:has(input:checked) { border-color: rgba(56,189,248,.72); background: rgba(8,145,178,.17); box-shadow: inset 0 0 0 1px rgba(56,189,248,.18); }
.market-badge-option.selected { border-color:rgba(56,189,248,.72); background:rgba(8,145,178,.17); box-shadow:inset 0 0 0 1px rgba(56,189,248,.18); }
.market-badge-option input { flex: 0 0 18px; width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: #38bdf8; }
.market-badge-option-art, .market-badge-option-art .market-badge-art { flex: 0 0 38px; width: 38px; height: 38px; }
.market-badge-option-copy { display: grid; gap: 3px; min-width: 0; }
.market-badge-option-copy strong { overflow: hidden; color: #f1f5f9; font-size: .73rem; text-overflow: ellipsis; white-space: nowrap; }
.market-badge-option-copy small { color: #a8b6c8; font-size: .65rem; }
.market-request-form .market-badge-option { display:grid; grid-template-columns:46px minmax(0,1fr) 72px; gap:10px; min-height:76px; padding:10px 12px; }
.market-request-form .market-badge-option input[type="number"] { width:72px; min-height:40px; padding:6px; border:1px solid rgba(148,163,184,.27); border-radius:8px; background:#0b1427; color:#f8fafc; font:inherit; }
.market-request-form .market-badge-option-art .market-badge-art-wrap { flex:0 0 44px; width:44px; height:44px; }
.market-request-form .market-badge-option-art .market-badge-art { width:44px; height:44px; }
.market-auction-item-art .market-badge-art-wrap { flex-basis:40px; width:40px; height:40px; }
.market-auction-item-art .market-badge-art { width:40px; height:40px; }
.direct-badge-option-art .market-badge-art-wrap { flex-basis:32px; width:32px; height:32px; }
.direct-badge-option-art .market-badge-art { width:32px; height:32px; }
.market-request-form .market-mutation-marks { right:-4px; bottom:-3px; }
.market-request-form .market-mutation-mark { width:13px; height:13px; font-size:.5rem; }
.market-badge-picker-empty { grid-column: 1 / -1; margin: 0; padding: 14px; color: #94a3b8; font-size: .8rem; }
.market-version-select { box-sizing:border-box; width:100%; min-width:0; min-height:36px; margin-top:7px; padding:6px 28px 6px 9px; border:1px solid rgba(125,211,252,.28); border-radius:8px; background:#0b1427; color:#dbeafe; font:inherit; font-size:.72rem; }
.market-version-select:focus-visible { outline:2px solid #38bdf8; outline-offset:1px; }
.direct-badge-option-copy .market-version-select { max-width:100%; }
.market-auction-item-copy .market-version-select { font-size:.63rem; }
.market-trade-builder-arrow { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(148,163,184,.24); border-radius: 50%; background: #111c31; color: #7dd3fc; font-size: 1.1rem; font-weight: 900; }
.market-request-values { justify-content: center; gap: 12px; padding: 13px; border: 1px solid rgba(148,163,184,.14); border-radius: 12px; background: rgba(2,6,23,.24); }
.market-request-values > span:not(.market-request-value-arrow) { min-width: 120px; padding: 11px 14px; border-color: rgba(148,163,184,.2); background: linear-gradient(155deg,rgba(30,41,59,.68),rgba(15,23,42,.72)); box-shadow: inset 0 1px rgba(255,255,255,.03); }
.market-request-values > span > strong { color: #94a3b8; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.market-request-values > span > b { color: #fde68a; font-size: .88rem; }
.market-request-value-arrow { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(8,145,178,.15); color: #7dd3fc; }
.market-trade-submit-row { display: flex; flex: 1 1 100%; align-items: center; justify-content: space-between; gap: 14px; padding-top: 4px; }
.market-request-form .market-player-only-option { flex: 0 1 auto; gap: 10px; min-height: 42px; padding: 5px 10px; border: 1px solid rgba(148,163,184,.18); border-radius: 10px; background: rgba(2,6,23,.22); }
.market-player-only-option input { flex: 0 0 18px; margin: 0; }
.market-player-only-option span { display: grid; gap: 2px; }
.market-player-only-option strong { color: #e2e8f0; font-size: .75rem; }
.market-player-only-option small { color: #94a3b8; font-size: .68rem; }
.market-request-form .market-post-trade { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 17px; background: linear-gradient(135deg,#0e7490,#0284c7); box-shadow: 0 5px 18px rgba(2,132,199,.2); }
.market-post-trade span { font-size: 1rem; }
.market-request-form button:focus-visible, .market-create-request:focus-visible, .market-trade-button:focus-visible { outline: 3px solid rgba(125,211,252,.8); outline-offset: 2px; }
.market-bot-card.market-player-listing { border-color: rgba(56,189,248,.25); }
.market-bot-card .market-trade { border: 1px solid rgba(148,163,184,.1); }
.market-player-listing .market-trade { background: linear-gradient(145deg,rgba(8,47,73,.22),rgba(2,6,23,.56)); }
.market-player-listing .market-trade-value, .market-bot-card .market-trade-value { display: inline-block; padding: 3px 8px; border: 1px solid rgba(250,204,21,.15); border-radius: 999px; background: rgba(202,138,4,.08); }
.market-cc-art { font-size: .92rem; letter-spacing: .03em; }
.market-trade-side { grid-template-rows:auto minmax(132px,1fr) auto auto; align-content:stretch; }
.market-trade-side > .market-offer-items { min-height:132px; justify-content:center; }
.market-trade-side .market-offer-asset { align-self:center; }
.market-rarity-frame { flex:0 0 48px!important; width:48px!important; height:48px!important; padding:3px; box-sizing:border-box; overflow:hidden; }
.market-rarity-frame > .market-badge-art-wrap { display:grid; place-items:center; width:100%; height:100%; min-width:0; min-height:0; }
.market-rarity-frame .market-badge-art { flex:none!important; width:100%!important; height:100%!important; max-width:100%!important; max-height:100%!important; min-width:0!important; min-height:0!important; border-radius:50%; background-size:contain; }
.market-rarity-frame .bird-badge-art::after { background-size:400% 700%; }
.market-rarity-frame .halloween-badge-art::after { width:78%; height:78%; }
@media (max-width: 640px) {
  .market-request-panel { padding: 13px; }
  .market-trade-builder { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .market-trade-choice { padding: 12px; }
  .market-trade-builder-arrow { width: 30px; height: 30px; justify-self: center; transform: rotate(90deg); }
  .market-request-values { gap: 7px; padding: 9px 5px; }
  .market-request-values > span:not(.market-request-value-arrow) { min-width: 0; flex: 1 1 0; padding: 9px 5px; }
  .market-request-values .market-badge-art, .market-request-values .market-cc-art { flex-basis: 42px; width: 42px; height: 42px; }
  .market-trade-submit-row { align-items: stretch; flex-direction: column; gap: 9px; }
  .market-request-form .market-player-only-option { width: auto; }
  .market-request-form .market-post-trade { width: 100%; }
  .market-trade-pair { gap: 5px; }
  .market-trade-arrow { font-size: .62rem; }
  .market-trade-side strong { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  .market-create-request, .market-create-request-panel { transition: none; animation: none; }
}
.market-more-requests { margin-top: 8px; border-top: 1px solid rgba(148,163,184,.2); color: #cbd5e1; }
.market-more-requests summary { padding: 10px 4px 4px; color: #93c5fd; font-weight: 850; cursor: pointer; }
.market-more-requests > div { display: grid; gap: 8px; max-height: 420px; overflow-y: auto; padding: 7px 3px 3px 0; }
.market-extra-request { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 9px; border: 1px solid rgba(148,163,184,.16); border-radius: 10px; background: rgba(2,6,23,.34); font-size: .78rem; }
.market-extra-request-trade { min-width: 0; }
.market-extra-request-trade .market-trade-pair { gap: 5px; }
.market-extra-request-trade .market-trade-side { gap: 4px; font-size: .67rem; }
.market-extra-request-trade .market-trade-side > strong { font-size: .72rem; }
.market-extra-request-trade .market-offer-asset { flex-basis: 66px; gap: 2px; }
.market-extra-request-trade .market-offer-asset .market-badge-art, .market-extra-request-trade .market-offer-asset .market-cc-art { flex-basis: 34px; width: 34px; height: 34px; }
.market-extra-request-trade .market-offer-asset > strong { max-width: 66px; font-size: .59rem; }
.market-extra-request-trade .market-offer-asset small { max-width: 66px; font-size: .55rem; }
.market-extra-request-trade .market-trade-value { padding: 2px 5px; font-size: .63rem; }
.market-extra-request > button { flex: 0 0 auto; min-height: 36px; padding: 7px 10px; }
.market-extra-request .market-trade-button { max-height: none; }
@media (max-width: 460px) {
  .market-extra-request { grid-template-columns: minmax(0,1fr); }
  .market-extra-request > button { width: 100%; }
}
.market-player-listing-tag { display: inline-block; margin-top: 3px; color: #7dd3fc; font-size: .75rem; font-weight: 800; }
.market-player-listing-status { margin: 0; color: #9fb1c7; font-size: .78rem; text-align: center; }
.market-bot-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 370px), 1fr)); gap: 14px; }
.market-bot-card[hidden] { display:none; }
.market-search-panel { display:grid; grid-template-columns:minmax(0,1fr); gap:7px; margin:0 0 14px; padding:13px 15px; border:1px solid rgba(125,211,252,.24); border-radius:13px; background:linear-gradient(140deg,rgba(15,23,42,.82),rgba(8,15,31,.92)); }
.market-search-panel label { color:#dbeafe; font-size:.82rem; font-weight:850; }
.market-search-panel input { box-sizing:border-box; width:100%; min-height:43px; padding:10px 12px; border:1px solid rgba(125,211,252,.3); border-radius:9px; outline:none; background:#081225; color:#f8fafc; font:inherit; }
.market-search-panel input:focus { border-color:#38bdf8; box-shadow:0 0 0 3px rgba(56,189,248,.14); }
.market-offer-search-status { min-height:1em; margin:0; color:#aebed1; font-size:.76rem; }
.market-admin-inventory-search-results { padding:10px 12px; border:1px solid rgba(250,204,21,.22); border-radius:9px; background:rgba(120,83,9,.11); color:#fde68a; font-size:.78rem; }
.market-admin-inventory-search-results[hidden] { display:none; }
.market-admin-inventory-search-results ul { display:grid; gap:5px; margin:7px 0 0; padding-left:19px; color:#e2e8f0; }
.market-admin-inventory-search-results p { margin:6px 0 0; color:#cbd5e1; }
.market-bot-card { padding: 16px; border: 1px solid rgba(148,163,184,.24); border-radius: 16px; background: linear-gradient(145deg,rgba(30,41,59,.78),rgba(15,23,42,.92)); }
.market-trade-notice { margin: 10px 0; padding: 9px 11px; border: 1px solid rgba(74,222,128,.5); border-radius: 10px; background: rgba(22,101,52,.34); color: #bbf7d0; font-size: .82rem; font-weight: 850; line-height: 1.35; animation: market-notice-pop .2s ease-out both; }
@keyframes market-notice-pop { from { opacity: 0; transform: translateY(5px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.market-bot-top { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.market-bot-top h3 { margin: 0; color: #f8fafc; }
.market-stats-toggle { flex: 0 0 auto; padding: 7px 10px; border: 1px solid rgba(148,163,184,.36); border-radius: 9px; background: rgba(51,65,85,.72); color: #e2e8f0; font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; }
.market-bot-stats[hidden] { display: none; }
.market-bot-stock { color: #9fb1c7; font-size: .82rem; }
.market-bot-inventory { margin: 8px 0; color: #cbd5e1; font-size: .8rem; line-height: 1.55; }
.market-bot-inventory strong { color: #e2e8f0; }
.market-favorites { margin: 8px 0 12px; color: #fcd34d; font-size: .82rem; line-height: 1.55; }
.market-favorites strong { color: #fde68a; }
.market-trade { position: relative; display: grid; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(2,6,23,.5); overflow: visible; }
.market-trade-pair { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: stretch; gap: 8px; }
.market-trade-side { position: relative; box-sizing: border-box; display: grid; align-content: start; justify-items: center; gap: 7px; min-width: 0; min-height: 245px; padding: 9px 7px 8px; border: 1px solid rgba(148,163,184,.15); border-radius: 11px; background: linear-gradient(155deg,rgba(30,41,59,.68),rgba(8,15,30,.82)); color: #cbd5e1; font-size: .78rem; text-align: center; }
.market-trade-arrow { align-self:center; justify-self:center; }
.market-trade-side > span:first-child { color: #93c5fd; font-size: .62rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.market-trade-side strong { color: #f8fafc; font-size: .9rem; }
.market-trade-side > strong { box-sizing:border-box; width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.market-offer-items { display:flex; flex-wrap:nowrap; align-items:center; justify-content:center; gap:6px; width:100%; min-width:0; overflow-x:auto; overflow-y:hidden; padding:2px 1px 6px; scrollbar-width:thin; scrollbar-color:rgba(125,211,252,.45) transparent; scroll-snap-type:x proximity; }
.market-offer-items::-webkit-scrollbar { height:5px; }
.market-offer-items::-webkit-scrollbar-thumb { border-radius:99px; background:rgba(125,211,252,.4); }
.market-offer-asset { box-sizing:border-box; display:grid; flex:0 0 clamp(58px,calc((100% - 6px)/2),88px); justify-items:center; align-content:start; gap:5px; min-width:0; padding:7px 4px; border:1px solid rgba(148,163,184,.15); border-radius:9px; background:rgba(2,6,23,.56); scroll-snap-align:start; }
.market-offer-asset .market-badge-art, .market-offer-asset .market-cc-art { box-sizing:border-box; flex-basis:42px; width:42px; height:42px; }
.market-offer-asset > strong { display:-webkit-box; max-width:100%; min-height:2.2em; overflow:hidden; color:#e2e8f0; font-size:.65rem; line-height:1.1; text-align:center; text-overflow:ellipsis; overflow-wrap:anywhere; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.market-offer-asset small { display:block; max-width:100%; overflow:hidden; color:#aebed1; font-size:.57rem; line-height:1.25; text-align:center; overflow-wrap:anywhere; }
.market-trade-value { padding:3px 8px; border:1px solid rgba(250,204,21,.18); border-radius:999px; background:rgba(202,138,4,.1); color:#fde68a; font-size:.7rem; font-weight:850; white-space:nowrap; }
.market-trade-button { display:-webkit-box; min-height:42px; max-height:50px; overflow:hidden; text-overflow:ellipsis; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.market-offer-note { margin:0; color:#9fb1c7; font-size:.72rem; line-height:1.2; }

/* Multi-item offers and the Market's direct player trading room. */
.market-subtabs { display:flex; gap:8px; margin:18px 0 14px; padding:5px; width:max-content; max-width:100%; border:1px solid rgba(148,163,184,.2); border-radius:13px; background:rgba(15,23,42,.7); }
.market-subtab { min-height:40px; padding:8px 16px; border:0; border-radius:9px; background:transparent; color:#a9b8cb; font:inherit; font-weight:800; cursor:pointer; }
.market-subtab.active { color:#f8fafc; background:linear-gradient(135deg,#0e7490,#2563eb); box-shadow:0 4px 15px rgba(14,116,144,.25); }
.market-subpanel[hidden], .direct-trade-panel[hidden], .market-auctions-panel[hidden] { display:none; }
.market-auctions-panel { display:grid; gap:16px; padding:clamp(14px,3vw,24px); border:1px solid rgba(250,204,21,.18); border-radius:18px; background:radial-gradient(ellipse at 4% 0%,rgba(202,138,4,.12),transparent 46%),rgba(9,17,33,.72); }
.market-auctions-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.market-auction-refresh { flex:0 0 auto; min-height:40px; padding:8px 13px; border:1px solid rgba(125,211,252,.45); border-radius:10px; background:linear-gradient(135deg,rgba(14,116,144,.45),rgba(30,64,175,.35)); color:#e0f2fe; font:inherit; font-weight:850; cursor:pointer; }
.market-auction-refresh:disabled { opacity:.62; cursor:wait; }
.market-auctions-heading h3 { margin:0 0 5px; color:#f8fafc; font-size:1.35rem; }
.market-auctions-heading p:last-child { margin:0; color:#aebed1; font-size:.85rem; line-height:1.45; }
.market-auction-bot-count { flex:0 0 auto; padding:8px 11px; border:1px solid rgba(250,204,21,.24); border-radius:999px; background:rgba(120,83,9,.14); color:#fde68a; font-size:.76rem; font-weight:850; }
.market-auction-create-panel { padding:16px; border:1px solid rgba(148,163,184,.2); border-radius:15px; background:rgba(15,23,42,.66); }
.market-auction-create-panel h4 { margin:0 0 5px; color:#f8fafc; }
.market-auction-create-panel > p { margin:0 0 13px; color:#aebed1; font-size:.82rem; line-height:1.45; }
.market-auction-inventory { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr)); gap:12px; max-height:440px; overflow:auto; padding:4px; }
.market-auction-item { display:grid; grid-template-columns:48px minmax(0,1fr) 78px; align-items:center; gap:12px; min-width:0; min-height:80px; padding:11px 13px; border:1px solid rgba(148,163,184,.18); border-radius:13px; background:rgba(2,6,23,.34); }
.market-auction-item-art .market-badge-art { width:46px; height:46px; flex-basis:46px; }
.market-auction-item-copy { display:grid; min-width:0; gap:5px; }
.market-auction-item-copy strong { overflow-wrap:anywhere; color:#e2e8f0; font-size:.84rem; line-height:1.3; }
.market-auction-item-copy small { color:#9fb1c7; font-size:.73rem; }
.market-auction-item input { width:100%; min-width:0; min-height:42px; padding:8px; border:1px solid rgba(148,163,184,.27); border-radius:8px; background:#0b1427; color:#f8fafc; font:inherit; }
.market-auction-create-controls { display:flex; flex-wrap:wrap; align-items:end; gap:10px; margin-top:13px; }
.market-auction-create-controls label { display:grid; gap:5px; color:#cbd5e1; font-size:.77rem; font-weight:750; }
.market-auction-create-controls input,.market-auction-create-controls select { min-height:40px; padding:8px 10px; border:1px solid rgba(148,163,184,.3); border-radius:9px; background:#0b1427; color:#f8fafc; font:inherit; }
.market-auction-minimum { flex:1 1 180px; color:#fde68a; font-size:.78rem; font-weight:800; }
.market-auction-create-controls .market-post-trade { min-height:42px; padding:9px 14px; border:0; border-radius:9px; background:linear-gradient(135deg,#a16207,#ca8a04); color:white; font:inherit; font-weight:850; cursor:pointer; }
.market-auction-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr)); gap:12px; }
.market-auction-card { display:grid; align-content:start; gap:10px; min-width:0; padding:14px; border:1px solid rgba(250,204,21,.22); border-radius:15px; background:linear-gradient(150deg,rgba(27,31,45,.92),rgba(10,16,30,.96)); }
.market-auction-card h4 { margin:0; color:#f8fafc; }
.market-auction-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.market-auction-bid-count { flex:none; padding:5px 9px; border:1px solid rgba(250,204,21,.32); border-radius:999px; background:rgba(250,204,21,.1); color:#fde68a; font-size:.78rem; }
.market-auction-meta { display:flex; flex-wrap:wrap; gap:6px; color:#aebed1; font-size:.73rem; }
.market-auction-meta span { padding:4px 7px; border:1px solid rgba(148,163,184,.14); border-radius:999px; background:rgba(2,6,23,.25); }
.market-auction-pricebar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:5px 12px; padding:10px 12px; border:1px solid rgba(250,204,21,.3); border-radius:11px; background:linear-gradient(110deg,rgba(120,83,9,.22),rgba(2,6,23,.42)); color:#fde68a; }
.market-auction-pricebar small { flex:1 0 100%; color:#dbeafe; font-size:.76rem; }
.market-auction-pricebar span { font-size:.76rem; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.market-auction-pricebar strong { color:#fff7cc; font-size:1.12rem; font-weight:950; text-align:right; }
.market-auction-lot { display:flex; align-items:center; gap:8px; min-height:55px; overflow:auto; padding:7px; border-radius:11px; background:rgba(2,6,23,.28); }
.market-auction-lot .market-offer-asset { flex-basis:84px; }
.market-auction-bid-row { display:grid; grid-template-columns:minmax(100px,1fr) auto; align-items:end; gap:8px; }
.market-auction-bid-row label { display:grid; gap:4px; color:#cbd5e1; font-size:.73rem; font-weight:750; }
.market-auction-bid-row label small { color:#94a3b8; font-size:.68rem; font-weight:600; }
.market-auction-bid-row input { min-height:40px; width:100%; padding:8px 10px; border:1px solid rgba(148,163,184,.28); border-radius:9px; background:#0b1427; color:#f8fafc; font:inherit; }
.market-auction-bid-row button { min-height:40px; padding:8px 13px; border:0; border-radius:9px; background:linear-gradient(135deg,#a16207,#ca8a04); color:#fff; font:inherit; font-weight:850; cursor:pointer; }
.market-auction-bid-row button:disabled { opacity:.52; cursor:not-allowed; }
.market-auction-empty { grid-column:1/-1; padding:18px; color:#9fb1c7; text-align:center; }
.direct-offer-form select[multiple] { min-height:142px; padding:6px; }
.direct-offer-form select[multiple] option { padding:6px 8px; border-radius:5px; }
.market-offer-more { flex:0 0 auto; align-self:center; color:#bae6fd; font-weight:800; }
.inventory-art.market-badge-art { box-sizing:border-box; flex:0 0 40px; width:40px; height:40px; max-width:40px; max-height:40px; }
.market-rarity-frame .market-badge-art-wrap { position:relative; }
.market-rarity-frame .market-mutation-marks { position:absolute; inset:-5px; pointer-events:none; }
.binary-badge-art { container-type:size; }
.binary-badge-art::before { content:'10100110'; max-width:none; white-space:nowrap; font-size:15cqw; line-height:1; letter-spacing:-.08em; overflow-wrap:normal; }
.market-offer-more summary { padding:7px 9px; border:1px solid rgba(125,211,252,.25); border-radius:9px; cursor:pointer; list-style:none; white-space:nowrap; }
.market-offer-more summary::-webkit-details-marker { display:none; }
.market-offer-more[open] { position:relative; }
.market-offer-more[open] > div { position:absolute; z-index:5; top:calc(100% + 6px); right:0; display:flex; box-sizing:border-box; width:min(380px,calc(100vw - 32px)); max-height:min(260px,55vh); overflow:auto; flex-wrap:wrap; gap:9px; padding:12px; border:1px solid rgba(125,211,252,.3); border-radius:12px; background:#0b1427; box-shadow:0 14px 40px rgba(0,0,0,.45); }
.direct-trade-panel { display:grid; gap:16px; padding:clamp(14px,3vw,24px); border:1px solid rgba(56,189,248,.18); border-radius:18px; background:radial-gradient(ellipse at 4% 0%,rgba(8,145,178,.11),transparent 46%),rgba(9,17,33,.72); }
.direct-trade-heading, .direct-session-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.direct-trade-heading h3 { margin:0 0 5px; color:#f8fafc; font-size:1.35rem; }
.direct-trade-heading p:last-child { margin:0; color:#aab8ca; }
.direct-presence-pill, .direct-session-state { flex:0 0 auto; padding:7px 11px; border:1px solid rgba(52,211,153,.26); border-radius:999px; background:rgba(16,185,129,.1); color:#a7f3d0; font-size:.75rem; font-weight:850; }
.direct-trade-status { min-height:1.25rem; color:#fde68a; font-size:.85rem; }
.direct-online-section, .direct-invitations { display:grid; gap:10px; }
.direct-online-section h4, .direct-invitations h4 { margin:0; color:#e2e8f0; }
.direct-online-players { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr)); gap:9px; }
.direct-online-card, .direct-invitation-card { display:flex; align-items:center; gap:9px; min-width:0; padding:11px 12px; border:1px solid rgba(148,163,184,.18); border-radius:12px; background:rgba(15,23,42,.72); }
.direct-online-card strong, .direct-invitation-card strong { min-width:0; overflow:hidden; color:#f1f5f9; text-overflow:ellipsis; }
.direct-online-card button, .direct-invitation-card button { flex:0 0 auto; margin-left:auto; padding:7px 11px; border:1px solid rgba(56,189,248,.28); border-radius:8px; background:rgba(8,145,178,.18); color:#bae6fd; font:inherit; font-size:.78rem; font-weight:850; cursor:pointer; }
.direct-online-card button:disabled { opacity:.48; cursor:not-allowed; }
.direct-online-dot { flex:0 0 8px; width:8px; height:8px; border-radius:50%; background:#34d399; box-shadow:0 0 10px rgba(52,211,153,.7); }
.direct-invitation-card small { display:block; color:#aab8ca; font-size:.72rem; }
.direct-invitation-card span { margin-left:auto; color:#aab8ca; font-size:.78rem; }
.direct-session { display:grid; gap:15px; padding:clamp(13px,2.5vw,20px); border:1px solid rgba(129,140,248,.25); border-radius:15px; background:rgba(15,23,42,.62); }
.direct-session[hidden], .direct-shared-inventory[hidden], .direct-invitations[hidden], #direct-countdown[hidden] { display:none !important; }
.direct-session-heading h4 { margin:3px 0 0; color:#f8fafc; font-size:1.15rem; }
.direct-inventory-share { display:flex; align-items:center; gap:9px; width:max-content; max-width:100%; padding:9px 12px; border:1px solid rgba(148,163,184,.2); border-radius:9px; color:#dbeafe; font-size:.82rem; cursor:pointer; }
.direct-inventory-share input { accent-color:#38bdf8; }
.direct-shared-inventory { display:grid; gap:10px; padding:14px; border:1px solid rgba(52,211,153,.2); border-radius:12px; background:rgba(6,78,59,.14); color:#d1fae5; }
.direct-shared-inventory > .direct-inventory-heading { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:8px; }
.direct-inventory-heading > strong { color:#d1fae5; }
.direct-inventory-heading > span { padding:5px 9px; border:1px solid rgba(52,211,153,.2); border-radius:999px; background:rgba(6,78,59,.24); font-size:.72rem; font-weight:800; }
.direct-shared-inventory > .direct-inventory-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr)); gap:8px; max-height:420px; overflow-y:auto; padding:2px 4px 2px 2px; overscroll-behavior:contain; }
.direct-inventory-item { display:grid; grid-template-columns:40px minmax(0,1fr) auto; align-items:center; gap:9px; min-width:0; padding:9px; border:1px solid rgba(148,163,184,.13); border-radius:10px; background:rgba(15,23,42,.75); }
.direct-inventory-item-copy { display:grid; gap:3px; min-width:0; }
.direct-inventory-item-copy strong { overflow:hidden; color:#e2e8f0; font-size:.76rem; text-overflow:ellipsis; }
.direct-inventory-item-copy small { color:#9fb1c7; font-size:.66rem; }
.direct-inventory-item > button { min-height:38px; padding:6px 10px; border:1px solid rgba(52,211,153,.28); border-radius:8px; background:rgba(16,185,129,.12); color:#bbf7d0; font:inherit; font-size:.7rem; font-weight:850; cursor:pointer; }
.direct-inventory-item > button:disabled { opacity:.62; cursor:default; }
.direct-inventory-grid .inventory-art { width:38px; height:38px; border-radius:9px; box-shadow:none; }
.direct-inventory-grid .direct-inventory-empty { grid-column:1/-1; margin:0; padding:12px; color:#aab8ca; font-size:.8rem; }
.direct-offer-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.direct-offer-card { min-width:0; padding:13px; border:1px solid rgba(148,163,184,.17); border-radius:12px; background:rgba(2,6,23,.36); }
.direct-offer-card h5, .direct-chat h5 { margin:0 0 9px; color:#e2e8f0; font-size:.9rem; }
.direct-offer-content { min-height:120px; }
.direct-offer-form { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(120px,.55fr) auto; align-items:end; gap:10px; }
.direct-offer-form label, .direct-offer-badges-field { display:grid; gap:6px; min-width:0; color:#cbd5e1; font-size:.75rem; font-weight:750; }
.direct-offer-badges-field > strong { color:#cbd5e1; }
.direct-badge-picker { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:11px; max-height:350px; overflow-y:auto; padding:5px; border:1px solid rgba(148,163,184,.17); border-radius:12px; background:rgba(2,6,23,.28); overscroll-behavior:contain; }
.direct-badge-option { display:grid; grid-template-columns:46px minmax(0,1fr) 76px; align-items:center; gap:10px; min-height:76px; padding:10px; border:1px solid rgba(148,163,184,.13); border-radius:11px; background:rgba(15,23,42,.73); }
.direct-badge-option.selected { border-color:rgba(56,189,248,.55); background:rgba(8,145,178,.15); }
.direct-offer-form .direct-badge-option > input { box-sizing:border-box; width:100%; min-height:38px; margin:0; padding:4px; text-align:center; accent-color:#38bdf8; }
.direct-badge-option-art .inventory-art { width:44px; height:44px; border-radius:9px; box-shadow:none; }
.direct-badge-option-copy { display:grid; min-width:0; gap:4px; }
.direct-badge-option-copy strong, .direct-badge-option-copy small { overflow-wrap:anywhere; }
.direct-badge-option-copy strong { color:#e2e8f0; font-size:.8rem; line-height:1.3; }
.direct-badge-option-copy small { color:#9fb1c7; font-size:.7rem; line-height:1.35; }
.direct-badge-picker-empty { grid-column:1/-1; margin:0; padding:12px; color:#aab8ca; }
.direct-offer-form select, .direct-offer-form input, .direct-chat-form input { box-sizing:border-box; width:100%; min-height:42px; padding:9px 11px; border:1px solid rgba(148,163,184,.34); border-radius:9px; background:#0b1427; color:#f8fafc; font:inherit; }
.direct-offer-form button { min-height:42px; white-space:nowrap; }
.direct-offer-status { grid-column:1/-1; min-height:1em; margin:0; color:#a7f3d0; font-size:.75rem; }
.direct-accept-row { display:flex; align-items:center; flex-wrap:wrap; gap:9px; }
.direct-decline-button { min-height:42px; padding:9px 13px; border:1px solid rgba(248,113,113,.28); border-radius:9px; background:rgba(127,29,29,.2); color:#fecaca; font:inherit; font-weight:800; cursor:pointer; }
#direct-countdown { color:#fde68a; font-size:.84rem; font-weight:850; }
#direct-countdown.direct-countdown-active { display:grid; grid-column:1/-1; place-items:center; min-height:96px; margin-top:4px; padding:14px; border:1px solid rgba(250,204,21,.48); border-radius:14px; background:radial-gradient(circle at 50% 0%,rgba(250,204,21,.16),rgba(15,23,42,.85) 72%); color:#fef3c7; font-size:clamp(1.65rem,6vw,2.5rem); font-weight:950; letter-spacing:.02em; text-align:center; text-shadow:0 0 22px rgba(250,204,21,.25); animation:direct-countdown-pulse .9s ease-in-out infinite alternate; }
@keyframes direct-countdown-pulse { from { border-color:rgba(250,204,21,.34); box-shadow:0 0 0 rgba(250,204,21,0); } to { border-color:rgba(250,204,21,.72); box-shadow:0 0 22px rgba(250,204,21,.15); } }
.direct-chat { display:grid; gap:8px; width:100%; min-width:0; }
.direct-chat-messages { display:grid; align-content:start; gap:8px; max-height:220px; min-height:90px; overflow:auto; padding:10px; border:1px solid rgba(148,163,184,.17); border-radius:11px; background:rgba(2,6,23,.45); }
.direct-chat-message { display:grid; justify-self:start; gap:2px; max-width:min(90%,480px); padding:8px 10px; border-radius:10px 10px 10px 3px; background:rgba(51,65,85,.75); color:#dbeafe; font-size:.82rem; overflow-wrap:anywhere; }
.direct-chat-message.mine { justify-self:end; border-radius:10px 10px 3px 10px; background:rgba(8,145,178,.24); }
.direct-chat-message strong { color:#7dd3fc; font-size:.7rem; }
.direct-chat-form { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; width:100%; min-width:0; }
.direct-chat-form input { min-width:0; width:100%; }
.direct-chat-form button { flex:0 0 auto; min-width:74px; min-height:44px; border:0; border-radius:9px; background:#0284c7; color:white; font:inherit; font-weight:850; cursor:pointer; touch-action:manipulation; }
.direct-chat-form button:disabled { opacity:.65; cursor:wait; }
.direct-chat-status { min-height:1em; margin:0; color:#9fb1c7; font-size:.74rem; }

/* Android and other touch browsers: keep taps responsive and layouts stable. */
html { min-height:100%; -webkit-text-size-adjust:100%; }
body { min-height:100vh; min-height:100dvh; overscroll-behavior-x:none; }
button, input, select, textarea { -webkit-tap-highlight-color:transparent; }
@media (hover:none) and (pointer:coarse) {
  button:active:not(:disabled) { filter:brightness(1.12); }
  .daily-rewards-screen, .account-screen, .badge-preview { overscroll-behavior:contain; }
}
@media (max-width:700px) {
  .direct-offer-grid { grid-template-columns:1fr; }
  .direct-offer-content { min-height:80px; }
  .direct-offer-form { grid-template-columns:minmax(0,1fr) 120px; }
  .direct-offer-badges-field, .direct-offer-form button { grid-column:1/-1; }
  .direct-session-heading { align-items:flex-start; flex-direction:column; }
}

/* iPhone/iPad layout: larger controls, safe-area spacing, and native scrolling. */
@media (max-width: 700px) {
  html, body { width:100%; min-width:0; overflow-x:hidden; }
  input, select, textarea { font-size:16px !important; }
  button, input, select, textarea { touch-action:manipulation; }
  .mutation-browser { grid-template-columns:minmax(0,1fr); gap:10px; }
  .mutation-browser-content { order:1; width:100%; }
  .mutation-filter { position:static; order:2; width:100%; }
  .mutation-filter > strong, .mutation-filter > span { grid-column:1/-1; }
  .daily-rewards-screen { min-height:100vh; min-height:100dvh; padding:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left)); }
  .daily-rewards-card { max-height:calc(100vh - 20px); max-height:calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); padding:20px 14px; border-radius:16px; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
  .market-heading, .market-request-panel, .market-bot-card, .direct-trade-panel { min-width:0; }
  .market-subtabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); width:100%; box-sizing:border-box; }
  .market-auctions-heading { align-items:flex-start; flex-direction:column; }
  .market-auction-create-panel { padding:12px; }
  .market-subtab { min-width:0; padding-inline:8px; }
  .direct-trade-dock { align-items:flex-start; flex-direction:column; }
  .direct-trade-panel { padding:13px 11px; border-radius:14px; }
  .direct-trade-heading { align-items:flex-start; flex-direction:column; }
  .direct-trade-heading p:last-child { font-size:.86rem; line-height:1.4; }
  .direct-presence-pill { align-self:flex-start; }
  .market-badge-picker { grid-template-columns:minmax(0,1fr); max-height:340px; }
  .market-auction-inventory { grid-template-columns:minmax(0,1fr); max-height:380px; }
  .market-request-form .market-badge-option { grid-template-columns:44px minmax(0,1fr) 68px; }
  .market-request-form .market-badge-option-art .market-badge-art-wrap, .market-request-form .market-badge-option-art .market-badge-art { width:42px; height:42px; }
  .market-request-form .market-badge-option input[type="number"] { width:68px; }
  .direct-badge-picker { grid-template-columns:minmax(0,1fr); max-height:38vh; max-height:38dvh; }
  .direct-badge-option { grid-template-columns:42px minmax(0,1fr) 68px; gap:9px; padding:9px; }
  .direct-badge-option-art .inventory-art { width:40px; height:40px; }
  .direct-offer-form { grid-template-columns:minmax(0,1fr) minmax(94px,112px); }
  .direct-offer-form button { width:100%; min-height:46px; }
  .direct-chat-form { align-items:stretch; }
  .direct-chat-form { grid-template-columns:minmax(0,1fr) 72px; }
  .direct-chat-form input { min-width:0; min-height:46px; }
  .direct-chat-form button { width:72px; min-width:0; min-height:46px; padding-inline:8px; }
  .direct-chat-messages { max-height:30dvh; -webkit-overflow-scrolling:touch; }
  .direct-inventory-grid > .direct-inventory-empty { grid-column:1/-1; }
  .direct-inventory-grid { grid-template-columns:minmax(0,1fr); max-height:36dvh; -webkit-overflow-scrolling:touch; }
  .market-global-notice { top:max(10px,env(safe-area-inset-top)); width:calc(100vw - 20px - env(safe-area-inset-left) - env(safe-area-inset-right)); padding:13px 15px; }
  .arcade-card-game-main,.arcade-table,.arcade-rivals,.arcade-board,.arcade-sudoku-grid,.arcade-mines-grid { min-width:0; }
}
.market-trade-arrow { color: #7dd3fc; font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.market-trade-value { color: #fde68a; font-size: .77rem; }
.market-badge-art { position: relative; flex: 0 0 72px; width: 72px; height: 72px; overflow: visible; }
.market-owned-check { position: absolute; z-index: 5; top: 0; right: 0; display: grid; place-items: center; width: 23px; height: 23px; border: 2px solid #0f172a; border-radius: 50%; background: #22c55e; color: #052e16; font-size: .9rem; font-weight: 1000; text-shadow: none; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.market-badge-art-wrap { position:relative; flex:0 0 72px; width:72px; height:72px; }
.market-mutation-marks { position:absolute; right:-5px; bottom:-4px; display:flex; gap:2px; }
.market-mutation-mark { display:grid; place-items:center; width:18px; height:18px; border:1px solid var(--mutation-color); border-radius:50%; background:#0b1120; color:var(--mutation-color); font-size:.65rem; font-style:normal; line-height:1; }
.market-trade-success .market-trade { animation: market-trade-sparkle .95s ease-out; }
.market-trade-success .market-trade::after { position: absolute; inset: 4px; display: grid; place-items: center; color: #fde047; content: '✦   ✧   ✦'; font-size: 1.7rem; letter-spacing: 1.4em; text-shadow: 0 0 14px #facc15; pointer-events: none; animation: market-sparkle-pop .95s ease-out both; }
@keyframes market-trade-sparkle { 45% { box-shadow: inset 0 0 0 2px rgba(250,204,21,.85), 0 0 28px rgba(250,204,21,.55); } }
@keyframes market-sparkle-pop { 0% { opacity: 0; transform: scale(.4) rotate(-18deg); } 35% { opacity: 1; transform: scale(1.1) rotate(8deg); } 100% { opacity: 0; transform: scale(1.5) rotate(20deg); } }
.market-trade-button { width: 100%; padding: 10px 12px; border: 0; border-radius: 9px; background: linear-gradient(135deg,#0e7490,#0284c7); color: white; font: inherit; font-weight: 800; cursor: pointer; }
.market-trade-button:disabled { cursor: not-allowed; opacity: .52; }
.market-empty { color: #9fb1c7; }

.pack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
    min-height: 260px;
}

.inventory-list {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

@media (max-width:680px) {
  #owned-inventory-list .inventory-card { gap:8px; padding:9px; border-radius:12px; }
  #owned-inventory-list .inventory-art { width:48px; height:48px; }
}

.mutation-browser { display:grid; grid-template-columns:minmax(150px,190px) minmax(0,1fr); gap:16px; align-items:start; }
.mutation-browser-content { display:grid; gap:4px; min-width:0; }
.mutation-filter { position:sticky; top:12px; display:grid; gap:8px; padding:13px; border:1px solid rgba(148,163,184,.22); border-radius:15px; background:linear-gradient(155deg,rgba(30,41,59,.82),rgba(15,23,42,.94)); }
.mutation-filter > strong { color:#f8fafc; font-size:.92rem; }
.mutation-filter > span { margin-top:-6px; color:var(--text-muted); font-size:.72rem; }
.mutation-filter .mutation-filter-section { min-width:0; }
.mutation-filter label { display:flex; align-items:center; gap:7px; min-width:0; color:#dbeafe; font-size:.77rem; font-weight:700; cursor:pointer; line-height:1.25; overflow-wrap:anywhere; }
.mutation-filter input { flex:0 0 15px; width:15px; height:15px; margin:0; accent-color:#a78bfa; }
.mutation-filter i { display:grid; place-items:center; flex:0 0 19px; width:19px; height:19px; border-radius:50%; background:color-mix(in srgb,var(--mutation-color) 24%,#111827); color:var(--mutation-color); font-size:.8rem; font-style:normal; box-shadow:0 0 7px color-mix(in srgb,var(--mutation-color) 48%,transparent); }
.inventory-art.mutation-selected-art { outline:3px solid var(--selected-mutation-color,#c084fc); outline-offset:3px; }
.mutation-border-logos { position:absolute; z-index:7; right:-9px; bottom:-9px; display:flex; flex-direction:column; gap:2px; pointer-events:none; }
.mutation-border-logo { display:grid; place-items:center; box-sizing:border-box; width:23px; height:23px; border:2px solid var(--selected-mutation-color,#c084fc); border-radius:50%; background:#0f172a; color:var(--mutation-color); font-size:.82rem; line-height:1; text-shadow:0 1px 2px #000; box-shadow:0 2px 8px #000b; }
.mutation-art-wrap { position:relative; display:grid; place-items:center; flex:0 0 112px; width:112px; height:112px; overflow:visible; }
.mutation-art-wrap .inventory-art.mutation-selected-art { outline:none; }
.mutation-art-wrap > .inventory-art { flex:0 0 72px; }
.mutation-art-wrap > .mutation-border-logos { inset:0; right:auto; bottom:auto; display:block; width:112px; height:112px; }
.mutation-art-wrap .mutation-border-logo { position:absolute; top:50%; left:50%; margin:0; border-color:var(--mutation-color); transform:translate(-50%,-50%) rotate(var(--mutation-angle)) translateY(-45px) rotate(calc(0deg - var(--mutation-angle))); }
.badge-preview-art.mutation-selected-art { outline:3px solid var(--selected-mutation-color,#c084fc); outline-offset:8px; }
.mutation-details { flex:1 1 100%; min-width:0; margin:5px 0 8px; padding:8px 10px; border:1px solid rgba(192,132,252,.24); border-radius:10px; background:rgba(76,29,149,.12); color:#e9d5ff; font-size:.77rem; }
.mutation-details summary { color:#e9d5ff; font-weight:800; cursor:pointer; }
.inventory-mutated-value { max-width:70%; text-align:right; line-height:1.35; }
.mutation-variant-row { display:flex; justify-content:space-between; gap:8px; padding-top:7px; color:#cbd5e1; }
.mutation-variant-row strong { color:#f5d0fe; }
.rolled-mutation-tag { display:inline-flex; justify-self:center; padding:6px 10px; border:1px solid rgba(216,180,254,.55); border-radius:999px; background:rgba(126,34,206,.18); color:#f3e8ff; font-size:.78rem; font-weight:850; }
.mutation-filter-section { margin-top:12px; padding-top:10px; border-top:1px solid rgba(250,204,21,.22); color:#fde68a; }
.mutation-variant-row { display:flex; align-items:center; justify-content:flex-start; gap:13px; padding:10px 2px 4px; border-top:1px solid rgba(148,163,184,.14); }
.mutation-variant-row:first-of-type { border-top:0; }
.mutation-variant-art-wrap { position:relative; display:grid; place-items:center; flex:0 0 86px; width:86px; height:86px; overflow:visible; }
.mutation-details .inventory-art.mutation-copy-art { flex:0 0 48px; width:48px; height:48px; border-radius:50%; }
.mutation-variant-art-wrap > .mutation-border-logos { position:absolute; inset:0; display:block; width:86px; height:86px; }
.mutation-variant-art-wrap .mutation-border-logo { position:absolute; top:50%; left:50%; margin:0; transform:translate(-50%,-50%) rotate(var(--mutation-angle)) translateY(-38px) rotate(calc(0deg - var(--mutation-angle))); }
.mutation-variant-info { display:grid; min-width:0; gap:5px; }
.mutation-variant-info > strong { color:#f8fafc; }
.mutation-variant-chips { display:flex; flex-wrap:wrap; gap:5px; }
.mutation-variant-chip { display:inline-flex; align-items:center; gap:4px; padding:3px 6px; border:1px solid rgba(148,163,184,.18); border-radius:999px; background:rgba(15,23,42,.48); color:#dbeafe; font-size:.68rem; }
.mutation-variant-chip i { color:var(--mutation-color); font-style:normal; }
.mutation-variant-value { color:#fde68a; font-size:.75rem; font-weight:800; }
.mutation-variant-art-wrap .first-edition-star { position:absolute; z-index:8; top:-2px; right:-2px; display:grid; place-items:center; width:19px; height:19px; border-radius:50%; background:#facc15; color:#422006; font-size:.75rem; line-height:1; box-shadow:0 1px 5px #0009; }
.mutation-roll-reveal .rolled-mutation-tag { animation:mutation-reveal-pop .72s cubic-bezier(.2,.9,.25,1.25) both; }
.mutation-roll-reveal .card-art { animation:mutation-reveal-glow .9s ease-in-out both; }
@keyframes mutation-reveal-pop { 0% { opacity:0; transform:translateY(8px) scale(.82); } 65% { opacity:1; transform:translateY(-2px) scale(1.06); } 100% { opacity:1; transform:translateY(0) scale(1); } }
@keyframes mutation-reveal-glow { 0% { filter:brightness(1); box-shadow:0 0 0 transparent; } 45% { filter:brightness(1.35); box-shadow:0 0 28px var(--selected-mutation-color,#c084fc); } 100% { filter:brightness(1); } }
.mutation-details[open] { width:100%; box-sizing:border-box; }
.mutation-details .mutation-variant-row { display:grid; grid-template-columns:86px minmax(0,1fr); align-items:center; justify-content:start; }
.mutation-details .mutation-variant-info { grid-column:2; }
.mutation-details .mutation-variant-chip { padding:4px 8px; }

.inventory-empty {
    padding: 18px;
    border-radius: 14px;
    border: 1px dashed rgba(148, 163, 184, 0.28);
    color: var(--text-muted);
    background: rgba(15, 23, 42, 0.4);
}

.inventory-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    padding: 16px;
    font-family: Arial, sans-serif;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

.inventory-card.index-card {
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
}

.index-card { position: relative; }
.index-card .inventory-art { cursor: zoom-in; }
.index-card .inventory-art.halloween-badge-art { cursor:zoom-in; }
.inventory-art.index-checkmark-art,.badge-preview-art.index-checkmark-art { overflow:hidden; background-size:80% 80%!important; }
.inventory-art.halloween-badge-art::after,.badge-preview-art.halloween-badge-art::after,.card-art.halloween-badge-art::after { position:absolute; inset:8%; display:block; width:auto; height:auto; content:''!important; background:var(--halloween-art,none) center/contain no-repeat!important; font-size:0!important; filter:drop-shadow(0 4px 4px rgba(2,6,23,.42)); }
.market-rarity-frame { flex:0 0 48px!important; width:48px!important; height:48px!important; padding:3px; box-sizing:border-box; overflow:hidden; }
.market-rarity-frame>.market-badge-art-wrap { display:grid; place-items:center; width:100%; height:100%; min-width:0; min-height:0; }
.market-rarity-frame .market-badge-art { flex:none!important; width:100%!important; height:100%!important; max-width:100%!important; max-height:100%!important; min-width:0!important; min-height:0!important; border-radius:50%; background-size:contain; }
.market-rarity-frame .bird-badge-art::after { background-size:400% 800%; }
.market-rarity-frame .halloween-badge-art::after { inset:8%; }
.market-trade-pair { align-items:stretch; }
.market-trade-side { grid-template-rows:auto minmax(132px,1fr) auto auto; align-content:stretch; min-height:245px; }
.market-trade-side>.market-offer-items { min-height:132px; align-items:center; justify-content:center; }
.market-trade-side .market-offer-asset { align-self:center; }
.market-trade-arrow { align-self:center; justify-self:center; }
.badge-preview { position: fixed; inset: 0; z-index: 2000; display: grid; place-content: center; justify-items: center; gap: 18px; padding: max(28px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(28px, env(safe-area-inset-left)); background: rgba(5, 10, 22, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: zoom-out; overscroll-behavior: contain; touch-action: manipulation; }
.badge-preview.hidden { display: none; }
body.badge-preview-open { overflow: hidden; }
.badge-preview-art { width: min(62vw, 460px); height: min(62vw, 460px); min-width: min(65vw, 250px); min-height: min(65vw, 250px); position: relative; border-radius: 50%; }
.badge-preview-frame { flex:0 0 auto; width:min(68vw,480px); height:min(68vw,480px); border-width:8px; border-radius:28px; }
.badge-preview-frame > .badge-preview-art { width:calc(100% - 22px); height:calc(100% - 22px); min-width:0; min-height:0; }
.badge-preview-frame:has(.halloween-badge-art) { width:min(84vw,560px); height:min(84vw,560px); border-width:9px; border-radius:32px; }
.badge-preview-frame:has(.halloween-badge-art) > .halloween-badge-art { width:calc(100% - 24px)!important; height:calc(100% - 24px)!important; flex:none; min-width:0!important; min-height:0!important; margin:auto!important; border-radius:50%; }
.badge-preview-art.halloween-badge-art::after { font-size:clamp(9rem,58vw,21rem); }
.badge-preview-art.yin-yang-badge { display: block; border: 0; border-radius: 0; background: url("/assets/yin-yang.svg?v=2") center / contain no-repeat; box-shadow: none; }
.badge-preview-art.yin-yang-badge::before { content: none; }
.badge-preview-art.duplicate-badge-art { position: relative; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.badge-preview-art.binary-badge-art::before { font-size:clamp(1.2rem,4vw,2.4rem); }
.badge-preview-art.blue-fire-badge-art::before { font-size:clamp(5rem,16vw,9rem); }
.badge-preview-art.happy-badge-art::before,.badge-preview-art.star-badge-art::before { font-size:clamp(5rem,16vw,9rem); }
.badge-preview-art.triple-badge-art::before { font-size:clamp(6rem,20vw,12rem); }
.badge-preview-art.duplicate-badge-art::before,
.badge-preview-art.duplicate-badge-art::after { content: ""; position: absolute; top: 20%; width: 60%; height: 60%; border: 8px solid #991b1b; border-radius: 50%; background: #dc2626; box-shadow: none; }
.badge-preview-art.duplicate-badge-art::before { left: 0; }
.badge-preview-art.duplicate-badge-art::after { right: 0; transform: translateX(10px); }
.badge-preview-title { margin: 0; color: #fff; font-size: clamp(1.2rem, 3vw, 1.8rem); text-align: center; }
.badge-preview-frame:has(.halloween-badge-art) { width:min(84vw,560px); height:min(84vw,560px); border-width:9px; border-radius:32px; }
.badge-preview-frame:has(.halloween-badge-art) > .halloween-badge-art { width:calc(100% - 24px)!important; height:calc(100% - 24px)!important; flex:none; min-width:0!important; min-height:0!important; margin:auto!important; border-radius:50%; }
.badge-preview-art.halloween-badge-art::after { font-size:clamp(9rem,58vw,21rem); }
@media (max-width: 600px) {
  .badge-preview { position: fixed; inset: 0; box-sizing: border-box; width: 100%; height: 100%; min-height: 100vh; min-height: 100dvh; padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
  .badge-preview-frame { width:min(84vw,340px); height:min(84vw,340px); border-width:6px; border-radius:20px; }
  .badge-preview-frame:has(.halloween-badge-art) { width:min(90vw,430px); height:min(90vw,430px); border-width:6px; border-radius:24px; }
  .badge-preview-frame:has(.halloween-badge-art) > .halloween-badge-art { width:calc(100% - 18px)!important; height:calc(100% - 18px)!important; }
  .badge-preview-art.halloween-badge-art::after { font-size:clamp(8rem,62vw,16rem); }
  .badge-preview-frame:has(.halloween-badge-art) { width:min(90vw,430px); height:min(90vw,430px); border-width:6px; border-radius:24px; }
  .badge-preview-frame:has(.halloween-badge-art) > .halloween-badge-art { width:calc(100% - 18px)!important; height:calc(100% - 18px)!important; }
  .badge-preview-art.halloween-badge-art::after { font-size:clamp(8rem,62vw,16rem); }
  .badge-preview-frame > .badge-preview-art { width:calc(100% - 16px); height:calc(100% - 16px); }
  .badge-preview-title { max-width: 90vw; font-size: 1.35rem; }
  .inventory-art { cursor: zoom-in; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
  .index-card { min-width: 0; }
  .inventory-card { gap: 10px; }
  .mutation-browser { grid-template-columns:minmax(0,1fr); gap:10px; }
  .mutation-filter { position:static; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .mutation-filter > strong, .mutation-filter > span { grid-column:1/-1; }
}

.inventory-card.not-collected .inventory-art {
    filter: saturate(0.3);
    opacity: 0.82;
}

.inventory-card.not-collected .inventory-art.rainbow-badge {
    filter: saturate(0.55) brightness(1.12);
    opacity: 0.9;
}

.index-card.not-collected .inventory-art {
    filter: saturate(0.08) brightness(0.76);
    opacity: 0.7;
}

.index-card.not-collected .inventory-art.rainbow-badge {
    filter: saturate(0.08) brightness(0.76);
    opacity: 0.7;
}

.inventory-collected-check {
    display: inline-grid;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 2px solid rgba(10, 16, 31, 0.95);
    border-radius: 50%;
    background: #22c55e;
    color: #052e16;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.inventory-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 5px rgba(255,255,255,0.15), 0 10px 25px rgba(0,0,0,0.25);
    flex-shrink: 0;
}

/* Keep the badge itself circular (or its own shape) and draw rarity around it. */
.badge-rarity-frame { position:relative; isolation:isolate; display:grid; flex:0 0 88px; width:88px; height:88px; place-items:center; border:3px solid transparent; border-radius:12px; box-sizing:border-box; background-clip:padding-box,border-box; }
.badge-rarity-frame.rarity-common,.badge-rarity-frame.rarity-uncommon,.badge-rarity-frame.rarity-rare,.badge-rarity-frame.rarity-epic,.badge-rarity-frame.rarity-legendary,.badge-rarity-frame.rarity-mythic,.badge-rarity-frame.rarity-godly { border-color:transparent; background:none; box-shadow:none; }
.badge-rarity-frame > .inventory-art { flex:0 0 72px; width:72px; height:72px; }
.mutation-art-wrap > .badge-rarity-frame { flex:0 0 88px; }
.market-rarity-frame { flex:0 0 48px; width:48px; height:48px; border-width:2px; border-radius:9px; }
.market-rarity-frame .market-badge-art-wrap,.market-rarity-frame .inventory-art { display:grid; width:100%; height:100%; place-items:center; }
.market-rarity-frame .inventory-art.market-badge-art { flex:0 0 40px; width:40px; height:40px; max-width:40px; max-height:40px; }
.direct-inventory-grid .market-rarity-frame,.direct-badge-option-art .market-rarity-frame { flex-basis:44px; width:44px; height:44px; border-width:2px; border-radius:8px; }
.direct-inventory-grid .market-rarity-frame .inventory-art.market-badge-art,.direct-badge-option-art .market-rarity-frame .inventory-art.market-badge-art { flex:0 0 36px; width:36px; height:36px; max-width:36px; max-height:36px; }

.inventory-art.rainbow-badge,
.inventory-art.static-badge {
    width: 72px;
    height: 72px;
    display: block;
    flex-shrink: 0;
}


.inventory-art.yin-yang-badge { display: block; border: 0; background: url("/assets/yin-yang.svg?v=2") center / 100% 100% no-repeat; box-shadow: none; }
.inventory-art.yin-yang-badge::before { content: none; }
.inventory-art.duplicate-badge-art { position: relative; box-shadow: none; }
.inventory-art.duplicate-badge-art::before,
.inventory-art.duplicate-badge-art::after { content: ""; position: absolute; top: 20%; width: 60%; height: 60%; border: 4px solid #991b1b; border-radius: 50%; background: #dc2626; box-shadow: none; }
.inventory-art.duplicate-badge-art::before { left: 0; }
.inventory-art.duplicate-badge-art::after { right: 0; transform: translateX(10px); }
.inventory-art.money-badge-art { position: relative; display: grid; place-items: center; border: 3px solid #fde68a; border-radius: 50%; background: radial-gradient(circle at 32% 24%, #fef3c7, #f59e0b 55%, #92400e); box-shadow: inset 0 0 0 4px rgba(255,255,255,.2), 0 8px 20px rgba(245,158,11,.32); }
.inventory-art.money-badge-art::before { content: "$"; color: #713f12; font: 900 2.2rem/1 Georgia, serif; text-shadow: 0 1px 0 #fef3c7; }

.inventory-art.hourglass-badge { position: relative; overflow: hidden; border: 3px solid rgba(255, 255, 255, 0.72); border-radius: 18px; background: radial-gradient(circle at 28% 22%, #f5d0fe, transparent 30%), linear-gradient(145deg, #581c87, #c026d3 55%, #f0abfc); box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.12), 0 10px 25px rgba(192, 38, 211, 0.32); }
.inventory-art.hourglass-badge::before { content: ""; position: absolute; inset: 16% 28%; background: linear-gradient(135deg, #fff7d6, #fbbf24); clip-path: polygon(0 0, 100% 0, 100% 12%, 62% 43%, 57% 50%, 62% 57%, 100% 88%, 100% 100%, 0 100%, 0 88%, 38% 57%, 43% 50%, 38% 43%, 0 12%); filter: drop-shadow(0 2px 3px rgba(15, 23, 42, 0.48)); }
.inventory-art.hourglass-badge::after { content: ""; position: absolute; left: 44%; top: 41%; width: 12%; height: 19%; border-radius: 0 0 50% 50%; background: #a855f7; }
.hour-pack-icon { background-color: var(--hour-pack-bg); background-image: var(--hour-pack-svg), radial-gradient(circle at 28% 20%, rgba(255,255,255,.38), transparent 46%); background-repeat: no-repeat; background-position: center; background-size: 82% 82%, 100% 100%; }
.inventory-art.hour-pack-icon { border-radius: 50%; box-shadow: inset 0 0 0 4px rgba(255,255,255,.2), 0 8px 18px rgba(15,23,42,.25); }
.hourly-pack-art.hour-pack-icon { width: 76px; height: 76px; border: 3px solid rgba(255,255,255,.65); border-radius: 50%; box-shadow: 0 0 23px rgba(56,189,248,.28), inset 0 0 0 4px rgba(255,255,255,.12); }
.card-art.hour-pack-icon { background-size: 82% 82%, 100% 100%; box-shadow: inset 0 0 0 6px rgba(255,255,255,.2), 0 12px 30px rgba(0,0,0,.25); }
.hour-pack-icon-compass { --hour-pack-bg: transparent; --hour-pack-svg: url('/assets/hour-pack-compass.svg'); }
.hour-pack-icon-map { --hour-pack-bg: transparent; --hour-pack-svg: url('/assets/hour-pack-map.svg'); }
.hour-pack-icon-message-bottle { --hour-pack-bg: transparent; --hour-pack-svg: url('/assets/hour-pack-bottle.svg'); }
.hour-pack-icon-message-bottle, .hour-pack-icon-kraken { background-size: 100% 100%, 100% 100%; }
.hour-pack-icon-hourglass { --hour-pack-bg: transparent; --hour-pack-svg: url('/assets/hour-pack-hourglass.svg'); }
.hour-pack-icon-boat { --hour-pack-bg: transparent; --hour-pack-svg: url('/assets/cohesive/boat.svg'); }
.hour-pack-icon-kraken { --hour-pack-bg: transparent; --hour-pack-svg: url('/assets/cohesive/kraken.svg'); }
.hourly-pack-art.hour-pack-icon { border:0; border-radius:0; box-shadow:none; filter:drop-shadow(0 5px 7px rgba(0,0,0,.32)); }
.hourly-pack-reveal { border:2px solid rgba(125,211,252,.52); background:radial-gradient(circle at 50% 42%,rgba(14,116,144,.24),transparent 55%),linear-gradient(145deg,rgba(15,45,75,.94),rgba(15,23,42,.98)); box-shadow:0 0 24px rgba(56,189,248,.14); }
.hourly-pack-kicker { color:#bae6fd; }
.flower-badge-art { display: block; border: 3px solid rgba(255,255,255,.7); border-radius: 50%; background-color: #b74fbb; background-image: url('/assets/cohesive/flower-badge.svg'), radial-gradient(circle at 30% 22%, #ffd5ef, #a43eac 76%); background-repeat: no-repeat; background-position: center; background-size: 100% 100%, 100% 100%; box-shadow: 0 0 18px rgba(236,72,153,.3), inset 0 0 0 3px rgba(255,255,255,.15); }
.flower-set-reward-art { flex: 0 0 54px; width: 54px; height: 54px; }
.inventory-details {
    flex: 1;
    min-width: 0;
}

.inventory-topline,
.inventory-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.inventory-topline {
    margin-bottom: 10px;
}

.inventory-topline strong {
    flex: 1;
    color: #f8fafc;
    font-size: 1.08rem;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

.inventory-count {
    color: var(--text-muted);
    font-size: 0.8rem;
    white-space: nowrap;
}

.inventory-rarity {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(248, 181, 0, 0.12);
    color: #dbeafe;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.inventory-source {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.inventory-value {
    color: #fef3c7;
    font-weight: 700;
    font-size: 0.88rem;
}

.inventory-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    align-content: start;
    gap: 6px;
    margin: 6px 0 0;
    font-family: Arial, sans-serif;
    line-height: 1.4;
}

.inventory-stats div {
    min-width: 0;
    align-self: start;
    padding: 7px 8px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.28);
}

.inventory-stats dt {
    margin-bottom: 2px;
    color: #f8b500;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.inventory-stats dd {
    margin: 0;
    color: var(--text);
    font-size: 0.84rem;
    overflow-wrap: anywhere;
    line-height: 1.3;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    opacity: 0;
    transform: translateY(18px) scale(0.96);
    animation: revealCard 0.45s ease forwards;
    max-width: 220px;
    margin: 0 auto;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.card-chance {
    width: fit-content;
    margin: 0 auto 4px;
    padding: 5px 9px;
    border: 1px solid rgba(125, 211, 252, .35);
    border-radius: 999px;
    color: #bae6fd;
    background: rgba(8, 47, 73, .58);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-align: center;
}

.card-rarity {
    color: #cbd5e1;
}

.card-value {
    color: #fef3c7;
    font-weight: 700;
}

.card-art {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 110px;
    border-radius: 50%;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin: 14px auto;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    aspect-ratio: 1;
}

.card h3 {
    margin: 0;
    font-size: 1.1rem;
    text-align: center;
}

.card-chance {
    margin-top: 8px;
    font-size: 0.72rem;
    text-align: center;
    color: #dbeafe;
    letter-spacing: 0.04em;
}

.pack-roll-open { overflow:hidden; }
.pack-roll-overlay { position:fixed; z-index:4000; inset:0; display:grid; align-content:center; justify-items:center; gap:clamp(12px,3vh,22px); padding:max(20px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left)); background:rgba(2,6,23,.86); -webkit-backdrop-filter:blur(7px); backdrop-filter:blur(7px); animation:pack-roll-overlay-in .16s ease-out both; }
.pack-roll-heading { color:#f8fafc; font-size:clamp(1.05rem,3.5vw,1.4rem); font-weight:850; line-height:1.25; text-align:center; text-shadow:0 0 16px rgba(192,132,252,.25); }
.pack-roll-stage { display:grid; place-items:center; width:min(100%,320px); min-height:220px; }
.pack-roll-overlay .card { width:min(100%,240px); max-width:240px; }
.pack-roll-overlay.settled .card { border-color:rgba(192,132,252,.55); box-shadow:0 0 28px rgba(168,85,247,.19),0 14px 36px rgba(0,0,0,.32); }
@keyframes pack-roll-overlay-in { from { opacity:0; } to { opacity:1; } }
@media (prefers-reduced-motion:reduce) { .pack-roll-overlay,.mutation-roll-reveal .rolled-mutation-tag,.mutation-roll-reveal .card-art { animation:none; } }

.rarity-common { border-color: rgba(148, 163, 184, 0.45); }

.rarity-uncommon { border-color: rgba(34, 197, 94, 0.55); }

.rarity-rare { border-color: rgba(56, 189, 248, 0.6); }

.rarity-epic { border-color: rgba(167, 139, 250, 0.7); }

.inventory-card.rarity-common,.inventory-card.rarity-uncommon,.inventory-card.rarity-rare,.inventory-card.rarity-epic,.inventory-card.rarity-legendary,.inventory-card.rarity-mythic,.inventory-card.rarity-godly { border-width:1px; border-style:solid; }
.inventory-card.rarity-mythic { border-color:rgba(239,68,68,.72); box-shadow:0 0 16px rgba(239,68,68,.18),0 12px 26px rgba(0,0,0,.16); }
.inventory-card.rarity-godly { border:2px solid transparent; background:linear-gradient(145deg,rgba(30,41,59,.92),rgba(15,23,42,.96)) padding-box,linear-gradient(135deg,#ef4444,#f97316,#facc15,#22c55e,#06b6d4,#3b82f6,#a855f7,#ec4899) border-box; }

.rarity-legendary {
    border-color: rgba(251, 191, 36, 0.8);
}

@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes redFrameFlow {
    to {
        --border-angle: 360deg;
    }
}

@keyframes revealCard {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 640px) {
    #game-area {
        padding: 0;
    }

    .game-panel {
        min-height: max(460px, calc(100dvh - 78px));
        padding: 0 12px 20px;
    }

    .top-bar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        min-width: 0;
        width: 100%;
        gap: 8px;
        padding: max(8px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 8px max(10px, env(safe-area-inset-left));
    }

    .account-menu {
        flex: 1 1 calc(100% - 110px);
        min-width: 0;
        gap: 8px;
        margin-right: 0;
    }

    .account-menu > .username-display {
        min-width: 0;
        max-width: min(52vw, 240px);
        overflow: hidden;
        font-size: clamp(0.86rem, 3.4vw, 1.1rem);
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .account-menu > .username-display[data-player-title="blackjack"],
    .account-menu > .username-display[data-player-title="pokerPro"],
    .account-menu > .username-display[data-player-title="queenOfKings"],
    .account-menu > .username-display[data-player-title="flappyFanatic"] { min-width:0; max-width:min(52vw,240px); overflow:visible; white-space:normal; }

    .account-menu-button {
        width: 40px;
        height: 40px;
    }

    .account-menu-button svg {
        width: 24px;
        height: 24px;
    }

    .daily-rewards-button {
        flex: 0 1 auto;
        min-height: 40px;
        padding: 0 11px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .top-bar > #currency-display { order: 3; }
    .top-bar > .socials-menu { order: 4; margin-left: auto; }

    .controls {
        align-items: flex-start;
        flex-direction: column;
    }

    .currency-display {
        box-sizing: border-box;
        display: inline-flex;
        justify-content: start;
        gap: 6px;
        min-width: 0;
        width: auto;
        padding: 5px 9px;
        border-radius: 14px;
        font-size: 1rem;
    }

    .socials-menu-button { width: 40px; height: 40px; border-radius: 13px; }
    .socials-menu-button svg { width: 23px; height: 23px; }
    .socials-menu-panel { right: 0; width: min(166px, calc(100vw - 24px)); }

    .currency-logo {
        width: 30px;
        height: 30px;
        font-size: 0.72rem;
    }

    .currency-name {
        display: none;
    }

    .primary-button {
        width: 100%;
        min-height: 48px;
        touch-action: manipulation;
    }

    .sets-section {
        padding: 30px 14px 80px;
    }

    .set-card {
        padding: 18px;
    }

    .set-items {
        grid-template-columns: repeat(4, minmax(58px, 1fr));
    }

    .set-reward {
        align-items: flex-start;
    flex-wrap: wrap;
    }

    .reward-points {
        margin-left: 0;
    }

    .set-claim-button {
        width: 100%;
    }

    .pack-purchase {
        width: 100%;
        min-width: 0;
        align-items: stretch;
    }

    .pack-options {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 10px;
    }

    .true-og-pack-purchase { grid-column: 1 / -1; flex-direction: column; }
    .true-og-pack-purchase .true-og-pack-logo,
    .true-og-pack-purchase .primary-button { flex-basis: auto; width: 100%; }

    .pack-logo {
        width: 100%;
        min-height: 72px;
        padding: 8px;
        font-size: 0.92rem;
    }

    .tab-bar {
        width: calc(100% + 32px);
        margin-right: -16px;
        margin-left: -16px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .tab-button {
        min-height: 48px;
        flex: 0 0 auto;
        padding: 9px 4px;
        font-size: .76rem;
        line-height: 1.15;
        touch-action: manipulation;
    }

    .leaderboard-row { grid-template-columns:34px minmax(62px,.8fr) minmax(104px,1.2fr); gap:6px; padding:8px 6px; }
    .credits-list > div { grid-template-columns:1fr; gap:4px; }

    .set-items {
        grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
    }

    .inventory-card {
        align-items: flex-start;
        gap: 12px;
        padding: 12px;
    }

    .inventory-art,
    .inventory-art.rainbow-badge,
    .inventory-art.static-badge {
        width: 56px;
        height: 56px;
    }

    .inventory-art.fire-badge {
        flex-basis: 56px;
    }

    .inventory-art.fire-badge::before {
        inset: -10px -5px 0;
    }

    .inventory-topline,
    .inventory-meta {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 6px 10px;
    }

    .inventory-stats {
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
    }

    .inventory-stats div {
        padding: 8px 9px;
    }
}

@media screen and (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
    #game-area {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .top-bar {
        min-height: 52px;
        padding: max(4px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 4px max(10px, env(safe-area-inset-left));
    }

    .game-panel {
        min-height: max(0px, calc(100dvh - 58px));
        padding: 0 10px 8px;
    }

    .controls {
        align-items: center;
        flex-direction: row;
        gap: 10px;
        margin-bottom: 6px;
    }

    .pack-options {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .pack-purchase {
        min-width: 0;
        gap: 5px;
    }

    .pack-logo {
        min-height: 42px;
        padding: 5px 8px;
        border-width: 2px;
        border-radius: 10px;
        font-size: 0.82rem;
    }

    .pack-purchase .primary-button {
        min-height: 38px;
        padding: 6px 9px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .status-text {
        margin: 0;
        font-size: 0.82rem;
    }

    .pack-grid {
        min-height: 120px;
    }

    .sets-section {
        padding-top: 16px;
    }
}

@media (hover: none) and (pointer: coarse) {
    button {
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    input, select, textarea { min-height:44px; }

    .primary-button:hover {
        transform: none;
    }

    .inventory-art { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
    .inventory-art:active { transform: scale(.96); }
    .tab-button, .index-back-button, .open-index-button, .market-trade-button, .market-request-form button { min-height: 44px; }
}

.updated-site-link-row { margin: -4px 0 14px; text-align: center; }
.updated-site-link { color: #93c5fd; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.updated-site-link:hover { color: #bfdbfe; }

/* Give the hand-built badges the same illustrated, outlined finish as the ore set. */
.inventory-art.static-badge::before, .inventory-art.static-badge::after, .badge-preview-art.static-badge::before, .badge-preview-art.static-badge::after { content: none !important; }
.inventory-art.metalic-badge-art, .badge-preview-art.metalic-badge-art { border:2px solid #b9c5d7 !important; background-image:radial-gradient(ellipse at 20% 50%,rgba(222,151,220,.18),transparent 48%),radial-gradient(ellipse at 48% 3%,rgba(255,255,255,.78),transparent 42%),linear-gradient(90deg,#cdb0d1 0%,#beb8ce 17%,#839cb9 34%,#d3d9e2 45%,#8299b8 57%,#3f5576 73%,#1a2945 100%) !important; box-shadow:inset 0 0 0 2px rgba(255,255,255,.26),inset 0 -9px 16px rgba(8,13,25,.4),0 0 14px rgba(153,174,210,.3) !important; }
.inventory-art.metalic-badge-art::before, .badge-preview-art.metalic-badge-art::before { content:'' !important; position:absolute; z-index:1; inset:-10%; opacity:.85; background:repeating-linear-gradient(166deg,rgba(255,255,255,.32) 0 1px,rgba(17,24,39,.15) 1px 2px,transparent 2px 4px); mix-blend-mode:overlay; }
.inventory-art.metalic-badge-art::after, .badge-preview-art.metalic-badge-art::after { content:'' !important; position:absolute; z-index:2; inset:0; background:linear-gradient(112deg,transparent 20%,rgba(255,255,255,.2) 43%,transparent 59%),linear-gradient(180deg,rgba(255,255,255,.13),transparent 34%,rgba(6,12,27,.17)); pointer-events:none; }
.inventory-art.binary-badge-art, .badge-preview-art.binary-badge-art { background: url('/assets/cohesive/binary.svg') center / 100% 100% no-repeat !important; border: 0 !important; box-shadow: none !important; }
.inventory-art.binary-badge-art::before, .inventory-art.binary-badge-art::after, .badge-preview-art.binary-badge-art::before, .badge-preview-art.binary-badge-art::after { content: none !important; }
.inventory-art.star-badge-art, .badge-preview-art.star-badge-art { background: url('/assets/cohesive/star.svg') center / 100% 100% no-repeat !important; border: 0 !important; box-shadow: none !important; }
.inventory-art.star-badge-art::before, .badge-preview-art.star-badge-art::before { content: none !important; }
.inventory-art.triple-badge-art, .badge-preview-art.triple-badge-art { background: url('/assets/cohesive/triple.svg') center / 100% 100% no-repeat !important; border: 0 !important; box-shadow: none !important; }
.inventory-art.triple-badge-art::before, .inventory-art.triple-badge-art::after, .badge-preview-art.triple-badge-art::before, .badge-preview-art.triple-badge-art::after { content: none !important; }
.inventory-art.triple-badge-art .triple-extra-circle, .badge-preview-art.triple-badge-art .triple-extra-circle { display: none !important; }
.inventory-art.duplicate-badge-art, .badge-preview-art.duplicate-badge-art { background: url('/assets/cohesive/duplicate.svg') center / 100% 100% no-repeat !important; border: 0 !important; box-shadow: none !important; overflow: hidden; }
.inventory-art.duplicate-badge-art::before, .inventory-art.duplicate-badge-art::after, .badge-preview-art.duplicate-badge-art::before, .badge-preview-art.duplicate-badge-art::after { content: none !important; }
.inventory-art.money-badge-art, .badge-preview-art.money-badge-art { background: url('/assets/cohesive/money.svg') center / 100% 100% no-repeat !important; border: 0 !important; box-shadow: none !important; }
.inventory-art.money-badge-art::before, .badge-preview-art.money-badge-art::before { content: none !important; }
.inventory-art.index-checkmark-art, .badge-preview-art.index-checkmark-art { overflow:hidden; background: url('/assets/cohesive/checkmark.svg') center / 100% 100% no-repeat !important; border: 0 !important; box-shadow: none !important; }
.inventory-art.index-checkmark-art::before, .badge-preview-art.index-checkmark-art::before { content: none !important; }
.hour-pack-icon-boat { --hour-pack-svg: url('/assets/cohesive/boat.svg'); }
.hour-pack-icon-kraken { --hour-pack-svg: url('/assets/cohesive/kraken.svg'); }
.arcade-heading,.arcade-ticket-store,.arcade-active-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.arcade-heading { display:block; margin:8px 0 20px; }
.arcade-heading h2 { margin:4px 0; }
.arcade-heading p:last-child,.arcade-ticket-store p { color:#a8bad0; }
.arcade-earn-toast { position:sticky; top:10px; z-index:8; width:max-content; max-width:100%; margin:0 auto 8px; padding:10px 18px; border:1px solid rgba(134,239,172,.55); border-radius:999px; background:linear-gradient(135deg,rgba(20,83,45,.96),rgba(15,23,42,.96)); color:#dcfce7; font-weight:850; box-shadow:0 10px 30px #02061766; opacity:0; transform:translateY(-8px) scale(.96); pointer-events:none; }
.arcade-earn-toast.show { animation:arcade-earn-pop 2.2s ease both; }
@keyframes arcade-earn-pop { 0% { opacity:0; transform:translateY(-8px) scale(.96); } 12%,72% { opacity:1; transform:translateY(0) scale(1); } 100% { opacity:0; transform:translateY(-5px) scale(.98); } }
.arcade-status { min-height:1.3em; margin:8px 0; color:#fde68a; }
.arcade-overview { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:16px; border:1px solid rgba(125,211,252,.25); border-radius:16px; background:linear-gradient(120deg,rgba(14,116,144,.2),rgba(30,41,59,.5)); }
.arcade-overview > div { display:grid; min-width:100px; }
.arcade-overview .arcade-overview-item { display:grid; grid-template-columns:38px auto; align-items:center; column-gap:9px; min-width:148px; }
.arcade-overview-item .arcade-item-icon { grid-row:span 2; }
.arcade-overview-bet { display:grid; gap:5px; color:#cbd5e1; font-size:.8rem; font-weight:750; }
.arcade-overview-bet input,.arcade-wager-panel input { width:100%; min-width:100px; padding:9px 10px; border:1px solid rgba(125,211,252,.36); border-radius:9px; background:#081323; color:#f8fafc; font:700 1rem system-ui; }
.arcade-overview strong { font-size:1.4rem; color:#f8fafc; }
.arcade-overview span { color:#a8bad0; font-size:.8rem; }
.arcade-ticket-store { display:block; margin:18px 0; padding:18px; border:1px solid rgba(148,163,184,.24); border-radius:16px; background:rgba(15,23,42,.66); }
.arcade-ticket-store h3,.arcade-game-select h3 { margin:0 0 4px; }
.arcade-ticket-store p { margin:0 0 12px; font-size:.86rem; }
.arcade-ticket-options { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:10px; }
.arcade-ticket-option { display:grid; grid-template-columns:40px 1fr; align-items:center; gap:10px; padding:14px; border:1px solid rgba(125,211,252,.22); border-radius:14px; background:linear-gradient(145deg,rgba(8,18,35,.92),rgba(15,23,42,.8)); box-shadow:0 8px 20px #02061733; }
.arcade-ticket-option > div { display:grid; gap:4px; }
.arcade-ticket-option button { grid-column:1 / -1; }
.arcade-ticket-option.unavailable { opacity:.78; }
.arcade-ticket-option small { color:#a8bad0; line-height:1.4; }
.arcade-ticket-option select { width:100%; min-width:0; padding:9px; border:1px solid rgba(148,163,184,.35); border-radius:8px; background:#0b1427; color:#f8fafc; }
.arcade-ticket-option button,.arcade-actions button,.arcade-game-stage > button,.arcade-game-cards button { min-height:44px; padding:10px 13px; border:1px solid rgba(56,189,248,.36); border-radius:10px; background:linear-gradient(135deg,#075985,#0369a1); color:white; font:inherit; font-weight:750; cursor:pointer; touch-action:manipulation; }
.arcade-ticket-option button:disabled,.arcade-actions button:disabled { opacity:.48; cursor:not-allowed; }
.arcade-lock { display:grid; justify-items:center; gap:8px; padding:30px 15px; border:1px dashed rgba(148,163,184,.4); border-radius:16px; color:#cbd5e1; text-align:center; }
.arcade-lock[hidden],.arcade-game-select[hidden],.arcade-active-game[hidden] { display:none!important; }
.arcade-lock span { font-size:2rem; }
.arcade-lock strong { font-size:1.2rem; }
.arcade-lock p { margin:0; color:#94a3b8; }
.arcade-game-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(205px,1fr)); gap:12px; margin-top:12px; }
.arcade-game-cards button { display:grid; justify-items:start; gap:9px; min-height:142px; text-align:left; background:linear-gradient(145deg,rgba(8,47,73,.95),rgba(15,23,42,.98)); }
.arcade-game-cards button strong { font-size:1.05rem; color:#bae6fd; }
.arcade-game-cards button span,.arcade-game-cards button small { color:#cbd5e1; font-weight:450; line-height:1.45; }
.arcade-active-game { margin-top:18px; padding:16px; border:1px solid rgba(125,211,252,.26); border-radius:16px; background:rgba(15,23,42,.7); }
.arcade-active-heading { align-items:flex-start; margin-bottom:12px; }
.arcade-active-heading h3,.arcade-active-heading p { margin:0; }
.arcade-active-heading p,.arcade-active-heading > span { color:#a8bad0; font-size:.84rem; }
.arcade-game-stage { display:grid; justify-items:center; gap:12px; width:100%; min-width:0; }
.arcade-game-stage > p { max-width:720px; margin:0; color:#cbd5e1; text-align:center; }
.arcade-glider-canvas { display:block; width:min(100%,720px); height:auto; border:1px solid rgba(148,163,184,.26); border-radius:14px; touch-action:none; user-select:none; box-shadow:0 14px 34px #02061766; }
.arcade-game-hint,.arcade-result { color:#fde68a!important; }
.arcade-table { box-sizing:border-box; display:grid; gap:18px; width:min(100%,760px); min-width:0; padding:20px; border:8px solid #7c4a27; border-radius:42% / 28%; background:radial-gradient(ellipse,#176849,#064e3b 75%); box-shadow:inset 0 0 0 3px rgba(250,204,21,.25),0 10px 24px #020617; }
.arcade-table section,.arcade-rivals article { display:grid; justify-items:center; gap:8px; }
.arcade-table h4 { margin:0; color:#e2e8f0; }
.arcade-rivals { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; width:100%; }
.arcade-rivals article { padding:8px; color:#dbeafe; }
.arcade-rivals article.arcade-player-folded { color:#64748b; opacity:.48; filter:grayscale(1); }
.arcade-rivals article.arcade-player-folded small { color:#64748b; }
.arcade-player-folded .arcade-card { filter:grayscale(1); opacity:.55; }
.arcade-player-seat-folded { color:#64748b!important; opacity:.48; filter:grayscale(1); }
.arcade-player-seat-folded small { color:#64748b!important; }
.arcade-rivals article small,.arcade-table section > small { color:#bfdbfe; font-size:.68rem; text-align:center; }
.arcade-cards { display:flex; justify-content:center; flex-wrap:wrap; gap:6px; min-height:78px; }
.arcade-card { display:grid; align-content:space-between; width:48px; height:68px; padding:6px; border-radius:7px; background:#f8fafc; color:#0f172a; box-shadow:0 2px 5px #02061788; font-weight:800; }
.arcade-card small { justify-self:end; font-size:1.1rem; }
.arcade-card.red { color:#dc2626; }
.arcade-card.back { place-items:center; background:repeating-linear-gradient(45deg,#0e7490,#0e7490 5px,#164e63 5px,#164e63 10px); color:#cffafe; }
.arcade-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:8px; }
.arcade-raise-control { display:grid; align-content:center; gap:4px; min-width:120px; color:#fde68a; font-size:.75rem; font-weight:800; }
.arcade-raise-control input { box-sizing:border-box; width:100%; min-height:44px; padding:8px 10px; border:1px solid rgba(250,204,21,.45); border-radius:9px; background:#081323; color:#f8fafc; font:700 1rem system-ui; }
.arcade-poker-pot { padding:8px 13px; border:1px solid rgba(250,204,21,.55); border-radius:999px; background:rgba(2,6,23,.45); color:#fef3c7; font-size:clamp(.82rem,2.8vw,1rem); text-align:center; }
.arcade-result { min-height:1.3em; color:#fde68a; text-align:center; }
.arcade-card-game-layout { display:grid; grid-template-columns:minmax(0,1fr) 220px; align-items:start; gap:16px; width:100%; }
.arcade-card-game-main { display:grid; justify-items:center; gap:12px; min-width:0; }
.arcade-wager-panel { position:sticky; top:14px; display:grid; justify-items:start; gap:12px; padding:16px; border:1px solid rgba(250,204,21,.35); border-radius:16px; background:linear-gradient(160deg,rgba(30,41,59,.98),rgba(8,18,35,.98)); box-shadow:0 12px 28px #02061766; }
.arcade-wager-panel div { display:grid; gap:3px; }
.arcade-wager-panel small { color:#a8bad0; font-size:.76rem; }
.arcade-wager-panel strong { color:#fef3c7; font-size:1.1rem; }
.arcade-wager-panel label { display:grid; width:100%; gap:6px; color:#cbd5e1; font-size:.82rem; font-weight:750; }
.arcade-wager-panel p { margin:0; color:#94a3b8; font-size:.75rem; line-height:1.45; }
.arcade-item-icon { display:grid; place-items:center; width:40px; height:40px; border-radius:50%; font-size:.78rem; font-weight:950; }
.arcade-item-icon svg { display:block; width:29px; height:29px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.arcade-coin-logo { border:3px solid #fde68a; background:repeating-linear-gradient(135deg,#facc15 0 4px,#e9910d 4px 8px); color:#713f12; box-shadow:inset 0 0 0 3px #b45309aa,0 3px 10px #f59e0b55; }
.arcade-ticket-logo { width:42px; height:34px; border:2px dashed #ede9fe; border-radius:8px; background:linear-gradient(135deg,#a78bfa,#6d28d9 65%,#4c1d95); color:white; box-shadow:inset 0 0 0 2px #ffffff25,0 3px 10px #7c3aed55; }
.arcade-ticket-logo svg { width:30px; height:27px; stroke:#fff; }
.arcade-coin-logo svg { stroke:#fff7cc; }
.arcade-game-cards button { position:relative; overflow:hidden; padding-left:72px; }
.arcade-game-logo { position:absolute; left:17px; top:19px; display:grid; place-items:center; width:40px; height:40px; border:1px solid #ffffff55; border-radius:12px; background:linear-gradient(145deg,#38bdf8,#1d4ed8); color:white; font-size:1.55rem; font-weight:900; box-shadow:0 5px 15px #02061766; }
.arcade-game-logo-bird { color:#fff7b2; background:linear-gradient(145deg,#fbbf24,#ea580c); border-radius:50% 45% 48% 42%; }
.arcade-game-logo-blackjack { color:#fecaca; background:linear-gradient(145deg,#be123c,#7f1d1d); }
.arcade-game-logo-holdem { color:#fda4af; background:linear-gradient(145deg,#fb7185,#9f1239); }
.arcade-game-logo-mines { color:#fde68a; background:linear-gradient(145deg,#475569,#0f172a); }
.arcade-game-logo-sudoku { color:#bae6fd; background:linear-gradient(145deg,#0e7490,#164e63); }
.arcade-cc-logo { border:1px solid #a7f3d0; background:linear-gradient(135deg,#6ee7b7,#047857); color:#052e2b; box-shadow:inset 0 0 0 2px #ffffff25,0 3px 10px #10b98144; }
.arcade-flag-mode { display:flex; align-items:center; gap:8px; color:#cbd5e1; }
.arcade-mines-grid { display:grid; grid-template-columns:repeat(var(--mine-size),minmax(0,1fr)); gap:4px; width:min(100%,560px); }
.arcade-mine-cell { display:grid; place-items:center; aspect-ratio:1; padding:0; border:1px solid #475569; border-radius:6px; background:#1e3a5f; color:#fbbf24; font-size:1rem; font-weight:850; cursor:pointer; }
.arcade-mine-cell.revealed { background:#cbd5e1; color:#0f172a; }
.arcade-mine-cell:not(:disabled):active { background:#93c5fd; border-color:#bfdbfe; transform:scale(.92); transition:transform .08s ease,background .12s ease; }
.arcade-mine-cell.flagged { color:#fb7185; }
.arcade-mines-grid.exploding { animation: mines-explosion-shake .48s ease-out; }
.arcade-mine-cell.exploded { position:relative; z-index:1; background:#ef4444; color:#fff7ed; animation:mines-bomb-detonate .72s ease-out both; }
.arcade-mine-cell.exploded::after { position:absolute; inset:-3px; border:3px solid #fef08a; border-radius:50%; content:""; pointer-events:none; animation:mines-explosion-ring .72s ease-out both; }
@keyframes mines-bomb-detonate { 0% { transform:scale(1); filter:brightness(1); box-shadow:0 0 0 0 #fb923c00; } 22% { transform:scale(1.45); filter:brightness(2.2); box-shadow:0 0 28px 12px #fb923c; } 48% { transform:scale(.82); filter:brightness(1.5); box-shadow:0 0 18px 8px #ef4444; } 100% { transform:scale(1); filter:brightness(1); box-shadow:0 0 8px 2px #ef444488; } }
@keyframes mines-explosion-ring { 0% { opacity:1; transform:scale(.35); } 75% { opacity:.9; } 100% { opacity:0; transform:scale(2.5); } }
@keyframes mines-explosion-shake { 0%,100% { transform:translateX(0); } 18% { transform:translateX(-8px); } 36% { transform:translateX(7px); } 54% { transform:translateX(-5px); } 72% { transform:translateX(3px); } }
.arcade-sudoku-grid { display:grid; grid-template-columns:repeat(9,minmax(0,1fr)); width:min(100%,396px); border:2px solid #7dd3fc; }
.arcade-sudoku-grid input { box-sizing:border-box; width:100%; aspect-ratio:1; min-width:0; padding:0; border:1px solid #64748b; border-radius:0; background:#0b1427; color:#f8fafc; font:700 1rem system-ui; text-align:center; }
.arcade-sudoku-grid input:nth-child(3n) { border-right:2px solid #7dd3fc; }
.arcade-sudoku-grid input:nth-child(n+19):nth-child(-n+27),.arcade-sudoku-grid input:nth-child(n+46):nth-child(-n+54) { border-bottom:2px solid #7dd3fc; }
.arcade-sudoku-grid input:disabled { background:#1e293b; color:#bae6fd; opacity:1; }
.arcade-sudoku-grid input.correct { background:#14532d; color:#bbf7d0; }
.arcade-sudoku-grid input.wrong { background:#7f1d1d; color:#fecaca; }
.arcade-sudoku-status.won { color:#86efac; font-weight:900; }
.arcade-sudoku-status.lost { color:#fca5a5; font-weight:900; }
.inventory-art.winged-badge-art,.badge-preview-art.winged-badge-art,.card-art.winged-badge-art { background:url('/assets/winged-badge.svg?v=2') center / 100% 100% no-repeat!important; border:0!important; box-shadow:none!important; }
.inventory-art.saturn-badge-art,.badge-preview-art.saturn-badge-art,.card-art.saturn-badge-art { background:url('/assets/saturn-badge.svg?v=2') center / 100% 100% no-repeat!important; border:0!important; box-shadow:none!important; }
.inventory-art.void-badge-art { background:radial-gradient(circle at 50% 50%,#111827 0 22%,#a78bfa 24% 28%,transparent 30%),linear-gradient(135deg,#020617,#581c87)!important; }
.arcade-chess-board { display:grid; grid-template-columns:repeat(8,minmax(34px,52px)); border:3px solid #64748b; border-radius:8px; overflow:hidden; }
.arcade-chess-square { display:grid; place-items:center; width:100%; aspect-ratio:1; border:0; font-size:clamp(1.4rem,5vw,2.3rem); cursor:pointer; }
.arcade-chess-square.light { background:#dbeafe; color:#0f172a; }
.arcade-chess-square.dark { background:#334155; color:#f8fafc; }
.arcade-chess-square.piece-white { color:#fff!important; --chess-fill:#fff; --chess-stroke:#334155; }
.arcade-chess-square.piece-black { color:#111827!important; --chess-fill:#111827; --chess-stroke:#f8fafc; }
.arcade-chess-square.empty { -webkit-text-stroke:0; text-shadow:none; }
.arcade-chess-square .chess-piece-glyph { display:grid; place-items:center; width:100%; height:100%; color:var(--chess-fill); -webkit-text-stroke:0; text-shadow:none; }
.chess-piece-glyph svg { display:block; width:82%; height:82%; fill:currentColor; stroke:var(--chess-stroke); stroke-width:1.25; stroke-linejoin:round; }
.arcade-chess-square.selected { box-shadow:inset 0 0 0 4px #facc15; }
.arcade-chess-square.target { background:#22c55e; }
.daily-reward-milestones { display:grid; grid-template-columns:repeat(auto-fit,minmax(135px,1fr)); gap:8px; margin-top:12px; }
.daily-reward-milestone { display:grid; gap:4px; padding:10px 12px; border:1px solid rgba(148,163,184,.18); border-radius:12px; background:linear-gradient(145deg,rgba(30,41,59,.75),rgba(9,15,29,.9)); }
.daily-reward-milestone span { color:#93c5fd; font-size:.76rem; font-weight:800; }
.daily-reward-milestone strong { color:#e2e8f0; font-size:.82rem; }
.daily-reward-milestone.current { border-color:#c084fc; box-shadow:0 0 14px rgba(192,132,252,.15); }
.daily-reward-icon.dedicated-player-reward-icon { display:grid; place-items:center; width:42px; height:42px; border-radius:50%; background:linear-gradient(135deg,#38bdf8,#e2e8f0 48%,#fb7185); color:#0f172a; font-weight:950; }
.arcade-coin-art,.arcade-ticket-art { display:grid!important; place-items:center; background:radial-gradient(circle at 35% 30%,#fef3c7,#f59e0b 54%,#92400e)!important; border:3px solid #fde68a; box-shadow:inset 0 0 0 3px rgba(120,53,15,.42); border-radius:50%!important; color:#431407; font-size:1.05rem; font-weight:950; }
.arcade-coin-art::after { content:"A"; }
.arcade-ticket-art { border-radius:8px!important; background:linear-gradient(135deg,#a78bfa,#6d28d9)!important; border-color:#ddd6fe; color:white; }
.arcade-ticket-art::after { content:"5 PLAY"; font-size:.62rem; }
@media(max-width:760px) { .arcade-card-game-layout { grid-template-columns:minmax(0,1fr); } .arcade-wager-panel { position:static; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; box-sizing:border-box; } .arcade-wager-panel > .arcade-item-icon { grid-row:span 2; } .arcade-wager-panel label,.arcade-wager-panel p { grid-column:1 / -1; } }
@media(max-width:600px) { .arcade-active-game { padding:10px; } .arcade-active-heading { flex-wrap:wrap; } .arcade-table { border-radius:22px; padding:12px 6px; border-width:5px; } .arcade-mines-grid { gap:3px; } .arcade-mine-cell { min-width:0; font-size:.9rem; } .arcade-sudoku-grid input { font-size:.9rem; } .arcade-overview { gap:10px; padding:12px; } .arcade-actions { width:100%; } .arcade-actions button { flex:1 1 auto; min-width:100px; } }

.arcade-action-log { display:grid; gap:5px; width:min(100%,760px); max-height:150px; overflow:auto; box-sizing:border-box; margin:0; padding:10px 12px 10px 34px; border:1px solid rgba(250,204,21,.24); border-radius:10px; background:rgba(2,6,23,.42); color:#cbd5e1; font-size:.82rem; }
.arcade-action-log li::marker { color:#facc15; }


.arcade-seat-active { outline:2px solid #facc15; outline-offset:2px; border-radius:10px; background:rgba(250,204,21,.09); }
.arcade-poker-pot { font-weight:950; letter-spacing:.02em; }
.arcade-poker-center-stats { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px 12px; width:100%; box-sizing:border-box; padding:12px; border:1px solid rgba(250,204,21,.34); border-radius:14px; background:rgba(2,6,23,.52); color:#fef3c7; text-align:center; }
.arcade-poker-center-stats span { color:#dbeafe; font-size:.82rem; font-weight:800; }


.arcade-poker-raise-log { padding:6px 8px; border-radius:7px; background:rgba(250,204,21,.14); color:#fde68a; font-weight:900; }
.arcade-poker-raise-notice { padding:11px 15px; border:2px solid #facc15; border-radius:12px; background:linear-gradient(110deg,rgba(120,53,15,.96),rgba(30,41,59,.96)); color:#fef08a; font-size:1rem; text-align:center; box-shadow:0 0 22px rgba(250,204,21,.52); }
.arcade-rivals article.arcade-poker-raiser { outline:3px solid #facc15; outline-offset:2px; border-radius:10px; background:rgba(250,204,21,.18); box-shadow:0 0 20px rgba(250,204,21,.38); }

/* Keep the give/get sides compact and balanced on wide screens. */
.market-trade-builder { grid-template-columns:minmax(0,1fr) 36px minmax(0,1fr); align-items:start; gap:14px; }
.market-trade-builder-arrow { justify-self:center; transform:none; }
.market-trade-choice { width:100%; box-sizing:border-box; padding:clamp(14px,1.8vw,20px); gap:14px; }
.market-badge-picker-field { width:100%; }
.market-badge-picker { grid-template-columns:minmax(0,1fr); max-height:390px; gap:10px; padding:5px; }
.market-request-form .market-badge-option { grid-template-columns:44px minmax(0,1fr) 70px; gap:9px; min-height:68px; padding:9px 10px; }
.market-request-form .market-badge-option-art .market-badge-art-wrap,
.market-request-form .market-badge-option-art .market-badge-art { width:40px; height:40px; }
.market-request-form .market-badge-option input[type="number"] { width:70px; min-height:40px; }
.market-request-form .market-version-select { width:100%; min-width:0; min-height:36px; margin-top:6px; padding:6px 27px 6px 9px; font-size:.72rem; }
.market-auction-inventory { grid-template-columns:minmax(0,1fr); max-height:600px; gap:14px; padding:7px; }
.market-auction-item { grid-template-columns:58px minmax(0,1fr) 90px; gap:16px; min-height:94px; padding:14px 16px; }
.market-auction-item-art .market-badge-art-wrap,
.market-auction-item-art .market-badge-art { width:54px; height:54px; }
.market-auction-item-copy strong { font-size:.92rem; }
.market-auction-item-copy small { font-size:.78rem; line-height:1.4; }
.market-auction-item input { min-height:46px; }
.market-auction-item-copy .market-version-select { min-height:42px; margin-top:8px; padding:8px 28px 8px 10px; font-size:.75rem; }
.direct-badge-picker { grid-template-columns:minmax(0,1fr); max-height:560px; gap:14px; padding:7px; }
.direct-badge-option { grid-template-columns:56px minmax(0,1fr) 88px; gap:14px; min-height:90px; padding:13px 15px; }
.direct-badge-option-art .market-badge-art-wrap,
.direct-badge-option-art .market-badge-art,
.direct-badge-option-art .inventory-art { width:52px; height:52px; }
.direct-badge-option-copy { gap:6px; }
.direct-badge-option-copy strong { font-size:.88rem; }
.direct-badge-option-copy small { font-size:.76rem; line-height:1.4; }
.direct-badge-option-copy .market-version-select { min-height:42px; margin-top:8px; padding:8px 28px 8px 10px; font-size:.75rem; }

@media (max-width:700px) {
  .market-trade-builder { grid-template-columns:minmax(0,1fr); align-items:stretch; gap:12px; }
  .market-trade-builder-arrow { justify-self:center; transform:rotate(90deg); }
  .market-trade-choice { padding:15px; }
  .market-badge-picker { max-height:340px; }
  .market-request-form .market-badge-option { grid-template-columns:46px minmax(0,1fr) 76px; gap:10px; min-height:82px; padding:11px; }
  .market-request-form .market-badge-option-art .market-badge-art-wrap,
  .market-request-form .market-badge-option-art .market-badge-art { width:44px; height:44px; }
  .market-request-form .market-badge-option input[type="number"] { width:76px; }
  .market-auction-inventory { max-height:500px; }
  .market-auction-item { grid-template-columns:48px minmax(0,1fr) 76px; gap:10px; padding:11px; }
  .market-auction-item-art .market-badge-art-wrap,
  .market-auction-item-art .market-badge-art { width:46px; height:46px; }
  .direct-badge-picker { max-height:48dvh; }
  .direct-badge-option { grid-template-columns:46px minmax(0,1fr) 76px; gap:10px; padding:10px; }
  .direct-badge-option-art .market-badge-art-wrap,
  .direct-badge-option-art .market-badge-art,
  .direct-badge-option-art .inventory-art { width:44px; height:44px; }
}

/* Player name and one compact title chip: suppress all legacy generated title lines. */
.username-display[data-player-title]:not([data-player-title=""]),
.account-screen-username[data-player-title]:not([data-player-title=""]) { display:inline-flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:2px; width:max-content; max-width:min(76vw,360px); min-width:0; padding:0; overflow:visible; border:0; border-radius:0; background:none; box-shadow:none; font-size:inherit; line-height:1.05; text-align:left; white-space:normal; }
.username-display[data-player-title]::before,.username-display[data-player-title]::after,
.account-screen-username[data-player-title]::before,.account-screen-username[data-player-title]::after { display:none !important; content:none !important; animation:none !important; filter:none !important; }
.username-display-name { display:block; width:max-content; max-width:100%; font-size:1em; line-height:1.05; }
.username-title-art { position:relative; display:inline-flex; align-items:center; gap:4px; width:max-content; max-width:100%; min-height:18px; padding:2px 7px 2px 4px; overflow:visible; border:1px solid var(--title-chip-edge); border-radius:7px; background-color:var(--title-chip-bg); color:var(--title-chip-ink); box-shadow:inset 0 1px rgba(255,255,255,.2),0 1px 4px var(--title-chip-glow); font-size:10px; font-weight:1000; letter-spacing:.07em; line-height:1.1; text-shadow:none; }
.username-title-art-label { position:relative; z-index:1; color:var(--title-chip-ink); text-shadow:0 1px 1px rgba(0,0,0,.5); }
.username-display .username-title-art,.account-screen-username .username-title-art { font-size:10px; }
.username-display.admin-player-title .username-display-name,.username-display.dedicated-player-title .username-display-name { background:initial; background-clip:border-box; -webkit-background-clip:border-box; -webkit-text-fill-color:currentColor; animation:none; }
.username-display.admin-player-title .username-title-art::before,.username-display.admin-player-title .username-title-art::after,.username-display.dedicated-player-title .username-title-art::before,.username-display.dedicated-player-title .username-title-art::after { display:none !important; content:none !important; }
.username-title-mark { position:relative; display:block; flex:0 0 19px; width:19px; height:14px; padding:1px; border-radius:5px; background:rgba(255,255,255,.13); box-shadow:inset 0 1px rgba(255,255,255,.24); }
.username-title-art-blackjack { --title-chip-edge:#4ade80; --title-chip-bg:#064e3b; --title-chip-ink:#dcfce7; --title-chip-glow:rgba(34,197,94,.2); background-image:radial-gradient(circle at 18% 50%,rgba(74,222,128,.22),transparent 35%),linear-gradient(110deg,#065f46,#052e16); }
.username-title-art-pokerPro { --title-chip-edge:#fb7185; --title-chip-bg:#881337; --title-chip-ink:#fff1f2; --title-chip-glow:rgba(244,63,94,.2); background-image:linear-gradient(110deg,#9f1239,#4c0519); }
.username-title-art-queenOfKings { --title-chip-edge:#d4d4d8; --title-chip-bg:#27272a; --title-chip-ink:#fafafa; --title-chip-glow:rgba(255,255,255,.17); background-image:repeating-conic-gradient(rgba(255,255,255,.1) 0 25%,rgba(0,0,0,.16) 0 50%); background-size:8px 8px; }
.username-title-art-flappyFanatic { --title-chip-edge:#7dd3fc; --title-chip-bg:#075985; --title-chip-ink:#f0f9ff; --title-chip-glow:rgba(14,165,233,.3); background-image:radial-gradient(ellipse 12px 6px at 12% 52%,rgba(255,255,255,.4) 0 62%,transparent 68%),radial-gradient(ellipse 14px 7px at 26% 46%,rgba(224,242,254,.3) 0 62%,transparent 68%),linear-gradient(110deg,#075985,#0c4a6e 52%,#082f49); }
.username-title-art-dedicated { --title-chip-edge:#7dd3fc; --title-chip-bg:#164e63; --title-chip-ink:#f0f9ff; --title-chip-glow:rgba(56,189,248,.22); background-image:linear-gradient(110deg,#075985,#6b21a8 55%,#9f1239); }
.username-title-art-overlord { --title-chip-edge:#fbbf24; --title-chip-bg:#7e22ce; --title-chip-ink:#fff7cc; --title-chip-glow:rgba(192,132,252,.24); background-image:linear-gradient(110deg,#7c2d12,#7e22ce 55%,#0e7490); }
.username-title-mark-blackjack { background-color:rgba(34,197,94,.2); }
.username-title-mark-pokerPro { flex-basis:22px; width:22px; background-color:rgba(251,113,133,.2); }
.username-title-mark-queenOfKings { background-color:rgba(212,212,216,.2); }
.username-title-mark-flappyFanatic { width:25px; flex-basis:25px; overflow:hidden; background:linear-gradient(#7dd3fc,#38bdf8 58%,#0284c7); box-shadow:inset 0 1px rgba(255,255,255,.65),0 0 7px rgba(56,189,248,.32); }
.username-title-mark-flappyFanatic .username-cloud { bottom:1px; height:5px; background:#fff; box-shadow:0 -3px 0 -1px #e0f2fe,0 1px 3px rgba(7,89,133,.45); }
.username-title-mark-flappyFanatic .username-cloud-1 { left:0; }
.username-title-mark-flappyFanatic .username-cloud-2 { right:0; left:auto; bottom:0; transform:scale(.78); }
.username-flappy-bird { position:absolute; z-index:2; top:2px; left:9px; width:10px; height:8px; border:1px solid #b45309; border-radius:55% 45% 50% 50%; background:radial-gradient(circle at 67% 32%,#fff 0 1px,#1e293b 1.3px 2px,transparent 2.2px),linear-gradient(145deg,#fde047,#f59e0b 72%); box-shadow:0 1px 2px rgba(2,6,23,.55); transform:rotate(-12deg); }
.username-flappy-bird::before { position:absolute; top:2px; right:-4px; width:0; height:0; border-top:2px solid transparent; border-bottom:2px solid transparent; border-left:4px solid #fb7185; content:''; }
.username-flappy-bird::after { position:absolute; bottom:-2px; left:1px; width:6px; height:4px; border-radius:50%; background:#fbbf24; content:''; transform:rotate(25deg); }
.username-title-mark-dedicated { width:19px; flex-basis:19px; background:linear-gradient(135deg,#0284c7 0 46%,#f8fafc 48% 52%,#e11d48 54%); }
.username-dedicated-stripe { position:absolute; inset:2px 1px; border-radius:3px; background:linear-gradient(90deg,rgba(8,47,73,.72),transparent 45%,rgba(136,19,55,.68)); }
.username-dedicated-star { position:absolute; inset:0; color:#fff; font-size:11px; line-height:14px; text-align:center; text-shadow:0 0 3px #0f172a; }
.username-title-mark-overlord { background:linear-gradient(135deg,#fef3c7,#f59e0b 56%,#7c2d12); }
.username-title-mark-dedicated { background-color:rgba(56,189,248,.2); }
.username-title-mark-overlord { background-color:rgba(251,191,36,.2); }
.username-clover-leaf { position:absolute; width:8px; height:8px; border-radius:50%; background:radial-gradient(circle at 30% 25%,#dcfce7,#4ade80 56%,#15803d); box-shadow:0 0 3px rgba(74,222,128,.6); }
.username-clover-leaf-1 { top:1px; left:2px; }.username-clover-leaf-2 { top:1px; right:2px; }.username-clover-leaf-3 { bottom:1px; left:2px; }.username-clover-leaf-4 { right:2px; bottom:1px; }
.username-clover-stem { position:absolute; bottom:-1px; left:9px; width:2px; height:6px; border-radius:2px; background:#86efac; transform:rotate(23deg); }
.username-playing-card { position:absolute; top:0; left:4px; width:9px; height:13px; border:1px solid #fff1f2; border-radius:2px; background:linear-gradient(145deg,#fff 0 70%,#fecdd3); box-shadow:0 1px 2px rgba(0,0,0,.55); transform:rotate(-19deg); }
.username-playing-card::before { position:absolute; top:0; left:1px; color:#be123c; content:attr(data-rank); font-size:6px; font-weight:1000; line-height:1; }
.username-playing-card::after { position:absolute; right:1px; bottom:0; color:#be123c; content:attr(data-suit); font-size:6px; line-height:1; }
.username-playing-card-2 { z-index:2; top:-2px; left:7px; transform:rotate(0deg); }.username-playing-card-3 { left:10px; transform:rotate(19deg); }
.username-crown-points { position:absolute; inset:0 0 4px; border-radius:2px; background:linear-gradient(145deg,#fff 0%,#d4d4d8 36%,#71717a 66%,#f4f4f5 100%); clip-path:polygon(0 0,23% 43%,36% 2%,50% 43%,64% 2%,77% 43%,100% 0,88% 100%,12% 100%); }
.username-crown-band { position:absolute; right:2px; bottom:1px; left:2px; height:5px; border:1px solid #e4e4e7; border-radius:1px 1px 3px 3px; background:linear-gradient(90deg,#27272a,#d4d4d8 28%,#71717a 50%,#d4d4d8 72%,#27272a); }
.username-cloud { position:absolute; bottom:1px; width:10px; height:6px; border-radius:999px; background:#f0f9ff; box-shadow:0 -3px 0 -1px #fff,0 1px 4px rgba(56,189,248,.55); }
.username-cloud-1 { left:0; transform:scale(.76); }.username-cloud-2 { left:5px; bottom:3px; }.username-cloud-3 { right:0; transform:scale(.82); }
.username-bird { position:absolute; top:0; width:8px; height:5px; border-top:1.5px solid #fff; filter:drop-shadow(0 0 2px #0284c7); }
.username-bird::before,.username-bird::after { position:absolute; top:-1px; width:5px; border-top:1.5px solid #fff; content:''; }
.username-bird::before { left:0; transform:rotate(20deg); }.username-bird::after { right:0; transform:rotate(-20deg); }.username-bird-1 { left:3px; }.username-bird-2 { right:0; top:2px; transform:scale(.8); }
.account-screen-username[data-player-title="dedicated"] .username-display-name,.username-display[data-player-title="dedicated"] .username-display-name { color:#bae6fd; background:linear-gradient(90deg,#38bdf8,#f8fafc 50%,#fb7185); background-clip:text; -webkit-background-clip:text; -webkit-text-fill-color:transparent; text-shadow:0 0 8px rgba(56,189,248,.42); }
.account-screen-username[data-player-title="overlord"] .username-display-name,.username-display[data-player-title="overlord"] .username-display-name { color:#fff7cc; background:linear-gradient(105deg,#fff7cc,#fbbf24 20%,#fb7185 38%,#c084fc 56%,#38bdf8 75%,#34d399 90%,#fff7cc); background-size:220% auto; background-clip:text; -webkit-background-clip:text; -webkit-text-fill-color:transparent; text-shadow:0 0 9px rgba(251,191,36,.55),0 0 16px rgba(192,132,252,.32); animation:overlord-name-shine 5s linear infinite; }
@media (max-width:620px) { .username-display[data-player-title]:not([data-player-title=""]) { max-width:min(76vw,330px); }.username-title-art { font-size:9px; } }

/* Give the market a playful harvest look without obscuring trade controls. */
#market-view { position:relative; isolation:isolate; }
#market-view::before { position:absolute; z-index:-1; inset:0; background:radial-gradient(ellipse at 91% 5%,rgba(249,115,22,.2),transparent 20%),radial-gradient(ellipse at 76% 14%,rgba(234,179,8,.1),transparent 28%),url('/assets/halloween-footer.svg') center bottom / min(100%,960px) auto repeat-x; content:''; opacity:.52; pointer-events:none; }
#market-view::after { position:absolute; z-index:0; top:22px; right:clamp(14px,5vw,72px); width:146px; height:42px; background:url('/assets/halloween-leaf.svg') left center/27px 32px no-repeat,url('/assets/halloween-leaf.svg') 42px 8px/19px 23px no-repeat,url('/assets/halloween-leaf.svg') 89px 3px/24px 28px no-repeat; opacity:.72; content:''; pointer-events:none; animation:halloween-market-leaf 4.2s ease-in-out infinite; }
#market-view .market-heading { position:relative; padding:14px 16px 12px; border-left:3px solid #f97316; border-bottom:1px solid rgba(251,146,60,.24); border-radius:0 0 0 12px; background:linear-gradient(100deg,rgba(124,45,18,.13),rgba(15,23,42,0) 72%); }
#market-view .market-heading .section-kicker { color:#fdba74; }
#market-view .market-heading h2 { text-shadow:0 0 18px rgba(249,115,22,.18); }
#market-view .market-subtab { border-color:rgba(251,146,60,.24); transition:background .18s,border-color .18s,transform .18s; }
#market-view .market-subtab:hover { transform:translateY(-2px); border-color:rgba(251,191,36,.62); }
#market-view .market-subtab.active { border-color:#fb923c; background:linear-gradient(120deg,rgba(194,65,12,.3),rgba(120,53,15,.18)); color:#ffedd5; box-shadow:0 4px 15px rgba(234,88,12,.12); }
#market-view .market-request-panel,#market-view .market-auctions-panel,#market-view .market-listing-card { border-color:rgba(251,146,60,.24); box-shadow:0 10px 28px rgba(2,6,23,.13); }
#market-view .market-search-panel,#market-view .market-trade-choice,#market-view .direct-trade-heading,#market-view .direct-online-section,#market-view .direct-session,#market-view .direct-offer-card,#market-view .market-auction-create-panel,#market-view .market-auction-card,#market-view .market-trade-side,#market-view .market-offer-asset,#market-view .market-subtabs { border-color:rgba(251,146,60,.3); }
#market-view .market-request-panel { background:radial-gradient(ellipse at 10% 0%,rgba(234,88,12,.13),transparent 55%),linear-gradient(145deg,rgba(30,25,22,.92),rgba(8,15,31,.96)); }
#market-view .market-trade-give,#market-view .market-trade-get { border-color:rgba(251,146,60,.32); }
#market-view .market-trade-choice-icon,#market-view .market-trade-get .market-trade-choice-icon { border-color:rgba(251,146,60,.4); background:rgba(194,65,12,.16); color:#fdba74; }
#market-view .market-search-panel input:focus,#market-view .market-trade-choice input[type="number"]:focus,#market-view .market-request-form select:focus,#market-view .market-auction-create-controls input:focus,#market-view .market-auction-create-controls select:focus { border-color:#fb923c; box-shadow:0 0 0 3px rgba(249,115,22,.14); }
#market-view .market-post-trade,#market-view .market-trade-button,#market-view .direct-chat-form button,#market-view .market-auction-refresh { border:1px solid rgba(251,146,60,.55); background:linear-gradient(125deg,#9a3412,#ea580c 58%,#a16207); color:#fff7ed; }
#market-view .market-post-trade:hover,#market-view .market-trade-button:hover,#market-view .direct-chat-form button:hover,#market-view .market-auction-refresh:hover { border-color:#fb923c; box-shadow:0 0 18px rgba(234,88,12,.2); }
#market-view .market-create-request { background:linear-gradient(125deg,#c2410c,#ea580c 54%,#a16207); box-shadow:0 5px 14px rgba(234,88,12,.18); }
#market-view .market-create-request:hover { filter:brightness(1.12); transform:translateY(-1px); }
#market-view .market-auctions-panel { background:radial-gradient(ellipse at 4% 0%,rgba(234,88,12,.14),transparent 46%),rgba(9,17,33,.78); }
#market-view .market-auction-create-controls .market-post-trade,#market-view .market-auction-bid-row button { border-color:rgba(251,146,60,.5); background:linear-gradient(125deg,#9a3412,#ea580c 58%,#a16207); }
#halloween-view { position:relative; isolation:isolate; min-height:440px; padding:clamp(18px,4vw,42px); }
.tab-panel#halloween-view.active { display:block; padding:0; }
#halloween-view::before { position:absolute; z-index:-1; inset:0; border-radius:18px; background:radial-gradient(ellipse at 50% 0%,rgba(147,51,234,.14),transparent 45%),radial-gradient(ellipse at 12% 80%,rgba(249,115,22,.13),transparent 33%); content:''; pointer-events:none; }
.halloween-countdown-card { position:relative; box-sizing:border-box; width:min(740px,100%); overflow:hidden; padding:clamp(22px,5vw,44px) clamp(18px,5vw,52px) 0; border:1px solid rgba(251,146,60,.42); border-radius:24px; background:linear-gradient(145deg,rgba(35,25,48,.97),rgba(14,18,31,.98)); text-align:center; box-shadow:0 18px 58px rgba(0,0,0,.32),0 0 34px rgba(249,115,22,.1); }
.halloween-countdown-card .section-kicker { color:#fdba74; letter-spacing:.18em; text-transform:uppercase; }
.halloween-lock-icon { display:grid; place-items:center; width:58px; height:58px; margin:18px auto 12px; border:1px solid rgba(251,146,60,.48); border-radius:18px; background:linear-gradient(145deg,rgba(234,88,12,.23),rgba(88,28,135,.24)); font-size:1.8rem; box-shadow:0 0 22px rgba(249,115,22,.14); }
.halloween-countdown-card h2 { margin:0 0 10px; color:#fff2d8; font-size:clamp(1.45rem,4vw,2.15rem); text-shadow:0 0 18px rgba(249,115,22,.3); }
.halloween-countdown-card > p:not(.section-kicker) { color:#cbd5e1; }
.halloween-countdown { display:inline-block; margin:10px auto 4px; padding:12px 22px; border:1px solid rgba(251,146,60,.56); border-radius:15px; background:linear-gradient(110deg,rgba(124,45,18,.45),rgba(30,20,44,.85),rgba(120,53,15,.32)); color:#ffedd5; font:900 clamp(2rem,8vw,3.5rem)/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.08em; text-shadow:0 0 18px rgba(249,115,22,.45); box-shadow:inset 0 1px rgba(255,255,255,.08),0 0 22px rgba(234,88,12,.12); }
.halloween-countdown-status { min-height:1.5em; color:#fdba74!important; font-weight:750; }
.halloween-countdown-art { display:flex; align-items:flex-end; width:calc(100% + clamp(36px,10vw,104px)); height:clamp(82px,19vw,142px); margin:10px calc(-1 * clamp(18px,5vw,52px)) 0; overflow:hidden; }
.halloween-countdown-art img { width:50%; height:100%; object-fit:cover; object-position:center bottom; opacity:.72; }
#halloween-view.is-unlocked .halloween-countdown { border-color:rgba(74,222,128,.6); color:#dcfce7; text-shadow:0 0 18px rgba(74,222,128,.4); }
#halloween-view.is-unlocked .halloween-lock-icon { border-color:rgba(74,222,128,.56); }
@keyframes halloween-market-leaf { 0%,100% { transform:translateY(0) rotate(-7deg); } 50% { transform:translateY(8px) rotate(12deg); } }
#market-listings-panel,#market-auctions-panel { position:relative; isolation:isolate; }
.halloween-market-bat { position:absolute; z-index:0; width:clamp(48px,7vw,76px); height:auto; opacity:.78; pointer-events:none; filter:drop-shadow(0 3px 7px rgba(249,115,22,.32)); animation:halloween-market-bat-flight 6.8s ease-in-out infinite; }
.halloween-market-bat-public { top:-62px; right:clamp(12px,5vw,70px); }
.halloween-market-bat-auctions { top:20px; right:clamp(12px,5vw,64px); animation-delay:-3.1s; }
@keyframes halloween-market-bat-flight { 0%,100% { transform:translate3d(-18px,5px,0) rotate(-8deg) scale(.9); } 48% { transform:translate3d(16px,-16px,0) rotate(7deg) scale(1.04); } 72% { transform:translate3d(27px,-2px,0) rotate(-2deg) scale(.97); } }
#market-listings-panel .halloween-market-bat-public-two { top:-48px; left:17%; width:clamp(34px,4.7vw,54px); opacity:.55; animation-duration:8.9s; animation-delay:-5.2s; }
#market-listings-panel .halloween-market-bat-public-three { top:-75px; left:57%; width:clamp(30px,4vw,46px); opacity:.5; animation-duration:7.6s; animation-delay:-2.4s; }
#market-auctions-panel .halloween-market-bat-auctions-two { top:76px; left:38%; width:clamp(32px,4.5vw,50px); opacity:.5; animation-duration:8.2s; animation-delay:-1.7s; }
#market-auctions-panel .halloween-market-bat-auctions-three { top:12px; left:9%; width:clamp(28px,3.5vw,42px); opacity:.55; animation-duration:9.1s; animation-delay:-6.4s; }
#market-view .market-auctions-heading,#market-view .market-request-panel { position:relative; }
.halloween-view-bats { position:absolute; z-index:-1; top:28px; right:clamp(26px,8vw,108px); display:flex; align-items:center; gap:28px; pointer-events:none; }
.halloween-view-bats img { width:clamp(32px,5vw,54px); opacity:.58; filter:drop-shadow(0 3px 8px rgba(249,115,22,.28)); animation:halloween-market-bat-flight 7.1s ease-in-out infinite; }
.halloween-view-bats img:nth-child(2) { width:clamp(24px,3.5vw,40px); margin-top:24px; animation-duration:8.6s; animation-delay:-4.5s; }
.halloween-view-bats img:nth-child(3) { width:34px; margin-top:-15px; animation-duration:6.3s; animation-delay:-2.1s; }
#inventory-view,#arcade-view { position:relative; isolation:isolate; }
#inventory-view::before,#arcade-view::before { position:absolute; z-index:-1; top:0; right:0; width:min(48vw,430px); height:230px; border-radius:0 0 0 100%; background:radial-gradient(ellipse at 80% 14%,rgba(249,115,22,.2),transparent 36%),radial-gradient(ellipse at 56% 38%,rgba(234,179,8,.12),transparent 42%); content:''; pointer-events:none; }
#inventory-view::after,#arcade-view::after { position:absolute; z-index:-1; right:0; bottom:0; left:0; height:clamp(86px,15vw,150px); background:linear-gradient(0deg,rgba(15,18,23,.06),transparent),url('/assets/halloween-footer.svg') center bottom / min(100%,820px) auto repeat-x; content:''; opacity:.22; pointer-events:none; }
#inventory-view .inventory-heading h2,#arcade-view .arcade-heading h2 { text-shadow:0 0 20px rgba(249,115,22,.2); }
@media (prefers-reduced-motion:reduce) { .halloween-market-bat { animation:none; } }

/* Halloween event pages unlock as soon as the event clock reaches zero. */
.halloween-event-view { overflow:hidden; }
.halloween-event-view [hidden],.halloween-event-content[hidden],.halloween-page[hidden] { display:none!important; }
.halloween-event-content { position:relative; isolation:isolate; width:100%; max-width:none; min-height:calc(100vh - 72px); box-sizing:border-box; margin:0; padding:clamp(18px,3vw,36px); border:1px solid rgba(251,146,60,.32); border-radius:0; background:radial-gradient(ellipse at 8% 0%,rgba(249,115,22,.13),transparent 35%),radial-gradient(ellipse at 96% 20%,rgba(124,58,237,.14),transparent 32%),linear-gradient(150deg,rgba(21,25,39,.98),rgba(11,15,29,.98)); box-shadow:0 20px 58px rgba(0,0,0,.32),inset 0 1px rgba(255,255,255,.06); }
.halloween-event-heading { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:22px; }
.halloween-event-heading h2 { margin:3px 0 5px; color:#fff7ed; font-size:clamp(1.5rem,4vw,2.15rem); }
.halloween-event-heading p:not(.section-kicker) { margin:0; color:#cbd5e1; }
.halloween-currency-pill { display:flex; align-items:center; gap:10px; flex:0 0 auto; padding:12px 16px; border:1px solid rgba(250,204,21,.42); border-radius:16px; background:linear-gradient(135deg,rgba(120,53,15,.56),rgba(30,25,38,.88)); color:#fef3c7; box-shadow:0 5px 22px rgba(234,88,12,.12); }
.halloween-currency-conversion { display:grid; justify-items:center; gap:6px; padding-left:10px; border-left:1px solid rgba(250,204,21,.22); font-size:.72rem; }
.halloween-currency-conversion button { min-height:32px; padding:5px 10px; font-size:.72rem; }
.halloween-currency-pill span[aria-hidden] { font-size:1.8rem; }
.halloween-page-nav { display:flex; gap:8px; margin:0 0 22px; padding:5px; overflow-x:auto; border:1px solid rgba(255,255,255,.08); border-radius:15px; background:rgba(2,6,23,.42); scrollbar-width:thin; }
.halloween-page-nav button { flex:1 0 auto; min-height:42px; padding:9px 13px; border:1px solid transparent; border-radius:11px; background:transparent; color:#cbd5e1; font:800 .86rem system-ui; cursor:pointer; transition:background .18s ease,color .18s ease,transform .18s ease; }
.halloween-page-nav button:hover { color:#fff7ed; transform:translateY(-1px); }
.halloween-page-nav button.active { border-color:rgba(251,146,60,.42); background:linear-gradient(120deg,rgba(154,52,18,.62),rgba(88,28,135,.45)); color:#fff7ed; box-shadow:0 4px 16px rgba(249,115,22,.12); }
.halloween-page { animation:halloween-page-enter .28s ease both; }
@keyframes halloween-page-enter { from { opacity:0; transform:translateY(7px); } to { opacity:1; transform:translateY(0); } }
.halloween-page-title { display:flex; justify-content:space-between; align-items:center; gap:16px; margin:4px 0 16px; }
.halloween-page-title h3,.halloween-page-title h4 { margin:2px 0; color:#fff7ed; font-size:clamp(1.2rem,3vw,1.65rem); }
.halloween-page-title > span { color:#fdba74; font-size:.8rem; font-weight:800; text-align:right; }
.halloween-page-title p:not(.section-kicker) { margin:6px 0 0; color:#cbd5e1; font-size:.85rem; }
.halloween-packs-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.halloween-feature-pack { display:grid; grid-template-columns:76px minmax(0,1fr); align-items:center; gap:8px 14px; padding:19px; border:1px solid rgba(251,146,60,.24); border-radius:20px; background:radial-gradient(ellipse at 100% 0%,rgba(168,85,247,.13),transparent 42%),linear-gradient(145deg,rgba(35,27,39,.97),rgba(14,19,33,.98)); box-shadow:0 12px 28px rgba(0,0,0,.18); }
.halloween-feature-pack-two { border-color:rgba(192,132,252,.32); background:radial-gradient(ellipse at 0 0,rgba(236,72,153,.14),transparent 40%),linear-gradient(145deg,rgba(31,25,49,.97),rgba(14,19,33,.98)); }
.halloween-pack-icon { display:grid; place-items:center; grid-row:span 2; width:72px; height:72px; border:1px solid rgba(251,146,60,.4); border-radius:21px; background:linear-gradient(145deg,rgba(249,115,22,.22),rgba(124,58,237,.18)); font-size:2.5rem; filter:drop-shadow(0 5px 8px rgba(0,0,0,.35)); }
.halloween-feature-pack h4 { margin:2px 0 5px; color:#fff7ed; font-size:1.2rem; }
.halloween-feature-pack p:not(.section-kicker) { margin:0; color:#cbd5e1; font-size:.82rem; line-height:1.5; }
.halloween-feature-pack > button,.halloween-game-lobby button,.halloween-game-result button,.halloween-boss-button,.halloween-boss-prize button,.halloween-pass-claim { min-height:44px; padding:10px 15px; border:1px solid rgba(251,146,60,.48); border-radius:11px; background:linear-gradient(125deg,#c2410c,#ea580c 60%,#9a3412); color:#fff7ed; font:850 .88rem system-ui; cursor:pointer; box-shadow:0 5px 15px rgba(194,65,12,.22); transition:filter .18s ease,transform .18s ease; }
.halloween-feature-pack > button { grid-column:1/-1; }
.halloween-feature-pack button:hover:not(:disabled),.halloween-game-lobby button:hover:not(:disabled),.halloween-boss-button:hover:not(:disabled),.halloween-pass-claim:hover:not(:disabled) { filter:brightness(1.13); transform:translateY(-1px); }
.halloween-feature-pack button:disabled,.halloween-game-lobby button:disabled,.halloween-boss-button:disabled,.halloween-pass-claim:disabled { filter:saturate(.35); opacity:.5; cursor:not-allowed; }
.halloween-odds-list { display:grid; grid-column:1/-1; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; margin-top:4px; }
.halloween-odds-list > div { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:2px 8px; padding:7px 9px; border:1px solid rgba(255,255,255,.06); border-radius:9px; background:rgba(2,6,23,.3); color:#e2e8f0; font-size:.75rem; }
.halloween-odds-list b { color:#fdba74; }
.halloween-odds-list small { grid-column:1/-1; color:#94a3b8; font-size:.67rem; }
.halloween-page-note { color:#cbd5e1; font-size:.82rem; line-height:1.5; }
.halloween-game-lobby { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
.halloween-game-lobby article { display:grid; justify-items:start; gap:8px; padding:20px; border:1px solid rgba(251,146,60,.23); border-radius:18px; background:linear-gradient(145deg,rgba(40,29,43,.92),rgba(13,20,34,.96)); }
.halloween-game-lobby article > span { font-size:2.2rem; }
.halloween-game-lobby h4 { margin:0; color:#fff7ed; font-size:1.15rem; }
.halloween-game-lobby p { margin:0; color:#cbd5e1; font-size:.84rem; line-height:1.5; }
.halloween-game-lobby button { margin-top:4px; }
.halloween-game-stage { width:min(100%,780px); margin:0 auto; }
.halloween-mini-game { display:grid; justify-items:center; gap:12px; padding:15px; border:1px solid rgba(251,146,60,.28); border-radius:18px; background:linear-gradient(145deg,rgba(35,28,42,.97),rgba(10,18,32,.99)); }
.halloween-mini-game-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; width:100%; color:#fff7ed; }
.halloween-mini-game-head > div { display:grid; gap:3px; }
.halloween-mini-game-head strong { font-size:1.1rem; }
.halloween-mini-game-head small,.halloween-mini-game > p { color:#cbd5e1; font-size:.8rem; }
.halloween-mini-game-head > span,.halloween-mini-game-head > b { padding:8px 11px; border:1px solid rgba(251,146,60,.28); border-radius:10px; background:rgba(2,6,23,.4); color:#fde68a; font-weight:900; font-variant-numeric:tabular-nums; }
.halloween-candy-board { display:grid; grid-template-columns:repeat(6,minmax(36px,1fr)); gap:6px; width:min(100%,420px); padding:10px; border:1px solid rgba(236,72,153,.28); border-radius:16px; background:radial-gradient(circle at 50% 0,rgba(236,72,153,.15),transparent 55%),rgba(2,6,23,.46); }
.halloween-candy-cell { display:grid; place-items:center; aspect-ratio:1; min-width:0; padding:0; border:1px solid rgba(255,255,255,.13); border-radius:12px; background:linear-gradient(145deg,rgba(51,65,85,.92),rgba(15,23,42,.96)); font-size:clamp(1.25rem,5vw,2rem); cursor:pointer; touch-action:manipulation; transition:transform .14s ease,border-color .14s ease,background .14s ease; }
.halloween-candy-cell:hover,.halloween-candy-cell.selected { transform:scale(1.08); border-color:#f9a8d4; background:linear-gradient(145deg,rgba(131,24,67,.68),rgba(30,41,59,.96)); }
.halloween-slice-field { position:relative; width:min(100%,720px); height:clamp(300px,55vw,440px); overflow:hidden; border:1px solid rgba(124,58,237,.33); border-radius:17px; background:radial-gradient(ellipse at 50% 100%,rgba(124,58,237,.2),transparent 48%),linear-gradient(#101a31,#080d1c); touch-action:manipulation; }
.halloween-slice-item { position:absolute; display:grid; place-items:center; width:62px; height:62px; padding:0; border:1px solid rgba(255,255,255,.37); border-radius:50%; background:radial-gradient(circle at 30% 22%,rgba(255,255,255,.4),transparent 40%),linear-gradient(145deg,#fb7185,#db2777); font-size:2rem; cursor:crosshair; touch-action:none; box-shadow:0 6px 16px rgba(0,0,0,.32); animation:halloween-candy-flight var(--flight-duration,1.6s) cubic-bezier(.34,.1,.65,.94) both; }
.halloween-slice-item.bomb { border-color:#fca5a5; background:radial-gradient(circle at 32% 24%,#64748b,#020617 72%); }
@keyframes halloween-candy-flight { 0% { opacity:0; transform:translateY(0) scale(.72) rotate(-18deg); } 12% { opacity:1; } 48% { transform:translateY(calc(-1 * var(--flight-height,210px))) scale(1) rotate(14deg); } 100% { opacity:.9; transform:translateY(0) scale(.88) rotate(34deg); } }
.halloween-slice-item.bomb { animation-name:halloween-candy-flight; }
.halloween-mini-game [data-halloween-end],.halloween-boss-prize button { border:1px solid rgba(148,163,184,.3); border-radius:9px; background:rgba(51,65,85,.75); color:#e2e8f0; padding:9px 14px; font:750 .85rem system-ui; cursor:pointer; }
.halloween-game-result { display:grid; justify-items:center; gap:8px; width:100%; padding:24px; border:1px solid rgba(251,146,60,.32); border-radius:16px; background:radial-gradient(ellipse at 50% 0,rgba(249,115,22,.15),transparent 60%),rgba(2,6,23,.42); color:#e2e8f0; text-align:center; }
.halloween-game-result-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin-top:8px; }
.halloween-game-result > span { font-size:3rem; }
.halloween-game-result h4,.halloween-game-result p { margin:0; }
.halloween-boss-meter,.halloween-pass-meter { width:100%; height:22px; overflow:hidden; border:1px solid rgba(251,146,60,.38); border-radius:999px; background:#090e1b; box-shadow:inset 0 2px 6px rgba(0,0,0,.45); }
.halloween-pumpkin-king-art { display:grid; place-items:center; width:min(100%,320px); height:220px; margin:8px auto 18px; overflow:hidden; border:1px solid rgba(251,146,60,.35); border-radius:24px; background:radial-gradient(ellipse at 50% 72%,rgba(249,115,22,.28),transparent 58%),linear-gradient(160deg,rgba(46,16,31,.9),rgba(10,15,29,.92)); box-shadow:inset 0 1px rgba(255,255,255,.07),0 16px 34px rgba(0,0,0,.26); }
.halloween-pumpkin-king-art img { width:200px; height:200px; object-fit:contain; filter:drop-shadow(0 12px 20px rgba(249,115,22,.28)); animation:pumpkin-king-float 3.6s ease-in-out infinite; }
@keyframes pumpkin-king-float { 50% { transform:translateY(-5px) rotate(1deg); } }
.halloween-boss-meter > div { width:100%; height:100%; border-radius:inherit; background:linear-gradient(90deg,#7f1d1d,#ef4444 52%,#f97316); box-shadow:0 0 18px rgba(239,68,68,.48); transition:width .32s ease; }
.halloween-pass-meter { height:16px; margin:12px 0; }
.halloween-pass-meter > div { width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg,#7c2d12,#f97316 42%,#a855f7); box-shadow:0 0 16px rgba(249,115,22,.4); transition:width .35s ease; }
.halloween-pass-reward { margin:12px 0; color:#fde68a; font-size:.9rem; font-weight:750; }
.halloween-pass-claim { display:block; margin:12px 0 22px; }
.halloween-pass-milestones { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.halloween-boss-button { display:block; min-width:min(100%,300px); margin:18px auto; padding:14px 20px; font-size:1rem; }
.halloween-boss-leaderboard-wrap { margin-top:28px; padding:17px; border:1px solid rgba(251,146,60,.18); border-radius:17px; background:rgba(2,6,23,.32); }
.halloween-boss-leaderboard { display:grid; gap:7px; margin:0; padding:0; list-style:none; }
.halloween-boss-leaderboard li { display:grid; grid-template-columns:42px minmax(0,1fr) auto; align-items:center; gap:10px; padding:10px 12px; border:1px solid rgba(255,255,255,.07); border-radius:10px; background:linear-gradient(100deg,rgba(124,45,18,.16),rgba(15,23,42,.75)); color:#e2e8f0; }
.halloween-boss-leaderboard li > span { color:#fdba74; font-weight:950; }
.halloween-boss-leaderboard li > b { color:#fcd34d; font-size:.83rem; }
.halloween-boss-leaderboard li > b small { display:block; max-width:38ch; margin-top:4px; color:#fed7aa; font-size:.68rem; font-weight:650; line-height:1.35; }
.halloween-boss-empty { grid-template-columns:1fr!important; color:#94a3b8!important; }
.halloween-boss-prize { display:grid; justify-items:center; gap:10px; margin-top:14px; color:#fde68a; text-align:center; }
.halloween-status { min-height:1.35em; color:#fdba74; font-size:.86rem; text-align:center; }
.halloween-quest-list { display:grid; gap:9px; }
.halloween-quest-card { display:grid; grid-template-columns:42px minmax(0,1fr) auto; align-items:center; gap:12px; padding:12px 14px; border:1px solid rgba(255,255,255,.08); border-radius:13px; background:linear-gradient(110deg,rgba(30,41,59,.74),rgba(15,23,42,.83)); }
.halloween-quest-card.ready { border-color:rgba(74,222,128,.34); background:linear-gradient(110deg,rgba(20,83,45,.2),rgba(15,23,42,.85)); }
.halloween-quest-card.claimed { opacity:.64; }
.halloween-quest-mark { display:grid; place-items:center; width:38px; height:38px; border:1px solid rgba(251,146,60,.21); border-radius:12px; background:rgba(249,115,22,.1); font-size:1.25rem; }
.halloween-quest-card > div { display:grid; gap:4px; }
.halloween-quest-card strong { color:#f8fafc; font-size:.88rem; }
.halloween-quest-card small { color:#fdba74; font-size:.75rem; }
.halloween-quest-card button { min-width:78px; min-height:38px; padding:7px 10px; border:1px solid rgba(251,146,60,.36); border-radius:9px; background:rgba(154,52,18,.55); color:#fff7ed; font:800 .78rem system-ui; cursor:pointer; }
.halloween-quest-card button:disabled { opacity:.48; cursor:default; }
.halloween-milestone { display:grid; justify-items:start; gap:5px; min-height:94px; padding:12px; border:1px solid rgba(168,85,247,.22); border-radius:13px; background:linear-gradient(145deg,rgba(88,28,135,.16),rgba(15,23,42,.76)); }
.halloween-milestone.reached { border-color:rgba(250,204,21,.4); background:linear-gradient(145deg,rgba(120,53,15,.25),rgba(15,23,42,.78)); }
.halloween-milestone span { font-size:1.4rem; }
.halloween-milestone strong { color:#fef3c7; font-size:.8rem; }
.halloween-milestone small { color:#cbd5e1; font-size:.72rem; }
.halloween-badge-tag { display:inline-flex; align-items:center; width:max-content; margin:4px 0 7px; padding:4px 9px; border:1px solid rgba(251,146,60,.48); border-radius:999px; background:linear-gradient(110deg,rgba(124,45,18,.48),rgba(88,28,135,.38)); color:#fed7aa; font-size:.66rem; font-weight:950; letter-spacing:.06em; text-transform:uppercase; box-shadow:0 0 12px rgba(249,115,22,.1); }
.halloween-badge-art { position:relative; display:grid!important; place-items:center; overflow:hidden; border:2px solid rgba(255,255,255,.65); background:radial-gradient(circle at 30% 22%,rgba(255,255,255,.43),transparent 34%),var(--halloween-badge-color,linear-gradient(145deg,#fb923c,#7c2d12))!important; box-shadow:inset 0 -12px 20px rgba(2,6,23,.28),0 9px 22px rgba(2,6,23,.35),0 0 18px rgba(249,115,22,.15); }
.halloween-badge-art::after { content:attr(data-badge-icon); font-size:clamp(2.6rem,7vw,4.3rem); filter:drop-shadow(0 5px 3px rgba(2,6,23,.55)); }
.card-art.halloween-badge-art { width:140px!important; height:140px!important; }.inventory-art.halloween-badge-art,.badge-preview-art.halloween-badge-art { box-sizing:border-box; flex:0 0 72px; width:72px; height:72px; min-width:0; min-height:0; margin:0; border-radius:50%; transform:none!important; }
.halloween-badge-art::after { display:block; width:78%; height:78%; content:''; background:var(--halloween-art,none) center / contain no-repeat; font-size:0; filter:drop-shadow(0 4px 4px rgba(2,6,23,.42)); }
.card-art.halloween-badge-art { width:140px!important; height:140px!important; min-width:140px!important; min-height:140px!important; }
.inventory-card .halloween-badge-art { width:72px!important; height:72px!important; min-width:72px!important; min-height:72px!important; margin:0!important; transform:none!important; }
.badge-preview-frame > .badge-preview-art.halloween-badge-art { width:calc(100% - 22px)!important; height:calc(100% - 22px)!important; min-width:0!important; min-height:0!important; margin:auto!important; }
.inventory-card:has(.halloween-badge-art) { display:grid; grid-template-columns:88px minmax(0,1fr); gap:12px; align-items:center; }
.inventory-card .halloween-badge-art { justify-self:center; align-self:center; }
.badge-preview-frame > .badge-preview-art.halloween-badge-art { width:calc(100% - 22px); height:calc(100% - 22px); min-width:0; min-height:0; }
.inventory-art.halloween-art-werewolf::after,.badge-preview-art.halloween-art-werewolf::after { content:''!important; position:absolute; inset:0; font-size:0!important; background:url('/assets/halloween-werewolf.svg') center/contain no-repeat; }
.inventory-art.halloween-art-horseman::after,.badge-preview-art.halloween-art-horseman::after { content:''!important; position:absolute; inset:0; font-size:0!important; background:url('/assets/halloween-horseman.svg') center/contain no-repeat; }
.index-card .inventory-art.halloween-badge-art { cursor:zoom-in; }
.halloween-art-crow::after { content:'🐦‍⬛'; }.halloween-art-scarecrow::after { content:'🌾'; }.halloween-art-spider::after { content:'🕷️'; }.halloween-art-pumpkin::after { content:'🎃'; }.halloween-art-zombie::after { content:'🧟'; }.halloween-art-skeleton::after { content:'💀'; }.halloween-art-werewolf::after { content:'🐺'; }.halloween-art-candy::after { content:'🍬'; }.halloween-art-horseman::after { content:'🐎'; }.halloween-art-jack::after { content:'🎃'; }.halloween-art-clown::after { content:'🤡'; }.halloween-art-goblin::after { content:'👺'; }.halloween-art-bat::after { content:'🦇'; }.halloween-art-ghost::after { content:'👻'; }.halloween-art-corn-maze::after { content:'🌽'; }.halloween-art-black-cat::after { content:'🐈‍⬛'; }.halloween-art-lollipop::after { content:'🍭'; }
.inventory-art.halloween-badge-art::after { font-size:2.2rem; line-height:1; }
.inventory-art.halloween-art-werewolf::after,.inventory-art.halloween-art-horseman::after { background-size:82% 82%; }
.badge-preview-art.halloween-badge-art::after { font-size:clamp(8rem,44vw,18rem); }
@media(max-width:700px) { .halloween-event-content { min-height:calc(100vh - 60px); padding:16px; } .halloween-event-heading { align-items:flex-start; flex-direction:column; } .halloween-currency-pill { align-self:flex-start; } .halloween-packs-grid,.halloween-game-lobby { grid-template-columns:1fr; } .halloween-pass-milestones { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:480px) { .halloween-event-content { min-height:calc(100vh - 56px); padding:13px; } .halloween-page-nav button { min-height:40px; padding:8px 10px; font-size:.78rem; } .halloween-feature-pack { grid-template-columns:54px minmax(0,1fr); gap:8px 11px; padding:13px; } .halloween-pack-icon { width:52px; height:52px; border-radius:15px; font-size:1.8rem; } .halloween-odds-list { grid-template-columns:1fr; } .halloween-page-title { align-items:flex-start; flex-direction:column; } .halloween-page-title > span { text-align:left; } .halloween-quest-card { grid-template-columns:36px minmax(0,1fr) auto; gap:8px; padding:10px; } .halloween-quest-card button { min-width:64px; } .halloween-boss-leaderboard li { grid-template-columns:32px minmax(0,1fr); } .halloween-boss-leaderboard li > b { grid-column:2; } }
@media(prefers-reduced-motion:reduce) { .halloween-page { animation:none; }.halloween-slice-item { animation:none; } }
.inventory-art.halloween-art-werewolf::after,.badge-preview-art.halloween-art-werewolf::after,.inventory-art.halloween-art-horseman::after,.badge-preview-art.halloween-art-horseman::after { content:''!important; font-size:0!important; }


/* Collection reward ribbon and event art refinements. */
.index-rewards { overflow:hidden; }
.index-reward-steps { display:flex; gap:10px; overflow-x:auto; overscroll-behavior-x:contain; padding:2px 2px 10px; scroll-snap-type:x mandatory; scrollbar-width:thin; }
.index-reward-step { flex:0 0 150px; min-width:150px; min-height:94px; scroll-snap-align:start; }

.index-reward-double-check { display:flex; align-items:center; justify-content:center; min-width:45px; height:26px; padding:0 6px; border-radius:8px; background:linear-gradient(145deg,#bbf7d0,#22c55e); color:#052e16; font-size:.85rem; font-weight:1000; letter-spacing:-.12em; }
.index-completion-double { border-color:rgba(56,189,248,.32); background:linear-gradient(145deg,rgba(8,47,73,.62),rgba(2,6,23,.4)); }
.inventory-art.index-checkmark-double-art,.badge-preview-art.index-checkmark-double-art { background:linear-gradient(145deg,#ecfccb,#4ade80 48%,#166534)!important; }
.inventory-art.index-checkmark-double-art::before,.badge-preview-art.index-checkmark-double-art::before { content:none!important; }
.inventory-art.index-checkmark-double-art::after,.badge-preview-art.index-checkmark-double-art::after { content:'\2713  \2713'!important; display:grid; place-items:center; color:#052e16; font-size:clamp(1.7rem,8vw,5.8rem); font-weight:1000; letter-spacing:-.18em; text-shadow:0 1px 0 rgba(255,255,255,.55); }
.halloween-badge-art { border:3px solid rgba(255,255,255,.82); box-shadow:inset 0 -12px 20px rgba(2,6,23,.24),0 0 0 3px rgba(251,146,60,.14),0 8px 22px rgba(2,6,23,.34),0 0 18px rgba(249,115,22,.22); }
.inventory-card.rarity-rare .halloween-badge-art { border-color:#60a5fa; box-shadow:inset 0 -12px 20px rgba(2,6,23,.24),0 0 0 3px rgba(96,165,250,.18),0 0 20px rgba(59,130,246,.22); }
.inventory-card.rarity-epic .halloween-badge-art { border-color:#c084fc; box-shadow:inset 0 -12px 20px rgba(2,6,23,.24),0 0 0 3px rgba(192,132,252,.18),0 0 20px rgba(168,85,247,.23); }
.inventory-card.rarity-legendary .halloween-badge-art { border-color:#fbbf24; box-shadow:inset 0 -12px 20px rgba(2,6,23,.24),0 0 0 3px rgba(251,191,36,.2),0 0 22px rgba(245,158,11,.25); }
.badge-sort-controls { display:flex; align-items:center; gap:9px; margin:12px 0; color:#cbd5e1; font-size:.9rem; }
.badge-sort-controls select,.badge-sort-controls button { min-height:38px; border:1px solid rgba(148,163,184,.32); border-radius:9px; background:#111b2d; color:#f8fafc; padding:7px 10px; font:inherit; }
.badge-sort-controls button { min-width:42px; font-size:1.2rem; font-weight:900; cursor:pointer; }
.inventory-topline .badge-zoom-button { flex:0 0 30px; width:30px; height:30px; border:1px solid rgba(148,163,184,.3); border-radius:9px; background:rgba(15,23,42,.72); color:#cbd5e1; font-size:1.2rem; line-height:1; cursor:pointer; }
.inventory-topline .badge-zoom-button svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
.player-tutorial { position:fixed; z-index:12000; right:20px; bottom:20px; width:min(440px,calc(100vw - 28px)); padding:22px; border:1px solid rgba(125,211,252,.6); border-radius:18px; background:linear-gradient(145deg,#17243a,#0b1220); color:#f8fafc; box-shadow:0 18px 60px rgba(0,0,0,.55); }
.player-tutorial h2 { margin:4px 0 8px; font-size:1.35rem; }
.player-tutorial p:not(.section-kicker) { margin:0; color:#cbd5e1; line-height:1.55; }
.player-tutorial-close { position:absolute; top:9px; right:10px; border:0; background:none; color:#cbd5e1; font-size:1.6rem; cursor:pointer; }
.player-tutorial-actions { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:18px; }
.player-tutorial-actions button { min-height:40px; padding:8px 13px; border:1px solid rgba(148,163,184,.35); border-radius:9px; background:#17243a; color:#e2e8f0; font:inherit; font-weight:750; cursor:pointer; }
.player-tutorial-actions .primary-button { background:linear-gradient(135deg,#0369a1,#2563eb); color:white; }
.player-tutorial-target { position:relative!important; z-index:11001!important; outline:3px solid #facc15!important; outline-offset:4px!important; box-shadow:0 0 0 8px rgba(250,204,21,.18),0 0 25px rgba(250,204,21,.45)!important; }
.halloween-page-nav img,.halloween-pack-icon img,.halloween-lobby-icon,.halloween-currency-icon,.halloween-odds-icon,.halloween-milestone img { object-fit:contain; }
.halloween-page-nav img { width:24px; height:24px; vertical-align:middle; margin-right:6px; }
.halloween-pack-icon img { width:100%; height:100%; padding:9px; }
.halloween-lobby-icon { width:58px; height:58px; margin:0 auto 8px; display:block; }
.halloween-currency-icon { width:38px; height:38px; }
.halloween-odds-icon { width:28px; height:28px; margin-right:7px; vertical-align:middle; }
.halloween-milestone img { width:38px; height:38px; }
.halloween-candy-cell.matched { animation:halloween-candy-pop .22s ease-in both; }
.halloween-candy-cell.falling { animation:halloween-candy-fall .32s cubic-bezier(.2,.75,.35,1) both; }
@keyframes halloween-candy-pop { 50% { transform:scale(1.24); filter:brightness(1.7); } 100% { transform:scale(.25); opacity:0; } }
@keyframes halloween-candy-fall { from { transform:translateY(calc(-1 * var(--fall-distance,100%))); opacity:.35; } to { transform:translateY(0); opacity:1; } }
.halloween-slice-field,.halloween-slice-item { touch-action:none; user-select:none; -webkit-user-select:none; -webkit-tap-highlight-color:transparent; }
.arcade-chess-square.last-from { box-shadow:inset 0 0 0 4px rgba(251,191,36,.72); }
.arcade-chess-square.last-to { box-shadow:inset 0 0 0 5px rgba(34,197,94,.82); }
.arcade-chess-square.last-to .chess-piece-glyph { animation:chess-piece-land .24s ease-out both; }
@keyframes chess-piece-land { from { transform:translateY(-12px) scale(.85); } to { transform:translateY(0) scale(1); } }
.inventory-card:has(.bird-badge-art) { border-width:2px!important; }
.inventory-card.rarity-common:has(.bird-badge-art) { border-color:#64748b!important; }
.inventory-card.rarity-uncommon:has(.bird-badge-art) { border-color:#22c55e!important; }
.inventory-card.rarity-rare:has(.bird-badge-art) { border-color:#3b82f6!important; }
.inventory-card.rarity-epic:has(.bird-badge-art) { border-color:#a855f7!important; }
.inventory-card.rarity-legendary:has(.bird-badge-art) { border-color:#f59e0b!important; }
.inventory-card.rarity-mythic:has(.bird-badge-art) { border-color:#ef4444!important; }
.inventory-card.rarity-godly:has(.bird-badge-art) { border-color:#ec4899!important; }
.badge-rarity-frame:has(.bird-badge-art) { flex-basis:88px!important; width:88px!important; height:88px!important; padding:0!important; border:0!important; border-radius:50%!important; background:none!important; }
.badge-rarity-frame:has(.bird-badge-art) > .bird-badge-art { width:86px!important; height:86px!important; }
.player-title-card-icon img { display:block; width:30px; height:30px; object-fit:contain; }
.username-title-mark-mrHalloween1 img,.username-title-mark-mrHalloween2 img,.username-title-mark-mrHalloween3 img,.username-title-mark-halloweenCrazy img { display:block; width:26px; height:26px; object-fit:contain; }
@media(max-width:600px) { .player-tutorial { right:14px; bottom:14px; padding:18px; } .badge-sort-controls { flex-wrap:wrap; } }
.inventory-art.index-checkmark-double-art,.badge-preview-art.index-checkmark-double-art { background:url('/assets/cohesive/checkmark-double.svg') center/contain no-repeat!important; }
.inventory-art.index-checkmark-double-art::before,.inventory-art.index-checkmark-double-art::after,.badge-preview-art.index-checkmark-double-art::before,.badge-preview-art.index-checkmark-double-art::after { content:none!important; display:none!important; }
.inventory-card.rarity-mythic .halloween-badge-art,.inventory-card.rarity-godly .halloween-badge-art { border-color:#fb7185; box-shadow:inset 0 -12px 20px rgba(2,6,23,.24),0 0 0 3px rgba(251,113,133,.2),0 0 22px rgba(239,68,68,.26); }
.bird-pack-species-rarity { color:#dbeafe; }
.bird-pack-species-card.rarity-godly .bird-pack-species-rarity { color:#fecaca; }
.bird-pack-species-card.rarity-legendary .bird-pack-species-rarity { color:#fde68a; }
@media(max-width:600px){.index-reward-step{flex-basis:138px;min-width:138px;}}

/* Bird Pack badges use the same clear portrait scale as the pack reveals. */
.inventory-card:has(.bird-badge-art) { gap:16px; padding:17px; border-color:rgba(125,211,252,.22); background:radial-gradient(ellipse at 0 0,rgba(56,189,248,.09),transparent 45%),linear-gradient(145deg,rgba(24,39,61,.96),rgba(9,15,29,.98)); }
.badge-rarity-frame:has(.bird-badge-art) { flex-basis:100px; width:100px; height:100px; border-radius:50%; padding:4px; }
.badge-rarity-frame:has(.bird-badge-art) > .bird-badge-art { flex:none; width:86px; height:86px; border-radius:50%; }
.badge-rarity-frame.rarity-rare:has(.bird-badge-art) { background:linear-gradient(145deg,#60a5fa,#172554); }
.badge-rarity-frame.rarity-epic:has(.bird-badge-art) { background:linear-gradient(145deg,#c084fc,#3b0764); }
.badge-rarity-frame.rarity-legendary:has(.bird-badge-art) { background:linear-gradient(145deg,#fbbf24,#78350f); }
.badge-rarity-frame.rarity-godly:has(.bird-badge-art) { background:conic-gradient(#ef4444,#f97316,#facc15,#22c55e,#06b6d4,#3b82f6,#a855f7,#ef4444); }
@media(max-width:600px){.inventory-card:has(.bird-badge-art){gap:10px;padding:12px}.badge-rarity-frame:has(.bird-badge-art){flex-basis:82px;width:82px;height:82px}.badge-rarity-frame:has(.bird-badge-art)>.bird-badge-art{width:70px;height:70px}}
.halloween-mini-game [data-halloween-leave] { margin-left:8px; border:1px solid rgba(251,146,60,.38); border-radius:9px; background:rgba(124,45,18,.22); color:#fed7aa; padding:9px 14px; font:750 .85rem system-ui; cursor:pointer; }
.halloween-mini-game [data-halloween-leave]:hover { border-color:rgba(251,146,60,.7); background:rgba(124,45,18,.42); }


/* Badge artwork: transparent bird cutouts over individual pack colors. */
.bird-badge-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #d8f0f2, #9fc9cf 66%, #63858f) !important;
  border: 5px solid #263341 !important;
  box-shadow: inset 0 0 0 3px rgba(225,241,244,.72), 0 3px 8px rgba(0,0,0,.42) !important;
}
.bird-badge-art::before {
  position: absolute;
  z-index: 1;
  inset: 3%;
  border: 2px solid rgba(255,255,255,.38);
  border-radius: 50%;
  content: '' !important;
  pointer-events: none;
}
.bird-badge-art::after {
  position: absolute;
  z-index: 0;
  inset: 12%;
  content: '' !important;
  background-image: var(--bird-image) !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  filter: drop-shadow(0 2px 2px rgba(2,6,23,.36));
}
.market-rarity-frame .bird-badge-art::after {
  background-position: center !important;
  background-size: contain !important;
}
.halloween-badge-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #d8f0f2, #9fc9cf 66%, #63858f) !important;
  border: 5px solid #263341 !important;
  box-shadow: inset 0 0 0 3px rgba(225,241,244,.72), 0 3px 8px rgba(0,0,0,.42) !important;
}
#buy-halloween-candy-corn {
  border: 1px solid rgba(250,204,21,.52);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(251,146,60,.2);
  color: #fef3c7;
  font: 750 .82rem system-ui, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}
#buy-halloween-candy-corn:hover:not(:disabled) { background: rgba(251,146,60,.34); }
#buy-halloween-candy-corn:disabled { opacity: .5; cursor: not-allowed; }
.halloween-badge-art::after {
  position: absolute;
  inset: 12%;
  display: block;
  width: auto;
  height: auto;
  content: '' !important;
  background-image: var(--halloween-art) !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  font-size: 0 !important;
  line-height: 0 !important;
}
.inventory-art.halloween-badge-art::after,
.badge-preview-art.halloween-badge-art::after,
.card-art.halloween-badge-art::after {
  inset: 12% !important;
  background-image: var(--halloween-art) !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
}
.inventory-card:has(.bird-badge-art) { border-width:2px!important; }
.inventory-card.rarity-common:has(.bird-badge-art) { border-color:#64748b!important; }
.inventory-card.rarity-uncommon:has(.bird-badge-art) { border-color:#22c55e!important; }
.inventory-card.rarity-rare:has(.bird-badge-art) { border-color:#3b82f6!important; }
.inventory-card.rarity-epic:has(.bird-badge-art) { border-color:#a855f7!important; }
.inventory-card.rarity-legendary:has(.bird-badge-art) { border-color:#f59e0b!important; }
.inventory-card.rarity-mythic:has(.bird-badge-art) { border-color:#ef4444!important; }
.inventory-card.rarity-godly:has(.bird-badge-art) { border-color:#ec4899!important; }
.badge-rarity-frame:has(.bird-badge-art) { flex-basis:88px!important; width:88px!important; height:88px!important; padding:0!important; border:0!important; border-radius:50%!important; background:none!important; }
.badge-rarity-frame:has(.bird-badge-art) > .bird-badge-art { width:86px!important; height:86px!important; }
.player-title-card-icon img { display:block; width:30px; height:30px; object-fit:contain; }
.username-title-mark-mrHalloween1 img,.username-title-mark-mrHalloween2 img,.username-title-mark-mrHalloween3 img,.username-title-mark-halloweenCrazy img { display:block; width:26px; height:26px; object-fit:contain; }
.halloween-candy-cell img { width:72%; height:72%; pointer-events:none; object-fit:contain; }
.halloween-slice-item img { width:82%; height:82%; pointer-events:none; object-fit:contain; }
.halloween-result-icon { width:74px; height:74px; object-fit:contain; }
.inventory-card:has(.bird-badge-art) { border-width:2px!important; }
.inventory-card.rarity-common:has(.bird-badge-art) { border-color:#64748b!important; }
.inventory-card.rarity-uncommon:has(.bird-badge-art) { border-color:#22c55e!important; }
.inventory-card.rarity-rare:has(.bird-badge-art) { border-color:#3b82f6!important; }
.inventory-card.rarity-epic:has(.bird-badge-art) { border-color:#a855f7!important; }
.inventory-card.rarity-legendary:has(.bird-badge-art) { border-color:#f59e0b!important; }
.inventory-card.rarity-mythic:has(.bird-badge-art) { border-color:#ef4444!important; }
.inventory-card.rarity-godly:has(.bird-badge-art) { border-color:#ec4899!important; }
.badge-rarity-frame:has(.bird-badge-art) { flex-basis:88px!important; width:88px!important; height:88px!important; padding:0!important; border:0!important; border-radius:50%!important; background:none!important; }
.badge-rarity-frame:has(.bird-badge-art) > .bird-badge-art { width:86px!important; height:86px!important; }
.bird-badge-art > .bird-badge-species-image { position:absolute; z-index:2; inset:8%; width:84%; height:84%; object-fit:contain; pointer-events:none; user-select:none; }
.bird-badge-art:has(> .bird-badge-species-image)::after { display:none!important; content:none!important; }
.market-rarity-frame.rarity-common,.badge-rarity-frame.rarity-common { border-color:#64748b!important; }
.market-rarity-frame.rarity-uncommon,.badge-rarity-frame.rarity-uncommon { border-color:#22c55e!important; }
.market-rarity-frame.rarity-rare,.badge-rarity-frame.rarity-rare { border-color:#3b82f6!important; }
.market-rarity-frame.rarity-epic,.badge-rarity-frame.rarity-epic { border-color:#a855f7!important; }
.market-rarity-frame.rarity-legendary,.badge-rarity-frame.rarity-legendary { border-color:#f59e0b!important; }
.market-rarity-frame.rarity-mythic,.badge-rarity-frame.rarity-mythic { border-color:#ef4444!important; }
.market-rarity-frame.rarity-godly,.badge-rarity-frame.rarity-godly { border-color:#ec4899!important; }
.market-rarity-frame.rarity-godly,.badge-rarity-frame.rarity-godly { background:#ec4899!important; }
.market-rarity-frame:has(.bird-badge-art) { border-width:2px!important; border-style:solid!important; border-radius:9px!important; background:rgba(15,23,42,.32)!important; padding:2px!important; }
.inventory-card:has(.bird-badge-art) { border-color:var(--rarity-color,#64748b)!important; }
.inventory-card.rarity-common:has(.bird-badge-art) { --rarity-color:#64748b; }
.inventory-card.rarity-uncommon:has(.bird-badge-art) { --rarity-color:#22c55e; }
.inventory-card.rarity-rare:has(.bird-badge-art) { --rarity-color:#3b82f6; }
.inventory-card.rarity-epic:has(.bird-badge-art) { --rarity-color:#a855f7; }
.inventory-card.rarity-legendary:has(.bird-badge-art) { --rarity-color:#f59e0b; }
.inventory-card.rarity-mythic:has(.bird-badge-art) { --rarity-color:#ef4444; }
.inventory-card.rarity-godly:has(.bird-badge-art) { --rarity-color:#ec4899; }
.username-title-art-mrHalloween1,.username-title-art-mrHalloween2,.username-title-art-mrHalloween3 { position:relative; border-color:transparent!important; background:transparent!important; color:#ffad42!important; text-shadow:0 1px 0 #7c2d12,0 0 10px rgba(249,115,22,.55); }
.username-title-mark-mrHalloween1,.username-title-mark-mrHalloween2,.username-title-mark-mrHalloween3 { position:absolute!important; z-index:2; top:-17px!important; left:50%!important; right:auto!important; width:26px!important; height:26px!important; padding:0!important; transform:translateX(-50%); border-radius:50%!important; background:transparent!important; box-shadow:none!important; }
.username-title-mark-mrHalloween1 img,.username-title-mark-mrHalloween2 img,.username-title-mark-mrHalloween3 img { width:26px!important; height:26px!important; filter:drop-shadow(0 2px 3px #111827); }
.username-title-art-mrHalloween1,.username-title-art-mrHalloween2,.username-title-art-mrHalloween3 { margin-top:0; }
.username-title-art-halloweenCrazy { border-color:transparent!important; background:transparent!important; color:#ff4545!important; font-family:Impact,'Arial Black',sans-serif!important; letter-spacing:.075em; text-shadow:0 1px 0 #450a0a,0 0 8px rgba(220,38,38,.8); }
.username-title-mark-halloweenCrazy img { filter:drop-shadow(0 0 5px #ef4444) saturate(1.5); }
.username-title-art-halloweenCrazy .username-title-art-label { position:relative; color:#fff0f0!important; font-family:Impact,'Arial Black',fantasy!important; font-weight:1000; letter-spacing:.09em; -webkit-text-stroke:.25px #6f0612; text-shadow:0 1px 0 #4b0710,0 0 5px #ef233c,0 0 10px rgba(239,35,60,.6); }
.username-title-art-halloweenCrazy .username-title-art-label::after { position:absolute; z-index:2; top:calc(100% - 1px); left:3%; width:94%; height:8px; content:''; background:linear-gradient(180deg,#e11d32 0%,#a30d20 68%,#5f0714 100%); clip-path:polygon(0 0,100% 0,100% 35%,91% 35%,89% 100%,85% 100%,83% 35%,69% 35%,67% 78%,63% 78%,61% 35%,46% 35%,44% 100%,40% 100%,38% 35%,23% 35%,21% 82%,17% 82%,15% 35%,0 35%); filter:drop-shadow(0 2px 2px rgba(45,0,6,.8)); }
.username-display-name.username-display-name-mrHalloween1,.username-display-name.username-display-name-mrHalloween2,.username-display-name.username-display-name-mrHalloween3 { position:relative; margin-top:13px; color:#ffad42!important; font-weight:1000; text-shadow:0 1px 0 #7c2d12,0 0 10px rgba(249,115,22,.65); }
.username-display-name.username-display-name-mrHalloween1::before,.username-display-name.username-display-name-mrHalloween2::before,.username-display-name.username-display-name-mrHalloween3::before { position:absolute; z-index:2; left:50%; bottom:calc(100% - 7px); width:24px; height:24px; content:''; background:url('/assets/halloween/halloween-pumpkin.svg') center/contain no-repeat; transform:translateX(-50%); filter:drop-shadow(0 2px 3px #111827); }
.username-display-name.username-display-name-halloweenCrazy { position:relative; display:inline-block; padding-bottom:9px; color:#fff0f0!important; font-family:Impact,'Arial Black',fantasy!important; font-weight:1000; letter-spacing:.045em; -webkit-text-stroke:.35px #6f0612; text-shadow:0 1px 0 #4b0710,0 0 5px #ef233c,0 0 10px rgba(239,35,60,.7); }
.username-display-name.username-display-name-halloweenCrazy::after { position:absolute; z-index:2; top:calc(100% - 10px); left:2%; width:96%; height:9px; content:''; background:linear-gradient(180deg,#e11d32 0%,#a30d20 68%,#5f0714 100%); clip-path:polygon(0 0,100% 0,100% 35%,91% 35%,89% 100%,85% 100%,83% 35%,69% 35%,67% 78%,63% 78%,61% 35%,46% 35%,44% 100%,40% 100%,38% 35%,23% 35%,21% 82%,17% 82%,15% 35%,0 35%); filter:drop-shadow(0 2px 2px rgba(45,0,6,.8)); }
.badge-rarity-frame { border:0!important; border-radius:0!important; background:transparent!important; box-shadow:none!important; }
.badge-rarity-frame > .inventory-art { border:0!important; outline:0!important; box-shadow:none!important; }
.inventory-card.rarity-godly { border:2px solid transparent!important; background:linear-gradient(135deg,rgba(24,39,61,.96),rgba(8,15,30,.98)) padding-box,linear-gradient(135deg,#ff273a 0%,#ff8a00 15%,#fff000 30%,#20e35b 45%,#00d9ff 60%,#2968ff 75%,#a83dff 88%,#ff38bb 100%) border-box!important; }
.inventory-card.rarity-godly:has(.bird-badge-art) { --rarity-color:transparent; }
.inventory-card.rarity-godly:has(.bird-badge-art) { border:2px solid transparent!important; background:linear-gradient(135deg,rgba(24,39,61,.96),rgba(8,15,30,.98)) padding-box,linear-gradient(135deg,#ff273a 0%,#ff8a00 15%,#fff000 30%,#20e35b 45%,#00d9ff 60%,#2968ff 75%,#a83dff 88%,#ff38bb 100%) border-box!important; }
.market-rarity-frame.rarity-godly,.badge-rarity-frame.rarity-godly { border:3px solid transparent!important; border-radius:12px!important; background:linear-gradient(135deg,#ff273a 0%,#ff8a00 15%,#fff000 30%,#20e35b 45%,#00d9ff 60%,#2968ff 75%,#a83dff 88%,#ff38bb 100%) border-box!important; }
.market-rarity-frame.rarity-godly > .market-badge-art-wrap,.market-rarity-frame.rarity-godly > .inventory-art { border-radius:9px; background:#0d1728; }
.badge-rarity-frame.rarity-common,.badge-rarity-frame.rarity-uncommon,.badge-rarity-frame.rarity-rare,.badge-rarity-frame.rarity-epic,.badge-rarity-frame.rarity-legendary,.badge-rarity-frame.rarity-mythic { border:0!important; border-radius:0!important; background:transparent!important; box-shadow:none!important; }
.username-title-art { flex:0 0 auto; flex-wrap:nowrap; align-self:flex-start; min-height:20px; line-height:1.2; }
.username-title-mark { flex:0 0 19px; min-width:19px; }
.username-title-art-label { display:inline-block; flex:0 1 auto; line-height:1.2; white-space:nowrap; }
.username-title-mark-mrHalloween1,.username-title-mark-mrHalloween2,.username-title-mark-mrHalloween3,.username-title-mark-halloweenCrazy { display:none!important; }
.username-display-name.username-display-name-mrHalloween1,.username-display-name.username-display-name-mrHalloween2,.username-display-name.username-display-name-mrHalloween3 { padding-top:13px; margin-top:0; }
.username-display-name.username-display-name-halloweenCrazy { padding-bottom:12px; }


/* Show rarity on the rectangular card outline, not around the badge artwork. */
.inventory-card.rarity-common,.inventory-card.rarity-uncommon,.inventory-card.rarity-rare,.inventory-card.rarity-epic,.inventory-card.rarity-legendary,.inventory-card.rarity-mythic,.inventory-card.rarity-godly { border-width:2px!important; border-style:solid!important; }
.inventory-card.rarity-common { border-color:#64748b!important; }
.inventory-card.rarity-uncommon { border-color:#22c55e!important; }
.inventory-card.rarity-rare { border-color:#3b82f6!important; }
.inventory-card.rarity-epic { border-color:#a855f7!important; }
.inventory-card.rarity-legendary { border-color:#f59e0b!important; }
.inventory-card.rarity-mythic { border-color:#ef4444!important; }
.inventory-card.rarity-godly,.inventory-card.rarity-godly:has(.bird-badge-art) { border:2px solid #ec4899!important; background:linear-gradient(145deg,rgba(30,41,59,.92),rgba(15,23,42,.96)) padding-box!important; }
.badge-rarity-frame,.market-rarity-frame { border:0!important; border-radius:0!important; background:transparent!important; box-shadow:none!important; outline:0!important; padding:0!important; }
.badge-rarity-frame > .inventory-art { border:0!important; outline:0!important; box-shadow:none!important; }
.market-rarity-frame > .market-badge-art-wrap { border:0!important; border-radius:0!important; background:transparent!important; box-shadow:none!important; }
.market-rarity-frame .market-badge-art { outline:0!important; box-shadow:none!important; }

/* Godly rarity stays on the card rectangle; clear its old badge-level rainbow frame. */
.badge-rarity-frame.rarity-godly,.market-rarity-frame.rarity-godly { border:0!important; border-radius:0!important; background:transparent!important; background-image:none!important; box-shadow:none!important; outline:0!important; }
.badge-rarity-frame.rarity-godly:has(.bird-badge-art) { background:transparent!important; background-image:none!important; }
.market-rarity-frame.rarity-godly > .market-badge-art-wrap,.market-rarity-frame.rarity-godly > .inventory-art { border:0!important; border-radius:0!important; background:transparent!important; background-image:none!important; box-shadow:none!important; }

/* Make a successful mutation unmistakable in the pack reveal. */
.mutation-roll-banner { display:flex; align-items:center; justify-content:center; gap:6px; width:100%; box-sizing:border-box; margin:10px 0 8px; padding:11px 12px; border:2px solid #f0abfc; border-radius:12px; background:linear-gradient(100deg,rgba(126,34,206,.48),rgba(30,64,175,.42)); color:#fff; text-align:center; font-size:.9rem; line-height:1.35; font-weight:950; letter-spacing:.025em; text-shadow:0 1px 3px #3b0764; box-shadow:0 0 20px rgba(192,132,252,.34); animation:mutation-reveal-pop .72s cubic-bezier(.2,.9,.25,1.25) both; }

.change-password-toggle-button { display:block; width:100%; margin:8px 0 0; }
.player-title-picker { display:grid; gap:8px; }
.equipped-player-title-label { margin:0; color:#fef3c7; font-weight:800; }
.player-title-select { width:100%; min-height:42px; padding:8px 10px; border:1px solid rgba(250,204,21,.4); border-radius:10px; background:#111827; color:#fff; font:inherit; }

/* Rare flying ghosts glow and become clickable for the hidden Sneaky Ghost badge. */
.halloween-ghost-flight.sneaky-ghost-active { pointer-events:auto; cursor:pointer; z-index:20; opacity:1; scale:1.24; filter:brightness(1.45) saturate(1.6) drop-shadow(0 0 8px #fef08a) drop-shadow(0 0 18px #c084fc); transition:scale .18s ease, filter .18s ease, opacity .18s ease; }
.halloween-ghost-flight.sneaky-ghost-active:hover, .halloween-ghost-flight.sneaky-ghost-active:focus-visible { scale:1.42; filter:brightness(1.7) saturate(1.8) drop-shadow(0 0 12px #fff) drop-shadow(0 0 24px #facc15); outline:2px solid #fef08a; outline-offset:4px; }

/* Keep marketplace trade cards balanced at desktop widths. */
.market-bot-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); justify-content: center; align-items: stretch; }
.market-bot-card { box-sizing: border-box; width: 100%; max-width: 660px; justify-self: center; min-width: 0; }
.market-trade-pair { grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr); align-items: stretch; }
.market-trade-arrow { width: 38px; text-align: center; }
.market-player-listing-status { box-sizing: border-box; max-width: 100%; overflow-wrap: anywhere; line-height: 1.35; }
.market-player-listing-tag { max-width: 100%; overflow-wrap: anywhere; }

/* Keep set reward art visible and the check marks in collection rewards aligned. */
.megagon-set-card .set-item .set-art { opacity: .78; }
.megagon-set-card .set-item.owned .set-art { opacity: 1; }
.megagon-reward-art { flex:0 0 54px; width:54px; height:54px; }
.index-reward-check { width:26px; height:26px; border-radius:50%; font-family:Arial,sans-serif; font-size:1rem; font-weight:800; line-height:1; }
.index-reward-double-check { border-radius:999px; letter-spacing:0; font-family:Arial,sans-serif; font-weight:800; }
.set-check { font-family:Arial,sans-serif; font-size:.78rem; font-weight:800; line-height:1; }

.market-badge-option-copy [data-version-tag], .direct-badge-option-copy [data-version-tag], .market-auction-item-copy [data-version-tag] { display:block; min-height:0; }
.market-badge-option-copy .halloween-badge-tag, .direct-badge-option-copy .halloween-badge-tag, .market-auction-item-copy .halloween-badge-tag { margin:3px 0 0; padding:2px 7px; font-size:.58rem; }

/* Keep all badge art the same size and give it a quiet dark outline. */
.inventory-art, .badge-preview-art, .market-badge-art { box-sizing:border-box; border:1px solid #4b5563 !important; }
.badge-rarity-frame:has(.bird-badge-art) { flex:0 0 88px!important; width:88px!important; height:88px!important; padding:0!important; border:0!important; border-radius:12px!important; background:none!important; }
.badge-rarity-frame:has(.bird-badge-art) > .bird-badge-art { flex:0 0 72px!important; width:72px!important; height:72px!important; border-radius:50%!important; }
.halloween-badge-art { isolation:isolate; overflow:hidden!important; }
.halloween-badge-art::after { z-index:1; background-position:center!important; background-repeat:no-repeat!important; background-size:contain!important; }
.inventory-art.halloween-badge-art::after, .badge-preview-art.halloween-badge-art::after, .card-art.halloween-badge-art::after { inset:12%!important; }
.inventory-art.halloween-art-sneaky-ghost { border-color:#4b5563!important; background:radial-gradient(circle at 50% 45%,#e0f2fe 0,#a78bfa 48%,#312e81 100%)!important; box-shadow:inset 0 0 0 2px rgba(224,242,254,.38),0 0 13px rgba(167,139,250,.35)!important; }
.halloween-art-sneaky-ghost::before { position:absolute; z-index:2; top:5%; right:6%; display:grid; width:24%; height:24%; place-items:center; border:1px solid rgba(255,255,255,.65); border-radius:50%; background:linear-gradient(145deg,#f0abfc,#7c3aed); color:#fff; content:'✦'; font:800 .72rem/1 Arial,sans-serif; box-shadow:0 0 9px rgba(196,181,253,.7); }
.halloween-art-sneaky-ghost::after { filter:hue-rotate(35deg) drop-shadow(0 0 5px #c4b5fd)!important; }

/* Mark every Halloween badge with a small pumpkin corner chip. */
.halloween-badge-art { position:relative!important; }
.halloween-badge-art::before { position:absolute!important; z-index:4!important; top:2%!important; right:2%!important; display:grid!important; place-items:center!important; width:28%!important; height:28%!important; min-width:12px!important; min-height:12px!important; border:1px solid #374151!important; border-radius:50%!important; background:rgba(15,23,42,.94)!important; color:#fff!important; content:'🎃'!important; font:700 clamp(7px,1.4vw,12px)/1 system-ui,sans-serif!important; line-height:1!important; box-shadow:0 1px 4px rgba(0,0,0,.6)!important; }

.set-art { box-sizing:border-box; border:1px solid #4b5563; }
@media(max-width:600px) { .badge-rarity-frame:has(.bird-badge-art) { flex-basis:82px!important; width:82px!important; height:82px!important; } .badge-rarity-frame:has(.bird-badge-art) > .bird-badge-art { flex-basis:70px!important; width:70px!important; height:70px!important; } }

.market-rarity-frame:has(.bird-badge-art) > .market-badge-art.bird-badge-art { flex:none!important; width:100%!important; height:100%!important; max-width:100%!important; max-height:100%!important; min-width:0!important; min-height:0!important; }


/* Cohesive circular badge art: Halloween returns to the original illustrated badges. */
.inventory-art, .badge-preview-art, .market-badge-art, .card-art { box-sizing:border-box; border:2px solid #4b5563!important; outline:0!important; }
.badge-rarity-frame > .inventory-art, .market-rarity-frame .market-badge-art { border:2px solid #4b5563!important; outline:0!important; }
.halloween-badge-art { position:relative!important; isolation:isolate!important; overflow:hidden!important; border:2px solid #4b5563!important; border-radius:50%!important; background:radial-gradient(circle at 32% 25%,rgba(255,255,255,.22),transparent 34%),var(--halloween-badge-color,linear-gradient(145deg,#334155,#111827))!important; box-shadow:inset 0 0 0 2px rgba(255,255,255,.08),0 4px 10px rgba(2,6,23,.38)!important; }
.inventory-art.halloween-badge-art::after, .badge-preview-art.halloween-badge-art::after, .card-art.halloween-badge-art::after { position:absolute!important; z-index:1!important; inset:12%!important; display:block!important; width:auto!important; height:auto!important; content:''!important; background:var(--halloween-art,none) center/contain no-repeat!important; font-size:0!important; filter:drop-shadow(0 3px 3px rgba(2,6,23,.45))!important; }
.halloween-badge-art::before { position:absolute!important; z-index:5!important; top:3%!important; right:3%!important; display:grid!important; place-items:center!important; width:22%!important; height:22%!important; min-width:13px!important; min-height:13px!important; padding:0!important; border:1px solid #4b5563!important; border-radius:50%!important; background:#111827!important; color:#fff!important; content:'🎃'!important; font:700 clamp(8px,1.5vw,12px)/1 system-ui,sans-serif!important; line-height:1!important; box-shadow:0 1px 4px rgba(0,0,0,.65)!important; }

/* Put each geometric shape inside the same circular medallion used by other badges. */
.shape-badge-art { position:relative!important; isolation:isolate!important; display:grid!important; place-items:center!important; overflow:hidden!important; border:2px solid #4b5563!important; border-radius:50%!important; clip-path:none!important; background:radial-gradient(circle at 32% 24%,#64748b 0,#334155 42%,#111827 78%,#020617 100%)!important; box-shadow:inset 0 0 0 3px rgba(255,255,255,.08),inset 0 -8px 14px rgba(2,6,23,.35),0 4px 10px rgba(2,6,23,.34)!important; filter:none!important; }
.inventory-art.shape-badge-art, .badge-preview-art.shape-badge-art { transform:none!important; }
.shape-badge-art::before { position:absolute!important; z-index:0!important; inset:7%!important; border:1px solid rgba(255,255,255,.18)!important; border-radius:50%!important; background:radial-gradient(circle at 50% 0,rgba(255,255,255,.12),transparent 72%)!important; content:''!important; }
.shape-badge-art::after { position:absolute!important; z-index:1!important; top:25%!important; left:25%!important; width:50%!important; height:50%!important; border:0!important; border-radius:0!important; clip-path:none!important; background:linear-gradient(145deg,#67e8f9,#0284c7 62%,#1e3a8a)!important; content:''!important; filter:drop-shadow(0 2px 3px rgba(0,0,0,.48))!important; }
.shape-circle::after { border-radius:50%!important; background:linear-gradient(145deg,#fef08a,#fb923c 55%,#9a3412)!important; }
.shape-square::after { clip-path:polygon(5% 5%,95% 5%,95% 95%,5% 95%)!important; background:linear-gradient(145deg,#67e8f9,#0284c7 62%,#1e3a8a)!important; }
.shape-triangle::after { clip-path:polygon(50% 4%,98% 94%,2% 94%)!important; background:linear-gradient(145deg,#bef264,#16a34a 65%,#14532d)!important; }
.shape-rectangle::after { top:34%!important; left:17%!important; width:66%!important; height:32%!important; clip-path:none!important; background:linear-gradient(145deg,#f9a8d4,#db2777 58%,#831843)!important; }
.shape-rhombus::after { clip-path:polygon(50% 2%,98% 50%,50% 98%,2% 50%)!important; background:linear-gradient(145deg,#c4b5fd,#7c3aed 58%,#312e81)!important; }
.shape-parallelogram::after { clip-path:polygon(25% 4%,98% 4%,75% 96%,2% 96%)!important; background:linear-gradient(145deg,#fda4af,#e11d48 58%,#881337)!important; }
.shape-hexagon::after { clip-path:polygon(25% 3%,75% 3%,98% 50%,75% 97%,25% 97%,2% 50%)!important; background:linear-gradient(145deg,#a5f3fc,#0891b2 58%,#164e63)!important; }
.shape-octagon::after { clip-path:polygon(30% 2%,70% 2%,98% 30%,98% 70%,70% 98%,30% 98%,2% 70%,2% 30%)!important; background:linear-gradient(145deg,#fde68a,#d97706 58%,#78350f)!important; }
.shape-decagon::after { clip-path:polygon(50% 1%,79% 7%,97% 29%,97% 71%,79% 93%,50% 99%,21% 93%,3% 71%,3% 29%,21% 7%)!important; background:linear-gradient(145deg,#f0abfc,#a21caf 58%,#581c87)!important; }
.shape-oval::after { border-radius:50%!important; clip-path:ellipse(48% 34% at 50% 50%)!important; background:linear-gradient(145deg,#f0abfc,#a21caf 58%,#581c87)!important; }
.shape-trapezoid::after { clip-path:polygon(20% 4%,80% 4%,98% 96%,2% 96%)!important; background:linear-gradient(145deg,#86efac,#059669 58%,#064e3b)!important; }
.shape-pentagon::after { clip-path:polygon(50% 2%,98% 38%,80% 97%,20% 97%,2% 38%)!important; background:linear-gradient(145deg,#fda4af,#be123c 58%,#4c0519)!important; }


/* Keep inventory badge medallions identical in size across every badge family. */
.inventory-card .badge-rarity-frame, .index-card .badge-rarity-frame { box-sizing:border-box!important; flex:0 0 88px!important; width:88px!important; height:88px!important; min-width:88px!important; min-height:88px!important; padding:0!important; }
.inventory-card .inventory-art, .index-card .inventory-art { box-sizing:border-box!important; flex:0 0 72px!important; width:72px!important; height:72px!important; min-width:72px!important; min-height:72px!important; max-width:72px!important; max-height:72px!important; aspect-ratio:1/1!important; border:2px solid #4b5563!important; border-radius:50%!important; overflow:hidden!important; transform:none!important; }
.inventory-card .badge-rarity-frame:has(.bird-badge-art) > .inventory-art.bird-badge-art, .index-card .badge-rarity-frame:has(.bird-badge-art) > .inventory-art.bird-badge-art { flex:0 0 72px!important; width:72px!important; height:72px!important; min-width:72px!important; min-height:72px!important; max-width:72px!important; max-height:72px!important; }


.halloween-badge-art::before { content:none!important; display:none!important; }
.badge-search-control { display:flex; flex-direction:column; gap:6px; width:min(100%,560px); margin:0 0 14px; color:#cbd5e1; font-size:.9rem; font-weight:700; }
.badge-search-control input { width:100%; min-height:42px; padding:9px 12px; border:1px solid rgba(148,163,184,.32); border-radius:10px; outline:none; background:#111b2d; color:#f8fafc; font:inherit; }
.badge-search-control input:focus { border-color:#60a5fa; box-shadow:0 0 0 3px rgba(96,165,250,.18); }

/* Match all badge families to the Bird Pack circular medallion finish. */
.inventory-card .inventory-art, .index-card .inventory-art, .badge-preview-art, .market-rarity-frame .market-badge-art, .card-art { box-sizing:border-box!important; border:2px solid rgba(255,255,255,.84)!important; border-radius:50%!important; overflow:hidden!important; box-shadow:inset 0 -14px 24px rgba(15,23,42,.24),0 5px 12px rgba(2,6,23,.38),inset 0 0 0 1px rgba(255,255,255,.12)!important; }

/* One enamel medallion finish for every badge family. */
.inventory-card .inventory-art, .index-card .inventory-art, .badge-preview-art, .market-rarity-frame .market-badge-art, .card-art { box-sizing:border-box!important; border:2px solid rgba(255,255,255,.84)!important; border-radius:50%!important; overflow:hidden!important; box-shadow:inset 0 -14px 24px rgba(15,23,42,.24),0 5px 12px rgba(2,6,23,.38),inset 0 0 0 1px rgba(255,255,255,.12)!important; }
.generic-medallion-art { position:relative!important; isolation:isolate!important; }
.generic-medallion-art::before { position:absolute!important; z-index:2!important; inset:7%!important; border:1px solid rgba(255,255,255,.34)!important; border-radius:50%!important; background:radial-gradient(circle at 32% 22%,rgba(255,255,255,.48),rgba(255,255,255,.08) 34%,transparent 67%)!important; content:""!important; pointer-events:none!important; }
.inventory-card .bird-badge-species-image, .index-card .bird-badge-species-image, .badge-preview-art .bird-badge-species-image, .market-rarity-frame .bird-badge-species-image, .card-art .bird-badge-species-image { inset:12%!important; width:76%!important; height:76%!important; object-fit:contain!important; }
.inventory-card .hour-pack-icon, .index-card .hour-pack-icon, .badge-preview-art.hour-pack-icon, .card-art.hour-pack-icon { background-size:72% 72%,100% 100%!important; }
.inventory-card .ore-badge-art, .index-card .ore-badge-art, .badge-preview-art.ore-badge-art, .card-art.ore-badge-art { background-size:72% 72%!important; }
.inventory-art.halloween-badge-art::after, .badge-preview-art.halloween-badge-art::after, .card-art.halloween-badge-art::after { inset:14%!important; background-position:center!important; background-size:contain!important; }
.inventory-art.shape-badge-art, .badge-preview-art.shape-badge-art, .card-art.shape-badge-art { transform:none!important; }

/* Keep the wide Turkey illustration safely inside its round badge. */
.bird-badge-art:has(> .bird-badge-species-image[src*='turkey.png']) > .bird-badge-species-image { inset:17%!important; width:66%!important; height:66%!important; object-fit:contain!important; }

/* Keep trade offer badge artwork centered at one consistent size. */
.market-trade-side .market-offer-asset > .market-rarity-frame { box-sizing:border-box!important; display:grid!important; flex:0 0 68px!important; width:68px!important; height:68px!important; min-width:68px!important; min-height:68px!important; max-width:68px!important; max-height:68px!important; padding:2px!important; align-self:center!important; justify-self:center!important; overflow:hidden!important; }
.market-trade-side .market-offer-asset > .market-rarity-frame > .market-badge-art-wrap { box-sizing:border-box!important; display:grid!important; flex:none!important; width:100%!important; height:100%!important; min-width:0!important; min-height:0!important; place-items:center!important; }
.market-trade-side .market-offer-asset .market-badge-art { box-sizing:border-box!important; display:grid!important; flex:none!important; width:100%!important; height:100%!important; min-width:0!important; min-height:0!important; max-width:100%!important; max-height:100%!important; place-items:center!important; background-repeat:no-repeat!important; }
.market-trade-side .market-offer-asset .market-badge-art:not(.fruit-badge-art):not(.fruit-bowl-reward-art) { background-position:center!important; background-size:contain!important; }
.market-trade-side .market-offer-asset .market-badge-art::after { background-position:center!important; background-repeat:no-repeat!important; background-size:contain!important; }
.market-trade-side .market-offer-asset .halloween-badge-art::after { inset:13%!important; }
.market-trade-side .market-offer-asset .bird-badge-species-image { inset:12%!important; width:76%!important; height:76%!important; object-fit:contain!important; object-position:center!important; }
.market-trade-side .market-offer-asset { align-content:start!important; justify-items:center!important; }


/* Keep bird set checkmarks above the clipped round badge artwork. */
.bird-set-item-art, .bird-set-reward-art { position:relative; overflow:visible; }
.bird-set-item-art > .bird-badge-art, .bird-set-reward-art > .bird-badge-art { position:absolute; inset:0; width:100%; height:100%; overflow:hidden; }
.bird-set-item-art > .set-check, .bird-set-reward-art > .set-check { z-index:3; }
.bird-set-reward-art { flex:0 0 54px; width:54px; height:54px; opacity:1; }

/* Keep Megagon checkmarks above the shape art instead of clipping them. */
.megagon-set-item-art { position:relative; overflow:visible; }
.megagon-set-item-art > .shape-badge-art { position:absolute; inset:0; width:100%; height:100%; overflow:hidden; }
.megagon-set-item-art > .set-check { z-index:3; }

.color-mix-reward-options { display:flex; flex:0 0 auto; gap:5px; }
.color-mix-badge-art { width:42px; height:42px; border:2px solid rgba(255,255,255,.84); border-radius:50%; box-shadow:inset 0 -10px 18px rgba(15,23,42,.18),0 4px 10px rgba(2,6,23,.35); }
.mint-badge-art { background:#aaf0d1; }
.aqua-badge-art { background:#40e0d0; }
.lime-badge-art { flex:0 0 54px; width:54px; height:54px; background:#9acd32; }

.fruit-pack-logo { position:relative; display:flex; align-items:center; justify-content:center; gap:6px; overflow:hidden; border-color:#83d77f; background:linear-gradient(145deg,#236b45,#32a65d); color:#fff; box-shadow:inset 0 0 0 2px rgba(255,255,255,.14),0 8px 18px rgba(7,50,32,.28); text-shadow:0 2px 5px rgba(0,0,0,.38); }
.fruit-pack-logo::before,.fruit-pack-logo::after { content:none; }
.fruit-pack-title { display:flex; flex:0 0 auto; align-items:center; min-width:max-content; font-size:1em; font-weight:950; letter-spacing:.02em; line-height:1; white-space:nowrap; text-transform:uppercase; }
.fruit-pack-title b { color:#ffe36d; }
.fruit-pack-title b { margin-left:.28em; }
.fruit-pack-cover-fruit { box-sizing:border-box; width:28px; height:28px; flex:0 0 28px; border:2px solid rgba(255,255,255,.88); border-radius:50%; background-image:url('/assets/fruit-badges-flat-ai.png'); background-repeat:no-repeat; background-size:500% 400%; box-shadow:0 3px 6px rgba(0,0,0,.28); }
.fruit-pack-cover-berry { background-position:50% 0%; transform:rotate(-8deg); }
.fruit-pack-cover-citrus { background-position:100% 33.333%; transform:rotate(8deg); }
.fruit-pack-leaf { position:absolute; z-index:-1; width:34px; height:18px; border-radius:100% 0 100% 0; background:#7ce96f; box-shadow:inset -5px -4px 0 rgba(22,101,52,.25); }
.fruit-pack-leaf-left { left:2px; top:3px; transform:rotate(-20deg); }
.fruit-pack-leaf-right { right:1px; bottom:1px; transform:rotate(150deg); }
.fruit-badge-art { position:relative; isolation:isolate; overflow:hidden; background-image:url('/assets/fruit-badges-flat-ai.png')!important; background-repeat:no-repeat!important; background-size:450% 360%!important; background-color:var(--bird-color,#e8f5dc)!important; filter:saturate(1.03) contrast(1.01); }
.fruit-badge-art::before { position:absolute!important; inset:3%!important; z-index:2!important; border:1px solid rgba(255,255,255,.42)!important; border-radius:50%!important; background:radial-gradient(circle at 29% 19%,rgba(255,255,255,.55),transparent 25%)!important; box-shadow:inset 0 -9px 14px rgba(15,23,42,.13)!important; content:""!important; pointer-events:none!important; }
.fruit-badge-art::after { position:absolute!important; right:13%!important; bottom:9%!important; left:13%!important; z-index:2!important; height:9%!important; border-radius:50%!important; background:rgba(15,23,42,.18)!important; content:""!important; filter:blur(3px)!important; opacity:.55!important; pointer-events:none!important; }
.fruit-blueberry-art { background-position:0% 0%!important; }
.fruit-apple-art { background-position:25.714% 0%!important; }
.fruit-strawberry-art { background-position:51.429% 0%!important; }
.fruit-grape-art { background-position:77.143% 0%!important; }
.fruit-banana-art { background-position:100% 0%!important; }
.fruit-kiwi-art { background-position:0% 34.615%!important; }
.fruit-raspberry-art { background-position:25.714% 34.615%!important; }
.fruit-watermelon-art { background-position:51.429% 34.615%!important; }
.fruit-pear-art { background-position:77.143% 34.615%!important; }
.fruit-orange-art { background-position:100% 34.615%!important; }
.fruit-mango-art { background-position:0% 69.231%!important; }
.fruit-peach-art { background-position:25.714% 69.231%!important; }
.fruit-pineapple-art { background-position:51.429% 69.231%!important; }
.fruit-blackberry-art { background-position:77.143% 69.231%!important; }
.fruit-dragon-fruit-art { background-position:100% 69.231%!important; }
.fruit-honeydew-art { background-position:0% 100%!important; }
.fruit-cantaloupe-art { background-position:25.714% 100%!important; }
.fruit-set-item-art { position:relative; overflow:visible; }
.fruit-set-item-art > .fruit-badge-art { box-sizing:border-box; position:absolute; inset:0; width:100%; height:100%; overflow:hidden; border:2px solid rgba(255,255,255,.84); border-radius:50%!important; box-shadow:inset 0 -8px 12px rgba(15,23,42,.18),0 3px 8px rgba(2,6,23,.3); }
.fruit-set-item-art > .set-check { z-index:3; }
.fruit-bowl-reward-art { flex:0 0 64px; width:64px; height:64px; border:2px solid rgba(255,255,255,.84); border-radius:50%; background-image:url('/assets/fruit-bowl-rewards-flat-ai.png'); background-repeat:no-repeat; background-size:200% 100%; background-color:#fff7d6; box-shadow:inset 0 -10px 18px rgba(15,23,42,.18),0 4px 10px rgba(2,6,23,.35); }
.fruit-bowl-art { background-position:0 50%!important; }
.evil-fruit-bowl-art { background-position:100% 50%!important; background-color:#2e1065; }
.inventory-art.fruit-bowl-reward-art,.card-art.fruit-bowl-reward-art,.market-badge-art.fruit-bowl-reward-art,.badge-preview-art.fruit-bowl-reward-art { background-image:url('/assets/fruit-bowl-rewards-flat-ai.png')!important; background-repeat:no-repeat!important; background-size:200% 100%!important; }

/* Auction lots need the same readable, consistent badge presentation as other market offers. */
.market-auction-lot { align-items:flex-start; }
.market-auction-lot .market-offer-asset { flex:0 0 124px; }
.market-auction-lot .market-rarity-frame { box-sizing:border-box!important; display:grid!important; flex:0 0 68px!important; width:68px!important; height:68px!important; min-width:68px!important; min-height:68px!important; place-items:center!important; }
.market-auction-lot .market-rarity-frame .market-badge-art { box-sizing:border-box!important; flex:none!important; width:60px!important; height:60px!important; min-width:60px!important; min-height:60px!important; max-width:60px!important; max-height:60px!important; }

/* Zoom previews should enlarge every badge, including artwork with small card-size defaults. */
.badge-preview-frame:not(:has(.halloween-badge-art)) { box-sizing:border-box!important; width:min(84vw,620px)!important; height:min(84vw,620px)!important; }
.badge-preview-frame:not(:has(.halloween-badge-art)) > .badge-preview-art { box-sizing:border-box!important; display:block!important; flex:none!important; width:calc(100% - 22px)!important; height:calc(100% - 22px)!important; min-width:0!important; min-height:0!important; max-width:none!important; max-height:none!important; margin:auto!important; }

.badge-stops-view.active { display:block; padding:clamp(16px,3vw,30px); }
.badge-stops-heading { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:0 18px; }
.badge-stops-heading-copy { grid-column:1; grid-row:1; }
.badge-stops-heading > p:not(.section-kicker) { grid-column:1; grid-row:2; margin:8px 0 0; }
.badge-stops-heading h2 { margin:0 0 7px; color:#f8fafc; font-size:clamp(1.8rem,4vw,2.6rem); }
.badge-stops-heading > p:last-child,.badge-stops-privacy { max-width:850px; color:#b7c5d8; line-height:1.55; }
.badge-stops-location-row { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:16px 0 8px; }
.badge-stops-location-row > span { color:#cbd5e1; font-size:.9rem; }
.badge-stop-admin-mode-row { display:flex; align-items:flex-start; gap:10px; max-width:560px; margin:12px 0; padding:12px 14px; border:1px solid rgba(250,204,21,.38); border-radius:12px; background:rgba(120,75,10,.16); color:#fef3c7; cursor:pointer; }
.badge-stop-admin-mode-row input { width:18px; height:18px; margin:2px 0 0; accent-color:#f59e0b; }
.badge-stop-admin-mode-row span { display:grid; gap:3px; }
.badge-stop-admin-mode-row small { color:#cbd5e1; line-height:1.4; }
.badge-stops-privacy { margin:8px 0 14px; font-size:.78rem; }
.badge-stops-map-tools { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin:0 0 10px; }
.badge-stops-map-rotation { display:flex; flex-wrap:wrap; gap:8px; }
.badge-stops-map-expanded { height:min(82vh,1100px)!important; min-height: min(78vh,720px)!important; }
.badge-stops-map { position:relative; width:100%; height:min(70vh,760px); min-height:420px; overflow:hidden; border:1px solid rgba(148,163,184,.3); border-radius:18px; background:#0f172a; box-shadow:0 14px 32px rgba(0,0,0,.24); z-index:0; }
.badge-stops-map-legend { display:flex; align-items:center; flex-wrap:wrap; gap:10px 22px; margin:10px 2px 2px; padding:12px 14px; border:1px solid rgba(148,163,184,.22); border-radius:12px; background:rgba(15,23,42,.86); color:#dbeafe; font-size:.82rem; }
.badge-stops-map-legend strong { color:#fff; font-size:.95rem; }
.badge-stops-map-legend strong span { display:inline-grid; min-width:28px; min-height:28px; margin-right:5px; place-items:center; border-radius:8px; background:#312e81; color:#fff; }
.badge-stops-map-legend > span { display:inline-flex; align-items:center; gap:7px; }
.badge-stop-legend-marker { width:15px; height:15px; border:2px solid #fff; border-radius:50% 50% 50% 2px; background:#facc15; box-shadow:0 0 8px rgba(250,204,21,.55); transform:rotate(-45deg); }
.badge-stop-legend-cooldown { width:15px; height:15px; border:2px solid #fff; border-radius:50% 50% 50% 2px; background:#64748b; transform:rotate(-45deg); }
.badge-stop-legend-radius { width:18px; height:18px; border:2px dashed #22c55e; border-radius:50%; background:rgba(34,197,94,.2); }
.badge-stops-map-credit { margin:5px 2px 18px; text-align:right; font-size:.72rem; }
.badge-stops-map-credit a { color:#cbd5e1; }
.badge-stops-grid-layout { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(270px,.8fr); gap:16px; margin-top:16px; }
.badge-stops-card { min-width:0; padding:18px; border:1px solid rgba(148,163,184,.2); border-radius:16px; background:linear-gradient(145deg,rgba(30,41,59,.78),rgba(15,23,42,.92)); box-shadow:0 12px 26px rgba(0,0,0,.16); }
.badge-stops-card h3 { margin:0; color:#f8fafc; font-size:1.15rem; }
.badge-stops-card-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.badge-stops-count { display:inline-grid; min-width:34px; min-height:34px; place-items:center; border-radius:50%; background:#312e81; color:#e0e7ff; font-weight:900; }
.badge-stops-list { display:grid; gap:8px; max-height:470px; overflow:auto; }
.badge-stops-empty { color:#94a3b8; font-size:.9rem; line-height:1.5; }
.badge-stop-place { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 12px; border:1px solid rgba(148,163,184,.2); border-radius:12px; background:rgba(2,6,23,.3); }
.badge-stop-place > div { display:grid; min-width:0; gap:4px; }
.badge-stop-place strong { overflow:hidden; color:#f8fafc; text-overflow:ellipsis; white-space:nowrap; }
.badge-stop-place small { color:#a5b4c8; font-size:.75rem; }
.badge-stop-place.reachable { border-color:rgba(56,189,248,.82); background:rgba(2,132,199,.2); box-shadow:0 0 0 1px rgba(56,189,248,.16),0 0 16px rgba(14,165,233,.14); }
.badge-stop-place.cooling-down { border-color:rgba(148,163,184,.38); background:rgba(71,85,105,.2); }
.badge-stop-claim-button { min-height:36px; padding:7px 11px; border:1px solid rgba(167,139,250,.5); border-radius:9px; background:#5b21b6; color:#fff; font-weight:850; cursor:pointer; }
.badge-stop-claim-button:disabled { border-color:rgba(148,163,184,.2); background:#334155; color:#cbd5e1; cursor:default; }
.badge-stops-odds { display:grid; gap:10px; margin:14px 0 18px; padding:0; list-style:none; }
.badge-stops-odds li { display:flex; justify-content:space-between; gap:12px; padding-bottom:8px; border-bottom:1px solid rgba(148,163,184,.15); color:#dbeafe; }
.badge-stops-odds li b { color:#fde68a; }
.badge-stops-wallet { display:grid; gap:8px; margin-top:14px; padding-top:12px; border-top:1px solid rgba(148,163,184,.18); color:#e2e8f0; }
.badge-stops-wallet p { margin:0; color:#a5b4c8; font-size:.8rem; line-height:1.45; }
.badge-stops-free-pack-row { display:flex; gap:8px; }
.badge-stops-free-pack-row select { min-width:0; flex:1; padding:9px; border:1px solid rgba(148,163,184,.35); border-radius:9px; background:#0f172a; color:#f8fafc; }
.badge-stops-spray-section { margin-top:16px; }
.badge-stop-spray-badges { display:grid; grid-template-columns:repeat(auto-fill,minmax(112px,1fr)); gap:9px; margin-top:12px; }
.badge-stop-spray-choice { display:grid; justify-items:center; gap:6px; min-width:0; padding:11px 8px; border:1px solid rgba(148,163,184,.28); border-radius:12px; background:rgba(2,6,23,.35); color:#f8fafc; cursor:pointer; }
.badge-stop-spray-choice:hover { border-color:#c084fc; background:rgba(88,28,135,.3); }
.badge-stop-spray-choice strong { max-width:100%; overflow:hidden; font-size:.8rem; text-overflow:ellipsis; white-space:nowrap; }
.badge-stop-spray-choice small { color:#a5b4c8; font-size:.7rem; }
.badge-stop-spray-art { display:grid; flex:none; width:54px!important; height:54px!important; min-width:54px!important; min-height:54px!important; place-items:center; overflow:hidden; border:2px solid rgba(255,255,255,.82); border-radius:50%; background-size:cover!important; box-shadow:inset 0 -8px 14px rgba(15,23,42,.2),0 3px 8px rgba(0,0,0,.28); }
.badge-stop-reward-result { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:4px 14px; margin:12px 0; padding:16px 18px; border:1px solid rgba(250,204,21,.65); border-radius:16px; background:linear-gradient(115deg,rgba(113,63,18,.55),rgba(30,41,59,.96)); box-shadow:0 10px 28px rgba(0,0,0,.22),inset 0 0 24px rgba(250,204,21,.08); color:#fff; animation:badge-stop-reward-pop .28s ease-out both; }
.badge-stop-reward-result.hidden { display:none; }
.badge-stop-reward-icon { grid-row:span 2; display:grid; width:52px; height:52px; place-items:center; border-radius:14px; background:rgba(250,204,21,.15); font-size:2rem; }
.badge-stop-reward-result strong { font-size:clamp(1.15rem,3vw,1.55rem); font-weight:900; }
.badge-stop-reward-result small { color:#fde68a; font-size:.9rem; }
@keyframes badge-stop-reward-pop { from { opacity:0; transform:translateY(8px) scale(.98); } to { opacity:1; transform:translateY(0) scale(1); } }
.badge-stop-speed-warning { display:grid; gap:8px; margin:12px 0; padding:16px; border:2px solid #f97316; border-radius:14px; background:linear-gradient(120deg,rgba(124,45,18,.96),rgba(30,41,59,.98)); color:#fff7ed; box-shadow:0 8px 24px rgba(124,45,18,.3); }
.badge-stop-speed-warning strong { font-size:1.1rem; }
.badge-stop-speed-warning p { margin:0; color:#fed7aa; }
.badge-stop-speed-warning > div { display:flex; flex-wrap:wrap; gap:9px; }
.badge-stop-spray-choice > .badge-stop-spray-full-art { display:grid; flex:0 0 62px; width:62px; height:62px; place-items:center; overflow:hidden; border:0; border-radius:50%; background:none; }
.badge-stop-spray-choice > .badge-stop-spray-full-art > .inventory-art { flex:0 0 56px; width:56px; height:56px; max-width:56px; max-height:56px; }
.badge-stop-spray-art-fallback { display:grid; width:56px; height:56px; place-items:center; border:2px solid rgba(255,255,255,.8); border-radius:50%; background:linear-gradient(145deg,#334155,#0f172a); color:white; font-size:1.5rem; font-weight:900; }
.badge-stop-spray-art-image-fallback { position:absolute; inset:0; display:grid; place-items:center; color:#fff; font-size:1.25rem; font-weight:900; text-shadow:0 1px 4px #000; }
.leaflet-container { font-family:inherit; }
.badge-stop-marker-icon { border:0!important; background:transparent!important; }
.badge-stop-map-pin { position:relative; display:grid; width:30px; height:30px; place-items:center; border:3px solid #fff; border-radius:50% 50% 50% 4px; background:linear-gradient(145deg,#fde047,#f97316); box-shadow:0 2px 10px rgba(0,0,0,.7),0 0 0 3px rgba(250,204,21,.35); color:#1e293b; transform:rotate(-45deg); }
.badge-stop-map-pin b { font-size:14px; line-height:1; transform:rotate(45deg); }
.badge-stop-user-arrow { display:grid; width:30px; height:30px; place-items:center; filter:drop-shadow(0 2px 3px #000b); transform-origin:center; }
.badge-stop-user-arrow svg { width:30px; height:30px; overflow:visible; }
.leaflet-top.leaflet-left .leaflet-control-badge-turn { clear:none; margin-left:8px; }
.leaflet-control-badge-turn button { display:block; width:34px; height:34px; margin:0; padding:0; border:0; border-radius:0; background:#fff; color:#1e293b; font:700 21px/34px Arial,sans-serif; cursor:pointer; }
.leaflet-control-badge-turn button + button { border-top:1px solid #cbd5e1; }
.leaflet-control-badge-turn button:hover { background:#f1f5f9; color:#0f172a; }
.badge-stop-map-pin.cooling-down { background:linear-gradient(145deg,#cbd5e1,#64748b); box-shadow:0 2px 9px rgba(0,0,0,.65),0 0 0 3px rgba(148,163,184,.3); }
.badge-stop-place.cooling-down small { color:#cbd5e1; }
.leaflet-control-attribution { font-size:10px!important; }
@media(max-width:720px) { .badge-stops-heading { grid-template-columns:minmax(0,1fr); } .badge-stops-heading > p:not(.section-kicker) { grid-column:1; grid-row:2; } .badge-stops-grid-layout { grid-template-columns:minmax(0,1fr); } .badge-stops-map-tools { align-items:stretch; flex-direction:column; } .badge-stops-map-rotation { display:flex; } .badge-stops-map { height:62vh; min-height:340px; } .badge-stops-map-expanded { height:78vh!important; min-height:66vh!important; } .badge-stop-place { align-items:flex-start; flex-direction:column; } .badge-stop-claim-button { width:100%; } }

/* Keep mutation filters in a left sidebar beside the badge grid. */
.mutation-browser { grid-template-columns:minmax(150px,190px) minmax(0,1fr); gap:12px; min-width:0; width:100%; }
.mutation-browser-content { grid-column:2; min-width:0; width:100%; }
.mutation-filter { position:sticky; top:12px; grid-template-columns:minmax(0,1fr); align-content:start; min-width:0; max-height:calc(100vh - 24px); overflow:auto; width:100%; box-sizing:border-box; }
.mutation-filter > strong:first-child,.mutation-filter > span,.mutation-filter-section { grid-column:1; }
#owned-inventory-list { min-width:0; width:100%; box-sizing:border-box; }
#owned-inventory-list .inventory-card { min-width:0; max-width:100%; box-sizing:border-box; overflow:hidden; }
@media (max-width:700px) {
  .mutation-browser { grid-template-columns:minmax(0,1fr); gap:10px; }
  .mutation-browser-content { grid-column:1; grid-row:1; order:1; min-width:0; width:100%; }
  .mutation-filter { grid-column:1; grid-row:2; position:static; order:2; max-height:none; overflow:visible; width:100%; }
  #owned-inventory-list { grid-template-columns:minmax(0,1fr); }
  #owned-inventory-list .inventory-card { width:100%; }
}
.badge-stop-spray-result { border-color:rgba(216,180,254,.8); background:linear-gradient(120deg,rgba(88,28,135,.72),rgba(15,23,42,.98)); box-shadow:0 12px 32px rgba(88,28,135,.28),inset 0 0 24px rgba(216,180,254,.12); }
.badge-stop-spray-result .badge-stop-reward-icon { min-width:62px; min-height:62px; border:1px solid rgba(216,180,254,.4); background:rgba(192,132,252,.2); font-size:2.5rem; }
.badge-stop-spray-result strong { color:#fff; font-size:clamp(1.25rem,3vw,1.8rem); }
.badge-stop-spray-result small { color:#e9d5ff; }

/* Compact Android phones and other narrow touch screens. */
@media (max-width: 640px) {
  #game-area, .game-panel, .top-bar, .game-panel > *, .game-panel section { min-width: 0; max-width: 100%; box-sizing: border-box; }
  .top-bar { position: relative; gap: 7px; }
  .top-bar > * { max-width: 100%; }
  .daily-rewards-card { width: 100%; min-width: 0; box-sizing: border-box; }
  .rewards-section-tabs { display: flex; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .rewards-section-tab { flex: 0 0 auto; min-height: 44px; }
  .hourly-reward-card, .daily-quest-card, .arcade-ticket-option { min-width: 0; overflow-wrap: anywhere; }
  .game-panel canvas, .arcade-game-stage canvas { max-width: 100%; touch-action: manipulation; }
}
/* Mutation Spray workshop and clear nearby stop states. */
.mutation-sprays-view.active { display:grid; gap:16px; padding:clamp(16px,3vw,30px); }
.mutation-sprays-heading { display:grid; gap:6px; }
.mutation-sprays-heading h2,.mutation-sprays-heading p { margin:0; }
.mutation-sprays-heading > p:last-child,.mutation-sprays-card > p { max-width:850px; color:#aebed1; line-height:1.5; }
.mutation-sprays-wallet { display:grid; grid-template-columns:repeat(auto-fit,minmax(115px,1fr)); gap:9px; }
.mutation-spray-wallet-item { display:grid; gap:5px; padding:12px; border:1px solid color-mix(in srgb,var(--spray-color) 58%,transparent); border-radius:12px; background:color-mix(in srgb,var(--spray-color) 10%,#0b1120); }
.mutation-spray-wallet-item strong { color:var(--spray-color); }
.mutation-spray-wallet-item span { color:#f8fafc; font-size:1.25rem; font-weight:900; }
.mutation-sprays-card { display:grid; gap:10px; padding:16px; border:1px solid rgba(148,163,184,.2); border-radius:15px; background:rgba(15,23,42,.76); }
.mutation-sprays-card h3,.mutation-sprays-card p { margin:0; }
.mutation-spray-upgrades { display:grid; grid-template-columns:repeat(auto-fit,minmax(175px,1fr)); gap:8px; }
.mutation-spray-upgrade-button,.mutation-spray-trade-button { min-height:44px; padding:9px 12px; border:1px solid rgba(56,189,248,.42); border-radius:10px; background:linear-gradient(135deg,#075985,#0369a1); color:#f8fafc; font:inherit; font-weight:800; cursor:pointer; touch-action:manipulation; }
.mutation-spray-use-controls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)) auto; align-items:end; gap:9px; }
.mutation-spray-use-controls label { display:grid; gap:6px; min-width:0; color:#cbd5e1; font-size:.78rem; font-weight:750; }
.mutation-spray-use-controls select { box-sizing:border-box; width:100%; min-width:0; min-height:44px; padding:9px 11px; border:1px solid rgba(148,163,184,.34); border-radius:9px; background:#0b1427; color:#f8fafc; font:inherit; }
.mutation-spray-use-button { min-height:44px; padding:9px 15px; border:1px solid rgba(192,132,252,.55); border-radius:10px; background:linear-gradient(135deg,#6b21a8,#9333ea); color:#fff; font:inherit; font-weight:850; cursor:pointer; touch-action:manipulation; }
.mutation-spray-use-button:disabled { background:#334155; border-color:rgba(148,163,184,.2); color:#94a3b8; cursor:not-allowed; }
.mutation-spray-upgrade-button:disabled { border-color:rgba(148,163,184,.2); background:#334155; color:#94a3b8; cursor:not-allowed; }
.mutation-spray-trade-list { display:grid; gap:8px; }
.mutation-spray-trade-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px; padding:10px 12px; border:1px solid rgba(148,163,184,.2); border-radius:11px; background:rgba(2,6,23,.3); }
.mutation-spray-trade-row > div { display:grid; min-width:0; gap:4px; }
.mutation-spray-trade-copy .inventory-card { width:100%; min-width:0; max-width:100%; box-sizing:border-box; }
.mutation-spray-trade-row strong { color:#f8fafc; }
.mutation-spray-trade-row small,.mutation-sprays-empty,.mutation-sprays-status { color:#aebed1; }
.badge-stop-place.reachable { border-color:#38bdf8; background:rgba(2,132,199,.22); box-shadow:0 0 0 1px rgba(56,189,248,.2),0 0 16px rgba(14,165,233,.16); }
.badge-stop-place.cooling-down { border-color:rgba(148,163,184,.48); background:rgba(71,85,105,.28); box-shadow:none; }
.badge-stop-map-pin.in-range { background:linear-gradient(145deg,#7dd3fc,#0284c7); box-shadow:0 2px 9px rgba(0,0,0,.65),0 0 0 4px rgba(56,189,248,.4); }
.badge-stop-map-pin.cooling-down { background:linear-gradient(145deg,#cbd5e1,#64748b); box-shadow:0 2px 9px rgba(0,0,0,.65),0 0 0 3px rgba(148,163,184,.3); }
.mutation-gold-logo { border-color:#ffd700!important; color:#ffe66d!important; background:radial-gradient(circle at 32% 25%,#fff7b0 0,#ffd700 42%,#9a5b00 100%)!important; text-shadow:0 1px 2px #713f12,0 0 8px #facc15!important; box-shadow:0 0 11px rgba(255,215,0,.8),inset 0 0 5px rgba(255,255,255,.85)!important; }
.mutation-gold-chip { border-color:rgba(255,215,0,.8); background:linear-gradient(110deg,rgba(255,215,0,.3),rgba(146,64,14,.25)); color:#fff1a6; box-shadow:inset 0 0 9px rgba(250,204,21,.16); }
.mutation-gold-chip i { color:#ffd700!important; filter:drop-shadow(0 0 4px #facc15); }
@media(max-width:640px) { .mutation-spray-trade-row { grid-template-columns:minmax(0,1fr); } .mutation-spray-trade-button { width:100%; } .mutation-sprays-view.active { padding:14px 10px; } }
@media(max-width:640px) { .mutation-spray-use-controls { grid-template-columns:minmax(0,1fr); } .mutation-spray-use-button { width:100%; } }
.inventory-art.mutation-gold-art { filter:sepia(.82) saturate(1.7) hue-rotate(2deg) brightness(1.06); box-shadow:inset 0 0 0 3px #ffd700,0 0 18px rgba(255,215,0,.58)!important; }
.market-auction-lot .inventory-art.market-badge-art.static-badge { border:2px solid rgba(255,255,255,.92); background:linear-gradient(90deg,#f8fafc 0 14.28%,#fff500 14.28% 28.56%,#20e0e5 28.56% 42.84%,#20f000 42.84% 57.12%,#ec00e5 57.12% 71.4%,#eb0000 71.4% 85.68%,#1111e8 85.68% 100%) center/100% 72% no-repeat,linear-gradient(90deg,#07111f 0 16%,#f8fafc 16% 32%,#32126b 32% 52%,#050505 52% 100%) center 100%/100% 28% no-repeat,#050505!important; filter:saturate(1.12) contrast(1.08); box-shadow:inset 0 0 0 2px rgba(15,23,42,.28),0 0 9px rgba(255,255,255,.25); }
.market-auction-lot .inventory-art.market-badge-art.static-badge::after { content:''!important; position:absolute; inset:0; border-radius:inherit; background:repeating-linear-gradient(0deg,rgba(255,255,255,.14) 0 1px,rgba(15,23,42,.1) 1px 3px); opacity:.72; pointer-events:none; }

.market-subpanel[hidden],.direct-trade-panel[hidden],.market-auctions-panel[hidden]{display:none}


