/* ==========================================================================
   Amethyst — "Pro" visual layer (loaded last). Visual polish only: colours,
   type, borders, radii, shadows, motion. Layout stays in index.html.
   ========================================================================== */

/* ---------- 1. Tokens: deep navy-black base, accent per theme ---------- */
:root[data-theme]{
  --bg:#08090f;--side:#0b0d15;--panel:#10131c;--card:#151924;--inp:#0b0d15;--line:#1b2030;--line2:#262c3f;--modal:#10131c;
  --txt:#e9ebf3;--txt2:#b6bbcc;--mut:#7c8298;
  --font:"Inter","Manrope","Segoe UI",system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji";
  --r:12px;--hov:#1a1f2d;
  --sh1:0 1px 0 #ffffff07 inset,0 10px 30px -18px #000;
  --sh2:0 1px 0 #ffffff0a inset,0 24px 60px -24px #000d;
  --ring:0 0 0 3px color-mix(in srgb,var(--blue) 32%,transparent)}
:root[data-theme="violet"]{--blue:#7c5cff;--blue2:#6343f2;--accdk:#1f1847;--gold:#f2c14e;--green:#34d399;--red:#f87171}
:root[data-theme="amber"]{--accdk:#2a1f0c}
:root[data-theme="jade"]{--accdk:#0d2a22}
:root[data-theme="ruby"]{--accdk:#2c0f18}

html body{font-family:var(--font);font-size:13.5px;letter-spacing:-.006em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-feature-settings:"cv11","tnum" 0;
  background:radial-gradient(1200px 600px at 70% -10%,color-mix(in srgb,var(--blue) 7%,transparent),transparent 60%),var(--bg)}
html body .main{background:transparent}
html body ::selection{background:color-mix(in srgb,var(--blue) 45%,transparent)}
#bal,.gp+span,.pill,.tnum,td{font-variant-numeric:tabular-nums}

/* scrollbars */
*{scrollbar-width:thin;scrollbar-color:#262c3f transparent}
::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:#232838;border-radius:8px;border:2px solid transparent;background-clip:padding-box}::-webkit-scrollbar-thumb:hover{background-color:#2f3549}

/* ---------- 2. Controls ---------- */
html body .btnb{background:linear-gradient(180deg,color-mix(in srgb,var(--blue) 92%,#fff),var(--blue2));color:var(--onacc,#fff);border:1px solid color-mix(in srgb,var(--blue) 60%,#fff 12%);
  box-shadow:0 1px 0 #ffffff2e inset,0 8px 18px -10px color-mix(in srgb,var(--blue) 85%,transparent);font-weight:700;letter-spacing:.01em;transition:filter .15s,transform .08s,box-shadow .15s}
html body .btnb:hover:not(:disabled){filter:brightness(1.08);box-shadow:0 1px 0 #ffffff33 inset,0 10px 24px -10px color-mix(in srgb,var(--blue) 95%,transparent)}
html body .btnb:active:not(:disabled),html body .btnd:active:not(:disabled){transform:translateY(1px)}
html body .btnb.big{border-radius:10px;font-size:14px;padding-top:12px;padding-bottom:12px}
html body .btnd{background:var(--card);color:var(--txt);border:1px solid var(--line2);font-weight:600;transition:background .15s,border-color .15s,color .15s}
html body .btnd:hover:not(:disabled){background:var(--hov);border-color:#363d55}
html body .btnr{border-radius:10px}
html body button:disabled{opacity:.42;cursor:not-allowed;box-shadow:none!important;filter:none!important}
html body button:focus-visible,html body a:focus-visible,html body input:focus-visible,html body select:focus-visible,html body textarea:focus-visible{outline:none;box-shadow:var(--ring)}
html body input,html body select,html body textarea{font-family:inherit;color:var(--txt)}
html body input::placeholder,html body textarea::placeholder{color:#5f657a}
html body .field{background:var(--inp);border:1px solid var(--line2);border-radius:10px;padding:5px;transition:border-color .15s,box-shadow .15s}
html body .field:focus-within{border-color:color-mix(in srgb,var(--blue) 70%,transparent);box-shadow:var(--ring)}
html body .field .btnd{border-radius:7px;background:#1a1f2c;border-color:transparent;padding:6px 10px}
html body .field .btnd:hover{background:#232a3b}
html body label.l,html body .ctrl .l{color:var(--mut);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.07em}
html body select{background:var(--inp);border:1px solid var(--line2);border-radius:10px}
html body input[type=range]{accent-color:var(--blue)}
html body input[type=checkbox],html body input[type=radio]{accent-color:var(--blue)}

/* ---------- 3. Top strips (play money / beta / events) ---------- */
html body .demo{background:#0b0d15;color:#9aa0b4;border-bottom:1px solid var(--line);font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;padding:5px 10px}
html body .eabar{background:color-mix(in srgb,var(--blue) 9%,#0b0d15);color:var(--txt2);border-bottom:1px solid var(--line);font-size:12px;padding:6px 14px;gap:12px}
html body .eabar b{color:var(--txt)}
html body .eabar a{background:transparent;border:1px solid var(--line2);color:var(--txt);font-weight:600;padding:2px 10px;font-size:11.5px}
html body .eabar a:hover{border-color:var(--blue)}
html body .eabar button{color:var(--mut)}
html body .evbar{background:linear-gradient(90deg,#3b1d6e,#6d28d9,#3b1d6e);background-size:200% 100%;font-weight:700;letter-spacing:.01em;font-size:12.5px}

/* ---------- 4. Header ---------- */
html body header{background:color-mix(in srgb,var(--bg) 78%,transparent);backdrop-filter:saturate(140%) blur(14px);-webkit-backdrop-filter:saturate(140%) blur(14px);border-bottom:1px solid var(--line);position:relative;z-index:5}
html body header .nav{background:transparent;color:var(--txt2);font-weight:600;border-radius:9px;transition:background .15s,color .15s}
html body header .nav:hover{background:var(--card);color:var(--txt)}
html body header .nav.on,html body header .nav.act,html body header .nav[aria-current]{background:var(--card);color:var(--txt);box-shadow:inset 0 -2px 0 var(--blue)}
html body .wallet .pill{background:var(--inp);border:1px solid var(--line2);border-right:0;font-weight:700}
html body .wallet .btnb{box-shadow:0 1px 0 #ffffff2e inset}
html body .user{gap:8px}

/* ---------- 5. Sidebar & chat ---------- */
html body aside{background:linear-gradient(180deg,#0c0e17,#0a0c13);border-right:1px solid var(--line)}
html body .logo{letter-spacing:-.4px}
html body .jack{background:radial-gradient(140% 120% at 100% 0%,color-mix(in srgb,var(--gold) 14%,transparent),transparent 55%),var(--card);border:1px solid var(--line2);border-radius:14px;box-shadow:var(--sh1)}
html body .jack h4{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--txt2)}
html body .jack .pill{background:#0b0d15;border:1px solid var(--line2);border-radius:999px}
html body .jqb{background:#0b0d15;border-radius:99px}
html body .msgc{background:transparent;border-radius:10px;padding:7px 9px;margin-bottom:2px;transition:background .15s}
html body .msgc:hover{background:#121622}
html body .msgc p{color:var(--txt2);line-height:1.45}
html body .msgc .nm{font-weight:700}
html body .chatin{border-top:1px solid var(--line);background:#0a0c13}
html body #cin{background:var(--inp);border:1px solid var(--line2);border-radius:10px}
html body #cin:focus{border-color:color-mix(in srgb,var(--blue) 70%,transparent);box-shadow:var(--ring);outline:none}
html body .chatfoot{color:var(--mut)}

/* ---------- 6. Lobby ---------- */
html body .hero{border:1px solid var(--line2);border-radius:18px;box-shadow:var(--sh2)}
html body .hs::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,#07080ef2 0%,#07080ecc 38%,#07080e55 70%,transparent),radial-gradient(80% 120% at 85% 50%,transparent,#07080e66)}
html body .hs .ht{z-index:3}
html body .hs .ht h2,html body .hs .ht b{letter-spacing:-.02em}
html body .hart{z-index:2}
html body .hnav{background:#0b0d15b3;border:1px solid #ffffff1a;backdrop-filter:blur(8px);color:#fff}
#v_lobby > h1,html body h1.mph{font-size:19px;font-weight:700;letter-spacing:-.02em;color:var(--txt);margin-top:30px}
#v_lobby > h1 span,html body h1.mph span{background:none;-webkit-text-fill-color:currentColor;color:var(--txt)}
#v_lobby > h1 small,html body h1.mph small{font-size:12.5px;color:var(--mut);font-weight:500}

/* feature cards: one calm card style with a coloured glow per slot */
html body .cc{background:radial-gradient(120% 140% at 100% 0%,color-mix(in srgb,var(--cca,var(--blue)) 20%,transparent),transparent 58%),linear-gradient(180deg,#141823,#10131c)!important;
  border:1px solid var(--line)!important;color:var(--txt)!important;border-radius:14px;box-shadow:var(--sh1);transition:transform .15s,border-color .15s,box-shadow .15s}
html body .cc:hover{border-color:color-mix(in srgb,var(--cca,var(--blue)) 55%,var(--line))!important;transform:translateY(-2px);box-shadow:0 18px 40px -22px color-mix(in srgb,var(--cca,var(--blue)) 70%,#000)}
html body .cc b{font-size:14px;font-weight:700;color:var(--txt)!important}
html body .cc small{color:var(--mut)!important}
html body .cc:nth-child(8n+1){--cca:#f97316}html body .cc:nth-child(8n+2){--cca:#3b82f6}html body .cc:nth-child(8n+3){--cca:#22c55e}html body .cc:nth-child(8n+4){--cca:#ec4899}
html body .cc:nth-child(8n+5){--cca:#8b5cf6}html body .cc:nth-child(8n+6){--cca:#a855f7}html body .cc:nth-child(8n+7){--cca:#14b8a6}html body .cc:nth-child(8n+8){--cca:#eab308}
html body .cc.ccplus{--cca:#d946ef}html body .cc.ccss{--cca:#14b8a6}html body .cc.ccrealm{--cca:#22c55e}html body .cc.ccmine{--cca:#a855f7}

/* game tiles */
html body .tile{background:linear-gradient(180deg,#151923,#11141d)!important;border:1px solid var(--line)!important;border-radius:16px;box-shadow:var(--sh1);transition:transform .18s cubic-bezier(.2,.8,.2,1),border-color .18s,box-shadow .18s}
html body .tile::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(90% 70% at 85% 0%,color-mix(in srgb,var(--blue) 12%,transparent),transparent 60%);opacity:.0;transition:opacity .2s}
html body .tile:hover{transform:translateY(-3px);border-color:color-mix(in srgb,var(--blue) 55%,var(--line))!important;box-shadow:0 20px 40px -24px color-mix(in srgb,var(--blue) 75%,#000)}
html body .tile:hover::after{opacity:1}
html body .tile .nm b,html body .tile .nm{letter-spacing:-.01em}
html body .tile .ico{transition:transform .25s cubic-bezier(.2,.8,.2,1)}
html body .tile:hover .ico{transform:scale(1.06) rotate(-2deg)}
html body .lban{background:radial-gradient(120% 200% at 0% 0%,color-mix(in srgb,var(--blue) 22%,transparent),transparent 55%),linear-gradient(180deg,#141823,#10131c)!important;border:1px solid var(--line2)!important;border-radius:16px;box-shadow:var(--sh1)}

/* ---------- 7. Panels, game screens (shared by every game) ---------- */
html body .ctrl{background:linear-gradient(180deg,#121520,#0f121a);border:1px solid var(--line);border-radius:16px;box-shadow:var(--sh1)}
html body .board{border:1px solid var(--line);border-radius:16px;box-shadow:var(--sh1),inset 0 0 120px -40px #0008}
html body .ctrl p,html body .ctrl small{color:var(--mut)}
html body .back{color:var(--mut);font-weight:600;transition:color .15s}
html body .back:hover{color:var(--txt)}
html body .hk{background:#151924;border:1px solid var(--line2);border-radius:5px;color:var(--txt2)}
html body .autop,html body .autorun{border-radius:12px}
html body .acard,html body .supc,html body .tq-box,html body .tq-scene,html body .cbox,html body .note{border-color:var(--line)!important;border-radius:14px;box-shadow:var(--sh1)}
html body .acard,html body .supc,html body .cbox{background:linear-gradient(180deg,#121520,#0f121a)}

/* tabs / pills */
html body .lbtabs button,html body .tq-tabs button{background:transparent;border:1px solid var(--line2);color:var(--txt2);font-weight:600;border-radius:999px;transition:background .15s,color .15s,border-color .15s}
html body .lbtabs button:hover,html body .tq-tabs button:hover{background:var(--card);color:var(--txt)}
html body .lbtabs button.on,html body .tq-tabs button.on{background:var(--txt);border-color:var(--txt);color:#0b0d15}
html body .tq-pill{background:#1a1f2c;border:1px solid var(--line2)}

/* ---------- 8. Tables (live bets, leaderboards, admin) ---------- */
html body table th{color:var(--mut);font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.07em}
html body table td,html body table th{border-color:var(--line)}
html body table tbody tr{transition:background .12s}
html body table tbody tr:hover{background:#121622}
html body .lbt{background:var(--panel);border:1px solid var(--line);border-radius:14px}

/* ---------- 9. Modals & toasts ---------- */
html body .modal{background:#04050acc;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
html body .modal .box,html body .modal > div:not(.box):first-child{border:1px solid var(--line2);border-radius:18px;box-shadow:var(--sh2)}
html body .modal .box{background:linear-gradient(180deg,#141823,#10131c)}
html body .modal.open .box{animation:proIn .22s cubic-bezier(.2,.9,.3,1.2)}
@keyframes proIn{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
html body .toast,html body #toast,html body .toasts > div{background:#151924f2;border:1px solid var(--line2);border-radius:12px;box-shadow:var(--sh2);backdrop-filter:blur(10px)}

/* ---------- 10. Floating support button ---------- */
html body .supfab{width:44px;height:44px;font-size:19px;border:1px solid var(--line2);background:linear-gradient(180deg,#1a1f2d,#12151f);box-shadow:0 12px 30px -10px #000c;transition:transform .15s,border-color .15s}
html body .supfab:hover{transform:translateY(-2px);border-color:var(--blue)}

/* ---------- 11. Motion preference ---------- */
@media (prefers-reduced-motion:reduce){html body *{animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media(max-width:700px){html body .hs::before{background:linear-gradient(90deg,#07080ef2,#07080eb3 60%,#07080e40)}#v_lobby > h1,html body h1.mph{font-size:17px;margin-top:22px}}

/* ---------- 12. Header nav: single-line, monochrome until hovered ---------- */
html body header .nav,html body header a.nav{white-space:nowrap;filter:grayscale(1);opacity:.86;transition:background .15s,color .15s,filter .2s,opacity .2s}
html body header .nav:hover,html body header a.nav:hover{filter:none;opacity:1}
html body header .navrow{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;min-width:0}
html body header .navrow::-webkit-scrollbar{display:none}
html body #logoutBtn{white-space:nowrap}

/* ---------- 13. Game-of-the-day banner ---------- */
html body .gotd{background:radial-gradient(120% 220% at 0% 0%,#7c3aed40,transparent 55%),radial-gradient(90% 200% at 100% 100%,#db277726,transparent 55%),linear-gradient(180deg,#141823,#10131c)!important;
  border:1px solid var(--line2);box-shadow:var(--sh1)!important;color:var(--txt)!important}
html body .gotd a{color:#c4b5fd}
html body .gotd small,html body .gotd p{color:var(--txt2)!important}

/* ---------- 14. Arcade / feature game headers: keep each game's hue, calm it down ---------- */
html body .arhd{position:relative;overflow:hidden;isolation:isolate;border:1px solid #ffffff14;box-shadow:var(--sh2)}
html body .arhd::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#08090fe0,#08090f99 55%,#08090f40)}
html body .bldg{gap:10px}

/* ---------- 15. Tabletop Quest & misc spacing ---------- */
html body .tq-box > p{margin-bottom:14px;color:var(--txt2);line-height:1.55}
html body .tq-box h3{font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--mut);margin-bottom:8px}
html body .tq-card{background:linear-gradient(180deg,#151924,#11141d);border-color:var(--line)!important;border-radius:14px;transition:border-color .15s,transform .15s}
html body .tq-card:hover{transform:translateY(-2px);border-color:#363d55!important}
html body .tq-card.on{border-color:var(--blue)!important;box-shadow:0 0 0 1px var(--blue),0 14px 30px -18px var(--blue)}

/* ---------- 16. Game tiles: give each icon its own coloured stage so it pops ---------- */
html body .tile{--tc:#7c5cff;background:radial-gradient(70% 85% at 82% 22%,color-mix(in srgb,var(--tc) 38%,transparent),transparent 70%),linear-gradient(160deg,color-mix(in srgb,var(--tc) 14%,#171b27),#10131c 70%)!important;
  border-color:color-mix(in srgb,var(--tc) 22%,var(--line))!important}
html body .tile:hover{border-color:color-mix(in srgb,var(--tc) 70%,var(--line))!important;box-shadow:0 20px 40px -22px color-mix(in srgb,var(--tc) 80%,#000)}
html body .tile .ico{filter:drop-shadow(0 8px 14px #000a) drop-shadow(0 0 18px color-mix(in srgb,var(--tc) 45%,transparent))}
html body .tile::after{display:none}
html body .tile:nth-child(10n+1){--tc:#8b5cf6}html body .tile:nth-child(10n+2){--tc:#ef4444}html body .tile:nth-child(10n+3){--tc:#3b82f6}html body .tile:nth-child(10n+4){--tc:#f59e0b}html body .tile:nth-child(10n+5){--tc:#10b981}
html body .tile:nth-child(10n+6){--tc:#ec4899}html body .tile:nth-child(10n+7){--tc:#06b6d4}html body .tile:nth-child(10n+8){--tc:#f97316}html body .tile:nth-child(10n+9){--tc:#22c55e}html body .tile:nth-child(10n+10){--tc:#a855f7}
html body .tile .ico{border-radius:50%;background:radial-gradient(circle at 50% 50%,color-mix(in srgb,var(--tc) 55%,#ffffff26) 0%,color-mix(in srgb,var(--tc) 22%,transparent) 45%,transparent 72%)}
html body .tile .ico{background:radial-gradient(circle at 50% 40%,color-mix(in srgb,var(--tc) 55%,#3a4160) 0%,color-mix(in srgb,var(--tc) 30%,#1b2030) 68%,transparent 71%);box-shadow:0 0 34px 6px color-mix(in srgb,var(--tc) 35%,transparent)}
html body .tile .ico img,html body .tile .ico svg{filter:brightness(1.15) saturate(1.1)}
html body .tile .nm{position:relative;z-index:2;text-shadow:0 2px 10px #000c}

/* ---------- 17. Portrait game cards: bold colour, big art, chunky title ---------- */
html body .tiles{grid-template-columns:repeat(auto-fill,minmax(132px,1fr))!important;gap:12px!important}
html body .tile{height:auto!important;aspect-ratio:3/4;padding:0!important;align-items:stretch!important;justify-content:center!important;border-radius:14px!important;
  background:radial-gradient(90% 60% at 50% 38%,color-mix(in srgb,var(--tc) 60%,#ffffff40),transparent 70%),
             linear-gradient(115deg,transparent 0 46%,#ffffff12 46% 58%,transparent 58%),
             linear-gradient(180deg,color-mix(in srgb,var(--tc) 92%,#fff 6%) 0%,color-mix(in srgb,var(--tc) 75%,#000 30%) 62%,color-mix(in srgb,var(--tc) 45%,#000 70%) 100%)!important;
  border:1px solid color-mix(in srgb,var(--tc) 55%,#ffffff22)!important;box-shadow:0 1px 0 #ffffff30 inset,0 14px 28px -16px #000e}
html body .tile:hover{transform:translateY(-4px) scale(1.02);box-shadow:0 1px 0 #ffffff30 inset,0 22px 40px -18px color-mix(in srgb,var(--tc) 85%,#000)}
html body .tile .ico{position:absolute!important;left:50%!important;top:9%!important;right:auto!important;bottom:auto!important;width:70%!important;height:56%!important;transform:translateX(-50%)!important;
  display:flex!important;align-items:center;justify-content:center;font-size:clamp(56px,6vw,84px)!important;opacity:1!important;background:none!important;box-shadow:none!important;border-radius:0;
  filter:drop-shadow(0 10px 14px #0009)!important}
html body .tile:hover .ico{transform:translateX(-50%) scale(1.07) rotate(-3deg)!important}
html body .tile .ico img,html body .tile .ico svg{width:100%;height:100%;filter:none}
html body .tile .nm{position:absolute!important;left:6px;right:6px;bottom:12px;text-align:center;font-family:"Lilita One","Inter",sans-serif;font-weight:400!important;font-size:clamp(17px,1.5vw,21px)!important;
  line-height:1.02;text-transform:uppercase;letter-spacing:.02em!important;color:#fff;background:none!important;padding:0!important;
  text-shadow:0 2px 0 color-mix(in srgb,var(--tc) 40%,#000),0 4px 12px #000a!important;-webkit-text-stroke:.4px #0004}
html body .tile .nm:after{font-family:"Inter",sans-serif;text-transform:none;letter-spacing:0;font-size:10.5px;font-weight:600;color:#ffffffc0;text-shadow:0 1px 4px #000c;margin-top:4px;max-height:0;opacity:0;overflow:hidden;transition:max-height .2s,opacity .2s}
html body .tile:hover .nm:after{max-height:30px;opacity:1}
@media(max-width:700px){html body .tiles{grid-template-columns:repeat(3,1fr)!important;gap:8px!important}html body .tile .nm{font-size:14px!important;bottom:8px}html body .tile .ico{font-size:48px!important}}
html body .tiles{grid-template-columns:repeat(auto-fill,minmax(118px,1fr))!important}
html body .tile .ico{height:50%!important;top:8%!important}
html body .tile .nm{font-size:clamp(15px,1.35vw,19px)!important}

/* ---------- 18. Vibrant chat ---------- */
html body aside{background:radial-gradient(130% 50% at 0% 0%,#7c5cff26,transparent 60%),radial-gradient(120% 40% at 100% 100%,#ec489918,transparent 60%),linear-gradient(180deg,#0d0f1a,#0a0b13)}
html body .jack{background:radial-gradient(120% 140% at 100% 0%,#f2c14e33,transparent 55%),linear-gradient(135deg,#2a1a5e,#16132b 70%);border:1px solid #7c5cff55;box-shadow:0 10px 30px -14px #7c5cffaa}
html body .jack h4{color:#f2c14e}
html body #jp{color:#ffe08a;text-shadow:0 0 12px #f2c14e66}
html body .jqb i,html body #jqbar{background:linear-gradient(90deg,#7c5cff,#ec4899,#f2c14e)!important}

/* player messages: soft bubble, coloured names by rank */
html body .msgc{--mc:#a78bfa;background:linear-gradient(90deg,color-mix(in srgb,var(--mc) 9%,transparent),transparent 85%);border-left:2px solid color-mix(in srgb,var(--mc) 55%,transparent);border-radius:4px 10px 10px 4px;margin-bottom:5px;padding:7px 10px}
html body .msgc:hover{background:linear-gradient(90deg,color-mix(in srgb,var(--mc) 16%,transparent),transparent 90%)}
html body .msgc .nm{color:var(--mc)}
html body .msgc p{color:#d4d7e3}
html body .msgc:has(.rk.r1){--mc:#4ade80}html body .msgc:has(.rk.r2){--mc:#60a5fa}html body .msgc:has(.rk.r3){--mc:#c084fc}html body .msgc:has(.rk.r4){--mc:#fb923c}
html body .msgc:has(.rk.r5){--mc:#f87171}html body .msgc:has(.rk.r6){--mc:#22d3ee}html body .msgc:has(.rk.r7){--mc:#facc15}
html body .msgc.staffm{--mc:#22c55e}html body .msgc.strm{--mc:#d946ef}

/* system / game announcements: colour-coded cards */
html body .msgc[data-u*="Jackpot"],html body .msgc[data-u*="Tips"]{--mc:#f2c14e}
html body .msgc[data-u*="Rain"]{--mc:#22d3ee}
html body .msgc[data-u*="Horse"]{--mc:#fb923c}
html body .msgc[data-u*="Multiplayer"],html body .msgc[data-u*="Duels"]{--mc:#60a5fa}
html body .msgc[data-u*="Levels"],html body .msgc[data-u*="Ranks"],html body .msgc[data-u*="Achievement"]{--mc:#facc15}
html body .msgc[data-u*="Hatchery"],html body .msgc[data-u*="Fishing"]{--mc:#34d399}
html body .msgc[data-u*="Race"],html body .msgc[data-u*="Tournament"],html body .msgc[data-u*="Clan"]{--mc:#f472b6}
html body .msgc[data-u*="Lottery"],html body .msgc[data-u*="Game of the day"],html body .msgc[data-u*="Happy Hour"]{--mc:#e879f9}
html body .msgc[data-u*="Arena"],html body .msgc[data-u*="Last Gem"],html body .msgc[data-u*="Realm"]{--mc:#f87171}
html body .msgc[data-u*="Announcement"],html body .msgc[data-u*="Staff"]{--mc:#7c5cff}
html body .msgc[data-u*="Mine"],html body .msgc[data-u*="Collection"],html body .msgc[data-u*="Trivia"]{--mc:#a78bfa}
html body .msgc .lvl.t1{background:color-mix(in srgb,var(--mc) 22%,#151924);color:var(--mc)}
html body .msgc[data-u*=" "] .nm{font-weight:800}

/* input */
html body .chatin{background:linear-gradient(180deg,transparent,#7c5cff14)}
html body #cin{border-color:#7c5cff44}
html body #csend{background:linear-gradient(135deg,#7c5cff,#c026d3)!important;border-color:#c084fc66}

/* ---------- 19. Lobby categories ---------- */
html body .tcat{grid-column:1/-1;display:flex;align-items:baseline;gap:10px;margin:22px 0 2px;padding-bottom:8px;border-bottom:1px solid var(--line)}
html body .tcat:first-child,html body .tcats > .tcat[style*="order: 0"]{margin-top:4px}
html body .tcat b{font-size:16px;font-weight:800;letter-spacing:-.01em;color:var(--txt)}
html body .tcat small{color:var(--mut);font-size:12px;font-weight:500}
html body .tcat span{margin-left:auto;font-size:11px;font-weight:700;color:var(--txt2);background:var(--card);border:1px solid var(--line2);border-radius:999px;padding:2px 9px}
@media(max-width:700px){html body .tcat small{display:none}html body .tcat{margin-top:16px}}

/* ---------- 20. Feature cards to match the game cards ---------- */
html body .cc{min-height:104px!important;padding:14px 76px 14px 15px!important;border-radius:14px!important;overflow:hidden;
  background:radial-gradient(70% 120% at 92% 70%,color-mix(in srgb,var(--cca) 65%,#ffffff40),transparent 62%),
             linear-gradient(115deg,transparent 0 52%,#ffffff12 52% 62%,transparent 62%),
             linear-gradient(160deg,color-mix(in srgb,var(--cca) 90%,#fff 6%) 0%,color-mix(in srgb,var(--cca) 70%,#000 35%) 60%,color-mix(in srgb,var(--cca) 45%,#000 68%) 100%)!important;
  border:1px solid color-mix(in srgb,var(--cca) 55%,#ffffff22)!important;box-shadow:0 1px 0 #ffffff30 inset,0 14px 28px -16px #000e!important}
html body .cc:hover{transform:translateY(-3px) scale(1.01);box-shadow:0 1px 0 #ffffff30 inset,0 22px 40px -18px color-mix(in srgb,var(--cca) 85%,#000)!important}
html body .cc b{font-family:"Lilita One","Inter",sans-serif;font-weight:400!important;font-size:18px!important;line-height:1.05;text-transform:uppercase;letter-spacing:.02em;color:#fff!important;
  text-shadow:0 2px 0 color-mix(in srgb,var(--cca) 40%,#000),0 4px 12px #000a;position:relative;z-index:1}
html body .cc small{color:#ffffffd0!important;text-shadow:0 1px 4px #0008;position:relative;z-index:1;font-weight:500}
html body .cc .cce{display:none}
html body .cc::after{content:attr(data-ico);position:absolute;right:10px;bottom:6px;font-size:50px;line-height:1;transform:rotate(-8deg);filter:drop-shadow(0 8px 12px #0009);transition:transform .25s cubic-bezier(.2,.8,.2,1);pointer-events:none}
html body .cc:hover::after{transform:rotate(-2deg) scale(1.1)}
html body .cc .live{z-index:2}
html body .cc .mbar,html body .cc [class*="bar"]{position:relative;z-index:1}
@media(max-width:700px){html body .cc{padding-right:58px!important;min-height:92px!important}html body .cc b{font-size:15px!important}html body .cc::after{font-size:38px}}
html body .cc{padding-right:58px!important}html body .cc::after{font-size:44px;right:8px}
html body .cc .adbar{display:none!important}
html body .ctrl select{width:100%;max-width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding:9px 30px 9px 10px}
