/* Xlet Mine — unified interface redesign */
:root {
  color-scheme: dark;
  --bg: #0b1016;
  --bg-soft: #0e151e;
  --s1: #121b25;
  --s2: #172330;
  --s3: #1d2b3a;
  --line: #273746;
  --line-soft: rgba(165, 190, 214, .10);
  --tx: #e8edf3;
  --mu: #8e9dac;
  --gold: #d9b477;
  --gold-d: #a98147;
  --ink: #21190d;
  --dia: #8eb8d9;
  --up: #65bc91;
  --down: #d77d83;
  --r: 13px;
  --ease: cubic-bezier(.2, .75, .25, 1);
  --f-ui: Inter, Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-d: Manrope, Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--tx);
  background: var(--bg);
  font: 500 14px/1.55 var(--f-ui);
  letter-spacing: -.01em;
}
body::before { display: none !important; }
body.noscroll { overflow: hidden; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--dia); outline-offset: 3px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { color: var(--tx); font-family: var(--f-d); font-weight: 700; letter-spacing: -.035em; }
h1 { margin-bottom: 7px; font-size: clamp(27px, 3vw, 34px); line-height: 1.15; }
h2 { margin-bottom: 7px; font-size: 21px; }
h3 { margin-bottom: 7px; font-size: 16px; }
p { margin-bottom: 0; }
b { font-weight: 750; }
.lbl, .hint { color: var(--mu); font-size: 12px; font-weight: 550; }
.eyebrow { display: block; margin-bottom: 8px; color: #91a6b9; font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.err { min-height: 18px; margin: 10px 0 0; color: var(--down); font-size: 13px; }
.info { min-height: 21px; margin: 12px 0 0; color: var(--mu); font-size: 12px; }
.empty { padding: 18px 4px; color: var(--mu); font-size: 13px; }
.art { display: block; width: 100%; height: 100%; }

/* Shared surfaces and controls */
.panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(20, 31, 43, .97), rgba(16, 25, 35, .97));
  box-shadow: 0 12px 32px -26px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255,255,255,.025);
}
.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 9px;
  background: #243444;
  color: #e6edf5;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease, opacity .15s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); border-color: rgba(190,210,228,.24); background: #2a3d50; filter: none; }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { cursor: not-allowed; opacity: .42; }
.btn.sm { min-height: 34px; padding: 6px 10px; font-size: 11px; }
.btn.gold { border-color: #d6b77e; background: #c4a16a; color: #1d180f; box-shadow: none; }
.btn.gold:hover:not(:disabled) { background: #d3b27c; }
.btn.up { border-color: rgba(101,188,145,.32); background: rgba(61,126,94,.2); color: #8bd1ad; }
.btn.up:hover:not(:disabled) { background: rgba(61,126,94,.32); }
.btn.down { border-color: rgba(215,125,131,.32); background: rgba(142,62,69,.2); color: #e09a9f; }
.btn.down:hover:not(:disabled) { background: rgba(142,62,69,.32); }
.btn.wide { width: 100%; }
.link { padding: 5px 4px; border: 0; background: none; color: #9cabb9; font-size: 12px; font-weight: 650; text-decoration: none; cursor: pointer; }
.link:hover { color: var(--tx); text-decoration: none; }
.icon-btn { display: inline-grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #15212c; color: #aebdca; cursor: pointer; }
.icon-btn:hover { background: #1d2c3a; color: var(--tx); }
.icon-btn.off { color: #657585; }
input, select {
  width: 100%; min-height: 43px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 9px;
  background: #0d151e; color: var(--tx); font-weight: 600;
}
input::placeholder { color: #617181; }
input:focus, select:focus { outline: 0; border-color: #7899b8; box-shadow: 0 0 0 3px rgba(125,163,198,.12); }
label { display: block; margin: 14px 0 6px; color: #9eacba; font-size: 12px; font-weight: 650; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.chips button {
  min-height: 32px; padding: 6px 10px; border: 1px solid var(--line);
  border-radius: 7px; background: #15212c; color: #9aabba;
  font-size: 11px; font-weight: 750; cursor: pointer;
}
.chips button:hover { border-color: #607b93; color: var(--tx); }
.chips button.on { border-color: rgba(217,180,119,.6); background: rgba(196,161,106,.15); color: #e4c99a; }

/* Authentication */
.auth { display: grid; min-height: 100vh; place-items: center; padding: 34px 20px; background: radial-gradient(ellipse at 12% 0%, rgba(78,113,145,.14), transparent 42%), #0b1016; }
.floaters { display: none !important; }
.auth-in { display: grid; width: min(920px, 100%); grid-template-columns: 1.1fr .9fr; align-items: center; gap: 64px; }
.intro .word { color: #e1c18e; font-family: var(--f-d); font-size: clamp(39px, 6vw, 58px); font-weight: 800; letter-spacing: -.07em; }
.intro .word::after { content: "."; color: #89a9c3; }
.intro h1 { max-width: 480px; margin: 18px 0 12px; font-size: clamp(26px, 3vw, 36px); line-height: 1.16; }
.intro > p:not(.eyebrow) { max-width: 430px; color: #9aabba; font-size: 14px; }
.auth-features { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.auth-features span { padding: 7px 10px; border: 1px solid var(--line-soft); border-radius: 7px; background: rgba(255,255,255,.025); color: #a8b5c2; font-size: 11px; font-weight: 650; }
.authcard { padding: 26px; border-color: rgba(164,190,213,.14); background: #111b25; box-shadow: 0 24px 65px -38px #000; }
.auth-title { margin-bottom: 22px; }
.auth-title h2 { margin-bottom: 4px; font-size: 21px; }
.auth-title p { margin: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line-soft); border-radius: 9px; background: #0c141c; }
.seg button { min-height: 35px; border: 0; border-radius: 6px; background: transparent; color: #8796a5; font-size: 12px; font-weight: 750; cursor: pointer; }
.seg button.on { background: #213140; color: var(--tx); }
.authcard .btn { margin-top: 18px; }

/* Header and desktop app frame */
.bar { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line-soft); background: rgba(10,16,23,.94); backdrop-filter: blur(16px); }
.bar-in { display: flex; width: min(1450px, 100%); min-height: 68px; align-items: center; gap: 22px; margin: 0 auto; padding: 10px 28px; }
.logo { display: inline-flex; min-width: 205px; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.logo svg { width: 27px; height: 27px; }
.word.sm { color: #e1e8ef; font-family: var(--f-d); font-size: 17px; font-weight: 800; letter-spacing: -.06em; }
.word.sm i { color: #93a9bb; font-style: normal; font-weight: 600; }
.stats { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.chip { display: flex; min-height: 38px; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line-soft); border-radius: 8px; background: #111b25; white-space: nowrap; }
.chip .lbl { font-size: 10px; }
.chip b { font-variant-numeric: tabular-nums; font-size: 13px; }
.chip.bal b { min-width: 7ch; color: #dfc18d; text-align: right; font-size: 15px; }
.chip.inc { align-items: center; }
.chip.inc .lbl { max-width: 125px; overflow: hidden; text-overflow: ellipsis; }
.chip.flash b { animation: balanceFlash .35s ease; }
@keyframes balanceFlash { from { color: #fff; } to { color: #dfc18d; } }
.dot { display: inline-block; width: 7px; height: 7px; flex: none; border-radius: 50%; background: #526272; }
.dot.on { background: #65bc91; }
.dot.boost { background: #d9b477; }
.who { display: flex; align-items: center; gap: 9px; color: #acbac7; font-size: 12px; font-weight: 700; }
.who #h-nick { max-width: 130px; overflow: hidden; color: #d6dfe7; text-overflow: ellipsis; }
.lang-setting { display: flex; align-items: center; gap: 5px; margin: 0; }
.lang-setting .lbl { display: none; }
.lang-setting select { width: 57px; min-height: 34px; padding: 5px 7px; border-radius: 7px; font-size: 11px; }

.app-shell { display: grid; width: min(1450px, 100%); min-height: calc(100vh - 68px); grid-template-columns: 205px minmax(0, 1fr); gap: 34px; margin: 0 auto; padding: 28px; }
.tabs { position: sticky; top: 96px; display: flex; height: max-content; flex-direction: column; gap: 5px; margin: 0; padding: 8px 0; overflow: visible; }
.nav-caption { margin: 0 0 7px 11px; color: #617384; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.nav-caption-space { margin-top: 24px; }
.tabs button { position: relative; display: flex; min-height: 43px; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #8d9dac; font-size: 12px; font-weight: 700; text-align: left; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.tabs button svg { width: 18px; height: 18px; flex: none; color: #8094a7; }
.tabs button:hover:not(.on) { background: rgba(255,255,255,.035); color: #d4dde5; }
.tabs button.on { border-color: rgba(146,176,203,.14); background: #172532; color: #e7edf3; box-shadow: inset 2px 0 #c9a66e; }
.tabs button.on svg { color: #d8bd91; }
.tabs .beta { margin-left: auto; }
.sidebar-foot { display: flex; align-items: center; gap: 8px; margin: 28px 10px 0; padding-top: 14px; border-top: 1px solid var(--line-soft); color: #718191; font-size: 10px; font-weight: 650; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #65bc91; }
main { width: 100%; max-width: 1100px; min-width: 0; margin: 0; padding: 0 0 38px; }
.tab:not([hidden]) { animation: pageEnter .2s ease-out; }
@keyframes pageEnter { from { opacity: .65; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.page-heading { display: flex; min-height: 76px; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 0 0 22px; }
.page-heading .eyebrow { margin-bottom: 7px; }
.page-heading h1 { margin-bottom: 5px; }
.page-heading p { color: var(--mu); font-size: 12px; }
.heading-meta { display: grid; min-width: 95px; justify-items: end; padding: 4px 0 3px 16px; border-left: 1px solid var(--line); }
.meta-label { color: #7c8c9b; font-size: 10px; }
.heading-meta strong { color: #dce4eb; font-size: 19px; }
.heading-meta small { color: #8fa0ae; font-size: 11px; font-weight: 600; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 15px; margin: 25px 0 13px; }
.section-heading h2 { margin: 0 0 3px; font-size: 18px; }
.section-heading p { color: var(--mu); font-size: 11px; }
.sec { margin: 24px 0 12px; font-size: 17px; }
.ver { padding: 28px 0 4px; color: #647586; font-size: 10px; text-align: center; }
.ver span { padding: 0 5px; color: #394b5a; }

/* Mining overview */
.hero { position: relative; display: grid; min-height: 180px; grid-template-columns: minmax(200px,1fr) minmax(270px,1.3fr) 100px; align-items: center; gap: 22px; overflow: hidden; padding: 22px 24px; border-color: rgba(177,199,218,.12); background: linear-gradient(115deg, rgba(29,45,60,.98), rgba(18,29,41,.98) 56%, rgba(23,34,45,.98)); }
.hero::after { position: absolute; top: -90px; right: 80px; width: 270px; height: 270px; border: 1px solid rgba(191,210,225,.07); border-radius: 50%; content: ""; box-shadow: 0 0 0 32px rgba(191,210,225,.018), 0 0 0 64px rgba(191,210,225,.012); pointer-events: none; }
.hero-main { position: relative; z-index: 1; }
.hero-main .lbl { font-size: 9px; letter-spacing: .13em; }
.hero-main h3 { margin: 6px 0 5px; font-size: 18px; }
.hero-inc { display: flex; align-items: baseline; gap: 8px; }
.hero-inc b { color: #e1c28f; font-size: 27px; font-variant-numeric: tabular-nums; letter-spacing: -.045em; }
.hero-inc span { color: #91a2b1; font-size: 11px; }
.mstate { color: #8999a8; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mstate.on { color: #78c69d; }
.hero-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 18px; }
.hero-stats > div { display: flex; flex-direction: column; gap: 2px; padding-left: 12px; border-left: 1px solid rgba(190,211,230,.16); }
.hero-stats .lbl { font-size: 10px; }
.hero-stats b { color: #dce5ec; font-size: 14px; font-variant-numeric: tabular-nums; }
.hero-art { position: relative; z-index: 1; width: 92px; height: 76px; opacity: .8; }
.hero.running { border-color: rgba(105,185,145,.25); }
.hero.boosting { border-color: rgba(217,180,119,.35); }
.daily { margin: 14px 0 0; padding: 16px 18px; }
.dtop { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 13px; }
.dtop h3 { margin: 0 0 2px; font-size: 14px; }
.dtop p { color: var(--mu); font-size: 11px; }
.ddays { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 7px; }
.dday { position: relative; display: flex; min-height: 65px; flex-direction: column; justify-content: center; gap: 2px; padding: 7px 4px; border: 1px solid var(--line-soft); border-radius: 7px; background: #111c26; text-align: center; font-variant-numeric: tabular-nums; }
.dday small { color: #7f91a1; font-size: 9px; }
.dday b { color: #dbe3ea; font-size: 12px; }
.dday i { color: #d0b17c; font-size: 9px; font-style: normal; font-weight: 700; }
.dday.done { opacity: .48; }
.dday.done::after { position: absolute; top: 4px; right: 6px; color: var(--up); content: "✓"; font-size: 9px; }
.dday.now { border-color: rgba(217,180,119,.55); background: rgba(196,161,106,.09); }
.fxbar { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.fx { display: inline-flex; align-items: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 7px; background: #15212c; color: #9fb0bd; font-size: 10px; font-weight: 650; }
.fx.boosting { border-color: rgba(217,180,119,.38); background: rgba(196,161,106,.1); color: #dfc18d; }
.fx.off { color: #8796a4; }
.miners { display: grid; grid-template-columns: repeat(auto-fill,minmax(245px,1fr)); gap: 12px; }
.miner { --c:#8d99b3; display: flex; min-width: 0; flex-direction: column; gap: 10px; padding: 15px; border: 1px solid var(--line-soft); border-radius: 11px; background: #121d27; transition: border-color .15s ease, background .15s ease; }
.miner.off { opacity: .72; }
.miner.running { border-color: color-mix(in srgb,var(--c) 45%,var(--line)); background: #15232e; box-shadow: inset 2px 0 var(--c); }
.mtop { display: flex; align-items: center; gap: 11px; }
.mart { display: grid; width: 58px; height: 48px; flex: none; place-items: center; padding: 5px; border: 1px solid var(--line-soft); border-radius: 8px; background: #0e1821; }
.mname { min-width: 0; flex: 1; }
.mname h3 { overflow: hidden; margin: 0 0 2px; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.mname .lbl { font-size: 10px; }
.pips { display: flex; gap: 3px; margin-top: 6px; }
.pips i { width: 11px; height: 4px; border-radius: 2px; background: #334454; }
.pips i.on { background: var(--c); }
.switch { position: relative; width: 40px; height: 23px; flex: none; border: 1px solid #35495b; border-radius: 99px; background: #1b2a38; cursor: pointer; }
.switch i { position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #9aa8b5; transition: transform .18s ease, background .18s ease; }
.switch.on { border-color: rgba(101,188,145,.55); background: rgba(69,139,103,.3); }
.switch.on i { transform: translateX(17px); background: #80c9a2; }
.mi-inc { color: #dce5ec; font-size: 12px; }
.mi-inc b { font-size: 17px; font-variant-numeric: tabular-nums; }
.mi-nx { min-height: 17px; color: #7f909e; font-size: 10px; }
.miner .btn { margin-top: auto; }
.bump { animation: bump .3s ease; }
@keyframes bump { 40% { border-color: var(--gold); } }

/* Exchange */
.ex { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(300px,.9fr); align-items: start; gap: 14px; }
.chartbox { padding: 18px; }
.chead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.price { display: grid; align-items: baseline; grid-template-columns: auto 1fr auto; gap: 4px 10px; }
.price .lbl { grid-column: 1/-1; font-size: 9px; letter-spacing: .12em; }
.price b { color: #e3eaf0; font-size: 26px; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.delta { font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.delta.u { color: var(--up); }
.delta.d { color: var(--down); }
.timer { display: flex; align-items: center; gap: 7px; padding-bottom: 4px; text-align: right; }
.timer b { display: none; }
.timer .lbl { font-size: 10px; }
#chart { display: block; width: 100%; height: 315px; border: 1px solid rgba(150,176,198,.1); border-radius: 8px; background: #0c141c; }
.tbar { height: 3px; margin-top: 10px; overflow: hidden; border-radius: 99px; background: #263645; }
.tbar i { display: block; height: 100%; width: 0; background: #a4c3da; transition: width .1s linear; }
.streak { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.streak .lbl { font-size: 10px; }
.sticks { display: flex; gap: 3px; }
.sticks i { display: block; width: 7px; height: 16px; border-radius: 2px; }
.sticks i.u { background: #5fae8c; }
.sticks i.d { background: #b96c74; }
.betbox { padding: 18px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.panel-heading h2 { margin: 0; font-size: 18px; }
.panel-heading .eyebrow { margin: 0 0 4px; }
.limit-pill { padding: 5px 8px; border: 1px solid rgba(217,180,119,.24); border-radius: 6px; background: rgba(196,161,106,.08); color: #d8bd91; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.subheading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.subheading h3 { margin: 0; font-size: 12px; }
.subheading .lbl { font-size: 9px; }
.updown { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; }
.updown .btn { min-height: 46px; font-size: 13px; }
.perk { margin-bottom: 12px; padding: 9px 11px; border: 1px solid rgba(217,180,119,.25); border-radius: 7px; background: rgba(196,161,106,.08); color: #d8bd91; font-size: 11px; }
.info.win { color: var(--up); }
.info.lose { color: var(--down); }

/* Cases */
.casebar { display: grid; grid-template-columns: auto auto minmax(250px,1fr); align-items: center; gap: 22px; margin-bottom: 15px; padding: 13px 15px; border-radius: 10px; background: #111b25; }
.cb-col { min-width: 0; }
.cb-col .lbl { display: block; margin-bottom: 5px; font-size: 9px; letter-spacing: .1em; }
.cb-col .chips { margin: 0; }
.cases { display: grid; grid-template-columns: repeat(auto-fill,minmax(218px,1fr)); gap: 12px; }
.case {
  --k:#8295a7;
  position: relative; display: flex; min-width: 0; min-height: 285px; flex-direction: column; align-items: stretch; gap: 9px; overflow: hidden;
  padding: 15px; border: 1px solid rgba(160,185,207,.12); border-radius: 11px;
  background: linear-gradient(150deg,#172431,#111b25 70%);
  box-shadow: 0 12px 24px -25px #000; transition: border-color .15s ease, background .15s ease, transform .15s ease;
  transform: none !important;
}
.case::before { position: absolute; inset: 0 auto 0 0; width: 2px; background: var(--k); opacity: .8; content: ""; }
.case:hover { border-color: color-mix(in srgb,var(--k) 38%,var(--line)); background: linear-gradient(150deg,#1a2937,#131e29 70%); box-shadow: none; transform: translateY(-2px) !important; }
.case .cglow { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 24%,color-mix(in srgb,var(--k) 10%,transparent),transparent 62%); opacity: .55; pointer-events: none; }
.case .cnum { position: absolute; top: 14px; left: 15px; z-index: 1; color: #6e8191; font-size: 8px; font-style: normal; font-weight: 800; letter-spacing: .13em; }
.case .ribbon { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 3px 6px; border: 1px solid rgba(217,180,119,.28); border-radius: 5px; background: rgba(196,161,106,.12); color: #d9bd8e; font-size: 8px; font-style: normal; font-weight: 800; letter-spacing: .1em; }
.case .cart { position: relative; display: flex; width: 100%; height: 116px; align-items: center; justify-content: center; margin-top: 6px; }
.case .cart .art { width: auto; max-width: 138px; max-height: 106px; filter: saturate(.8) drop-shadow(0 7px 12px rgba(0,0,0,.36)); }
.case h3 { position: relative; margin: 0; color: #e0e7ed; font-size: 14px; font-weight: 750; text-align: left; }
.case .cgrp { position: relative; color: #8294a4; font-size: 10px; }
.case .cprice { position: relative; display: flex; align-items: center; gap: 7px; padding: 8px 9px; border: 1px solid rgba(160,185,207,.09); border-radius: 7px; background: rgba(5,12,18,.22); color: #e2c695; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.case .cprice .ci { display: inline-flex; width: 17px; height: 17px; }
.case .cprice .ci .art { width: 17px; height: 17px; }
.case .cstats { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 2px; }
.case .cstats > div { display: flex; flex-direction: column; gap: 2px; padding-left: 8px; border-left: 1px solid var(--line); }
.case .cstats small { color: #718394; font-size: 9px; }
.case .cstats b { color: #c6d1db; font-size: 11px; }
.case .btn.open { position: relative; min-height: 38px; margin-top: auto; border: 1px solid color-mix(in srgb,var(--k) 32%,var(--line)); border-radius: 7px; background: color-mix(in srgb,var(--k) 13%,#1a2936); color: #dce5ec; box-shadow: none; font-size: 11px; }
.case .btn.open:hover:not(:disabled) { background: color-mix(in srgb,var(--k) 22%,#1a2936); border-color: color-mix(in srgb,var(--k) 55%,var(--line)); }
.case .btn.open:disabled { background: #17222d; }
.case .link { position: relative; align-self: center; color: #8293a3; font-size: 10px; }
.case .link:hover { color: #dce5ec; }
.case.poor { opacity: .78; }
.stage { position: relative; margin: 0 0 15px; padding: 16px; overflow: hidden; border-color: rgba(160,185,207,.13); background: #111c26; scroll-margin-top: 90px; }
.stage::before { display: none; }
.stage.show { animation: none; }
.stage-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.stage-top b { font-size: 13px; }
.reel { position: relative; height: 174px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #0a121a; }
.rstrip { position: absolute; top: 0; left: 0; display: flex; height: 100%; gap: 8px; padding: 9px 0 9px 9px; will-change: transform; }
.rline { position: absolute; top: 0; bottom: 0; left: 50%; z-index: 3; width: 2px; margin-left: -1px; background: #d9b477; box-shadow: 0 0 8px rgba(217,180,119,.35); }
.rline::before,.rline::after { position: absolute; left: -6px; border: 7px solid transparent; content: ""; }
.rline::before { top: 0; border-top-color: #d9b477; }
.rline::after { bottom: 0; border-bottom-color: #d9b477; }
.rfade { position: absolute; z-index: 2; top: 0; bottom: 0; width: 14%; pointer-events: none; }
.rfade.l { left: 0; background: linear-gradient(90deg,#0a121a,transparent); }
.rfade.r { right: 0; background: linear-gradient(270deg,#0a121a,transparent); }
.cell { --rc:#8798a8; position: relative; display: flex; width: 126px; height: 154px; flex: 0 0 126px; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; padding: 8px 6px; border: 1px solid rgba(160,185,207,.13); border-bottom: 2px solid var(--rc); border-radius: 8px; background: #172431; text-align: center; transition: opacity .3s,transform .3s; }
.cell::before { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(145deg,color-mix(in srgb,var(--rc) 9%,transparent),transparent 60%); content: ""; pointer-events: none; }
.cell .cart { position: relative; width: 84px; height: 84px; margin-bottom: 2px; }
.cell small { position: relative; color: var(--rc); font-size: 9px; font-weight: 800; }
.cell b { position: relative; font-size: 11px; line-height: 1.2; }
.cell span { position: relative; color: var(--mu); font-size: 10px; }
.cell.hit { transform: scale(1.035); box-shadow: 0 0 0 1px var(--rc); }
.cell.carddrop { border-color: color-mix(in srgb,var(--rc) 45%,var(--line)); background: #192a36; }
.cell.carddrop .cart .art { max-width: 96px; max-height: 96px; }
.cell[data-tier="5"]::after,.cell[data-tier="6"]::after { display: none !important; }
.rmulti { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fill,minmax(126px,1fr)); justify-items: center; gap: 9px; }
.flip { position: relative; width: 126px; height: 154px; perspective: 700px; }
.flip .back,.flip .front { position: absolute; inset: 0; backface-visibility: hidden; transition: transform .4s ease; }
.flip .back { display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #1b2a37; color: #93a5b4; font-size: 25px; }
.flip .front { transform: rotateY(180deg); }
.flip.on .back { transform: rotateY(-180deg); }
.flip.on .front { transform: rotateY(0); }
.flip.best .front { box-shadow: 0 0 0 1px var(--gold); }
.rres { position: relative; z-index: 2; min-height: 20px; margin-top: 13px; color: #dce5ec; font-size: 13px; text-align: center; }
.rtot { font-size: 14px; font-weight: 800; }
.rnet { margin-top: 5px; font-size: 11px; font-weight: 700; }
.rnet.up { color: var(--up); }
.rnet.down { color: var(--down); }
.ract { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.carddrop-note { margin-top: 10px; padding: 9px 11px; border: 1px solid rgba(142,184,217,.2); border-radius: 7px; background: rgba(95,140,177,.08); color: #afc8dc; font-size: 11px; }

/* Inventory and cards */
.mycards { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 10px; }
.mycard { --rc:#8798a8; display: flex; min-width: 0; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line-soft); border-left: 2px solid var(--rc); border-radius: 9px; background: #121d27; }
.mycard .cart.sm { display: grid; width: 42px; height: 50px; flex: none; place-items: center; }
.mycard .cart.sm .art { max-width: 42px; max-height: 50px; }
.iname { min-width: 0; flex: 1; }
.iname b { display: block; color: #dbe3ea; font-size: 12px; }
.iname small { display: block; margin-top: 3px; color: #8393a1; font-size: 10px; line-height: 1.4; }
.mcb { display: flex; flex: none; flex-direction: column; gap: 5px; }
.daily .btn { flex: none; }
.invbar { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin: 0 0 12px; }
.istat { display: flex; flex-direction: column; gap: 3px; }
.istat .lbl { font-size: 10px; }
.istat b { color: #dce5ec; font-size: 15px; font-variant-numeric: tabular-nums; }
.iact { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.invgrid { display: grid; grid-template-columns: repeat(auto-fill,minmax(145px,1fr)); gap: 10px; }
.invcell { position: relative; display: flex; min-height: 205px; flex-direction: column; align-items: center; gap: 4px; padding: 12px; border: 1px solid var(--line-soft); border-bottom: 2px solid var(--rc); border-radius: 9px; background: #121d27; }
.invcell .cart { width: 90px; height: 100px; }
.invcell .cart .art { max-width: 90px; max-height: 100px; }
.invcell small { color: var(--rc); font-size: 10px; }
.invcell b { font-size: 12px; text-align: center; }
.invcell .btn { width: 100%; margin-top: auto; }
.cnt { position: absolute; top: 8px; right: 8px; z-index: 2; padding: 2px 6px; border: 1px solid var(--line); border-radius: 5px; background: #1d2b39; color: #dce5ec; font-size: 10px; font-style: normal; font-weight: 800; }

/* Withdraw and history */
.wd { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: 14px; }
.wd .panel { padding: 19px; }
.betabox { margin-bottom: 14px; padding: 11px 14px; border: 1px solid rgba(217,180,119,.22); border-radius: 8px; background: rgba(196,161,106,.07); color: #aeb9c2; font-size: 11px; }
.betabox b { color: #dfc18d; }
.wlist { display: flex; flex-direction: column; gap: 7px; }
.wi { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 11px; border: 1px solid var(--line-soft); border-radius: 7px; background: #111c26; font-variant-numeric: tabular-nums; }
.wi b { font-size: 12px; }
.wi small { display: block; margin-top: 2px; color: #8191a0; font-size: 10px; }
.st { padding: 4px 7px; border-radius: 5px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.st.pending { background: rgba(217,180,119,.12); color: #d7b77d; }
.st.paid { background: rgba(101,188,145,.12); color: #7ac69e; }
.st.rejected { background: rgba(215,125,131,.12); color: #dc9297; }

/* Modals, notifications */
.modal { position: fixed; z-index: 60; display: grid; inset: 0; place-items: center; padding: 18px; background: rgba(3,7,11,.82); backdrop-filter: blur(7px); }
.modal-box { position: relative; width: min(550px,100%); max-height: 88vh; overflow: auto; padding: 20px; }
.m-close { position: absolute; top: 12px; right: 12px; }
.mhead { display: flex; align-items: center; gap: 12px; padding-right: 34px; }
.mhead h3 { margin: 0 0 4px; }
.mcrate { width: 62px; height: 56px; flex: none; }
.inside { display: flex; flex-direction: column; gap: 6px; margin-top: 15px; }
.irow { --rc:#8798a8; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line-soft); border-left: 2px solid var(--rc); border-radius: 7px; background: #111c26; }
.irow .cart.sm { display: grid; width: 42px; height: 42px; flex: none; place-items: center; }
.irow .cart.sm .art { max-width: 42px; max-height: 42px; }
.ival { text-align: right; font-variant-numeric: tabular-nums; }
.ival b { display: block; font-size: 11px; }
.ival small { color: var(--mu); font-size: 9px; }
.toasts { position: fixed; z-index: 70; right: 22px; bottom: 22px; display: flex; width: min(380px,calc(100vw - 28px)); flex-direction: column; gap: 7px; }
.toast { padding: 11px 13px; border: 1px solid var(--line); border-left: 3px solid var(--dia); border-radius: 8px; background: #172431; color: #dce5ec; font-size: 12px; font-weight: 650; box-shadow: 0 14px 30px -18px #000; animation: toastIn .18s ease-out; }
.toast.bad { border-left-color: var(--down); }
.toast.good { border-left-color: var(--up); }
@keyframes toastIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.beta { padding: 3px 6px; border: 1px solid rgba(217,180,119,.25); border-radius: 5px; background: rgba(196,161,106,.1); color: #d9bd8e; font-size: 8px; font-style: normal; font-weight: 800; letter-spacing: .08em; }
.beta.big { align-self: center; padding: 5px 8px; font-size: 9px; }

/* Small screens */
@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 175px minmax(0,1fr); gap: 22px; padding: 22px; }
  .logo { min-width: 175px; }
  .hero { grid-template-columns: minmax(170px,1fr) minmax(250px,1.3fr); }
  .hero-art { display: none; }
  .casebar { grid-template-columns: 1fr 1fr; }
  .casebar .cb-col:last-child { grid-column: 1/-1; }
}
@media (max-width: 820px) {
  .bar-in { min-height: 58px; flex-wrap: wrap; gap: 8px; padding: 8px 13px; }
  .logo { min-width: 0; }
  .logo svg { width: 24px; height: 24px; }
  .word.sm { font-size: 15px; }
  .stats { order: 3; width: 100%; gap: 6px; margin: 0; }
  .chip { min-width: 0; flex: 1; justify-content: center; gap: 5px; padding: 5px 7px; }
  .chip.inc .lbl { max-width: 78px; }
  .chip.inc .lbl:last-child { display: none; }
  .chip.bal b { min-width: 0; font-size: 13px; }
  .who { margin-left: auto; gap: 6px; }
  .who #h-nick { max-width: 85px; }
  .lang-setting select { width: 51px; min-height: 32px; }
  .icon-btn { width: 33px; height: 33px; }
  .app-shell { display: block; min-height: calc(100vh - 112px); padding: 19px 13px 92px; }
  .tabs { position: fixed; z-index: 40; right: 0; bottom: 0; left: 0; display: flex; height: auto; flex-direction: row; justify-content: space-around; gap: 2px; margin: 0; padding: 7px 7px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); background: rgba(10,16,23,.97); backdrop-filter: blur(14px); }
  .nav-caption, .sidebar-foot { display: none; }
  .tabs button { display: flex; min-width: 0; min-height: 52px; flex: 1; flex-direction: column; justify-content: center; gap: 3px; padding: 5px 1px; border: 0; border-radius: 7px; font-size: 9px; text-align: center; }
  .tabs button svg { width: 18px; height: 18px; }
  .tabs button.on { background: #1a2a37; box-shadow: inset 0 2px #c9a66e; }
  .tabs button .beta { position: absolute; top: -3px; right: 2px; margin: 0; font-size: 7px; }
  main { max-width: none; padding: 0; }
  .page-heading { min-height: 0; align-items: center; margin-bottom: 16px; }
  .page-heading h1 { font-size: 25px; }
  .page-heading p { max-width: 48ch; font-size: 11px; }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 16px; padding: 17px; }
  .hero-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .hero-stats > div { padding-left: 9px; }
  .daily { padding: 13px; }
  .ddays { gap: 4px; }
  .dday { min-height: 58px; padding: 5px 2px; }
  .dday small { font-size: 8px; }
  .dday b { font-size: 10px; }
  .miners { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .miner { padding: 11px; gap: 8px; }
  .mart { width: 44px; height: 40px; }
  .mname h3 { font-size: 11px; }
  .switch { width: 36px; height: 21px; }
  .switch i { width: 13px; height: 13px; }
  .switch.on i { transform: translateX(15px); }
  .mi-inc b { font-size: 15px; }
  .mi-nx { font-size: 9px; }
  .miner .btn { min-height: 36px; padding: 7px; font-size: 10px; }
  .ex, .wd { grid-template-columns: 1fr; gap: 10px; }
  #chart { height: 250px; }
  .casebar { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 12px; }
  .casebar .cb-col:last-child { grid-column: auto; }
  .cases { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .case { min-height: 252px; gap: 7px; padding: 11px; }
  .case .cart { height: 96px; }
  .case .cart .art { max-width: 110px; max-height: 88px; }
  .case h3 { font-size: 12px; }
  .case .cprice { padding: 7px; font-size: 11px; }
  .case .cstats small { font-size: 8px; }
  .case .cstats b { font-size: 10px; }
  .case .btn.open { min-height: 35px; padding: 6px; font-size: 10px; }
  .case .link { font-size: 9px; }
  .mycards { grid-template-columns: 1fr; }
  .invbar { gap: 14px; }
  .iact { width: 100%; margin-left: 0; }
  .iact .btn { flex: 1; }
  .invgrid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .toasts { right: 10px; bottom: 78px; left: 10px; width: auto; }
  .ver { padding-bottom: 0; }
}
@media (max-width: 430px) {
  .who #h-nick { display: none; }
  .who .link { font-size: 10px; }
  .chip.inc .lbl { max-width: 54px; }
  .page-heading .heading-meta { min-width: 72px; padding-left: 10px; }
  .heading-meta strong { font-size: 16px; }
  .price { grid-template-columns: auto auto; }
  .price .lbl { grid-column: 1/-1; }
  .price b { font-size: 23px; }
  .chead { align-items: center; }
  #chart { height: 215px; }
  .subheading { align-items: flex-start; flex-direction: column; gap: 2px; }
  .reel { height: 156px; }
  .cell, .flip { width: 116px; height: 136px; flex-basis: 116px; }
  .cell .cart { width: 68px; height: 68px; }
  .case { min-height: 238px; }
  .case .cstats { gap: 5px; }
  .auth { padding: 22px 14px; }
  .auth-in { grid-template-columns: 1fr; gap: 24px; }
  .intro .word { font-size: 40px; }
  .intro h1 { margin: 11px 0 8px; font-size: 25px; }
  .intro > p:not(.eyebrow) { font-size: 12px; }
  .auth-features { margin-top: 14px; }
  .authcard { padding: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.intro .word, .word.sm { -webkit-text-fill-color: currentColor; background: none; filter: none; }
/* Disable leftover decorative effects from the legacy stylesheet. */
.panel::before, .btn::after, .chip.bal::before, .hero-art::before, .case::after, .cell::after { display: none !important; }
.logo svg { filter: none !important; animation: none !important; }
.dday.now { animation: none !important; box-shadow: none !important; }
.stage::before, .stage.flash::after { display: none !important; }
.stage.shake { animation: none !important; }
.case .cart .art { animation: none !important; }
.case.t3::before { animation: none !important; background: var(--k) !important; }
.case.t3 { background: linear-gradient(150deg,#1b2835,#121d27 70%) !important; }
.case.poor { filter: none !important; }
.case .cprice b { color: #e2c695; font-family: inherit; text-shadow: none !important; }
.case.t1 .cnum, .case.t2 .cnum, .case.t3 .cnum { box-shadow: none !important; }
.case .cart::after { display: none !important; }
.case.poor:hover { transform: translateY(-2px) !important; }
.case.poor .cprice b { color: #d8a3a7 !important; text-shadow: none !important; }
.chip.inc { border-radius: 8px; box-shadow: none; }
.chip.bal { border-color: var(--line-soft); background: #111b25; box-shadow: none; }
.chip.bal b { text-shadow: none; }
.hero-stats > div { padding: 0 0 0 12px; border: 0; border-left: 1px solid rgba(190,211,230,.16); border-radius: 0; background: none; }
.daily { border-color: var(--line-soft); background: #121d27; box-shadow: none; }
.invcell[data-tier="5"], .invcell[data-tier="6"] { box-shadow: none !important; }

/* Inventory cards: readable, consistent layout with full-width descriptions. */
#t-inv .section-heading { margin-top: 18px; margin-bottom: 14px; }
#t-inv .mycards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
  align-items: stretch;
  gap: 14px;
}
#t-inv .mycard {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  min-height: 184px;
  gap: 13px;
  padding: 16px;
  border: 1px solid #263746;
  border-left: 3px solid var(--rc, #8595a5);
  border-radius: 11px;
  background: linear-gradient(145deg, #17232e 0%, #121c26 78%);
  box-shadow: 0 5px 18px rgba(0,0,0,.12);
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
#t-inv .mycard:hover {
  border-color: color-mix(in srgb, var(--rc, #8595a5) 38%, #304252);
  background: linear-gradient(145deg, #1b2a37 0%, #14202b 78%);
  transform: translateY(-2px);
}
#t-inv .mycard-top { display: flex; min-width: 0; align-items: center; gap: 13px; }
#t-inv .mycard-art {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--rc, #8595a5) 36%, #293a49);
  border-radius: 10px;
  background: #0e1821;
}
#t-inv .mycard-art .cart.sm { display: grid; width: 46px; height: 46px; place-items: center; }
#t-inv .mycard-art .cart.sm .art { display: block; max-width: 44px; max-height: 44px; }
#t-inv .mycard-heading { min-width: 0; flex: 1; }
#t-inv .mycard-title { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; }
#t-inv .mycard-title b { overflow: hidden; color: #e2e9ef; font-size: 14px; font-weight: 760; line-height: 1.35; text-overflow: ellipsis; }
#t-inv .card-count {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid #334656;
  border-radius: 6px;
  background: #1d2c39;
  color: #d8e2ea;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
#t-inv .mycard-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
#t-inv .card-rarity, #t-inv .card-category {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 2px 7px;
  border: 1px solid #2a3b49;
  border-radius: 5px;
  background: rgba(5,12,18,.22);
  color: #a7b5c0;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .055em;
  text-transform: uppercase;
}
#t-inv .card-category { color: #d3bc90; border-color: rgba(207,174,119,.2); }
#t-inv .mycard-desc {
  display: -webkit-box;
  min-width: 0;
  min-height: 38px;
  margin: 0;
  overflow: hidden;
  color: #9aa9b6;
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
#t-inv .mycard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(135,157,175,.13);
}
#t-inv .mycard-owned { color: #728594; font-size: 10px; font-weight: 700; }
#t-inv .mycard .mcb { display: flex; flex-direction: row; flex-wrap: wrap; gap: 7px; }
#t-inv .mycard .mcb .btn { min-width: 92px; min-height: 32px; padding: 6px 11px; border-radius: 6px; font-size: 11px; }
#t-inv .mycard .mcb .btn:disabled { opacity: .5; cursor: wait; }
#t-inv .mycards-empty {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 24px;
  border: 1px dashed #304352;
  border-radius: 10px;
  background: rgba(17,29,40,.55);
  color: #d4dee6;
  text-align: center;
}
#t-inv .mycards-empty .empty-mark { color: #8c9daa; font-size: 25px; }
#t-inv .mycards-empty p { margin: 0; color: #899aa8; font-size: 12px; }

/* Cards are managed from Inventory only; the exchange stays focused on the chart and stake. */
@media (max-width: 760px) {
  #t-inv .mycards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  #t-inv .mycard { min-height: 172px; padding: 13px; }
  #t-inv .mycard-title b { font-size: 13px; }
}


/* v12 inventory cards: one clear vertical flow, no squeezed title/description columns. */
#t-inv .mycards {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch;
  gap: 14px !important;
}
#t-inv .mycard {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start;
  min-width: 0;
  min-height: 205px;
  height: 100%;
  gap: 12px !important;
  padding: 15px !important;
  border: 1px solid #2b3b49 !important;
  border-left: 3px solid var(--rc, #8595a5) !important;
  border-radius: 10px !important;
  background: #121c26 !important;
  box-shadow: 0 5px 16px rgba(0,0,0,.14) !important;
}
#t-inv .mycard:hover {
  transform: translateY(-1px) !important;
  border-color: color-mix(in srgb, var(--rc, #8595a5) 48%, #334553) !important;
  background: #16232e !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.2) !important;
}
#t-inv .mycard-top {
  display: flex !important;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 12px !important;
}
#t-inv .mycard-art {
  width: 54px !important;
  height: 54px !important;
  flex: 0 0 54px !important;
  border-radius: 8px !important;
  background: #0c151d !important;
}
#t-inv .mycard-art .cart.sm { width: 44px !important; height: 44px !important; }
#t-inv .mycard-art .cart.sm .art { max-width: 42px !important; max-height: 42px !important; }
#t-inv .mycard-heading { flex: 1 1 auto; min-width: 0; }
#t-inv .mycard-title { display: flex; align-items: flex-start; gap: 8px; }
#t-inv .mycard-title b {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  color: #e6edf3 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}
#t-inv .card-count { margin-left: auto; }
#t-inv .mycard-tags { margin-top: 6px !important; }
#t-inv .mycard-desc {
  display: -webkit-box !important;
  min-height: 42px !important;
  margin: 0 !important;
  overflow: hidden;
  color: #a1afba !important;
  font-size: 11.5px !important;
  line-height: 1.48 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
#t-inv .mycard-actions {
  display: flex !important;
  width: 100%;
  min-width: 0;
  margin-top: auto;
  padding-top: 10px !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px !important;
  border-top: 1px solid rgba(135,157,175,.14) !important;
}
#t-inv .mycard-owned { font-size: 10px !important; white-space: nowrap; }
#t-inv .mycard .mcb { display: flex !important; flex-direction: row !important; flex-wrap: wrap; justify-content: flex-end; gap: 6px !important; }
#t-inv .mycard .mcb .btn { min-width: 0 !important; min-height: 32px !important; padding: 6px 10px !important; border-radius: 6px !important; font-size: 10.5px !important; white-space: nowrap; }
@media (max-width: 1100px) {
  #t-inv .mycards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 650px) {
  #t-inv .mycards { grid-template-columns: minmax(0, 1fr) !important; gap: 10px !important; }
  #t-inv .mycard { min-height: 190px; padding: 13px !important; }
  #t-inv .mycard-title b { font-size: 13px !important; }
}

/* Risk cases are clearly marked without overpowering the rest of the collection. */
.case.risk-case { border-color: rgba(201,102,112,.38); }
.case.risk-case .cnum { color: #e38b91; border-color: rgba(211,103,113,.42); }
.case.risk-case .cstats div:last-child b { color: #e18a91; }
.lossdrop { border-color: rgba(214,102,112,.34) !important; }
.lossdrop .cell span { color: #e18a91 !important; }
.risk-result {
  padding: 10px 12px;
  border: 1px solid rgba(214,102,112,.3);
  border-radius: 7px;
  background: rgba(120,38,48,.15);
  color: #e99aa0;
  font-size: 12px;
  font-weight: 700;
}
