/* =========================================================
   Zona de Spawn - tema „Bârlogul”: ascunzătoarea unui jucător, noaptea.
   Pereți verde-închis, lemn, lumină caldă de felinar, bilețele prinse în cuie
   și sclipiri turcoaz „magice”. Totul conturat cu tuș, ca o ilustrație.
   (--cyan a rămas numele culorii principale; acum e chihlimbarul felinarelor.)
   ========================================================= */
:root {
  --bg: #0c1d1c;
  --bg-2: #10262a;
  --panel: rgba(17, 37, 36, 0.92);
  --panel-solid: #142b2a;
  --panel-2: rgba(27, 51, 48, 0.9);
  --line: rgba(246, 222, 178, 0.14);
  --line-strong: rgba(255, 179, 92, 0.55);
  --cyan: #ffb35c;
  --cyan-2: #ffe1b3;
  --magic: #6ff3e4;
  --blue: #ff7a45;
  --text: #f6ead2;
  --muted: #a9b5a5;
  --ink: #1b1410;
  --paper: #f0e2c2;
  --paper-2: #e2cfa4;
  --paper-ink: #2d2219;
  --paper-muted: #6f5b46;
  --wood: #3b2a20;
  --wood-2: #261a13;
  --discord: #5865f2;
  --ok: #8be3a8;
  --warn: #ffd27a;
  --danger: #ff6f5e;
  --gold: #ffd27a;
  --silver: #dfe6dc;
  --bronze: #e8935c;
  --radius: 18px;
  --wobbly: 18px 22px 16px 20px / 20px 16px 22px 18px;
  --glow: 0 0 22px rgba(255, 179, 92, 0.35);
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Caveat Brush', 'Caveat', cursive;
  --hand: 'Caveat', cursive;
  --mono: ui-monospace, 'Cascadia Code', Consolas, monospace;
  /* texturi desenate din SVG: cărămizi pe perete și „grăunțe” de hârtie */
  --bricks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='72'%3E%3Cg fill='rgba(255,255,255,0.018)'%3E%3Crect x='2' y='2' width='62' height='32' rx='3'/%3E%3Crect x='68' y='2' width='62' height='32' rx='3'/%3E%3Crect x='-31' y='38' width='62' height='32' rx='3'/%3E%3Crect x='35' y='38' width='62' height='32' rx='3'/%3E%3Crect x='101' y='38' width='62' height='32' rx='3'/%3E%3C/g%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font: 16px/1.6 var(--font);
  background-color: var(--bg);
  background-image:
    var(--grain),
    radial-gradient(700px 480px at 8% 0%, rgba(255, 170, 80, 0.2), transparent 65%),
    radial-gradient(640px 420px at 96% 12%, rgba(111, 243, 228, 0.08), transparent 65%),
    radial-gradient(1200px 700px at 50% 120%, rgba(255, 150, 70, 0.1), transparent 60%),
    radial-gradient(140% 100% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.55)),
    var(--bricks);
  background-attachment: fixed;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-2); }
h1, h2, h3 { line-height: 1.1; margin: 0 0 0.5em; }
h2 { font-size: 22px; }
h3 { font-size: 20px; }
::selection { background: var(--cyan); color: #2a1608; }

.ico {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -0.2em;
}

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.page { flex: 1; padding-top: 28px; padding-bottom: 64px; }

/* ---------- Tipografie "brush" ---------- */
/* Titluri scrise „cu pensula”, ca în ilustrații; contur de tuș + strălucire caldă */
.display, .display-md, .step-num, .brand-text, .tag, .footer-slogan, .champ-name, .podium-block span, .deadline-time {
  font-family: var(--display);
  font-style: normal;
  text-transform: none;
  letter-spacing: 0.01em;
}
.display {
  font-size: clamp(48px, 8vw, 104px);
  font-weight: 400;
  line-height: 0.95;
  margin: 0 0 14px;
  color: #fbeed5;
  text-shadow: 3px 4px 0 var(--ink), 0 0 34px rgba(255, 170, 80, 0.45);
}
.display-md {
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 400;
  margin: 0 0 6px;
  color: #fbeed5;
  text-shadow: 2px 3px 0 var(--ink), 0 0 22px rgba(255, 170, 80, 0.3);
}
.accent { color: var(--cyan); }
.display .accent, .display-md .accent { color: var(--cyan); text-shadow: 3px 4px 0 var(--ink), 0 0 30px rgba(255, 170, 80, 0.75); }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--magic); font-family: var(--hand); font-weight: 700; font-size: 24px; letter-spacing: 0.02em;
  margin: 0 0 6px; text-shadow: 0 0 14px rgba(111, 243, 228, 0.5);
}
.kicker-line {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  color: var(--magic); font-family: var(--hand); font-weight: 700; font-size: 26px; margin: 0;
  text-shadow: 0 0 14px rgba(111, 243, 228, 0.45);
}
.kicker-line::before, .kicker-line::after {
  /* linie trasă de mână */
  content: ''; width: 70px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='10'%3E%3Cpath d='M2 6 C 15 2, 25 9, 38 5 S 60 3, 68 6' fill='none' stroke='%236ff3e4' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
}
.kicker-line::after { transform: scaleX(-1); }

/* ---------- Top bar ---------- */
/* bârna de lemn de sus, cu ghirlanda de becuri atârnând sub ea */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background:
    var(--grain),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0 2px, transparent 2px 140px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 7px),
    linear-gradient(#45311f, #2a1d14);
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); flex: none; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand-crown { color: var(--cyan); width: 30px; height: 30px; filter: drop-shadow(0 0 8px rgba(255, 170, 80, 0.8)); }
.brand-text { font-size: 32px; line-height: 1; color: #fbeed5; text-shadow: 2px 2px 0 var(--ink), 0 0 16px rgba(255, 170, 80, 0.45); }
.brand-text b { color: var(--cyan); }
.brand-sub {
  font-family: var(--hand); font-size: 17px; color: var(--cyan-2); line-height: 1;
  border-left: 1px dashed rgba(246, 222, 178, 0.3); padding-left: 10px; max-width: 120px;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a:not(.btn) {
  color: var(--text); font-weight: 700; padding: 8px 12px; border-radius: 10px; white-space: nowrap;
}
.nav > a:not(.btn):hover { background: rgba(255, 179, 92, 0.1); color: var(--cyan-2); }
/* pagina curentă: subliniere „trasă de mână” */
.nav > a.active {
  color: var(--cyan); border-radius: 0; text-shadow: 0 0 12px rgba(255, 170, 80, 0.6);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='8' preserveAspectRatio='none'%3E%3Cpath d='M2 5 C 18 1, 30 7, 46 4 S 70 2, 78 5' fill='none' stroke='%23ffb35c' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") bottom 2px center / calc(100% - 16px) 8px no-repeat;
}
.nav-cta { margin: 0 6px; }
.nav-user { display: inline-flex; align-items: center; gap: 8px; }
.nav-user img { border-radius: 50%; box-shadow: 0 0 0 2px var(--line-strong); }
.inline { display: inline; margin: 0; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-weight: 600; padding: 8px; }
.link-btn:hover { color: var(--text); }

/* ---------- Butoane ---------- */
/* butoanele arată ca niște etichete desenate: contur de tuș și „umbră ștampilată” */
.btn {
  --b: var(--cyan);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 14px 16px 13px 17px; border: 2px solid var(--ink);
  background: radial-gradient(120% 140% at 30% 15%, #ffe2a8, #ffb35c 45%, #e57f3a);
  color: #2a1608; font: 800 15px var(--font); letter-spacing: 0.01em; cursor: pointer;
  box-shadow: 0 4px 0 var(--ink), 0 0 22px rgba(255, 170, 80, 0.35);
  transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
  white-space: nowrap;
}
.btn:hover { color: #2a1608; filter: brightness(1.06); transform: translateY(-2px) rotate(-0.8deg); box-shadow: 0 6px 0 var(--ink), 0 0 32px rgba(255, 170, 80, 0.55); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink), 0 0 18px rgba(255, 170, 80, 0.4); }
.btn-lg { padding: 14px 28px; font-size: 18px; border-radius: 16px 19px 15px 20px; }
.btn-sm { padding: 6px 13px; font-size: 13px; border-radius: 11px 13px 10px 12px; box-shadow: 0 3px 0 var(--ink); }
.btn-sm:hover { box-shadow: 0 4px 0 var(--ink), 0 0 18px rgba(255, 170, 80, 0.4); }
.btn-block { width: 100%; }
.btn-ghost {
  background: rgba(246, 234, 210, 0.07); color: var(--text); border-color: var(--ink);
  box-shadow: 0 4px 0 var(--ink), inset 0 0 0 1px rgba(246, 222, 178, 0.25);
}
.btn-ghost:hover { color: var(--cyan-2); background: rgba(255, 179, 92, 0.13); box-shadow: 0 6px 0 var(--ink), inset 0 0 0 1px rgba(255, 179, 92, 0.5), 0 0 20px rgba(255, 170, 80, 0.25); }
.btn-discord { background: radial-gradient(120% 140% at 30% 15%, #8c95ff, #5865f2 55%, #4049c9); color: #fff; }
.btn-discord:hover { color: #fff; box-shadow: 0 6px 0 var(--ink), 0 0 26px rgba(88, 101, 242, 0.6); }
.btn-danger { background: rgba(255, 111, 94, 0.08); color: var(--danger); border-color: var(--ink); box-shadow: 0 3px 0 var(--ink), inset 0 0 0 1px rgba(255, 111, 94, 0.45); }
.btn-danger:hover { color: var(--danger); background: rgba(255, 111, 94, 0.16); box-shadow: 0 4px 0 var(--ink), inset 0 0 0 1px rgba(255, 111, 94, 0.6); }

/* ---------- Panouri: plăci de lemn vopsite, prinse cu două cuie de alamă ---------- */
.panel, .card {
  position: relative;
  background: var(--grain), linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 2px solid var(--ink);
  border-radius: var(--wobbly);
  padding: 22px;
  box-shadow: inset 0 0 0 1px rgba(246, 222, 178, 0.07), inset 0 18px 30px -20px rgba(255, 190, 110, 0.18),
    0 6px 0 rgba(0, 0, 0, 0.3), 0 18px 40px rgba(0, 0, 0, 0.4);
}
.panel::before, .card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(circle at 16px 14px, #ffe3a0 0 1.5px, #c98d3a 2.5px 4px, #5a3a14 4.5px, transparent 5.5px),
    radial-gradient(circle at calc(100% - 16px) 14px, #ffe3a0 0 1.5px, #c98d3a 2.5px 4px, #5a3a14 4.5px, transparent 5.5px);
}
.panel-title { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; margin-bottom: 16px; }
.panel-title .ico { color: var(--cyan); filter: drop-shadow(0 0 6px rgba(255, 170, 80, 0.6)); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.stack { display: grid; gap: 10px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.actions.center { justify-content: center; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1, .page-head h2 { margin-bottom: 4px; }
.section { margin-top: 72px; }
.section-sm { margin-top: 32px; }
.section-head { margin-bottom: 28px; }
.section-head.center { text-align: center; }
.section-head.split { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-title { margin-top: 36px; font-size: 22px; font-weight: 700; }
.page-head .section-title { margin-top: 0; }
section#keys, section#registrations, section#winners { margin-top: 40px; }
.group-title { display: flex; align-items: center; gap: 10px; font-size: 20px; margin-bottom: 16px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-open { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.dot-closed { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.dot-finished { background: var(--muted); }
.narrow { max-width: 760px; }
.back { display: inline-block; margin-bottom: 18px; color: var(--muted); font-weight: 600; }
.back:hover { color: var(--cyan); }
.link-arrow { font-weight: 700; color: var(--cyan); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); letter-spacing: 0.05em; }
.empty {
  padding: 32px; text-align: center; color: var(--muted);
  border: 1px dashed var(--line-strong); border-radius: var(--radius); background: rgba(8, 22, 44, 0.4);
}

/* ---------- Hero ---------- */
.hero { position: relative; text-align: center; padding: 48px 0 8px; }
.hero-sub { color: var(--muted); font-size: 19px; max-width: 640px; margin: 0 auto 22px; }
.page-hero { position: relative; text-align: center; padding: 24px 0 28px; }
.page-hero .display { font-size: clamp(36px, 6vw, 68px); }
.tag {
  position: absolute; color: var(--cyan); font-weight: 900; line-height: 0.95;
  text-shadow: 0 0 18px rgba(255, 179, 92, 0.7); pointer-events: none;
}
.tag-left { left: 2%; bottom: 36px; font-size: 26px; transform: rotate(-12deg); }
.tag-right { right: 3%; bottom: 40px; font-size: 50px; transform: rotate(-8deg); opacity: 0.9; }
.deadline {
  display: flex; align-items: center; gap: 18px; text-align: left;
  max-width: 640px; margin: 34px auto 0; padding: 16px 22px;
}
.deadline-ico { width: 40px; height: 40px; color: var(--cyan); filter: drop-shadow(0 0 8px var(--cyan)); }
.deadline > div { flex: 1; display: grid; }
.deadline-label { font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 14px; }
.deadline-sub { color: var(--muted); font-size: 14px; }
.deadline-time {
  font-weight: 800; font-size: 30px; color: var(--cyan); text-shadow: 0 0 16px rgba(255, 179, 92, 0.7);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* ---------- Cei 3 pași ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.step > p { margin: 0; color: #cfe3f2; }
.step > .btn { align-self: flex-start; margin-top: auto; }
.step-head { display: flex; align-items: center; gap: 14px; }
.step-head h3 { font-size: 22px; font-weight: 800; text-transform: uppercase; margin: 0; letter-spacing: 0.02em; }
.step-num {
  font-weight: 900; font-size: 76px; line-height: 0.8; color: var(--cyan);
  text-shadow: 0 0 22px rgba(255, 179, 92, 0.8); margin-top: -4px;
}
.mock {
  background: rgba(3, 10, 22, 0.75); border: 1px solid var(--line); border-radius: 12px; padding: 14px;
  display: grid; gap: 10px; font-size: 14px;
}
.mock-channel { font-weight: 700; color: var(--text); }
.mock-msg { display: flex; gap: 10px; align-items: center; background: rgba(255, 179, 92, 0.05); border-radius: 10px; padding: 10px; }
.mock-msg strong { display: block; }
.mock-msg small { color: var(--muted); }
.mock-avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: #04101f; border: 1px solid var(--line-strong); color: var(--gold);
}
.bot { font-style: normal; font-size: 10px; background: var(--discord); color: #fff; padding: 1px 5px; border-radius: 4px; margin-left: 4px; vertical-align: 2px; }
.reactions { display: flex; gap: 8px; flex-wrap: wrap; }
.reaction { padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid transparent; }
.reaction.active { border-color: var(--cyan); background: rgba(255, 179, 92, 0.12); box-shadow: 0 0 12px rgba(255, 179, 92, 0.35); }
.mock-code {
  text-align: center; font-family: var(--mono); font-weight: 700; font-size: 18px; letter-spacing: 0.12em; color: var(--cyan-2);
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px; background: rgba(255, 179, 92, 0.06);
  text-shadow: 0 0 10px rgba(255, 179, 92, 0.6);
}
.mock-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; justify-content: center; }
.mock-title { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.mock-title .ico { color: var(--cyan); }
.mock-row { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 10px; color: var(--muted); }
.mock-row i {
  font-style: normal; color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 5px 9px;
  font-family: var(--mono); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.info-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 22px; padding: 16px 8px; }
.info-item { display: flex; gap: 12px; align-items: flex-start; padding: 6px 16px; font-size: 14px; color: #cfe3f2; }
.info-strip .info-item + .info-item { border-left: 1px solid var(--line); }
.info-item .ico { width: 26px; height: 26px; color: var(--cyan); filter: drop-shadow(0 0 6px rgba(255, 179, 92, 0.6)); }

/* ---------- Carduri turneu ---------- */
.t-card { display: flex; flex-direction: column; gap: 12px; color: var(--text); transition: transform .15s ease, border-color .15s ease, box-shadow .2s ease; }
.t-card:hover { color: var(--text); transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--glow), 0 12px 40px rgba(0, 0, 0, 0.4); }
.t-card h3 { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 24px; text-transform: uppercase; margin: 2px 0 0; }
.t-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.meta li { display: flex; align-items: center; gap: 8px; }
.meta .ico { color: var(--cyan); }
.progress { height: 6px; background: rgba(255, 255, 255, 0.06); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: 0 0 10px var(--cyan); }
.t-card-foot { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); margin-top: auto; }
.t-card-foot span:first-child { display: flex; align-items: center; gap: 6px; }
.t-card-foot b { color: var(--text); }

.badge { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; letter-spacing: 0.03em; text-transform: uppercase; }
.badge-open { background: rgba(60, 245, 168, 0.12); color: var(--ok); box-shadow: inset 0 0 0 1px rgba(60, 245, 168, 0.35); }
.badge-closed { background: rgba(255, 207, 77, 0.12); color: var(--warn); box-shadow: inset 0 0 0 1px rgba(255, 207, 77, 0.35); }
.badge-finished { background: rgba(138, 169, 196, 0.12); color: var(--muted); box-shadow: inset 0 0 0 1px rgba(138, 169, 196, 0.3); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--cyan-2);
  background: rgba(255, 179, 92, 0.08); border: 1px solid var(--line); padding: 3px 10px; border-radius: 8px;
}
.chip-gold { color: var(--gold); border-color: rgba(255, 213, 74, 0.4); background: rgba(255, 213, 74, 0.08); }

.champ-card { display: flex; align-items: center; gap: 16px; color: var(--text); }
.champ-card:hover { color: var(--text); border-color: var(--line-strong); }
.champ-card > div { display: grid; gap: 2px; }
.champ-crown { width: 44px; height: 44px; color: var(--gold); filter: drop-shadow(0 0 10px rgba(255, 213, 74, 0.7)); }
.champ-name { font-weight: 900; font-size: 26px; }

/* ---------- Pagina turneului ---------- */
.t-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.t-hero h1 { margin: 14px 0 18px; }
.facts { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.facts div { background: rgba(3, 10, 22, 0.6); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.facts dt { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.facts dt .ico { color: var(--cyan); }
.facts dd { margin: 3px 0 0; font-weight: 700; }
.prose { white-space: pre-wrap; color: #d6e8f5; }
.players { list-style: none; counter-reset: p; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.players li {
  counter-increment: p; display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; font-weight: 600;
}
.players li::before { content: counter(p); font-family: var(--display); font-style: italic; font-weight: 800; color: var(--cyan); min-width: 22px; }
.register-card { position: sticky; top: 90px; display: grid; gap: 14px; }
.register-card .panel-title { margin: 0; }
.register-card p { margin: 0; }
.mini-deadline { display: grid; gap: 2px; text-align: center; padding: 10px; border-radius: 10px; background: rgba(3, 10, 22, 0.6); border: 1px solid var(--line); }
.mini-deadline .deadline-time { font-size: 26px; }

/* ---------- Podium ---------- */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; padding-top: 10px; }
.podium-col { display: grid; justify-items: center; gap: 8px; text-align: center; }
.podium-name { font-weight: 700; font-size: 17px; overflow-wrap: anywhere; }
.podium-crown { width: 36px; height: 36px; color: var(--gold); filter: drop-shadow(0 0 10px rgba(255, 213, 74, 0.8)); }
.podium-block {
  width: 100%; display: grid; place-items: center; border-radius: 10px 10px 4px 4px;
  border: 1px solid; background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01));
}
.podium-block span { font-weight: 900; font-size: 40px; }
.place-1 .podium-block { height: 130px; border-color: rgba(255, 213, 74, 0.6); color: var(--gold); box-shadow: 0 0 26px rgba(255, 213, 74, 0.25); }
.place-2 .podium-block { height: 96px; border-color: rgba(207, 227, 242, 0.5); color: var(--silver); }
.place-3 .podium-block { height: 72px; border-color: rgba(255, 159, 92, 0.5); color: var(--bronze); }
.place-1 .podium-name { color: var(--gold); font-size: 20px; }
.winners-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 20px; }
.winner-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.winner-head h2 { font-family: var(--display); font-style: italic; text-transform: uppercase; font-size: 24px; margin: 0 0 4px; }
.winner-head h2 a { color: var(--text); }
.winner-head p { margin: 0; display: flex; align-items: center; gap: 6px; }

/* ---------- Formular înscriere ---------- */
.reg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.reg-side { display: grid; gap: 18px; }
.form-panel { padding: 28px; }
.t-pick { border: 0; padding: 0; margin: 0 0 6px; display: grid; gap: 10px; }
.t-pick legend { font-weight: 700; margin-bottom: 10px; color: var(--cyan-2); text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px; }
.radio-card { position: relative; display: block; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-body {
  display: grid; gap: 2px; padding: 14px 16px 14px 46px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(3, 10, 22, 0.55); transition: border-color .15s, box-shadow .15s;
}
.radio-body::before {
  content: ''; position: absolute; left: 16px; top: 18px; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--line-strong);
}
.radio-body small { color: var(--muted); }
.radio-card:hover .radio-body { border-color: var(--line-strong); }
.radio-card input:checked + .radio-body { border-color: var(--cyan); box-shadow: var(--glow); background: rgba(255, 179, 92, 0.07); }
.radio-card input:checked + .radio-body::before { background: var(--cyan); box-shadow: 0 0 0 3px rgba(4, 10, 20, 1) inset, 0 0 10px var(--cyan); }
.radio-card input:focus-visible + .radio-body { outline: 2px solid var(--cyan); outline-offset: 2px; }
.radio-card.disabled { cursor: not-allowed; opacity: 0.5; }
.radio-state { color: var(--cyan-2) !important; font-weight: 600; }
.field-row { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 14px; }
.field-row label { font-weight: 600; color: #cfe3f2; }
.mini-steps { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 10px; color: #cfe3f2; }
.mini-steps li::marker { color: var(--cyan); font-family: var(--display); font-weight: 800; font-style: italic; }
.warn-panel { display: grid; gap: 12px; }
.warn-panel .info-item { padding: 0; }

/* ---------- Formulare generale ---------- */
.form { display: grid; gap: 14px; }
.form > label, .form .row > label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: #cfe3f2; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input, select, textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px;
  background: rgba(2, 8, 18, 0.8); color: var(--text); border: 1px solid var(--line);
  font: 15px var(--font);
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #557089; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(255, 179, 92, 0.18), 0 0 14px rgba(255, 179, 92, 0.25); }
input.mono { font-family: var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
input[type=checkbox] { width: auto; accent-color: var(--cyan); }
label.check { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
textarea { resize: vertical; }
.hint { color: var(--muted); font-weight: 400; font-size: 12px; margin: 0; }
.inline-form { grid-template-columns: 140px 1fr auto; align-items: end; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 10px; }
.danger-zone { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
details summary { cursor: pointer; }
details[open] summary { margin-bottom: 16px; }

.auth-card { max-width: 440px; margin: 24px auto; display: grid; gap: 16px; padding: 28px; }
.auth-card h1 { margin: 0; font-family: var(--display); font-style: italic; text-transform: uppercase; font-weight: 800; font-size: 34px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.discord-linked { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.discord-linked img { border-radius: 50%; box-shadow: 0 0 0 2px var(--line-strong); }

/* ---------- Alerte ---------- */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; border: 1px solid; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-success { background: rgba(60, 245, 168, 0.08); border-color: rgba(60, 245, 168, 0.4); color: #bdf8df; }
.alert-error { background: rgba(255, 77, 109, 0.08); border-color: rgba(255, 77, 109, 0.45); color: #ffc6d0; }
.alert-info { background: rgba(255, 179, 92, 0.08); border-color: var(--line-strong); color: #c9f6ff; }

/* ---------- Tabele (admin, profil) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--cyan-2); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; background: rgba(3, 10, 22, 0.6); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255, 179, 92, 0.03); }
td.right { text-align: right; }
tr.dim td { opacity: 0.55; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 26px 0; background: rgba(2, 6, 14, 0.6); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-slogan { color: var(--cyan); font-weight: 800; font-size: 18px; text-shadow: 0 0 14px rgba(255, 179, 92, 0.5); }

/* ---------- Ilustrații: soldați, arme, skin-uri ---------- */
.hero > *:not(.hero-art):not(.tag):not(.killfeed), .page-hero > *:not(.hero-art) { position: relative; z-index: 1; }
.tag { z-index: 1; }
/* ilustrațiile pot ieși din container până la marginea ecranului, dar nu mai departe (fără scroll orizontal) */
.hero-art { position: absolute; inset: 0 -16px; overflow: hidden; pointer-events: none; z-index: 0; }
.soldier {
  position: absolute; top: 0; width: 290px; height: 340px;
  fill: url(#body-dark); stroke: rgba(255, 179, 92, 0.55); stroke-width: 1.2;
  filter: drop-shadow(0 0 18px rgba(255, 179, 92, 0.35));
}
.soldier-left { left: -44px; }
.soldier-right { right: -44px; transform: scaleX(-1); }
.weapon { fill: url(#skin-cyan); filter: drop-shadow(0 0 12px rgba(255, 179, 92, 0.35)); }
.skin-cyan { fill: url(#skin-cyan); }
.skin-dragon { fill: url(#skin-dragon); filter: drop-shadow(0 0 12px rgba(255, 63, 164, 0.4)); }
.skin-gold { fill: url(#skin-gold); filter: drop-shadow(0 0 12px rgba(255, 200, 61, 0.45)); }
.skin-arctic { fill: url(#skin-arctic); }
.skin-toxic { fill: url(#skin-toxic); filter: drop-shadow(0 0 12px rgba(45, 255, 156, 0.4)); }
.weapon-hero-1 { position: absolute; left: 14%; bottom: -40px; width: 300px; height: 84px; opacity: 0.22; transform: rotate(-8deg); }
.weapon-hero-2 { position: absolute; right: 16%; bottom: -24px; width: 110px; height: 110px; opacity: 0.3; transform: rotate(18deg); }
.t-hero { overflow: hidden; }
.t-hero > *:not(.t-hero-art) { position: relative; }
.t-hero-art { position: absolute; right: -40px; top: 18px; width: 360px; height: 70px; opacity: 0.12; }
.t-bracket-link { margin-top: 16px; }

/* ---------- Pași, condiții, înscriere ---------- */
.mock-avatar-discord { color: #fff; background: var(--discord); border-color: transparent; }
.mock-avatar-tiktok { color: #fff; background: #000; border-color: #ff2d6b; box-shadow: 2px 0 0 #25f4ee inset; }
.mock-status { display: flex; align-items: center; gap: 8px; font-weight: 700; justify-content: center; padding: 8px; border-radius: 8px; }
.mock-status.ok { color: var(--ok); background: rgba(60, 245, 168, 0.08); border: 1px solid rgba(60, 245, 168, 0.35); }
.heart-badge {
  margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px;
  background: linear-gradient(135deg, #ff2d6b, #ff7aa8); color: #fff; font-size: 12px; font-weight: 700;
  box-shadow: 0 0 12px rgba(255, 45, 107, 0.5);
}
.heart-badge .ico { fill: currentColor; stroke: none; }
.btn-tiktok { background: #000; color: #fff; border-color: #ff2d6b; box-shadow: -2px 0 0 #25f4ee, 0 0 14px rgba(255, 45, 107, 0.4); }
.btn-tiktok:hover { color: #fff; }

.req-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.req-list li {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(3, 10, 22, 0.55);
}
.req-ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.req-list .ok .req-ico { background: rgba(60, 245, 168, 0.15); color: var(--ok); }
.req-list .todo { border-color: rgba(255, 207, 77, 0.4); }
.req-list .todo .req-ico { background: rgba(255, 77, 109, 0.15); color: var(--danger); }
.req-list .manual .req-ico { background: rgba(255, 45, 107, 0.15); color: #ff6b9a; }
.req-label { flex: 1; font-weight: 600; min-width: 160px; }
.req-label small { color: var(--muted); font-weight: 400; }
.req-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.join-form { display: grid; gap: 10px; }
.join-form .check { font-size: 14px; }
.my-data { color: var(--muted); padding: 10px 12px; border-radius: 10px; background: rgba(255, 179, 92, 0.05); border: 1px dashed var(--line-strong); }
.my-data b { color: var(--text); }
.reg-status { display: grid; gap: 4px; padding: 12px 14px; border-radius: 10px; border: 1px solid; }
.reg-status strong { text-transform: uppercase; letter-spacing: 0.06em; }
.reg-pending { color: #ffe8a3; border-color: rgba(255, 207, 77, 0.45); background: rgba(255, 207, 77, 0.08); }
.reg-approved { color: #bdf8df; border-color: rgba(60, 245, 168, 0.45); background: rgba(60, 245, 168, 0.08); }
.reg-rejected { color: #ffc6d0; border-color: rgba(255, 77, 109, 0.45); background: rgba(255, 77, 109, 0.08); }
.badge-reg-pending { background: rgba(255, 207, 77, 0.12); color: var(--warn); box-shadow: inset 0 0 0 1px rgba(255, 207, 77, 0.35); }
.badge-reg-approved, .badge-don-received { background: rgba(60, 245, 168, 0.12); color: var(--ok); box-shadow: inset 0 0 0 1px rgba(60, 245, 168, 0.35); }
.badge-reg-rejected, .badge-don-declined { background: rgba(255, 77, 109, 0.12); color: var(--danger); box-shadow: inset 0 0 0 1px rgba(255, 77, 109, 0.35); }
.badge-don-new { background: rgba(255, 179, 92, 0.12); color: var(--cyan); box-shadow: inset 0 0 0 1px var(--line-strong); }
.players li.pending { opacity: 0.75; }
.players .verified { color: var(--ok); margin-left: auto; }
.reg-main { display: grid; gap: 18px; align-content: start; }
.reg-main .section-title { margin: 14px 0 0; }
.panel-title.split { justify-content: space-between; }
.panel-title.split > span { display: flex; align-items: center; gap: 10px; }
.data-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.data-grid div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: rgba(3, 10, 22, 0.55); border: 1px solid var(--line); }
.data-grid span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.open-list { display: grid; gap: 14px; }
.open-item { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: center; }
.open-item h3 { font-family: var(--display); font-style: italic; text-transform: uppercase; font-weight: 800; font-size: 22px; margin-bottom: 8px; }
.open-item h3 a { color: var(--text); }
.open-action { display: grid; justify-items: stretch; }
.open-action .badge { justify-self: end; font-size: 14px; padding: 6px 14px; }
.stack-lg { display: grid; gap: 18px; align-content: start; }
.kv-top { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.count { background: var(--danger); color: #fff; border-radius: 99px; padding: 0 7px; font-size: 12px; margin-left: 2px; }

/* ---------- Bracket ---------- */
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 10px var(--danger); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
.bracket { display: flex; gap: 36px; overflow-x: auto; padding: 6px 4px 22px; }
.round { min-width: 220px; display: flex; flex-direction: column; }
.round-title {
  font-family: var(--display); font-style: italic; text-transform: uppercase; font-weight: 800; font-size: 17px;
  color: var(--cyan); text-align: center; margin: 0 0 14px; text-shadow: 0 0 12px rgba(255, 179, 92, 0.5);
}
.round-matches { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 18px; }
.match {
  position: relative; border: 1px solid var(--line); border-radius: 10px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.match::after { content: ''; position: absolute; right: -37px; top: 50%; width: 36px; height: 2px; background: var(--line-strong); }
.round-final .match::after { display: none; }
.round-final .match { border-color: rgba(255, 213, 74, 0.55); box-shadow: 0 0 24px rgba(255, 213, 74, 0.18); }
.match.done { border-color: var(--line-strong); }
.match.bye { opacity: 0.6; }
.slot {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%;
  padding: 10px 12px; background: none; border: 0; color: var(--text); font: 600 15px var(--font); text-align: left;
}
.slot + .slot { border-top: 1px solid var(--line); }
.slot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot.won { color: var(--cyan); background: rgba(255, 179, 92, 0.1); }
.slot.won .ico { color: var(--gold); filter: drop-shadow(0 0 4px rgba(255, 213, 74, 0.8)); }
.slot.lost { opacity: 0.45; }
.slot.empty { color: var(--muted); font-style: italic; font-weight: 500; }
button.slot.pick { cursor: pointer; transition: background .15s; }
button.slot.pick:hover { background: rgba(255, 179, 92, 0.16); }
button.slot.pick:first-child { border-radius: 10px 10px 0 0; }
button.slot.pick:last-child { border-radius: 0 0 10px 10px; }
.slot.saving { opacity: 0.5; }
.champion-banner { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; border-color: rgba(255, 213, 74, 0.55); }
.champion-banner > div { display: grid; }
.champion-banner .kicker { margin: 0; color: var(--gold); }

/* ---------- Donații ---------- */
.donate-hero { position: relative; }
.float-1 { position: absolute; left: 2%; top: 30px; width: 260px; height: 74px; opacity: 0.35; transform: rotate(-10deg); }
.float-2 { position: absolute; right: 6%; top: 10px; width: 120px; height: 120px; opacity: 0.45; transform: rotate(16deg); }
.float-3 { position: absolute; right: 18%; bottom: 0; width: 110px; height: 80px; opacity: 0.3; transform: rotate(-12deg); }
.arsenal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 36px; }
.skin-card { display: grid; gap: 12px; justify-items: center; text-align: center; overflow: hidden; }
.skin-card .weapon { width: 100%; height: 86px; transition: transform .25s ease; }
.skin-card:hover .weapon { transform: scale(1.06) rotate(-3deg); }
.skin-card > div { display: grid; gap: 2px; }
.skin-card small { color: var(--muted); }
.rarity { justify-self: center; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 2px 10px; border-radius: 99px; }
.rarity-legendary { border-color: rgba(255, 200, 61, 0.45); }
.rarity-legendary .rarity { color: var(--gold); background: rgba(255, 200, 61, 0.12); }
.rarity-arcane { border-color: rgba(255, 63, 164, 0.45); }
.rarity-arcane .rarity { color: #ff6bbd; background: rgba(255, 63, 164, 0.12); }
.rarity-epic .rarity { color: var(--cyan); background: rgba(255, 179, 92, 0.12); }
.rarity-rare { border-color: rgba(45, 255, 156, 0.4); }
.rarity-rare .rarity { color: var(--ok); background: rgba(45, 255, 156, 0.12); }
.kind-pick { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.kind-pick legend { width: 100%; font-weight: 700; margin-bottom: 10px; color: var(--cyan-2); text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px; }
.radio-pill { position: relative; cursor: pointer; }
.radio-pill input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pill span {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; font-weight: 700;
  border: 1px solid var(--line); background: rgba(3, 10, 22, 0.55); transition: border-color .15s, box-shadow .15s;
}
.radio-pill input:checked + span { border-color: var(--cyan); color: var(--cyan); box-shadow: var(--glow); background: rgba(255, 179, 92, 0.08); }
.radio-pill input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.dm-card { display: grid; gap: 12px; text-align: center; justify-items: center; }
.dm-card h2 { margin: 0; font-family: var(--display); font-style: italic; text-transform: uppercase; font-size: 22px; }
.dm-card p { margin: 0; }
.dm-ico { width: 46px; height: 46px; color: var(--discord); filter: drop-shadow(0 0 12px rgba(88, 101, 242, 0.7)); }
.dm-name {
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: rgba(255, 179, 92, 0.06); font-size: 18px; color: var(--cyan-2);
}
.supporters { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.supporter { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.supporter .ico { width: 26px; height: 26px; color: var(--gold); }
.supporter > div { display: grid; min-width: 0; }
.supporter small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.donate-banner { display: grid; grid-template-columns: 220px 1fr auto; gap: 24px; align-items: center; color: var(--text); overflow: hidden; }
.donate-banner:hover { color: var(--text); border-color: var(--line-strong); }
.donate-banner .display-md { margin-bottom: 4px; }
.donate-banner p { margin: 0; }
.donate-banner-art { position: relative; height: 100px; }
.donate-banner-art .weapon:first-child { position: absolute; left: 0; top: 10px; width: 120px; height: 86px; transform: rotate(-12deg); }
.donate-banner-art .weapon:last-child { position: absolute; left: 100px; top: 0; width: 100px; height: 100px; transform: rotate(14deg); }
.center { text-align: center; }
.section-title.center { margin-top: 10px; margin-bottom: 18px; }

/* ---------- Fundal video blurat (toate paginile) ---------- */
.site-bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.site-bg-videos video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  /* blur + întunecare, ca textul să rămână ușor de citit; scale ascunde marginile blurate */
  filter: blur(6px) saturate(1.3) brightness(0.85) contrast(1.05); transform: scale(1.08);
  opacity: 0; transition: opacity 1s ease;
}
.site-bg-videos video.on { opacity: 1; }
.bg-toggle {
  position: fixed; right: 16px; bottom: 16px; z-index: 30; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--cyan);
  background: rgba(4, 10, 20, 0.75); border: 1px solid var(--line-strong); backdrop-filter: blur(6px);
  box-shadow: 0 0 14px rgba(255, 179, 92, 0.25); opacity: 0.7; transition: opacity .2s, box-shadow .2s;
}
.bg-toggle:hover, .bg-toggle:focus-visible { opacity: 1; box-shadow: var(--glow); }
.site-bg-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255, 179, 92, 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 179, 92, 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(900px 520px at 15% -5%, rgba(255, 179, 92, 0.18), transparent 60%),
    radial-gradient(800px 500px at 95% 5%, rgba(255, 122, 69, 0.2), transparent 60%),
    linear-gradient(180deg, rgba(4, 10, 20, 0.3), rgba(4, 10, 20, 0.55) 60%, rgba(4, 10, 20, 0.72));
}

/* ---------- Fundal animat (harta) ---------- */
/* Poziționat față de pagină (main nu e poziționat), deci ocupă toată lățimea ecranului fără scroll orizontal */
.hero-backdrop {
  position: absolute; top: 0; left: 0; right: 0; height: 860px; z-index: -1; overflow: hidden; pointer-events: none;
  /* harta se topește în fundalul video, fără margine vizibilă */
  -webkit-mask-image: linear-gradient(180deg, #000 65%, transparent);
  mask-image: linear-gradient(180deg, #000 65%, transparent);
}
.map-bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.8; }
.hero-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 42%, rgba(4, 10, 20, 0.55), transparent 75%),
    linear-gradient(180deg, rgba(4, 10, 20, 0.45) 0%, rgba(4, 10, 20, 0.1) 30%, rgba(4, 10, 20, 0.35) 75%, transparent 100%);
}
.hero { min-height: 560px; }

/* kill feed în colțul hero-ului */
.killfeed { position: absolute; top: 4px; right: 0; width: 290px; height: 150px; z-index: 2; pointer-events: none; }
.kf-item {
  position: absolute; right: 0; top: calc(var(--i) * 36px);
  display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 6px;
  background: rgba(3, 8, 18, 0.72); border: 1px solid rgba(255, 255, 255, 0.08); font-weight: 700; font-size: 13px;
  opacity: 0; animation: killfeed 8s infinite; animation-delay: calc(var(--i) * 2s);
}
.kf-ct { color: var(--cyan); }
.kf-t { color: #ff6b85; }
.kf-gun { width: 46px; height: 16px; fill: #e8f4ff; }
.kf-hs { width: 14px; height: 14px; color: #ff6b85; }
@keyframes killfeed {
  0% { opacity: 0; transform: translateX(24px); }
  4%, 38% { opacity: 1; transform: translateX(0); }
  46%, 100% { opacity: 0; transform: translateX(0); }
}

/* ---------- Clipuri TikTok ---------- */
.clip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.clip-card { position: relative; display: grid; gap: 8px; width: 100%; max-width: 340px; justify-self: center; }
.clip-facade, .clip-frame {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line-strong); background:
    radial-gradient(circle at 30% 20%, rgba(255, 45, 107, 0.35), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(37, 244, 238, 0.3), transparent 50%), #050c18;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 179, 92, 0.08) inset;
}
.clip-facade { padding: 0; cursor: pointer; color: var(--text); font: inherit; text-align: left; }
.clip-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.clip-facade:hover img { transform: scale(1.06); }
.clip-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 14, 0.92)); }
.clip-play {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 179, 92, 0.18); border: 2px solid var(--cyan);
  box-shadow: 0 0 30px rgba(255, 179, 92, 0.6); backdrop-filter: blur(4px); transition: transform .2s ease, background .2s;
}
.clip-play .ico { width: 30px; height: 30px; color: #fff; margin-left: 4px; }
.clip-play::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255, 179, 92, 0.5); animation: ping 1.8s infinite; }
@keyframes ping { from { transform: scale(0.8); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.clip-facade:hover .clip-play { transform: translate(-50%, -50%) scale(1.1); background: rgba(255, 179, 92, 0.35); }
.clip-meta { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 6px; }
.clip-meta strong { font-size: 16px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.clip-badge { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: rgba(0, 0, 0, 0.6); }
.clip-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.clip-open { font-size: 13px; font-weight: 600; color: var(--muted); justify-self: center; }

/* ---------- Linkuri sociale ---------- */
.social-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 36px; }
.social-card {
  --brand: var(--cyan);
  position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; color: var(--text);
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 16%, transparent), rgba(8, 22, 44, 0.75));
  border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent); overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.social-card:hover { color: var(--text); border-color: var(--brand); box-shadow: 0 0 26px color-mix(in srgb, var(--brand) 45%, transparent); }
.social-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--brand); color: #fff; box-shadow: 0 0 18px color-mix(in srgb, var(--brand) 60%, transparent); }
.social-ico .ico { width: 26px; height: 26px; }
.social-text { display: grid; min-width: 0; flex: 1; }
.social-text small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-go { font-size: 20px; color: var(--brand); transition: transform .2s; }
.social-card:hover .social-go { transform: translate(3px, -3px); }
.social-tiktok { --brand: #ff2d6b; }
.social-tiktok .social-ico { background: #000; box-shadow: -3px 0 0 #25f4ee, 3px 0 0 #ff2d6b; }
.social-discord { --brand: #5865f2; }
.social-youtube { --brand: #ff0033; }
.social-instagram { --brand: #e1306c; }
.social-instagram .social-ico { background: radial-gradient(circle at 30% 110%, #ffd600, #ff7a00 25%, #ff0069 55%, #d300c5 80%, #7638fa); }
.social-twitch { --brand: #9146ff; }
.social-kick { --brand: #53fc18; }
.social-kick .social-ico { color: #000; }
.social-facebook { --brand: #1877f2; }
.social-x { --brand: #e8eef5; }
.social-x .social-ico { background: #000; border: 1px solid #333; }
.footer-brand { display: grid; gap: 4px; }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-ico {
  --brand: var(--cyan);
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--text);
  border: 1px solid var(--line); background: rgba(8, 22, 44, 0.7); transition: transform .15s, box-shadow .2s, color .2s, border-color .2s;
}
.footer-ico:hover { color: #fff; transform: translateY(-3px); border-color: var(--brand); box-shadow: 0 0 18px color-mix(in srgb, var(--brand) 60%, transparent); }

/* ---------- Efecte interactive ---------- */
/* înclinare 3D + reflexie care urmărește mouse-ul (variabilele vin din app.js) */
.fx-tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform .18s ease-out, box-shadow .2s ease, border-color .2s ease;
  will-change: transform;
}
.fx-tilt.tilting { transition: transform .05s linear, box-shadow .2s ease, border-color .2s ease; --lift: -4px; }
.fx-tilt::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(140, 245, 255, 0.16), transparent 45%);
}
.fx-tilt.tilting::after { opacity: 1; }
.t-card.fx-tilt:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); }

/* strălucire care trece peste butoane + undă la click */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before {
  content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: skewX(-20deg);
}
.btn:hover::before { animation: shine .7s ease; }
@keyframes shine { to { left: 130%; } }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255, 255, 255, 0.45); animation: ripple .6s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* apariție la scroll (doar când JS e activ) */
/* folosește "translate" (nu "transform"), ca să nu se bată cu înclinarea 3D */
.js-anim .reveal { opacity: 0; translate: 0 26px; transition: opacity .6s ease var(--d, 0ms), translate .6s ease var(--d, 0ms); }
.js-anim .reveal.fx-tilt {
  transition: opacity .6s ease var(--d, 0ms), translate .6s ease var(--d, 0ms), transform .18s ease-out, box-shadow .2s ease, border-color .2s ease;
}
.js-anim .reveal.in { opacity: 1; translate: 0 0; }

/* armele plutesc ușor */
.weapon-hero-1, .weapon-hero-2, .float-1, .float-2, .float-3, .donate-banner-art .weapon { animation: float 6s ease-in-out infinite; }
.weapon-hero-2, .float-2 { animation-duration: 5s; animation-delay: -2s; }
@keyframes float { 50% { translate: 0 -12px; } }
.soldier { animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { translate: 0 6px; } }
.display .accent { animation: glow 3.5s ease-in-out infinite; }
@keyframes glow { 50% { text-shadow: 0 0 36px rgba(255, 179, 92, 1), 0 0 70px rgba(255, 179, 92, 0.45); } }

/* țintă (crosshair) în hero + hitmarker la click */
.fx-crosshair.aiming { cursor: none; }
.fx-crosshair.aiming a, .fx-crosshair.aiming button { cursor: pointer; }
.crosshair {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; z-index: 3; pointer-events: none;
  opacity: 0; transition: opacity .15s;
}
.fx-crosshair.aiming .crosshair { opacity: 1; }
.crosshair::before, .crosshair::after { content: ''; position: absolute; background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.crosshair::before { left: 21px; top: 0; width: 2px; height: 44px; clip-path: polygon(0 0, 100% 0, 100% 38%, 0 38%, 0 62%, 100% 62%, 100% 100%, 0 100%); }
.crosshair::after { top: 21px; left: 0; height: 2px; width: 44px; clip-path: polygon(0 0, 38% 0, 38% 100%, 0 100%, 0 0, 62% 0, 100% 0, 100% 100%, 62% 100%); }
.hitmarker { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; z-index: 3; pointer-events: none; animation: hit .45s ease-out forwards; }
.hitmarker::before, .hitmarker::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 30px; height: 3px; margin: -1.5px 0 0 -15px; background: #fff;
  box-shadow: 0 0 6px #fff; clip-path: polygon(0 0, 30% 0, 30% 100%, 0 100%, 0 0, 70% 0, 100% 0, 100% 100%, 70% 100%);
}
.hitmarker::before { transform: rotate(45deg); }
.hitmarker::after { transform: rotate(-45deg); }
.hitmarker span {
  position: absolute; left: 50%; top: -18px; transform: translateX(-50%); white-space: nowrap;
  font: 900 italic 14px var(--display); color: #ff6b85; text-shadow: 0 0 8px #ff4d6d; text-transform: uppercase;
}
@keyframes hit { from { transform: scale(1.4); opacity: 1; } to { transform: scale(1); opacity: 0; } }

/* „Reduce motion” din sistem: oprim doar MIȘCĂRILE (lucruri care plutesc, alunecă, se înclină, urcă pe ecran).
   Strălucirile, culorile care se schimbă, becurile și reacțiile la hover/click (inițiate de vizitator) rămân. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .motes, .soldier, .weapon-hero-1, .weapon-hero-2, .float-1, .float-2, .float-3, .donate-banner-art .weapon,
  .kf-item, .steam path, .zzz, .cat, .clip-play::after, .lft-badge::before, .live-dot { animation: none !important; }
  .js-anim .reveal { opacity: 1; translate: 0 0; transition: none; }
  .fx-tilt, .fx-tilt.tilting { transform: none !important; }
  .kf-item { opacity: 1; }
}

/* ---------- Avatar ---------- */
.avatar {
  width: var(--size); height: var(--size); flex: none; border-radius: 50%; overflow: hidden; display: inline-grid; place-items: center;
  background: linear-gradient(135deg, #12305a, #071426); border: 1px solid var(--line-strong);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-letter { font: 900 italic calc(var(--size) * 0.45) var(--display); color: var(--cyan); text-shadow: 0 0 10px rgba(255, 179, 92, 0.6); }
.avatar-ring { border: 3px solid var(--cyan); box-shadow: 0 0 0 4px rgba(4, 10, 20, 0.9), 0 0 26px rgba(255, 179, 92, 0.55); }
.nav-user .avatar { border-color: var(--line-strong); }

/* ---------- Embleme de rank ---------- */
.rank { --rk: #8aa9c4; --rk2: #4a6280; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--rk); white-space: nowrap; }
.rank-emblem { width: 26px; height: 30px; flex: none; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--rk) 60%, transparent)); }
.rank-shield { fill: var(--rk2); stroke: var(--rk); stroke-width: 2; }
.rank-inner { fill: color-mix(in srgb, var(--rk) 35%, #050c18); }
.rank-emblem text { font: 900 italic 13px var(--display); fill: #fff; }
.rank-mark { fill: #fff; }
.rank-name { font-family: var(--display); font-style: italic; text-transform: uppercase; letter-spacing: 0.02em; }
.rank-big { flex-direction: column; gap: 8px; }
.rank-big .rank-emblem { width: 72px; height: 84px; }
.rank-big .rank-name { font-size: 20px; }
.rank-bronze { --rk: #e0915a; --rk2: #6b3a1c; }
.rank-silver { --rk: #d7e2ec; --rk2: #55697d; }
.rank-gold { --rk: #ffcf3d; --rk2: #7a5a08; }
.rank-phoenix { --rk: #ff6b2c; --rk2: #7a2108; }
.rank-ranger { --rk: #3cf5a8; --rk2: #0d5c43; }
.rank-champion { --rk: #38a8ff; --rk2: #0d3c78; }
.rank-master { --rk: #b47bff; --rk2: #3c1a78; }
.rank-elite { --rk: #ff4d9a; --rk2: #6b0d3c; }
.rank-legend { --rk: #ffd54a; --rk2: #3a2a00; }
.rank-legend .rank-emblem { filter: drop-shadow(0 0 10px rgba(255, 213, 74, 0.9)); animation: glow-legend 2.5s ease-in-out infinite; }
@keyframes glow-legend { 50% { filter: drop-shadow(0 0 18px rgba(255, 213, 74, 1)); } }
.rank-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rk); box-shadow: 0 0 8px var(--rk); flex: none; }

/* ---------- Profilul meu ---------- */
.profile-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 18px; }
.profile-head-info { flex: 1; min-width: 220px; }
.profile-head-info h1 { margin: 0 0 6px; }
.profile-head-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.signature {
  margin: 10px 0 0; font-style: italic; font-weight: 600; color: var(--cyan-2);
  text-shadow: 0 0 12px rgba(255, 179, 92, 0.35);
}
.signature::before { content: '„'; color: var(--cyan); }
.signature::after { content: '”'; color: var(--cyan); }
.signature-preview { padding: 10px 14px; border-radius: 10px; border: 1px dashed var(--line-strong); background: rgba(3, 10, 22, 0.5); }
.signature-preview .signature { margin: 0; }
.tabs { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; font-weight: 700; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--cyan); border-bottom-color: var(--cyan); text-shadow: 0 0 12px rgba(255, 179, 92, 0.5); }
.public-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.avatar-panel { display: grid; gap: 12px; }
.avatar-preview { display: grid; place-items: center; padding: 6px 0; }
.file-drop {
  position: relative; display: grid; gap: 4px; justify-items: center; text-align: center; padding: 16px; cursor: pointer;
  border: 1px dashed var(--line-strong); border-radius: 12px; background: rgba(255, 179, 92, 0.04); transition: background .2s;
}
.file-drop:hover { background: rgba(255, 179, 92, 0.1); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop span { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--cyan); word-break: break-all; }
.file-drop small { color: var(--muted); }
.public-form .panel-title { margin: 10px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.public-form .panel-title:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.public-form .panel-title small { font-size: 13px; font-weight: 400; }
.rank-picker { display: grid; gap: 6px; }
.rank-picker > label { font-weight: 600; font-size: 14px; color: #cfe3f2; }
.rank-picker-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.rank-preview { min-width: 150px; }
.form .row-3 { grid-template-columns: 2fr 1fr 2fr; }
.warn-hint { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: rgba(255, 207, 77, 0.07); border: 1px solid rgba(255, 207, 77, 0.3); color: #ffe8a3; }
.warn-hint .ico { color: var(--warn); flex: none; margin-top: 2px; }

/* ---------- Profil public (/jucator/...) ---------- */
/* --accent = culoarea aleasă de jucător (Profil public → Aspect) */
.player-card { padding: 0; overflow: hidden; margin-bottom: 20px; border-color: color-mix(in srgb, var(--accent, var(--cyan)) 55%, transparent); }
.player-card .avatar-ring, .profile-head .avatar-ring, .player-tile .avatar-ring {
  border-color: var(--accent, var(--cyan));
  box-shadow: 0 0 0 4px rgba(4, 10, 20, 0.9), 0 0 26px color-mix(in srgb, var(--accent, var(--cyan)) 60%, transparent);
}
.player-banner { position: relative; height: 150px; overflow: hidden; }
.player-banner .weapon { position: absolute; right: 4%; top: 22px; width: 380px; height: 106px; opacity: 0.22; fill: var(--accent, var(--cyan)); filter: none; }
.player-main { display: flex; align-items: flex-end; gap: 22px; padding: 0 26px; margin-top: -66px; flex-wrap: wrap; position: relative; }
.player-id { flex: 1; min-width: 220px; padding-bottom: 6px; }
.player-id h1 { margin: 0 0 6px; }
.player-rank { padding-bottom: 6px; }
.player-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); margin-top: 16px; border-top: 1px solid var(--line); }
.player-stats div { display: grid; justify-items: center; padding: 16px 8px; }
.player-stats div + div { border-left: 1px solid var(--line); }
.player-stats strong { font: 900 italic 34px var(--display); color: var(--accent, var(--cyan)); text-shadow: 0 0 14px color-mix(in srgb, var(--accent, var(--cyan)) 60%, transparent); }
.player-stats span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; }
.player-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.history { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.history li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; background: rgba(3, 10, 22, 0.55); border: 1px solid var(--line); }
.history li a { font-weight: 700; color: var(--text); flex: 1; min-width: 140px; }
.medal { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; padding: 3px 10px; border-radius: 99px; }
.medal-1 { color: var(--gold); background: rgba(255, 213, 74, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 213, 74, 0.45); }
.medal-2 { color: var(--silver); background: rgba(207, 227, 242, 0.1); box-shadow: inset 0 0 0 1px rgba(207, 227, 242, 0.4); }
.medal-3 { color: var(--bronze); background: rgba(255, 159, 92, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 159, 92, 0.4); }
.player-socials { display: grid; gap: 10px; }
button.social-card { width: 100%; font: inherit; text-align: left; cursor: pointer; }
.avatar-xl { --size: 132px; }

.player-stats-game { margin-top: 0; background: rgba(3, 10, 22, 0.35); }
.player-stats-game strong { font-size: 24px; }
.player-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 26px 0; }
.player-side { padding-bottom: 6px; }
.respect-btn .ico { color: #ff5f8a; }
.respect-btn.btn:not(.btn-ghost) .ico { color: inherit; }

/* ---------- Bannere (preset sau imagine proprie în --banner-img) ---------- */
.banner-neon { --banner-bg: radial-gradient(600px 200px at 20% 0%, color-mix(in srgb, var(--accent, #22e5ff) 45%, transparent), transparent 70%), repeating-linear-gradient(90deg, rgba(255, 179, 92, 0.08) 0 1px, transparent 1px 32px), linear-gradient(120deg, #0b2244, #050c18 60%); }
.banner-sandstone { --banner-bg: repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.08) 0 14px, transparent 14px 28px), linear-gradient(120deg, #d9b678, #8a6633 55%, #3a2a14); }
.banner-night { --banner-bg: radial-gradient(2px 2px at 20% 30%, #fff, transparent), radial-gradient(2px 2px at 60% 20%, #cfe, transparent), radial-gradient(1.5px 1.5px at 80% 60%, #fff, transparent), radial-gradient(1.5px 1.5px at 35% 70%, #bdf, transparent), radial-gradient(500px 160px at 80% 120%, rgba(255, 179, 92, 0.3), transparent), linear-gradient(#0b1a3a, #02060f); }
.banner-dragon { --banner-bg: radial-gradient(400px 160px at 80% 30%, rgba(255, 255, 255, 0.2), transparent), linear-gradient(120deg, #4a14a8, #ff3fa4 55%, #ff9f3d); }
.banner-arctic { --banner-bg: repeating-linear-gradient(60deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 22px), linear-gradient(120deg, #e8f6ff, #7fbfff 50%, #1f4fa8); }
.banner-toxic { --banner-bg: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.18) 0 18px, transparent 18px 36px), linear-gradient(120deg, #06281a, #18c47a 60%, #d9ff3d); }
.banner-gold { --banner-bg: radial-gradient(500px 160px at 30% 0%, rgba(255, 255, 255, 0.35), transparent), linear-gradient(120deg, #3a2a00, #ffc83d 50%, #7a5208); }
.player-banner, .banner-thumb, .player-tile-banner { background: var(--banner-img, none) center / cover no-repeat, var(--banner-bg, linear-gradient(120deg, #0b2244, #050c18)); }
.profile-head[class*='banner-'] {
  background:
    linear-gradient(90deg, rgba(4, 10, 20, 0.9), rgba(4, 10, 20, 0.62)),
    var(--banner-img, none) center / cover no-repeat,
    var(--banner-bg);
}
.banner-thumb { display: block; height: 86px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 12px; }
.file-drop.has-image { background: linear-gradient(rgba(4, 10, 20, 0.55), rgba(4, 10, 20, 0.55)), var(--banner-img) center / cover no-repeat; }
.file-drop-tall { min-height: 150px; align-content: center; }

/* ---------- Aspect: culori și bannere ---------- */
.swatches, .banner-pick { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.swatches legend, .banner-pick legend { width: 100%; font-weight: 600; font-size: 14px; color: #cfe3f2; margin-bottom: 8px; }
.swatch, .banner-option { position: relative; cursor: pointer; }
.swatch input, .banner-option input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span {
  display: block; width: 38px; height: 38px; border-radius: 50%; background: var(--c);
  box-shadow: 0 0 0 2px rgba(4, 10, 20, 0.9), 0 0 0 3px var(--line); transition: transform .15s, box-shadow .15s;
}
.swatch input:checked + span { transform: scale(1.12); box-shadow: 0 0 0 3px rgba(4, 10, 20, 0.95), 0 0 0 5px var(--c), 0 0 18px var(--c); }
.swatch input:focus-visible + span, .banner-option input:focus-visible + .banner-thumb { outline: 2px solid var(--cyan); outline-offset: 3px; }
.banner-option { display: grid; gap: 4px; width: 128px; text-align: center; }
.banner-option .banner-thumb { height: 52px; margin: 0; transition: box-shadow .15s, border-color .15s; }
.banner-option input:checked + .banner-thumb { border-color: var(--cyan); box-shadow: var(--glow); }
.banner-option small { color: var(--muted); font-size: 12px; }
.form .row-4 { grid-template-columns: repeat(4, 1fr); }
.lft-check span { color: var(--ok); }
.clan-tag { color: var(--accent, var(--cyan)); font-size: 0.8em; }
.lft-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 3px 10px; border-radius: 99px; color: var(--ok); background: rgba(60, 245, 168, 0.12); box-shadow: inset 0 0 0 1px rgba(60, 245, 168, 0.45);
}
.lft-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: pulse 1.6s infinite; }
.side-sticky { position: sticky; top: 90px; align-self: start; }
.tab-count { background: var(--cyan); color: #2a1608; font-size: 11px; border-radius: 99px; padding: 0 7px; }

/* ---------- Insigne ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; font-size: 13px; font-weight: 700;
  color: var(--bc, var(--cyan)); background: color-mix(in srgb, var(--bc, var(--cyan)) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bc, var(--cyan)) 45%, transparent); cursor: help;
}
.badge-staff { --bc: #ff4d6d; } .badge-champion { --bc: #ffd54a; } .badge-podium { --bc: #ff9f5c; } .badge-veteran { --bc: #b47bff; }
.badge-rookie { --bc: #8cf5ff; } .badge-member { --bc: #8b95ff; } .badge-supporter { --bc: #3cf5a8; } .badge-founder { --bc: #ff5fc8; }
.badge-showcase { --bc: #ffcf3d; }

/* ---------- Vitrina ---------- */
.vitrina-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: start; }
.vitrina-layout .side-sticky { display: grid; gap: 12px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.gallery-public { margin-top: 14px; }
.gallery-item {
  margin: 0; display: grid; gap: 8px; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: rgba(3, 10, 22, 0.6);
  transition: border-color .2s, transform .2s;
}
.gallery-item:hover { border-color: var(--accent, var(--line-strong)); transform: translateY(-2px); }
.gallery-item.featured { border-color: rgba(255, 213, 74, 0.6); box-shadow: 0 0 18px rgba(255, 213, 74, 0.2); }
.gallery-item a { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 10; background: #050c18; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item a:hover img { transform: scale(1.05); }
.gallery-item figcaption { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.gallery-caption { width: 100%; color: #cfe3f2; }
.gallery-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.gallery-mod { margin: 0; }
.gallery-hero { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 213, 74, 0.5); box-shadow: 0 0 26px rgba(255, 213, 74, 0.18); }
.gallery-hero img { width: 100%; max-height: 460px; object-fit: cover; display: block; }
.gallery-hero-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; background: linear-gradient(transparent, rgba(2, 6, 14, 0.92)); font-weight: 600; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.gallery-filters .chip { cursor: pointer; font: inherit; font-weight: 600; }
.gallery-filters .chip.on { background: var(--cyan); color: #2a1608; border-color: var(--cyan); }
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; align-content: center; gap: 12px; padding: 20px;
  background: rgba(2, 6, 14, 0.92); backdrop-filter: blur(6px); cursor: zoom-out; animation: fade-in .2s ease;
}
.lightbox img { max-width: min(1200px, 100%); max-height: 82vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.lightbox p { margin: 0; color: #cfe3f2; text-align: center; }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- Setări joc + țintă ---------- */
.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.settings-layout .panel-title:not(:first-child) { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.settings-save { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.check-box { align-self: end; padding: 11px 0; }
.settings-layout .form .row-3 { grid-template-columns: repeat(3, 1fr); }
.form .row > label.check { display: flex; align-items: center; gap: 10px; }
.crosshair-panel { position: sticky; top: 90px; }
.crosshair-stage { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); display: grid; place-items: center; }
.crosshair-stage-sm { aspect-ratio: 16 / 9; margin-bottom: 12px; }
.crosshair-preview { width: 70%; height: 90%; }
.crosshair-stage-sm .crosshair-preview { width: 60%; }
.stage-sky { background: linear-gradient(#8fc6f0 0 55%, #c9a46a 55% 100%); }
.stage-wall { background: repeating-linear-gradient(0deg, #6d4b35 0 22px, #5a3c2a 22px 24px), #6d4b35; }
.stage-sand { background: linear-gradient(#e8cf98, #c49a5c); }
.stage-dark { background: radial-gradient(circle at 50% 40%, #1d2a3f, #05080f); }
.stage-bgs { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 6px; }
.stage-bg { width: 22px; height: 22px; border-radius: 6px; border: 2px solid rgba(255, 255, 255, 0.5); cursor: pointer; }
.stage-bg.on { border-color: #fff; box-shadow: 0 0 8px #fff; }
.ch-types { display: flex; gap: 8px; flex-wrap: wrap; }
.ch-types .radio-pill span { padding: 8px 12px; font-size: 14px; }
.ch-color { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.ch-color label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.ch-color input[type=color] { width: 56px; height: 40px; padding: 2px; cursor: pointer; }
.ch-presets { display: flex; gap: 6px; padding-bottom: 6px; }
.ch-preset { width: 26px; height: 26px; border-radius: 50%; background: var(--c); border: 2px solid rgba(4, 10, 20, 0.9); box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; }
.slider { display: grid; gap: 4px; font-weight: 600; font-size: 14px; color: #cfe3f2; }
.slider span { display: flex; justify-content: space-between; }
.slider output { color: var(--cyan); font-family: var(--mono); }
input[type=range] { padding: 0; height: 6px; accent-color: var(--cyan); background: transparent; border: 0; box-shadow: none; }
.color-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--c); vertical-align: -1px; margin-right: 4px; box-shadow: 0 0 6px var(--c); }

/* ---------- Pagina „Jucători” ---------- */
.players-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
.players-filters input[name=q] { flex: 1; min-width: 200px; }
.players-filters select { width: auto; }
.players-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.player-tile { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 0 16px 16px; overflow: hidden; color: var(--text); }
.player-tile:hover { color: var(--text); border-color: var(--accent, var(--line-strong)); }
.player-tile-banner { width: calc(100% + 32px); height: 64px; margin-bottom: -40px; }
.player-tile .avatar { position: relative; }
.player-tile-name { font-family: var(--display); font-style: italic; text-transform: uppercase; font-size: 19px; }
.player-tile-motto { font-size: 13px; font-style: italic; color: var(--cyan-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.player-tile-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; font-size: 13px; color: var(--muted); margin-top: auto; }
.player-tile-foot > span:not(.lft-badge) { display: inline-flex; align-items: center; gap: 4px; }

/* liste de jucători cu link spre profil */
.player-link { display: flex; align-items: center; gap: 10px; color: var(--text); min-width: 0; flex: 1; }
.player-link:hover { color: var(--cyan); }
.player-link-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.players li::before { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .soldier { opacity: 0.35; }
  /* meniul are multe linkuri: pe ecrane medii păstrăm doar avatarul contului și strângem spațiile */
  .brand-sub { display: none; }
  .nav { gap: 0; }
  .nav > a:not(.btn) { padding: 8px 9px; }
  .nav-user > span:not(.avatar) { display: none; }
}
@media (max-width: 1020px) {
  .soldier, .weapon-hero-1, .weapon-hero-2, .float-1, .float-3 { display: none; }
  .killfeed { display: none; }
  .public-layout, .player-layout, .vitrina-layout, .settings-layout { grid-template-columns: 1fr; }
  .avatar-panel, .side-sticky, .crosshair-panel { position: static; }
  .form .row-4 { grid-template-columns: 1fr 1fr; }
  .hero-backdrop { height: 720px; }
  .arsenal { grid-template-columns: repeat(2, 1fr); }
  .open-item { grid-template-columns: 1fr; }
  .donate-banner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .donate-banner-art { width: 210px; }
  .steps { grid-template-columns: 1fr; }
  .info-strip { grid-template-columns: 1fr 1fr; gap: 10px; }
  .info-strip .info-item + .info-item { border-left: 0; }
  .t-layout, .reg-layout { grid-template-columns: 1fr; }
  .register-card { position: static; }
  .tag { display: none; }
  .brand-sub { display: none; }
}
@media (max-width: 760px) {
  .topbar-inner { flex-direction: column; align-items: stretch; gap: 6px; padding: 10px 16px; }
  .brand { justify-content: center; }
  .nav { overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
  .nav::-webkit-scrollbar { display: none; }
  .info-strip { grid-template-columns: 1fr; }
  .winners-list { grid-template-columns: 1fr; }
  .deadline { flex-wrap: wrap; justify-content: center; text-align: center; }
  .deadline-time { width: 100%; text-align: center; }
  .section { margin-top: 52px; }
}
@media (max-width: 560px) {
  .form .row, .inline-form, .field-row { grid-template-columns: 1fr; }
  .field-row { gap: 6px; }
  .grid { grid-template-columns: 1fr; }
  .podium-block span { font-size: 30px; }
  .arsenal, .data-grid { grid-template-columns: 1fr; }
  .form .row-3, .rank-picker-row, .settings-layout .form .row-3 { grid-template-columns: 1fr; }
  .player-stats { grid-template-columns: 1fr 1fr; }
  .player-stats div:nth-child(odd) { border-left: 0; }
  .player-stats div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .player-main { justify-content: center; text-align: center; }
  .player-main .profile-head-meta { justify-content: center; }
  .player-banner .weapon { width: 240px; height: 66px; }
  .profile-head { justify-content: center; text-align: center; }
  .profile-head .profile-head-meta { justify-content: center; }
  .float-2 { display: none; }
  .place-1 .podium-block { height: 100px; }
  .place-2 .podium-block { height: 74px; }
  .place-3 .podium-block { height: 56px; }
  .form-panel { padding: 20px; }
}

/* =========================================================
   „Bârlogul” - decoruri și componente specifice temei
   ========================================================= */

/* ---------- Ghirlanda de becuri sub bârna de sus ---------- */
.topbar { position: sticky; }
.string-lights { position: absolute; left: 0; right: 0; top: 100%; height: 34px; pointer-events: none; }
.string-lights svg { position: absolute; inset: 0 0 auto; width: 100%; height: 30px; overflow: visible; }
.string-lights path { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.bulb {
  position: absolute; width: 10px; height: 14px; margin-left: -5px; border-radius: 50% 50% 46% 46%;
  background: radial-gradient(circle at 50% 60%, #fff7d6, #ffc26b 55%, #e8772e);
  box-shadow: 0 0 10px 3px rgba(255, 170, 80, 0.6), 0 0 28px 6px rgba(255, 170, 80, 0.25);
  animation: flicker 5s infinite var(--delay, 0s);
}
.bulb::before { content: ''; position: absolute; left: 2px; right: 2px; top: -4px; height: 5px; border-radius: 2px; background: #2a2a2a; border: 1px solid var(--ink); }
.bulb-magic { background: radial-gradient(circle at 50% 60%, #eafffc, #6ff3e4 55%, #2aa79c); box-shadow: 0 0 10px 3px rgba(111, 243, 228, 0.55), 0 0 26px 6px rgba(111, 243, 228, 0.2); }
@keyframes flicker { 0%, 100% { opacity: 1; } 45% { opacity: 0.92; } 48% { opacity: 0.55; } 50% { opacity: 1; } 72% { opacity: 0.85; } }

/* ---------- Firicele de praf care plutesc prin cameră ---------- */
.motes { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.motes span {
  position: absolute; left: var(--x); bottom: -10px; width: var(--s); height: var(--s); border-radius: 50%;
  background: #ffd08a; box-shadow: 0 0 8px 2px rgba(255, 190, 110, 0.55); opacity: 0;
  animation: mote var(--d) linear infinite var(--delay);
}
.motes span.magic { background: var(--magic); box-shadow: 0 0 8px 2px rgba(111, 243, 228, 0.5); }
@keyframes mote {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 0.8; }
  50% { transform: translate(24px, -55vh); }
  90% { opacity: 0.6; }
  100% { transform: translate(-12px, -105vh); opacity: 0; }
}

/* ---------- Pagina de start: bârlogul ilustrat ---------- */
.hero-den {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 36px; align-items: center;
  text-align: left; min-height: 0; padding: 44px 0 10px;
}
.hero-den .display { margin-bottom: 18px; }
.hero-den .hero-sub { margin: 0 0 24px; max-width: 520px; font-size: 18px; color: #e6dcc6; }
.hero-den .deadline { margin: 30px 0 0; max-width: 520px; }
.hideout {
  position: relative; aspect-ratio: 600 / 520; border-radius: 22px 26px 20px 28px; overflow: hidden;
  border: 3px solid var(--ink); rotate: 1.2deg;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.35), 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 90px rgba(255, 160, 70, 0.18);
}
.hideout::after { /* hârtie + vignetă peste ilustrație, ca să pară pictată */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: var(--grain), radial-gradient(120% 100% at 50% 40%, transparent 55%, rgba(10, 6, 4, 0.5));
}
.hideout-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.monitor-screen {
  position: absolute; left: 27%; top: 42.31%; width: 42.67%; height: 28.08%;
  border-radius: 6px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #1f3b4f, #0a1420);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.6);
}
.monitor-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.8s ease; filter: saturate(1.1) contrast(1.05); }
.monitor-screen video.on { opacity: 1; }
.screen-scanlines { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px), radial-gradient(120% 120% at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.45)); }
.monitor-screen .killfeed { display: block; top: 5%; right: 3%; width: 70%; height: 70%; }
.monitor-screen .kf-item { top: calc(var(--i) * 22%); padding: 1px 5px; font-size: clamp(7px, 1.1vw, 11px); gap: 4px; border-radius: 3px; }
.monitor-screen .kf-gun { width: 2.6em; height: 1em; }
.monitor-screen .kf-hs { width: 1em; height: 1em; }
.bg-toggle.in-screen { position: absolute; right: 4px; bottom: 4px; width: 26px; height: 26px; z-index: 2; opacity: 0.75; }
.bg-toggle.in-screen .ico { width: 13px; height: 13px; }
/* animațiile mici din ilustrație */
.lantern-glow { animation: flicker 4.5s infinite; transform-origin: 330px 78px; }
.lamp-light { animation: flicker 6s infinite 1s; }
.jar-glow { animation: jar 3s ease-in-out infinite; }
@keyframes jar { 50% { opacity: 0.45; } }
.constellation { animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: 0.55; } }
.screen-glow { animation: flicker 7s infinite 2s; }
.steam path { animation: steam 3.2s ease-in-out infinite; }
.steam path + path { animation-delay: 1.4s; }
@keyframes steam { 0% { transform: translateY(6px); opacity: 0; } 30% { opacity: 0.7; } 100% { transform: translateY(-18px); opacity: 0; } }
.zzz { animation: zzz 3.5s ease-in-out infinite; }
@keyframes zzz { 0% { transform: translate(0, 4px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(-8px, -14px); opacity: 0; } }
.rgb { fill: #ff6f5e; animation: rgb 6s linear infinite; }
@keyframes rgb { 0% { fill: #ff6f5e; } 25% { fill: #ffd27a; } 50% { fill: #6ff3e4; } 75% { fill: #b47bff; } 100% { fill: #ff6f5e; } }
.cat { transform-origin: 380px 205px; animation: breathe-cat 4s ease-in-out infinite; }
@keyframes breathe-cat { 50% { transform: scaleY(1.035); } }

/* ---------- Bilețele de hârtie lipite cu bandă adezivă ---------- */
.paper, .t-card.panel, .step.panel, .champ-card.panel {
  --text: var(--paper-ink); --muted: var(--paper-muted);
  --line: rgba(45, 34, 25, 0.2); --line-strong: rgba(45, 34, 25, 0.45);
  color: var(--paper-ink);
  background: var(--grain), linear-gradient(170deg, #f6ead0, var(--paper) 45%, var(--paper-2));
  border: 2px solid var(--ink); border-radius: 4px 6px 5px 3px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25), 0 16px 30px rgba(0, 0, 0, 0.45), inset 0 0 40px rgba(150, 110, 60, 0.18);
}
.paper::before, .t-card.panel::before, .step.panel::before, .champ-card.panel::before {
  /* banda adezivă */
  content: ''; position: absolute; top: -12px; left: 50%; right: auto; bottom: auto; width: 92px; height: 24px; margin-left: -46px;
  background: linear-gradient(rgba(255, 246, 214, 0.75), rgba(232, 214, 168, 0.75)); border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); rotate: -3deg; z-index: 2;
}
.grid > :nth-child(odd).t-card, .steps > :nth-child(odd), .grid > :nth-child(odd).champ-card { rotate: -0.7deg; }
.grid > :nth-child(even).t-card, .steps > :nth-child(even), .grid > :nth-child(even).champ-card { rotate: 0.8deg; }
.note-tilt { rotate: -1.4deg; }
.paper h3, .t-card h3 { font-family: var(--display); font-style: normal; text-transform: none; font-size: 28px; color: var(--paper-ink); }
.paper .meta .ico, .t-card .meta .ico, .paper .link-arrow, .t-card .link-arrow { color: #b3602b; }
.t-card:hover, .t-card.fx-tilt:hover { color: var(--paper-ink); }
.t-card .progress { background: rgba(45, 34, 25, 0.15); border: 1px solid rgba(45, 34, 25, 0.25); }
.t-card .progress span { background: repeating-linear-gradient(45deg, #e58a3c 0 8px, #f0a95a 8px 16px); box-shadow: none; }
.paper .chip, .t-card .chip { color: #5a4532; background: rgba(45, 34, 25, 0.08); border-color: rgba(45, 34, 25, 0.25); }
.paper .badge-open, .t-card .badge-open { color: #2e7a4a; background: rgba(46, 122, 74, 0.13); box-shadow: inset 0 0 0 1px rgba(46, 122, 74, 0.4); }
.paper .badge-closed, .t-card .badge-closed { color: #9a6410; background: rgba(154, 100, 16, 0.12); box-shadow: inset 0 0 0 1px rgba(154, 100, 16, 0.4); }
.paper .badge-finished, .t-card .badge-finished { color: #6f5b46; background: rgba(45, 34, 25, 0.08); box-shadow: inset 0 0 0 1px rgba(45, 34, 25, 0.3); }
.step.panel > p { color: var(--paper-ink); }
.step.panel .accent { color: #b3602b; }
.step .step-num { color: #e07a35; text-shadow: 3px 3px 0 var(--ink); font-size: 86px; }
.step-head h3 { font-family: var(--display); text-transform: none; font-size: 30px; color: var(--paper-ink); }
.step .mock { background: #142b2a; border: 2px solid var(--ink); color: var(--text); --text: #f6ead2; --muted: #a9b5a5; rotate: 0.6deg; }
.step .mock-row i { color: #f6ead2; }
.champ-card .champ-name { color: #9a6410; text-shadow: none; }
.champ-card .muted { color: var(--paper-muted); }
.deadline.paper { padding: 16px 20px; }
.deadline.paper .deadline-label { color: var(--paper-ink); }
.deadline.paper .deadline-sub { color: var(--paper-muted); }
.deadline.paper .deadline-ico { color: #b3602b; filter: none; }
.deadline.paper .deadline-time { color: #c0562a; text-shadow: none; font-size: 36px; }

/* ---------- Detalii generale în stilul temei ---------- */
.section-head .display-md, .page-hero .display { position: relative; }
.page-hero .display { font-size: clamp(46px, 7vw, 86px); }
.hero-sub { color: #e6dcc6; }
.signature { font-family: var(--hand); font-size: 1.35em; font-style: normal; font-weight: 700; color: var(--magic); text-shadow: 0 0 12px rgba(111, 243, 228, 0.35); }
input, select, textarea { background: rgba(9, 20, 19, 0.85); border: 2px solid var(--ink); box-shadow: inset 0 0 0 1px rgba(246, 222, 178, 0.1); border-radius: 10px 12px 9px 11px; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--cyan), 0 0 16px rgba(255, 170, 80, 0.35); }
input::placeholder, textarea::placeholder { color: #6f7f74; }
.chip { color: var(--cyan-2); background: rgba(255, 179, 92, 0.08); }
.empty { border: 2px dashed rgba(246, 222, 178, 0.25); background: rgba(9, 20, 19, 0.5); border-radius: var(--wobbly); font-family: var(--hand); font-size: 22px; }
.tabs { border-bottom: 2px dashed rgba(246, 222, 178, 0.2); }
.tab.active { color: var(--cyan); border-bottom-color: var(--cyan); text-shadow: 0 0 12px rgba(255, 170, 80, 0.5); }
.table-wrap { border: 2px solid var(--ink); border-radius: var(--wobbly); background: var(--grain), var(--panel); }
th { color: var(--cyan-2); background: rgba(38, 26, 19, 0.85); }
.alert { border-width: 2px; border-radius: var(--wobbly); }
.info-strip .info-item .ico { color: var(--cyan); }
.mock-code { color: var(--magic); border-color: rgba(111, 243, 228, 0.45); background: rgba(111, 243, 228, 0.07); text-shadow: 0 0 10px rgba(111, 243, 228, 0.5); }
.weapon { fill: url(#skin-gold); filter: drop-shadow(0 0 10px rgba(255, 170, 80, 0.35)); }
.dot-open { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.lightbox { background: rgba(8, 6, 4, 0.9); }

/* subsolul: tot o scândură de lemn */
.footer {
  border-top: 3px solid var(--ink);
  background: var(--grain), repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0 2px, transparent 2px 160px), linear-gradient(#3a2a1d, #22170f);
}
.footer-slogan { font-family: var(--display); font-size: 26px; color: var(--cyan); text-shadow: 2px 2px 0 var(--ink), 0 0 14px rgba(255, 170, 80, 0.45); }
.footer-ico { border: 2px solid var(--ink); background: rgba(246, 234, 210, 0.07); }

@media (max-width: 1020px) {
  .hero-den { grid-template-columns: 1fr; text-align: center; padding-top: 52px; }
  .hero-den .hero-sub, .hero-den .deadline { margin-left: auto; margin-right: auto; }
  .hero-den .actions { justify-content: center; }
  .hideout { max-width: 560px; width: 100%; margin: 10px auto 0; rotate: 0deg; }
  .monitor-screen .killfeed { display: block; }
}
@media (max-width: 760px) {
  .string-lights { display: none; }
  .hero-den { padding-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .motes { display: none; }
}
/* =========================================================
   „Bârlogul” mai fantasy: culori mai vii, strălucire cărămizie, meniu animat
   ========================================================= */
:root {
  --brick: #e2643a;
  --brick-2: #b8432a;
  --ember: #ff7a4a;
  --rose: #ff5f7e;
  --violet: #9d7bff;
  --line-strong: rgba(255, 122, 74, 0.6);
  --glow: 0 0 24px rgba(255, 122, 74, 0.45);
  --bricks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='72'%3E%3Cg fill='rgba(226,100,58,0.05)'%3E%3Crect x='2' y='2' width='62' height='32' rx='3'/%3E%3Crect x='68' y='2' width='62' height='32' rx='3'/%3E%3Crect x='-31' y='38' width='62' height='32' rx='3'/%3E%3Crect x='35' y='38' width='62' height='32' rx='3'/%3E%3Crect x='101' y='38' width='62' height='32' rx='3'/%3E%3C/g%3E%3C/svg%3E");
}
body {
  background-image:
    var(--grain),
    radial-gradient(760px 500px at 6% 0%, rgba(255, 170, 80, 0.26), transparent 65%),
    radial-gradient(700px 520px at 94% 22%, rgba(226, 100, 58, 0.24), transparent 65%),
    radial-gradient(900px 380px at 50% -6%, rgba(157, 123, 255, 0.12), transparent 70%),
    radial-gradient(620px 480px at 4% 78%, rgba(111, 243, 228, 0.09), transparent 65%),
    radial-gradient(800px 560px at 88% 96%, rgba(255, 95, 126, 0.12), transparent 65%),
    radial-gradient(140% 100% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.5)),
    var(--bricks);
}
@keyframes shimmer { to { background-position: 300% 0; } }

/* ---------- Titluri: gradient de jar care „curge” ---------- */
.display { text-shadow: 3px 4px 0 var(--ink), 0 0 38px rgba(255, 122, 74, 0.45); }
.display .accent, .display-md .accent, .brand-text {
  background: linear-gradient(90deg, #ffe0a0, #ffb35c 22%, #ff7a4a 45%, #ff5f7e 62%, #ffb35c 80%, #ffe0a0);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none;
  animation: shimmer 8s linear infinite;
}
.display .accent { filter: drop-shadow(3px 4px 0 var(--ink)) drop-shadow(0 0 20px rgba(255, 122, 74, 0.6)); }
.display-md .accent { filter: drop-shadow(2px 3px 0 var(--ink)) drop-shadow(0 0 14px rgba(255, 122, 74, 0.5)); }
.brand-text { filter: drop-shadow(2px 2px 0 var(--ink)) drop-shadow(0 0 12px rgba(255, 122, 74, 0.55)); }
.section-head .display-md::after, .page-hero .display::after {
  content: ' ✦'; font-size: 0.45em; vertical-align: super; color: var(--magic);
  text-shadow: 0 0 12px var(--magic); animation: twinkle 2.6s ease-in-out infinite;
}
.page-hero .display::after { color: var(--rose); text-shadow: 0 0 12px var(--rose); }

/* ---------- Bârna de sus: linie de foc care curge + logo viu ---------- */
.topbar::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, var(--cyan), var(--brick), var(--rose), var(--magic), var(--violet), var(--cyan));
  background-size: 300% 100%; animation: shimmer 6s linear infinite;
  box-shadow: 0 0 12px rgba(255, 122, 74, 0.7), 0 0 26px rgba(226, 100, 58, 0.35);
}
.brand-crown { color: #ffc46b; animation: crown-glow 3s ease-in-out infinite; transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover .brand-crown { transform: rotate(-14deg) scale(1.2); }
@keyframes crown-glow { 50% { filter: drop-shadow(0 0 14px rgba(255, 122, 74, 1)); color: #ffd99a; } }

/* ---------- Meniul: iconițe care sar + flacăra care alunecă între linkuri ---------- */
.nav { position: relative; }
.nav > a.nav-link, .nav > a.nav-link:hover, .nav > a.nav-link.active { background: none; box-shadow: none; }
.nav-link {
  position: relative; z-index: 1; display: flex !important; flex-direction: column; align-items: center; gap: 1px;
  padding: 6px 11px !important; font-size: 13.5px; font-weight: 800; color: var(--text) !important; text-shadow: none !important;
  transition: color .2s;
}
.nav-link .ico {
  width: 21px; height: 21px; color: var(--cyan-2); opacity: 0.85;
  transition: transform .35s cubic-bezier(.3, 1.7, .5, 1), color .2s, filter .2s, opacity .2s;
}
.nav-link:hover .ico, .nav-link:focus-visible .ico { transform: translateY(-3px) scale(1.18) rotate(-8deg); color: #ffd27a; opacity: 1; filter: drop-shadow(0 0 8px rgba(255, 122, 74, 0.9)); }
.nav-link:hover, .nav-link.active { color: #fff3dc !important; }
.nav-link.active .ico { color: #ff9a5c; opacity: 1; filter: drop-shadow(0 0 8px rgba(255, 122, 74, 0.9)); }
.nav-link.active span { text-shadow: 0 0 10px rgba(255, 122, 74, 0.8) !important; }
.nav-glow {
  position: absolute; left: 0; top: 50%; height: 54px; margin-top: -27px; width: 0; z-index: 0; pointer-events: none; opacity: 0;
  border-radius: 14px 17px 13px 18px;
  background:
    radial-gradient(120% 90% at 50% 110%, rgba(255, 122, 74, 0.6), rgba(226, 100, 58, 0.22) 50%, transparent 78%),
    linear-gradient(rgba(255, 179, 92, 0.1), rgba(226, 100, 58, 0.18));
  box-shadow: inset 0 0 0 1px rgba(255, 179, 92, 0.4), 0 0 22px rgba(226, 100, 58, 0.5);
  transition: transform .5s cubic-bezier(.3, 1.35, .5, 1), width .5s cubic-bezier(.3, 1.35, .5, 1), opacity .3s;
  animation: ember-pulse 2.4s ease-in-out infinite;
}
.nav-glow.no-anim { transition: none; }
@keyframes ember-pulse { 50% { box-shadow: inset 0 0 0 1px rgba(255, 179, 92, 0.55), 0 0 32px rgba(255, 100, 60, 0.75); } }

/* ---------- Becuri colorate care se aprind pe rând ---------- */
.bulb {
  color: #ffb35c;
  background: radial-gradient(circle at 50% 60%, #fff8e0, currentColor 58%, color-mix(in srgb, currentColor 60%, #000));
  box-shadow: 0 0 10px 3px currentColor, 0 0 28px 8px color-mix(in srgb, currentColor 35%, transparent);
  animation: chase 2.4s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 0.2s);
}
.bulb-red { color: #ff5a3c; }
.bulb-teal { color: #6ff3e4; }
.bulb-rose { color: #ff5f7e; }
@keyframes chase { 0%, 100% { filter: brightness(0.7) saturate(0.9); } 12% { filter: brightness(1.5) saturate(1.2); transform: scale(1.18); } 30% { filter: brightness(1); transform: scale(1); } }
.topbar:hover .bulb { animation-duration: 1.1s; }

/* ---------- Butoane: gradient care curge, iconiță care se mișcă, scântei la click ---------- */
.btn:not(.btn-ghost):not(.btn-discord):not(.btn-danger):not(.btn-tiktok) {
  background: linear-gradient(110deg, #ffdc96 0%, #ffb35c 26%, #ff7a4a 55%, #e2643a 74%, #ffb35c 100%);
  background-size: 230% 100%; background-position: 0 0;
  transition: transform .15s ease, box-shadow .25s ease, background-position .6s ease, filter .2s;
}
.btn:not(.btn-ghost):not(.btn-discord):not(.btn-danger):not(.btn-tiktok):hover {
  background-position: 100% 0;
  box-shadow: 0 6px 0 var(--ink), 0 0 30px rgba(255, 122, 74, 0.65), 0 0 64px rgba(226, 100, 58, 0.3);
}
.btn .ico { transition: transform .3s cubic-bezier(.3, 1.7, .5, 1); }
.btn:hover .ico { animation: wiggle .55s ease; }
@keyframes wiggle { 25% { transform: rotate(-14deg) scale(1.15); } 55% { transform: rotate(10deg) scale(1.15); } 80% { transform: rotate(-4deg); } }
.btn:focus-visible { outline: 3px dashed #ffd27a; outline-offset: 3px; }
.btn-ghost:hover {
  background: rgba(226, 100, 58, 0.16); color: #fff3dc;
  box-shadow: 0 6px 0 var(--ink), inset 0 0 0 1px rgba(255, 122, 74, 0.7), 0 0 24px rgba(226, 100, 58, 0.4);
}
.btn-discord:hover { box-shadow: 0 6px 0 var(--ink), 0 0 30px rgba(120, 130, 255, 0.7); }
.spark {
  position: fixed; z-index: 200; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; pointer-events: none;
  background: var(--c); box-shadow: 0 0 8px 2px var(--c);
  animation: spark .7s cubic-bezier(.2, .7, .3, 1) forwards;
}
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(0.2); opacity: 0; } }

/* ---------- Plăci și bilețele: strălucire caldă la hover ---------- */
.panel, .card { box-shadow: inset 0 0 0 1px rgba(246, 222, 178, 0.07), inset 0 18px 30px -20px rgba(255, 122, 74, 0.22), 0 6px 0 rgba(0, 0, 0, 0.3), 0 18px 40px rgba(0, 0, 0, 0.4); }
.fx-tilt:hover { box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3), 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 34px rgba(226, 100, 58, 0.45) !important; }
.t-card.panel:hover, .step.panel:hover, .champ-card.panel:hover { border-color: #5a1e10; }
.hideout { box-shadow: 0 8px 0 rgba(0, 0, 0, 0.35), 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 110px rgba(226, 100, 58, 0.32); }
.tab.active { color: #ff9a5c; border-bottom-color: var(--brick); text-shadow: 0 0 12px rgba(255, 122, 74, 0.6); }
.footer { position: relative; }
.footer::before {
  content: ''; position: absolute; left: 0; right: 0; top: -3px; height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--brick), var(--rose), var(--magic), var(--violet), var(--cyan));
  background-size: 300% 100%; animation: shimmer 6s linear infinite reverse;
  box-shadow: 0 0 12px rgba(255, 122, 74, 0.6);
}

/* ---------- Particule: jar roșu, sclipiri roz și turcoaz ---------- */
.motes span.ember { background: #ff7a4a; box-shadow: 0 0 10px 3px rgba(255, 90, 50, 0.7); animation-name: mote, ember-flicker; animation-duration: var(--d), 0.9s; animation-timing-function: linear, ease-in-out; animation-iteration-count: infinite, infinite; animation-delay: var(--delay), 0s; }
.motes span.rose { background: #ff8aa2; box-shadow: 0 0 9px 2px rgba(255, 95, 126, 0.6); }
@keyframes ember-flicker { 50% { filter: brightness(1.6); } }


/* cercul de rune din bârlog se rotește încet și pulsează */
.rune { transform-box: fill-box; transform-origin: center; animation: rune-spin 24s linear infinite, rune-glow 3s ease-in-out infinite; filter: drop-shadow(0 0 6px #6ff3e4); }
@keyframes rune-spin { from { rotate: 0deg; } to { rotate: 360deg; } }
@keyframes rune-glow { 50% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .rune { animation: rune-glow 3s ease-in-out infinite; } }
/* =========================================================
   Cafeneaua - camera multiplayer pixel-art
   ========================================================= */
.lounge-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.lounge-stage { padding: 14px; display: grid; gap: 12px; }
.lounge-canvas-wrap { position: relative; border: 3px solid var(--ink); border-radius: 10px; overflow: hidden; background: #140906; box-shadow: 0 0 40px rgba(226, 100, 58, 0.25); }
#lounge-canvas { display: block; width: 100%; image-rendering: pixelated; cursor: pointer; touch-action: manipulation; }
.lounge-status {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px;
  background: rgba(10, 6, 4, 0.72); color: var(--cyan-2); font: 700 18px "Pixelify Sans", var(--font);
}
.lounge-status[hidden] { display: none; }
.lounge-prompt {
  position: absolute; left: 50%; bottom: 10px; translate: -50% 0; padding: 4px 12px; border-radius: 8px;
  background: rgba(10, 6, 4, 0.8); border: 2px solid var(--ink); color: #ffe2a0; font: 600 14px "Pixelify Sans", var(--font);
}
.lounge-prompt kbd, .lounge-help kbd {
  font: 700 12px "Pixelify Sans", var(--mono); padding: 1px 6px; border-radius: 4px; background: #2a1a10; border: 1px solid #6b4a32; color: #ffe2a0;
}
.lounge-menu {
  position: absolute; z-index: 5; min-width: 190px; display: grid; gap: 4px; padding: 8px;
  background: var(--grain), linear-gradient(#f6ead0, #e2cfa4); border: 2px solid var(--ink); border-radius: 6px;
  box-shadow: 0 4px 0 var(--ink), 0 14px 30px rgba(0, 0, 0, 0.5); font-family: "Pixelify Sans", var(--font);
}
.lounge-menu strong { color: var(--paper-ink); padding: 2px 6px 4px; border-bottom: 1px dashed rgba(45, 34, 25, 0.3); }
.lounge-menu button {
  text-align: left; padding: 7px 8px; border: 0; border-radius: 4px; background: transparent; color: var(--paper-ink);
  font: 600 14px "Pixelify Sans", var(--font); cursor: pointer;
}
.lounge-menu button:hover, .lounge-menu button:focus-visible { background: rgba(226, 100, 58, 0.2); outline: none; }
.lounge-chat { display: flex; gap: 8px; }
.lounge-chat input { flex: 1; font-family: "Pixelify Sans", var(--font); }
.lounge-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.lounge-help { margin: 0; }
.lounge-side { display: grid; gap: 16px; }
.lounge-online { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 260px; overflow: auto; }
.lounge-online li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: rgba(9, 20, 19, 0.55); border: 1px solid var(--line); }
.lounge-online li a { flex: 1; color: var(--text); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lounge-online li a:hover { color: var(--cyan); }
.online-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; border: 1px solid var(--ink); box-shadow: 0 0 6px rgba(139, 227, 168, 0.6); }
.lounge-custom { display: grid; gap: 10px; }
#look-preview { width: 96px; height: 120px; image-rendering: pixelated; justify-self: center; border-radius: 10px; border: 2px solid var(--ink);
  background: radial-gradient(circle at 50% 70%, rgba(255, 150, 80, 0.35), transparent 70%), #2a1a10; }
.look-group { display: grid; gap: 4px; }
.look-group > span { font-size: 13px; font-weight: 700; color: var(--muted); }
.look-row { display: flex; flex-wrap: wrap; gap: 5px; }
.look-swatch { width: 24px; height: 24px; border-radius: 6px; background: var(--c); border: 2px solid var(--ink); cursor: pointer; transition: transform .15s; }
.look-swatch[aria-pressed='true'] { transform: scale(1.15); box-shadow: 0 0 0 2px #ffd27a, 0 0 10px rgba(255, 170, 80, 0.7); }
.look-style { padding: 3px 8px; border-radius: 6px; border: 2px solid var(--ink); background: rgba(246, 234, 210, 0.08); color: var(--text); font: 600 12px "Pixelify Sans", var(--font); cursor: pointer; }
.look-style[aria-pressed='true'] { background: var(--cyan); color: #2a1608; }
.lounge-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 200px; overflow: auto; font: 500 14px "Pixelify Sans", var(--font); }
.lounge-log li { overflow-wrap: anywhere; }
.lounge-log li b { color: var(--cyan); }
.lounge-log li.sys { color: var(--muted); font-style: italic; }
.lounge-login { max-width: 560px; margin: 0 auto; }

/* invitația la duel și fereastra cu datele adversarului */
.duel-invite {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: min(340px, calc(100vw - 32px)); padding: 18px; display: grid; gap: 10px;
  rotate: -1deg; animation: invite-in .35s cubic-bezier(.3, 1.5, .5, 1);
}
.duel-invite[hidden] { display: none; }
.duel-invite p { margin: 0; font-weight: 800; font-size: 17px; }
.duel-swords { width: 34px; height: 34px; color: #c0562a; }
.duel-timer { height: 5px; border-radius: 3px; background: rgba(45, 34, 25, 0.2); overflow: hidden; }
.duel-timer span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #e2643a, #ffb35c); }
@keyframes invite-in { from { translate: 0 30px; opacity: 0; } }
.duel-modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(8, 4, 2, 0.75); backdrop-filter: blur(4px); }
.duel-modal[hidden] { display: none; }
.duel-card { width: min(440px, 100%); display: grid; gap: 12px; text-align: center; animation: invite-in .35s cubic-bezier(.3, 1.5, .5, 1); }
.duel-card .kicker { justify-content: center; }
.duel-opponent { display: grid; gap: 10px; text-align: left; }
.duel-head { display: flex; align-items: center; gap: 14px; }
.duel-head > div { display: grid; gap: 4px; }
.duel-name { font-family: var(--display); font-size: 30px; line-height: 1; }
.duel-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: rgba(9, 20, 19, 0.6); border: 1px solid var(--line); }
.duel-row span { color: var(--muted); min-width: 110px; }
.duel-row b { flex: 1; }
.lounge-toast {
  position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 80; max-width: calc(100vw - 32px);
  padding: 10px 16px; border-radius: 10px; border: 2px solid var(--ink); background: #2a1a10; color: #ffe2a0;
  font: 600 15px "Pixelify Sans", var(--font); box-shadow: 0 4px 0 var(--ink), 0 0 24px rgba(226, 100, 58, 0.4);
}
.lounge-toast[hidden] { display: none; }

@media (max-width: 1020px) {
  .lounge-layout { grid-template-columns: 1fr; }
}
/* =========================================================
   Serverul de Minecraft - card live pe prima pagină
   ========================================================= */
.mc-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 300px); gap: 22px; align-items: center; padding: 22px 24px;
  background: radial-gradient(circle at 0% 0%, rgba(111, 243, 228, 0.1), transparent 45%), var(--panel);
  border-color: rgba(139, 227, 168, 0.35);
}
.mc-block { position: relative; width: 84px; height: 84px; image-rendering: pixelated; }
.mc-grass, .mc-favicon { position: absolute; inset: 0; width: 100%; height: 100%; border: 3px solid var(--ink); border-radius: 6px; box-shadow: 0 5px 0 var(--ink), 0 0 26px rgba(139, 227, 168, 0.25); }
.mc-favicon { z-index: 1; background: #1b1410; image-rendering: pixelated; }
/* bloc de iarbă desenat din pătrățele */
.mc-grass {
  background:
    linear-gradient(90deg, transparent 0 12%, #4f8f2f 12% 25%, transparent 25% 50%, #4f8f2f 50% 62%, transparent 62% 88%, #4f8f2f 88%) 0 25% / 100% 12.5% no-repeat,
    linear-gradient(#6bbf3c 0 25%, transparent 25%),
    linear-gradient(90deg, #7a5233 0 25%, #8f6240 25% 50%, #6b4529 50% 75%, #8f6240 75%) 0 0 / 100% 25%,
    #7a5233;
}
.mc-card[data-state='online'] .mc-grass { animation: mc-bob 3.2s ease-in-out infinite; }
@keyframes mc-bob { 50% { translate: 0 -4px; } }
.mc-main { display: grid; gap: 8px; min-width: 0; }
.mc-kicker { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; font-size: 14px; }
.mc-dot { width: 11px; height: 11px; border-radius: 3px; border: 1px solid var(--ink); background: var(--warn); flex: none; }
.mc-card[data-state='online'] .mc-dot { background: var(--ok); box-shadow: 0 0 10px rgba(139, 227, 168, 0.8); animation: mc-pulse 1.6s ease-in-out infinite; }
.mc-card[data-state='offline'] .mc-dot { background: var(--danger); }
@keyframes mc-pulse { 50% { box-shadow: 0 0 2px rgba(139, 227, 168, 0.3); } }
.mc-title { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.mc-ip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mc-ip { font: 700 17px var(--mono); padding: 7px 12px; border-radius: 8px; background: rgba(9, 20, 19, 0.7); border: 1px solid var(--line); color: #c9ffd9; letter-spacing: 0.02em; }
.mc-stats { display: grid; gap: 10px; }
.mc-count { display: flex; align-items: baseline; gap: 6px; color: var(--muted); font-weight: 700; }
.mc-count strong { font-family: var(--display); font-size: 52px; line-height: 0.9; color: var(--ok); text-shadow: 0 0 18px rgba(139, 227, 168, 0.45); }
.mc-card[data-state='offline'] .mc-count strong { color: var(--danger); text-shadow: none; }
.mc-bar { height: 10px; border-radius: 4px; background: rgba(9, 20, 19, 0.7); border: 1px solid var(--ink); overflow: hidden; }
.mc-bar span { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, #6bbf3c 0 10px, #4f8f2f 10px 12px); transition: width .6s ease; }
.mc-meta { display: flex; gap: 18px; margin: 0; }
.mc-meta div { display: grid; }
.mc-meta dt { font-size: 12px; color: var(--muted); font-weight: 700; }
.mc-meta dd { margin: 0; font-weight: 800; }
.mc-players { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mc-players li { display: flex; align-items: center; gap: 6px; padding: 3px 8px 3px 3px; border-radius: 6px; background: rgba(9, 20, 19, 0.6); border: 1px solid var(--line); font: 600 13px "Pixelify Sans", var(--font); }
.mc-players img { width: 20px; height: 20px; border-radius: 3px; image-rendering: pixelated; }
@media (max-width: 1020px) {
  .mc-card { grid-template-columns: auto minmax(0, 1fr); }
  .mc-stats { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .mc-card { grid-template-columns: 1fr; justify-items: start; }
  .mc-block { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) { .mc-card .mc-grass, .mc-card .mc-dot { animation: none !important; } }

/* =========================================================
   Lada Zonei - case opening
   ========================================================= */
/* link-ul din meniu: auriu, pulsează, cu eticheta „NOU” */
.nav-link.nav-lada { position: relative; color: #ffd27a; text-shadow: 0 0 10px rgba(255, 200, 61, 0.6); }
.nav-link.nav-lada .ico { animation: lada-wiggle 2.6s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(255, 200, 61, 0.8)); }
.nav-new { position: absolute; top: -4px; right: -6px; padding: 1px 5px; border-radius: 6px; font: 800 9px var(--font); letter-spacing: .05em; color: #2a1410; background: linear-gradient(#ffe08a, #ffb33d); box-shadow: 0 0 10px rgba(255, 190, 60, 0.8); animation: lada-pulse 1.4s ease-in-out infinite; }
.nav-points { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 200, 61, 0.12); border: 1px solid rgba(255, 200, 61, 0.45); color: #ffd27a; font-weight: 800; font-size: 13px; }
.nav-points .ico { width: 15px; height: 15px; }
.nav-points:hover { color: #fff2c4; box-shadow: 0 0 14px rgba(255, 200, 61, 0.45); }
@keyframes lada-wiggle { 0%, 80%, 100% { rotate: 0deg; } 85% { rotate: -12deg; } 90% { rotate: 10deg; } 95% { rotate: -6deg; } }
@keyframes lada-pulse { 50% { transform: scale(1.12); } }

.lada-gold-text { background: linear-gradient(90deg, #fff2a8, #ffc83d, #ff9f3d, #fff2a8); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: lada-shine 3s linear infinite; font-weight: 900; }
@keyframes lada-shine { to { background-position: -200% 0; } }

.lada-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 30px; align-items: center; padding: 20px 0 10px; }
.lada-title { font-size: clamp(54px, 9vw, 104px); line-height: .9; text-shadow: 0 0 34px rgba(255, 170, 60, 0.45); }
.lada-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.lada-stat { display: grid; gap: 2px; padding: 10px 16px; border-radius: 14px; background: rgba(9, 20, 19, 0.65); border: 1px solid var(--line-strong); min-width: 120px; }
.lada-stat > span { font-size: 12px; color: var(--muted); font-weight: 700; }
.lada-stat strong { font-family: var(--display); font-size: 34px; line-height: 1; color: #ffd27a; text-shadow: 0 0 14px rgba(255, 200, 61, 0.45); }
.lada-stat small { font-size: 16px; }
.btn.lada-open { font-size: 20px; padding: 16px 28px; background: linear-gradient(180deg, #ffe08a, #ffb33d 55%, #e2643a) !important; color: #2a1408 !important; box-shadow: 0 6px 0 var(--ink), 0 0 34px rgba(255, 180, 60, 0.65) !important; animation: lada-breathe 2.2s ease-in-out infinite; }
.btn.lada-open:disabled { filter: grayscale(.7) brightness(.7); animation: none; cursor: not-allowed; }
@keyframes lada-breathe { 50% { box-shadow: 0 6px 0 var(--ink), 0 0 54px rgba(255, 200, 80, 0.95); } }
.lada-why { min-height: 1.4em; }

.lada-crate-wrap { position: relative; display: grid; place-items: center; min-height: 340px; }
.lada-rays { position: absolute; width: 420px; height: 420px; max-width: 100%; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255, 200, 80, 0.22) 0 10deg, transparent 10deg 24deg); mask: radial-gradient(circle, #000 30%, transparent 68%); -webkit-mask: radial-gradient(circle, #000 30%, transparent 68%); animation: lada-spin 22s linear infinite; }
.lada-crate { position: relative; width: min(320px, 80%); height: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 30px rgba(255, 170, 60, 0.45)); animation: lada-float 3.4s ease-in-out infinite; }
.lada-crate.shake { animation: lada-shake .12s linear infinite; }
.lada-spark { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #ffd27a; box-shadow: 0 0 12px 4px rgba(255, 200, 80, 0.8); animation: lada-twinkle 2.4s ease-in-out infinite; }
.lada-spark.s1 { top: 18%; left: 22%; } .lada-spark.s2 { top: 30%; right: 18%; animation-delay: -.8s; } .lada-spark.s3 { bottom: 20%; left: 30%; animation-delay: -1.6s; }
@keyframes lada-spin { to { rotate: 360deg; } }
@keyframes lada-float { 50% { translate: 0 -12px; rotate: -2deg; } }
@keyframes lada-shake { 25% { translate: -4px 1px; rotate: -2deg; } 75% { translate: 4px -1px; rotate: 2deg; } }
@keyframes lada-twinkle { 50% { opacity: .2; transform: scale(.5); } }

/* banda */
.lada-reel-wrap { margin: 10px 0 30px; }
.lada-reel { position: relative; overflow: hidden; padding: 16px 0; border-radius: 18px; border: 3px solid var(--ink); background: linear-gradient(180deg, rgba(20, 10, 6, 0.9), rgba(40, 18, 10, 0.9)); box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(226, 100, 58, 0.25); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.lada-track { display: flex; gap: 10px; width: max-content; padding: 0 10px; will-change: transform; }
.lada-marker { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; translate: -2px 0; background: linear-gradient(#ffe08a, #ff9f3d); box-shadow: 0 0 14px 3px rgba(255, 190, 60, 0.9); }
.lada-marker::before, .lada-marker::after { content: ''; position: absolute; left: 50%; translate: -50% 0; border: 10px solid transparent; }
.lada-marker::before { top: 0; border-top-color: #ffc83d; }
.lada-marker::after { bottom: 0; border-bottom-color: #ffc83d; }
.lada-item { flex: none; width: 140px; height: 150px; display: grid; grid-template-rows: 1fr auto; justify-items: center; gap: 6px; padding: 12px 8px 10px; border-radius: 12px; text-align: center;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--rc) 35%, transparent), transparent 70%), rgba(12, 8, 6, 0.85);
  border: 2px solid color-mix(in srgb, var(--rc) 70%, #000); border-bottom: 5px solid var(--rc); box-shadow: inset 0 -16px 24px -18px var(--rc); }
.lada-item svg { width: 82px; height: 82px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)); }
.lada-item span { font-size: 12.5px; font-weight: 800; color: #f6ead2; line-height: 1.15; }
.lada-item.r-mythic { box-shadow: inset 0 -16px 24px -18px var(--rc), 0 0 18px rgba(255, 200, 61, 0.55); }
.lada-item.win { animation: lada-win 1s ease-in-out infinite; }
@keyframes lada-win { 50% { box-shadow: inset 0 -16px 24px -18px var(--rc), 0 0 28px 6px var(--rc); } }

/* rezultatul */
.lada-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(8, 4, 2, 0.78); backdrop-filter: blur(5px); }
.lada-modal[hidden] { display: none; }
.lada-result { width: min(440px, 100%); text-align: center; display: grid; gap: 10px; justify-items: center; animation: invite-in .4s cubic-bezier(.3, 1.6, .5, 1); border-bottom: 6px solid var(--rc, #ffc83d); }
.lada-result .kicker { justify-content: center; color: var(--rc); }
.lada-result-art svg { width: 150px; height: 150px; filter: drop-shadow(0 0 24px var(--rc)); animation: lada-float 2.6s ease-in-out infinite; }
.lada-result p { margin: 0; }
.lada-code { display: grid; gap: 8px; justify-items: center; padding: 12px; border-radius: 12px; border: 2px dashed rgba(45, 34, 25, 0.4); }
.lada-code[hidden] { display: none; }
.lada-code code { font: 800 22px var(--mono); letter-spacing: .08em; }
.lada-burst { position: fixed; z-index: 95; width: 10px; height: 10px; border-radius: 2px; pointer-events: none; animation: lada-confetti 1.6s ease-out forwards; }
@keyframes lada-confetti { to { transform: translate(var(--dx), var(--dy)) rotate(720deg); opacity: 0; } }

/* quest-uri, realizări */
.lada-quests { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.lada-quest { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; }
.lada-quest.done { border-color: rgba(139, 227, 168, 0.55); }
.lada-quest-ico { width: 30px; height: 30px; color: #ffd27a; }
.lada-quest.done .lada-quest-ico { color: var(--ok); }
.lada-quest-body { display: grid; gap: 4px; min-width: 0; }
.lada-bar { height: 8px; border-radius: 4px; background: rgba(9, 20, 19, 0.75); border: 1px solid var(--ink); overflow: hidden; }
.lada-bar span { display: block; height: 100%; background: linear-gradient(90deg, #e2643a, #ffc83d); transition: width .5s; }
.lada-quest.done .lada-bar span { background: linear-gradient(90deg, #3ccf6e, #8be3a8); }
.lada-reward { font-family: var(--display); font-size: 26px; color: #ffd27a; }
.lada-quest.done .lada-reward { color: var(--ok); text-decoration: line-through; opacity: .7; }
.lada-sub { margin: 22px 0 10px; font-family: var(--display); font-size: 26px; }
.lada-vote { display: grid; gap: 8px; justify-items: start; }

/* șanse */
.lada-jackpot { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; border-color: rgba(255, 200, 61, 0.6); box-shadow: 0 0 30px rgba(255, 200, 61, 0.2); }
.lada-jackpot-art { width: 110px; height: 110px; flex: none; }
.lada-jackpot strong { font-size: 24px; }
.lada-odds { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 10px; }
.lada-odd { border-top: 4px solid var(--rc); }
.lada-odd-head { display: flex; justify-content: space-between; align-items: baseline; color: var(--rc); }
.lada-odd-head span { font-family: var(--display); font-size: 26px; }
.lada-odd ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.lada-odd li { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.lada-odd li svg { width: 28px; height: 28px; flex: none; }

.lada-inventory { display: flex; flex-wrap: wrap; gap: 10px; }
.lada-inventory .lada-item { height: auto; min-height: 150px; grid-template-rows: auto auto auto auto; }
.lada-title-form { display: flex; align-items: center; gap: 8px; }
.lada-drops { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lada-drops li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border-radius: 10px; background: rgba(9, 20, 19, 0.55); border: 1px solid var(--line); border-left: 4px solid var(--rc); }
.lada-drops li svg { width: 30px; height: 30px; flex: none; }
.lada-drops li span { color: var(--rc); font-weight: 800; }
.lada-drops time { margin-left: auto; }

@media (max-width: 860px) {
  .lada-hero { grid-template-columns: 1fr; }
  .lada-crate-wrap { min-height: 240px; order: -1; }
  .lada-item { width: 112px; height: 132px; }
  .lada-item svg { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .lada-rays, .lada-crate, .lada-spark, .nav-lada .ico, .nav-new, .btn.lada-open, .lada-gold-text { animation: none !important; }
}

/* titlul câștigat la Lada Zonei, pe profilul public */
.lada-player-title { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0; padding: 3px 10px; border-radius: 999px; font-weight: 800; font-size: 13px; color: #2a1408; background: linear-gradient(90deg, #ffe08a, #ffb33d); box-shadow: 0 0 14px rgba(255, 190, 60, 0.5); }
.lada-player-title .ico { width: 15px; height: 15px; }

.lada-result h2 { color: var(--paper-ink); text-shadow: none; }
