@font-face { font-family: Cairo; src: url(/public/fonts/Cairo.woff2) format("woff2"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: Lalezar; src: url(/public/fonts/Lalezar-Regular.woff2) format("woff2"); font-display: swap; }

:root {
  --bg: #070a2a;
  --ink: #fff;
  --soft: #c9cdf5;
  --glass: rgba(20, 16, 66, .78);
  --edge: rgba(140, 125, 255, .5);
  --purple1: #8b5cf6;
  --purple2: #5b21b6;
  --gold1: #ffe28a;
  --gold2: #f4b72e;
  --gold3: #d4930a;
  --navy: rgba(16, 22, 78, .88);
  --top: 92px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Cairo, Tahoma, sans-serif; font-size: 17px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.ic { width: 24px; height: 24px; flex: none; }
[hidden] { display: none !important; }

/* Top bar ----------------------------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 30; height: var(--top); display: flex; align-items: center; gap: 28px; padding: 0 28px;
  background: rgba(7, 9, 34, .94); border-bottom: 1px solid rgba(120, 110, 255, .22); backdrop-filter: blur(8px); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 25px; white-space: nowrap; }
.brand img { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 14px rgba(255, 190, 40, .45); }
.nav { display: flex; align-items: center; gap: 6px; flex: 1; justify-content: center; }
.nav-a { white-space: nowrap; display: flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 12px; font-weight: 700; font-size: 18px; color: #e6e8ff; transition: background .15s; }
.nav-a:hover { background: rgba(124, 92, 246, .18); }
.nav-a.on { background: linear-gradient(180deg, #8b5cf6, #5b21b6); color: #fff; box-shadow: 0 0 18px rgba(139, 92, 246, .55), inset 0 1px 0 rgba(255, 255, 255, .25); }
.nav-a .ic { width: 26px; height: 26px; }
.user { display: flex; gap: 12px; }
.btn-purple, .btn-ghost, .btn-gold, .btn-navy { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 12px; font-weight: 800; font-family: inherit; cursor: pointer; white-space: nowrap; border: 0; color: #fff; }
.user .btn-purple, .user .btn-ghost, .drawer-user a { padding: 10px 22px; font-size: 17px; }
.btn-purple { background: linear-gradient(180deg, #8b5cf6, #6d28d9 60%, #5b21b6); border: 1.5px solid rgba(196, 170, 255, .55); box-shadow: 0 0 18px rgba(124, 58, 237, .45); }
.btn-ghost { background: rgba(10, 14, 50, .85); border: 1.5px solid rgba(150, 160, 255, .35); }
.btn-gold { background: linear-gradient(180deg, var(--gold1), var(--gold2) 55%, var(--gold3)); color: #1d1300; border: 1.5px solid #fff0b0; box-shadow: 0 0 22px rgba(255, 184, 0, .45), inset 0 2px 0 rgba(255, 255, 255, .45); }
.btn-navy { background: var(--navy); border: 1.5px solid rgba(130, 145, 255, .6); box-shadow: 0 0 16px rgba(45, 90, 255, .25); }
.m-btn { display: none; width: 52px; height: 52px; border-radius: 14px; align-items: center; justify-content: center; position: relative;
  background: rgba(16, 20, 70, .85); border: 1.5px solid rgba(130, 145, 255, .45); color: #fff; cursor: pointer; }
.m-btn .ic { width: 28px; height: 28px; }
.m-user { border-radius: 50%; border-color: rgba(160, 130, 255, .8); }
.dot { position: absolute; top: 9px; inset-inline-end: 10px; width: 11px; height: 11px; border-radius: 50%; background: #ff3b4d; border: 2px solid #0c1040; }

/* Drawer, popover, modal --------------------------------------------------------------------- */
.drawer, .modal, .pop { position: fixed; inset: 0; z-index: 50; background: rgba(2, 4, 20, .6); }
.drawer-in { position: absolute; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); padding: 22px 18px; display: flex; flex-direction: column; gap: 6px;
  background: linear-gradient(180deg, #121048, #070a2a); border-right: 1.5px solid var(--edge); overflow-y: auto; }
.drawer-in .brand { margin: 6px 0 14px; font-size: 21px; }
.drawer-in .close { display: flex; align-self: flex-start; }
.drawer-user { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.pop-in { position: absolute; top: calc(var(--top) + 6px); right: 14px; width: min(360px, 92vw); padding: 16px 18px; border-radius: 18px; background: #110f45; border: 1.5px solid var(--edge); }
.pop-in h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 18px; }
.bell-list .who { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.bell-list .who img { width: 40px; height: 40px; border-radius: 50%; }
.bell-list small { color: var(--soft); margin-inline-start: auto; }
.modal { display: grid; place-items: center; padding: 18px; }
.modal-in { position: relative; width: min(520px, 100%); padding: 30px 26px 24px; text-align: center; border-radius: 24px;
  background: radial-gradient(120% 90% at 50% 0, #2a1f7a, #0b0d38 70%); border: 1.5px solid var(--edge); box-shadow: 0 0 40px rgba(110, 80, 255, .35); }
.modal-in .close { display: flex; position: absolute; top: 12px; left: 12px; width: 42px; height: 42px; }
.modal-in h2 { margin: 10px 0 6px; font-size: 26px; }
.modal-in p { color: var(--soft); margin: 0 0 18px; }
.app-icon { border-radius: 22px; box-shadow: 0 0 24px rgba(255, 190, 40, .35); }
.soon { font-size: 15px; color: #ffd76a !important; margin: 12px 0 0 !important; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 60; padding: 12px 22px; border-radius: 14px; background: #15124d; border: 1.5px solid var(--edge); font-weight: 700; }

/* Home --------------------------------------------------------------------------------------- */
main.home { position: relative; min-height: calc(100vh - var(--top)); min-height: calc(100svh - var(--top));
  background: linear-gradient(180deg, rgba(7, 10, 42, .15), rgba(7, 10, 42, 0) 40%, rgba(7, 10, 42, .55)), url(/public/img/studio.webp) center 30% / cover no-repeat; overflow: hidden; }
.hero { position: relative; min-height: calc(100vh - var(--top) - 190px); min-height: calc(100svh - var(--top) - 190px); }
.card { background: var(--glass); border: 1.5px solid var(--edge); border-radius: 18px; box-shadow: 0 10px 40px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.stats { position: absolute; left: 4%; top: 18%; width: 355px; padding: 18px 22px 10px; }
.stats h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 22px; }
.stats ul { list-style: none; margin: 0; padding: 0; }
.stats li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-weight: 700; }
.stats li span { flex: 1; }
.stats li b { flex: none; width: 108px; padding: 4px 14px; border-radius: 8px; background: rgba(12, 10, 46, .9); font-size: 19px; text-align: left; direction: ltr; }
.stats li .ic { color: #e8e8ff; }
.actions { position: absolute; right: 4%; top: 24%; width: 350px; display: flex; flex-direction: column; gap: 16px; }
.big { height: 74px; font-size: 30px; padding: 0 26px; border-radius: 14px; justify-content: space-between; }
.big .ic { width: 38px; height: 38px; }
.actions .big { flex-direction: row-reverse; justify-content: center; gap: 30px; }
.actions .btn-gold { height: 88px; font-size: 34px; }
.play { width: 58px; height: 58px; border-radius: 50%; background: #120c02; color: #ffc21a; display: grid; place-items: center; }
.play svg { width: 34px; height: 34px; margin-inline-end: -4px; }
.btn-gold.big svg:not(.ic) { width: 30px; height: 30px; }
.new { display: none; }
.tiles { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; width: min(1420px, 92%); margin: 0 auto; padding-bottom: 42px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 136px; border-radius: 16px; font-size: 26px; font-weight: 800;
  background: linear-gradient(180deg, rgba(48, 30, 120, .78), rgba(22, 16, 70, .86)); border: 1.5px solid rgba(160, 130, 255, .55); box-shadow: 0 0 26px rgba(110, 60, 255, .25), inset 0 1px 0 rgba(255, 255, 255, .08); transition: transform .15s; }
.tile:hover { transform: translateY(-3px); }
.tile .art { width: 60px; height: 60px; }
.tile.m2:not(.d) { display: none; }
.trophy-art { display: flex; align-items: flex-end; height: 64px; }
.trophy-art img { height: 50px; }
.trophy-art .cup { height: 60px; margin: 0 -10px; }

/* Inner pages -------------------------------------------------------------------------------- */
main.inner { min-height: calc(100vh - var(--top)); padding: 26px 18px 60px;
  background: linear-gradient(180deg, rgba(7, 10, 42, .82), rgba(7, 10, 42, .92)), url(/public/img/studio.webp) center top / cover fixed; }
.page, .board { max-width: 1200px; margin: 0 auto; }
.narrow { max-width: 560px; }
.laurel { display: flex; justify-content: center; margin: 4px 0 26px; }
.laurel span { display: inline-flex; align-items: center; gap: 14px; padding: 8px 38px; border-radius: 28px; font-family: Lalezar, Cairo, sans-serif; font-weight: 400; font-size: 40px; color: #ffd24a;
  background: linear-gradient(180deg, #1b2768, #070c2e); border: 3px solid #f5b62e; box-shadow: 0 0 22px rgba(255, 184, 0, .5); text-shadow: 0 3px 6px rgba(0, 0, 0, .6); }
.laurel .ic { width: 40px; height: 40px; }
.prose h2, .sec { color: #ffd24a; font-size: 24px; margin: 18px 0 8px; }
.prose { padding: 22px 28px; }
.prose ul { padding-inline-start: 22px; }
.prose li { margin: 6px 0; }
.two { display: grid; grid-template-columns: 380px 1fr; gap: 22px; }
.two > .card { padding: 20px 24px; }
.ladder { list-style: none; margin: 0; padding: 0; direction: ltr; }
.ladder li { display: flex; align-items: center; gap: 14px; padding: 7px 16px; border-radius: 10px; font-weight: 800; font-size: 19px; }
.ladder li b { width: 34px; color: #ffd24a; }
.ladder li.safe b, .ladder li.safe span { color: #fff; }
.ladder li.safe { background: rgba(61, 155, 255, .25); }
.ladder li.top { background: linear-gradient(90deg, var(--gold1), var(--gold2)); color: #1d1300; }
.ladder li.top b { color: #1d1300; }
.ladder em { margin-inline-start: auto; font-style: normal; font-size: 14px; color: #8fd0ff; direction: rtl; }
.note { color: var(--soft); text-align: center; font-size: 15px; }

.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.offer { position: relative; padding: 24px; text-align: center; }
.offer.best { border-color: #f5b62e; box-shadow: 0 0 30px rgba(255, 184, 0, .35); }
.offer ul { list-style: none; padding: 0; margin: 10px 0 16px; }
.offer li { padding: 5px 0; font-weight: 700; }
.ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 3px 16px; border-radius: 14px; background: linear-gradient(180deg, #ff5a5a, #c81e2e); font-style: normal; font-weight: 800; font-size: 15px; }
.price { display: flex; justify-content: center; align-items: baseline; gap: 12px; margin-bottom: 14px; direction: ltr; }
.price s { color: #9aa0c8; }
.price b { font-size: 32px; color: #ffd24a; }
.offer .btn-gold, .pack .btn-gold, .vip .btn-purple { width: 100%; height: 52px; font-size: 19px; }
.packs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.pack { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 12px; }
.pack.best { border-color: #f5b62e; }
.pack b { font-size: 24px; direction: ltr; }
.vips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.vip { padding: 18px; }
.vip h3 { margin: 0; color: #ffd24a; }
.vip ul { padding-inline-start: 18px; min-height: 96px; }
.coin { display: inline-block; width: 26px; height: 26px; border-radius: 50%; vertical-align: -6px; margin-inline-end: 8px;
  background: radial-gradient(circle at 35% 30%, #fff0a0, #ffc21a 55%, #d08600); border: 2px solid #b87400; }
.coin.big { width: 54px; height: 54px; margin: 0 0 4px; }
.getapp-card { display: flex; gap: 28px; align-items: flex-start; padding: 28px; }
.getapp-card img { border-radius: 26px; }
.getapp-card h2 { margin: 0 0 8px; }
.feat { padding-inline-start: 20px; margin-bottom: 20px; }

/* Leaderboard */
.podium { display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: end; gap: 22px; max-width: 980px; margin: 30px auto 26px; direction: ltr; }
.pod { display: flex; flex-direction: column; align-items: center; text-align: center; direction: rtl; }
.pod .ring { position: relative; width: 168px; height: 168px; border-radius: 50%; padding: 12px; margin-top: 40px;
  background: conic-gradient(from 210deg, #fff, #b9c6e0, #6e7c9c, #e6eeff, #fff); box-shadow: 0 0 34px rgba(111, 180, 255, .75); }
.pod.gold .ring { width: 210px; height: 210px; padding: 14px; background: conic-gradient(from 210deg, #fff4b0, #ffc21a, #b87400, #ffe27a, #fff4b0); box-shadow: 0 0 46px rgba(255, 184, 0, .85); }
.pod.bronze .ring { background: conic-gradient(from 210deg, #ffe0bc, #e08a4a, #8e4a1c, #ffb27a, #ffe0bc); box-shadow: 0 0 34px rgba(255, 138, 61, .75); }
.pod .ring .av { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #120c08; }
.pod .crown { position: absolute; top: -48px; left: 50%; transform: translateX(-50%); width: 92px; }
.pod.gold .crown { width: 116px; top: -60px; }
.pod.silver .crown { filter: grayscale(1) brightness(1.35); }
.pod.bronze .crown { filter: sepia(1) saturate(2.2) hue-rotate(-18deg) brightness(.95); }
.pod .rank { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); width: 46px; height: 46px; display: grid; place-items: center; font-size: 24px;
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); background: #0a0c1c; outline: 0; box-shadow: inset 0 0 0 4px #ffd24a; }
.pod .plate { margin-top: 22px; min-width: 70%; padding: 6px 18px; border-radius: 20px; background: linear-gradient(180deg, #1b1e33, #05060f); border: 2px solid rgba(255, 255, 255, .3); font-weight: 800; font-size: 22px; position: relative; z-index: 1; }
.pod .ped { width: 100%; margin-top: -8px; padding: 22px 10px 14px; border-radius: 8px 8px 14px 14px; font-weight: 800; font-size: 24px; direction: ltr;
  background: linear-gradient(180deg, #c9d2e6, #5e6a86); box-shadow: 0 0 28px rgba(111, 180, 255, .5); text-shadow: 0 2px 6px rgba(0, 0, 0, .7); }
.pod.gold .ped { padding: 30px 10px 22px; font-size: 30px; background: linear-gradient(180deg, #ffc21a, #8a5200); box-shadow: 0 0 36px rgba(255, 184, 0, .6); }
.pod.bronze .ped { background: linear-gradient(180deg, #e08a4a, #7a3a12); box-shadow: 0 0 28px rgba(255, 138, 61, .5); }
.table { padding: 6px 18px 12px; overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0 8px; direction: ltr; min-width: 640px; }
th { font-weight: 700; font-size: 17px; padding: 6px 10px; white-space: nowrap; }
td { background: linear-gradient(180deg, #12215e, #081136); padding: 8px 12px; font-weight: 700; font-size: 20px; text-align: center; white-space: nowrap; border-top: 1.5px solid #3d6be0; border-bottom: 1.5px solid #3d6be0; }
td:first-child { border-left: 1.5px solid #3d6be0; border-radius: 26px 0 0 26px; }
td:last-child { border-right: 1.5px solid #3d6be0; border-radius: 0 26px 26px 0; }
tr.me td { background: linear-gradient(180deg, #4a3a10, #241a04); border-color: #ffc21a; }
td.rk { font-size: 26px; width: 70px; }
td.pl { text-align: left; }
td.pl > * { vertical-align: middle; }
td.pl .av { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #5fc0ff; margin-right: 14px; }
th .ic { width: 20px; height: 20px; vertical-align: -4px; margin-right: 6px; }
.cup { width: 26px; vertical-align: -5px; margin-right: 8px; }
.lv { display: inline-block; padding: 2px 16px; border-radius: 16px; background: linear-gradient(180deg, #3d9bff, #1250d8); border: 1.5px solid #a9d2ff; font-size: 17px; }
.lv.hi { background: linear-gradient(180deg, #b45cff, #6a1fd8); border-color: #e2c4ff; }
.periods { display: flex; justify-content: center; gap: 22px; margin-top: 22px; }
.periods a { height: 62px; padding: 0 30px; font-size: 21px; }
.empty-note { padding: 26px; text-align: center; }

/* Accounts */
.auth { display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.auth h1 { margin: 0; text-align: center; font-size: 30px; }
.auth label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.auth input { height: 52px; padding: 0 16px; border-radius: 12px; border: 1.5px solid #3a4c8f; background: #040817; color: #fff; font: inherit; font-size: 18px; }
.auth input:focus { outline: none; border-color: #ffc21a; }
.auth .big { justify-content: center; }
.err { margin: 0; padding: 10px 14px; border-radius: 10px; background: rgba(255, 60, 80, .15); border: 1px solid rgba(255, 90, 100, .6); color: #ffb3b9; }
.alt { text-align: center; margin: 0; }
.alt a { color: #ffd24a; font-weight: 800; }
.hint { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(124, 92, 246, .15); color: var(--soft); font-size: 15px; }
.acct { padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.acct-head { display: flex; align-items: center; gap: 18px; }
.acct-head h1 { margin: 0; font-size: 28px; }
.acct-head p { margin: 0; color: var(--soft); }
.av.big { width: 96px; height: 96px; border-radius: 50%; border: 4px solid #ffc21a; }
.av-empty { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: #15124d; border: 2px solid var(--edge); }
.av-empty .ic { width: 50px; height: 50px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpis div { padding: 12px; border-radius: 14px; background: rgba(5, 10, 38, .6); border: 1.5px solid #2a4fc8; text-align: center; }
.kpis span { display: block; color: var(--soft); font-size: 14px; }
.kpis b { font-size: 22px; direction: ltr; display: inline-block; }
.acct form .btn-navy { padding: 12px 22px; font-size: 17px; }

/* Desktop widths between tablet and phone */
@media (max-width: 1500px) and (min-width: 861px) {
  .top { gap: 14px; padding: 0 18px; }
  .brand { font-size: 21px; }
  .nav { gap: 2px; }
  .nav-a { padding: 9px 12px; font-size: 16px; gap: 7px; }
  .user .btn-purple, .user .btn-ghost { padding: 9px 14px; font-size: 15px; }
}
@media (max-width: 1180px) and (min-width: 861px) {
  .brand span { display: none; }
  .nav-a span { font-size: 15px; }
  .nav-a .ic { width: 22px; height: 22px; }
}
@media (max-width: 1280px) {
  .nav-a { padding: 9px 12px; font-size: 16px; }
  .brand span { display: none; }
  .stats { width: 320px; left: 3%; }
  .actions { width: 320px; right: 3%; }
}

/* Phone layout of the mockup ------------------------------------------------------------------ */
@media (max-width: 860px) {
  :root { --top: 78px; }
  body { font-size: 16px; }
  .top { justify-content: space-between; padding: 0 16px; background: transparent; border: 0; position: absolute; left: 0; right: 0; backdrop-filter: none; }
  .top > .brand, .nav, .user { display: none; }
  .m-btn { display: flex; width: 46px; height: 46px; }
  .m-menu { order: 2; }
  .m-right { display: flex; gap: 14px; order: 1; }
  main.home { min-height: 100svh; background: linear-gradient(180deg, rgba(10, 11, 51, 0) 0, rgba(10, 11, 51, 0) 56vw, #0b0c3a 65vw), url(/public/img/hero-m.webp) center top / 100% auto no-repeat, radial-gradient(120% 60% at 50% 100%, #2a1a7a, #0b0c3a 70%); padding-top: 64vw; }
  .hero { min-height: 0; }
  .stats { display: none; }
  .actions { position: static; width: auto; margin: 0 9.5%; gap: 2.7vw; }
  .actions .btn-gold { height: 16.5vw; font-size: 7.6vw; border-radius: 4.6vw; }
  .actions .big { height: 13.2vw; font-size: 6vw; border-radius: 3.6vw; gap: 6vw; }
  .actions .big .ic { width: 9vw; height: 9vw; }
  .play { width: 11.4vw; height: 11.4vw; }
  .play svg { width: 6.4vw; height: 6.4vw; }
  .actions .btn-navy { position: relative; background: linear-gradient(180deg, #1d3a9a, #0e1f66); padding-inline-end: 25vw; }
  .new { display: block; position: absolute; left: 3.4vw; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 3.6vw; font-weight: 800; padding: .3vw 2.8vw; border-radius: 4vw; background: linear-gradient(180deg, #ff5a5a, #c81e2e); }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.2vw; width: auto; margin: 3.6vw 5% 0; padding-bottom: 28px; }
  .tile { order: var(--mo); height: 23vw; font-size: 18px; border-radius: 18px; text-align: center; line-height: 1.25; padding: 8px; }
  .tile.m2:not(.d) { display: flex; }
  .tile .art, .trophy-art { flex: none; width: 10.5vw; height: 10.5vw; }
  .trophy-art { width: auto; }
  .tile { font-size: 4.1vw; gap: .8vw; line-height: 1.2; }
  .trophy-art { height: 11vw; }
  .trophy-art img { height: 6.5vw; width: auto; }
  .trophy-art .cup { height: 9vw; margin: 0 -2vw; }
  main.inner { padding: calc(var(--top) + 8px) 12px 40px; background-attachment: scroll; }
  .laurel span { font-size: 28px; padding: 6px 22px; }
  .two, .offers { grid-template-columns: 1fr; }
  .packs { grid-template-columns: repeat(2, 1fr); }
  .vips { grid-template-columns: 1fr 1fr; }
  .podium { gap: 8px; margin-top: 46px; }
  .pod .ring { width: 92px; height: 92px; padding: 7px; margin-top: 26px; }
  .pod.gold .ring { width: 118px; height: 118px; padding: 8px; }
  .pod .crown { width: 54px; top: -30px; }
  .pod.gold .crown { width: 70px; top: -38px; }
  .pod .rank { width: 34px; height: 34px; font-size: 17px; bottom: -14px; }
  .pod .plate { font-size: 15px; padding: 4px 10px; margin-top: 16px; }
  .pod .ped, .pod.gold .ped { font-size: 15px; padding: 16px 4px 10px; }
  .periods { gap: 8px; }
  .periods a { height: 52px; padding: 0 12px; font-size: 16px; }
  .getapp-card { flex-direction: column; align-items: center; text-align: center; }
  .feat { text-align: right; }
}

/* Desktop home: the owner's mockup at 1672×849 below the top bar, scaled with the width; every
   element sits where it is in the mockup (1 mockup px = --u). */
@media (min-width: 861px) {
  main.home { --u: calc(100vw / 1672); min-height: 0; height: auto; aspect-ratio: 1672 / 849; overflow: hidden; background: url(/public/img/hero-d.webp) center / 100% 100% no-repeat, #0a0b33; }
  .hero { position: static; min-height: 0; }
  .stats { position: absolute; left: calc(64 * var(--u)); top: calc(172 * var(--u)); width: calc(354 * var(--u)); padding: calc(14 * var(--u)) calc(22 * var(--u)) calc(6 * var(--u));
    border-radius: calc(16 * var(--u)); background: rgba(14, 12, 52, .9); }
  .stats h2 { font-size: calc(21 * var(--u)); margin-bottom: calc(6 * var(--u)); gap: calc(10 * var(--u)); }
  .stats h2 .ic { width: calc(26 * var(--u)); height: calc(26 * var(--u)); }
  .stats li { padding: calc(10 * var(--u)) 0; font-size: calc(17 * var(--u)); gap: calc(10 * var(--u)); }
  .stats li .ic { width: calc(26 * var(--u)); height: calc(26 * var(--u)); }
  .stats li b { width: calc(104 * var(--u)); font-size: calc(20 * var(--u)); padding: calc(4 * var(--u)) calc(14 * var(--u)); border-radius: calc(8 * var(--u)); }
  .actions { position: absolute; right: calc(60 * var(--u)); top: calc(210 * var(--u)); width: calc(348 * var(--u)); gap: calc(17 * var(--u)); }
  .actions .big { height: calc(80 * var(--u)); font-size: calc(32 * var(--u)); border-radius: calc(14 * var(--u)); gap: calc(34 * var(--u)); padding: 0 calc(26 * var(--u)); }
  .actions .big .ic { width: calc(42 * var(--u)); height: calc(42 * var(--u)); }
  .actions .btn-gold { height: calc(90 * var(--u)); font-size: calc(36 * var(--u)); }
  .actions .btn-navy { background: rgba(14, 18, 66, .92); }
  .play { width: calc(58 * var(--u)); height: calc(58 * var(--u)); }
  .play svg { width: calc(32 * var(--u)); height: calc(32 * var(--u)); }
  .tiles { position: absolute; left: calc(128 * var(--u)); right: calc(126 * var(--u)); top: calc(670 * var(--u)); width: auto; margin: 0; padding: 0; gap: calc(24 * var(--u)); }
  .tile { height: calc(136 * var(--u)); font-size: calc(26 * var(--u)); gap: calc(6 * var(--u)); border-radius: calc(16 * var(--u)); background: linear-gradient(180deg, rgba(44, 28, 112, .96), rgba(22, 16, 70, .97)); }
  .tile .art { width: calc(58 * var(--u)); height: calc(58 * var(--u)); }
  .trophy-art { height: calc(62 * var(--u)); }
  .trophy-art img { height: calc(46 * var(--u)); }
  .trophy-art .cup { height: calc(58 * var(--u)); margin: 0 calc(-10 * var(--u)); }
}

/* Stats card as in the mockup: filled icons, purple value boxes, brighter frame. */
.stats { border: 1.5px solid rgba(150, 130, 255, .7); box-shadow: 0 0 22px rgba(110, 80, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .08); }
.stats .fic { width: 26px; height: 26px; flex: none; color: #d9dcf2; }
.stats .fic.gold { color: #f5bf2e; }
.stats h2 { font-weight: 800; }
.stats h2 .fic { color: #d9dcf2; }
.stats li { font-weight: 600; }
.stats li b { background: linear-gradient(180deg, #2c1d70, #22165a); font-weight: 800; }
.trophy-svg { width: 92px; height: 62px; }
@media (min-width: 861px) {
  .stats { top: calc(172 * var(--u)); padding: calc(18 * var(--u)) calc(24 * var(--u)) calc(4 * var(--u)); }
  .stats h2 { font-size: calc(22 * var(--u)); margin-bottom: calc(8 * var(--u)); }
  .stats .fic { width: calc(28 * var(--u)); height: calc(28 * var(--u)); }
  .stats li { padding: calc(10 * var(--u)) 0; font-size: calc(18 * var(--u)); }
  .stats li b { width: calc(106 * var(--u)); padding: calc(6 * var(--u)) calc(14 * var(--u)); font-size: calc(21 * var(--u)); }
  .tile .trophy-svg { width: calc(104 * var(--u)); height: calc(70 * var(--u)); margin: 0 0 calc(-4 * var(--u)); }
}
@media (max-width: 860px) {
  .tile .trophy-svg { width: 15.5vw; height: 10.5vw; margin: 0; }
}
