/* Midas screens: home (slides, originals cards, case catalogue), the case screen, Награды, Гонка, profile bits.
   Gold hairlines on dark warm cards; the main action is the gold gradient. */
.card, .og, .mc-tile, .rw-case, .slide { box-shadow: inset 0 0 0 1px rgba(242,193,78,.08); }
.h-sec { font-size: 17px; letter-spacing: 0; }
.logo { font-style: normal; }
.page-title { font-size: 24px; }
.nav-btn.on { background: linear-gradient(180deg, rgba(242,193,78,.24), rgba(242,193,78,.1)); color: #ffe7a6; }

/* promo slides */
.slides { display: flex; gap: 10px; overflow-x: auto; margin: 10px -16px 0; padding: 0 16px 2px; scroll-snap-type: x mandatory; scroll-padding-left: 16px; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: none; width: calc(100% - 28px); height: 128px; border-radius: var(--r-card); overflow: hidden; scroll-snap-align: start; text-align: left;
  background: radial-gradient(120% 140% at 100% 50%, var(--c1), var(--c2) 62%, #120e08); }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,8,5,.7), rgba(10,8,5,.15) 62%, transparent); }
.sl-body { position: relative; z-index: 1; height: 100%; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; max-width: 64%; }
.sl-body .tag { background: rgba(255,255,255,.9); }
.sl-body b { font-size: 20px; line-height: 1.15; font-weight: 800; letter-spacing: -.3px; text-wrap: balance; }
.sl-body small { margin-top: auto; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.82); }
.slide img { position: absolute; right: 10px; top: 50%; width: 104px; height: 104px; margin-top: -52px; z-index: 1; filter: drop-shadow(0 12px 16px rgba(0,0,0,.5)); }

/* Midas Originals cards */
.og-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.og { position: relative; min-width: 0; height: 128px; border-radius: var(--r-card); overflow: hidden; text-align: left;
  background: radial-gradient(90% 110% at 70% 40%, color-mix(in srgb, var(--c1) 70%, transparent), var(--c2) 70%, #110d07); }
.og.wide { grid-column: span 2; height: 148px; }
.og-art { position: absolute; inset: 0; }
.og-g { position: absolute; filter: drop-shadow(0 10px 14px rgba(0,0,0,.5)); }
.og .g0 { width: 74px; height: 74px; right: 12px; bottom: 12px; }
.og .g1 { width: 50px; height: 50px; right: 74px; bottom: 30px; transform: rotate(-12deg); opacity: .92; }
.og .g2 { width: 44px; height: 44px; right: 14px; top: 10px; transform: rotate(12deg); opacity: .9; }
.og.wide .g0 { width: 104px; height: 104px; right: 22px; bottom: 16px; }
.og.wide .g1 { width: 62px; height: 62px; right: 108px; bottom: 24px; }
.og.wide .g2 { width: 56px; height: 56px; right: 12px; top: 8px; }
.og-chip { position: absolute; left: 10px; top: 10px; height: 30px; padding: 0 10px 0 8px; border-radius: 10px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(12,10,7,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 14px; font-weight: 800; color: #fff; }
.og-chip svg { color: #ffe7a6; }
.og-sub { position: absolute; left: 12px; bottom: 34px; max-width: 46%; font-size: 13px; line-height: 1.3; font-weight: 700; color: rgba(255,255,255,.86); text-wrap: balance; }
.og-live { position: absolute; left: 12px; bottom: 11px; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; color: rgba(255,255,255,.86); }
.og-live::before { content: ""; width: 7px; height: 7px; border-radius: 4px; background: #5dffa8; box-shadow: 0 0 6px #5dffa8; }

/* case art + catalogue */
.mc-art { position: relative; display: block; height: 104px; border-radius: 12px; overflow: hidden;
  background: radial-gradient(80% 90% at 50% 30%, var(--c1), var(--c2) 75%, #0f0b06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.mc-box { position: absolute; left: 50%; bottom: 10px; width: 64%; height: 38%; transform: translateX(-50%); border-radius: 8px 8px 10px 10px;
  background: linear-gradient(180deg, rgba(20,15,8,.72), rgba(8,6,3,.9)); box-shadow: inset 0 0 0 1.5px rgba(242,193,78,.55), 0 8px 14px rgba(0,0,0,.4); }
.mc-box::before { content: ""; position: absolute; left: 0; right: 0; top: 28%; height: 1.5px; background: rgba(242,193,78,.55); }
.mc-box::after { content: ""; position: absolute; left: 50%; top: 18%; width: 14%; height: 34%; transform: translateX(-50%); border-radius: 3px; background: var(--gold-grad); }
.mc-art img { position: absolute; left: 50%; top: 8px; width: 62px; height: 62px; transform: translateX(-50%); filter: drop-shadow(0 8px 10px rgba(0,0,0,.5)); }
.mc-art.big { height: 150px; }
.mc-art.big img { width: 92px; height: 92px; top: 10px; }
.mc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mc-tile { min-width: 0; padding: 6px 6px 10px; border-radius: var(--r-card); background: var(--s1); display: grid; gap: 4px; text-align: left; }
.mc-tile b { padding: 4px 4px 0; font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-price { justify-self: start; margin: 0 4px; height: 28px; padding: 0 10px; border-radius: 14px; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; background: rgba(242,193,78,.12); color: #ffe7a6; }
.mc-price.big { height: 34px; padding: 0 14px; border-radius: 17px; font-size: 17px; }
.mc-row { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
.mc-row::-webkit-scrollbar { display: none; }
.mc-row .mc-tile { flex: none; width: 140px; }

/* case screen */
.mc-top { display: flex; align-items: center; gap: 10px; margin: 8px 0 10px; }
.mc-top b { font-size: 16px; font-weight: 800; }
.mc-top #mc-back svg { transform: rotate(180deg); }
.mc-top .fair { margin-left: auto; }
.mc-hero { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: center; }
.mc-hero h1 { margin: 0 0 8px; font-size: 24px; font-weight: 800; letter-spacing: -.3px; }
.mc-hero small { display: block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--fg2); }
.mc-stage { position: relative; margin: 16px -16px 12px; padding: 12px 0; min-height: 150px;
  background: radial-gradient(80% 90% at 50% 50%, rgba(242,193,78,.16), transparent 72%); }
.mc-stage .cs-win { top: 0; }
.mc-ctl { display: grid; gap: 10px; }
.mc-btns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 8px; }
.mc-btns .btn { height: 50px; font-size: 16px; }

/* free case sheet */
.fc-stage { margin: 0 -16px; padding: 10px 0; background: radial-gradient(80% 90% at 50% 50%, rgba(242,193,78,.18), transparent 72%); }
.fc-res { min-height: 20px; margin-top: -4px; text-align: center; font-size: 14px; font-weight: 700; color: var(--fg2); }
.fc-res b { color: var(--fg); }
.fc-open { width: 100%; }
.fc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Награды */
.rw-level { padding: 14px; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px 12px; align-items: center;
  background: radial-gradient(120% 140% at 100% 0%, rgba(242,193,78,.18), transparent 60%), var(--s1); }
.lv-ring { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 900; color: #ffe7a6;
  background: radial-gradient(closest-side, #1b160d 76%, transparent 78%), conic-gradient(#f2c14e var(--p, 45%), #3a3326 0); }
.rw-level b { display: block; font-size: 17px; font-weight: 800; }
.rw-level small { display: block; margin: 2px 0 8px; font-size: 12.5px; font-weight: 600; color: var(--fg2); }
.rw-level p { grid-column: 1 / -1; margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--fg2); }
.rw-newbie { margin-top: 10px; padding: 8px 12px 8px 8px; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.rw-newbie .mc-art { height: 84px; }
.rw-newbie .mc-art img { width: 50px; height: 50px; top: 4px; }
.rw-newbie b { display: block; margin-top: 6px; font-size: 16px; font-weight: 800; }
.rw-newbie small { font-size: 12px; font-weight: 600; color: var(--fg2); }
.rw-newbie .btn { height: 38px; padding: 0 14px; font-size: 14px; }
.rw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rw-case { min-width: 0; padding: 5px 5px 8px; border-radius: 14px; background: var(--s1); display: grid; gap: 3px; text-align: center; }
.rw-case .mc-art { height: 78px; }
.rw-case .mc-art img { width: 46px; height: 46px; top: 4px; }
.rw-case .mc-box { height: 34%; bottom: 7px; }
.rw-case b { margin-top: 3px; font-size: 13px; font-weight: 800; }
.rw-case small { font-size: 11px; font-weight: 700; color: var(--fg3); }
.rw-case.locked .mc-art { filter: grayscale(.85) brightness(.6); }
.rw-cta { margin-top: 4px; height: 30px; border-radius: 15px; display: flex; align-items: center; justify-content: center; gap: 4px; background: var(--s3); font-size: 12px; font-weight: 800; color: var(--fg2); }
.rw-cta.go { background: var(--gold-grad); color: var(--on-accent); }
.rw-code { margin-top: 2px; padding: 14px; display: grid; gap: 4px; }
.rw-code b { font-size: 16px; font-weight: 800; }
.rw-code small { font-size: 12.5px; color: var(--fg2); font-weight: 600; }
.rw-in { margin-top: 8px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.rw-in input { height: 44px; border-radius: var(--r-ctl); border: 0; outline: none; padding: 0 12px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); color: var(--fg); font: inherit; font-weight: 700; text-transform: uppercase; }

/* Гонка */
.rc-hero { margin-top: 12px; padding: 16px 12px 12px; display: grid; justify-items: center; gap: 4px;
  background: radial-gradient(90% 70% at 50% 0%, rgba(242,193,78,.2), transparent 70%), var(--s1); }
.rc-boxes { display: flex; gap: 6px; margin-bottom: 8px; }
.rc-box { width: 54px; height: 54px; border-radius: 12px; background: var(--s3); display: grid; place-items: center; align-content: center; gap: 1px; }
.rc-box b { font-size: 20px; font-weight: 800; line-height: 1; }
.rc-box small { font-size: 10px; font-weight: 700; color: var(--fg3); }
.rc-box.sec { background: rgba(242,193,78,.16); }
.rc-box.sec b { color: #ffe7a6; }
.rc-fund { display: inline-flex; align-items: center; gap: 8px; font-size: 34px; font-weight: 800; letter-spacing: -.5px; }
.rc-fund .rc-coin { width: 32px; height: 32px; }
.rc-title { font-family: var(--font-brand); font-weight: 800; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
.rc-pod { width: 100%; margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; }
.rp { min-width: 0; padding: 10px 6px; border-radius: 14px; display: grid; justify-items: center; gap: 4px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--mc) 20%, var(--s2)), var(--s2) 80%); box-shadow: inset 0 2px 0 var(--mc); }
.rp.p1 { padding-top: 16px; }
.rp-pl { height: 20px; padding: 0 8px; border-radius: 6px; display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; background: var(--mc); color: #1c1405; }
.rp-av { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; font-weight: 900; color: #fff; background: var(--s4); box-shadow: inset 0 0 0 2px var(--mc); }
.rp.p1 .rp-av { width: 54px; height: 54px; border-radius: 14px; font-size: 22px; }
.rp-nm { max-width: 100%; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 800; white-space: nowrap; overflow: hidden; }
.rp small { font-size: 11px; font-weight: 700; color: var(--fg3); }
.rp-pz { height: 28px; padding: 0 10px; border-radius: 14px; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; background: rgba(0,0,0,.3); color: #ffe7a6; }
.lv { flex: none; min-width: 24px; height: 18px; padding: 0 4px; border-radius: 5px; display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 800; background: rgba(242,193,78,.16); color: #ffe7a6; }
.lv.me { background: var(--gold-grad); color: var(--on-accent); }
.rc-me { margin-top: 10px; padding: 10px 0 12px; display: grid; gap: 8px; background: #241f15; box-shadow: inset 0 0 0 1.5px var(--accent); }
.rc-me .rc-row { background: transparent; height: 36px; }
.rc-me .rk { color: var(--accent); }
.rc-me .bar, .rc-me .vip-row { margin: 0 12px; }
.rc-head, .rc-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) 64px 76px; align-items: center; gap: 8px; padding: 0 12px; }
.rc-head { height: 38px; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--fg3); }
.rc-head span:nth-child(n+3), .rc-row .pts, .rc-row .pz { text-align: right; justify-content: flex-end; }
.rc-list { display: grid; gap: 4px; }
.rc-row { height: 48px; border-radius: 12px; background: var(--s1); font-size: 14px; }
.rc-row .rk { font-weight: 800; color: var(--fg3); text-align: center; }
.rc-row .nm { min-width: 0; display: flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; overflow: hidden; }
.rc-row .pts { font-size: 13px; font-weight: 800; color: var(--fg2); }
.rc-row .pz { display: flex; align-items: center; gap: 3px; font-weight: 800; font-size: 13px; }
.rc-what { margin-top: 12px; padding: 14px; }
.rc-what b { font-size: 15px; }
.rc-what p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--fg2); }

/* profile */
.pav { position: relative; background: var(--gold-grad); color: var(--on-accent); }
.pav .lv { position: absolute; right: -4px; bottom: -4px; background: #1b160d; box-shadow: 0 0 0 2px var(--bg); }
.inv-pair { margin-top: 10px; }
