/* ============================================================
   dizkoil.club — игровой HUD Rust
   обгоревший металл + ржавый оранж + красный таргет
   инвентарь-хотбар вместо обычных карточек
   ============================================================ */

:root {
  --bg: #14100d;
  --bg-2: #1c1712;
  --panel: rgba(28, 23, 18, .82);
  --metal: #2a231c;
  --rust: #c45a2a;
  --rust-bright: #ff7a3c;
  --ember: #ffa04d;
  --red: #e2402a;
  --text: #ece2d4;
  --text-dim: #9a8d7c;
  --line: rgba(196, 90, 42, .22);
  --line-soft: rgba(236, 226, 212, .1);
  --ok: #7bd66a;

  /* бренды */
  --c-tiktok: #25f4ee;
  --c-telegram: #2aabee;
  --c-discord: #8c93f2;
  --c-youtube: #ff5252;

  /* BUL$ Opti */
  --buls-bg: #020617;
  --buls-indigo: #6366f1;
  --buls-violet: #8b5cf6;
  --buls-blurple: #5865f2;

  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Onest', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --card-r: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.55; min-height: 100dvh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
.mono { font-family: var(--font-mono); }
::selection { background: var(--rust); color: #fff; }

/* ---------- фон ---------- */
#bg3d { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 0%, transparent 55%, rgba(8,5,3,.78) 100%),
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(196,90,42,.08), transparent 60%);
}
/* тонкие HUD-сканлайны */
.scan { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px); }
.grain {
  position: fixed; inset: -10%; z-index: 3; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 8s steps(10) infinite;
}
@keyframes grain-shift { 0%,100%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-2%)} 80%{transform:translate(3%,3%)} }

/* ---------- курсор ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; opacity: 0; transform: translate(-50%,-50%); }
.cursor-dot { width: 5px; height: 5px; background: var(--rust-bright); border-radius: 50%; }
.cursor-ring { width: 28px; height: 28px; border: 1px solid rgba(255,122,60,.5); transition: width .25s var(--ease-out), height .25s var(--ease-out), border-color .25s; }
body.cursor-on .cursor-dot, body.cursor-on .cursor-ring { opacity: 1; }
body.cursor-on, body.cursor-on a, body.cursor-on button { cursor: none; }
body.cursor-hover .cursor-ring { width: 44px; height: 44px; border-color: var(--rust-bright); }

/* ---------- колонка ---------- */
.page {
  position: relative; z-index: 4; max-width: 520px; margin: 0 auto;
  padding: clamp(34px, 7vh, 72px) max(18px, env(safe-area-inset-right)) calc(46px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  display: flex; flex-direction: column; gap: 16px;
}
:focus-visible { outline: 2px solid var(--rust-bright); outline-offset: 3px; border-radius: 4px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .85s var(--ease-out), transform .85s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- STATUS BAR ---------- */
.statusbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: .64rem; letter-spacing: .12em; color: var(--text-dim);
}
.sb-left { display: inline-flex; align-items: center; gap: 7px; color: var(--ok); }
.online { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: blink 2s steps(1) infinite; }
@keyframes blink { 50% { opacity: .35; } }
.sb-mid { color: var(--ember); }
.sb-right { color: var(--text-dim); }

/* ---------- PLAYER CARD ---------- */
.player {
  display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--line);
  border-radius: var(--card-r); background: var(--panel); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pframe { position: relative; flex: 0 0 auto; width: 96px; height: 96px; }
.avatar { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; border: 1px solid var(--line); }
.corner { position: absolute; width: 13px; height: 13px; border: 2px solid var(--rust-bright); }
.corner.tl { top: -4px; left: -4px; border-right: 0; border-bottom: 0; }
.corner.tr { top: -4px; right: -4px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: -4px; left: -4px; border-right: 0; border-top: 0; }
.corner.br { bottom: -4px; right: -4px; border-left: 0; border-top: 0; }

.pinfo { flex: 1 1 auto; min-width: 0; }
.name { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.6rem, 7.5vw, 2.2rem); letter-spacing: .02em; line-height: 1; color: var(--text); }
.bio { margin-top: 8px; font-size: .82rem; color: var(--text-dim); display: flex; align-items: center; gap: 7px; }
.led { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px rgba(226,64,42,.8); animation: blink 1.6s steps(1) infinite; }

.hp { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.hp-label { font-size: .6rem; letter-spacing: .1em; color: var(--text-dim); }
.hp-bar { flex: 1 1 auto; height: 8px; border-radius: 4px; background: rgba(0,0,0,.4); border: 1px solid var(--line-soft); overflow: hidden; }
.hp-fill { display: block; height: 100%; width: 92%; background: linear-gradient(90deg, var(--rust), var(--rust-bright)); box-shadow: 0 0 10px rgba(255,122,60,.5); }
.hp-val { font-size: .66rem; color: var(--ember); }

/* ---------- HUD READOUTS ---------- */
.readouts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ro {
  padding: 12px 4px; text-align: center; border: 1px solid var(--line-soft); border-radius: 10px;
  background: var(--panel); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); position: relative; overflow: hidden;
}
.ro::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--rust), transparent); opacity: .5; }
.ro-num { display: block; font-size: clamp(1rem, 4.4vw, 1.25rem); font-weight: 700; color: var(--ember); }
.ro-cap { display: block; margin-top: 2px; font-size: .62rem; letter-spacing: .04em; color: var(--text-dim); }

/* ---------- HOTBAR (инвентарь) ---------- */
.hotbar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.slot {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px 14px 14px; min-height: 104px;
  border: 1px solid var(--line-soft); border-radius: 12px; text-decoration: none; color: var(--text);
  background: linear-gradient(160deg, rgba(42,35,28,.8), rgba(20,16,13,.8)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .25s var(--ease-out), border-color .3s, box-shadow .3s, background .3s;
}
.slot-key {
  position: absolute; top: 7px; left: 9px; font-size: .66rem; color: var(--text-dim);
  border: 1px solid var(--line-soft); border-radius: 4px; padding: 0 5px; line-height: 1.5;
}
.slot-count { position: absolute; top: 9px; right: 11px; font-size: .68rem; color: var(--text-dim); transition: color .3s; }
.slot-icon { margin-top: 14px; width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: rgba(0,0,0,.3); border: 1px solid var(--line-soft); color: var(--text); transition: transform .3s var(--ease-out), color .3s, border-color .3s; }
.slot-icon svg { width: 20px; height: 20px; }
.slot-name { font-family: var(--font-display); font-weight: 700; font-size: .9rem; }
.slot:hover { transform: translateY(-3px); border-color: var(--rust); box-shadow: 0 14px 34px -16px rgba(196,90,42,.6), 0 0 0 1px var(--rust) inset; background: linear-gradient(160deg, rgba(52,42,32,.85), rgba(24,19,15,.85)); }
.slot:hover .slot-icon { transform: scale(1.08); }
.slot[data-brand="tiktok"]:hover .slot-icon { color: var(--c-tiktok); border-color: rgba(37,244,238,.4); }
.slot[data-brand="telegram"]:hover .slot-icon { color: var(--c-telegram); border-color: rgba(42,171,238,.4); }
.slot[data-brand="discord"]:hover .slot-icon { color: var(--c-discord); border-color: rgba(140,147,242,.4); }
.slot[data-brand="youtube"]:hover .slot-icon { color: var(--c-youtube); border-color: rgba(255,82,82,.4); }
.slot:hover .slot-count { color: var(--ember); }

/* ---------- LOOT (промокод) ---------- */
.loot {
  position: relative; display: flex; align-items: center; gap: 13px; width: 100%; padding: 15px 16px;
  border: 1px solid rgba(255,160,77,.4); border-radius: 12px; cursor: pointer; color: var(--text);
  background: linear-gradient(100deg, rgba(196,90,42,.16), rgba(28,23,18,.85)); font-family: var(--font-body); text-align: left;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); overflow: hidden;
  transition: border-color .3s, transform .15s, box-shadow .3s;
}
.loot-rarity { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--ember), var(--rust)); }
.loot:hover { border-color: var(--ember); box-shadow: 0 10px 30px -14px rgba(255,160,77,.5); }
.loot:active { transform: scale(.99); }
.loot-icon { font-size: 1.4rem; filter: drop-shadow(0 0 8px rgba(255,160,77,.5)); }
.loot-body { flex: 1 1 auto; min-width: 0; }
.loot-name { display: block; font-weight: 600; font-size: .9rem; }
.loot-sub { display: block; font-size: .68rem; color: var(--text-dim); margin-top: 1px; }
.loot-code { font-family: var(--font-mono); font-weight: 700; font-size: .98rem; color: var(--ember); letter-spacing: .04em; }
.loot-copy { font-size: .66rem; color: var(--text-dim); border: 1px solid var(--line-soft); padding: 4px 9px; border-radius: 100px; transition: color .3s, border-color .3s; }
.loot:hover .loot-copy { color: var(--ember); border-color: var(--line); }
.loot.copied .loot-copy { color: var(--ok); border-color: rgba(123,214,106,.4); }

/* ---------- общие карточки ---------- */
.card { position: relative; border: 1px solid var(--line-soft); border-radius: var(--card-r); background: var(--panel); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* ---------- CONSOLE ---------- */
.console { overflow: hidden; }
.console-head { display: flex; align-items: center; gap: 11px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: rgba(8,5,3,.5); }
.console-key { font-size: .68rem; color: var(--bg); background: var(--ember); border-radius: 4px; padding: 1px 7px; font-weight: 700; }
.console-title { font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .02em; color: var(--ember); text-transform: uppercase; }
.console-body { padding: 16px 18px 8px; font-size: .82rem; line-height: 2.1; }
.console-body p { display: flex; align-items: baseline; gap: 8px; }
.c-prompt { color: var(--rust-bright); }
.c-key { color: var(--text-dim); flex: 1 1 auto; min-width: 0; }
.c-val { color: var(--text); font-weight: 500; white-space: nowrap; text-align: right; }
.c-val--hot { color: var(--ember); }
.c-hint { display: block; color: var(--text-dim); font-size: .72rem; padding: 4px 0 12px; }

/* ---------- BUL$ ---------- */
.buls { background: radial-gradient(120% 140% at 85% -20%, rgba(99,102,241,.24), transparent 55%), var(--buls-bg); border-color: rgba(99,102,241,.3); color: #e2e8f0; padding: 24px; overflow: hidden; }
.buls::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background-image: linear-gradient(rgba(99,102,241,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(99,102,241,.06) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(120% 100% at 50% 0%, black 30%, transparent 80%); -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, black 30%, transparent 80%); }
.buls > * { position: relative; }
.buls-tag { display: inline-block; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #a5b4fc; border: 1px solid rgba(99,102,241,.35); background: rgba(99,102,241,.1); padding: 5px 12px; border-radius: 100px; margin-bottom: 16px; }
.buls-brand { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.5rem,6.4vw,1.9rem); line-height: 1.1; color: #fff; }
.buls-s { color: var(--buls-indigo); }
.buls-opti { background: linear-gradient(100deg, var(--buls-indigo), var(--buls-violet)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.buls-slogan { margin-top: 10px; font-family: var(--font-display); font-weight: 700; font-size: .9rem; letter-spacing: .03em; text-transform: uppercase; color: #c7d2fe; }
.buls-text { margin-top: 10px; font-size: .88rem; color: #94a3b8; line-height: 1.6; }
.buls-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.bstat { text-align: center; padding: 12px 6px; border-radius: 14px; background: rgba(11,17,33,.85); border: 1px solid rgba(99,102,241,.2); }
.bstat-num { display: block; font-weight: 700; font-size: 1.02rem; color: #fff; }
.bstat:first-child .bstat-num { color: #34d399; }
.bstat:last-child .bstat-num { color: #fcd34d; }
.bstat-label { display: block; margin-top: 2px; font-size: .64rem; letter-spacing: .04em; color: #94a3b8; }
.buls-actions { display: flex; gap: 10px; margin-top: 20px; }
.btn { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 18px; border-radius: 13px; font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .04em; text-decoration: none; transition: transform .2s var(--ease-out), box-shadow .3s, background .3s, border-color .3s; }
.btn--buls { color: #fff; background: linear-gradient(120deg, var(--buls-indigo), var(--buls-violet)); box-shadow: 0 8px 28px -8px rgba(99,102,241,.55); }
.btn--buls:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -8px rgba(99,102,241,.7); }
.btn--ghost { flex: 0 1 auto; color: #c7d2fe; border: 1px solid rgba(88,101,242,.45); background: rgba(88,101,242,.1); }
.btn--ghost:hover { background: rgba(88,101,242,.22); border-color: var(--buls-blurple); transform: translateY(-2px); }

/* ---------- FOOTER ---------- */
.footer { text-align: center; padding: 18px 0 8px; font-size: .8rem; color: var(--text-dim); }
.footer-domain { font-size: .82rem; letter-spacing: .16em; color: var(--ember); margin-bottom: 8px; }
.footer-line a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); display: inline-block; padding: 4px 2px; }
.footer-line a:hover { color: var(--ember); }
.footer-credit { margin-top: 8px; font-size: .72rem; color: #8a7d6e; }
.footer-credit a { color: #a5b4fc; text-decoration: none; }

/* ---------- адаптив ---------- */
@media (max-width: 360px) {
  .readouts { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
