/* Sheldon Club game portal — «dark arena» */
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500;700;900&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0a0d13; --bg-2: #0f131b; --surface: #141a24; --surface-2: #1a2230; --line: #222c3b; --line-2: #2d394b;
  --txt: #e9eef6; --dim: #8b97ab; --mute: #5d6a7e;
  --accent: #ff7a1a; --accent-2: #ffb061; --cyan: #2dd4ff; --green: #3ddc84; --red: #ff4d5e; --gold: #ffd166; --purple: #b388ff;
  --r: 14px; --r-s: 9px; --shadow: 0 10px 30px rgba(0,0,0,.35);
  --font-d: 'Unbounded', 'Segoe UI', system-ui, sans-serif; --font: 'Manrope', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { background: radial-gradient(1200px 600px at 80% -10%, rgba(255,122,26,.10), transparent 60%),
       radial-gradient(900px 500px at -10% 10%, rgba(45,212,255,.08), transparent 55%), var(--bg);
       color: var(--txt); font: 16px/1.55 var(--font); min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, .display { font-family: var(--font-d); letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 900; line-height: 1.1; }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
.wrap { width: min(1180px, 100% - 2rem); margin: 0 auto; }
.dim { color: var(--dim); } .mute { color: var(--mute); } .small { font-size: .85rem; } .num { font-variant-numeric: tabular-nums; }
.accent { color: var(--accent); } .cyan { color: var(--cyan); } .green { color: var(--green); } .red { color: var(--red); } .gold { color: var(--gold); }
.row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; } .between { justify-content: space-between; } .grow { flex: 1; }
.mt { margin-top: 1.2rem; } .mt2 { margin-top: 2rem; } .mb { margin-bottom: 1rem; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(10,13,19,.78); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 1.4rem; height: 64px; }
.brand { font-family: var(--font-d); font-weight: 900; font-size: 1.05rem; letter-spacing: .02em; display: flex; align-items: center; gap: .6rem; }
.brand i { width: 12px; height: 12px; border-radius: 3px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 18px rgba(255,122,26,.7); display: inline-block; }
.nav { display: flex; gap: .2rem; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav a { padding: .45rem .8rem; border-radius: 999px; color: var(--dim); font-weight: 600; white-space: nowrap; transition: .15s; }
.nav a:hover, .nav a.active { color: var(--txt); background: var(--surface-2); }
.user { display: flex; align-items: center; gap: .7rem; }
.user img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line-2); }
.coins { background: linear-gradient(135deg, rgba(255,209,102,.18), rgba(255,122,26,.18)); border: 1px solid rgba(255,209,102,.35); color: var(--gold); padding: .3rem .7rem; border-radius: 999px; font-weight: 800; font-size: .9rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.1rem; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--txt); font: 700 .92rem var(--font); cursor: pointer; transition: .15s; text-decoration: none; }
.btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, var(--accent), #ff9a3c); border-color: transparent; color: #1a0d00; box-shadow: 0 6px 20px rgba(255,122,26,.35); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.cyan { background: linear-gradient(135deg, var(--cyan), #6fe3ff); border-color: transparent; color: #02202b; }
.btn.ghost { background: transparent; }
.btn.sm { padding: .38rem .75rem; font-size: .82rem; border-radius: 8px; }
.btn.danger { border-color: rgba(255,77,94,.5); color: var(--red); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.steam { background: #1b2838; border-color: #2a475e; }

/* hero */
.hero { padding: 3rem 0 1.5rem; display: grid; grid-template-columns: 1.3fr .9fr; gap: 2rem; align-items: center; }
.hero p { color: var(--dim); font-size: 1.05rem; max-width: 56ch; margin-top: .8rem; }
.hero .cta { margin-top: 1.4rem; display: flex; gap: .7rem; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; inset: auto -20% -60% auto; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(255,122,26,.25), transparent 70%); }
.stat b { display: block; font-family: var(--font-d); font-size: 1.7rem; font-weight: 900; line-height: 1.1; }
.stat span { color: var(--dim); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }

/* sections */
.sec { margin: 2.2rem 0; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.sec-h h2 { display: flex; align-items: center; gap: .6rem; }
.pill { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--dim); }
.pill.club { color: var(--accent); border-color: rgba(255,122,26,.45); background: rgba(255,122,26,.1); }
.pill.public { color: var(--cyan); border-color: rgba(45,212,255,.45); background: rgba(45,212,255,.1); }
.pill.on { color: var(--green); border-color: rgba(61,220,132,.4); } .pill.off { color: var(--red); border-color: rgba(255,77,94,.4); }

/* server cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; position: relative; transition: .2s; display: flex; flex-direction: column; }
.card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.srv .tile { height: 118px; display: flex; align-items: flex-end; padding: .9rem 1rem; position: relative; background: var(--tile, linear-gradient(135deg, #1f2a3b, #0f1520)); background-size: cover; background-position: center; }
.srv .tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(10,13,19,.85)); }
.srv .tile .map { position: relative; font-family: var(--font-d); font-weight: 900; font-size: 1.35rem; text-shadow: 0 2px 12px rgba(0,0,0,.6); word-break: break-all; }
.srv .tile .game { position: absolute; top: .7rem; left: .9rem; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: rgba(0,0,0,.45); padding: .2rem .5rem; border-radius: 6px; backdrop-filter: blur(6px); }
.srv .tile .st { position: absolute; top: .7rem; right: .9rem; }
.dot { display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); margin-right: .4em; vertical-align: middle; }
.dot.off { background: var(--red); box-shadow: 0 0 10px var(--red); }
.srv .body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.srv .title { font-weight: 800; font-size: 1.02rem; }
.srv .desc { color: var(--dim); font-size: .88rem; min-height: 2.5em; }
.bar { height: 6px; background: var(--bg-2); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 4px; transition: width .5s; }
.bar.cyan i { background: linear-gradient(90deg, var(--cyan), #8be9ff); }
.srv .meta { display: flex; justify-content: space-between; color: var(--dim); font-size: .85rem; }
.srv .meta b { color: var(--txt); }
.srv .actions { display: flex; gap: .5rem; margin-top: auto; padding-top: .4rem; }
.srv .actions .btn { flex: 1; justify-content: center; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tbl th, .tbl td { padding: .6rem .65rem; border-bottom: 1px solid var(--line); text-align: left; }
.tbl th { color: var(--dim); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.tbl tr:hover td { background: rgba(255,255,255,.02); }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .pos { width: 44px; font-family: var(--font-d); font-weight: 800; color: var(--dim); }
.tbl .pos.p1 { color: var(--gold); } .tbl .pos.p2 { color: #cfd8e3; } .tbl .pos.p3 { color: #d39a6a; }
.tbl .who { display: flex; align-items: center; gap: .6rem; }
.tbl .who img, .ava { width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); object-fit: cover; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.2rem; }
.panel + .panel { margin-top: 1rem; }
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.tabs a { padding: .55rem .9rem; color: var(--dim); font-weight: 700; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: var(--txt); border-color: var(--accent); }
.rank-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .65rem; border-radius: 8px; background: linear-gradient(135deg, rgba(255,209,102,.15), rgba(255,122,26,.12)); border: 1px solid rgba(255,209,102,.3); font-weight: 800; font-size: .85rem; color: var(--gold); }

/* profile */
.profile-h { display: flex; gap: 1.3rem; align-items: center; padding: 1.4rem; background: linear-gradient(135deg, var(--surface), var(--surface-2)); border: 1px solid var(--line); border-radius: var(--r); position: relative; overflow: hidden; }
.profile-h::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,122,26,.22), transparent 65%); }
.profile-h img { width: 88px; height: 88px; border-radius: 18px; border: 2px solid var(--line-2); background: var(--bg-2); }
.profile-h h1 { font-size: 1.7rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .7rem; margin-top: 1rem; }
.tile-s { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); padding: .8rem .9rem; }
.tile-s b { display: block; font-family: var(--font-d); font-size: 1.3rem; font-weight: 800; }
.tile-s span { color: var(--dim); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }

/* quests & store */
.quest { display: grid; grid-template-columns: 1fr auto; gap: .8rem; align-items: center; padding: .95rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); margin-bottom: .6rem; }
.quest.done { border-color: rgba(61,220,132,.4); background: linear-gradient(90deg, rgba(61,220,132,.07), var(--surface)); }
.quest .t { font-weight: 800; } .quest .d { color: var(--dim); font-size: .86rem; }
.quest .bar { margin-top: .5rem; }
.reward { font-weight: 900; color: var(--gold); white-space: nowrap; font-family: var(--font-d); }
.item { text-align: left; }
.item .pic { height: 150px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.item .pic img { max-height: 100%; object-fit: contain; padding: .6rem; }
.item .pic .ph { font-family: var(--font-d); font-size: 2.2rem; opacity: .35; }
.item .body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.item .price { font-family: var(--font-d); font-weight: 900; color: var(--gold); font-size: 1.1rem; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .6rem; max-height: 60vh; overflow: auto; padding: .2rem; }
.choice { border: 1px solid var(--line); border-radius: var(--r-s); padding: .5rem; background: var(--bg-2); cursor: pointer; font-size: .82rem; display: flex; flex-direction: column; gap: .3rem; }
.choice img { height: 70px; object-fit: contain; }
.choice:hover, .choice.sel { border-color: var(--accent); }

/* forms */
.form { display: grid; gap: .8rem; }
.form label { display: grid; gap: .3rem; font-size: .85rem; color: var(--dim); font-weight: 700; }
.form input, .form select, .form textarea { background: var(--bg-2); border: 1px solid var(--line-2); color: var(--txt); border-radius: 8px; padding: .55rem .7rem; font: 500 .95rem var(--font); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem; }
.flash { padding: .7rem 1rem; border-radius: var(--r-s); margin: 1rem 0; font-weight: 600; border: 1px solid; }
.flash.ok { background: rgba(61,220,132,.1); border-color: rgba(61,220,132,.4); color: var(--green); }
.flash.err { background: rgba(255,77,94,.1); border-color: rgba(255,77,94,.4); color: var(--red); }
.conn { font-family: Consolas, monospace; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px; padding: .5rem .8rem; display: inline-block; user-select: all; font-size: .9rem; }
.empty { padding: 1.6rem; text-align: center; color: var(--dim); }
.foot { margin: 3rem 0 1.5rem; color: var(--mute); font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.news { border-left: 3px solid var(--accent); padding: .2rem 0 .2rem .9rem; margin-bottom: 1rem; }
.news h3 { margin-bottom: .2rem; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.65); display: none; align-items: center; justify-content: center; z-index: 50; padding: 1rem; }
.modal.open { display: flex; }
.modal .box { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 1.2rem; width: min(860px, 100%); max-height: 90vh; overflow: auto; }

/* admin */
.adm { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.adm aside { background: var(--bg-2); border-right: 1px solid var(--line); padding: 1.2rem .9rem; position: sticky; top: 0; height: 100vh; overflow: auto; }
.adm aside .brand { margin-bottom: 1.2rem; padding: 0 .5rem; }
.adm aside a.m { display: block; padding: .5rem .7rem; border-radius: 8px; color: var(--dim); font-weight: 600; }
.adm aside a.m:hover, .adm aside a.m.active { color: var(--txt); background: var(--surface-2); }
.adm aside .grp { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--mute); margin: 1rem .7rem .3rem; font-weight: 800; }
.adm main { padding: 1.6rem 2rem; min-width: 0; }
.console { background: #05070a; border: 1px solid var(--line-2); border-radius: var(--r-s); padding: .8rem; font: .83rem/1.45 Consolas, monospace; white-space: pre-wrap; max-height: 420px; overflow: auto; color: #c9d4e3; }
.kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; }
.inline-form { display: inline-flex; gap: .4rem; align-items: center; }
.inline-form input, .inline-form select { background: var(--bg-2); border: 1px solid var(--line-2); color: var(--txt); border-radius: 6px; padding: .35rem .5rem; font: .85rem var(--font); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 1.6rem; }
  .adm { grid-template-columns: 1fr; } .adm aside { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .adm main { padding: 1rem; }
  .top .wrap { gap: .8rem; } .brand span { display: none; }
  .tbl { font-size: .85rem; } .tbl th:nth-child(n+6), .tbl td:nth-child(n+6) { display: none; }
  .profile-h { flex-direction: column; text-align: center; }
}

/* --- фильтры, инвентарь, рынок, редкость --- */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: .8rem 0; }
.filters input, .filters select { background: var(--bg-2); border: 1px solid var(--line-2); color: var(--txt); border-radius: 8px; padding: .5rem .7rem; font: 500 .9rem var(--font); min-width: 150px; }
.filters input[name=q] { flex: 1; min-width: 200px; }
.rar-legend { display: flex; gap: .4rem; flex-wrap: wrap; margin: .2rem 0 .6rem; }
.rar { font-size: .72rem; font-weight: 800; letter-spacing: .04em; padding: .2rem .55rem; border-radius: 999px; border: 1px solid var(--c); color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }
.inv-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--c, var(--line-2)); border-radius: var(--r-s); padding: .7rem; display: flex; flex-direction: column; gap: .3rem; min-height: 250px; transition: .15s; overflow: hidden; }
.inv-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--c, #888) 22%, transparent), transparent 62%); pointer-events: none; }
.inv-card:hover { transform: translateY(-2px); border-color: var(--c); box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.inv-card.equipped { outline: 1px solid rgba(61,220,132,.5); }
.inv-card .pic { position: relative; height: 110px; display: flex; align-items: center; justify-content: center; }
.inv-card .pic img { max-height: 100%; max-width: 100%; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); }
.inv-card .pic .ph { font-family: var(--font-d); opacity: .3; font-size: 1.1rem; }
.inv-card .nm { position: relative; font-weight: 800; font-size: .88rem; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.inv-card .sub { position: relative; color: var(--dim); font-size: .76rem; }
.inv-card .price { font-family: var(--font-d); font-weight: 900; color: var(--gold); font-size: .95rem; }
.inv-card .tag { position: absolute; top: .5rem; right: .5rem; z-index: 1; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: rgba(61,220,132,.15); color: var(--green); border: 1px solid rgba(61,220,132,.4); border-radius: 6px; padding: .15rem .45rem; }
.inv-card .tag.sell { background: rgba(255,209,102,.15); color: var(--gold); border-color: rgba(255,209,102,.4); }
.inv-card form { display: inline; }
.pager { display: flex; gap: .3rem; flex-wrap: wrap; align-items: center; }
.hub-filters { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin: -1rem 0 1.2rem; }
.chip { padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--dim); font-size: .82rem; font-weight: 700; cursor: pointer; background: transparent; }
.chip.on { color: var(--txt); border-color: var(--accent); background: rgba(255,122,26,.12); }
.hub-filters input { background: var(--bg-2); border: 1px solid var(--line-2); color: var(--txt); border-radius: 999px; padding: .35rem .8rem; font: 600 .85rem var(--font); }
.srv.hide { display: none; }
.maps { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .5rem; }
.mapc { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: .78rem; }
.mapc .im { height: 64px; background: var(--surface-2) center/cover; }
.mapc .t { padding: .35rem .5rem; font-weight: 700; }
.mapc.cur { border-color: var(--accent); }
.metric-tabs { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: .8rem; }

.podium { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .7rem; margin-bottom: 1rem; align-items: end; }
.pod { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; position: relative; overflow: hidden; }
.pod img { width: 64px; height: 64px; border-radius: 16px; border: 3px solid var(--pc); }
.pod b { font-family: var(--font-d); font-size: 1.4rem; color: var(--pc); }
.pod .n { font-weight: 800; } .pod .v { color: var(--gold); font-weight: 800; font-family: var(--font-d); }
.pod.p1 { --pc: #ffd166; order: 2; padding-top: 1.6rem; box-shadow: 0 0 40px rgba(255,209,102,.12) inset; }
.pod.p2 { --pc: #cfd8e3; order: 1; } .pod.p3 { --pc: #d39a6a; order: 3; }
.tbl tr.me td { background: rgba(255,122,26,.08); }
@media (max-width: 700px) { .podium { grid-template-columns: 1fr; } .pod.p1, .pod.p2, .pod.p3 { order: 0; } }

/* --- турниры --- */
.tour .body { padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .3rem; }
.tour.featured { border-color: rgba(255,209,102,.45); box-shadow: 0 0 30px rgba(255,209,102,.08) inset; }
.feat { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; background: linear-gradient(90deg, rgba(255,122,26,.16), var(--surface) 70%); border: 1px solid rgba(255,122,26,.4); border-radius: var(--r); padding: .9rem 1.2rem; margin: -.6rem 0 1.4rem; }
.feat b { font-family: var(--font-d); font-size: 1.15rem; }
.feat .btn { margin-left: auto; }
.bracket { display: flex; gap: 1.2rem; align-items: stretch; overflow-x: auto; padding-bottom: .5rem; }
.round { display: flex; flex-direction: column; justify-content: space-around; gap: .7rem; min-width: 220px; }
.round .rt { text-align: center; color: var(--dim); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.match { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; font-size: .88rem; }
.match.done { border-color: var(--line-2); }
.match .side { display: flex; justify-content: space-between; padding: .45rem .6rem; border-bottom: 1px solid var(--line); }
.match .side:last-child { border-bottom: 0; }
.match .side.win { background: rgba(61,220,132,.12); font-weight: 800; }
.match .side b { color: var(--gold); font-variant-numeric: tabular-nums; }
.match input { background: var(--surface); border: 1px solid var(--line-2); color: var(--txt); border-radius: 6px; padding: .25rem .4rem; font: .85rem var(--font); }
.rank-badge .rk { height: 18px; width: auto; }
.rank-badge.big { font-size: 1rem; padding: .35rem .8rem; } .rank-badge.big .rk { height: 28px; }
.xp { margin-top: .5rem; max-width: 420px; } .xp .bar { height: 8px; }
.srv .tile .online { position: absolute; bottom: .9rem; right: 1rem; font-size: .8rem; font-weight: 800; background: rgba(0,0,0,.45); padding: .2rem .55rem; border-radius: 6px; backdrop-filter: blur(6px); }

/* --- пополнение --- */
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .6rem; }
.pack { position: relative; display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .9rem .6rem; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--bg-2); cursor: pointer; }
.pack input { position: absolute; opacity: 0; }
.pack:has(input:checked) { border-color: var(--accent); background: rgba(255,122,26,.1); box-shadow: 0 0 0 1px var(--accent) inset; }
.pack b { font-family: var(--font-d); font-size: 1.1rem; color: var(--gold); } .pack span { color: var(--dim); font-size: .9rem; } .pack em { color: var(--dim); font-size: .75rem; font-style: normal; }
.pack i { position: absolute; top: -.5rem; right: .5rem; font-style: normal; font-size: .65rem; font-weight: 800; background: var(--accent); color: #1a0d00; padding: .1rem .45rem; border-radius: 999px; }
.topup { padding: .35rem .7rem; }
@media (max-width: 860px) { .topup { display: none; } }

/* T3: колокольчик уведомлений, XP, достижения, ежедневный бонус */
.bell-wrap { position: relative; }
.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: 1rem; }
.bell b { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #1a0d00; font-size: .68rem; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.bell-dd { position: absolute; right: 0; top: 44px; width: 340px; max-width: 90vw; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); z-index: 30; overflow: hidden; }
.bell-h { display: flex; justify-content: space-between; align-items: center; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
.bell-list { max-height: 380px; overflow: auto; }
.bell-item { display: block; padding: .55rem .8rem; border-bottom: 1px solid var(--line); font-size: .85rem; }
.bell-item.unread { background: rgba(255,122,26,.07); }
.bell-item .k { color: var(--accent); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.bell-item .t { font-weight: 700; } .bell-item .b { color: var(--dim); font-size: .8rem; } .bell-item .d { color: var(--mute); font-size: .72rem; }
.notif-row { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.notif-row.unread { background: rgba(255,122,26,.05); }
.notif-row .k { min-width: 84px; }
.lvl { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .6rem; border-radius: 999px; border: 1px solid rgba(179,136,255,.45); color: var(--purple); font-weight: 800; font-size: .8rem; background: rgba(179,136,255,.1); }
.xpbar { height: 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.xpbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--purple), var(--cyan)); }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.ach { display: flex; gap: .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); padding: .8rem; position: relative; }
.ach .ic { font-size: 1.7rem; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--surface-2); flex: none; }
.ach .bar { height: 6px; background: var(--bg-2); border-radius: 999px; overflow: hidden; margin-top: .4rem; } .ach .bar i { display: block; height: 100%; background: var(--accent); }
.ach.bronze { border-color: rgba(211,154,106,.5); } .ach.silver { border-color: rgba(207,216,227,.5); } .ach.gold { border-color: rgba(255,209,102,.6); box-shadow: 0 0 0 1px rgba(255,209,102,.15) inset; }
.tier { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: .1rem .45rem; border-radius: 6px; border: 1px solid var(--line-2); color: var(--dim); }
.tier.bronze { color: #d39a6a; border-color: rgba(211,154,106,.5); } .tier.silver { color: #cfd8e3; border-color: rgba(207,216,227,.5); } .tier.gold { color: var(--gold); border-color: rgba(255,209,102,.6); }
.daily { display: grid; grid-template-columns: repeat(7, 1fr); gap: .4rem; }
.daily .d { text-align: center; padding: .5rem .2rem; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); font-size: .8rem; }
.daily .d b { display: block; font-family: var(--font-d); color: var(--gold); } .daily .d.done { opacity: .45; } .daily .d.next { border-color: var(--accent); background: rgba(255,122,26,.1); }
.trophies { display: flex; flex-wrap: wrap; gap: .4rem; } .trophies .tr { padding: .3rem .6rem; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: .8rem; }
/* T3/R.3,R.6: селектор режимов, закреплённая строка, пагинация, вкладки профиля */
.mode-sel { display: flex; gap: .45rem; flex-wrap: wrap; }
.mode-chip { display: inline-flex; flex-direction: column; gap: .1rem; padding: .45rem .8rem; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); min-width: 96px; transition: .15s; }
.mode-chip b { font-size: .82rem; } .mode-chip span { font-size: .72rem; font-weight: 800; }
.mode-chip:hover { border-color: var(--accent); } .mode-chip.on { border-color: var(--accent); background: rgba(255,122,26,.12); }
.tbl tr.pinned td { background: rgba(179,136,255,.1); border-bottom: 2px solid rgba(179,136,255,.4); }
.pager { display: flex; gap: .8rem; align-items: center; justify-content: center; }
.profile-h .pill { vertical-align: middle; }
@media (max-width: 760px) { .mode-chip { min-width: 0; } .tabs { overflow-x: auto; scrollbar-width: none; } .tabs a { white-space: nowrap; } }

/* T3/R.7 сетка режимов, лента онлайна; R.8 Pick'em */
.mode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .7rem; }
.mode-card { display: flex; flex-direction: column; gap: .25rem; padding: .8rem .9rem; border-radius: var(--r-s); border: 1px solid var(--line); border-left: 3px solid var(--c, var(--accent)); background: var(--surface); transition: .15s; }
.mode-card:hover { transform: translateY(-2px); border-color: var(--c, var(--accent)); box-shadow: var(--shadow); }
.mode-card.pk { border-left-color: var(--purple); background: linear-gradient(135deg, rgba(179,136,255,.12), var(--surface)); }
.live { max-height: 220px; overflow: auto; }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .7rem; }
.pk-row { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-s); padding: .6rem .7rem; }
.pk-row.done { opacity: .85; }
.pk-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .4rem; }
.pk-side { display: flex; flex-direction: column; gap: .25rem; padding: .5rem .6rem; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); }
.pk-side.my { border-color: var(--accent); background: rgba(255,122,26,.1); }
.pk-side.win { border-color: rgba(61,220,132,.5); }
.pk-side .btn { margin-top: .2rem; }

/* T4/F.1 кейсы: карточки, карусель, лента */
.case-card .pic { height: 140px; background: linear-gradient(135deg, rgba(255,122,26,.12), var(--surface-2)); display: flex; align-items: center; justify-content: center; }
.case-card .pic img { max-height: 100%; object-fit: contain; padding: .6rem; } .case-card .pic .ph { font-size: 3rem; }
.case-card .body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.case-card .price { font-family: var(--font-d); font-weight: 900; color: var(--gold); }
.reel-wrap { position: relative; overflow: hidden; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--bg-2); height: 118px; }
.reel-needle { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); z-index: 2; }
.reel { display: flex; gap: 6px; padding: 8px; will-change: transform; }
.rc { flex: none; width: 150px; height: 100px; border-radius: 8px; border: 1px solid var(--line-2); border-bottom: 3px solid var(--c, var(--line-2)); background: linear-gradient(180deg, var(--surface), var(--bg-2)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; text-align: center; padding: .3rem; font-size: .78rem; font-weight: 700; }
.rc img { max-height: 56px; max-width: 90%; object-fit: contain; }
.case-result { margin-top: 1rem; padding: 1rem; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--bg-2); display: flex; flex-direction: column; gap: .6rem; }
.case-result.rare { border-color: var(--gold); box-shadow: 0 0 24px rgba(255,209,102,.25); }
.case-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .5rem; }
.case-feed.col { grid-template-columns: 1fr; max-height: 360px; overflow: auto; }
.cf { display: flex; gap: .6rem; align-items: center; padding: .45rem .6rem; border-radius: 8px; border: 1px solid var(--line); border-left: 3px solid var(--c, var(--line-2)); background: var(--surface); font-size: .85rem; }
.cf img { width: 44px; height: 32px; object-fit: contain; } .cf .ph { width: 44px; text-align: center; font-size: 1.2rem; }

/* T4/F.2 миссии, F.3 стрик */
.streak-w { display: inline-flex; align-items: center; gap: .1rem; padding: .3rem .6rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--dim); font-weight: 800; font-size: .85rem; }
.streak-w.on { color: var(--accent); border-color: rgba(255,122,26,.45); background: rgba(255,122,26,.1); }
.streak-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: .35rem; }
.sd { text-align: center; padding: .4rem .2rem; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); font-weight: 800; font-size: .9rem; display: flex; flex-direction: column; gap: .1rem; }
.sd span { font-size: .65rem; color: var(--mute); font-weight: 600; }
.sd.ok { color: var(--green); border-color: rgba(61,220,132,.4); } .sd.freeze { color: var(--cyan); border-color: rgba(45,212,255,.4); }
.sd.miss { color: var(--red); opacity: .7; } .sd.today { color: var(--accent); border-color: rgba(255,122,26,.5); }
.medals { display: flex; gap: .5rem; flex-wrap: wrap; } .medal { padding: .5rem .8rem; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); text-align: center; min-width: 90px; opacity: .45; }
.medal.have { opacity: 1; border-color: var(--gold); box-shadow: 0 0 0 1px rgba(255,209,102,.15) inset; } .medal b { display: block; font-family: var(--font-d); }
.quest .take { display: flex; gap: .4rem; align-items: center; }
.mission-bar { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; border-radius: var(--r-s); border: 1px solid rgba(45,212,255,.35); background: rgba(45,212,255,.07); margin-bottom: 1rem; }

/* T4/F.4 косметика: стили карточки профиля, превью стилей */
.profile-h.style-neon { border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(45,212,255,.35), 0 0 28px rgba(45,212,255,.25); }
.profile-h.style-gold { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(255,209,102,.4), 0 0 28px rgba(255,209,102,.2); }
.profile-h.style-cyan { border-color: rgba(45,212,255,.6); background: linear-gradient(135deg, rgba(45,212,255,.12), var(--surface-2)); }
.profile-h.style-purple { border-color: var(--purple); box-shadow: 0 0 24px rgba(179,136,255,.25); }
.profile-h.style-fire { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(255,122,26,.45), 0 0 32px rgba(255,122,26,.3); }
.style-prev { font-family: var(--font-d); font-weight: 900; font-size: 1rem; padding: .5rem .9rem; border-radius: 10px; border: 2px solid var(--line-2); }
.style-prev.neon { border-color: var(--cyan); box-shadow: 0 0 14px rgba(45,212,255,.5); color: var(--cyan); }
.style-prev.gold { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 14px rgba(255,209,102,.4); }
.style-prev.cyan { border-color: rgba(45,212,255,.6); color: var(--cyan); } .style-prev.purple { border-color: var(--purple); color: var(--purple); }
.style-prev.fire { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 14px rgba(255,122,26,.5); }

/* T5: PUG */
.pug-card .bar { height: 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; } .pug-card .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--accent)); }
.pug-list { display: flex; flex-wrap: wrap; gap: .3rem; }
