:root {
  --bg: #0e1117;
  --panel: #161b26;
  --panel-2: #1b2130;
  --panel-3: #212939;
  --border: #232a38;
  --border-2: #2f3849;
  --text: #e9edf4;
  --muted: #8b95a9;
  --faint: #5d6779;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.13);
  --up: #26a69a;
  --up-soft: rgba(38, 166, 154, 0.13);
  --down: #ef5350;
  --down-soft: rgba(239, 83, 80, 0.13);
  --gold: #f0b90b;
  --gold-soft: rgba(240, 185, 11, 0.13);
  --radius: 14px;
  --font-body: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --font-mono: 'Roboto Mono', ui-monospace, 'SF Mono', monospace;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

svg { display: block; }
::selection { background: var(--accent-soft); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--panel-3); border-radius: 99px; }
[hidden] { display: none !important; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- login ---------- */

.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }

.login-card {
  width: min(460px, 100%);
  padding: 32px 26px 28px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
  text-align: center;
}
.login-card .rules-body,
.login-card .check,
.login-card .login-step { text-align: left; }

.login-logo { width: 80px; height: 80px; margin: 0 auto 20px; }
.login-logo svg { width: 100%; height: 100%; }

.login-card h1 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.login-card h1 em { font-style: normal; color: var(--accent); }
.login-sub { margin: 12px 0 24px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.login-actions { display: grid; gap: 10px; }

.login-warning {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 11px;
  background: var(--gold-soft);
  border: 1px solid rgba(240, 185, 11, 0.35);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: left;
}

.login-note { margin-top: 16px; color: var(--faint); font-size: 12px; line-height: 1.55; }

/* ---------- login rules ---------- */

.rules-card {
  margin-top: 20px;
  border-radius: 16px;
  background: var(--panel-2);
  border: 1px solid var(--border-2);
  overflow: hidden;
}
.rules-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 10px 0;
}
.rules-tab {
  flex: 1;
  padding: 9px 8px;
  border: 0;
  border-radius: 10px 10px 0 0;
  background: none;
  color: var(--faint);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.rules-tab.active {
  color: #fff;
  border-bottom-color: var(--accent);
  background: rgba(255, 255, 255, 0.03);
}
.rules-body {
  position: relative;
  max-height: 182px;
  overflow-y: auto;
  padding: 14px 15px 16px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.62;
}
.rules-body::after {
  content: '';
  position: sticky;
  display: block;
  bottom: -16px;
  height: 26px;
  margin: 0 -15px -16px;
  background: linear-gradient(to top, var(--panel-2), transparent);
  pointer-events: none;
}
.rule-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.rule-row:first-child { padding-top: 0; }
.rule-row:last-child { padding-bottom: 0; border-bottom: 0; }
.rule-ico {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.28);
}
.rule-ico svg { width: 15px; height: 15px; }
.rule-main { flex: 1; min-width: 0; }
.rule-main b { display: block; font-size: 13px; font-weight: 800; color: var(--text); margin-bottom: 3px; }
.rule-main span { display: block; color: var(--muted); font-size: 12px; line-height: 1.55; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 12px;
  padding: 12px 13px;
  border-radius: 13px;
  background: var(--panel-2);
  border: 1px solid var(--border-2);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check i {
  position: relative;
  width: 21px;
  height: 21px;
  flex: none;
  margin-top: 1px;
  border-radius: 7px;
  border: 1.5px solid var(--border-2);
  background: var(--panel-3);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.check i::after {
  content: '';
  position: absolute;
  left: 6.5px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid #10131a;
  border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg) scale(0.4);
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.check span { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.check span b { color: var(--text); }
.check input:checked + i {
  background: linear-gradient(140deg, #fbbf24, #e08a3c);
  border-color: rgba(255, 220, 160, 0.7);
}
.check input:checked + i::after { opacity: 1; transform: rotate(45deg) scale(1); }
.check:has(input:checked) { border-color: rgba(224, 138, 60, 0.45); background: rgba(224, 138, 60, 0.07); }

.login-step {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.step-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
}
.step-num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 9px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.5);
}
.step-head b { display: block; font-size: 14.5px; font-weight: 800; }
.step-head div > span { display: block; color: var(--faint); font-size: 11.5px; margin-top: 1px; }
.step-head div > span.ok { color: var(--up); }

.rules-foot {
  padding: 9px 15px 11px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 10.5px;
  font-family: var(--font-mono);
}

.check { margin-top: 10px; }
.check span { display: grid; gap: 2px; }
.check span b { font-size: 13px; font-weight: 800; color: var(--text); }
.check span small { color: var(--faint); font-size: 11px; line-height: 1.4; }

.login-actions { position: relative; display: grid; gap: 10px; }
.login-actions[data-locked="1"] .btn {
  opacity: 0.32;
  filter: grayscale(0.55);
  pointer-events: none;
}
.login-actions .btn { animation: none; }
.login-actions[data-locked="0"] .btn {
  animation: loginUnlock 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.login-actions[data-locked="0"] .btn:nth-child(2) { animation-delay: 0.06s; }
@keyframes loginUnlock {
  from { opacity: 0.32; transform: translateY(6px); }
}

.login-tip {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
  background: var(--panel-2);
  border: 1px solid var(--border);
}
.login-tip::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: 1px;
}

/* ---------- layout ---------- */

.app { min-height: 100vh; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(14, 17, 23, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.burger {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  flex: none;
  transition: background 0.2s, border-color 0.2s;
}

.burger:hover { background: var(--panel-2); border-color: var(--border-2); }
.burger:active { transform: scale(0.95); }
.burger svg { width: 20px; height: 20px; }

.top-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.side-logo {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: #fff;
  background: var(--accent);
  flex: none;
}

.side-logo svg { width: 16px; height: 16px; }

.balance-chip {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--gold);
  min-width: 0;
}

.balance-chip svg { width: 15px; height: 15px; flex: none; }
.balance-chip b { font-family: var(--font-mono); font-size: 13px; font-weight: 600; white-space: nowrap; }
.balance-chip.flash { animation: chipFlash 0.5s ease; }
@keyframes chipFlash { 30% { border-color: var(--gold); } }

.avatar-btn { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; flex: none; }

.avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--panel-3);
  border: 1px solid var(--border-2);
  font-weight: 800;
  font-size: 14px;
  color: var(--muted);
  flex: none;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.avatar.lg { width: 84px; height: 84px; font-size: 30px; }
.avatar.md { width: 44px; height: 44px; font-size: 16px; }

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: flex;
  padding: 6px 6px calc(6px + var(--safe-b));
  background: rgba(14, 17, 23, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
}

.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
  min-width: 0;
  padding: 7px 2px 6px;
  border: 0;
  background: none;
  color: var(--faint);
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}

.tab svg { width: 21px; height: 21px; flex: none; }
.tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tab.active { color: var(--accent); }
.tab.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 2px;
  border-radius: 0 0 4px 4px;
  background: var(--accent);
}
.tab:active { transform: scale(0.95); }

.screen { max-width: 1040px; margin: 0 auto; padding: 14px 12px 108px; }
.page { animation: pageIn 0.35s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- drawer ---------- */

.drawer-wrap { position: fixed; inset: 0; z-index: 100; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(5, 7, 10, 0.6); animation: fadeIn 0.25s ease both; }

.drawer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(280px, 82vw);
  display: flex;
  flex-direction: column;
  background: #12161f;
  border-right: 1px solid var(--border);
  box-shadow: 24px 0 60px -30px rgba(0, 0, 0, 1);
  animation: drawerIn 0.28s cubic-bezier(0.2, 0.8, 0.3, 1) both;
  overflow-y: auto;
}

@keyframes drawerIn { from { transform: translateX(-100%); } }
@keyframes fadeIn { from { opacity: 0; } }

.drawer-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 16px 16px;
  border-bottom: 1px solid var(--border);
}

.drawer-head b { display: block; font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: -0.02em; }
.drawer-head span { display: block; color: var(--faint); font-size: 11px; margin-top: 1px; }

.drawer-nav { display: grid; gap: 2px; padding: 10px 8px; flex: 1; }

.drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.drawer-item svg { width: 19px; height: 19px; flex: none; }
.drawer-item:hover { background: var(--panel); color: var(--text); }
.drawer-item.active { background: var(--accent-soft); color: var(--accent); }

.drawer-sep {
  margin: 8px 12px 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

.drawer-foot { padding: 12px 16px calc(16px + var(--safe-b)); border-top: 1px solid var(--border); }
.drawer-user { display: flex; align-items: center; gap: 11px; }
.drawer-user b { display: block; font-size: 13.5px; }
.drawer-user span { display: block; color: var(--faint); font-size: 11.5px; }

/* ---------- pieces ---------- */

.page-head { margin-bottom: 14px; }
.page-head h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.page-head p { color: var(--muted); font-size: 12.5px; margin-top: 3px; }

.card {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
  min-width: 0;
}

.card + .card, .card + .grid, .grid + .card, .card + .list, .list + .card, .card + .section-title, .list + .section-title, .grid + .section-title, .section-title + .card { margin-top: 12px; }

.section-title {
  margin: 20px 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.link {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--accent);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.link:hover { opacity: 0.8; }

.hero-card {
  position: relative;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
}

.hero-label { font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }

.hero-value {
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 6.5vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.hero-value .unit { font-size: 0.45em; color: var(--muted); margin-left: 6px; }
.hero-row { display: flex; gap: 18px; margin-top: 14px; flex-wrap: wrap; }
.hero-stat { font-size: 12px; color: var(--muted); min-width: 0; }
.hero-stat b { display: block; color: var(--text); font-size: 14.5px; font-weight: 700; font-family: var(--font-mono); margin-top: 2px; }
.hero-stat b.up, .num.up { color: var(--up); }
.hero-stat b.down, .num.down { color: var(--down); }

.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.quick-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: inherit;
  min-width: 0;
  transition: background 0.2s, border-color 0.2s;
}

.quick-tile:hover { background: var(--panel-2); border-color: var(--border-2); }
.quick-tile:active { background: var(--panel-3); }
.quick-tile .menu-icon { width: 38px; height: 38px; border-radius: 10px; }
.quick-tile .menu-icon svg { width: 18px; height: 18px; }
.quick-text { flex: 1; min-width: 0; }
.quick-text b { display: block; font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick-text span { display: block; color: var(--faint); font-size: 11px; font-weight: 600; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.index-card { padding: 16px; }
.index-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.index-value { font-family: var(--font-mono); font-size: 1.8rem; font-weight: 700; letter-spacing: -0.02em; }
.index-label { font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.index-change { font-family: var(--font-mono); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.index-change svg { width: 14px; height: 14px; }

.grid { display: grid; gap: 10px; min-width: 0; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.auto { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
  text-align: center;
  min-width: 0;
  transition: background 0.18s, border-color 0.18s, opacity 0.18s, transform 0.12s;
}

.btn svg { width: 16px; height: 16px; flex: none; }
.btn:active { transform: scale(0.985); }

.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: #4b8df8; }

.btn.ghost { background: var(--panel); border-color: var(--border-2); color: var(--text); }
.btn.ghost:hover { background: var(--panel-2); }

.btn.small { padding: 8px 13px; font-size: 12px; border-radius: 9px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.buy { background: var(--up); color: #fff; }
.btn.buy:hover { background: #2bb8ab; }
.btn.sell { background: var(--down); color: #fff; }
.btn.sell:hover { background: #f26663; }

.pill-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 11px; background: var(--bg); border: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; min-width: 0; }
.pill-tabs::-webkit-scrollbar { display: none; }

.pill {
  flex: none;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.pill.active { color: #fff; background: var(--accent); }

.list { display: grid; gap: 6px; min-width: 0; }

.row-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
  transition: background 0.2s, border-color 0.2s;
}

.row-item:hover { background: var(--panel-2); border-color: var(--border-2); }
.row-item:active { background: var(--panel-3); }
.row-item.static { cursor: default; }
.row-item.static:hover { background: var(--panel); border-color: var(--border); }

.row-item.trend-up { border-left: 2px solid var(--up); }
.row-item.trend-down { border-left: 2px solid var(--down); }
.row-item.delist { border-left: 2px solid var(--gold); }
.row-item.anim { animation: rowIn 0.4s ease both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes rowIn { from { opacity: 0; transform: translateY(10px); } }

.row-item > svg { width: 16px; height: 16px; flex: none; color: var(--faint); }

.logo-badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  overflow: hidden;
  flex: none;
  border: 1px solid var(--border-2);
  background: var(--panel-2);
}

.logo-badge svg { width: 100%; height: 100%; display: block; }
.logo-badge.lg { width: 52px; height: 52px; border-radius: 13px; }

.emoji-badge, .ticker-badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--panel-2);
  border: 1px solid var(--border-2);
  font-size: 19px;
  flex: none;
}

.ticker-badge.text { font-family: var(--font-mono); font-size: 10px; font-weight: 700; }

.row-main { flex: 1; min-width: 0; }
.row-main b { display: block; font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main span { display: block; color: var(--faint); font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }

.row-side { text-align: right; flex: none; }
.row-side b { display: block; font-size: 13.5px; font-weight: 700; font-family: var(--font-mono); }
.row-side span { font-size: 11.5px; font-weight: 700; font-family: var(--font-mono); }
.row-side span.up { color: var(--up); }
.row-side span.down { color: var(--down); }

.spark { width: 54px; height: 26px; flex: none; }
.spark canvas { width: 100%; height: 100%; display: block; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 800;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--muted);
  max-width: 100%;
  white-space: nowrap;
}

.badge svg { width: 12px; height: 12px; flex: none; }
.badge.up { color: var(--up); border-color: rgba(38, 166, 154, 0.4); background: var(--up-soft); }
.badge.down { color: var(--down); border-color: rgba(239, 83, 80, 0.4); background: var(--down-soft); }
.badge.gold { color: var(--gold); border-color: rgba(240, 185, 11, 0.4); background: var(--gold-soft); }
.badge.new { color: var(--accent); border-color: rgba(59, 130, 246, 0.45); background: var(--accent-soft); }
.badge.delist { color: var(--gold); border-color: rgba(240, 185, 11, 0.45); background: var(--gold-soft); }

.stat-mini { padding: 13px; border-radius: 12px; background: var(--panel); border: 1px solid var(--border); min-width: 0; }
.stat-mini span { display: block; font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.stat-mini b { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 1rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ticker-line { display: flex; overflow: hidden; }
.ticker-line > div { display: flex; animation: tick 34s linear infinite; white-space: nowrap; }
.ticker-line span { display: inline-flex; align-items: center; gap: 6px; margin-right: 20px; font-size: 11.5px; font-weight: 700; color: var(--muted); font-family: var(--font-mono); }
.ticker-line span b { color: var(--text); }
@keyframes tick { to { transform: translateX(-50%); } }

.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border-2);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 600;
  outline: 0;
  min-width: 0;
  transition: border-color 0.2s;
}

.input:focus { border-color: var(--accent); }
select.input { appearance: none; font-family: var(--font-body); font-weight: 700; }

.stepper { display: flex; align-items: center; gap: 8px; }

.stepper button {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 10px;
  border: 1px solid var(--border-2);
  background: var(--panel-2);
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s;
}

.stepper button:hover { background: var(--panel-3); }
.stepper button:active { transform: scale(0.95); }

/* ---------- trade ---------- */

.seg { display: flex; gap: 4px; padding: 4px; border-radius: 11px; background: var(--bg); border: 1px solid var(--border); }
.seg button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-family: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; transition: background 0.2s, color 0.2s; }
.seg button svg { width: 15px; height: 15px; }
.seg button.active.buy { background: var(--up); color: #fff; }
.seg button.active.sell { background: var(--down); color: #fff; }
.seg.compact { border-radius: 9px; padding: 3px; }
.seg.compact button { padding: 7px 8px; font-size: 11.5px; font-weight: 700; border-radius: 7px; }
.seg.compact button.active { background: var(--panel-3); color: var(--text); }

.qty-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }

.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 99px; background: var(--border-2); outline: 0; margin: 18px 0 4px; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); cursor: pointer; }
.slider::-moz-range-thumb { width: 18px; height: 18px; border: 3px solid var(--bg); border-radius: 50%; background: var(--accent); cursor: pointer; }

.trade-summary { display: grid; gap: 8px; margin: 16px 0; }
.ts-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ts-row b { color: var(--text); font-weight: 700; font-family: var(--font-mono); }
.ts-row b.up { color: var(--up); }
.ts-row b.down { color: var(--down); }
.ts-row.total { padding-top: 10px; border-top: 1px solid var(--border); font-size: 13.5px; }
.ts-row.total b { font-size: 15.5px; }
.ts-bar { flex: 1; height: 4px; border-radius: 99px; background: var(--border-2); overflow: hidden; max-width: 130px; }
.ts-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width 0.3s; }

/* ---------- positions ---------- */

.pos-card { display: grid; gap: 11px; padding: 14px; border-radius: 13px; background: var(--panel); border: 1px solid var(--border); cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.pos-card:hover { background: var(--panel-2); border-color: var(--border-2); }
.pos-card.anim { animation: rowIn 0.4s ease both; animation-delay: calc(var(--i, 0) * 35ms); }
.pos-head { display: flex; align-items: center; gap: 12px; }
.pos-lines { display: grid; gap: 3px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.pos-lines b { color: var(--text); font-weight: 700; font-family: var(--font-mono); }
.pos-share { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--faint); font-weight: 700; }

/* ---------- chart ---------- */

.chart-card { padding: 14px 12px 8px; }
.chart-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 8px; padding: 0 4px; }
.chart-top .price { font-family: var(--font-mono); font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; }
.chart-top .change { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 800; font-family: var(--font-mono); }
.chart-top .change svg { width: 15px; height: 15px; flex: none; }
.chart-top svg, .chart-legend svg, .ohlc-bar svg { width: 15px; height: 15px; flex: none; }
.tf-row { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.tf-tabs {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tf-tabs::-webkit-scrollbar { display: none; }
.tf-tabs .pill { flex: none; white-space: nowrap; }

.chart-wrap { position: relative; }
.chart-wrap canvas { width: 100%; height: 250px; display: block; touch-action: none; }
.chart-legend { display: flex; justify-content: space-between; gap: 10px; color: var(--faint); font-size: 10.5px; font-weight: 700; padding: 6px 4px 0; font-family: var(--font-mono); }

.ohlc-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 4px 4px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--faint);
}

.ohlc-bar b { color: var(--muted); }

/* ---------- profile ---------- */

.profile-card { padding: 0; overflow: hidden; }
.profile-cover {
  position: relative;
  height: 150px;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.18), transparent 90%),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255, 255, 255, 0.03) 39px 40px),
    var(--panel-2);
  background-size: cover;
  background-position: center;
}

.profile-cover.has-image { background-color: #05070b; }

.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(9, 11, 16, 0.78));
  pointer-events: none;
}

.cover-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 10px;
  background: rgba(10, 12, 18, 0.75);
  border: 1px solid var(--border-2);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.2s;
}

.cover-btn:hover { border-color: var(--accent); }
.cover-btn svg { width: 14px; height: 14px; }

.profile-name { display: flex; align-items: center; gap: 8px; }
.profile-name-text { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.level-block { margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--border); }

.level-row { display: flex; align-items: center; gap: 12px; }

.level-badge {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #fff;
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  box-shadow: 0 10px 24px -12px var(--accent-glow);
  flex: none;
}

.level-info { flex: 1; min-width: 0; }
.level-info b { display: block; font-size: 14px; font-weight: 800; }
.level-info span { display: block; color: var(--faint); font-size: 11.5px; margin-top: 2px; font-family: var(--font-mono); }
.level-next { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--border-2); border-radius: 8px; padding: 4px 8px; flex: none; }

.level-bar { height: 8px; border-radius: 99px; background: var(--border-2); overflow: hidden; margin-top: 12px; }
.level-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 14px -2px var(--accent-glow); transition: width 0.6s ease; }

.level-scale { display: flex; justify-content: space-between; color: var(--faint); font-size: 10.5px; font-weight: 700; margin-top: 6px; font-family: var(--font-mono); }

.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 14px; }
.about-grid div { padding: 10px 12px; border-radius: 11px; background: var(--bg); border: 1px solid var(--border); }
.about-grid span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); font-weight: 800; }
.about-grid b { display: block; margin-top: 3px; font-family: var(--font-mono); font-size: 12.5px; }

.profile-body { position: relative; padding: 0 18px 20px; }
.profile-avatar { margin-top: -42px; margin-bottom: 10px; }
.profile-avatar .avatar { border: 4px solid var(--panel); }
.profile-name { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.profile-handle { color: var(--faint); font-size: 12.5px; margin-top: 2px; }
.profile-joined { color: var(--faint); font-size: 11.5px; margin-top: 4px; }

.level-block { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--border); }
.level-top { display: flex; align-items: center; gap: 11px; }
.level-top b { display: block; font-size: 13.5px; font-weight: 800; }
.level-top span { display: block; color: var(--faint); font-size: 11.5px; margin-top: 1px; }
.level-badge { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent); color: #fff; font-family: var(--font-mono); font-size: 17px; font-weight: 700; flex: none; }
.bar-holder { height: 6px; border-radius: 99px; background: var(--border-2); overflow: hidden; }
.bar-holder i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width 0.6s ease; }

/* ---------- guilds ---------- */

.guild-hero { border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); padding: 16px; }
.guild-hero-top { display: flex; align-items: center; gap: 12px; }
.guild-hero-name { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; }
.guild-hero-role { color: var(--faint); font-size: 11.5px; margin-top: 2px; }
.guild-hero-rank { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700; color: var(--accent); flex: none; }
.guild-hero-desc { color: var(--muted); font-size: 12.5px; margin-top: 10px; line-height: 1.55; }
.guild-hero-stats { display: flex; gap: 18px; margin-top: 12px; flex-wrap: wrap; }
.guild-hero-stats div span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); font-weight: 800; }
.guild-hero-stats div b { font-family: var(--font-mono); font-size: 14px; }

.guild-card { border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); padding: 14px; display: grid; gap: 10px; transition: background 0.2s, border-color 0.2s; }
.guild-card:hover { background: var(--panel-2); border-color: var(--border-2); }
.guild-card-head { display: flex; align-items: center; gap: 12px; }
.guild-card-name { display: block; font-size: 14px; font-weight: 800; }
.guild-card-sub { display: block; color: var(--faint); font-size: 11.5px; margin-top: 2px; }
.guild-card-desc { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.guild-card-stats { display: flex; gap: 16px; font-size: 12px; color: var(--faint); font-weight: 700; flex-wrap: wrap; }
.guild-card-stats b { color: var(--text); font-family: var(--font-mono); }
.guild-card.mine {
  border-color: rgba(46, 229, 157, 0.45);
  background: linear-gradient(160deg, rgba(46, 229, 157, 0.08), rgba(255, 255, 255, 0.012)), var(--panel);
}
.guild-card-actions { display: flex; gap: 8px; }
.guild-card-actions .btn { flex: 1; }

/* ---------- slots 777 ---------- */

.slots-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }

.slots-card { padding-top: 14px; }

.slots-machine {
  position: relative;
  padding: 30px 14px 16px;
  border-radius: 18px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(240, 185, 11, 0.12), transparent 55%),
    linear-gradient(180deg, #20263a, #12161f 70%);
  border: 2px solid rgba(240, 185, 11, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 50px -30px rgba(0, 0, 0, 1);
  overflow: hidden;
  transition: box-shadow 0.4s, border-color 0.4s;
}

.slots-machine.active {
  border-color: rgba(240, 185, 11, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 60px -18px rgba(240, 185, 11, 0.8);
}

.slots-lights { position: absolute; top: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 12px; }
.slots-lights i { width: 7px; height: 7px; border-radius: 50%; background: rgba(240, 185, 11, 0.25); animation: slotBulb 1.6s ease-in-out infinite; }
@keyframes slotBulb { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; background: var(--gold); box-shadow: 0 0 10px rgba(240, 185, 11, 0.9); } }

.slots-reels { display: flex; gap: 8px; justify-content: center; position: relative; }

.slots-glass {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 24%, transparent 40%);
}

.slot-reel { position: relative; }
.slot-reel::before,
.slot-reel::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 24%;
  z-index: 3;
  pointer-events: none;
}
.slot-reel::before { top: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent); }
.slot-reel::after { bottom: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.3), transparent); }

.slot-reel.spinning .slot-strip { filter: blur(1.8px); }

.slots-bigwin {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(10, 7, 14, 0.84);
  animation: fadeIn 0.3s ease both;
}

.slots-bigwin.out { animation: fadeOut 0.35s ease both; }
@keyframes fadeOut { to { opacity: 0; } }

.slots-rays {
  position: absolute;
  width: 220%;
  height: 220%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 209, 102, 0.33) 0deg 8deg, transparent 8deg 18deg);
  animation: spin 14s linear infinite;
}

.slots-bigwin-core { position: relative; text-align: center; padding: 0 18px; }

.slots-bigwin-core b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-shadow: 0 0 34px rgba(255, 209, 102, 0.85);
  animation: bigPop 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.slots-bigwin-core span {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  animation: bigPop 0.55s 0.08s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

@keyframes bigPop {
  from { transform: scale(0.5); opacity: 0; }
}

.slot-reel.thud { animation: slotThud 0.22s ease-out; }
@keyframes slotThud {
  0% { transform: translateY(0); }
  35% { transform: translateY(4px); }
  100% { transform: translateY(0); }
}

.slots-win.pulse { animation: slotWinPulse 0.5s ease-out; }
@keyframes slotWinPulse {
  0% { transform: scale(0.9); }
  55% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.slot-reel {
  width: 86px;
  height: calc(var(--slot, 84px) * 3);
  overflow: hidden;
  border-radius: 12px;
  background: #fdfaf3;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.08), inset 0 14px 24px -14px rgba(0, 0, 0, 0.45), inset 0 -14px 24px -14px rgba(0, 0, 0, 0.45);
}

.slot-strip { display: flex; flex-direction: column; will-change: transform; }

.slot-cell {
  height: var(--slot, 84px);
  display: grid;
  place-items: center;
  padding: 9px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.slot-cell svg { width: 100%; height: 100%; }

.slot-cell.win {
  background: linear-gradient(180deg, #fff3c4, #ffd166);
  box-shadow: inset 0 0 0 2px rgba(255, 158, 44, 0.9);
  animation: slotWin 0.5s ease-in-out infinite alternate;
}

@keyframes slotWin { to { transform: scale(1.05); } }

.slots-win {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 9px 14px;
  border-radius: 12px;
  background: rgba(10, 12, 18, 0.92);
  border: 1px solid rgba(240, 185, 11, 0.5);
  text-align: center;
  animation: rise 0.4s ease both;
}

.slots-win b { display: block; font-size: 12.5px; font-weight: 800; color: var(--gold); letter-spacing: 0.06em; }
.slots-win span { display: block; margin-top: 3px; font-family: var(--font-mono); font-size: 15px; color: #fff; }

.pay-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid rgba(240, 185, 11, 0.45);
  background: var(--gold-soft);
  color: var(--gold);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.pay-btn:hover { background: rgba(240, 185, 11, 0.22); border-color: var(--gold); }
.pay-btn:active { transform: scale(0.97); }
.pay-btn svg { width: 15px; height: 15px; }

.pay-head h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.pay-head p { color: var(--muted); font-size: 12.5px; line-height: 1.55; margin: 6px 0 16px; }

.pay-grid { display: grid; gap: 8px; }

.pay-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
}

.pay-sym {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 5px;
  border-radius: 11px;
  background: #fdfaf3;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.06);
}

.pay-sym svg { width: 100%; height: 100%; }
.pay-body b { display: block; font-size: 13.5px; font-weight: 800; }
.pay-body i { display: block; font-style: normal; color: var(--faint); font-size: 11.5px; font-weight: 600; margin-top: 2px; }

.pay-three {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: #1a1206;
  background: linear-gradient(180deg, #ffe29a, #ffb02e);
  border-radius: 9px;
  padding: 6px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.pay-note {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 11px;
  background: var(--gold-soft);
  border: 1px solid rgba(240, 185, 11, 0.35);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.slot-mini {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 16px;
  background: #fdfaf3;
  border: 2px solid var(--border-2);
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: #d0202f;
}

/* ---------- joker ---------- */

.joker-card { padding-top: 14px; }

.joker-machine {
  position: relative;
  padding: 14px 12px;
  border-radius: 18px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(138, 92, 246, 0.18), transparent 55%),
    linear-gradient(180deg, #221a34, #12101c 70%);
  border: 2px solid rgba(138, 92, 246, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 50px -30px #000;
  overflow: hidden;
  transition: box-shadow 0.4s, border-color 0.4s;
}

.joker-machine.active { border-color: rgba(168, 85, 247, 0.85); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 60px -18px rgba(168, 85, 247, 0.9); }

.joker-reels { display: flex; gap: 6px; justify-content: center; }

.joker-reel {
  position: relative;
  width: calc(var(--jcell, 58px) * 0.94);
  height: calc(var(--jcell, 58px) * 3);
  overflow: hidden;
  border-radius: 10px;
  background: #fdfaf3;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.08), inset 0 12px 20px -14px rgba(0, 0, 0, 0.45), inset 0 -12px 20px -14px rgba(0, 0, 0, 0.45);
}

.joker-reel::before,
.joker-reel::after { content: ''; position: absolute; left: 0; right: 0; height: 22%; z-index: 3; pointer-events: none; }
.joker-reel::before { top: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent); }
.joker-reel::after { bottom: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.28), transparent); }
.joker-reel.spinning .joker-strip { filter: blur(1.6px); }
.joker-reel.thud { animation: slotThud 0.22s ease-out; }

.joker-strip { display: flex; flex-direction: column; will-change: transform; }

.joker-cell { height: var(--jcell, 58px); display: grid; place-items: center; padding: 6px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); }
.joker-cell svg { width: 100%; height: 100%; }

.joker-cell.win {
  background: linear-gradient(180deg, #fff3c4, #ffd166);
  box-shadow: inset 0 0 0 2px rgba(255, 158, 44, 0.9);
  animation: slotWin 0.5s ease-in-out infinite alternate;
}

.joker-lines {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 14px;
  bottom: 14px;
  width: calc(100% - 24px);
  height: calc(100% - 28px);
  pointer-events: none;
  z-index: 4;
}

.joker-fs {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(20, 16, 32, 0.92);
  border: 1px solid rgba(138, 92, 246, 0.8);
  color: #c9bbff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 0 0 30px -6px rgba(138, 92, 246, 0.9);
}

.joker-fs b { font-family: var(--font-mono); font-size: 15px; color: #fff; letter-spacing: 0; }

.joker-mini { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 16px; background: linear-gradient(140deg, #8a5cf6, #4c1d95); }
.joker-mini svg { width: 46px; height: 46px; }

.joker-overlay {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(10, 7, 16, 0.86);
  animation: fadeIn 0.3s ease both;
}

.joker-overlay.out { animation: fadeOut 0.35s ease both; }

.joker-rays {
  position: absolute;
  width: 220%;
  height: 220%;
  background: repeating-conic-gradient(from 0deg, rgba(168, 85, 247, 0.4) 0deg 8deg, transparent 8deg 18deg);
  animation: spin 12s linear infinite;
}

.joker-overlay.bonus .joker-rays { background: repeating-conic-gradient(from 0deg, rgba(255, 209, 102, 0.45) 0deg 8deg, transparent 8deg 18deg); }

.joker-overlay-core { position: relative; text-align: center; padding: 0 16px; }

.joker-overlay-core b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--gold);
  text-shadow: 0 0 34px rgba(255, 209, 102, 0.85);
  animation: bigPop 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.joker-overlay-core span {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  animation: bigPop 0.55s 0.08s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.joker-bag { width: 78px; height: 78px; margin: 0 auto 10px; animation: bigPop 0.6s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.joker-bag svg { width: 100%; height: 100%; }

/* ---------- aviator ---------- */

.av-card { padding: 14px; }
.av-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.av-timer { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--muted); }

.av-stage {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(120% 140% at 20% 0%, rgba(59, 130, 246, 0.14), transparent 55%), #0f131b;
  border: 1px solid var(--border);
}

.av-stage canvas { width: 100%; height: 240px; display: block; }

.av-mult {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 30px rgba(59, 130, 246, 0.7);
  pointer-events: none;
}

.av-mult.crashed { color: var(--down); text-shadow: 0 0 30px rgba(239, 83, 80, 0.8); }

.av-crash {
  position: absolute;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--down-soft);
  border: 1px solid var(--down);
  color: var(--down);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  animation: rise 0.3s ease both;
}

.av-history { display: flex; gap: 6px; overflow-x: auto; padding: 10px 2px 2px; scrollbar-width: none; }
.av-history::-webkit-scrollbar { display: none; }
.av-pill { flex: none; padding: 5px 10px; border-radius: 8px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; }
.av-pill.low { color: var(--muted); background: var(--panel-2); border: 1px solid var(--border); }
.av-pill.mid { color: var(--gold); background: var(--gold-soft); border: 1px solid rgba(240, 185, 11, 0.4); }
.av-pill.big { color: #fff; background: linear-gradient(100deg, #8b5cf6, #d946ef); border: 1px solid transparent; }

.av-controls { margin-top: 14px; }
.av-col-title { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }

.av-mini { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 16px; background: linear-gradient(140deg, #3b82f6, #1d4ed8); }
.av-mini svg { width: 40px; height: 40px; }

/* ---------- messages ---------- */

.chat-row { cursor: pointer; }
.chat-unread { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-top: 4px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; }

.chat-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.chat-head { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.chat-head-user { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.chat-head-user b { display: block; font-size: 14.5px; }
.chat-head-user i { display: block; font-style: normal; color: var(--faint); font-size: 11.5px; margin-top: 1px; }

.chat-body { display: flex; flex-direction: column; gap: 8px; padding: 14px; height: min(48vh, 420px); overflow-y: auto; }

.chat-msg { max-width: 78%; padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; word-break: break-word; }
.chat-msg i { display: block; margin-top: 4px; font-style: normal; font-size: 10px; opacity: 0.6; }
.chat-msg.them { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.chat-msg.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }

.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-input .input { flex: 1; }

/* ---------- player modal ---------- */

.player-head { display: flex; align-items: center; gap: 14px; }
.player-name { display: block; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; }
.player-level { display: block; color: var(--faint); font-size: 12px; margin-top: 2px; }
.player-guild { display: inline-block; margin-top: 6px; padding: 3px 9px; border-radius: 7px; background: var(--accent-soft); border: 1px solid rgba(59, 130, 246, 0.4); color: var(--accent); font-size: 11px; font-weight: 800; }

.player-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.player-stats.small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.player-stats > div { padding: 10px 11px; border-radius: 11px; background: var(--panel-2); border: 1px solid var(--border); }
.player-stats span { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.player-stats b { display: block; margin-top: 3px; font-family: var(--font-mono); font-size: 13px; }
.player-stats b.up { color: var(--up); }
.player-stats b.down { color: var(--down); }

.player-meta { margin-top: 12px; color: var(--faint); font-size: 11.5px; text-align: center; }
.player-self { margin-top: 14px; text-align: center; color: var(--accent); font-size: 12.5px; font-weight: 700; }

.drawer-badge {
  margin-left: auto;
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
}

.top-row { cursor: pointer; }

/* ---------- market extras ---------- */

.heatmap { display: grid; grid-template-columns: repeat(auto-fill, minmax(102px, 1fr)); gap: 8px; }

.heat-tile {
  display: grid;
  gap: 5px;
  place-items: center;
  padding: 12px 8px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.heat-tile:hover { transform: translateY(-3px); border-color: var(--stroke-2); box-shadow: 0 16px 34px -24px rgba(0, 0, 0, 1); }
.heat-logo .logo-badge { width: 34px; height: 34px; border-radius: 10px; border-color: rgba(255, 255, 255, 0.14); }
.heat-tile b { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; }
.heat-change { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; color: rgba(255, 255, 255, 0.85); }

.book-card { padding: 14px; }
.book { display: grid; gap: 3px; }

.book-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  overflow: hidden;
}

.book-row i { position: absolute; right: 0; top: 0; bottom: 0; z-index: 0; border-radius: 7px; }
.book-row.ask i { background: rgba(239, 83, 80, 0.18); }
.book-row.bid i { background: rgba(38, 166, 154, 0.18); }
.book-row span, .book-row b { position: relative; z-index: 1; }
.book-row.ask span { color: var(--down); }
.book-row.bid span { color: var(--up); }
.book-row b { color: var(--muted); font-weight: 600; }

.book-mid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 8px;
  margin: 5px 0;
  border-radius: 8px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-weight: 700;
}

.book-mid i { font-style: normal; font-size: 10.5px; color: var(--faint); font-weight: 600; }

.tape-side {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 7px;
  border-radius: 6px;
  flex: none;
}

.tape-side.buy { color: var(--up); background: var(--up-soft); }
.tape-side.sell { color: var(--down); background: var(--down-soft); }

/* ---------- news ---------- */

.news-grid { display: grid; gap: 10px; }
@media (min-width: 720px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.news-card {
  padding: 14px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--down);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  animation: rowIn 0.4s ease both;
  animation-delay: calc(var(--i, 0) * 35ms);
}

.news-card.up { border-left-color: var(--up); }
.news-card:hover { background: var(--panel-2); transform: translateY(-2px); }

.news-card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.news-live {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 4px 8px;
}

.news-city { margin-left: auto; color: var(--faint); font-size: 11px; font-weight: 700; font-family: var(--font-mono); }
.news-title { font-size: 14.5px; font-weight: 800; line-height: 1.35; letter-spacing: -0.01em; margin: 10px 0 6px; }
.news-preview { color: var(--muted); font-size: 12.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; color: var(--faint); font-size: 11px; font-weight: 700; }
.news-ticker { color: var(--muted); font-family: var(--font-mono); }

/* ---------- article ---------- */

.article-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.article-city { margin-left: auto; color: var(--faint); font-size: 11.5px; font-weight: 700; font-family: var(--font-mono); }
.article-title { font-size: 1.25rem; font-weight: 800; line-height: 1.3; letter-spacing: -0.02em; margin: 12px 0 8px; }
.article-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--faint); font-size: 11.5px; font-weight: 700; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.article-body { margin-top: 14px; display: grid; gap: 12px; }
.article-body p { color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ---------- uploads ---------- */

.upload-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }

.upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 11px;
  background-color: var(--panel-2);
  border: 1px dashed var(--border-2);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  min-width: 150px;
  min-height: 46px;
  background-size: cover;
  background-position: center;
  transition: border-color 0.2s;
}

.upload-btn:hover { border-color: var(--accent); }
.upload-btn.has-image { border-style: solid; border-color: var(--accent); color: transparent; }

.profile-cover { position: relative; }

.cover-edit {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(14, 17, 23, 0.78);
  border: 1px solid var(--border-2);
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
}

.avatar-edit { position: relative; border: 0; background: none; padding: 0; cursor: pointer; display: block; }

.name-edit {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--border-2);
  background: var(--panel-2);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.name-edit:hover { color: var(--accent); border-color: var(--accent); }
.name-edit svg { width: 15px; height: 15px; }

.avatar-edit-icon {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--panel-3);
  border: 1px solid var(--border-2);
  display: grid;
  place-items: center;
  font-size: 12px;
}

.coin-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.coin-logo { display: grid; place-items: center; padding: 6px; border-radius: 12px; background: var(--panel-2); border: 1.5px solid var(--border); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.coin-logo svg { width: 100%; height: auto; display: block; border-radius: 10px; }
.coin-logo.active { border-color: var(--accent); background: var(--accent-soft); }

.guild-tag { display: grid; place-items: center; min-width: 56px; height: 46px; padding: 0 10px; border-radius: 12px; background: var(--accent-soft); border: 1px solid rgba(59, 130, 246, 0.45); color: var(--accent); font-family: var(--font-mono); font-size: 13px; font-weight: 700; flex: none; }
.guild-tag.small { min-width: 44px; height: 38px; font-size: 12px; }

/* ---------- rubies ---------- */

.ruby-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(217, 70, 239, 0.1);
  border: 1px solid rgba(217, 70, 239, 0.35);
  color: #e879f9;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  flex: none;
}
.ruby-chip svg { width: 14px; height: 14px; }
.ruby-chip.big { padding: 10px 14px; font-size: 15px; }
.ruby-chip.big svg { width: 17px; height: 17px; }

/* ---------- avatar frames ---------- */

.avatar::before,
.avatar::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}
.avatar[class*="frame-frame-"]::before,
.avatar[class*="frame-frame-"]::after { opacity: 1; }

.av-fx,
.av-fx2,
.av-fx3 { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.av-fx::before,
.av-fx::after,
.av-fx2::before,
.av-fx2::after,
.av-fx3::before,
.av-fx3::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; opacity: 0; }
.avatar[class*="frame-frame-"] .av-fx::before,
.avatar[class*="frame-frame-"] .av-fx::after { opacity: 1; }

.avatar.frame-frame-neon { border-color: transparent; }
.avatar.frame-frame-neon::before {
  inset: -5px;
  z-index: -1;
  background: conic-gradient(#ff5fa2, #d946ef, #22d3ee, #a855f7, #ff5fa2);
  animation: spin 4s linear infinite;
}
.avatar.frame-frame-neon::after {
  inset: -8px;
  border: 1.5px dashed rgba(255, 255, 255, 0.4);
  animation: spin 10s linear infinite reverse;
}
.avatar.frame-frame-neon .av-fx::before {
  inset: -8px;
  background: conic-gradient(from 0deg, transparent 0 86%, #ffffff 97%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  animation: spin 3.2s linear infinite;
}
.avatar.frame-frame-neon .av-fx::after {
  inset: -11px;
  background:
    radial-gradient(circle at 50% 3%, #ffffff 2.2px, transparent 3.2px),
    radial-gradient(circle at 50% 97%, #d946ef 2px, transparent 3px);
  animation: spin 5s linear infinite reverse;
}

.avatar.frame-frame-inferno { border-color: transparent; }
.avatar.frame-frame-inferno::before {
  inset: -5px;
  z-index: -1;
  background: conic-gradient(#ff3d00, #ffb703, #ff6b00, #7c2d12, #ffd166, #ff3d00);
  animation: spin 3s linear infinite;
}
.avatar.frame-frame-inferno::after {
  inset: -8.5px;
  border: 1.5px solid rgba(255, 183, 3, 0.45);
  border-top-color: rgba(255, 255, 255, 0.9);
  animation: spin 1.5s linear infinite;
}
.avatar.frame-frame-inferno .av-fx::before {
  inset: -8px;
  background: conic-gradient(from 0deg, transparent 0 78%, #ffd98a 94%, #ffffff 99%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  animation: spin 1.1s linear infinite;
}
.avatar.frame-frame-inferno .av-fx::after {
  inset: -11.5px;
  background:
    radial-gradient(circle at 50% 3%, #fff3c4 2.4px, transparent 3.4px),
    radial-gradient(circle at 50% 97%, #ff6b00 2.2px, transparent 3.2px);
  animation: spin 2s linear infinite reverse;
}

.avatar.frame-frame-cosmic { border-color: transparent; }
.avatar.frame-frame-cosmic::before {
  inset: -5.5px;
  z-index: -1;
  background: conic-gradient(from 0deg, #1e1b4b, #6d28d9, #0f172a, #a855f7, #312e81, #1e1b4b);
  animation: spin 16s linear infinite;
}
.avatar.frame-frame-cosmic::after {
  inset: -10px;
  background:
    radial-gradient(circle at 50% 1.5%, #ffffff 1.6px, transparent 2.5px),
    radial-gradient(circle at 90% 45%, #e9d5ff 1.4px, transparent 2.3px),
    radial-gradient(circle at 10% 62%, #ffffff 1.3px, transparent 2.1px),
    radial-gradient(circle at 55% 97%, #a5f3fc 1.4px, transparent 2.2px),
    radial-gradient(circle at 24% 18%, #ffffff 1.1px, transparent 1.9px);
  animation: spin 9s linear infinite;
}
.avatar.frame-frame-cosmic .av-fx::before {
  inset: -13px;
  background:
    radial-gradient(circle at 50% 3%, #ffffff 1.4px, transparent 2.3px),
    radial-gradient(circle at 76% 80%, #c4b5fd 1.3px, transparent 2.2px),
    radial-gradient(circle at 22% 74%, #ffffff 1.2px, transparent 2px);
  animation: spin 13s linear infinite reverse, twinkle 2.8s ease-in-out infinite;
}
.avatar.frame-frame-cosmic .av-fx::after {
  inset: -13px;
  background:
    radial-gradient(circle at 50% 3%, #ffffff 2.2px, transparent 3.2px),
    radial-gradient(circle at 50% 97%, #a5f3fc 1.9px, transparent 2.9px);
  animation: spin 7s linear infinite;
}

.avatar.frame-frame-telegram { border-color: transparent; }
.avatar.frame-frame-telegram::before {
  inset: -5px;
  z-index: -1;
  background: conic-gradient(#229ed9, #7dd3fc, #38bdf8, #0c4a6e, #2aabee, #229ed9);
  animation: spin 5s linear infinite;
}
.avatar.frame-frame-telegram::after {
  inset: -9px;
  background:
    radial-gradient(circle at 50% 1.5%, #ffffff 1.5px, transparent 2.4px),
    radial-gradient(circle at 88% 52%, #bae6fd 1.3px, transparent 2.1px),
    radial-gradient(circle at 12% 45%, #ffffff 1.2px, transparent 2px),
    radial-gradient(circle at 60% 96%, #7dd3fc 1.3px, transparent 2px);
  animation: spin 8s linear infinite;
}
.avatar.frame-frame-telegram .av-fx::before {
  inset: -9px;
  background: conic-gradient(from 0deg, transparent 0 74%, #7dd3fc 90%, #ffffff 98%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  animation: spin 2.2s linear infinite;
}
.avatar.frame-frame-telegram .av-fx::after {
  inset: -12.5px;
  background:
    radial-gradient(circle at 50% 3%, #ffffff 2.2px, transparent 3.2px),
    radial-gradient(circle at 50% 97%, #7dd3fc 2px, transparent 3px);
  animation: spin 6s linear infinite reverse;
}

.avatar.frame-frame-nyan { border-color: transparent; }
.avatar.frame-frame-nyan::before {
  inset: -5px;
  z-index: -1;
  background: conic-gradient(#fff3c4, #f5c04e, #b8860b, #ffe9a8, #f5c04e, #fff3c4);
  animation: spin 6s linear infinite;
}
.avatar.frame-frame-nyan::after {
  inset: -8.5px;
  border: 2px dotted rgba(255, 236, 170, 0.7);
  animation: spin 18s linear infinite reverse;
}
.avatar.frame-frame-nyan .av-fx::before {
  inset: -8px;
  background: conic-gradient(from 0deg, transparent 0 82%, #ffffff 96%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  animation: spin 4.4s linear infinite;
}
.avatar.frame-frame-nyan .av-fx::after {
  inset: -12px;
  background:
    radial-gradient(circle at 50% 3%, #ffffff 2.2px, transparent 3.2px),
    radial-gradient(circle at 50% 97%, #f5c04e 2.2px, transparent 3.2px);
  animation: spin 7s linear infinite reverse;
}

.avatar.frame-frame-founder { border-color: transparent; }
.avatar.frame-frame-founder::before {
  inset: -4px;
  z-index: -1;
  background: conic-gradient(rgba(231, 196, 107, 0.95), transparent 22%, transparent 50%, rgba(231, 196, 107, 0.95) 72%, transparent 94%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  animation: spin 18s linear infinite;
}
.avatar.frame-frame-founder::after {
  inset: -8px;
  border: 1px dashed rgba(255, 255, 255, 0.38);
  animation: spin 12s linear infinite reverse;
}
.avatar.frame-frame-founder .av-fx::before {
  inset: -8px;
  background: conic-gradient(from 0deg, transparent 0 90%, rgba(255, 246, 214, 0.95) 98%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  animation: spin 7s linear infinite;
}
.avatar.frame-frame-founder .av-fx::after {
  inset: -11.5px;
  background:
    radial-gradient(circle at 50% 3%, #fff6d6 2px, transparent 3px),
    radial-gradient(circle at 50% 97%, rgba(231, 196, 107, 0.9) 1.8px, transparent 2.8px);
  animation: spin 12s linear infinite reverse;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ---------- streak ---------- */

.streak-card { padding: 16px; }

.streak-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.streak-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.streak-flame {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 11px;
  color: #ff9d3c;
  background: rgba(255, 157, 60, 0.12);
  border: 1px solid rgba(255, 157, 60, 0.3);
}
.streak-flame svg { width: 19px; height: 19px; }
.streak-title b { display: block; font-size: 14.5px; font-weight: 800; }
.streak-title span {
  display: block;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}
.ruby-chip.small { padding: 6px 9px; font-size: 12px; }
.ruby-chip.small svg { width: 13px; height: 13px; }

.streak-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.sd {
  position: relative;
  display: grid;
  gap: 2px;
  justify-items: center;
  min-width: 0;
  padding: 7px 2px 6px;
  border-radius: 11px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  overflow: hidden;
}
.sd-day {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--faint);
  background: rgba(255, 255, 255, 0.06);
}
.sd-coin {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #e7c46b;
  letter-spacing: -0.02em;
}
.sd-ruby {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: #e879f9;
  opacity: 0.85;
}
.sd-ruby svg { width: 9px; height: 9px; }

.sd.done { border-color: rgba(46, 229, 157, 0.35); background: rgba(46, 229, 157, 0.06); }
.sd.done .sd-day { color: #0c1a14; background: var(--up); }
.sd.done .sd-coin { color: rgba(46, 229, 157, 0.75); }

.sd.today {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 20px -6px var(--accent);
  animation: streakPulse 1.8s ease-in-out infinite;
}
.sd.today .sd-day { color: #fff; background: var(--accent); }
.sd.today .sd-coin { color: #fff; }

.sd.final { border-color: rgba(245, 192, 78, 0.35); }
.sd.final .sd-coin { color: #f5c04e; }
.sd.final.done { border-color: rgba(245, 192, 78, 0.55); background: rgba(245, 192, 78, 0.08); }

.sd.pop { animation: sdPop 0.6s cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes sdPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.22); box-shadow: 0 0 26px -2px var(--accent); }
  100% { transform: scale(1); }
}
@keyframes streakPulse {
  50% { transform: translateY(-2px); }
}

.streak-btn { margin-top: 14px; }
.streak-btn.wait {
  background: var(--panel-3);
  color: var(--faint);
  box-shadow: none;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.streak-hint {
  color: var(--faint);
  font-size: 11px;
  line-height: 1.5;
  margin-top: 10px;
  text-align: center;
}

/* ---------- claim modal ---------- */

.claim-pop { position: relative; text-align: center; overflow: hidden; }
.claim-glow {
  position: absolute;
  inset: -60px -40px auto;
  height: 180px;
  background: radial-gradient(50% 60% at 50% 40%, rgba(232, 121, 249, 0.28), transparent 70%);
  pointer-events: none;
  animation: claimGlow 2.4s ease-in-out infinite;
}
@keyframes claimGlow {
  50% { opacity: 0.55; transform: scale(1.08); }
}
.claim-day {
  position: relative;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #e879f9;
  background: rgba(232, 121, 249, 0.12);
  border: 1px solid rgba(232, 121, 249, 0.35);
}
.claim-title {
  position: relative;
  font-size: 20px;
  font-weight: 800;
  margin: 12px 0 16px;
}
.claim-rewards {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.claim-item {
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 14px 8px 10px;
  border-radius: 14px;
  background: var(--panel-2);
  border: 1px solid var(--border);
}
.claim-item b { font-family: var(--font-mono); font-size: 17px; font-weight: 800; }
.claim-item small { color: var(--faint); font-size: 10.5px; }
.claim-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; margin-bottom: 4px; }
.claim-ico svg { width: 19px; height: 19px; }
.claim-ico.coin { color: #f5c04e; background: rgba(245, 192, 78, 0.12); border: 1px solid rgba(245, 192, 78, 0.3); }
.claim-ico.ruby { color: #e879f9; background: rgba(232, 121, 249, 0.12); border: 1px solid rgba(232, 121, 249, 0.3); }
.claim-streak {
  position: relative;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 16px;
}
.claim-streak b { color: #fff; }

/* ---------- topbar resilience ---------- */

.wallet-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 11px;
  background: var(--panel-2);
  border: 1px solid var(--border-2);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.wallet-btn svg { width: 16px; height: 16px; }
.wallet-btn:active { border-color: var(--accent); }
.balance-chip { min-width: 0; }
.balance-chip b { overflow: hidden; text-overflow: ellipsis; max-width: 96px; }
.topbar-actions, .top-right { min-width: 0; }

/* ---------- shop ---------- */

.shop-wallet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px;
  margin-bottom: 14px;
}
.wallet-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.shop-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
}
.shop-card.owned { border-color: rgba(46, 229, 157, 0.35); }
.shop-preview {
  display: grid;
  place-items: center;
  padding: 14px 0 8px;
}
.shop-preview .avatar { width: 92px; height: 92px; font-size: 30px; }
.shop-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.shop-head b { font-size: 15.5px; font-weight: 800; }
.shop-desc { color: var(--muted); font-size: 13px; line-height: 1.5; }
.shop-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.shop-price { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-weight: 700; color: #e879f9; font-size: 14px; }
.shop-price svg { width: 15px; height: 15px; }
.shop-note { color: var(--faint); font-size: 12px; line-height: 1.6; margin-top: 14px; }

.rarity {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid;
  white-space: nowrap;
}

/* ---------- кейсы ---------- */

.case-card {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background:
    radial-gradient(90% 130% at 6% 0%, color-mix(in srgb, var(--cc, #f5c04e) 22%, transparent), transparent 62%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid color-mix(in srgb, var(--cc, #f5c04e) 45%, transparent);
}
.case-art { position: relative; display: grid; place-items: center; }
.case-glow {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--cc, #f5c04e) 45%, transparent), transparent 68%);
  animation: caseGlow 2.4s ease-in-out infinite;
}
@keyframes caseGlow {
  50% { transform: scale(1.12); opacity: 0.65; }
}
.case-sparks i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff6d6;
  box-shadow: 0 0 8px 2px color-mix(in srgb, var(--cc, #f5c04e) 80%, transparent);
  animation: caseSpark 2.2s ease-in-out infinite;
}
.case-sparks i:nth-child(1) { top: 8px; left: 12px; animation-delay: 0s; }
.case-sparks i:nth-child(2) { top: 22px; right: 6px; animation-delay: 0.7s; }
.case-sparks i:nth-child(3) { bottom: 12px; left: 4px; animation-delay: 1.3s; }
@keyframes caseSpark {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  50% { opacity: 1; transform: scale(1.2); }
}
.case-box { position: relative; width: 100px; height: 100px; animation: caseFloat 3.4s ease-in-out infinite; }
@keyframes caseFloat {
  50% { transform: translateY(-5px); }
}
.case-lid { transition: transform 0.25s ease; transform-origin: left bottom; }
.case-card:active .case-lid { transform: rotate(-8deg) translateY(-3px); }
.case-lid {
  position: absolute;
  top: 4px;
  left: 8px;
  width: 86px;
  height: 28px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--cc, #f5c04e) 85%, #fff), color-mix(in srgb, var(--cc, #f5c04e) 45%, #000));
  box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.9);
}
.case-body {
  position: absolute;
  bottom: 6px;
  left: 12px;
  width: 78px;
  height: 62px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--cc, #f5c04e) 65%, #000), color-mix(in srgb, var(--cc, #f5c04e) 25%, #000));
  border: 1px solid color-mix(in srgb, var(--cc, #f5c04e) 60%, transparent);
}
.case-body span {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 14px color-mix(in srgb, var(--cc, #f5c04e) 80%, transparent);
  animation: hrPulse 2.6s ease-in-out infinite;
}
.case-info { display: grid; gap: 8px; align-content: center; min-width: 0; }
.case-info > b { font-size: 16px; font-weight: 800; }
.case-odds { display: flex; flex-wrap: wrap; gap: 5px; }
.case-odds span {
  padding: 4px 8px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid currentColor;
  opacity: 0.9;
}
.case-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.case-price { font-family: var(--font-mono); font-size: 13.5px; font-weight: 800; color: #f2b24b; }
.case-actions { display: flex; gap: 8px; }

.case-modal { display: grid; gap: 10px; }
.case-modal-note { color: var(--faint); font-size: 11.5px; line-height: 1.55; }
.case-table { display: grid; gap: 5px; }
.case-row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 11px;
  background: var(--panel-2);
  border: 1px solid var(--border);
}
.case-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rc, #94a3b8); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rc, #94a3b8) 20%, transparent); }
.case-row-main { min-width: 0; }
.case-row-main b { display: block; font-size: 12.5px; font-weight: 800; }
.case-row-main small { display: block; font-size: 10.5px; font-weight: 700; }
.case-chance { font-family: var(--font-mono); font-size: 12.5px; font-weight: 800; color: #fff; }

.co-stage {
  position: relative;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 42%, rgba(124, 92, 255, 0.12), transparent 70%),
    rgba(8, 10, 18, 0.72);
  border: 1px solid var(--border-2);
}
.co-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.co-case { position: absolute; left: 50%; top: 42%; width: 126px; height: 126px; transform: translate(-50%, -50%); z-index: 2; }
.co-idle .co-case { animation: coFloat 3.2s ease-in-out infinite; }
@keyframes coFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-7px); }
}
.co-lid {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 2px;
  height: 36px;
  border-radius: 13px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--cc, #f5c04e) 58%, #fff 22%), color-mix(in srgb, var(--cc, #f5c04e) 86%, #000 12%));
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25), 0 4px 14px rgba(0, 0, 0, 0.45);
  z-index: 2;
}
.co-lid i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 8px;
  margin: -4px 0 0 -11px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.55);
}
.co-box {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 34px;
  bottom: 0;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--cc, #f5c04e) 42%, #10131f), color-mix(in srgb, var(--cc, #f5c04e) 62%, #0a0c14));
  border: 1px solid color-mix(in srgb, var(--cc, #f5c04e) 55%, transparent);
  box-shadow: inset 0 10px 22px rgba(255, 255, 255, 0.08), inset 0 -14px 26px rgba(0, 0, 0, 0.5), 0 14px 30px -10px color-mix(in srgb, var(--cc, #f5c04e) 55%, transparent);
}
.co-box b {
  font-size: 46px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 18px color-mix(in srgb, var(--cc, #f5c04e) 90%, transparent);
  animation: coQ 1.6s ease-in-out infinite;
}
@keyframes coQ {
  50% { transform: scale(1.12); opacity: 0.82; }
}
.co-halo {
  position: absolute;
  inset: -34px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--cc, #f5c04e) 42%, transparent), transparent 66%);
  animation: coGlow 2.4s ease-in-out infinite;
}
@keyframes coGlow {
  50% { transform: scale(1.1); opacity: 0.6; }
}
.co-item { position: absolute; left: 50%; top: 52%; z-index: 3; transform: translate(-50%, -50%); will-change: transform, opacity; }
.co-banner {
  position: absolute;
  left: 50%;
  top: 7%;
  transform: translateX(-50%);
  z-index: 4;
  padding: 7px 18px;
  border-radius: 999px;
  background: linear-gradient(100deg, #2a1a05, #6b3f08, #2a1a05);
  border: 1px solid #f5c04e;
  box-shadow: 0 0 26px -2px rgba(245, 192, 78, 0.8);
  white-space: nowrap;
}
.co-banner b {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
  background: linear-gradient(100deg, #fff7cc, #f5c04e 40%, #fff, #f5c04e 70%, #fff7cc);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: coShine 2.2s linear infinite;
}
@keyframes coShine {
  to { background-position: 220% 0; }
}
.co-pre-foot { display: grid; gap: 8px; margin-top: 10px; }
.co-pre-hint { text-align: center; color: var(--faint); font-size: 12px; font-weight: 700; }
.case-tile {
  flex: none;
  width: 118px;
  height: 112px;
  margin: 0 3px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 4px;
  padding: 8px 6px 7px;
  border-radius: 14px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--rc, #94a3b8) 20%, transparent), rgba(255, 255, 255, 0.02));
  border: 1px solid color-mix(in srgb, var(--rc, #94a3b8) 50%, transparent);
}
.case-tile-view { display: grid; place-items: center; min-height: 0; }
.case-tile-name {
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  color: #fff;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.case-prev {
  display: block;
  width: 48px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(160deg, #1d2438, #0f1523);
}
.case-prev.big { width: 132px; height: 88px; border-radius: 13px; }
.case-prev-cash {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: #f2b24b;
}
.case-prev-cash.rub { color: #e879f9; }
.case-prev-cash svg { width: 16px; height: 16px; }
.case-prev-empty {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.case-win-view { display: grid; place-items: center; margin-bottom: 6px; }
.profile-title.big { font-size: 13px; padding: 7px 14px; }
.case-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.case-preview-grid .case-tile { width: 100%; margin: 0; }
.case-result { display: grid; gap: 8px; }
.case-result-label { text-align: center; color: var(--faint); font-size: 12px; font-weight: 700; }
.case-win {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
  padding: 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--rc, #94a3b8) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--rc, #94a3b8) 55%, transparent);
  animation: evUpPop 0.5s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.case-win-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rc, #94a3b8);
}
.case-win b { font-size: 17px; font-weight: 800; }
.case-win small { color: #e879f9; font-size: 11.5px; font-weight: 700; }
.case-win-note { color: var(--faint); font-size: 11.5px; }

.shop-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.shop-tabs::-webkit-scrollbar { display: none; }
.shop-tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}
.shop-tab b { font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); font-weight: 700; }
.shop-tab.active { border-color: var(--accent); color: #fff; background: var(--accent-soft); }
.shop-tab.active b { color: #cfe4ff; }

.ruby-chip.nc { color: #f5c04e; background: rgba(245, 192, 78, 0.1); border-color: rgba(245, 192, 78, 0.35); }

.shop-nick {
  display: grid;
  place-items: center;
  padding: 22px 10px;
  border-radius: 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  font-size: 21px;
  font-weight: 800;
  overflow: hidden;
}
.shop-title-view {
  display: grid;
  place-items: center;
  padding: 22px 10px;
  border-radius: 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
}
.shop-title-view .profile-title { font-size: 13px; padding: 6px 14px; }
.shop-bg-view {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: end;
  min-height: 96px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border-2);
}
.shop-bg-view span { color: #fff; font-size: 13px; font-weight: 800; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.shop-fx-view {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: end;
  min-height: 96px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border-2);
  background: linear-gradient(160deg, #1a2032, #0e1119);
}
.shop-fx-view span { position: relative; z-index: 1; color: #fff; font-size: 13px; font-weight: 800; }
.shop-fx-view::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shop-price.owned { color: var(--up); }
.shop-price.free { color: #e7c46b; }
.shop-price.tg { color: #2aabee; }
.shop-price.tg svg { width: 14px; height: 14px; }
.shop-price.nc { color: #e7c46b; }
.shop-price.nc svg { width: 14px; height: 14px; }

/* ---------- wallet ---------- */

.wallet { display: grid; gap: 0; }

.wallet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.wallet-title { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }

.wallet-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 13px;
  align-items: center;
  padding: 16px 15px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(124, 92, 255, 0.14), rgba(255, 255, 255, 0.02) 55%), var(--panel-2);
  border: 1px solid var(--border-2);
}
.wallet-ava { grid-row: span 2; flex: none; display: grid; place-items: center; }
.wallet-id { min-width: 0; }
.wallet-id b {
  display: block;
  font-size: 16px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wallet-id span { display: block; color: var(--faint); font-size: 12px; }
.wallet-flag { color: var(--muted) !important; font-size: 11px !important; }

.wallet-capital { grid-column: 1 / -1; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.wallet-capital small {
  display: block;
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.wallet-capital b {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.wallet-capital b i { font-style: normal; font-size: 13px; color: var(--faint); margin-left: 5px; }
.wallet-capital > span { display: block; margin-top: 3px; color: var(--faint); font-size: 11.5px; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: 0;
  border-radius: 9px;
  background: var(--panel-3);
  color: var(--muted);
  cursor: pointer;
}
.icon-btn svg { width: 15px; height: 15px; }

/* ---------- nyan card ---------- */

.nyan-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  aspect-ratio: 1.62;
  padding: 17px 18px 16px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #2c2a60 0%, #1b1b3c 48%, #131327 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.nyc-shine {
  position: absolute;
  inset: -40% -60% auto;
  height: 170%;
  background: radial-gradient(45% 50% at 30% 20%, rgba(124, 92, 255, 0.4), transparent 70%);
  pointer-events: none;
}
.nyc-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nyc-brand { font-size: 15px; font-weight: 800; letter-spacing: 0.01em; }
.nyc-chip {
  position: relative;
  width: 34px;
  height: 25px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f7dd8b, #c99a2e);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28);
}
.nyc-chip::after {
  content: '';
  position: absolute;
  inset: 6px 6px;
  border-left: 1px solid rgba(0, 0, 0, 0.32);
  border-right: 1px solid rgba(0, 0, 0, 0.32);
}
.nyc-num {
  position: relative;
  font-family: var(--font-mono);
  font-size: 14.5px;
  letter-spacing: 0.16em;
  opacity: 0.85;
}
.nyc-bottom {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.nyc-holder small,
.nyc-sum small {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.nyc-holder b {
  display: block;
  margin-top: 2px;
  max-width: 150px;
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nyc-sum { text-align: right; }
.nyc-sum b {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.nyc-sum b i { font-style: normal; font-size: 12px; color: rgba(255, 255, 255, 0.6); margin-left: 4px; }

.nyc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }

.wallet-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}
.w-tile {
  display: grid;
  gap: 2px;
  justify-items: center;
  min-width: 0;
  padding: 11px 6px 10px;
  border-radius: 13px;
  background: var(--panel-2);
  border: 1px solid var(--border);
}
.w-tile small {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.w-tile b {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.w-tile.coin b { color: #f5c04e; }
.w-tile.ruby b { color: #e879f9; }
.w-tile.stocks b { color: #7dd3fc; }

.w-frame-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.w-frame-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border-radius: 10px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
}
.w-frame-tag i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--fc, var(--accent));
  flex: none;
}
.w-frame-tag b {
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--up);
}
.w-frame-tag.active { border-color: var(--fc, var(--accent)); color: #fff; }

/* ---------- transfer ---------- */

.tr-note { color: var(--faint); font-size: 11.5px; line-height: 1.55; margin-bottom: 12px; }
.tr-note.small { margin: 10px 0 0; text-align: center; }
.tr-warn {
  display: grid;
  gap: 4px;
  padding: 12px 13px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(255, 77, 109, 0.08);
  border: 1px solid rgba(255, 77, 109, 0.32);
}
.tr-warn b { font-size: 13px; color: #ff8fa3; }
.tr-warn span { color: var(--muted); font-size: 12px; line-height: 1.5; }

.tr-friends { display: grid; gap: 8px; max-height: 232px; overflow-y: auto; }
.tr-friend {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 13px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.tr-friend.active { border-color: var(--accent); background: var(--accent-soft); }
.tr-friend.bad { opacity: 0.5; cursor: not-allowed; }
.tr-main { flex: 1; min-width: 0; }
.tr-main b {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tr-main span {
  display: block;
  color: var(--faint);
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tr-check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}
.tr-check svg { width: 12px; height: 12px; }

.tr-amount { position: relative; }
.tr-amount .input { padding-right: 46px; font-size: 18px; }
.tr-cure {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
}
.tr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  padding: 8px 13px;
  border-radius: 10px;
  border: 1px solid var(--border-2);
  background: var(--panel-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.chip:active { border-color: var(--accent); color: #fff; }

.wallet-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}
.wallet-card {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 13px 12px;
  border-radius: 14px;
  background: var(--panel-2);
  border: 1px solid var(--border);
}
.wallet-card .wc-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
}
.wallet-card .wc-ico svg { width: 18px; height: 18px; }
.wallet-card.nc .wc-ico { color: #f5c04e; background: rgba(245, 192, 78, 0.12); border: 1px solid rgba(245, 192, 78, 0.3); }
.wallet-card.rb .wc-ico { color: #e879f9; background: rgba(232, 121, 249, 0.12); border: 1px solid rgba(232, 121, 249, 0.3); }
.wallet-card small { display: block; color: var(--faint); font-size: 10.5px; }
.wallet-card b {
  display: block;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-sec { padding: 12px 0; border-top: 1px solid var(--border); }
.wallet-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.w-frames { display: flex; align-items: center; gap: 12px; }
.w-ava { display: grid; place-items: center; flex: none; }
.w-ava.none { filter: grayscale(0.6); opacity: 0.8; }
.w-main { flex: 1; min-width: 0; }
.w-main b { display: block; font-size: 14px; font-weight: 800; }
.w-main span { display: block; color: var(--faint); font-size: 12px; }
.w-frame-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.w-frame {
  display: grid;
  place-items: center;
  padding: 5px;
  border-radius: 50%;
  border: 1px solid transparent;
}
.w-frame.active { border-color: var(--fc, var(--accent)); background: color-mix(in srgb, var(--fc, var(--accent)) 12%, transparent); }
.w-row { display: flex; align-items: center; gap: 11px; padding: 8px 0; }
.w-ico {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
  color: var(--muted);
  background: var(--panel-3);
}
.w-ico svg { width: 15px; height: 15px; }
.w-ico.gold { color: #f5c04e; background: rgba(245, 192, 78, 0.12); }
.w-empty {
  color: var(--faint);
  font-size: 12px;
  line-height: 1.5;
  padding: 4px 0;
}

/* ---------- customization ---------- */

.custom-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.custom-row:first-child { padding-top: 0; }
.custom-main { flex: 1; min-width: 0; }
.custom-main b { display: block; font-size: 14px; font-weight: 800; }
.custom-main span {
  display: block;
  color: var(--faint);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.custom-cover {
  display: grid;
  place-items: center;
  width: 56px;
  height: 36px;
  flex: none;
  border-radius: 9px;
  color: var(--faint);
  background: linear-gradient(135deg, var(--panel-3), var(--panel-2));
  border: 1px solid var(--border-2);
  background-size: cover;
  background-position: center;
}
.custom-cover svg { width: 16px; height: 16px; }
.custom-frame { display: grid; place-items: center; flex: none; }

.frame-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 10px;
  padding-top: 14px;
}
.frame-pick {
  display: grid;
  gap: 7px;
  justify-items: center;
  padding: 12px 6px 10px;
  border-radius: 13px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.frame-pick span {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--faint);
  text-transform: uppercase;
}
.frame-pick.active { border-color: var(--accent); background: var(--accent-soft); }
.frame-pick.active span { color: #fff; }
.frame-none {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--faint);
  background: var(--panel-3);
  border: 1px dashed var(--border-2);
}
.frame-none svg { width: 16px; height: 16px; }

.frame-info {
  margin-top: 12px;
  padding: 12px 13px;
  border-radius: 13px;
  background: var(--panel-2);
  border: 1px solid var(--border);
}
.frame-info > b { display: block; font-size: 13.5px; font-weight: 800; margin-bottom: 4px; }
.frame-info > span { display: block; color: var(--muted); font-size: 12px; line-height: 1.55; }
.frame-info-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.frame-info-head b { font-size: 13.5px; font-weight: 800; }
.frame-info-rarity {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 7px;
  border: 1px solid;
  white-space: nowrap;
}
.frame-info-desc { display: block; color: var(--muted); font-size: 12px; line-height: 1.55; }

.music-range {
  width: 100%;
  margin-top: 10px;
  height: 26px;
  accent-color: var(--accent);
  cursor: pointer;
}

.promo-card { padding: 14px; display: grid; gap: 10px; }
.promo-card.soon {
  border-color: rgba(242, 178, 75, 0.55);
  box-shadow: 0 0 26px -14px rgba(242, 178, 75, 0.9);
}
.promo-card.expired { opacity: 0.55; }
.promo-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.promo-card-title b { display: block; font-size: 14.5px; font-weight: 800; }
.promo-card-title span { display: block; color: var(--faint); font-size: 11.5px; line-height: 1.5; margin-top: 3px; }
.promo-timer {
  flex: none;
  padding: 5px 10px;
  border-radius: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: #ffd9a3;
  background: rgba(224, 138, 60, 0.12);
  border: 1px solid rgba(224, 138, 60, 0.4);
  animation: hrPulse 2.4s ease-in-out infinite;
}
.promo-timer.soon { color: #fff; background: rgba(242, 178, 75, 0.22); border-color: rgba(242, 178, 75, 0.7); }
.promo-card-items { display: flex; flex-wrap: wrap; gap: 6px; }
.promo-card-items span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  color: #ffd9a3;
  background: rgba(224, 138, 60, 0.09);
  border: 1px solid rgba(224, 138, 60, 0.28);
}
.promo-card-items svg { width: 12px; height: 12px; }
.promo-used { color: var(--up); font-size: 12px; font-weight: 700; text-align: center; }

.promo-row { display: flex; gap: 9px; }
.promo-row .input { flex: 1; min-width: 0; font-family: var(--font-mono); text-transform: lowercase; }
.promo-hint { color: var(--faint); font-size: 11.5px; line-height: 1.5; margin-top: 10px; }

/* ---------- feed ---------- */

.feed-card { padding: 15px 14px 8px; }
.feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.feed-head b { font-size: 14.5px; font-weight: 800; }

.feed-list { display: grid; gap: 9px; }

.feed-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
}
.feed-list .feed-item { border-radius: 14px; }

.feed-ava {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  flex: none;
  display: grid;
  place-items: center;
}
.feed-body { flex: 1; min-width: 0; }

.feed-line {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.feed-name {
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.feed-time {
  margin-left: auto;
  flex: none;
  color: var(--faint);
  font-size: 10.5px;
  font-family: var(--font-mono);
}
.feed-kind {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 6px;
  border: 1px solid var(--border-2);
  color: var(--muted);
  background: var(--panel-3);
}
.feed-kind svg { width: 12px; height: 12px; }
.feed-kind.win { color: #ff9d3c; border-color: rgba(255, 157, 60, 0.4); background: rgba(255, 157, 60, 0.1); }
.feed-kind.trade { color: #7dd3fc; border-color: rgba(125, 211, 252, 0.35); background: rgba(125, 211, 252, 0.08); }
.feed-kind.coin { color: #f5c04e; border-color: rgba(245, 192, 78, 0.4); background: rgba(245, 192, 78, 0.1); }
.feed-kind.guild { color: #a855f7; border-color: rgba(168, 85, 247, 0.4); background: rgba(168, 85, 247, 0.1); }
.feed-kind.level { color: #3ddc84; border-color: rgba(61, 220, 132, 0.4); background: rgba(61, 220, 132, 0.1); }

.feed-text {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
  word-break: break-word;
}

.feed-like {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  padding: 6px 9px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.feed-like svg { width: 13px; height: 13px; }
.feed-like.on { color: #ff5f7e; border-color: rgba(255, 95, 126, 0.45); background: rgba(255, 95, 126, 0.1); }
.feed-empty {
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.5;
  padding: 10px 2px 14px;
}

/* ---------- top players ---------- */

.top-list { display: grid; gap: 9px; }

.podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 3px;
}

.podium-card {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  padding: 12px 8px 11px;
  border-radius: 15px;
  background: var(--panel-2) center/cover no-repeat;
  border: 1px solid var(--border);
  cursor: pointer;
  text-align: center;
}
.podium-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 11, 16, 0.35), rgba(10, 11, 16, 0.82) 62%);
}
.podium-card > * { position: relative; }
.podium-card.first { border-color: rgba(240, 185, 11, 0.6); }
.podium-card.second { border-color: rgba(203, 213, 225, 0.4); }
.podium-card.third { border-color: rgba(205, 127, 50, 0.55); }
.podium-card.me::before { background: linear-gradient(to bottom, rgba(24, 36, 62, 0.4), rgba(14, 20, 36, 0.85) 62%); }

.pc-place {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  background: rgba(12, 13, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.podium-card.first .pc-place { background: rgba(240, 185, 11, 0.16); border-color: rgba(240, 185, 11, 0.55); color: var(--gold); }
.podium-card.second .pc-place { color: #e2e8f0; }
.podium-card.third .pc-place { color: #e3a06a; }

.pc-ava { display: grid; place-items: center; margin: 3px 0; }
.pc-name {
  max-width: 100%;
  font-size: 12.5px;
  font-weight: 800;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pc-level {
  max-width: 100%;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pc-worth {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--gold);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
}
.pc-worth small { color: rgba(255, 255, 255, 0.5); font-size: 9.5px; font-weight: 700; }

.top-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--panel-2) center/cover no-repeat;
  border: 1px solid var(--border);
  cursor: pointer;
}
.top-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 11, 16, 0.9), rgba(10, 11, 16, 0.7));
}
.top-card > * { position: relative; }
.top-card.me { border-color: var(--accent); }

.tc-rank {
  width: 24px;
  flex: none;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.5);
}
.tc-ava { display: grid; place-items: center; flex: none; }
.tc-main { flex: 1; min-width: 0; }
.tc-main b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tc-main span { display: block; color: rgba(255, 255, 255, 0.6); font-size: 11.5px; }
.tc-worth { text-align: right; flex: none; }
.tc-worth b { display: block; font-family: var(--font-mono); font-size: 13.5px; font-weight: 800; color: var(--gold); }
.tc-worth span { color: rgba(255, 255, 255, 0.5); font-size: 10.5px; }

/* ---------- player modal cover ---------- */

.player-cover {
  position: relative;
  height: 78px;
  margin: -24px -20px 0;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(135deg, #2a2140, #171722 60%, #101018);
  background-size: cover;
  background-position: center;
}
.player-cover .pc-shade {
  border-radius: 16px 16px 0 0;
}
.player-head { margin-top: -30px; position: relative; }

/* ---------- games ---------- */

.games-grid { display: grid; gap: 14px; }
@media (min-width: 780px) { .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.game-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 104px 1fr;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px;
  border-radius: 20px;
  text-align: left;
  background:
    radial-gradient(120% 160% at 0% 0%, color-mix(in srgb, var(--c1, #8b5cf6) 26%, transparent), transparent 60%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid color-mix(in srgb, var(--c1, #8b5cf6) 38%, transparent);
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.3s;
}

.game-card::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -60px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c1, #8b5cf6) 55%, transparent), transparent 70%);
  filter: blur(34px);
  opacity: 0.6;
  pointer-events: none;
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: var(--c1, #8b5cf6);
  box-shadow: 0 28px 60px -30px var(--c1, #8b5cf6);
}

.game-card:active { transform: translateY(-1px) scale(0.995); }
.game-card.anim { animation: rowIn 0.45s ease both; animation-delay: calc(var(--i, 0) * 70ms); }

.game-art { width: 104px; height: 92px; flex: none; display: grid; place-items: center; position: relative; z-index: 1; }
.game-info { flex: 1; min-width: 0; position: relative; z-index: 1; }
.game-info h3 { font-size: 18px; font-weight: 800; margin: 9px 0 4px; letter-spacing: -0.02em; }
.game-info p { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.game-stats { display: block; margin-top: 9px; color: var(--faint); font-size: 11px; font-weight: 700; font-family: var(--font-mono); }

.game-play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--c1, #8b5cf6);
}

.game-play::after { content: '→'; transition: transform 0.25s; }
.game-card:hover .game-play::after { transform: translateX(4px); }

.game-go { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

/* wheel preview */
.ga-wheel {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: conic-gradient(#3b82f6 0 45deg, #1b2130 45deg 90deg, #26a69a 90deg 135deg, #1b2130 135deg 180deg, #f0b90b 180deg 225deg, #1b2130 225deg 270deg, #ef5350 270deg 315deg, #1b2130 315deg 360deg);
  box-shadow: inset 0 0 0 6px #17121f, 0 0 0 3px #e3a41f, 0 0 26px -6px rgba(255, 209, 102, 0.8);
  animation: spin 12s linear infinite;
}

.ga-wheel i { position: absolute; inset: 32px; border-radius: 50%; background: linear-gradient(140deg, #8b5cf6, #d946ef); box-shadow: 0 0 0 4px #17121f; }

/* up/down preview */
.ga-ud { display: grid; gap: 6px; }
.ga-ud i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; }
.ga-ud .up { background: var(--up-soft); border: 1px solid rgba(38, 166, 154, 0.55); color: var(--up); animation: floatUp 2.4s ease-in-out infinite; }
.ga-ud .down { background: var(--down-soft); border: 1px solid rgba(239, 83, 80, 0.55); color: var(--down); animation: floatDown 2.4s ease-in-out infinite; }
.ga-ud svg { width: 20px; height: 20px; }

/* slots preview */
.ga-slots { display: flex; gap: 5px; }

.ga-reel {
  display: block;
  width: 28px;
  height: 72px;
  overflow: hidden;
  border-radius: 8px;
  background: #fdfaf3;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.08), inset 0 10px 16px -12px rgba(0, 0, 0, 0.5), inset 0 -10px 16px -12px rgba(0, 0, 0, 0.5);
}

.ga-reel u { display: block; text-decoration: none; animation: gaScroll 2.4s linear infinite; }
.ga-reel b { display: grid; place-items: center; height: 24px; padding: 2px; }
.ga-reel b svg { width: 100%; height: 100%; }

@keyframes gaScroll { to { transform: translateY(-50%); } }

/* joker preview */
.ga-joker { animation: jokerBob 2.6s ease-in-out infinite; }
.ga-joker svg { width: 88px; height: 88px; }

@keyframes jokerBob {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-6px) rotate(1.5deg); }
}

/* aviator preview */
.ga-fly { position: relative; width: 104px; height: 86px; }
.ga-path { position: absolute; inset: 0; width: 100%; height: 100%; }
.ga-plane {
  position: absolute;
  width: 26px;
  height: 26px;
  offset-path: path('M6,72 C 34,70, 52,40, 92,16');
  offset-rotate: auto;
  animation: flyAlong 3.4s ease-in-out infinite;
}

@keyframes flyAlong {
  0% { offset-distance: 0%; opacity: 0; }
  12% { opacity: 1; }
  86% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.game-card.soon { opacity: 0.55; cursor: default; }
.game-card.soon:hover { transform: none; border-color: var(--border-2); box-shadow: none; }
.soon-art { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 16px; background: var(--panel-2); border: 1px dashed var(--border-2); color: var(--faint); }
.soon-art svg { width: 28px; height: 28px; }
.game-card.soon .game-play { display: none; }

.back-row { margin-bottom: 12px; }

.pick-list { display: grid; gap: 6px; max-height: 320px; overflow-y: auto; padding-right: 4px; }

.pick-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 11px;
  background: var(--panel);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.pick-item:hover { background: var(--panel-2); }
.pick-item.selected { border-color: var(--accent); background: var(--accent-soft); }

.pick-check { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-2); display: grid; place-items: center; color: transparent; flex: none; }
.pick-item.selected .pick-check { background: var(--accent); border-color: var(--accent); color: #fff; }
.pick-check svg { width: 11px; height: 11px; }

.dir-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.dir-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 10px;
  border-radius: 12px;
  border: 1.5px solid var(--border-2);
  background: var(--panel);
  color: var(--muted);
  font-family: inherit;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.dir-btn svg { width: 20px; height: 20px; }
.dir-btn:active { transform: scale(0.98); }
.dir-btn.active.up { border-color: var(--up); background: var(--up-soft); color: var(--up); }
.dir-btn.active.down { border-color: var(--down); background: var(--down-soft); color: var(--down); }

.potential {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 11px;
  background: var(--gold-soft);
  border: 1px solid rgba(240, 185, 11, 0.35);
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
}

.potential b { color: var(--gold); font-size: 15px; font-family: var(--font-mono); }

.wheel-card { display: flex; flex-direction: column; align-items: center; }
.wheel-stage { position: relative; display: grid; place-items: center; padding: 6px 0 2px; width: min(320px, 80vw); }
.wheel-stage canvas { width: 100%; height: auto; display: block; }

.wheel-pointer {
  position: absolute;
  top: 0;
  z-index: 3;
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 19px solid var(--gold);
}

.wheel-center {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  box-shadow: 0 0 0 5px rgba(14, 17, 23, 0.9);
  transition: background 0.2s, transform 0.15s;
}

.wheel-center:hover:not(:disabled) { background: #4b8df8; }
.wheel-center:disabled { background: var(--panel-3); color: var(--faint); cursor: not-allowed; }

.ud-card { display: grid; gap: 12px; align-content: start; }
.ud-live { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--border); font-family: var(--font-mono); }

.countdown-ring { position: relative; display: grid; place-items: center; width: 54px; height: 54px; flex: none; }
.countdown-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.countdown-ring b { font-size: 13px; font-weight: 700; }

/* ---------- drawer menu style for more screen ---------- */

.more-strip {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.more-strip .strip-main { flex: 1; min-width: 0; }
.more-strip .strip-name { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.more-strip .strip-sub { color: var(--faint); font-size: 12px; margin-top: 2px; }
.more-strip .strip-money { text-align: right; flex: none; }
.more-strip .strip-money b { display: block; font-family: var(--font-mono); font-size: 1rem; font-weight: 600; color: var(--gold); }
.more-strip .strip-money span { font-size: 10.5px; font-weight: 700; color: var(--faint); }

.menu-section { margin-bottom: 16px; animation: rowIn 0.4s ease both; animation-delay: calc(var(--i, 0) * 60ms); }
.menu-section > h3 { font-size: 10.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin: 0 0 8px 2px; }

.glass-menu { border-radius: 13px; background: var(--panel); border: 1px solid var(--border); overflow: hidden; }

.menu-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border: 0;
  border-top: 1px solid var(--border);
  background: none;
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}

.menu-row:first-child { border-top: 0; }
.menu-row:hover { background: var(--panel-2); }
.menu-row:active { background: var(--accent-soft); }

.menu-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex: none;
  color: #fff;
  background: var(--c1, var(--accent));
}

.menu-icon svg { width: 19px; height: 19px; }
.menu-text { flex: 1; min-width: 0; }
.menu-text b { display: block; font-size: 13.5px; font-weight: 800; }
.menu-text span { display: block; color: var(--faint); font-size: 11.5px; font-weight: 600; margin-top: 1px; }
.menu-row .chev { color: var(--faint); width: 15px; height: 15px; flex: none; }

/* ---------- autumn event ---------- */

.screen.ev-on {
  position: relative;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(224, 138, 60, 0.16), transparent 60%),
    radial-gradient(120% 70% at 100% 30%, rgba(124, 45, 18, 0.22), transparent 65%),
    linear-gradient(180deg, #1d1409 0%, #14100a 40%, #100e0c 100%);
  min-height: 100vh;
}
.ev-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ev-content { position: relative; z-index: 1; }

.leaf {
  position: absolute;
  top: -18px;
  width: var(--s, 12px);
  height: var(--s, 12px);
  background: #e08a3c;
  border-radius: 0 60% 0 60%;
  opacity: 0;
  animation: leafFall var(--t, 8s) linear infinite;
  animation-delay: var(--d, 0s);
}
.ev-sky .leaf { animation-name: leafSky; }
.leaf.a { background: #f2b24b; }
.leaf.b { background: #c2410c; }
.leaf.c { background: #e08a3c; }
.leaf.d { background: #b45309; }

@keyframes leafFall {
  0% { transform: translate3d(0, -12px, 0) rotate(0deg); opacity: 0; }
  12% { opacity: 0.85; }
  55% { transform: translate3d(20px, 96px, 0) rotate(180deg); }
  100% { transform: translate3d(-12px, 210px, 0) rotate(340deg); opacity: 0; }
}
@keyframes leafSky {
  0% { transform: translate3d(0, -20px, 0) rotate(0deg); opacity: 0; }
  8% { opacity: 0.5; }
  50% { transform: translate3d(38px, 52vh, 0) rotate(200deg); }
  100% { transform: translate3d(-24px, 106vh, 0) rotate(400deg); opacity: 0; }
}

.ev-hero {
  position: relative;
  overflow: hidden;
  min-height: 186px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  margin-bottom: 14px;
  border-radius: 20px;
  border: 1px solid rgba(224, 138, 60, 0.45);
  box-shadow: 0 18px 40px -28px rgba(224, 138, 60, 0.8);
  background:
    radial-gradient(90% 120% at 12% 0%, rgba(251, 191, 36, 0.3), transparent 60%),
    radial-gradient(120% 130% at 100% 100%, rgba(124, 45, 18, 0.6), transparent 65%),
    linear-gradient(140deg, #3f2714 0%, #251608 55%, #180f07 100%);
}
.ev-leaves { position: absolute; inset: 0; pointer-events: none; }
.ev-sun {
  position: absolute;
  top: -54px;
  right: -34px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.5), rgba(251, 191, 36, 0) 68%);
  animation: evSun 6s ease-in-out infinite;
}
@keyframes evSun {
  50% { transform: scale(1.12); opacity: 0.8; }
}

.ev-hero-body { position: relative; }
.ev-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd9a3;
  background: rgba(224, 138, 60, 0.2);
  border: 1px solid rgba(224, 138, 60, 0.5);
}
.ev-badge svg { width: 12px; height: 12px; }
.ev-title {
  margin: 10px 0 4px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, #fff3e0 20%, #fbbf24 45%, #fff3e0 70%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: evTitleShine 5s linear infinite;
}
@keyframes evTitleShine {
  to { background-position: -220% 0; }
}
.ev-sub { color: rgba(255, 232, 205, 0.72); font-size: 12.5px; line-height: 1.5; max-width: 340px; }
.ev-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  color: rgba(255, 232, 205, 0.62);
  font-size: 11.5px;
  font-family: var(--font-mono);
}

.ev-progress-card {
  padding: 16px 14px 12px;
  background: linear-gradient(160deg, rgba(224, 138, 60, 0.09), rgba(255, 255, 255, 0.015)), var(--panel);
  border-color: rgba(224, 138, 60, 0.32);
}
.ev-level-row { display: flex; align-items: center; gap: 12px; }
.ev-level-badge {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 800;
  color: #180f07;
  background: linear-gradient(140deg, #fde68a, #f59e0b, #e08a3c);
  background-size: 200% 200%;
  border: 1px solid rgba(255, 220, 160, 0.6);
  animation: evBadge 4s ease-in-out infinite;
}
@keyframes evBadge {
  50% { background-position: 100% 100%; transform: translateY(-1px); }
}
.ev-level-main { flex: 1; min-width: 0; }
.ev-level-main b { display: block; font-size: 15px; font-weight: 800; }
.ev-level-main span { display: block; color: var(--faint); font-size: 11.5px; }
.ev-xp-chip {
  flex: none;
  padding: 6px 10px;
  border-radius: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #ffd9a3;
  background: rgba(224, 138, 60, 0.16);
  border: 1px solid rgba(224, 138, 60, 0.45);
}
.ev-bar {
  height: 8px;
  margin-top: 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.ev-bar i {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #e08a3c, #fbbf24, #fde68a);
  background-size: 200% 100%;
  animation: evBarShine 3s linear infinite;
  transition: width 0.5s ease;
}
@keyframes evBarShine {
  to { background-position: -200% 0; }
}

.ev-track {
  display: flex;
  gap: 7px;
  margin-top: 14px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ev-track::-webkit-scrollbar { display: none; }
.ev-cell {
  display: grid;
  gap: 2px;
  place-items: center;
  min-width: 44px;
  padding: 8px 4px 7px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(224, 138, 60, 0.18);
  flex: none;
}
.ev-cell b { font-family: var(--font-mono); font-size: 11.5px; font-weight: 800; color: rgba(255, 232, 205, 0.5); }
.ev-cell span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: #e879f9;
}
.ev-cell span svg { width: 10px; height: 10px; }
.ev-cell span i { font-style: normal; }
.ev-cell.milestone { border-color: rgba(224, 138, 60, 0.5); }
.ev-cell.done { background: rgba(224, 138, 60, 0.16); border-color: rgba(224, 138, 60, 0.55); }
.ev-cell.done b { color: #f7cf8b; }
.ev-cell.current {
  border-color: #fbbf24;
  background: linear-gradient(140deg, rgba(251, 191, 36, 0.28), rgba(224, 138, 60, 0.14));
  animation: evCellPulse 2.2s ease-in-out infinite;
}
.ev-cell.current b { color: #fff; }
@keyframes evCellPulse {
  50% { transform: translateY(-2px); box-shadow: 0 8px 20px -12px rgba(251, 191, 36, 0.9); }
}
.ev-cell.final { border-color: rgba(251, 191, 36, 0.75); }
.ev-cell.final span { color: #fbbf24; }
.ev-cell.final.done { background: linear-gradient(140deg, rgba(251, 191, 36, 0.3), rgba(224, 138, 60, 0.16)); }

.ev-final { margin-bottom: 4px; }
.ev-final-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background:
    radial-gradient(90% 130% at 8% 0%, rgba(251, 191, 36, 0.22), transparent 62%),
    linear-gradient(140deg, #2f1f0e, #1a1209 75%);
}
.ev-final-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 13px;
  color: #180f07;
  background: linear-gradient(140deg, #fde68a, #f59e0b);
  animation: evBadge 4s ease-in-out infinite;
}
.ev-final-ico svg { width: 19px; height: 19px; }
.ev-final-main { flex: 1; min-width: 0; }
.ev-final-main b { display: block; font-size: 13.5px; font-weight: 800; color: #ffe8cd; }
.ev-final-main span { display: block; color: rgba(255, 232, 205, 0.66); font-size: 11.5px; margin-top: 2px; }

.ev-reset { color: rgba(255, 232, 205, 0.45); font-size: 11px; font-weight: 700; font-family: var(--font-mono); }
.screen.ev-on .section-title { color: #f7cf8b; }

.ev-task {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px;
  border-radius: 15px;
  background: linear-gradient(160deg, rgba(224, 138, 60, 0.07), rgba(255, 255, 255, 0.012)), var(--panel);
  border: 1px solid rgba(224, 138, 60, 0.24);
}
.ev-task.ready { border-color: rgba(251, 191, 36, 0.6); }
.ev-task.claimed { opacity: 0.6; }
.ev-task-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  color: #f2b24b;
  background: rgba(224, 138, 60, 0.14);
  border: 1px solid rgba(224, 138, 60, 0.35);
}
.ev-task-ico svg { width: 18px; height: 18px; }
.ev-task-body { flex: 1; min-width: 0; }
.ev-task-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ev-task-top b { font-size: 13.5px; font-weight: 800; flex: 1; min-width: 0; }
.ev-tier {
  flex: none;
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tier, #a78bfa);
  border: 1px solid color-mix(in srgb, var(--tier, #a78bfa) 55%, transparent);
  background: color-mix(in srgb, var(--tier, #a78bfa) 14%, transparent);
}
.ev-task { border-left: 3px solid var(--tier, transparent); }

.ev-pack { display: grid; place-items: center; margin-bottom: 12px; }
.ev-pack-card {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: 5px;
  width: 100%;
  max-width: 330px;
  padding: 18px 16px 16px;
  border-radius: 18px;
  border: 1px solid rgba(224, 138, 60, 0.5);
  background: linear-gradient(160deg, #241608, #120b05);
  background-size: cover;
  text-align: center;
}
.ev-pack-card .cfx { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ev-pack-ava { position: relative; z-index: 1; display: grid; place-items: center; margin-bottom: 4px; }
.ev-pack-nick { position: relative; z-index: 1; font-size: 20px; font-weight: 800; }
.ev-pack-card .profile-title { position: relative; z-index: 1; }
.ev-pack-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; justify-content: center; }
.ev-pack-list span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 9px;
  font-size: 11.5px;
  font-weight: 700;
  color: #ffd9a3;
  background: rgba(224, 138, 60, 0.1);
  border: 1px solid rgba(224, 138, 60, 0.32);
}
.ev-pack-list svg { width: 13px; height: 13px; }

.ev-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 10px; }
.ev-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--tier, #a78bfa);
  border: 1px solid color-mix(in srgb, var(--tier, #a78bfa) 45%, transparent);
  background: color-mix(in srgb, var(--tier, #a78bfa) 10%, transparent);
}
.ev-legend-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tier, #a78bfa);
}
.ev-task-xp {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: #f2b24b;
}
.ev-task-bar { height: 6px; margin-top: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.ev-task-bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #e08a3c, #fbbf24);
  transition: width 0.4s ease;
}
.ev-task-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: rgba(255, 232, 205, 0.5);
  font-size: 11.5px;
  font-family: var(--font-mono);
}
.ev-done { color: #3ddc84; font-weight: 800; }
.ev-wait { color: rgba(255, 232, 205, 0.4); }

.ev-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  margin-bottom: 10px;
  border-radius: 16px;
  text-align: left;
  cursor: pointer;
  color: #ffe8cd;
  border: 1px solid rgba(224, 138, 60, 0.5);
  box-shadow: 0 16px 34px -26px rgba(224, 138, 60, 0.9);
  background:
    radial-gradient(90% 140% at 6% 0%, rgba(251, 191, 36, 0.26), transparent 62%),
    linear-gradient(140deg, #3f2714, #1d1208 72%);
}
.ev-banner-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  color: #180f07;
  background: linear-gradient(140deg, #fde68a, #f59e0b);
  animation: evBadge 4s ease-in-out infinite;
}
.ev-banner-ico svg { width: 18px; height: 18px; }
.ev-banner-body { flex: 1; min-width: 0; }
.ev-banner-body b { display: block; font-size: 14px; font-weight: 800; }
.ev-banner-body span { display: block; color: rgba(255, 232, 205, 0.68); font-size: 11.5px; margin-top: 2px; }
.ev-banner-go { display: grid; place-items: center; flex: none; color: rgba(255, 217, 163, 0.75); }
.ev-banner-go svg { width: 16px; height: 16px; }

/* gold buttons */

.btn.gold {
  color: #23160a;
  border: 1px solid rgba(255, 226, 165, 0.7);
  background: linear-gradient(140deg, #fde68a, #f59e0b 55%, #e08a3c);
  background-size: 180% 180%;
  box-shadow: 0 10px 24px -14px rgba(251, 191, 36, 0.9);
}
.btn.gold.shine { position: relative; overflow: hidden; }
.btn.gold.shine::after {
  content: '';
  position: absolute;
  top: -60%;
  bottom: -60%;
  width: 44px;
  left: -60px;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: rotate(12deg);
  animation: btnShine 2.6s ease-in-out infinite;
}
@keyframes btnShine {
  0% { left: -60px; }
  60%, 100% { left: calc(100% + 60px); }
}

/* golden nickname */

.nick-gold {
  background: linear-gradient(100deg, #f7cf8b 15%, #fff6d6 40%, #f0a63c 60%, #f7cf8b 85%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nickShine 4s linear infinite;
}
@keyframes nickShine {
  to { background-position: -240% 0; }
}

/* drawer hot item */

.drawer-item.is-hot {
  position: relative;
  color: #ffe8cd;
  background:
    radial-gradient(90% 140% at 4% 0%, rgba(251, 191, 36, 0.22), transparent 62%),
    linear-gradient(140deg, rgba(224, 138, 60, 0.18), rgba(224, 138, 60, 0.05));
  border: 1px solid rgba(224, 138, 60, 0.45);
}
.drawer-item.is-hot svg { color: #f2b24b; }
.drawer-hot {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #180f07;
  background: linear-gradient(140deg, #fde68a, #f59e0b);
  animation: evBadge 4s ease-in-out infinite;
}

/* countdown */

.ev-count {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.ev-count-cell {
  display: grid;
  gap: 1px;
  justify-items: center;
  padding: 8px 4px 7px;
  border-radius: 12px;
  background: rgba(10, 8, 5, 0.4);
  border: 1px solid rgba(224, 138, 60, 0.32);
}
.ev-count-cell b {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 800;
  color: #ffe8cd;
  line-height: 1.1;
}
.ev-count-cell span {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 232, 205, 0.55);
}

/* reward preview */

.ev-preview {
  position: relative;
  overflow: hidden;
  padding: 16px 15px 13px;
  margin-bottom: 4px;
  border-radius: 18px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background:
    radial-gradient(80% 130% at 10% 0%, rgba(251, 191, 36, 0.2), transparent 62%),
    linear-gradient(150deg, #2f1f0e, #191108 78%);
}
.ev-preview-glow {
  position: absolute;
  top: -40px;
  right: -30px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.32), transparent 70%);
  animation: evSun 5s ease-in-out infinite;
  pointer-events: none;
}
.ev-preview-head {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.ev-preview-head b { font-size: 14px; font-weight: 800; color: #ffe8cd; }
.ev-preview-head span { color: rgba(255, 232, 205, 0.55); font-size: 11px; }
.ev-preview-body {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}
.ev-preview-ava { display: grid; place-items: center; flex: none; }
.ev-preview-info { min-width: 0; }
.ev-preview-nick { display: block; font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.ev-preview-sub { display: block; margin-top: 4px; color: rgba(255, 232, 205, 0.62); font-size: 11.5px; line-height: 1.45; }
.ev-preview-left {
  position: relative;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(224, 138, 60, 0.28);
  color: #f2b24b;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
}

.ev-claim-all {
  margin-left: auto;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.5);
  background: rgba(224, 138, 60, 0.16);
  color: #f7cf8b;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.ev-up-preview { position: relative; margin-bottom: 12px; }

/* level up modal */

.ev-up { position: relative; overflow: hidden; display: grid; justify-items: center; text-align: center; }
.ev-up-leaves { position: absolute; inset: -20px 0 auto; height: 190px; pointer-events: none; }
.ev-up-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin-bottom: 12px;
  border-radius: 50%;
  color: #180f07;
  background: linear-gradient(140deg, #fde68a, #f59e0b, #e08a3c);
  animation: evUpPop 0.6s cubic-bezier(0.2, 1.6, 0.4, 1), evBadge 4s ease-in-out infinite;
}
.ev-up-ring svg { width: 29px; height: 29px; }
@keyframes evUpPop { from { transform: scale(0.4); opacity: 0; } }
.ev-up-title { position: relative; font-size: 21px; font-weight: 800; margin-bottom: 8px; }
.ev-up-rewards { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 6px; }
.ev-up-rewards span {
  padding: 7px 11px;
  border-radius: 10px;
  background: rgba(224, 138, 60, 0.12);
  border: 1px solid rgba(224, 138, 60, 0.4);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
}
.ev-up-note { position: relative; color: var(--faint); font-size: 11.5px; margin-bottom: 12px; }

/* promo label under avatar */

.avatar .av-canvas {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}
.avatar.canvas-frame::before,
.avatar.canvas-frame::after,
.avatar.canvas-frame .av-fx::before,
.avatar.canvas-frame .av-fx::after { display: none; }

.avatar .av-label {
  position: absolute;
  left: 50%;
  top: 100%;
  z-index: 3;
  transform: translate(-50%, 0.06em);
  font-size: 0.6em;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.avatar .av-label.lava {
  background: linear-gradient(100deg, #ffd166, #ff7a18 40%, #ff3d00 60%, #ffd166);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: nickShine 3.6s linear infinite;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65));
}
.avatar .av-label.pink {
  background: linear-gradient(100deg, #ffd6ef, #ff6fc1 40%, #d946ef 60%, #ffd6ef);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: nickShine 3.6s linear infinite;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65));
}

/* promo frame: nyankos — лавовая корка и искры вверх */

.avatar.frame-frame-nyankos {
  border-color: transparent;
  box-shadow: 0 8px 20px -12px rgba(255, 90, 20, 0.9);
}
.avatar.frame-frame-nyankos::before {
  inset: -5px;
  z-index: -1;
  background: conic-gradient(
    #1a0a04, #ff3d00 7%, #7a1a05 14%, #ffb703 22%, #2a0d05 31%,
    #ff6b00 44%, #4a1206 53%, #ffd166 63%, #1a0a04 74%, #ff3d00 88%, #1a0a04);
  animation: spin 12s linear infinite;
}
.avatar.frame-frame-nyankos::after {
  inset: -7.5px;
  border: 2px dotted rgba(255, 190, 90, 0.7);
  animation: spin 24s linear infinite reverse, lavaFlicker 1.8s ease-in-out infinite;
}
.avatar.frame-frame-nyankos .av-fx::before {
  inset: -10px;
  background:
    radial-gradient(circle at 24% 92%, #ffd166 1.7px, transparent 2.7px),
    radial-gradient(circle at 78% 95%, #ff6b00 1.5px, transparent 2.5px),
    radial-gradient(circle at 50% 88%, #ffe9a8 1.4px, transparent 2.4px);
  animation: lavaEmber 3.4s ease-in infinite;
}
.avatar.frame-frame-nyankos .av-fx::after {
  inset: -9px;
  background:
    radial-gradient(circle at 32% 90%, #ffb703 1.6px, transparent 2.6px),
    radial-gradient(circle at 68% 93%, #ff3d00 1.4px, transparent 2.4px);
  animation: lavaEmber 4.8s ease-in infinite;
  animation-delay: 1.6s;
}

@keyframes lavaEmber {
  0% { transform: translateY(0.5em) scale(0.85); opacity: 0; }
  22% { opacity: 1; }
  100% { transform: translateY(-0.85em) scale(1.08); opacity: 0; }
}
@keyframes lavaFlicker {
  50% { opacity: 0.4; }
}

/* promo frame: sheeon — жемчужный обод и мерцающие звёзды */

.avatar.frame-frame-sheeon {
  border-color: transparent;
  box-shadow: 0 8px 20px -12px rgba(255, 111, 193, 0.85);
}
.avatar.frame-frame-sheeon::before {
  inset: -5px;
  z-index: -1;
  background: conic-gradient(from 200deg,
    #ff8ad4, #ffd6ef 16%, #ff6fc1 32%, #c026d3 50%, #ffd6ef 68%, #ff6fc1 84%, #ff8ad4);
  animation: spin 10s linear infinite;
}
.avatar.frame-frame-sheeon::after {
  inset: -6.5px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 1px rgba(255, 182, 226, 0.45);
  animation: none;
}
.avatar.frame-frame-sheeon .av-fx::before {
  inset: -9px;
  background:
    radial-gradient(circle at 50% 2%, #ffffff 1.9px, transparent 2.9px),
    radial-gradient(circle at 96% 30%, #ffd6ef 1.7px, transparent 2.7px),
    radial-gradient(circle at 4% 34%, #ff8ad4 1.7px, transparent 2.7px),
    radial-gradient(circle at 82% 88%, #ffffff 1.6px, transparent 2.6px),
    radial-gradient(circle at 18% 86%, #ffd6ef 1.6px, transparent 2.6px);
  animation: sheenTwinkle 2.6s ease-in-out infinite;
}
.avatar.frame-frame-sheeon .av-fx::after {
  inset: -7.5px;
  background: conic-gradient(from 0deg, transparent 0 80%, rgba(255, 255, 255, 0.92) 94%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.4px));
  animation: spin 3.6s linear infinite;
}

@keyframes sheenTwinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.97); }
  50% { opacity: 1; transform: scale(1.07); }
}

/* autumn frame: полированное золото + крупные листья + листопад */

.avatar.frame-frame-autumn {
  border-color: transparent;
  box-shadow:
    0 10px 24px -16px rgba(224, 138, 60, 0.95),
    0 0 0 1px rgba(255, 236, 190, 0.22);
}
.avatar.frame-frame-autumn::before {
  inset: -5px;
  z-index: -1;
  background: conic-gradient(from 0deg,
    #fff3d6, #f7cf8b 10%, #e08a3c 24%, #a3540c 36%,
    #fbbf24 50%, #e08a3c 62%, #8a3d0a 74%, #f7cf8b 88%, #fff3d6);
  animation: spin 12s linear infinite;
}
.avatar.frame-frame-autumn::after {
  inset: -7.5px;
  background: conic-gradient(from 0deg, transparent 0 76%, rgba(255, 246, 214, 0.9) 91%, #ffffff 99%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.2px), #000 calc(100% - 1.6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.2px), #000 calc(100% - 1.6px));
  animation: spin 3.2s linear infinite;
}

/* два крупных листа плывут по орбите */

.avatar.frame-frame-autumn .av-fx::before {
  inset: auto;
  top: 50%;
  left: 50%;
  width: 0.8em;
  height: 0.8em;
  margin: -0.4em 0 0 -0.4em;
  background: transparent;
  border-radius: 0 100% 0 100%;
  box-shadow:
    0 -2.05em 0 -0.08em #f0a63c,
    0 2.05em 0 -0.08em #c2410c;
  opacity: 1;
  animation: spin 26s linear infinite;
}

/* листья опадают на аватар */

.avatar.frame-frame-autumn .av-fx::after {
  inset: auto;
  left: 24%;
  top: 22%;
  width: 0.72em;
  height: 0.72em;
  margin: -0.36em 0 0 -0.36em;
  background: linear-gradient(135deg, #ffe6ad, #f0a63c 52%, #b45309);
  border-radius: 0 100% 0 100%;
  box-shadow: 1.5em 0.9em 0 -0.22em #d97706;
  opacity: 1;
  animation: autumnDrop 6.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite;
}

@keyframes autumnDrop {
  0% { transform: translate(-0.5em, -1.1em) rotate(-20deg); opacity: 0; }
  14% { opacity: 1; }
  62% { transform: translate(0.5em, 0.7em) rotate(140deg); opacity: 1; }
  100% { transform: translate(1.1em, 1.9em) rotate(300deg); opacity: 0; }
}

/* ---------- custom: карточка и оформление ---------- */

.profile-card { position: relative; overflow: hidden; }
.profile-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 0;
}
.profile-card > * { position: relative; z-index: 1; }

.profile-card.cardfx-holo::after {
  opacity: 1;
  background:
    linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.16) 45%, transparent 60%),
    conic-gradient(from 0deg, rgba(255,120,220,0.16), rgba(120,200,255,0.16), rgba(180,255,180,0.14), rgba(255,230,140,0.16), rgba(255,120,220,0.16));
  background-size: 260% 100%, 200% 200%;
  animation: holoSweep 5s linear infinite, holoSpin 14s linear infinite;
}
@keyframes holoSweep { to { background-position: -260% 0, 0 0; } }
@keyframes holoSpin { to { background-position: 0 0, 200% 200%; } }

.profile-card.cardfx-gold::after {
  opacity: 1;
  background: linear-gradient(115deg, transparent 32%, rgba(255,226,150,0.28) 48%, transparent 62%);
  background-size: 240% 100%;
  animation: holoSweep 4s linear infinite;
}

.profile-card.cardfx-sparks::after {
  opacity: 1;
  background:
    radial-gradient(circle at 12% 24%, #fff 1.5px, transparent 2.4px),
    radial-gradient(circle at 78% 62%, #ffe9a8 1.4px, transparent 2.2px),
    radial-gradient(circle at 42% 86%, #fff 1.3px, transparent 2.1px),
    radial-gradient(circle at 88% 18%, #ffd166 1.2px, transparent 2px),
    radial-gradient(circle at 26% 68%, #fff 1.2px, transparent 2px);
  animation: cardTwinkle 2.6s ease-in-out infinite;
}
@keyframes cardTwinkle {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.profile-card.cardfx-frost::after {
  opacity: 1;
  background:
    radial-gradient(120% 80% at 15% 0%, rgba(180,230,255,0.22), transparent 60%),
    linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
  background-size: 100% 100%, 220% 100%;
  animation: holoSweep 6s linear infinite;
}

.profile-card.cardfx-contrast::after {
  opacity: 1;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 8px, transparent 8px 16px);
}

.profile-card.cardfx-scan::after,
.shop-fx-view.cardfx-scan::after {
  opacity: 1;
  background: linear-gradient(180deg, transparent 0%, rgba(56,189,248,0.35) 48%, transparent 52%);
  background-size: 100% 220%;
  animation: cardScan 3.2s linear infinite;
}
@keyframes cardScan {
  0% { background-position: 0 -110%; }
  100% { background-position: 0 110%; }
}

.profile-card.cardfx-grid::after,
.shop-fx-view.cardfx-grid::after {
  opacity: 1;
  background:
    linear-gradient(rgba(34,211,238,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,0.12) 1px, transparent 1px);
  background-size: 18px 18px;
  animation: cardGrid 6s linear infinite;
}
@keyframes cardGrid {
  to { background-position: 18px 18px, 18px 18px; }
}

/* анимированные фоны карточки */

.profile-card .cfx,
.shop-bg-view .cfx,
.guide-bg .cfx {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.shop-bg-view, .guide-bg { position: relative; overflow: hidden; }
.shop-bg-view > span, .guide-bg > b, .guide-bg > span { position: relative; z-index: 1; }

@keyframes bgDrift {
  to { background-position: 70px 120px, 130px 180px; }
}
@keyframes bgFall {
  0% { background-position: 0 -60px, 40px -120px; }
  100% { background-position: 20px 160px, 0 220px; }
}
@keyframes bgRise {
  0% { background-position: 0 160px, 50px 220px; }
  100% { background-position: 30px -60px, 0 -120px; }
}
@keyframes bgTwinkle {
  50% { opacity: 0.35; }
}
@keyframes bgSlide {
  0% { transform: translateX(-4%); }
  100% { transform: translateX(4%); }
}
@keyframes bgSweep {
  0% { background-position: -160% 0, 0 0, 0 0; }
  100% { background-position: 260% 0, 0 0, 0 0; }
}

/* звёзды */
.cardbg-stars .cfx.a {
  background-image:
    radial-gradient(circle, #ffffff 1.3px, transparent 2px),
    radial-gradient(circle, #cfe4ff 1.1px, transparent 1.8px);
  background-size: 130px 130px, 190px 190px;
  animation: bgDrift 30s linear infinite, bgTwinkle 3.6s ease-in-out infinite;
}
.cardbg-stars .cfx.b {
  background-image:
    radial-gradient(circle, #e9d5ff 1.6px, transparent 2.6px),
    radial-gradient(circle, #a5f3fc 1.2px, transparent 2px);
  background-size: 240px 240px, 320px 320px;
  animation: bgDrift 54s linear infinite reverse;
  opacity: 0.75;
}

/* снег */
.cardbg-snow .cfx.a {
  background-image:
    radial-gradient(circle, #ffffff 1.6px, transparent 2.4px),
    radial-gradient(circle, #dff3ff 1.2px, transparent 2px);
  background-size: 100px 100px, 150px 150px;
  animation: bgFall 11s linear infinite;
}
.cardbg-snow .cfx.b {
  background-image: radial-gradient(circle, rgba(255,255,255,0.65) 1px, transparent 1.7px);
  background-size: 70px 70px;
  animation: bgFall 7s linear infinite reverse;
  opacity: 0.6;
}

/* угли */
.cardbg-embers .cfx.a {
  background-image:
    radial-gradient(circle, #ffd166 1.7px, transparent 2.6px),
    radial-gradient(circle, #ff6b00 1.4px, transparent 2.3px);
  background-size: 110px 110px, 160px 160px;
  animation: bgRise 8s linear infinite;
}
.cardbg-embers .cfx.b {
  background-image: radial-gradient(circle, rgba(255,180,70,0.7) 1.1px, transparent 1.9px);
  background-size: 80px 80px;
  animation: bgRise 12s linear infinite reverse;
  opacity: 0.7;
}

/* листья */
.cardbg-leaves .cfx.a {
  background-image:
    radial-gradient(circle, #f2b24b 2.2px, transparent 3.2px),
    radial-gradient(circle, #c2410c 1.7px, transparent 2.7px);
  background-size: 135px 135px, 185px 185px;
  animation: bgFall 15s linear infinite;
}
.cardbg-leaves .cfx.b {
  background-image: radial-gradient(circle, rgba(251,191,36,0.75) 1.3px, transparent 2.2px);
  background-size: 95px 95px;
  animation: bgFall 10s linear infinite reverse;
  opacity: 0.75;
}

/* волны */
.cardbg-waves .cfx.a {
  left: -10%;
  width: 120%;
  background-image: radial-gradient(70% 40% at 25% 110%, rgba(56,189,248,0.32), transparent 70%);
  animation: bgSlide 9s ease-in-out infinite alternate;
}
.cardbg-waves .cfx.b {
  left: -10%;
  width: 120%;
  background-image: radial-gradient(60% 36% at 70% 115%, rgba(15,118,110,0.38), transparent 72%);
  animation: bgSlide 13s ease-in-out infinite alternate-reverse;
}

/* блик */
.cardbg-shine .cfx.a {
  background-image: linear-gradient(115deg, transparent 42%, rgba(255,255,255,0.14) 50%, transparent 58%);
  background-size: 240% 100%;
  background-repeat: no-repeat;
  animation: bgSweep 6.5s linear infinite;
}

/* энергия */
.cardbg-energy .cfx.a {
  background-image:
    radial-gradient(circle, #a78bfa 1.7px, transparent 2.6px),
    radial-gradient(circle, #22d3ee 1.4px, transparent 2.3px);
  background-size: 120px 120px, 170px 170px;
  animation: bgDrift 20s linear infinite;
}
.cardbg-energy .cfx.b {
  background-image: radial-gradient(60% 70% at 50% 50%, rgba(139,92,246,0.22), transparent 72%);
  animation: evSun 7s ease-in-out infinite;
}

/* сердечки */
.cardbg-hearts .cfx.a {
  background-image:
    radial-gradient(circle, rgba(255,140,210,0.95) 2px, transparent 3px),
    radial-gradient(circle, rgba(255,214,239,0.85) 1.5px, transparent 2.5px);
  background-size: 125px 125px, 175px 175px;
  animation: bgRise 12s linear infinite;
}
.cardbg-hearts .cfx.b {
  background-image: radial-gradient(circle, rgba(217,70,239,0.7) 1.2px, transparent 2px);
  background-size: 90px 90px;
  animation: bgRise 16s linear infinite reverse;
  opacity: 0.7;
}

/* стили ника */

.nick-neon {
  background: linear-gradient(100deg, #ff6fc1 10%, #22d3ee 45%, #a855f7 70%, #ff6fc1 95%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nickShine 3.2s linear infinite;
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.45));
}
.nick-ice {
  background: linear-gradient(100deg, #eaf9ff 15%, #7dd3fc 40%, #bae6fd 60%, #eaf9ff 88%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nickShine 4.4s linear infinite;
  filter: drop-shadow(0 0 5px rgba(125, 211, 252, 0.5));
}
.nick-fire {
  background: linear-gradient(100deg, #ffd166 12%, #ff7a18 38%, #ff3d00 58%, #ffd166 88%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nickShine 2.4s linear infinite, nickFlicker 1.3s ease-in-out infinite;
}
@keyframes nickFlicker {
  50% { opacity: 0.82; }
}
.nick-pixel {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  color: #ffe9a8;
  text-shadow: 2px 2px 0 #8a6208, -1px -1px 0 rgba(0, 0, 0, 0.6);
}
.nick-rainbow {
  background: linear-gradient(100deg, #ff5f6d, #ffc371, #47e891, #4dd0ff, #a855f7, #ff5f6d);
  background-size: 320% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nickShine 5s linear infinite;
}
.nick-yui {
  background: linear-gradient(100deg, #ffe4f4 10%, #ff8ad4 36%, #c084fc 58%, #67e8f9 80%, #ffe4f4 95%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nickShine 3s linear infinite;
  filter: drop-shadow(0 0 6px rgba(255, 138, 212, 0.6));
}

.avatar .av-label.anime {
  background: linear-gradient(100deg, #ffe4f4, #ff8ad4 35%, #c084fc 60%, #67e8f9 85%, #ffe4f4);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: nickShine 3.2s linear infinite;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65));
}

/* сакура: фон и эффект */

.profile-card.cardbg-sakura::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(26% 26% at 80% 12%, rgba(255, 232, 247, 0.85), rgba(255, 150, 220, 0.32) 45%, transparent 72%);
  animation: sakuraMoon 6.4s ease-in-out infinite;
}
.shop-bg-view.cardbg-sakura::before,
.guide-bg.cardbg-sakura::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(30% 30% at 80% 14%, rgba(255, 232, 247, 0.8), rgba(255, 150, 220, 0.28) 45%, transparent 72%);
}
@keyframes sakuraMoon {
  50% { opacity: 0.62; transform: scale(1.06); }
}
.cardbg-sakura .cfx.a {
  background-image:
    radial-gradient(ellipse 3.4px 2.1px at center, #ffc2e8 58%, transparent 60%),
    radial-gradient(ellipse 2.5px 1.6px at center, #ff8ad4 58%, transparent 60%),
    radial-gradient(ellipse 1.9px 1.3px at center, #ffe4f4 58%, transparent 60%);
  background-size: 150px 150px, 205px 205px, 115px 115px;
  animation: bgFall 17s linear infinite, bgSwayX 9s ease-in-out infinite alternate;
}
.cardbg-sakura .cfx.b {
  background-image:
    radial-gradient(circle, rgba(255, 214, 239, 0.9) 1.6px, transparent 2.6px),
    radial-gradient(circle, rgba(165, 243, 252, 0.65) 1.2px, transparent 2.2px);
  background-size: 120px 120px, 175px 175px;
  animation: bgRise 13s linear infinite, bgTwinkle 3.6s ease-in-out infinite;
  opacity: 0.8;
}
@keyframes bgSwayX {
  from { transform: translateX(-9px); }
  to { transform: translateX(9px); }
}

.profile-card.cardfx-yui::after,
.shop-fx-view.cardfx-yui::after {
  opacity: 1;
  background-image:
    radial-gradient(circle, #ffb6e2 2.6px, transparent 3.6px),
    radial-gradient(circle, #ff8ad4 2px, transparent 3px),
    radial-gradient(circle, #ffe4f4 1.5px, transparent 2.4px);
  background-size: 150px 150px, 200px 200px, 105px 105px;
  animation: bgFall 14s linear infinite;
}

.nick-nyankos {
  background: linear-gradient(100deg, #d7e6ff 10%, #8b5cf6 38%, #22d3ee 62%, #d7e6ff 92%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nickShine 3.4s linear infinite;
  filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.55));
}
.nick-sheeon {
  background: linear-gradient(100deg, #ffe4f4 12%, #ff6fc1 40%, #d946ef 62%, #ffe4f4 90%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nickShine 3.4s linear infinite;
  filter: drop-shadow(0 0 6px rgba(255, 111, 193, 0.55));
}

/* промо-набор */

.promo-reveal { position: relative; overflow: hidden; display: grid; justify-items: center; text-align: center; }
.promo-glow {
  position: absolute;
  inset: -70px -50px auto;
  height: 210px;
  pointer-events: none;
  background: radial-gradient(50% 60% at 50% 35%, rgba(139, 92, 246, 0.3), transparent 70%);
  animation: claimGlow 3s ease-in-out infinite;
}
.promo-badge {
  position: relative;
  padding: 4px 11px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffd9a3;
  background: rgba(224, 138, 60, 0.14);
  border: 1px solid rgba(224, 138, 60, 0.45);
}
.promo-title {
  position: relative;
  margin: 10px 0 12px;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(100deg, #fff3e0 20%, #fbbf24 48%, #fff3e0 76%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nickShine 4.5s linear infinite;
}
.promo-frame-view {
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  animation: evUpPop 0.6s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.promo-items { position: relative; display: grid; gap: 10px; width: 100%; margin-bottom: 14px; }
.promo-item { display: grid; gap: 7px; text-align: left; }
.promo-item > b {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.promo-coins {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.promo-coins span {
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--panel-2);
  border: 1px solid var(--border-2);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: #f2b24b;
}

/* эффекты промо-карточек */

.profile-card.cardfx-autumn::after,
.shop-fx-view.cardfx-autumn::after {
  opacity: 1;
  background-image:
    radial-gradient(circle, #f2b24b 2.2px, transparent 3.2px),
    radial-gradient(circle, #c2410c 1.7px, transparent 2.7px),
    radial-gradient(circle, #fbbf24 1.4px, transparent 2.4px);
  background-size: 130px 130px, 180px 180px, 90px 90px;
  animation: bgFall 12s linear infinite;
}

.profile-card.cardfx-ruby::after,
.shop-fx-view.cardfx-ruby::after {
  opacity: 1;
  background:
    radial-gradient(circle at 15% 25%, #fb7185 1.9px, transparent 2.9px),
    radial-gradient(circle at 72% 68%, #e11d48 1.6px, transparent 2.6px),
    radial-gradient(circle at 44% 88%, #ffffff 1.4px, transparent 2.4px),
    radial-gradient(circle at 86% 20%, #ff7a90 1.4px, transparent 2.4px);
  animation: cardTwinkle 2.2s ease-in-out infinite;
}

.profile-card.cardfx-coin::after,
.shop-fx-view.cardfx-coin::after {
  opacity: 1;
  background-image:
    radial-gradient(circle, #f5c04e 2.2px, transparent 3.2px),
    radial-gradient(circle, #fff6d6 1.6px, transparent 2.6px),
    radial-gradient(circle, #c98a00 1.4px, transparent 2.4px);
  background-size: 120px 120px, 90px 90px, 160px 160px;
  animation: bgFall 11s linear infinite;
}

.profile-card.cardfx-nyankos::after,
.shop-fx-view.cardfx-nyankos::after {
  opacity: 1;
  background:
    radial-gradient(circle at 15% 25%, #a78bfa 1.6px, transparent 2.6px),
    radial-gradient(circle at 72% 68%, #22d3ee 1.4px, transparent 2.4px),
    radial-gradient(circle at 44% 88%, #fff 1.3px, transparent 2.3px),
    radial-gradient(circle at 86% 20%, #8b5cf6 1.3px, transparent 2.3px);
  animation: cardTwinkle 2.4s ease-in-out infinite;
}
.profile-card.cardfx-sheeon::after,
.shop-fx-view.cardfx-sheeon::after {
  opacity: 1;
  background:
    radial-gradient(circle at 18% 30%, #ffd6ef 1.6px, transparent 2.6px),
    radial-gradient(circle at 76% 62%, #ff6fc1 1.5px, transparent 2.5px),
    radial-gradient(circle at 46% 86%, #fff 1.3px, transparent 2.3px),
    radial-gradient(circle at 84% 22%, #d946ef 1.3px, transparent 2.3px);
  animation: cardTwinkle 2.8s ease-in-out infinite;
}

.profile-time {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.profile-time-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 13px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  text-align: left;
}
.profile-time-ico {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 10px;
  color: #ffe8cd;
  background: rgba(224, 138, 60, 0.14);
  border: 1px solid rgba(224, 138, 60, 0.32);
}
.profile-time-ico svg { width: 16px; height: 16px; }
.profile-time-main { min-width: 0; }
.profile-time-main b {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
}
.profile-time-main small {
  display: block;
  color: var(--faint);
  font-size: 10.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.profile-title {
  padding: 4px 11px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffd9a3;
  background: rgba(224, 138, 60, 0.12);
  border: 1px solid rgba(224, 138, 60, 0.4);
}
.profile-badges { display: inline-flex; gap: 5px; }
.profile-badge {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  color: #180f07;
  background: linear-gradient(140deg, #fde68a, #f59e0b);
}
.profile-badge svg { width: 13px; height: 13px; }

.cust-tabs {
  display: flex;
  gap: 6px;
  margin: 14px 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cust-tabs::-webkit-scrollbar { display: none; }
.cust-tab {
  flex: none;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}
.cust-tab.active { border-color: var(--accent); color: #fff; background: var(--accent-soft); }

.cust-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cust-chip {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  text-align: left;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
}
.cust-chip b { font-size: 12.5px; font-weight: 800; }
.cust-chip span { color: var(--faint); font-size: 10.5px; }
.cust-chip.active { border-color: var(--accent); background: var(--accent-soft); }
.cust-chip.locked { opacity: 0.5; cursor: not-allowed; }

.cust-bgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 9px; }
.cust-bg {
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: inherit;
}
.cust-bg-view { display: block; height: 46px; border-radius: 9px; border: 1px solid var(--border-2); }
.cust-bg b { font-size: 12px; font-weight: 800; }
.cust-bg span { color: var(--faint); font-size: 10.5px; }
.cust-bg.active { border-color: var(--accent); background: var(--accent-soft); }
.cust-bg.locked { opacity: 0.5; cursor: not-allowed; }

.cust-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.cust-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
  text-align: left;
}
.cust-badge-ico {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 9px;
  color: var(--faint);
  background: var(--panel-3);
}
.cust-badge-ico svg { width: 14px; height: 14px; }
.cust-badge b { font-size: 12px; font-weight: 800; }
.cust-badge.active { border-color: #f59e0b; background: rgba(245, 158, 11, 0.1); }
.cust-badge.active .cust-badge-ico { color: #180f07; background: linear-gradient(140deg, #fde68a, #f59e0b); }
.cust-note { color: var(--faint); font-size: 11.5px; line-height: 1.5; margin-bottom: 10px; }

/* ---------- гид ---------- */

.guide-hero {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  margin-bottom: 12px;
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background:
    radial-gradient(90% 130% at 6% 0%, rgba(59, 130, 246, 0.22), transparent 62%),
    linear-gradient(140deg, #16203a, #0d1220 75%);
}
.guide-hero-ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 13px;
  color: #cfe4ff;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.5);
}
.guide-hero-ico svg { width: 20px; height: 20px; }
.guide-hero b { display: block; font-size: 14.5px; font-weight: 800; color: #eaf2ff; }
.guide-hero span { display: block; color: rgba(210, 228, 255, 0.68); font-size: 11.5px; margin-top: 3px; line-height: 1.5; }

.guide-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.guide-tabs::-webkit-scrollbar { display: none; }
.guide-tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}
.guide-tab b {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--faint);
  font-weight: 700;
}
.guide-tab.active { border-color: var(--accent); color: #fff; background: var(--accent-soft); }
.guide-tab.active b { color: #cfe4ff; }

.guide-list { display: grid; gap: 9px; }
.guide-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
}
.guide-num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  color: #cfe4ff;
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.4);
}
.guide-item b { display: block; font-size: 13.5px; font-weight: 800; margin-bottom: 3px; }
.guide-item span { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }

.guide-ach { display: grid; gap: 8px; margin-bottom: 6px; }
.guide-ach-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 13px;
  background: var(--panel);
  border: 1px solid var(--border);
  opacity: 0.62;
}
.guide-ach-item.done {
  opacity: 1;
  border-color: rgba(245, 192, 78, 0.4);
  background: linear-gradient(160deg, rgba(245, 192, 78, 0.08), rgba(255, 255, 255, 0.012)), var(--panel);
}
.guide-ach-ico {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 10px;
  color: var(--faint);
  background: var(--panel-3);
  border: 1px solid var(--border-2);
}
.guide-ach-ico svg { width: 16px; height: 16px; }
.guide-ach-item.done .guide-ach-ico { color: #180f07; background: linear-gradient(140deg, #fde68a, #f59e0b); border-color: rgba(255, 226, 165, 0.7); }
.guide-ach-item b { display: block; font-size: 13px; font-weight: 800; }
.guide-ach-item span { display: block; color: var(--faint); font-size: 11.5px; line-height: 1.45; margin-top: 2px; }
.guide-ach-item i { display: inline-block; margin-top: 4px; margin-right: 8px; font-style: normal; font-family: var(--font-mono); font-size: 10.5px; color: #f2b24b; }
.guide-ach-item i.rub { color: #e879f9; }
.guide-ach-item.secret .guide-ach-ico { color: #a78bfa; border-color: rgba(167, 139, 250, 0.4); }

.guide-note { color: var(--faint); font-size: 11.5px; line-height: 1.55; margin: -4px 0 12px; }

.guide-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 11px; }
.gframe {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
}
.gframe.has { border-color: rgba(46, 229, 157, 0.32); }
.gframe-view {
  position: relative;
  display: grid;
  place-items: center;
  padding: 26px 14px 18px;
  background:
    radial-gradient(80% 110% at 50% 0%, rgba(255, 255, 255, 0.055), transparent 70%),
    var(--panel-2);
}
.gframe-rarity {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid;
}
.gframe-body { display: grid; gap: 7px; align-content: start; padding: 12px 13px 13px; }
.gframe-body > b {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
}
.gframe-body > b i.own {
  font-style: normal;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--up);
  background: rgba(46, 229, 157, 0.12);
  border: 1px solid rgba(46, 229, 157, 0.4);
}
.gframe-desc { color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.gframe-how {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffd9a3;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}
.gframe-how svg { width: 12px; height: 12px; flex: none; }
.gframe-lock {
  font-size: 11px;
  font-weight: 700;
  color: var(--faint);
  padding-top: 2px;
}
.gframe .btn { justify-self: start; }

.guide-frames { display: grid; gap: 8px; }
.guide-frame {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 13px;
  background: var(--panel);
  border: 1px solid var(--border);
}
.guide-frame.done { border-color: rgba(61, 220, 132, 0.4); }
.guide-frame-dot {
  width: 14px;
  height: 14px;
  flex: none;
  border-radius: 50%;
  background: var(--fc, var(--accent));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fc, var(--accent)) 20%, transparent);
}
.guide-frame b { font-size: 13px; font-weight: 800; }
.guide-frame b i.own { font-style: normal; font-size: 10px; color: var(--up); margin-left: 6px; }
.guide-frame span { display: block; color: var(--faint); font-size: 11.5px; margin-top: 2px; }

.guide-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-tag {
  display: grid;
  gap: 2px;
  padding: 9px 11px;
  border-radius: 11px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--faint);
  font-size: 12.5px;
  font-weight: 800;
  opacity: 0.6;
}
.guide-tag.on { opacity: 1; color: var(--text); border-color: rgba(46, 229, 157, 0.35); }
.guide-tag i { font-style: normal; font-weight: 600; font-size: 10.5px; color: var(--faint); }

.guide-bgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 9px; }
.guide-bg {
  position: relative;
  overflow: hidden;
  min-height: 74px;
  display: grid;
  align-content: end;
  gap: 2px;
  padding: 10px;
  border-radius: 13px;
  border: 1px solid var(--border);
  opacity: 0.55;
}
.guide-bg.on { opacity: 1; border-color: rgba(46, 229, 157, 0.35); }
.guide-bg b { font-size: 12.5px; font-weight: 800; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.guide-bg span { font-size: 10.5px; color: rgba(255, 255, 255, 0.7); text-shadow: 0 1px 5px rgba(0, 0, 0, 0.6); }

/* ---------- achievements ---------- */

.ach-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
}
.ach-hero-ring {
  position: relative;
  width: 68px;
  height: 68px;
  flex: none;
  display: grid;
  place-items: center;
}
.ach-hero-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ach-hero-ring b {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  color: #fbbf24;
}
.ach-hero-main { min-width: 0; }
.ach-hero-main b { display: block; font-size: 15px; font-weight: 800; }
.ach-hero-main span { display: block; margin-top: 3px; color: var(--faint); font-size: 11.5px; line-height: 1.5; }

.ach-count {
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}
.ach-card {
  display: grid;
  gap: 4px;
  padding: 13px 12px 11px;
  border-radius: 15px;
  background: var(--panel);
  border: 1px solid var(--border);
  opacity: 0.62;
}
.ach-card.done {
  opacity: 1;
  border-color: rgba(251, 191, 36, 0.42);
  background:
    radial-gradient(90% 130% at 8% 0%, rgba(251, 191, 36, 0.14), transparent 62%),
    var(--panel);
}
.ach-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 3px;
  border-radius: 11px;
  color: var(--faint);
  background: var(--panel-3);
  border: 1px solid var(--border-2);
}
.ach-ico svg { width: 17px; height: 17px; }
.ach-card.done .ach-ico {
  color: #180f07;
  background: linear-gradient(140deg, #fde68a, #f59e0b);
  border-color: rgba(255, 226, 165, 0.7);
  animation: evBadge 5s ease-in-out infinite;
}
.ach-title { font-size: 13.5px; font-weight: 800; }
.ach-desc { color: var(--faint); font-size: 11px; line-height: 1.45; min-height: 30px; }
.ach-bar { height: 5px; margin-top: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.ach-bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #e08a3c, #fbbf24);
  transition: width 0.4s ease;
}
.ach-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--faint);
}
.ach-reward { display: inline-flex; align-items: center; gap: 6px; }
.ach-reward b { font-weight: 700; color: #f2b24b; }
.ach-reward svg { width: 10px; height: 10px; vertical-align: -1px; }
.ach-date { color: rgba(251, 191, 36, 0.6); font-size: 10px; font-family: var(--font-mono); }

.ach-teaser {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  margin-top: 14px;
  padding: 13px 14px;
  text-align: left;
  cursor: pointer;
}
.ach-teaser-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  color: #180f07;
  background: linear-gradient(140deg, #fde68a, #f59e0b);
  animation: evBadge 5s ease-in-out infinite;
}
.ach-teaser-ico svg { width: 18px; height: 18px; }
.ach-teaser-main { flex: 1; min-width: 0; }
.ach-teaser-main b { display: block; font-size: 14px; font-weight: 800; }
.ach-teaser-main span { display: block; color: var(--faint); font-size: 11.5px; margin-top: 2px; }
.ach-teaser-go { display: grid; place-items: center; flex: none; color: var(--faint); }
.ach-teaser-go svg { width: 16px; height: 16px; }

/* ---------- гильдии 2.0 ---------- */

.guild-hero2 {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border-2);
  margin-bottom: 12px;
  min-height: 168px;
  display: flex;
  align-items: flex-end;
}
.guild-hero-cover {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 120% at 12% 0%, rgba(59, 130, 246, 0.28), transparent 60%),
    linear-gradient(140deg, #1a2136, #0e1220 70%);
  background-size: cover;
  background-position: center;
}
.guild-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 10, 16, 0.92) 10%, rgba(8, 10, 16, 0.35) 60%, rgba(8, 10, 16, 0.45));
}
.guild-hero-body { position: relative; padding: 16px; display: grid; gap: 5px; }
.guild-hero-tag {
  justify-self: start;
  padding: 4px 10px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.guild-hero-name { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
.guild-hero-sub { color: rgba(255, 255, 255, 0.72); font-size: 12px; }
.guild-hero-descr { color: rgba(255, 255, 255, 0.82); font-size: 12.5px; line-height: 1.5; max-width: 520px; }

.gtabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.gtabs::-webkit-scrollbar { display: none; }
.gtab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}
.gtab b {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--faint);
}
.gtab.active { border-color: var(--accent); color: #fff; background: var(--accent-soft); }
.gtab.active b { color: #cfe4ff; }

.gmember {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
}
.gmember-main { flex: 1; min-width: 0; }
.gmember-main b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gmember-main span { display: block; color: var(--faint); font-size: 11.5px; }

.gdep { display: flex; align-items: center; gap: 8px; }
.gdep .input { font-family: var(--font-mono); }
.gdep-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.guild-note { color: var(--faint); font-size: 11.5px; line-height: 1.55; margin-top: 10px; }

.guild-cover-preview {
  position: relative;
  overflow: hidden;
  height: 120px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(90% 120% at 12% 0%, rgba(59, 130, 246, 0.26), transparent 60%),
    linear-gradient(140deg, #1a2136, #0e1220 70%);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-2);
}
.guild-cover-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 10, 16, 0.75), rgba(8, 10, 16, 0.2)); }
.guild-cover-preview > span {
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 700;
}

.guild-card {
  overflow: hidden;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.guild-card:active { transform: scale(0.995); }
.guild-card.rank-1 { border-color: rgba(240, 185, 11, 0.55); }
.guild-card.rank-2 { border-color: rgba(203, 213, 225, 0.45); }
.guild-card.rank-3 { border-color: rgba(205, 127, 50, 0.5); }
.guild-card.rank-1 .guild-card-cover { box-shadow: inset 0 0 0 1px rgba(240, 185, 11, 0.3); }
.guild-card.rank-2 .guild-card-cover { box-shadow: inset 0 0 0 1px rgba(203, 213, 225, 0.25); }
.guild-card.rank-3 .guild-card-cover { box-shadow: inset 0 0 0 1px rgba(205, 127, 50, 0.28); }

.guild-card-stats { display: flex; gap: 8px; margin-top: 2px; }
.gstat {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 11px;
  background: var(--panel-2);
  border: 1px solid var(--border);
}
.gstat svg { width: 15px; height: 15px; color: var(--faint); flex: none; }
.gstat b {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gstat small { color: var(--faint); font-size: 10px; }

.gstats-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 12px;
}
.gstat.big {
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 11px 12px;
}
.gstat.big svg { width: 17px; height: 17px; }
.gstat.big b { font-size: 16px; }
.gstat.big small { font-size: 10px; }

.role-badge {
  flex: none;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid;
  white-space: nowrap;
}
.role-badge.leader { color: #f5c04e; border-color: rgba(245, 192, 78, 0.45); background: rgba(245, 192, 78, 0.12); }
.role-badge.deputy { color: #7dd3fc; border-color: rgba(125, 211, 252, 0.45); background: rgba(125, 211, 252, 0.12); }
.role-badge.member { color: var(--faint); border-color: var(--border-2); background: var(--panel-3); }
.guild-card-cover {
  position: relative;
  height: 86px;
  background:
    radial-gradient(90% 120% at 12% 0%, rgba(59, 130, 246, 0.24), transparent 60%),
    linear-gradient(140deg, #1a2136, #0e1220 70%);
  background-size: cover;
  background-position: center;
}
.guild-card-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 12, 18, 0.9), rgba(10, 12, 18, 0.2)); }
.guild-card-cover .guild-tag { position: absolute; left: 12px; bottom: 10px; }
.guild-card-cover .rank-medal { position: absolute; right: 12px; bottom: 10px; }
.guild-card-body { display: grid; gap: 6px; padding: 12px 13px 13px; }
.guild-card-name { font-size: 15px; font-weight: 800; }
.guild-card-sub { color: var(--faint); font-size: 11.5px; }
.guild-card-desc { color: var(--muted); font-size: 12px; line-height: 1.5; }

/* ---------- utils ---------- */

.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.ach { padding: 12px; border-radius: 11px; background: var(--panel); border: 1px solid var(--border); opacity: 0.5; }
.ach.on { opacity: 1; border-color: rgba(59, 130, 246, 0.5); background: var(--accent-soft); }
.ach b { display: block; font-size: 12.5px; font-weight: 800; }
.ach span { display: block; color: var(--faint); font-size: 11px; margin-top: 3px; line-height: 1.4; }

.rank-medal { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-weight: 800; font-size: 12px; flex: none; background: var(--panel-2); border: 1px solid var(--border); font-family: var(--font-mono); }
.rank-medal.g1 { background: var(--gold-soft); border-color: rgba(240, 185, 11, 0.5); color: var(--gold); }
.rank-medal.g2 { background: var(--panel-3); color: var(--text); }
.rank-medal.g3 { background: rgba(205, 127, 50, 0.15); border-color: rgba(205, 127, 50, 0.45); color: #cd7f32; }

.toasts { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(400px, calc(100% - 20px)); pointer-events: none; }

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 11px;
  background: var(--panel-2);
  border: 1px solid var(--border-2);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.95);
  font-size: 12.5px;
  font-weight: 700;
  animation: toastIn 0.3s ease both;
}

.toast.out { animation: toastOut 0.25s ease both; }
.toast.ok { border-color: rgba(38, 166, 154, 0.5); }
.toast.err { border-color: rgba(239, 83, 80, 0.5); }
.toast svg { width: 17px; height: 17px; flex: none; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px); } }

.modal { position: fixed; inset: 0; z-index: 150; display: grid; align-items: end; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 7, 10, 0.7); animation: fadeIn 0.25s ease both; }

.modal-sheet {
  position: relative;
  width: min(520px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  margin: 0 auto;
  padding: 24px 20px calc(24px + var(--safe-b));
  border-radius: 18px 18px 0 0;
  background: #141924;
  border: 1px solid var(--border-2);
  border-bottom: 0;
  animation: sheetIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.1) both;
}

@keyframes sheetIn { from { transform: translateY(100%); } }

.skeleton { border-radius: 11px; background: linear-gradient(100deg, var(--panel) 30%, var(--panel-2) 50%, var(--panel) 70%); background-size: 220% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }

.empty { padding: 30px 16px; text-align: center; color: var(--faint); font-size: 12.5px; font-weight: 600; }

.flash-up { animation: flashUp 0.6s ease; }
.flash-down { animation: flashDown 0.6s ease; }
@keyframes flashUp { 30% { color: var(--up); } }
@keyframes flashDown { 30% { color: var(--down); } }

/* ---------- desktop ---------- */

@media (min-width: 920px) {
  .topbar { padding: 10px 22px; }
  .screen { padding: 20px 22px 60px; }
  .tabbar { display: none; }
  .drawer { width: 300px; }
  .modal { align-items: center; }
  .modal-sheet { border-radius: 18px; border-bottom: 1px solid var(--border-2); }
}

@media (max-width: 720px) {
  :root { --slot: 68px; --jcell: 58px; }
  .slot-reel { width: 72px; }
}

@media (max-width: 400px) {
  :root { --jcell: 52px; }
}

@media (max-width: 400px) {
  .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spark { display: none; }
  :root { --slot: 58px; }
  .slot-reel { width: 64px; }
}


