/* ============ Contra City — public design ============ */
:root {
  --bg-0: #060911;
  --bg-1: #0b1120;
  --bg-2: #111a30;
  --panel: rgba(17, 26, 48, 0.66);
  --panel-solid: #101830;
  --line: rgba(255, 255, 255, 0.09);
  --text: #e9eefb;
  --muted: #93a0bd;
  --orange: #ff6b35;
  --orange-2: #ff9a4d;
  --red: #ff3d5a;
  --cyan: #35d6ff;
  --green: #3ddc84;
  --yellow: #ffd166;
  --radius: 18px;
  --font-display: 'Russo One', Impact, 'Arial Black', sans-serif;
  --font-body: 'Inter', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
  --shadow-glow: 0 0 44px rgba(255, 107, 53, 0.28);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- animated background scene ---------- */
.bg-scene { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(255, 61, 90, 0.14), transparent 60%),
    radial-gradient(1000px 800px at -10% 30%, rgba(53, 214, 255, 0.10), transparent 55%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 45%, #080d1a 100%);
}
.bg-blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; will-change: transform; }
.bg-blob-1 { width: 520px; height: 520px; left: -140px; top: -120px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.55), transparent 65%);
  animation: blobFloat1 26s ease-in-out infinite; }
.bg-blob-2 { width: 460px; height: 460px; right: -120px; top: 30%;
  background: radial-gradient(circle, rgba(255, 61, 90, 0.42), transparent 65%);
  animation: blobFloat2 32s ease-in-out infinite; }
.bg-blob-3 { width: 420px; height: 420px; left: 35%; bottom: -160px;
  background: radial-gradient(circle, rgba(53, 214, 255, 0.35), transparent 65%);
  animation: blobFloat3 38s ease-in-out infinite; }
@keyframes blobFloat1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(90px, 70px) scale(1.15); } }
@keyframes blobFloat2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-80px, -60px) scale(1.1); } }
@keyframes blobFloat3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px, -90px) scale(1.2); } }

.bg-grid { position: absolute; inset: -2px; opacity: 0.35;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
  animation: gridDrift 60s linear infinite;
}
@keyframes gridDrift { to { background-position: 46px 92px, 92px 46px; } }

#bg-particles { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 9, 17, 0.72);
  border-bottom: 1px solid var(--line);
  animation: headerIn 0.6s ease both; }
@keyframes headerIn { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  font-family: var(--font-display); font-size: 15px; color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 6px 22px rgba(255, 107, 53, 0.45);
  animation: markPulse 3.4s ease-in-out infinite; }
@keyframes markPulse { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) scale(1.05); } }
.logo-text { font-family: var(--font-display); font-size: 18px; letter-spacing: 1.5px; color: var(--text); }
.logo-text strong { color: var(--orange); font-weight: 400; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { font-size: 14.5px; font-weight: 600; color: var(--muted); position: relative; padding: 6px 0; transition: color 0.25s; }
.site-nav a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--orange), var(--cyan)); transition: width 0.3s ease; }
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { width: 100%; }
.nav-login { padding: 9px 20px !important; border-radius: 12px; color: #fff !important;
  background: linear-gradient(135deg, var(--orange), var(--red)); box-shadow: 0 6px 20px rgba(255, 61, 90, 0.35); }
.nav-login::after { display: none; }
.nav-login:hover { transform: translateY(-2px); filter: brightness(1.1); transition: 0.25s; }
.nav-logout { display: inline-flex; }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { width: 24px; height: 2px; background: var(--text); transition: 0.3s; }

/* ---------- buttons / badges / alerts ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px; cursor: pointer;
  padding: 13px 28px; border-radius: 14px; border: 1px solid transparent; color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 10px 30px rgba(255, 61, 90, 0.3);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s; position: relative; overflow: hidden; }
.btn::before { content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg); transition: left 0.5s ease; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(255, 61, 90, 0.42); }
.btn:hover::before { left: 130%; }
.btn:active { transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,0.06); border-color: var(--line); box-shadow: none; color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); box-shadow: none; }
.btn-cyan { background: linear-gradient(135deg, #17a9c9, var(--cyan)); box-shadow: 0 10px 30px rgba(53, 214, 255, 0.25); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; border-radius: 10px; }
.btn-danger { background: linear-gradient(135deg, #d92243, var(--red)); }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.06); color: var(--muted); }
.badge-orange { color: var(--orange-2); border-color: rgba(255, 107, 53, 0.45); background: rgba(255, 107, 53, 0.12); }
.badge-cyan { color: var(--cyan); border-color: rgba(53, 214, 255, 0.4); background: rgba(53, 214, 255, 0.1); }
.badge-green { color: var(--green); border-color: rgba(61, 220, 132, 0.4); background: rgba(61, 220, 132, 0.1); }
.badge-red { color: var(--red); border-color: rgba(255, 61, 90, 0.45); background: rgba(255, 61, 90, 0.12); }
.alert { margin-top: 18px; padding: 14px 18px; border-radius: 14px; font-weight: 600; font-size: 14.5px;
  border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(10px); }
.alert-ok { border-color: rgba(61, 220, 132, 0.5); color: var(--green); }
.alert-error { border-color: rgba(255, 61, 90, 0.5); color: #ff8ba0; }
.alert-warn { border-color: rgba(255, 209, 102, 0.5); color: var(--yellow); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 90px 0 70px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800;
  letter-spacing: 3px; text-transform: uppercase; color: var(--orange-2); margin-bottom: 22px;
  animation: fadeUp 0.7s 0.05s both; }
.hero-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green);
  animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.hero h1 { font-family: var(--font-display); font-size: clamp(40px, 7vw, 84px); line-height: 1.04;
  letter-spacing: 1px; text-transform: uppercase; animation: fadeUp 0.7s 0.15s both; }
.hero h1 .grad { background: linear-gradient(92deg, var(--orange) 0%, var(--red) 45%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 220% auto; animation: gradShift 6s linear infinite; }
@keyframes gradShift { to { background-position: 220% center; } }
.hero p.lead { max-width: 640px; margin-top: 20px; font-size: clamp(16px, 2vw, 19px); color: var(--muted);
  animation: fadeUp 0.7s 0.25s both; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; animation: fadeUp 0.7s 0.35s both; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 52px; animation: fadeUp 0.7s 0.45s both; }
.stat-chip { min-width: 170px; padding: 18px 22px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(12px);
  transition: transform 0.25s, border-color 0.25s; }
.stat-chip:hover { transform: translateY(-6px); border-color: rgba(255, 107, 53, 0.5); }
.stat-chip .num { font-family: var(--font-display); font-size: 32px; color: var(--text); }
.stat-chip .num em { font-style: normal; color: var(--orange); }
.stat-chip .lbl { font-size: 12.5px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted); margin-top: 4px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(255, 107, 53, 0.07);
  padding: 12px 0; margin-top: 60px; }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: marquee 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--font-display); font-size: 14.5px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--orange-2); white-space: nowrap; display: inline-flex; gap: 44px; align-items: center; }
.marquee span::after { content: '◆'; color: var(--cyan); font-size: 10px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 74px 0; }
.section-head { margin-bottom: 38px; }
.section-head .eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--cyan); }
.section-head h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); text-transform: uppercase; margin-top: 8px; letter-spacing: 1px; }
.section-head p { color: var(--muted); max-width: 620px; margin-top: 10px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card { position: relative; padding: 26px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(12px);
  overflow: hidden; transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.07), transparent 45%);
  opacity: 0; transition: opacity 0.3s; }
.card:hover { transform: translateY(-8px); border-color: rgba(53, 214, 255, 0.4); box-shadow: 0 22px 46px rgba(0,0,0,0.4); }
.card:hover::after { opacity: 1; }
.card .icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  font-size: 25px; margin-bottom: 18px; background: linear-gradient(135deg, rgba(255,107,53,0.22), rgba(255,61,90,0.14));
  border: 1px solid rgba(255, 107, 53, 0.35); }
.card h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }

.mode-card { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  position: relative; overflow: hidden; transition: 0.3s; }
.mode-card:hover { transform: translateY(-6px) scale(1.015); border-color: rgba(255, 107, 53, 0.55); }
.mode-card .mode-num { position: absolute; right: 14px; top: 6px; font-family: var(--font-display);
  font-size: 62px; color: rgba(255, 255, 255, 0.05); }
.mode-card h3 { font-family: var(--font-display); font-size: 19px; text-transform: uppercase; letter-spacing: 1px; }
.mode-card p { color: var(--muted); font-size: 14px; margin-top: 8px; }

.step { text-align: center; padding: 28px 20px; }
.step .step-num { font-family: var(--font-display); font-size: 44px;
  background: linear-gradient(135deg, var(--orange), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { margin: 10px 0 8px; font-size: 18px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- auth pages ---------- */
.auth-wrap { min-height: calc(100vh - 160px); display: grid; place-items: center; padding: 60px 0; }
.auth-card { width: min(460px, 94%); padding: 36px 34px; border-radius: 22px;
  background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(16px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.5); animation: fadeUp 0.55s both; }
.auth-card h1 { font-family: var(--font-display); font-size: 27px; text-transform: uppercase; letter-spacing: 1px; }
.auth-card .sub { color: var(--muted); font-size: 14.5px; margin-top: 6px; margin-bottom: 24px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 22px; background: rgba(255,255,255,0.05);
  border: 1px solid var(--line); border-radius: 13px; padding: 5px; }
.auth-tabs button { flex: 1; padding: 10px; border: 0; border-radius: 9px; background: transparent;
  color: var(--muted); font-weight: 700; font-size: 14px; cursor: pointer; transition: 0.25s; font-family: var(--font-body); }
.auth-tabs button.active { background: linear-gradient(135deg, var(--orange), var(--red)); color: #fff;
  box-shadow: 0 6px 18px rgba(255, 61, 90, 0.35); }
.auth-pane { display: none; }
.auth-pane.active { display: block; animation: fadeUp 0.35s both; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 7px;
  text-transform: uppercase; letter-spacing: 1px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 13px; font-size: 15px; font-family: var(--font-body);
  background: rgba(6, 9, 17, 0.7); border: 1px solid var(--line); color: var(--text); outline: none;
  transition: border-color 0.25s, box-shadow 0.25s; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.16); }
.hint { font-size: 13px; color: var(--muted); margin-top: 8px; }
.hint code { color: var(--orange-2); background: rgba(255,107,53,0.1); padding: 1px 7px; border-radius: 6px; }

/* ---------- cabinet ---------- */
.cab-hero { padding: 46px 0 10px; }
.cab-profile { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding: 28px;
  border-radius: 24px; background: linear-gradient(135deg, rgba(255,107,53,0.14), rgba(53,214,255,0.08));
  border: 1px solid rgba(255, 107, 53, 0.35); position: relative; overflow: hidden; }
.cab-profile::before { content: ''; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(255, 61, 90, 0.35), transparent 70%); animation: blobFloat1 14s ease-in-out infinite; }
.avatar { width: 92px; height: 92px; border-radius: 26px; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 38px; color: #fff; position: relative;
  background: linear-gradient(135deg, var(--orange), var(--red)); box-shadow: var(--shadow-glow); }
.avatar .lvl { position: absolute; bottom: -9px; right: -9px; font-size: 12.5px; font-family: var(--font-body);
  font-weight: 800; background: var(--bg-2); border: 2px solid var(--cyan); color: var(--cyan);
  padding: 3px 9px; border-radius: 999px; }
.cab-name { font-family: var(--font-display); font-size: clamp(24px, 3.5vw, 36px); text-transform: uppercase; }
.cab-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.cab-money { margin-left: auto; text-align: right; position: relative; }
.cab-money .amount { font-family: var(--font-display); font-size: clamp(26px, 3vw, 38px); color: var(--yellow); }
.cab-money .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); }

.exp-bar { margin-top: 14px; width: min(430px, 100%); height: 13px; border-radius: 999px;
  background: rgba(6, 9, 17, 0.75); border: 1px solid var(--line); overflow: hidden; position: relative; }
.exp-bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--yellow), var(--cyan));
  background-size: 200% 100%; animation: gradShift 3s linear infinite;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1); }
.exp-bar .exp-text { position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 10.5px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }

.cab-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 24px;
  border-bottom: 1px solid var(--line); padding-bottom: 0; }
.cab-tabs button { padding: 13px 22px; border: 0; background: transparent; color: var(--muted);
  font-weight: 700; font-size: 14.5px; cursor: pointer; position: relative; font-family: var(--font-body);
  border-bottom: 3px solid transparent; margin-bottom: -1px; transition: 0.25s; }
.cab-tabs button:hover { color: var(--text); }
.cab-tabs button.active { color: var(--orange-2); border-bottom-color: var(--orange);
  text-shadow: 0 0 18px rgba(255, 107, 53, 0.6); }
.cab-pane { display: none; animation: fadeUp 0.4s both; }
.cab-pane.active { display: block; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.kpi { padding: 20px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line);
  transition: 0.25s; }
.kpi:hover { transform: translateY(-5px); border-color: rgba(53, 214, 255, 0.4); }
.kpi .v { font-family: var(--font-display); font-size: 30px; }
.kpi .v.green { color: var(--green); } .kpi .v.red { color: var(--red); } .kpi .v.cyan { color: var(--cyan); } .kpi .v.yellow { color: var(--yellow); }
.kpi .k { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-top: 4px; }

.panel { padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(12px); }
.panel h3 { font-family: var(--font-display); font-size: 17px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }

/* set editor */
.set-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.slot { position: relative; padding: 14px; border-radius: 14px; border: 1px dashed rgba(255,255,255,0.22);
  background: rgba(6, 9, 17, 0.5); cursor: pointer; transition: 0.22s; min-height: 96px; }
.slot:hover { border-color: var(--orange); background: rgba(255, 107, 53, 0.08); transform: translateY(-3px); }
.slot.equipped { border-style: solid; border-color: rgba(53, 214, 255, 0.55); background: rgba(53, 214, 255, 0.07); }
.slot .slot-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.3px; color: var(--muted); }
.slot .slot-value { margin-top: 8px; font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.slot.equipped .slot-value { color: var(--cyan); }
.slot .slot-empty { margin-top: 8px; font-size: 13.5px; color: #5c688a; font-style: italic; }
.slot .slot-num { position: absolute; top: 8px; right: 10px; font-family: var(--font-display);
  font-size: 20px; color: rgba(255,255,255,0.14); }
.set-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

/* picker modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(4, 6, 12, 0.8);
  backdrop-filter: blur(6px); display: none; place-items: center; padding: 20px; }
.modal-backdrop.open { display: grid; animation: fadeIn 0.25s both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(720px, 100%); max-height: 86vh; overflow: auto; padding: 26px;
  border-radius: 22px; background: var(--panel-solid); border: 1px solid var(--line);
  box-shadow: 0 40px 90px rgba(0,0,0,0.6); animation: modalIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes modalIn { from { transform: translateY(40px) scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.modal-head h3 { font-family: var(--font-display); font-size: 19px; text-transform: uppercase; }
.modal-close { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.06); color: var(--text); font-size: 19px; cursor: pointer; transition: 0.2s; }
.modal-close:hover { background: var(--red); border-color: var(--red); transform: rotate(90deg); }
.picker-search { width: 100%; margin-bottom: 14px; padding: 12px 15px; border-radius: 12px;
  background: rgba(6,9,17,0.8); border: 1px solid var(--line); color: var(--text); outline: none; font-size: 15px; }
.picker-search:focus { border-color: var(--orange); }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.pick-item { padding: 13px 14px; border-radius: 13px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.04); cursor: pointer; transition: 0.2s; font-size: 14px; font-weight: 600; }
.pick-item:hover { border-color: var(--cyan); background: rgba(53, 214, 255, 0.1); transform: translateY(-2px); }
.pick-item.selected { border-color: var(--orange); background: rgba(255, 107, 53, 0.14); }
.pick-item .pi-sub { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; margin-top: 3px; }
.pick-none { color: var(--muted); font-style: italic; }

/* lists / tables */
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.03); margin-bottom: 10px; transition: 0.22s; }
.list-row:hover { border-color: rgba(53, 214, 255, 0.4); transform: translateX(6px); }
.list-row .lr-title { font-weight: 700; }
.list-row .lr-sub { font-size: 13px; color: var(--muted); }

.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.4px;
  color: var(--muted); padding: 11px 13px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 13px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.data-table tr { transition: background 0.2s; }
.data-table tbody tr:hover { background: rgba(53, 214, 255, 0.06); }
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }

.pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.pill-win { background: rgba(61,220,132,0.15); color: var(--green); border: 1px solid rgba(61,220,132,0.4); }
.pill-loss { background: rgba(255,61,90,0.13); color: #ff8ba0; border: 1px solid rgba(255,61,90,0.4); }

/* abilities */
.abil-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.abil { padding: 18px; border-radius: 15px; border: 1px solid var(--line); background: rgba(255,255,255,0.035);
  transition: 0.25s; }
.abil:hover { transform: translateY(-4px); border-color: rgba(255, 107, 53, 0.45); }
.abil .abil-name { font-weight: 800; font-size: 15px; }
.abil .abil-dots { display: flex; gap: 5px; margin: 10px 0; }
.abil .abil-dots i { width: 15px; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.12); transition: 0.3s; }
.abil .abil-dots i.on { background: linear-gradient(90deg, var(--orange), var(--yellow)); box-shadow: 0 0 10px rgba(255,107,53,0.7); }
.abil .abil-val { font-size: 13px; color: var(--cyan); font-weight: 700; }
.abil .abil-locked { font-size: 12.5px; color: var(--muted); }

/* inventory */
.inv-group { margin-bottom: 26px; }
.inv-group h4 { font-family: var(--font-display); font-size: 14.5px; text-transform: uppercase;
  letter-spacing: 1.6px; color: var(--orange-2); margin-bottom: 12px; }
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.inv-item { padding: 13px; border-radius: 13px; border: 1px solid var(--line); background: rgba(255,255,255,0.035);
  font-size: 14px; transition: 0.22s; }
.inv-item:hover { border-color: var(--cyan); transform: translateY(-3px); }
.inv-item .ii-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.inv-item.equipped { border-color: rgba(61, 220, 132, 0.55); background: rgba(61, 220, 132, 0.07); }

.empty { padding: 30px; text-align: center; color: var(--muted); border: 1px dashed var(--line);
  border-radius: 16px; font-size: 14.5px; }

/* toast */
.toast-zone { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { padding: 14px 20px; border-radius: 14px; font-weight: 700; font-size: 14.5px; min-width: 240px;
  background: var(--panel-solid); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,0.5);
  animation: toastIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both; }
.toast.ok { border-color: rgba(61,220,132,0.6); color: var(--green); }
.toast.err { border-color: rgba(255,61,90,0.6); color: #ff8ba0; }
.toast.out { animation: toastOut 0.3s both; }
@keyframes toastIn { from { transform: translateX(120%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastOut { to { transform: translateX(120%); opacity: 0; } }

/* footer */
.site-footer { margin-top: 70px; border-top: 1px solid var(--line); background: rgba(6, 9, 17, 0.75);
  backdrop-filter: blur(12px); padding: 46px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { font-family: var(--font-display); font-size: 14px; text-transform: uppercase;
  letter-spacing: 2px; color: var(--orange-2); margin-bottom: 14px; }
.footer-grid a, .footer-grid span { display: block; color: var(--muted); font-size: 14.5px; margin-bottom: 9px; transition: 0.2s; }
.footer-grid a:hover { color: var(--text); transform: translateX(5px); }
.footer-note { color: var(--muted); font-size: 14px; margin-top: 12px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 14px;
  margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.footer-pulse { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-weight: 700; }
.footer-pulse i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); animation: blink 1.6s infinite; }

/* ---------- cabinet additions ---------- */
.cab-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.panel { overflow-x: auto; }
.hint.ok { color: var(--green); font-weight: 700; }
.hint.err { color: #ff8ba0; font-weight: 700; }
.hint.dirty { color: var(--yellow); font-weight: 700; }
.abil.is-on { border-color: rgba(255, 107, 53, 0.45); background: linear-gradient(160deg, rgba(255,107,53,0.09), rgba(255,255,255,0.03)); }
.clan-box { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 15px;
  border: 1px solid rgba(53, 214, 255, 0.35); background: rgba(53, 214, 255, 0.07); }
.clan-tag { font-family: var(--font-display); font-size: 22px; color: var(--cyan); }
.clan-name { font-weight: 800; font-size: 16px; }
.clan-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.picker-grid .pick-none { grid-column: 1 / -1; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .set-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cab-cols { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 4px; padding: 18px; background: rgba(6, 9, 17, 0.97); border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform 0.35s ease; z-index: 59; }
  .site-nav.open { transform: translateY(0); }
  .site-nav a { padding: 12px 8px; }
  .nav-burger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cab-money { margin-left: 0; text-align: left; }
  .hero { padding-top: 56px; }
  .footer-grid { grid-template-columns: 1fr; }
}
