*,*::before,*::after{box-sizing:border-box}
:root{
  --bg:#0b0d12;--panel:#141821;--line:rgba(255,140,40,.22);
  --text:#f3f5f8;--muted:#8d95a8;--accent:#ff6a1a;--accent2:#ff9a3c;
  --danger:#ff4d6d;--ok:#22c55e;--card:#181d28;--field:#0f131b;
  --shadow:0 18px 46px rgba(0,0,0,.5), 0 0 20px rgba(255,106,26,.12);
  --shadow-sm:0 8px 22px rgba(0,0,0,.35);
}

html,body{margin:0;min-height:100%;min-height:100dvh;min-height:100svh;color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Arial}
body{
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 78%, transparent), color-mix(in srgb, var(--bg) 92%, transparent) 55%, var(--bg)),
    radial-gradient(900px 420px at 12% -8%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 55%),
    var(--bg);
  background-attachment:scroll;
  padding-bottom:calc(96px + env(safe-area-inset-bottom,0px));
  padding-left:env(safe-area-inset-left,0px);
  padding-right:env(safe-area-inset-right,0px);
}
body::before{
  content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(circle at 50% 0%, rgba(255,106,26,.14), transparent 70%);
}

a{color:inherit}
b,strong{font-weight:600}
hr{border:0;height:1px;background:var(--line);margin:16px 0}
.wrap{max-width:1080px;margin:0 auto;padding:14px 16px 124px}

/* Шапка */
.top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:calc(12px + env(safe-area-inset-top,0px))}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;min-width:0}
.logo{
  width:38px;height:38px;display:grid;place-items:center;font-weight:800;
  background:linear-gradient(145deg,var(--accent2),var(--accent));color:#1a0b04;font-size:13px;flex:0 0 auto;
  clip-path:polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  box-shadow:0 0 16px rgba(255,106,26,.3);
}
.logo.has-img{padding:0;overflow:hidden;background:transparent}
.logo.has-img img{width:100%;height:100%;object-fit:cover;display:block}
.brand b{display:block;font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:-.01em}
.brand small{color:var(--accent2);font-size:11px;font-weight:500}
.actions{display:flex;align-items:center;gap:6px;flex:0 0 auto}

.online-pill{
  display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;white-space:nowrap;
  background:rgba(34,197,94,.12);border:1px solid rgba(34,197,94,.32);color:#86efac;font-size:12px;font-weight:600;line-height:1;
}
.online-pill i{width:7px;height:7px;border-radius:50%;background:var(--ok);display:block;flex:0 0 auto;box-shadow:0 0 8px var(--ok);animation:pulseDot 2s infinite}
@keyframes pulseDot{
  0%{box-shadow:0 0 0 0 rgba(34,197,94,.7)}
  70%{box-shadow:0 0 0 6px rgba(34,197,94,0)}
  100%{box-shadow:0 0 0 0 rgba(34,197,94,0)}
}

.note-wrap{position:relative}
.icon-btn{
  width:40px;height:40px;border-radius:12px;border:1px solid var(--line);background:var(--card);
  color:var(--text);display:grid;place-items:center;position:relative;text-decoration:none;cursor:pointer;
  transition:border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.icon-btn:hover{border-color:var(--accent);color:var(--accent2);transform:translateY(-1px);box-shadow:0 6px 16px rgba(255,106,26,.2)}
.icon-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.badge{position:absolute;top:-4px;right:-4px;min-width:16px;height:16px;padding:0 4px;border-radius:99px;
  background:var(--accent);color:#1a0b04;font-size:10px;font-weight:700;display:grid;place-items:center}
.notes-pop{position:absolute;right:0;top:48px;width:min(360px,calc(100vw - 24px));max-height:70vh;overflow:auto;z-index:60;
  background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:12px;box-shadow:0 16px 40px rgba(0,0,0,.55)}

/* Единый тактический стиль всех кнопок на сайте */
.btn{
  position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;gap:6px;
  height:36px;padding:0 15px;border-radius:10px;font-weight:600;font-size:13px;letter-spacing:.01em;
  text-decoration:none;cursor:pointer;border:1px solid var(--line);background:rgba(255,255,255,.04);color:var(--text);
  transition:all .16s ease;
}
.btn-primary{
  background:rgba(255,106,26,.16);border-color:rgba(255,140,40,.48);color:var(--accent2);
  box-shadow:0 2px 10px rgba(255,106,26,.12);
}
.btn-primary:hover{
  background:linear-gradient(135deg,var(--accent2),var(--accent));border-color:transparent;color:#1a0b04;
  transform:translateY(-1px);box-shadow:0 6px 18px rgba(255,106,26,.34);
}
.btn-ghost{
  background:rgba(255,255,255,.03);border-color:var(--line);color:var(--text);
}
.btn-ghost:hover{
  border-color:var(--accent2);color:var(--accent2);background:rgba(255,140,40,.08);transform:translateY(-1px);
}
.btn-danger{
  background:rgba(255,77,109,.1);border-color:rgba(255,77,109,.35);color:var(--danger);
}
.btn-danger:hover{
  background:var(--danger);color:#fff;border-color:transparent;transform:translateY(-1px);
}
.btn:active{transform:scale(.98)}
.tab.active,.pay.active,.avatar-btn.active,.rank-chip.me,.cash-split button.on{
  background:color-mix(in srgb,var(--accent) 18%,transparent);color:var(--accent2);border-color:var(--accent);
}

/* Архитектурный HUD-контейнер .panel */
.panel{
  position:relative;margin-top:16px;padding:20px;border-radius:20px;
  background:linear-gradient(180deg, rgba(20,25,35,.68), rgba(14,17,25,.42));
  backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  border:1px solid transparent;
}
.panel::before{
  content:"";position:absolute;inset:0;border-radius:20px;padding:1px;pointer-events:none;
  background:linear-gradient(180deg, rgba(255,140,40,.34), rgba(255,140,40,.06) 65%, transparent);
  -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;
}
.panel::after{
  content:"";position:absolute;top:-1px;right:-1px;width:16px;height:16px;pointer-events:none;
  border-top:2px solid var(--accent2);border-right:2px solid var(--accent2);border-radius:0 20px 0 0;opacity:.85;
}
.panel h2{
  margin:0 0 14px;padding-bottom:10px;border-bottom:1px solid rgba(255,140,40,.14);
  font-size:17px;font-weight:600;letter-spacing:.01em;text-transform:uppercase;
  display:flex;align-items:center;gap:8px;
}
.panel h2::before{content:"";display:inline-block;width:3px;height:15px;border-radius:2px;background:linear-gradient(180deg,var(--accent2),var(--accent))}

/* Вложенный слой карточек */
.hero,.card,.block{
  background:rgba(24,29,40,.78);
  border:1px solid rgba(255,140,40,.16);border-radius:16px;backdrop-filter:blur(10px);
  box-shadow:0 4px 16px rgba(0,0,0,.22);
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover,.fcard:hover,a.match:hover{
  transform:translateY(-2px);box-shadow:0 10px 26px rgba(0,0,0,.35);border-color:color-mix(in srgb,var(--accent) 45%,transparent);
}

.hero{margin-top:16px;padding:22px;position:relative;overflow:hidden}
.hero::before{content:"";position:absolute;top:0;right:0;width:110px;height:3px;background:linear-gradient(90deg,transparent,var(--accent),var(--accent2))}
.hero h1{margin:0 0 6px;font-size:24px;font-weight:700;letter-spacing:-.02em;text-transform:uppercase}
.lead{margin:0;color:var(--muted);max-width:640px;line-height:1.5;font-size:14px}

.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:14px}
.card{padding:16px}
.card h3{margin:0 0 6px;font-size:15px;font-weight:600}
.card p{margin:0;color:var(--muted);font-size:13px;line-height:1.45}

.muted{color:var(--muted);font-size:13px}

/* Поля ввода */
.field{position:relative;margin-top:12px}
.field label{position:absolute;left:14px;top:10px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.03em;color:var(--muted);pointer-events:none}
.input,select.input,textarea.input{width:100%;padding:26px 14px 10px;border-radius:12px;border:1px solid rgba(255,140,40,.18);
  background:rgba(15,19,27,.85);color:var(--text);outline:none;font-size:14px;appearance:none;transition:border-color .16s ease, box-shadow .16s ease}
.input:focus,select.input:focus{border-color:color-mix(in srgb,var(--accent) 75%,transparent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 14%,transparent)}
.input.plain{padding:10px 14px;height:40px}

/* Блок «Игровые ID» на регистрации: кнопки-добавлялки */
.id-block{margin-top:14px}
.id-block__label{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.03em;color:var(--muted);margin:0 0 8px 2px}
.id-add-list{display:flex;flex-direction:column;gap:8px}
.id-add{
  width:100%;height:52px;display:flex;align-items:center;justify-content:center;gap:8px;
  border-radius:12px;border:1px dashed rgba(255,140,40,.32);
  background:rgba(15,19,27,.55);color:var(--muted);
  font-size:13px;font-weight:600;font-family:inherit;letter-spacing:.01em;
  cursor:pointer;transition:border-color .16s ease, color .16s ease, background .16s ease;
}
.id-add svg{width:15px;height:15px;flex:0 0 15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.id-add:hover,.id-add:active{
  border-color:var(--accent2);color:var(--accent2);
  background:rgba(255,140,40,.07);
}
.id-add:active{transform:scale(.99)}

.row{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.row.center{justify-content:center;text-align:center}
.msg{min-height:18px;margin-top:8px;font-size:13px}

.stat{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px}
.stat-mini{display:flex;flex-direction:column;gap:4px;padding:12px;border-radius:14px;
  background:rgba(24,29,40,.72);border:1px solid rgba(255,140,40,.16);font-size:13px;color:inherit;text-decoration:none}
.w{color:var(--ok)} .l{color:var(--danger)}
.hidden{display:none !important}

.create{margin:14px 0 0;padding:16px;border-radius:16px;border:1px solid color-mix(in srgb,var(--accent) 35%,transparent);background:rgba(24,29,40,.72)}
.form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}

.tabs{display:flex;gap:4px;margin:4px 0 14px;flex-wrap:wrap;align-items:center;background:rgba(255,255,255,.03);border:1px solid rgba(255,140,40,.16);border-radius:14px;padding:4px}
.tab{border:0;background:transparent;color:var(--muted);border-radius:10px;padding:9px 12px;font-weight:600;cursor:pointer;font-size:13px;flex:1;text-align:center;min-height:38px;transition:all .15s ease}
.tab.active{background:color-mix(in srgb,var(--accent) 20%,transparent);color:var(--accent2);border:0}
.tab[data-open="create"]{margin-left:0}

.stats-one{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:14px}
.stats-one .cell{padding:14px;border:1px solid rgba(255,140,40,.16);border-radius:14px;display:flex;gap:10px;align-items:center;background:rgba(24,29,40,.75);min-width:0;transition:border-color .16s ease}
.stats-one .cell:hover{border-color:var(--accent2)}
.stats-one .ico{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 16%,transparent);border:1px solid color-mix(in srgb,var(--accent) 30%,transparent);font-size:18px;flex:0 0 auto}
.stats-one .n{font-size:18px;font-weight:600;line-height:1.1;word-break:break-word}
.stats-one .l{color:var(--muted);font-size:11px}
.about{margin-top:14px;color:var(--muted);line-height:1.6;font-size:14px}

.avatars{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}
.avatar-btn{height:56px;border-radius:14px;border:1px solid var(--line);background:var(--field);font-size:26px;cursor:pointer;color:var(--text)}
.profile-head{display:grid;grid-template-columns:72px 1fr;gap:14px;align-items:center}
.profile-ava{width:72px;height:72px;border-radius:18px;display:grid;place-items:center;font-size:34px;background:var(--field);border:1px solid color-mix(in srgb,var(--accent) 35%,transparent);cursor:pointer}
.rank-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:rgba(255,140,40,.08);border:1px solid var(--line);font-size:13px;cursor:pointer}
.prof-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.prof-head .icon-btn{margin-left:auto;flex:0 0 40px}

/* Матчи, списки, транзакции */
a.match,a.lb,.req,.note,.tx{
  position:relative;display:flex;gap:12px;align-items:center;padding:13px 14px;margin:0 0 10px;
  border:1px solid rgba(255,140,40,.16);border-radius:14px;text-decoration:none;
  background:rgba(24,29,40,.78);
  box-shadow:0 3px 12px rgba(0,0,0,.18);
}
a.match::before,a.lb::before{
  content:"";position:absolute;left:0;top:22%;bottom:22%;width:3px;border-radius:0 3px 3px 0;
  background:linear-gradient(180deg,var(--accent2),var(--accent));opacity:.55;transition:all .16s ease;
}
a.match:hover::before,a.lb:hover::before{top:0;bottom:0;opacity:1}

.match-row{display:flex;gap:10px;align-items:stretch;margin:0 0 10px}
.match-row .match{flex:1;margin:0}
.match-row .join{flex:0 0 auto;align-self:center}
.match-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.chip{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--text);background:rgba(255,255,255,.04);border:1px solid rgba(255,140,40,.18);border-radius:999px;padding:3px 9px}
.chip.game-cf{border-color:rgba(255,80,80,.45);color:#ff9a9a}
.chip.game-so2{border-color:rgba(255,154,60,.35)}
.hero-stats .game-cf{color:#ff9a9a;border-color:rgba(255,80,80,.45)}

.map-ico{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;background:var(--field);border:1px solid color-mix(in srgb,var(--accent) 28%,transparent);font-size:22px;flex:0 0 auto}
.map-ico.big{width:58px;height:58px;font-size:28px;border-radius:14px}
.map-ico.has-img{padding:0;overflow:hidden}
.map-ico img{width:100%;height:100%;object-fit:cover;display:block}

.glow{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;font-size:18px;border:1px solid transparent}
.glow.blue{background:rgba(59,130,246,.12);border-color:#3b82f6;box-shadow:0 0 8px rgba(59,130,246,.3)}
.glow.red{background:rgba(239,68,68,.12);border-color:#ef4444;box-shadow:0 0 8px rgba(239,68,68,.26)}

.map-hero{display:flex;gap:14px;align-items:flex-end;margin:8px 0 14px;min-height:148px;aspect-ratio:3/1;padding:16px;border-radius:18px;background:linear-gradient(180deg,rgba(255,122,26,.16),rgba(7,8,13,.65));border:1px solid rgba(255,140,40,.2);overflow:hidden}
.map-hero.has-banner{position:relative;background-size:cover;background-position:center}
.map-hero.has-banner:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(7,8,13,.15),rgba(7,8,13,.84))}
.map-hero.has-banner>*{position:relative;z-index:1}
.hero-copy{flex:1;min-width:0}
.hero-stats{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.hero-stats span{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;background:rgba(0,0,0,.45);border:1px solid rgba(255,154,60,.22);backdrop-filter:blur(10px);font-size:12.5px}

.match-card{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:8px}
.kv{padding:12px;border:1px solid rgba(255,140,40,.16);border-radius:12px;background:rgba(24,29,40,.72)}
.kv span{display:block;color:var(--muted);font-size:12px;margin-bottom:4px}

.players{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:stretch;margin-top:16px}
.team{display:flex;flex-direction:column;gap:8px;min-width:0}
.pcard{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1px solid rgba(255,140,40,.16);border-radius:14px;background:rgba(24,29,40,.82);min-height:88px;width:100%;box-sizing:border-box;overflow:hidden}
.pcard .glow{width:44px;height:44px;flex:0 0 44px;font-size:22px;display:grid;place-items:center}
.pcard-body{flex:1;min-width:0;min-height:60px;display:flex;flex-direction:column;justify-content:flex-start}
.so2-chip{margin-top:6px;min-height:22px;visibility:visible}
.so2-chip.ghost{opacity:.35}

.vs{
  font-weight:800;color:var(--accent2);align-self:center;padding:6px 9px;border-radius:10px;
  background:rgba(255,106,26,.1);border:1px solid rgba(255,106,26,.3);text-shadow:0 0 12px rgba(255,106,26,.6);
}
.winner-banner{margin:12px 0;padding:14px;border-radius:14px;border:1px solid color-mix(in srgb,var(--ok) 40%,transparent);background:rgba(34,197,94,.08)}
.info{margin-top:16px;padding:14px;border-radius:14px;border:1px dashed rgba(255,140,40,.22);background:rgba(24,29,40,.65)}
.info ol{margin:8px 0 0;padding-left:18px;color:var(--muted);font-size:13px;line-height:1.55}

.amount-field{max-width:180px}
.pay-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}
.pay{border:1px solid rgba(255,140,40,.18);background:rgba(24,29,40,.65);color:var(--text);border-radius:14px;padding:14px;cursor:pointer;text-align:left;transition:border-color .15s ease}
.pay:hover{border-color:var(--accent2)}
.pay b{display:block;margin:4px 0}
.pay .e{font-size:20px}
.block{padding:16px;margin-top:14px}
.block h3{margin:0 0 10px;padding-bottom:8px;border-bottom:1px solid rgba(255,140,40,.14);font-size:15px;font-weight:600}
.cash-split{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.cash-split button{width:100%;min-height:46px;border:1px solid rgba(255,140,40,.18);border-radius:12px;font-weight:600;cursor:pointer;background:rgba(24,29,40,.65);color:var(--text)}
.btn-block{width:100%}
.btn-paid{width:auto;min-width:140px;max-width:220px;height:36px;padding:0 20px}

/* Чат */
.chat{margin-top:16px;border:1px solid rgba(255,140,40,.18);border-radius:16px;padding:14px;background:rgba(24,29,40,.75)}
.chat-log{max-height:240px;overflow:auto;display:flex;flex-direction:column;gap:8px;margin-top:8px}
.cmsg{padding:8px 11px;border-radius:11px;background:rgba(15,19,27,.85);border:1px solid rgba(255,140,40,.14);font-size:13px}
.cmsg.admin{border-color:color-mix(in srgb,var(--accent2) 45%,transparent)}
.chat-row{display:flex;gap:8px;margin-top:10px;align-items:center}
.chat-row .input{margin:0;height:40px;padding:0 14px;border-radius:10px}
.chat-row .btn{height:40px;padding:0 16px;flex:0 0 auto;border-radius:10px}

.notice{padding:12px;border:1px solid color-mix(in srgb,var(--accent) 40%,transparent);border-radius:12px;margin:8px 0;background:rgba(24,29,40,.75)}
.admin-table{width:100%;border-collapse:collapse;font-size:13px}
.admin-table th,.admin-table td{border-bottom:1px solid rgba(255,140,40,.14);padding:9px 6px;text-align:left;vertical-align:middle}
.pick-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.hist-title{margin:22px 0 10px;padding-bottom:6px;border-bottom:1px solid rgba(255,140,40,.14);font-size:15px;font-weight:600}
.tx,.req,.note{justify-content:space-between}
.plus{color:var(--ok)} .minus{color:var(--danger)}

.auth-switch{display:flex;gap:4px;margin-bottom:12px;background:rgba(255,255,255,.03);border:1px solid rgba(255,140,40,.16);border-radius:12px;padding:4px}
.auth-switch .tab{flex:1;border:0;background:transparent;text-align:center;padding:9px 8px;border-radius:9px}
.auth-switch .tab.active{background:color-mix(in srgb,var(--accent) 20%,transparent);color:var(--accent2);border:0}
.auth-actions{display:flex;flex-direction:column;gap:8px;margin-top:16px}
.auth-narrow{max-width:420px;margin:20px auto 0}

.ava-pop{margin-top:10px;padding:12px;border:1px solid rgba(255,140,40,.18);border-radius:14px;background:rgba(15,19,27,.9)}
.thread{padding:10px;border:1px solid rgba(255,140,40,.16);border-radius:12px;margin:8px 0;cursor:pointer;background:rgba(24,29,40,.72)}
.faq ol{padding-left:18px;color:var(--muted);line-height:1.65}
.faq h3{margin:18px 0 8px;padding-bottom:6px;border-bottom:1px solid rgba(255,140,40,.14);font-size:15px;font-weight:600}

/* Нижняя навигационная панель — Command HUD Dock */
.dock{
  position:fixed;left:50%;bottom:calc(12px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);
  width:min(560px,calc(100% - 24px));display:flex;align-items:center;gap:4px;
  padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));border-radius:18px;
  background:linear-gradient(180deg, rgba(14,16,22,.94), rgba(7,8,11,.97));
  border:1px solid rgba(255,255,255,.09);
  backdrop-filter:blur(24px) saturate(140%);-webkit-backdrop-filter:blur(24px) saturate(140%);
  z-index:40;
  box-shadow:0 20px 60px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.07);
  opacity:0;visibility:hidden;transition:opacity .12s ease;
}
html.dock-ready .dock{opacity:1;visibility:visible}
.dock::before{
  content:"";position:absolute;top:-1px;left:10%;right:10%;height:1px;pointer-events:none;
  background:linear-gradient(90deg, transparent, rgba(255,140,40,.55), transparent);
}
.tg-webview .dock{padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))}
.dock a,.dock button{
  position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
  background:transparent;border:0;color:var(--muted);
  text-decoration:none;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:8px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;
  padding:7px 4px;border-radius:14px;cursor:pointer;flex:1;min-width:0;
  transition:color .18s ease, background .18s ease;
}
.dock a:hover,.dock button:hover{color:var(--text);background:rgba(255,255,255,.03)}
.dock svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;transition:filter .18s ease}

/* Активная вкладка в док-панели */
.dock a.on{
  color:var(--accent2);font-weight:600;
  background:linear-gradient(180deg, rgba(255,106,26,.14), rgba(255,106,26,.02));
}
.dock a.on svg{
  filter:drop-shadow(0 0 8px rgba(255,106,26,.55));
}
.dock a.on::after{
  content:"";position:absolute;bottom:2px;left:50%;transform:translateX(-50%);
  width:20px;height:2px;border-radius:99px;
  background:linear-gradient(90deg, var(--accent2), var(--accent));
  box-shadow:0 0 10px var(--accent);
}

/* Кнопка «Ещё» в док-панели */
.dock .more{
  flex:0 0 44px;margin-left:6px;width:44px;height:44px;padding:0;
  border-radius:12px;
  background:rgba(255,106,26,.08);
  border:1px solid rgba(255,140,40,.32);
  color:var(--accent2);
}
.dock .more::before{
  content:"";position:absolute;left:-7px;top:22%;bottom:22%;width:1px;
  background:rgba(255,140,40,.22);pointer-events:none;
}
.dock .more:hover{
  background:linear-gradient(135deg, var(--accent2), var(--accent));
  color:#180902;border-color:transparent;
  box-shadow:0 4px 16px rgba(255,106,26,.38);
}

.sheet{position:fixed;inset:0;background:rgba(6,8,12,.68);backdrop-filter:blur(4px);display:none;align-items:flex-end;z-index:50}
.sheet .box{width:100%;background:var(--panel);border-top:1px solid rgba(255,140,40,.24);border-radius:24px 24px 0 0;padding:12px 16px calc(20px + env(safe-area-inset-bottom,0px))}
.sheet-head{position:relative;display:flex;align-items:center;justify-content:center;padding:8px 0 14px}
.sheet-head__grip{position:absolute;top:0;left:50%;transform:translateX(-50%);width:44px;height:4px;border-radius:99px;background:rgba(255,255,255,.14)}
.sheet-head__title{font-size:13px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
.sheet-head__close{position:absolute;right:0;top:2px;width:32px;height:32px;display:grid;place-items:center;border-radius:10px;border:1px solid rgba(255,140,40,.18);background:rgba(255,255,255,.03);color:var(--muted);cursor:pointer;transition:color .15s ease,border-color .15s ease}
.sheet-head__close:hover{color:var(--text);border-color:var(--accent2)}
.sheet-head__close svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.sheet-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.sheet-item{display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 8px 12px;border-radius:16px;
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.015));
  border:1px solid rgba(255,140,40,.14);color:var(--text);text-decoration:none;cursor:pointer;
  transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.sheet-item:hover,.sheet-item:active{transform:translateY(-2px);border-color:var(--accent2);
  background:linear-gradient(180deg,rgba(255,140,40,.12),rgba(255,255,255,.02));
  box-shadow:0 8px 20px rgba(0,0,0,.35)}
.sheet-item__ico{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;
  background:rgba(255,106,26,.1);border:1px solid rgba(255,140,40,.22);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}
.sheet-item__ico svg{width:19px;height:19px;fill:none;stroke:var(--accent2);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sheet-item__label{font-size:11.5px;font-weight:600;text-align:center;line-height:1.25;letter-spacing:.01em}
.sheet-item--logout{border-color:rgba(255,77,109,.24);color:#ff8ba0}
.sheet-item--logout .sheet-item__ico{background:rgba(255,77,109,.12);border-color:rgba(255,77,109,.32)}
.sheet-item--logout .sheet-item__ico svg{stroke:#ff8ba0}
.sheet-item--logout:hover,.sheet-item--logout:active{border-color:#ff4d6d;color:#ffb3c0;
  background:linear-gradient(180deg,rgba(255,77,109,.14),rgba(255,255,255,.02))}
.sheet .row{justify-content:center}

.copy{word-break:break-all;background:rgba(15,19,27,.85);border:1px solid rgba(255,140,40,.18);border-radius:12px;padding:10px;font-size:12px}
.filters{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 14px}
.theme-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.theme-grid label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--muted)}
.theme-grid input[type=color]{width:100%;height:40px;border:1px solid rgba(255,140,40,.18);border-radius:10px;background:transparent}

.fcard{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid rgba(255,140,40,.16);border-radius:14px;background:rgba(24,29,40,.78);margin:8px 0;text-decoration:none;color:inherit}
.fcard .ava{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;font-size:24px;background:rgba(255,255,255,.04);border:1px solid rgba(255,140,40,.16)}
.fcard .meta{flex:1;min-width:0}
.fcard .meta b{display:block}
.fcard .acts{display:flex;gap:6px;flex-wrap:wrap}
.ev-list{display:flex;flex-direction:column;gap:8px;margin:8px 0}
.ev-item video{width:100%;max-height:240px;border-radius:12px;background:#000}
.ev-item a{display:block;margin-top:8px}
.ev-item img{width:100%;max-height:360px;object-fit:contain;border-radius:12px;background:#000;display:block}

.gold-ico{width:18px;height:18px;vertical-align:-3px;display:inline-block;object-fit:contain;filter:drop-shadow(0 2px 4px rgba(0,0,0,.45))}
.gold-ico.inline{width:16px;height:16px}
.rub-ico{width:16px;height:16px;display:inline-block;vertical-align:-2px;fill:none;stroke:var(--accent2);stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 2px 4px rgba(0,0,0,.45))}
.rub-ico.inline{width:15px;height:15px}
.social-row{display:flex;gap:12px;margin-top:16px}
.social-icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;background:rgba(24,29,40,.85);border:1px solid rgba(255,140,40,.2);overflow:hidden;color:#fff;transition:border-color .15s ease, transform .15s ease}
.social-icon:hover{border-color:var(--accent);transform:translateY(-2px)}
.social-icon svg{width:20px;height:20px;display:block;fill:currentColor}

.lobby-row{display:flex;gap:10px;align-items:center;justify-content:center;margin:12px 0;flex-wrap:wrap}
.lobby-code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.12em;font-weight:700;min-width:168px}
.danger-tri{width:36px;height:36px;border-radius:10px;border:1px solid rgba(255,77,109,.4);background:rgba(255,77,109,.1);color:var(--danger);font-weight:700;cursor:pointer}
.cup-btn{font-size:18px}
.danger-pop{position:fixed;inset:0;background:rgba(0,0,0,.55);display:flex;align-items:flex-end;justify-content:center;z-index:80}
.danger-pop.hidden{display:none}
.danger-box{width:min(520px,94vw);background:var(--panel);border:1px solid rgba(255,140,40,.24);border-radius:20px 20px 0 0;padding:16px 16px calc(24px + env(safe-area-inset-bottom,0px));animation:vpUp .18s ease}
@keyframes vpUp{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}

.vp-toasts{position:fixed;left:50%;bottom:calc(88px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:90;display:flex;flex-direction:column;gap:8px;pointer-events:none;width:min(420px,92vw)}
.vp-toast{background:var(--card);border:1px solid var(--line);color:var(--text);padding:10px 14px;border-radius:14px;opacity:0;transform:translateY(8px);transition:.2s ease}
.vp-toast.show{opacity:1;transform:none}
.vp-toast.ok{border-color:var(--ok)}
.vp-toast.bad{border-color:var(--danger)}

/* Venta landing */
.land{max-width:1040px}
.land-hero{display:block;padding:18px 18px 16px;overflow:hidden}
.land-hero h1{margin:0 0 8px;font-size:clamp(24px,3.6vw,36px);font-weight:800;line-height:1.08;letter-spacing:-.03em;text-transform:uppercase;text-shadow:0 0 54px color-mix(in srgb,var(--accent) 40%, transparent)}
.land-hero .lead{margin:0;max-width:46ch;font-size:15px;line-height:1.45}
.land-cta{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 10px}
.land-hero .social-row{margin-top:2px}
.land-stats{margin-top:4px}
.land-stats .cell{padding:10px 12px}
.land-stats .n{font-size:20px;font-weight:700;letter-spacing:-.02em;line-height:1.1}
.land-stats .l{font-size:11px}
.land .about{margin:12px 0 0;max-width:62ch;line-height:1.5}

.land-block{margin-top:24px;padding-top:18px;border-top:1px solid rgba(255,140,40,.16)}
.land-block h2{
  margin:0 0 12px;font-size:clamp(17px,2vw,20px);font-weight:700;letter-spacing:-.01em;line-height:1.2;text-transform:uppercase;
  display:flex;align-items:center;gap:8px;
}
.land-block h2::before{content:"";display:inline-block;width:3px;height:15px;border-radius:2px;background:linear-gradient(180deg,var(--accent2),var(--accent))}

.land-device{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:center}
.land-device__copy .lead{margin:0 0 12px;max-width:40ch}
.land-ticks{margin:0;padding:0;list-style:none;display:grid;gap:7px}
.land-ticks li{position:relative;padding:8px 10px 8px 32px;border:1px solid rgba(255,140,40,.16);border-radius:12px;font-size:13px;background:rgba(24,29,40,.65)}
.land-ticks li:before{content:"";position:absolute;left:12px;top:50%;width:8px;height:8px;border-radius:50%;transform:translateY(-50%);background:linear-gradient(180deg,var(--accent2),var(--accent))}

.land-device__stage{position:relative;min-height:360px;display:grid;place-items:center}
.phone{width:210px;position:relative;z-index:2}
.phone__frame{padding:8px;border-radius:36px;background:#05060a;border:1px solid color-mix(in srgb,var(--accent) 38%, transparent);box-shadow:0 0 48px color-mix(in srgb,var(--accent) 24%, transparent),0 20px 56px rgba(0,0,0,.5)}
.phone__screen{position:relative;overflow:hidden;border-radius:28px;aspect-ratio:9/19.2;background:
  radial-gradient(120% 55% at 50% 0%, color-mix(in srgb,var(--accent) 24%, transparent), transparent 55%),
  linear-gradient(180deg,#12151d,#07080c)}
.phone__notch{position:absolute;top:14px;left:50%;transform:translateX(-50%);width:64px;height:14px;border-radius:999px;background:#000;z-index:3}
.phone__bar{display:flex;justify-content:space-between;align-items:center;padding:34px 14px 6px;font-size:11px;font-weight:700}
.gold-chip{font-size:10px;padding:3px 7px;border-radius:999px;border:1px solid color-mix(in srgb,var(--accent) 50%, transparent);color:var(--accent2)}
.phone__match{margin:14px 12px;padding:12px;border-radius:14px;border:1px solid var(--line);background:rgba(0,0,0,.28)}
.phone__map{font-size:10px;letter-spacing:.18em;color:var(--muted)}
.phone__vs{display:flex;align-items:center;justify-content:space-between;margin:8px 0;font-size:16px}
.phone__vs span{font-size:10px;color:var(--accent2);letter-spacing:.14em}
.phone__meta{font-size:10px;color:var(--muted)}
.phone__barline{height:5px;border-radius:99px;background:rgba(255,255,255,.08);margin-top:10px;overflow:hidden}
.phone__barline i{display:block;width:62%;height:100%;background:linear-gradient(90deg,var(--accent),var(--accent2));animation:load 2.4s ease-in-out infinite}
@keyframes load{0%,100%{width:42%}50%{width:78%}}
.phone__btn{margin:0 14px;text-align:center;padding:8px;border-radius:10px;border:1px solid var(--accent);color:var(--accent2);font-size:11px;font-weight:700}

.ncard{position:absolute;z-index:3;display:flex;gap:8px;width:min(200px,58%);padding:9px 10px;border-radius:12px;background:#0b0d13e8;border:1px solid var(--line);box-shadow:0 12px 28px rgba(0,0,0,.38);rotate:var(--rot,0deg);backdrop-filter:blur(10px);animation:cardHover 4s ease-in-out infinite alternate}
@keyframes cardHover{0%{transform:translateY(0)}100%{transform:translateY(-5px)}}
.ncard b{display:block;font-size:12px;line-height:1.2}
.ncard p{margin:2px 0 0;font-size:10px;color:var(--muted);line-height:1.3}
.ncard__dot{width:7px;height:7px;border-radius:50%;margin-top:5px;flex:0 0 7px;background:var(--accent)}
.ncard--ok{top:10px;left:0;border-left:3px solid var(--ok)}
.ncard--ok .ncard__dot{background:var(--ok)}
.ncard--accent{top:78px;right:0;border-left:3px solid var(--accent);animation-delay:1s}
.ncard--warn{bottom:16px;left:4px;border-left:3px solid var(--danger);animation-delay:2s}
.ncard--warn .ncard__dot{background:var(--danger)}

.land-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.land-steps li{display:flex;flex-direction:column;gap:6px;padding:12px;border:1px solid rgba(255,140,40,.16);border-radius:14px;background:rgba(24,29,40,.72);transition:border-color .15s ease, transform .15s ease}
.land-steps li:hover{border-color:var(--accent2);transform:translateY(-2px)}
.land-steps span{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;font-weight:700;color:var(--accent2)}
.land-steps b{display:block;font-size:13px;line-height:1.25}
.land-steps p{margin:0;color:var(--muted);font-size:12px;line-height:1.4}

.fairplay{display:grid;grid-template-columns:.85fr 1.15fr;gap:16px;align-items:start;padding:16px;border-radius:18px;border:1px solid rgba(255,140,40,.18);background:
  radial-gradient(80% 80% at 0% 0%, color-mix(in srgb,var(--accent) 12%, transparent), transparent 60%),
  rgba(24,29,40,.78)}
.fairplay__intro h2{margin:0 0 8px;font-size:clamp(17px,2vw,20px);font-weight:700;text-transform:uppercase}
.fairplay__intro .lead{margin:0;font-size:14px}
.fairplay__list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.fairplay__list li{padding:12px;border-radius:12px;border:1px solid rgba(255,140,40,.14);background:rgba(0,0,0,.18)}
.fairplay__list h3{margin:0 0 4px;font-size:13px;font-weight:600}
.fairplay__list p{margin:0;color:var(--muted);font-size:12px;line-height:1.4}

.land-cta-foot{margin:22px 0 4px;padding:20px 16px;border-radius:18px;border:1px solid rgba(255,140,40,.18);text-align:center;background:radial-gradient(70% 120% at 50% 0%, color-mix(in srgb,var(--accent) 16%, transparent), transparent 70%)}
.land-cta-foot h2{margin:0 0 6px;font-size:19px;font-weight:700;text-transform:uppercase}
.land-cta-foot .lead{margin:0 auto;max-width:40ch;font-size:14px}
.land-cta-foot .land-cta{justify-content:center;margin-bottom:0}

/* Переключатель игр — оригинальные логотипы SO2 / CF */
.game-switch{display:inline-flex;align-items:center;gap:2px;padding:3px;border-radius:12px;background:rgba(255,122,26,.1);border:1px solid rgba(255,122,26,.3);margin-right:6px}
.game-switch button{appearance:none;border:0;background:transparent;width:30px;height:28px;padding:0;border-radius:9px;display:grid;place-items:center;cursor:pointer;transition:background .16s ease,box-shadow .16s ease}
.game-switch button:hover{background:rgba(255,255,255,.05)}
.game-switch button.on{background:rgba(255,106,26,.18);box-shadow:inset 0 0 0 1px rgba(255,140,40,.55),0 0 12px rgba(255,106,26,.25)}
.game-switch__logo{width:22px;height:22px;object-fit:contain;display:block;border-radius:5px;background:#0b0d12;padding:2px}
.cell .ico-svg{width:28px;height:28px;display:grid;place-items:center;border-radius:10px;background:linear-gradient(180deg,color-mix(in srgb,var(--accent) 28%, transparent),rgba(255,255,255,.04));border:1px solid color-mix(in srgb,var(--accent) 40%, transparent)}
.cell .ico-svg svg{width:16px;height:16px;stroke:var(--accent2);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.phone--cf .phone__frame{border-color:color-mix(in srgb,#ff4d3a 50%, transparent);box-shadow:0 0 48px color-mix(in srgb,#ff4d3a 28%, transparent),0 20px 56px rgba(0,0,0,.5)}
.phone--cf .phone__screen{background:radial-gradient(120% 55% at 50% 0%, color-mix(in srgb,#ff4d3a 28%, transparent), transparent 55%), linear-gradient(180deg,#1a1010,#07080c)}
.phone--cf .gold-chip{border-color:color-mix(in srgb,#ff4d3a 50%, transparent);color:#ffb4a8}
.phone--cf .phone__btn{border-color:#ff4d3a;color:#ffb4a8}

@media (max-width:900px){
  .land-steps{grid-template-columns:1fr 1fr}
  .land-steps li:last-child{grid-column:1 / -1}
}
@media (max-width:820px){
  .land-device,.fairplay{grid-template-columns:1fr}
  .land-device__stage{min-height:340px}
  .fairplay__list{grid-template-columns:1fr}
}
@media (max-width:800px){
  .grid,.form-grid,.match-card,.theme-grid{grid-template-columns:1fr 1fr}
  .stats-one{grid-template-columns:1fr 1fr}
  .tab[data-open="create"]{margin-left:0}
  .hero h1{font-size:22px}
  .online-pill{font-size:11px;padding:5px 8px;max-width:38vw;overflow:hidden;text-overflow:ellipsis}
}
@media (max-width:520px){
  .form-grid,.players,.pay-grid,.stat,.grid,.theme-grid{grid-template-columns:1fr}
  .stats-one{grid-template-columns:1fr 1fr;gap:8px}
  .stats-one .cell{padding:10px}
  .stats-one .n{font-size:15px}
  .panel{padding:16px 14px;border-radius:16px}
  .panel::before{border-radius:16px}
  .hero{padding:16px}
  .hero h1{font-size:20px}
  .wrap{padding:12px 12px 118px}
  .brand small{display:none}
  .top{gap:6px}
  .match-row{flex-direction:column}
  .match-row .join{width:100%}
  .land-hero{padding:14px}
  .land-steps{grid-template-columns:1fr}
  .land-steps li:last-child{grid-column:auto}
  .phone{width:188px}
}
@media (prefers-reduced-motion:reduce){
  .phone__barline i, .online-pill i, .ncard{animation:none}
}
/* === ФИКС .dock, МОДАЛОК И АДАПТИВНОСТИ === */
.dock {
  bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  padding: 6px 8px !important;
  justify-content: space-between !important;
}

.dock a,
.dock button {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.dock .more {
  flex: 0 0 44px !important;
}

/* Z-index модалок и уведомлений */
.notes-pop { z-index: 65; }
.sheet { z-index: 75; }
.danger-pop { z-index: 85; }
.vp-toasts { z-index: 95; }

/* Модалка инструкции при входе в матч (#howModal) */
#howModal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(6, 8, 12, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#howModal.hidden {
  display: none !important;
}
#howModal > div {
  width: min(440px, 100%);
  background: var(--panel);
  border: 1px solid rgba(255, 140, 40, 0.28);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
}

/* Горизонтальный скролл таблиц админки на телефонах */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.admin-table {
  min-width: 620px;
}

/* Защита от растяжения карточек длинными никами и состояния кнопок */
.pcard-body b,
.pcard-body a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}
.cup-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

/* Запрет автозума полей ввода на iOS */
@media (max-width: 768px) {
  .input,
  select.input,
  textarea.input {
    font-size: 16px !important;
  }
}

/* Фикс фона на iOS Safari */
@supports (-webkit-touch-callout: none) {
  body {
    background-attachment: scroll;
  }
}



/* === ESPORTS WALLET HUD === */
.wallet-hud {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 20px;
  margin-bottom: 14px;
  border-radius: 16px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 106, 26, 0.22), transparent 60%),
    linear-gradient(135deg, rgba(24, 29, 40, 0.95), rgba(13, 16, 24, 0.98));
  border: 1px solid rgba(255, 140, 40, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.wallet-hud__bal {
  font-size: 14px;
  color: var(--muted);
}
.wallet-hud__bal b {
  display: block;
  margin-top: 4px;
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  text-shadow: 0 0 24px rgba(255, 106, 26, 0.35);
}
.wallet-hud__bal .gold-ico {
  width: 22px;
  height: 22px;
  vertical-align: -3px;
}
.promo-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(255, 106, 26, 0.14);
  border: 1px solid rgba(255, 154, 60, 0.45);
  color: var(--accent2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}
.promo-pill-btn:hover {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #1a0b04;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(255, 106, 26, 0.35);
}
.promo-drawer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: rgba(15, 19, 27, 0.9);
  border: 1px dashed rgba(255, 140, 40, 0.38);
  animation: vpUp 0.16s ease;
}
.promo-drawer .input.plain {
  flex: 1;
  min-width: 0;
  height: 38px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.promo-drawer .btn {
  height: 38px;
  flex: 0 0 auto;
}
.wallet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.wallet-act-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 140, 40, 0.22);
  background: rgba(24, 29, 40, 0.72);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.16s ease;
}
.wallet-act-btn:hover {
  border-color: var(--accent2);
  background: rgba(255, 106, 26, 0.1);
}
.wallet-act-btn.on {
  background: linear-gradient(135deg, rgba(255, 106, 26, 0.24), rgba(255, 154, 60, 0.12));
  border-color: var(--accent);
  color: var(--accent2);
  box-shadow: 0 6px 20px rgba(255, 106, 26, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.pay-grid.four {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 600px) {
  .pay-grid.four {
    grid-template-columns: 1fr 1fr;
  }
  .wallet-hud__bal b {
    font-size: 22px;
  }
}

/* === COMPACT WALLET HUD OVERRIDE === */
.wallet-hud {
  max-width: 480px;
  padding: 12px 16px !important;
  border-radius: 14px !important;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)) !important;
}
.wallet-hud__bal {
  font-size: 12px !important;
}
.wallet-hud__bal b {
  margin-top: 2px !important;
  font-size: 20px !important;
}
.wallet-hud__bal .gold-ico {
  width: 18px !important;
  height: 18px !important;
}
.promo-drawer {
  max-width: 480px;
}

/* === ESPORTS CREATE MATCH HUD (#createBox) === */
#createBox.create-hud {
  position: relative;
  margin-top: 14px;
  padding: 18px;
  border-radius: 18px;
  background:
    radial-gradient(110% 120% at 100% 0%, rgba(255, 106, 26, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(22, 27, 38, 0.92), rgba(13, 16, 24, 0.96));
  border: 1px solid rgba(255, 140, 40, 0.32);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.create-hud__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 140, 40, 0.16);
}
.create-hud__title {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text);
}
.create-hud__pot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
  font-size: 12.5px;
  font-weight: 600;
}
.create-hud__pot b {
  color: #fff;
  font-weight: 800;
}
.stake-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.stake-pill {
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid rgba(255, 140, 40, 0.25);
  background: rgba(255, 106, 26, 0.08);
  color: var(--accent2);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.stake-pill:hover {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #1a0b04;
  border-color: transparent;
}
.create-hud__actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 16px;
}
@media (max-width: 520px) {
  .create-hud__actions {
    grid-template-columns: 1fr;
  }
}

/* === COMPACT CREATE BUTTON & WALLET HUD CONTROLS === */
.create-hud__actions {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
#btnCreate {
  width: auto !important;
  min-width: 170px;
  padding: 0 22px;
}
.wallet-hud {
  max-width: 520px !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 12px !important;
  padding: 14px 16px !important;
}
.wallet-hud__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.wallet-hud__bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 140, 40, 0.16);
}
.wallet-hud__bar .wallet-act-btn {
  height: 38px !important;
  font-size: 12.5px !important;
  border-radius: 10px !important;
}
#cashHistory {
  max-width: 640px;
}
#cashHistory .tx,
#cashHistory .req {
  padding: 10px 13px !important;
  margin-bottom: 8px !important;
  border-radius: 12px !important;
  font-size: 13px;
}
.hist-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 640px;
  margin: 20px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 140, 40, 0.14);
}
.hist-head-row h3 {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
.hist-date-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hist-date-filter input[type="date"] {
  height: 32px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 140, 40, 0.25);
  background: rgba(15, 19, 27, 0.9);
  color: var(--text);
  font-size: 12px;
  color-scheme: dark;
}

/* === CENTERED ESPORTS WALLET SHELL === */
.wallet-shell {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}
.wallet-shell .wallet-hud,
.wallet-shell .promo-drawer,
.wallet-shell #depBox,
.wallet-shell #wdBox,
.wallet-shell #payBox,
.wallet-shell #skinChat,
.wallet-shell .hist-head-row,
.wallet-shell #cashHistory {
  width: 100%;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.hist-pills {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(15, 19, 27, 0.85);
  border: 1px solid rgba(255, 140, 40, 0.2);
}
.hist-pill {
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.hist-pill:hover {
  color: var(--text);
}
.hist-pill.on {
  background: linear-gradient(135deg, rgba(255, 106, 26, 0.25), rgba(255, 154, 60, 0.14));
  color: var(--accent2);
  box-shadow: inset 0 0 0 1px rgba(255, 140, 40, 0.4);
}

/* === COMPACT PANEL & SCROLLABLE HISTORY IN WALLET === */
.wallet-shell #cashMsg:empty,
.wallet-shell #payBox:empty {
  display: none !important;
  margin: 0 !important;
  min-height: 0 !important;
}
.wallet-shell .hist-head-row {
  margin: 12px 0 8px !important;
  padding-bottom: 6px !important;
}
.wallet-shell #cashHistory {
  max-height: 365px;
  overflow-y: auto;
  padding-right: 4px;
}
.wallet-shell #cashHistory::-webkit-scrollbar {
  width: 5px;
}
.wallet-shell #cashHistory::-webkit-scrollbar-track {
  background: rgba(15, 19, 27, 0.5);
  border-radius: 99px;
}
.wallet-shell #cashHistory::-webkit-scrollbar-thumb {
  background: rgba(255, 140, 40, 0.35);
  border-radius: 99px;
}
.wallet-shell #cashHistory::-webkit-scrollbar-thumb:hover {
  background: var(--accent2);
}

/* === LIVE ESPORTS LANDING HERO === */
.land-hero {
  position: relative;
  padding: 24px !important;
  border-radius: 20px !important;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(255, 106, 26, 0.24), transparent 60%),
    radial-gradient(70% 90% at 0% 100%, rgba(255, 154, 60, 0.12), transparent 60%),
    linear-gradient(145deg, rgba(22, 27, 38, 0.94), rgba(11, 14, 21, 0.98)) !important;
  border: 1px solid rgba(255, 140, 40, 0.34) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
.land-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(255, 106, 26, 0.14);
  border: 1px solid rgba(255, 154, 60, 0.4);
  color: var(--accent2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-kicker i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 8px var(--accent);
  animation: pulseDot 2s infinite;
}
.hero-hud-card {
  position: relative;
  padding: 16px;
  border-radius: 16px;
  background: rgba(12, 15, 22, 0.88);
  border: 1px solid rgba(255, 140, 40, 0.28);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.hero-hud-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-hud-card__live {
  color: #86efac;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
}
.hero-hud-card__vs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 140, 40, 0.14);
}
.hero-hud-card__vs b {
  font-size: 14px;
}
.hero-hud-card__vs span {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent2);
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(255, 106, 26, 0.14);
}
.hero-hud-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.hero-hud-card__tags span {
  font-size: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 140, 40, 0.16);
  padding: 3px 8px;
  border-radius: 8px;
}
@media (max-width: 780px) {
  .land-hero-grid {
    grid-template-columns: 1fr;
  }
  .land-hero {
    padding: 18px !important;
  }
}

/* === HERO INTEGRATED STATS CELLS === */
.hero-hud-card {
  display: none !important;
}
.land-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: center;
}
.land-hero .stats-one {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  margin: 0 !important;
}
.land-hero .stats-one .cell {
  padding: 12px 14px !important;
  border-radius: 14px !important;
  background: rgba(12, 15, 22, 0.86) !important;
  border: 1px solid rgba(255, 140, 40, 0.26) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
.land-hero .stats-one .cell .ico {
  width: 34px !important;
  height: 34px !important;
  font-size: 16px !important;
}
.land-hero .stats-one .cell .n {
  font-size: 17px !important;
}
@media (max-width: 820px) {
  .land-hero-grid {
    grid-template-columns: 1fr;
  }
}

/* === HERO INTEGRATED STATUS CARDS === */
.hero-hud-card {
  display: none !important;
}
.land-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: center;
}
.hero-cells-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hero-cells-grid > * {
  margin: 0 !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  background: rgba(12, 15, 22, 0.88) !important;
  border: 1px solid rgba(255, 140, 40, 0.28) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
@media (max-width: 860px) {
  .land-hero-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 500px) {
  .hero-cells-grid {
    grid-template-columns: 1fr;
  }
}

/* === MODERN ESPORTS HERO CELLS === */
.hero-cells-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}
.hero-cells-grid .cell {
  position: relative;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px 16px !important;
  border-radius: 14px !important;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255, 106, 26, 0.14), transparent 65%),
    linear-gradient(160deg, rgba(24, 30, 44, 0.92), rgba(12, 15, 23, 0.96)) !important;
  border: 1px solid rgba(255, 140, 40, 0.28) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease !important;
  overflow: hidden;
}
.hero-cells-grid .cell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.7;
}
.hero-cells-grid .cell:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 154, 60, 0.65) !important;
  box-shadow: 0 14px 28px rgba(255, 106, 26, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
.hero-cells-grid .cell .ico {
  flex: 0 0 38px !important;
  width: 38px !important;
  height: 38px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 10px !important;
  background: rgba(255, 106, 26, 0.14) !important;
  border: 1px solid rgba(255, 154, 60, 0.32) !important;
  font-size: 17px !important;
  box-shadow: 0 0 14px rgba(255, 106, 26, 0.18);
}
.hero-cells-grid .cell .n {
  font-size: 19px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em;
  color: #fff !important;
  text-shadow: 0 0 18px rgba(255, 140, 40, 0.25);
}
.hero-cells-grid .cell .k {
  margin-top: 3px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted) !important;
}
@media (max-width: 520px) {
  .hero-cells-grid {
    grid-template-columns: 1fr !important;
  }
}

/* === CLEAN LIGHTER TYPOGRAPHY ON LANDING === */
.land h1,
.land #heroTitle {
  font-weight: 600 !important;
  letter-spacing: -0.02em;
}
.land h2,
.land h3 {
  font-weight: 600 !important;
}
.land .hero-cells-grid .cell .n,
.land #stPot,
.land #stUsers,
.land #stMatches,
.land #stOpen {
  font-weight: 600 !important;
}
.land .hero-cells-grid .cell .k,
.land .hero-kicker {
  font-weight: 500 !important;
}
.land b,
.land strong {
  font-weight: 600 !important;
}