/* BIBIKA — стиль за логотипом BibikaUA: індиго, білий, помаранчевий, лавандовий */
:root {
  --bg-1: #5a55f2;
  --bg-2: #3f38dc;
  --bg-3: #2e27b8;
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.74);
  --ink-3: rgba(255, 255, 255, 0.5);
  --navy: #1d1a6b;
  --lav: #b9b4ff;
  --lav-2: #8f88f7;
  --orange: #ff8a1f;
  --orange-2: #ffb23f;
  --pink: #ff9ec4;
  --glass: rgba(255, 255, 255, 0.12);
  --glass-2: rgba(255, 255, 255, 0.2);
  --line: rgba(255, 255, 255, 0.22);
  --shadow: 0 14px 30px rgba(22, 16, 110, 0.35);
  --radius: 22px;
  --nav-h: 74px;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
/* сторінка цілком не прокручується й не пружинить — прокручується лише вміст розділів */
html { overscroll-behavior: none; }
body { position: fixed; inset: 0; overflow: hidden; }

body {
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg-2);
  background-image:
    radial-gradient(120% 70% at 50% 0%, var(--bg-1) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg-3));
  background-attachment: fixed;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
}

button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

.app {
  position: relative;
  max-width: 480px;
  /* у Telegram — висота, яку він сам віддає грі (не стрибає, коли вікно рухається) */
  height: var(--tg-viewport-stable-height, 100dvh);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ---------- Шапка ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 8px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 44px; height: 44px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(20, 14, 100, 0.4), inset 0 0 0 1px var(--line);
}
.brand strong { display: block; font-size: 20px; font-weight: 900; letter-spacing: -0.02em; line-height: 1; }
.brand strong em { font-style: normal; color: var(--orange); }
.brand small { font-size: 12px; color: var(--ink-2); font-weight: 700; }

.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--line);
  font-size: 18px;
}
.balance {
  display: flex; align-items: center; gap: 6px;
  height: 40px;
  padding: 0 14px 0 8px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--line);
  font-weight: 900;
}

.mini-coin {
  display: inline-block;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe2a8, var(--orange-2) 40%, var(--orange) 75%);
  box-shadow: inset 0 -2px 0 rgba(150, 60, 0, 0.35), 0 0 0 2px rgba(255, 255, 255, 0.25);
  position: relative;
  flex: none;
}
.mini-coin::after {
  content: "B";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 900; color: #fff;
  text-shadow: 0 1px 0 rgba(150, 60, 0, 0.5);
}
.mini-coin.lg { width: 34px; height: 34px; }
.mini-coin.lg::after { font-size: 18px; }

/* ---------- Вʼюхи ---------- */
.views { position: relative; flex: 1; min-height: 0; }
.view {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column;
  padding-bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom));
}
.view.active { display: flex; animation: view-in 0.25s ease; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } }

.scroll { overflow-y: auto; overscroll-behavior: contain; padding: 8px 16px 12px; flex: 1; }

/* ---------- Головна (тап) ---------- */
.ticker {
  margin: 4px 16px 0;
  padding: 10px 14px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(255, 138, 31, 0.28), rgba(255, 178, 63, 0.14));
  border: 1px solid rgba(255, 178, 63, 0.5);
  font-weight: 800;
  font-size: 13px;
  display: flex; align-items: center; gap: 10px;
  text-align: left;
}
.pulse {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 138, 31, 0.8);
  animation: pulse 1.4s infinite;
  flex: none;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(255, 138, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 138, 31, 0); }
}

.home-center {
  flex: 1;
  min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
}
.big-balance { display: flex; align-items: center; gap: 10px; }
.big-balance b { font-size: 44px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.per-tap { margin: 0 0 8px; color: var(--ink-2); font-weight: 700; font-size: 14px; }
.per-tap b { color: var(--orange-2); }

.coin-wrap {
  position: relative;
  width: min(68vw, 270px, 38dvh);
  aspect-ratio: 1;
  perspective: 600px;
}
.coin-glow {
  position: absolute; inset: -14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185, 180, 255, 0.55), transparent 65%);
  animation: glow 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glow { 50% { transform: scale(1.06); opacity: 0.7; } }

.tap-coin {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 50%;
  touch-action: manipulation;
  background:
    radial-gradient(circle at 50% 42%, #6f68f5 0%, #4b44df 62%, #3a33c9 100%);
  box-shadow:
    0 0 0 8px var(--orange-2),
    0 0 0 12px var(--orange),
    0 0 0 14px rgba(255, 255, 255, 0.25),
    0 22px 40px rgba(20, 12, 110, 0.55),
    inset 0 -10px 24px rgba(20, 12, 110, 0.4),
    inset 0 10px 24px rgba(255, 255, 255, 0.18);
  transition: transform 0.12s ease;
  will-change: transform;
}
.tap-coin:focus-visible { outline: 3px solid #fff; outline-offset: 18px; }
.mascot {
  position: absolute;
  left: 14%; top: 8%;
  width: 72%;
  filter: drop-shadow(0 8px 10px rgba(20, 12, 110, 0.4));
  pointer-events: none;
  animation: bob 2.6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-4px); } }
.coin-letter {
  position: absolute;
  left: 0; right: 0; bottom: 13%;
  text-align: center;
  font-weight: 900;
  font-size: clamp(26px, 9vw, 40px);
  letter-spacing: 0.04em;
  color: var(--orange-2);
  text-shadow: 0 3px 0 #b8520a, 0 6px 12px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.float-num {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  font-weight: 900;
  font-size: 26px;
  color: #fff;
  text-shadow: 0 2px 0 var(--orange), 0 4px 10px rgba(20, 12, 110, 0.5);
  animation: float-up 0.9s ease-out forwards;
}
@keyframes float-up {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  to { opacity: 0; transform: translate(-50%, -150px) scale(1.25); }
}

.combo {
  margin: 14px 0 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--orange);
  font-weight: 900;
  font-size: 14px;
  box-shadow: 0 6px 14px rgba(255, 138, 31, 0.45);
}

.energy { padding: 0 16px; }
.energy-row { display: flex; justify-content: space-between; font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.energy-row span { color: var(--ink-2); }
.bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(20, 12, 110, 0.35);
  border: 1px solid var(--line);
  overflow: hidden;
}
.bar i {
  display: block; height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
  transition: width 0.2s ease;
}

.home-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 12px 16px 0;
}
.home-stats div {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px 14px;
}
.home-stats span { display: block; font-size: 12px; color: var(--ink-2); font-weight: 700; }
.home-stats b { font-size: 20px; font-weight: 900; }

/* ---------- Гра ---------- */
.stage {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 4px 16px 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #17134d;
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  touch-action: none;
}
#game-canvas {
  display: block;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 180 / 320;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.hud {
  position: absolute; top: 10px; left: 10px; right: 10px;
  display: flex; gap: 8px; align-items: center;
  pointer-events: none;
}
.hud[hidden] { display: none; }
.hud-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 12px;
  border-radius: 12px;
  background: rgba(29, 26, 107, 0.7);
  border: 1px solid var(--line);
  font-weight: 900;
  font-size: 15px;
}
.hud-chip .mini-coin { width: 18px; height: 18px; }
.hud-chip .mini-coin::after { font-size: 10px; }
.hud-chip.btn { margin-left: auto; pointer-events: auto; font-size: 12px; }

.overlay {
  position: absolute; inset: 0;
  display: none; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(23, 19, 77, 0.55);
  backdrop-filter: blur(2px);
}
.overlay.show { display: flex; }
.panel {
  width: 100%; max-width: 320px;
  text-align: center;
  padding: 22px 18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #5a55f2, #3f38dc);
  border: 2px solid var(--line);
  box-shadow: var(--shadow), 0 0 0 4px rgba(29, 26, 107, 0.5);
}
.panel h2 {
  margin: 6px 0 10px;
  font-family: "Press Start 2P", monospace;
  font-size: 22px;
  color: var(--orange-2);
  text-shadow: 0 3px 0 #b8520a;
}
.panel p { margin: 8px 0; color: var(--ink-2); font-weight: 700; font-size: 14px; line-height: 1.45; }
.panel b { color: #fff; }
.legend { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; font-weight: 800; font-size: 14px; }
.controls { font-size: 12px !important; color: var(--ink-3) !important; }
.record { font-size: 13px !important; }
.result { display: grid; gap: 6px; margin: 12px 0; }
.result p {
  display: flex; justify-content: space-between;
  margin: 0; padding: 8px 12px;
  border-radius: 12px;
  background: rgba(29, 26, 107, 0.35);
}

.kicker {
  margin: 0;
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lav);
}

.pixel-btn {
  margin-top: 10px;
  padding: 14px 26px;
  font-family: "Press Start 2P", monospace;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(180deg, var(--orange-2), var(--orange));
  border-radius: 14px;
  box-shadow: 0 5px 0 #b8520a, 0 10px 20px rgba(255, 138, 31, 0.35);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.pixel-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #b8520a; }
.pixel-btn:disabled { filter: grayscale(0.7) brightness(0.8); cursor: default; transform: none; }
.pixel-btn.wide { display: block; width: 100%; margin: 16px 0 6px; }

/* ---------- Завдання / Лістинг ---------- */
.page-title { margin: 6px 0 4px; font-size: 30px; font-weight: 900; letter-spacing: -0.02em; }
.lead { margin: 0 0 14px; color: var(--ink-2); font-weight: 700; }

.task-list { display: grid; gap: 10px; }
.task {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--line);
}
.task.done { opacity: 0.55; }
.task-ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(185, 180, 255, 0.25);
  font-size: 22px;
}
.task h4 { margin: 0; font-size: 15px; font-weight: 900; }
.task .reward { font-size: 13px; color: var(--orange-2); font-weight: 900; }
.task .prog { margin-top: 6px; height: 6px; border-radius: 999px; background: rgba(20, 12, 110, 0.35); overflow: hidden; }
.task .prog i { display: block; height: 100%; background: var(--lav); border-radius: inherit; }
.task .prog-text { font-size: 11px; color: var(--ink-3); font-weight: 800; }
.task-btn {
  min-width: 84px;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 13px;
  background: var(--glass-2);
  color: var(--ink-2);
}
.task-btn.ready {
  background: linear-gradient(180deg, var(--orange-2), var(--orange));
  color: #fff;
  box-shadow: 0 4px 0 #b8520a;
}
.task-btn.ready:active { transform: translateY(3px); box-shadow: 0 1px 0 #b8520a; }
.task-btn:disabled { cursor: default; }

.section-k { margin: 18px 0 8px; }
.task .left { font-size: 11px; color: var(--pink); font-weight: 800; }

.ref-card {
  background: linear-gradient(150deg, rgba(185, 180, 255, 0.3), var(--glass) 60%);
  border-color: rgba(185, 180, 255, 0.55);
}
.ref-card .hl { color: var(--orange-2); }
.ref-link { display: flex; gap: 8px; margin: 12px 0; }
.ref-link[hidden] { display: none; }
.ref-link input {
  flex: 1; min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(29, 26, 107, 0.45);
  color: #fff;
  font: 700 13px "Nunito", sans-serif;
  user-select: all;
  -webkit-user-select: all;
}
.ref-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.ref-stats div { padding: 8px 10px; border-radius: 12px; background: rgba(29, 26, 107, 0.35); }
.ref-stats span { display: block; font-size: 11px; color: var(--ink-2); font-weight: 800; }
.ref-stats b { font-size: 18px; font-weight: 900; white-space: nowrap; }
.ref-stats b span { display: inline; font-size: inherit; color: inherit; }
.ref-card .prog { height: 8px; border-radius: 999px; background: rgba(20, 12, 110, 0.35); overflow: hidden; }
.ref-card .prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), var(--orange-2)); border-radius: inherit; }
.ref-note { margin-top: 8px !important; font-size: 12px; }
.ref-offline { margin-top: 8px !important; font-size: 12px; color: var(--pink) !important; }
.ref-card .pixel-btn.wide { margin: 12px 0 0; }

.card {
  padding: 16px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
}
.card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.card p { margin: 0; color: var(--ink-2); font-weight: 600; line-height: 1.5; }
.hero-card {
  background: linear-gradient(140deg, rgba(255, 178, 63, 0.3), rgba(255, 138, 31, 0.12) 50%, var(--glass));
  border-color: rgba(255, 178, 63, 0.55);
}
.hero-num {
  margin: 0 !important;
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  color: var(--orange-2) !important;
  text-shadow: 0 4px 0 #b8520a;
  letter-spacing: -0.03em;
}
.split { margin-top: 14px; height: 14px; border-radius: 999px; background: rgba(20, 12, 110, 0.35); overflow: hidden; }
.split i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--orange), var(--orange-2)); }
.split-legend { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; font-weight: 800; color: var(--ink-2); }

.mystery {
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(29, 26, 107, 0.45);
  text-align: center;
}
.mystery span { display: block; font-family: "Press Start 2P", monospace; font-size: 22px; color: var(--orange-2); letter-spacing: 0.05em; }
.mystery small { display: block; margin-top: 8px; font-size: 12px; font-weight: 800; color: var(--ink-3); }

.urgent { border-color: rgba(255, 138, 31, 0.6); }
.rules-card { border-color: rgba(255, 92, 92, 0.55); }
.rules { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.rules li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(29, 26, 107, 0.45);
  font-size: 14px; font-weight: 700; color: var(--ink-2); line-height: 1.4;
}
.rules li b { color: #fff; }
.rule-ico { flex: none; font-size: 18px; line-height: 1.2; }
.rules-note { margin-top: 10px; font-size: 12px !important; color: var(--ink-3) !important; }
.my-bal { display: flex; align-items: center; gap: 10px; font-weight: 900 !important; color: #fff !important; font-size: 18px; }
.my-bal b { font-size: 28px; }
.fine { text-align: center; font-size: 12px; color: var(--ink-3); font-weight: 700; }

/* ---------- Нижнє меню ---------- */
.nav {
  position: absolute;
  left: 12px; right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  height: var(--nav-h);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 30px rgba(20, 12, 110, 0.45);
  z-index: 10;
}
.nav-btn {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  border-radius: 18px;
  color: #7d78c9;
  font-weight: 900;
  font-size: 12px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-btn svg { width: 26px; height: 26px; }
.nav-btn.active {
  color: #fff;
  background: linear-gradient(180deg, #5a55f2, #3f38dc);
  box-shadow: 0 6px 14px rgba(63, 56, 220, 0.4);
}
.nav-btn .dot {
  position: absolute; top: 8px; right: calc(50% - 20px);
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--orange);
  border: 2px solid #fff;
}
.nav-btn .dot[hidden] { display: none; }

.toast {
  position: fixed;
  left: 50%; top: calc(70px + env(safe-area-inset-top));
  transform: translateX(-50%);
  z-index: 60;
  padding: 10px 16px;
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  font-weight: 900;
  box-shadow: var(--shadow);
  animation: toast 2.2s ease forwards;
  white-space: nowrap;
}
@keyframes toast {
  0% { opacity: 0; transform: translate(-50%, -10px); }
  10%, 80% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -10px); }
}

@media (max-height: 640px) {
  .big-balance b { font-size: 34px; }
  .home-stats { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .coin-glow, .mascot, .pulse { animation: none; }
}

/* ---------- Закріплені спецзавдання ---------- */
.task.pinned {
  border-color: rgba(255, 178, 63, 0.7);
  background: linear-gradient(140deg, rgba(255, 178, 63, 0.22), var(--glass) 60%);
}
.task .pin { font-size: 11px; font-weight: 900; color: var(--orange-2); }

/* ---------- Реєстрація / вхід ---------- */
.auth {
  position: absolute; inset: 0;
  z-index: 40;
  display: flex; align-items: center; justify-content: center;
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background:
    radial-gradient(120% 70% at 50% 0%, var(--bg-1) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg-3));
}
.auth[hidden], .sheet[hidden] { display: none; }
.auth-box { width: 100%; max-width: 360px; text-align: center; }
.auth-logo {
  width: 132px; height: 132px;
  border-radius: 32px;
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
}
.auth-sub { margin: 12px 0 16px; color: var(--ink-2); font-weight: 800; line-height: 1.4; }

.tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 4px; margin-bottom: 14px;
  border-radius: 16px;
  background: rgba(29, 26, 107, 0.4);
  border: 1px solid var(--line);
}
.tabs[hidden] { display: none; }
.tabs button { padding: 10px; border-radius: 12px; font-weight: 900; color: var(--ink-2); }
.tabs button.on { background: #fff; color: var(--navy); }

.auth-form { display: grid; gap: 12px; text-align: left; }
.auth-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 800; color: var(--ink-2); }
.auth-form input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(29, 26, 107, 0.45);
  color: #fff;
  font: 800 16px "Nunito", sans-serif;
  user-select: text; -webkit-user-select: text;
}
.auth-form input:focus { outline: 2px solid var(--orange-2); outline-offset: 1px; }
.auth-form input[readonly] { opacity: 0.75; }
.auth-form .f-login { display: none; }
.auth-form.login .f-reg { display: none; }
.auth-form.login .f-login, .auth-form.link .f-login { display: grid; }
.auth-form.link .f-reg { display: none; }
.tg-in, .pass-in { position: relative; display: block; }
.tg-in i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 900; color: var(--lav); }
.tg-in input { padding-left: 32px; }
.pass-in input { padding-right: 48px; }
.pass-in button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 10px; }
.auth-form .err { margin: 0; color: #ffd0de; font-weight: 800; font-size: 14px; }
.auth-form .pixel-btn.wide { margin: 4px 0 0; }
.auth-note { margin: 14px 0 0; font-size: 12px; color: var(--ink-3); font-weight: 700; line-height: 1.45; }
.auth-note button { color: var(--orange-2); font-weight: 900; text-decoration: underline; }

/* ---------- Вікно акаунта ---------- */
.sheet {
  position: absolute; inset: 0;
  z-index: 35;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 16px;
  background: rgba(23, 19, 77, 0.6);
}
.sheet-box {
  width: 100%;
  padding: 20px 18px calc(18px + env(safe-area-inset-bottom));
  border-radius: 26px;
  background: linear-gradient(180deg, #5a55f2, #3f38dc);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  animation: view-in 0.2s ease;
}
.sheet-box h3 { margin: 6px 0 2px; font-size: 24px; font-weight: 900; }
.acc-email { margin: 0 0 12px; color: var(--ink-2); font-weight: 700; word-break: break-all; }
.acc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(29, 26, 107, 0.4);
  font-weight: 800;
}
.acc-row b.ok { color: #b8ffcb; }
.acc-note { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); font-weight: 700; line-height: 1.45; }
.sheet-actions { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.sheet-actions .pixel-btn { margin: 0; flex: 1; }
.ghost-btn {
  padding: 13px 18px; border-radius: 14px;
  background: var(--glass-2); border: 1px solid var(--line);
  font-weight: 900;
}

/* ---------- Мова ---------- */
.lang-btn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 40px; padding: 0 10px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--line);
  font-weight: 900; font-size: 13px;
}
.lang-btn svg { width: 18px; height: 18px; }
.auth-lang { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 16px; z-index: 2; }
.lang-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.lang-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; border-radius: 14px;
  background: rgba(29, 26, 107, 0.4);
  border: 1px solid var(--line);
  font-weight: 800; text-align: left;
}
.lang-opt .tag {
  flex: none; min-width: 32px; padding: 3px 6px;
  border-radius: 8px; text-align: center;
  background: var(--glass-2); font-size: 11px; font-weight: 900;
}
.lang-opt.on { background: #fff; color: var(--navy); border-color: #fff; }
.lang-opt.on .tag { background: var(--orange); color: #fff; }

/* ---------- Акаунт: звук і мова ---------- */
.acc-btn { width: 100%; margin-top: 8px; text-align: left; }
.acc-btn > span { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Лістинг ---------- */
.secret-card .mystery { position: relative; }
.shh { display: block; font-size: 34px; line-height: 1; margin-bottom: 8px; animation: shh 2.4s ease-in-out infinite; }
@keyframes shh { 50% { transform: rotate(-8deg) scale(1.08); } }

@media (max-width: 380px) {
  .brand > div { display: none; }
}
@media (prefers-reduced-motion: reduce) { .shh { animation: none; } }

/* ---------- Лістинг стартував: гаманець ---------- */
.live-card {
  border-color: rgba(124, 255, 154, 0.6);
  background: linear-gradient(140deg, rgba(124, 255, 154, 0.22), var(--glass) 60%);
}
.wallet-form { display: grid; gap: 8px; margin-top: 12px; }
.wallet-form label { font-size: 13px; font-weight: 800; color: var(--ink-2); }
.wallet-form input, .appeal textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(29, 26, 107, 0.45);
  color: #fff;
  font: 700 14px "Nunito", sans-serif;
  user-select: text; -webkit-user-select: text;
}
.wallet-form input:focus, .appeal textarea:focus { outline: 2px solid var(--orange-2); outline-offset: 1px; }
.wallet-form .pixel-btn.wide { margin: 4px 0 0; }
.err { margin: 0; color: #ffd0de; font-weight: 800; font-size: 13px; }
.wallet-saved { display: grid; gap: 8px; margin-top: 12px; padding: 12px; border-radius: 14px; background: rgba(29, 26, 107, 0.4); }
.wallet-saved span { font-size: 12px; font-weight: 800; color: var(--ink-2); }
.wallet-saved code { font: 700 12px ui-monospace, Consolas, monospace; word-break: break-all; color: #b8ffcb; }
.wallet-saved .ghost-btn { justify-self: start; padding: 8px 14px; }

/* ---------- Екрани бану й перевірки ---------- */
.block-screen {
  position: absolute; inset: 0;
  z-index: 45;
  display: flex; align-items: center; justify-content: center;
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background:
    radial-gradient(120% 70% at 50% 0%, var(--bg-1) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg-3));
}
.block-screen[hidden] { display: none; }
.block-box { width: 100%; max-width: 380px; text-align: center; }
.block-ico {
  width: 96px; height: 96px; margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 30px;
  font-size: 48px;
  box-shadow: var(--shadow);
}
.block-ico.ban { background: linear-gradient(180deg, #ff6b81, #e5484d); }
.block-ico.review { background: linear-gradient(180deg, var(--orange-2), var(--orange)); }
.block-box h2 { margin: 0 0 8px; font-size: 26px; font-weight: 900; }
.block-box > p { margin: 0 0 14px; color: var(--ink-2); font-weight: 700; line-height: 1.5; }
.block-info { display: grid; gap: 6px; margin-bottom: 14px; text-align: left; }
.block-info p {
  display: grid; gap: 2px; margin: 0;
  padding: 10px 14px; border-radius: 14px;
  background: rgba(29, 26, 107, 0.45);
}
.block-info span { font-size: 12px; font-weight: 800; color: var(--ink-3); }
.block-info b { font-weight: 900; }
.appeal { display: grid; gap: 8px; text-align: left; padding: 14px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); }
.appeal h3 { margin: 0; font-size: 17px; font-weight: 900; }
.appeal p { margin: 0; color: var(--ink-2); font-weight: 700; font-size: 13px; line-height: 1.45; }
.appeal textarea { resize: vertical; min-height: 90px; }
.appeal .pixel-btn.wide { margin: 4px 0 0; }
.appeal-status { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); font-weight: 800; }

.wallet-form[hidden], .wallet-saved[hidden], .appeal[hidden], .appeal-status[hidden] { display: none; }

/* власна картинка-іконка спецзавдання */
.task-ico { overflow: hidden; }
.task-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Повідомлення після розбану ---------- */
#notice { z-index: 50; align-items: center; }
.notice-box { text-align: center; max-width: 380px; }
.block-ico.unban { background: linear-gradient(180deg, #5fe39a, #12a150); }
.notice-msg { margin: 14px 0 4px; padding: 12px 14px; border-radius: 14px; background: rgba(29, 26, 107, 0.45); text-align: left; }
.notice-msg[hidden] { display: none; }
.notice-msg span { font-size: 12px; font-weight: 800; color: var(--ink-3); }
.notice-msg p { margin: 4px 0 0; font-weight: 800; white-space: pre-wrap; word-break: break-word; }
.notice-box .pixel-btn.wide { margin-top: 14px; }
