/* CELLAPIAC v3.1 — modern prediction market UI */
:root {
  --bg: #0b0d12;
  --surface: #13161f;
  --surface2: #1a1e2a;
  --border: rgba(255,255,255,.08);
  --text: #f0f2f8;
  --muted: #8b93a8;
  --accent: #6c5ce7;
  --accent2: #00d2a0;
  --danger: #ff4757;
  --warn: #ffa502;
  --fidesz: #f5b942;
  --mh: #ff6b81;
  --ati: #54a0ff;
  --hold: #c792ea;
  --prop: #26de81;
  --radius: 14px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Syne", system-ui, sans-serif;
  --shadow: 0 8px 32px rgba(0,0,0,.45);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body.app-body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
body.app-body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(108,92,231,.18), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(0,210,160,.1), transparent);
}
.app-main, .app-header, .app-footer { position: relative; z-index: 1; }
body.nav-open { overflow: hidden; }

/* Header */
.app-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(11,13,18,.85);
  backdrop-filter: blur(20px);
}
.app-header__inner {
  max-width: 1320px; margin: 0 auto;
  padding: .75rem 1.25rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: nowrap;
}
.brand {
  display: flex; align-items: center; gap: .4rem;
  font-family: var(--display); font-weight: 800; font-size: 1.15rem;
  text-decoration: none; color: var(--text); letter-spacing: -.02em;
}
.brand span { color: var(--accent2); }
.brand__icon { color: var(--accent); font-size: 1.1rem; }
.brand--center { justify-content: center; margin-bottom: 1.5rem; }

.tabs {
  display: flex; gap: .25rem; justify-content: center; flex-wrap: wrap;
  max-width: 1320px; margin: 0 auto;
  padding: 0 1.25rem .7rem;
}
.tab {
  padding: .45rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
  text-decoration: none; color: var(--muted); border: 1px solid transparent;
  transition: .2s;
}
.tab:hover { color: var(--text); background: rgba(255,255,255,.05); }
.tab.is-active { color: var(--text); background: var(--surface2); border-color: var(--border); }

.header-actions { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; margin-left: auto; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .75rem; border-radius: 999px;
  font-size: .82rem; font-weight: 600; text-decoration: none; color: var(--text);
  background: var(--surface2); border: 1px solid var(--border);
}
.chip--balance { border-color: rgba(0,210,160,.3); background: rgba(0,210,160,.08); }
.chip--balance strong { color: var(--accent2); }
.chip--ghost { color: var(--muted); }
.chip--user { gap: .5rem; }
.avatar-sm {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #a29bfe);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .55rem 1.1rem; border-radius: 10px; font: inherit; font-weight: 600;
  font-size: .88rem; cursor: pointer; border: none; text-decoration: none;
  transition: .2s;
}
.btn--primary { background: linear-gradient(135deg, var(--accent), #8b7cf7); color: #fff; }
.btn--primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn--outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn--block { width: 100%; }
.btn--lg {
  min-height: 48px;
  padding: .85rem 1.35rem;
  font-size: 1rem;
  border-radius: 12px;
}
.btn:focus-visible, .tab:focus-visible, .chip:focus-visible, .nav-toggle:focus-visible, .nav-drawer__link:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}

.dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent2);
  flex-shrink: 0;
}

/* Desktop top nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: .15rem;
  flex: 1;
  justify-content: center;
}
.nav-desktop__link {
  padding: .5rem .85rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  text-decoration: none;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
  transition: color .2s, background .2s;
}
.nav-desktop__link:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-desktop__link.is-active {
  color: var(--text);
  background: var(--surface2);
  border: 1px solid var(--border);
}
.nav-drawer__section {
  margin: 1.15rem 0 .45rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-drawer__filters {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin-bottom: .5rem;
}
.nav-drawer__filter {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-height: 48px;
  padding: .65rem .85rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid transparent;
  transition: background .2s, border-color .2s;
}
.nav-drawer__filter:hover,
.nav-drawer__filter.is-active {
  background: var(--surface2);
  border-color: var(--border);
}
.nav-drawer__share {
  margin-top: 1.15rem;
  padding-top: .85rem;
  border-top: 1px solid var(--border);
}
.nav-drawer__share-hint {
  margin: .55rem 0 0;
  font-size: .72rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}
.nav-drawer__links--foot { margin-top: .75rem; }
.chip--share {
  cursor: pointer;
  border-color: rgba(139, 124, 247, .35);
  background: rgba(139, 124, 247, .1);
  color: var(--text);
  font: inherit;
}
.chip--share:hover { background: rgba(139, 124, 247, .18); }
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .75rem;
  align-items: center;
}
.share-actions .btn--lg { flex: 1 1 100%; }
@media (min-width: 560px) {
  .share-actions .btn--lg { flex: 0 1 auto; }
}
.guest-filter-note {
  margin: 0 0 1rem;
  padding: .75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(139, 124, 247, .08);
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.4;
}
.guest-filter-note a { color: var(--accent2); font-weight: 600; }

/* Hamburger + drawer */
.nav-toggle {
  display: none;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  min-width: 44px;
  padding: .45rem .7rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}
.nav-toggle__bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s;
}
body.nav-open .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle__bars i:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.55);
  opacity: 0;
  transition: opacity .25s ease;
}
.nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 210;
  width: min(100%, 320px);
  height: 100%;
  height: 100dvh;
  padding: 1rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0));
  background: #10131a;
  border-left: 1px solid var(--border);
  box-shadow: -16px 0 40px rgba(0,0,0,.4);
  transform: translateX(104%);
  transition: transform .28s cubic-bezier(.22,.9,.3,1);
  overflow-y: auto;
}
body.nav-open .nav-backdrop {
  display: block;
  opacity: 1;
}
body.nav-open .nav-drawer {
  display: block;
  transform: translateX(0);
}
.nav-drawer:not([hidden]) { display: block; }
.nav-backdrop:not([hidden]) { display: block; }
.nav-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1.25rem;
  padding-top: env(safe-area-inset-top, 0);
}
.nav-drawer__brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -.02em;
}
.nav-drawer__brand span { color: var(--accent2); }
.nav-drawer__close {
  min-height: 44px;
  padding: .45rem .8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.nav-drawer__user {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.nav-drawer__user strong { display: block; font-size: .95rem; }
.nav-drawer__user span { color: var(--accent2); font-size: .82rem; font-weight: 600; }
.nav-drawer__intro {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
  margin-bottom: 1.15rem;
}
.nav-drawer__links {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.nav-drawer__link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .15rem;
  min-height: 52px;
  padding: .75rem .9rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid transparent;
  transition: background .2s, border-color .2s;
}
.nav-drawer__link:hover,
.nav-drawer__link.is-active {
  background: var(--surface2);
  border-color: var(--border);
}
.nav-drawer__label { font-weight: 700; font-size: 1rem; }
.nav-drawer__hint { font-size: .78rem; color: var(--muted); }
.nav-drawer__link--danger { color: var(--danger); margin-top: .5rem; }
.nav-drawer__note {
  margin-top: 1.5rem;
  font-size: .72rem;
  color: var(--muted);
  text-align: center;
}

.desktop-only { display: inline-flex; }
.hide-mobile { display: inline; }
.legal-note {
  text-align: center;
  color: var(--muted);
  font-size: .75rem;
  margin: .5rem 0 1.5rem;
}

.app-main { max-width: 1320px; margin: 0 auto; padding: 1.25rem; }
.app-footer { text-align: center; padding: 2rem; color: var(--muted); font-size: .78rem; border-top: 1px solid var(--border); }

.alert { padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-weight: 600; font-size: .88rem; }
.alert--ok { background: rgba(0,210,160,.12); border: 1px solid rgba(0,210,160,.3); color: var(--accent2); }
.alert--err { background: rgba(255,71,87,.12); border: 1px solid rgba(255,71,87,.3); color: var(--danger); }

/* Hero */
.disclaimer-banner {
  margin: 0 0 1.25rem;
  padding: .9rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 210, 160, .28);
  background: linear-gradient(135deg, rgba(0, 210, 160, .1), rgba(19, 22, 31, .9));
  color: var(--text);
  font-size: .9rem;
  line-height: 1.45;
}
.disclaimer-banner strong { color: var(--accent2); }
.disclaimer-banner em { font-style: normal; color: #c8d0e0; }
.disclaimer-banner--compact { font-size: .82rem; padding: .7rem .9rem; margin-bottom: 1rem; }

.live-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.live-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: .45rem;
}
.live-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  max-width: 16ch;
}
.live-hero h1 em { font-style: normal; color: var(--danger); }
.live-hero__auth { display: flex; gap: .5rem; flex-wrap: wrap; }

.card--live-focus {
  border-color: rgba(255, 71, 87, .22);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.card--live-focus .card__head h2 { font-size: 1.05rem; }

.live-cta {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.live-cta p { color: var(--muted); margin-bottom: .85rem; font-size: .92rem; }
.live-cta__btns { display: flex; gap: .55rem; justify-content: center; flex-wrap: wrap; }
.live-cta--in { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; text-align: left; }
.live-cta--in p { margin: 0; }

.guest-landing {
  color: var(--text);
  min-height: 60vh;
}
.guest-landing .tease-hero,
.guest-landing .disclaimer-banner,
.guest-landing .tease-card,
.guest-landing .live-signals {
  opacity: 1;
  visibility: visible;
}

.guest-proof {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: 1.35rem;
  font-size: .88rem;
  color: var(--muted);
}
.guest-proof strong { color: var(--text); font-variant-numeric: tabular-nums; }

.live-signals {
  margin: 0 0 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}
.live-signals > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 48px;
  padding: .75rem 1rem;
  font-weight: 700;
  font-size: .92rem;
  color: var(--text);
  user-select: none;
}
.live-signals > summary::-webkit-details-marker { display: none; }
.live-signals > summary::after {
  content: "+";
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 600;
}
.live-signals[open] > summary::after { content: "−"; }
.live-signals__meta {
  margin-left: auto;
  margin-right: .5rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.live-signals .ws-ticker {
  margin: 0;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
}
.live-signals__feed {
  padding: .65rem 1rem .85rem;
  font-size: .8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.live-signals__feed strong { color: var(--text); font-variant-numeric: tabular-nums; }
.market-live-strip { margin-bottom: 1.5rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.1rem;
}
.hero-banner--action h1 {
  max-width: 14ch;
}
.hero-banner--action p strong { color: var(--accent2); }
.kpi-row--compact .kpi { min-width: 96px; }

.market-card__role {
  color: var(--muted);
  font-size: .78rem;
  margin-top: .25rem;
}
.market-card__chance small { color: var(--muted); }
.market-card__chance strong { color: var(--danger); }
.price-strip--simple {
  display: flex;
  gap: 1rem;
  align-items: baseline;
}
.price-strip--simple .price-strip__odds,
.price-strip--simple .price-strip__win {
  flex: 1;
}
.market-card__more {
  margin: 0 .9rem .5rem;
}
.market-card__more > summary {
  list-style: none;
  cursor: pointer;
  min-height: 40px;
  display: flex;
  align-items: center;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  user-select: none;
}
.market-card__more > summary::-webkit-details-marker { display: none; }
.market-card__more .market-card__stats {
  padding: 0 0 .75rem;
}
.mini-stats--flat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem .75rem;
}
.mini-stats--flat span { display: block; font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.mini-stats--flat b { font-size: .9rem; }

.btn--cta-pulse {
  animation: cta-pulse 2.4s ease-in-out infinite;
}
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(108,92,231,.35); }
  50% { box-shadow: 0 0 0 10px rgba(108,92,231,0); }
}
@media (prefers-reduced-motion: reduce) {
  .btn--cta-pulse { animation: none; }
}

.ws-ticker {
  overflow: hidden;
  border: 1px solid rgba(0, 210, 160, .35);
  background: #0a0c10;
  margin: 0 0 1rem;
  border-radius: 10px;
  position: relative;
  min-height: 44px;
  display: block;
}
.ws-ticker__track {
  display: inline-flex;
  gap: 1.35rem;
  width: max-content;
  padding: .65rem 1rem;
  animation: ws-scroll 38s linear infinite;
  color: #e8ecf5;
}
.ws-ticker.is-paused .ws-ticker__track {
  animation-play-state: paused;
}
@keyframes ws-scroll {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(-50%,0,0); }
}
@media (prefers-reduced-motion: reduce) {
  .ws-ticker__track { animation: none; flex-wrap: wrap; width: 100%; }
}
.ws-chip {
  display: inline-flex;
  align-items: baseline;
  gap: .35rem;
  font-variant-numeric: tabular-nums;
  font-size: .88rem;
  white-space: nowrap;
}
.ws-chip b {
  font-size: .7rem;
  letter-spacing: .06em;
  color: #9aa3b8;
  font-weight: 700;
}
.ws-chip em {
  font-style: normal;
  font-weight: 800;
  font-family: var(--display);
  color: #fff;
}
.ws-chip.is-up em, .ws-chip.is-up .ws-arrow { color: #3dffa8; }
.ws-chip.is-down em, .ws-chip.is-down .ws-arrow { color: #ff6b81; }
.ws-arrow { font-style: normal; font-size: .7rem; }
.ws-stat {
  display: inline-block;
  padding: 0 1.25rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #c5ccd9;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,.1);
}

.tease-card { position: relative; overflow: hidden; padding: 1rem; background: var(--surface); border: 1px solid var(--border); }
.tease-blur { filter: blur(4px); user-select: none; pointer-events: none; min-height: 200px; }
.tease-veil {
  position: absolute; inset: 0 auto auto 0; right: 0;
  min-height: 200px; max-height: 260px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .85rem; text-align: center; padding: 1.25rem;
  background: rgba(11,13,18,.72);
  z-index: 2;
}
.tease-veil p { color: #fff; font-family: var(--display); font-weight: 700; line-height: 1.35; max-width: 18rem; }

.tease-hero {
  text-align: center;
  padding: 1.5rem 0 1.25rem;
  margin-bottom: .5rem;
  position: relative;
}
.tease-brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.05rem, 3.5vw, 1.35rem);
  letter-spacing: -.02em;
  margin-bottom: .65rem;
  color: var(--text);
}
.tease-brand span { color: var(--accent2); }
.tease-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.12;
  margin: .35rem auto .85rem;
  max-width: 16ch;
}
.tease-hero h1 em { font-style: normal; color: var(--danger); }
.tease-tagline {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.5;
  max-width: 34rem;
  margin: 0 auto 1.25rem;
}
.tease-tagline strong {
  display: inline-block;
  margin-top: .35rem;
  color: var(--text);
  font-size: 1.08rem;
}
.tease-hero__auth { justify-content: center; }
.tease-hero__auth .btn { min-height: 44px; }

.tease-card { position: relative; overflow: hidden; padding: 1rem 1rem 1.15rem; }
.tease-blur { position: relative; filter: blur(5px); user-select: none; pointer-events: none; min-height: 220px; }
.tease-row.is-moving .tease-fill {
  filter: brightness(1.25);
  box-shadow: 0 0 12px rgba(255,71,87,.45);
}
.tease-row {
  display: grid;
  grid-template-columns: 36px 1fr minmax(80px, 1.4fr) 44px;
  gap: .65rem;
  align-items: center;
  margin-bottom: .65rem;
}
.tease-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #2a3142, #1a1e2a);
  border: 1px solid var(--border);
}
.tease-meta { display: flex; flex-direction: column; gap: .28rem; }
.tease-name, .tease-sub {
  display: block; height: .55rem; border-radius: 4px;
  background: rgba(255,255,255,.12);
}
.tease-name { width: 68%; }
.tease-sub { width: 42%; opacity: .7; }
.tease-track {
  height: 8px; border-radius: 99px;
  background: rgba(255,255,255,.06); overflow: hidden;
}
.tease-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #ff4757, #ff6b81);
  transition: width .9s ease-out;
}
.tease-pct { font-size: .8rem; color: rgba(255,255,255,.35); text-align: right; font-variant-numeric: tabular-nums; }

.tease-veil {
  position: absolute; left: 0; right: 0; top: 0;
  height: min(100%, 280px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .85rem; text-align: center; padding: 1.5rem;
  background: linear-gradient(180deg, rgba(11,13,18,.2), rgba(11,13,18,.78) 40%, rgba(11,13,18,.9));
  z-index: 2;
}
.tease-veil p {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  max-width: 18rem;
}

.tease-livebar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 1.6fr;
  gap: .55rem;
  margin-bottom: .85rem;
}
.tease-livebar__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .65rem .75rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.tease-livebar__item span {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  font-weight: 700;
}
.tease-livebar__item strong {
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
}
.tease-livebar__item strong.is-up { color: var(--accent2); }
.tease-livebar__item strong.is-down { color: var(--danger); }
.tease-livebar__item em {
  font-style: normal;
  font-size: .82rem;
  color: #c8d0e0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dot--pulse {
  animation: tease-pulse 1.4s ease-in-out infinite;
}
@keyframes tease-pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(0,210,160,.45); }
  50% { opacity: .75; transform: scale(1.15); box-shadow: 0 0 0 6px rgba(0,210,160,0); }
}

@media (max-width: 720px) {
  .tease-livebar { grid-template-columns: 1fr 1fr; }
  .tease-livebar__item--wide { grid-column: 1 / -1; }
}

.tease-points {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: .45rem;
}
.tease-points li {
  font-size: .88rem;
  color: var(--muted);
  padding: .55rem .75rem;
  border-radius: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
}
.tease-points strong { color: var(--accent2); }

@media (max-width: 560px) {
  .tease-row { grid-template-columns: 28px 1fr 1fr 36px; gap: .4rem; }
}

/* Hide noisy purple glow a bit on home */
body.app-body.home-clean::before {
  background:
    radial-gradient(ellipse 70% 45% at 50% -20%, rgba(255,71,87,.12), transparent),
    radial-gradient(ellipse 50% 35% at 100% 0%, rgba(0,210,160,.08), transparent);
}
.hero-banner {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; margin-bottom: 1.25rem;
  padding: 2rem; border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.hero-banner h1 {
  font-family: var(--display); font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.1; margin-top: .5rem;
}
.hero-banner h1 em { font-style: normal; color: var(--danger); }
.hero-banner p { color: var(--muted); margin-top: .5rem; max-width: 28rem; }
.badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent2); }
.badge--live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent2); animation: pulse 1.5s infinite; }
@keyframes pulse { 50% { opacity: .4; transform: scale(1.3); } }

.kpi-row { display: flex; gap: .65rem; flex-wrap: wrap; }
.kpi-row--profile { margin-bottom: 1.25rem; }
.kpi {
  min-width: 110px; padding: .85rem 1rem; border-radius: var(--radius);
  background: rgba(0,0,0,.25); border: 1px solid var(--border);
}
.kpi span { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.kpi strong { display: block; font-size: 1.25rem; font-weight: 700; margin-top: .15rem; }
.kpi em { font-size: .72rem; color: var(--muted); font-style: normal; }
.kpi--accent { border-color: rgba(0,210,160,.25); }

.chart-wrap--tall { min-height: 220px; margin-bottom: 1.25rem; }

.card--live-prison {
  margin-bottom: 1rem;
  border-color: rgba(255, 71, 87, .25);
  background: linear-gradient(180deg, rgba(255,71,87,.06) 0%, var(--surface) 40%);
}
.live-prison-desc {
  font-size: .82rem; color: var(--muted); margin: -.5rem 0 1rem;
}
.prison-bars { display: flex; flex-direction: column; gap: .55rem; }
.prison-bar-row {
  display: grid;
  grid-template-columns: 32px 1fr minmax(120px, 2fr) 52px;
  gap: .65rem; align-items: center;
  padding: .5rem .6rem; border-radius: 10px;
  background: rgba(0,0,0,.2);
  transition: background .3s;
}
.prison-bar-row:hover { background: rgba(255,71,87,.08); }
.prison-bar-row img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.prison-bar-info strong { display: block; font-size: .85rem; }
.prison-bar-info span { font-size: .7rem; color: var(--muted); }
.prison-bar-track {
  height: 10px; border-radius: 99px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
  box-shadow: inset 0 0 4px rgba(0,0,0,.3);
}
.neg-feed {
  margin: 0 0 1.25rem; padding: .85rem 1rem;
  border-radius: 10px; background: rgba(255,71,87,.08);
  border: 1px solid rgba(255,71,87,.25);
}
.neg-feed h3 { font-size: .85rem; margin-bottom: .55rem; color: #7dffa8; }
.neg-feed ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.neg-feed li { font-size: .8rem; color: var(--muted); line-height: 1.35; }
.neg-feed li strong { color: #fff; margin-right: .35rem; }
.neg-feed a { color: #ffb4bc; text-decoration: none; }
.neg-feed a:hover { text-decoration: underline; color: #fff; }
.neg-headline {
  display: block; font-style: normal; font-size: .68rem;
  color: #ff8a95; margin-top: .15rem; opacity: .9;
}
#live-updated.live-pulse { animation: liveFlash .6s ease; }
@keyframes liveFlash {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; text-shadow: 0 0 12px rgba(255,71,87,.8); }
}
.prison-bar-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #ff2a5e, #ff4757, #ff6b81);
  box-shadow: 0 0 12px rgba(255, 71, 87, .5);
  transition: width 1s cubic-bezier(.4, 0, .2, 1);
}
.prison-bar-pct {
  font-weight: 800; font-size: .9rem;
  color: #ff4757; text-align: right;
  text-shadow: 0 0 20px rgba(255, 71, 87, .4);
}

@media (max-width: 700px) {
  .prison-bar-row {
    grid-template-columns: 32px 1fr 48px;
    grid-template-areas: "img info pct" "bar bar bar";
  }
  .prison-bar-row img { grid-area: img; }
  .prison-bar-info { grid-area: info; }
  .prison-bar-pct { grid-area: pct; }
  .prison-bar-track { grid-area: bar; }
}

/* Grid & cards */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.15rem; box-shadow: var(--shadow);
}
.card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; gap: .5rem; flex-wrap: wrap; }
.card__head h2 { font-size: .95rem; font-weight: 700; }
.card__head span, .card__head .link { font-size: .78rem; color: var(--muted); text-decoration: none; }
.card__head .link:hover { color: var(--accent2); }
.btn--sm { padding: .35rem .7rem; font-size: .75rem; }
.chart-wrap { position: relative; min-height: 300px; height: 300px; }
.chart-wrap--donut { max-width: 100%; min-height: 260px; height: 260px; margin: 0 auto; }
.card--chart .chart-wrap canvas { width: 100% !important; height: 100% !important; }

/* Feed & rank */
.feed { list-style: none; display: flex; flex-direction: column; gap: .4rem; max-height: 280px; overflow-y: auto; }
.feed li {
  display: grid; grid-template-columns: 1fr auto auto auto; gap: .5rem; align-items: center;
  padding: .55rem .65rem; border-radius: 8px; background: rgba(255,255,255,.03);
  font-size: .82rem;
}
.feed__user { font-weight: 600; }
.feed__amt { color: var(--accent2); font-weight: 600; }
.feed__on { color: var(--muted); }
.feed time { color: var(--muted); font-size: .75rem; }

.rank-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.rank-list li {
  display: grid; grid-template-columns: 24px 36px 1fr 80px 44px; gap: .5rem; align-items: center;
}
.rank-list img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.rank-num { font-weight: 700; color: var(--muted); font-size: .85rem; }
.rank-info strong { display: block; font-size: .82rem; }
.rank-info span { font-size: .7rem; color: var(--muted); }
.rank-bar { height: 5px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--danger), #ff6b81); border-radius: 99px; }
.rank-pct { font-weight: 700; font-size: .82rem; color: var(--danger); text-align: right; }

/* Markets */
.section-markets { margin-top: .5rem; }
.section-head { margin-bottom: 1rem; }
.section-head h2 { font-family: var(--display); font-size: 1.35rem; }
.section-head p { color: var(--muted); font-size: .88rem; }

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.market-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.market-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.market-card.c-fidesz { border-top: 3px solid var(--fidesz); }
.market-card.c-mh { border-top: 3px solid var(--mh); }
.market-card.c-ati { border-top: 3px solid var(--ati); }
.market-card.c-hold { border-top: 3px solid var(--hold); }
.market-card.c-prop { border-top: 3px solid var(--prop); }

.market-card__hero {
  display: grid; grid-template-columns: 56px 1fr auto; gap: .75rem;
  padding: 1rem; align-items: start;
}
.market-card__hero img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.market-card__hero h3 { font-size: .95rem; line-height: 1.2; }
.market-card__hero p { font-size: .75rem; color: var(--muted); margin-top: .2rem; }
.pill { display: inline-block; font-size: .65rem; font-weight: 700; text-transform: uppercase; padding: .1rem .4rem; border-radius: 4px; background: rgba(255,255,255,.08); margin-top: .2rem; }
.odds-big { text-align: right; }
.odds-big small { display: block; font-size: .62rem; color: var(--muted); letter-spacing: .08em; }
.odds-big strong { font-family: var(--display); font-size: 1.5rem; color: var(--accent2); }
.odds-big--mini strong { font-size: 1.15rem; }

.price-strip {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin: 0 .85rem .85rem; border-radius: 10px; overflow: hidden;
  border: 2px solid rgba(0, 210, 160, .45);
  box-shadow: 0 0 0 1px rgba(0,0,0,.3) inset;
}
.price-strip__odds,
.price-strip__win {
  padding: .65rem .75rem; text-align: center;
}
.price-strip__odds {
  background: linear-gradient(180deg, rgba(108,92,231,.35), rgba(108,92,231,.15));
  border-right: 1px solid rgba(255,255,255,.12);
}
.price-strip__win {
  background: linear-gradient(180deg, rgba(0,210,160,.22), rgba(0,210,160,.08));
}
.price-strip span {
  display: block; font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: #d0d6e4; margin-bottom: .25rem;
}
.price-strip strong {
  font-family: var(--display); font-size: 1.75rem; font-weight: 800; line-height: 1;
  color: #ffffff;
}
.price-strip__odds strong { color: #5dffe0; text-shadow: 0 0 24px rgba(0,210,160,.5); }
.price-strip__win strong { color: #b8ff6e; text-shadow: 0 0 24px rgba(184,255,110,.35); }

.market-card__stats {
  display: flex; gap: 1rem; padding: 0 1rem .75rem; align-items: center;
}
.stat-ring { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.stat-ring svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 3; }
.ring-fg { fill: none; stroke-width: 3; stroke-linecap: round; }
.ring-fg--red { stroke: var(--danger); }
.stat-ring div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.stat-ring em { font-style: normal; font-weight: 700; font-size: .85rem; color: var(--danger); }
.stat-ring small { font-size: .58rem; color: var(--muted); text-transform: uppercase; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; flex: 1; font-size: .75rem; }
.mini-stats span { display: block; color: #a8b0c4; font-size: .65rem; text-transform: uppercase; font-weight: 600; }
.mini-stats b { font-weight: 700; color: #fff; font-size: .88rem; }

.bet-row {
  display: flex; flex-direction: column; gap: .45rem;
  padding: .85rem 1rem 1rem; border-top: 1px solid var(--border);
  background: #1a1f2e;
}
.bet-row__label {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: #c8d0e0;
}
.bet-row__fields { display: flex; gap: .5rem; }
.bet-row input.bet-input,
.bet-row input[type="number"] {
  flex: 1; min-width: 0; padding: .7rem .85rem; border-radius: 10px;
  background: #252b3d; border: 2px solid rgba(108,92,231,.55);
  color: #ffffff; font: inherit; font-size: 1.15rem; font-weight: 700;
}
.bet-row input.bet-input:focus,
.bet-row input[type="number"]:focus {
  outline: none; border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(0,210,160,.2);
}
.bet-row .btn { flex-shrink: 0; padding: .7rem 1.1rem; font-weight: 700; }

/* Profile */
.profile-hero {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem;
  padding: 2rem; margin-bottom: 1rem;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, rgba(108,92,231,.25), rgba(0,210,160,.12));
  border: 1px solid var(--border);
}
.profile-hero__avatar {
  width: 72px; height: 72px; border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 1.5rem; font-weight: 800;
}
.profile-hero h1 { font-family: var(--display); font-size: 1.5rem; }
.profile-hero p { color: var(--muted); font-size: .88rem; }
.profile-hero__balance { margin-left: auto; text-align: right; }
.profile-hero__balance span { font-size: .72rem; color: var(--muted); text-transform: uppercase; }
.profile-hero__balance strong { display: block; font-size: 1.5rem; color: var(--accent2); }

.form-stack label { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); margin: .75rem 0 .35rem; }
.form-stack input {
  width: 100%; padding: .65rem .75rem; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--border); color: var(--text); font: inherit;
}
.form-stack .btn { margin-top: 1rem; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.table th, .table td { padding: .6rem .5rem; border-bottom: 1px solid var(--border); text-align: left; }
.table th { font-size: .72rem; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.tag { font-size: .68rem; font-weight: 700; padding: .2rem .5rem; border-radius: 4px; text-transform: uppercase; }
.tag--open { background: rgba(255,165,2,.15); color: var(--warn); }
.tag--won { background: rgba(0,210,160,.15); color: var(--accent2); }
.tag--lost { background: rgba(255,71,87,.15); color: var(--danger); }
.muted { color: var(--muted); font-size: .88rem; }

/* Auth */
.auth-shell { min-height: 90vh; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-box {
  width: min(400px, 100%); padding: 2rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow);
}
.auth-box h1 { font-family: var(--display); font-size: 1.25rem; margin-bottom: 1rem; text-align: center; }
.auth-hint { text-align: center; color: var(--muted); margin-bottom: 1rem; font-size: .88rem; }
.auth-hint--warn { color: #e8a838; }
.check-row { display: flex !important; align-items: flex-start; gap: .6rem; margin: 1rem 0 !important; font-weight: 500 !important; color: var(--text) !important; }
.check-row input { width: auto !important; margin-top: .2rem; }
.invite-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .35rem; }
.invite-row input { flex: 1 1 200px; font-size: .85rem; }
.share-grid { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.share-grid .btn { font-size: .82rem; }
.share-preview {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: .85rem;
  align-items: center;
  margin: .85rem 0 1rem;
  padding: .75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface2);
}
.share-preview img {
  width: 100%;
  aspect-ratio: 1.91 / 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.share-preview strong {
  display: block;
  font-family: var(--display);
  font-size: .95rem;
  margin-bottom: .35rem;
}
.share-preview p {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
}
@media (max-width: 640px) {
  .share-preview { grid-template-columns: 1fr; }
}
.auth-foot { text-align: center; margin-top: 1rem; font-size: .88rem; color: var(--muted); }
.auth-foot a { color: var(--accent2); }

/* Admin */
.admin-wrap .app-main { max-width: 1400px; }
.admin-layout { display: grid; grid-template-columns: 200px 1fr; gap: 1rem; }
.admin-sidebar {
  padding: 1rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  height: fit-content; position: sticky; top: 80px;
}
.admin-sidebar h2 { font-family: var(--display); font-size: .85rem; color: var(--accent); margin-bottom: .75rem; letter-spacing: .1em; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: .2rem; }
.admin-sidebar a {
  padding: .5rem .65rem; border-radius: 8px; text-decoration: none;
  color: var(--muted); font-size: .85rem; font-weight: 600;
}
.admin-sidebar a:hover, .admin-sidebar a.is-active { background: rgba(108,92,231,.15); color: var(--text); }
.admin-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-bottom: 1rem; }
.admin-kpi { padding: 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.admin-kpi span { font-size: .68rem; text-transform: uppercase; color: var(--muted); }
.admin-kpi strong { display: block; font-size: 1.4rem; font-family: var(--display); margin-top: .2rem; }
.bar-chart { display: flex; align-items: flex-end; gap: .4rem; height: 140px; }
.bar-chart__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.bar-chart__bar { width: 100%; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--accent), rgba(108,92,231,.3)); min-height: 4px; }
.bar-chart__label { font-size: .6rem; color: var(--muted); }
.hbar-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.hbar-list li { display: grid; grid-template-columns: 100px 1fr 50px; gap: .5rem; align-items: center; font-size: .82rem; }
.hbar-track { height: 8px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; }
.hbar-fill { height: 100%; background: linear-gradient(90deg, var(--danger), #ff6b81); border-radius: 99px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.data-table th, .data-table td { padding: .55rem .6rem; border-bottom: 1px solid var(--border); text-align: left; }
.inline-form { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }
.inline-form input { padding: .35rem .5rem; border-radius: 6px; background: var(--bg); border: 1px solid var(--border); color: var(--text); font: inherit; }
.btn-danger { background: var(--danger); color: #fff; padding: .45rem .8rem; border: none; border-radius: 8px; cursor: pointer; font: inherit; font-weight: 600; }
.btn-sync { background: var(--accent2); color: #0b0d12; padding: .55rem 1rem; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; }
.resolve-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.resolve-list li { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.table-avatar { border-radius: 8px; object-fit: cover; }

@media (min-width: 901px) {
  .nav-desktop { display: flex; flex-wrap: nowrap; }
  .nav-toggle { display: none !important; }
  .nav-drawer,
  .nav-backdrop { display: none !important; }
  .header-actions { flex-wrap: nowrap; flex-shrink: 0; }
}

@media (max-width: 900px) {
  .grid-2, .admin-layout { grid-template-columns: 1fr; }
  .admin-kpis { grid-template-columns: repeat(2, 1fr); }
  .hero-banner { flex-direction: column; align-items: stretch; }
  .profile-hero__balance { margin-left: 0; text-align: left; }
  .app-header__inner { flex-wrap: wrap; }
  /* Szűrők a hamburger menüben — ne tömje a fejlécet */
  .tabs { display: none; }
  .nav-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ——— Mobil UX: levegő + normál menü ——— */
@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .hide-mobile { display: none !important; }

  .app-header {
    padding-top: env(safe-area-inset-top, 0);
    background: rgba(11,13,18,.92);
  }
  .app-header__inner {
    padding: .65rem 1rem;
    gap: .6rem;
    flex-wrap: wrap;
  }
  .brand { font-size: 1.1rem; flex-shrink: 0; }
  .header-actions { margin-left: auto; gap: .4rem; flex-wrap: nowrap; }
  .chip {
    min-height: 44px;
    padding: .45rem .75rem;
    font-size: .8rem;
  }
  .chip--balance { padding: .45rem .9rem; }
  .chip__label { display: none; }
  .nav-toggle__label { display: none; }

  .app-main {
    padding: 1.15rem 1rem calc(1.75rem + env(safe-area-inset-bottom, 0));
  }
  .app-footer {
    padding: 1.5rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0));
    font-size: .75rem;
  }

  .ws-ticker {
    margin-bottom: 0;
    border-radius: 0;
    min-height: 40px;
  }
  .ws-ticker__track {
    gap: 1rem;
    padding: .6rem .85rem;
    animation-duration: 32s;
  }
  .ws-chip { font-size: .8rem; }
  .ws-chip b { font-size: .65rem; }

  .live-signals {
    margin-bottom: 1.75rem;
  }
  .live-signals > summary {
    min-height: 52px;
    padding: .85rem 1rem;
  }
  .live-signals__meta {
    font-size: .72rem;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Vendég: egy kompozíció, nem sáv-halom */
  .guest-landing .tease-hero {
    min-height: min(70vh, 560px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.25rem .25rem 2rem;
    margin-bottom: 1.5rem;
    background:
      radial-gradient(ellipse 90% 70% at 50% 0%, rgba(255,71,87,.12), transparent 60%),
      radial-gradient(ellipse 70% 50% at 80% 80%, rgba(0,210,160,.07), transparent);
    border-radius: 18px;
    animation: hero-rise .7s ease-out both;
  }
  @keyframes hero-rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .tease-brand {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  .guest-landing .tease-hero h1 {
    font-size: clamp(2.05rem, 9vw, 2.6rem);
    max-width: 11ch;
    margin-bottom: .9rem;
  }
  .guest-landing .tease-tagline {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 22rem;
    line-height: 1.55;
  }
  .tease-hero__auth {
    flex-direction: column;
    width: 100%;
    max-width: 20rem;
    margin: 0 auto;
    gap: .65rem;
  }
  .tease-hero__auth .btn {
    width: 100%;
    min-height: 48px;
  }
  .guest-proof {
    margin-top: 1.5rem;
    justify-content: center;
  }
  .guest-landing .disclaimer-banner {
    margin-bottom: 1.75rem;
  }
  .tease-card {
    padding: 1rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
  }
  .tease-veil {
    padding: 1.35rem;
    gap: .85rem;
  }
  .tease-veil p { font-size: 1rem; }
  .tease-veil .btn { min-height: 48px; width: min(100%, 16rem); }

  /* Bejelentkezett: először a teendő */
  .hero-banner {
    padding: 1.4rem 1.15rem;
    gap: 1.15rem;
    margin-bottom: 1.5rem;
    border-radius: 16px;
  }
  .hero-banner h1 {
    font-size: clamp(1.65rem, 7vw, 2.1rem);
  }
  .hero-banner p {
    font-size: .95rem;
    line-height: 1.5;
    margin-top: .65rem;
  }
  .hero-actions {
    flex-direction: column;
    margin-top: 1.25rem;
  }
  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .card {
    padding: 1.1rem;
    border-radius: 16px;
    margin-bottom: .35rem;
  }
  .card__head { margin-bottom: 1.1rem; }
  .card__head h2 { font-size: 1rem; }
  .chart-wrap { min-height: 220px; height: 220px; }
  .chart-wrap--tall { min-height: 180px; }
  .chart-wrap--donut { min-height: 220px; height: 220px; }

  .grid-2,
  .grid-2--feed {
    gap: 1.25rem;
    margin-bottom: 1.5rem;
  }
  .section-markets { margin-top: .5rem; }
  .section-head { margin-bottom: 1.15rem; }
  .section-head h2 { font-size: 1.3rem; }
  .section-head p { margin-top: .35rem; }

  .feed li {
    grid-template-columns: 1fr auto;
    grid-template-areas: "user amt" "on time";
    gap: .25rem .5rem;
    padding: .75rem .8rem;
    min-height: 52px;
  }
  .feed__user { grid-area: user; }
  .feed__amt { grid-area: amt; }
  .feed__on { grid-area: on; font-size: .75rem; }
  .feed time { grid-area: time; }

  .rank-list li {
    grid-template-columns: 22px 36px 1fr 44px;
    grid-template-areas: "num img info pct" "bar bar bar bar";
    gap: .45rem .5rem;
    padding: .45rem 0;
  }
  .rank-num { grid-area: num; }
  .rank-list img { grid-area: img; }
  .rank-info { grid-area: info; }
  .rank-pct { grid-area: pct; }
  .rank-bar { grid-area: bar; }

  .market-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
  .market-card {
    border-radius: 16px;
  }
  .market-card__hero {
    grid-template-columns: 52px 1fr auto;
    padding: 1rem;
    gap: .7rem;
  }
  .market-card__hero img {
    width: 52px; height: 52px;
    border-radius: 12px;
  }
  .market-card__role { display: none; }
  .price-strip {
    margin: 0 .9rem .65rem;
    padding: .75rem .85rem;
  }
  .price-strip strong { font-size: 1.35rem; }
  .market-card__more { margin: 0 .9rem .35rem; }
  .bet-row {
    padding: 1rem .95rem 1.1rem;
    gap: .55rem;
  }
  .bet-row__fields {
    flex-direction: row;
    align-items: stretch;
  }
  .bet-row input.bet-input,
  .bet-row input[type="number"] {
    min-height: 48px;
    font-size: 1.1rem;
    border-radius: 12px;
  }
  .bet-row .btn {
    min-height: 48px;
    min-width: 7.5rem;
    padding: .7rem 1rem;
  }

  .auth-shell {
    min-height: 100dvh;
    padding: 1.25rem .85rem calc(1.5rem + env(safe-area-inset-bottom, 0));
    align-items: flex-start;
    padding-top: max(1.5rem, env(safe-area-inset-top, 0) + 1rem);
  }
  .auth-box {
    padding: 1.35rem 1.15rem;
    width: 100%;
  }
  .auth-box .btn,
  .form-stack .btn {
    min-height: 48px;
    width: 100%;
  }
  .form-stack input {
    min-height: 48px;
    font-size: 1rem;
    border-radius: 10px;
  }

  .profile-hero {
    padding: 1.35rem;
    gap: 1rem;
  }
  .neg-feed { padding: .85rem; margin-bottom: 1.25rem; }
  .prison-bar-row {
    min-height: 52px;
    padding: .65rem .55rem;
  }
  .card--live-prison { margin-bottom: 1.5rem; }
}

@media (max-width: 400px) {
  .market-card__hero {
    grid-template-columns: 48px 1fr;
  }
  .odds-big,
  .market-card__chance {
    grid-column: 1 / -1;
    text-align: left;
    margin-top: .15rem;
  }
  .price-strip strong { font-size: 1.2rem; }
  .nav-toggle { padding: .45rem .55rem; }
}

@media (prefers-reduced-motion: reduce) {
  .guest-landing .tease-hero,
  .btn--cta-pulse,
  .nav-drawer,
  .nav-backdrop {
    animation: none;
    transition: none;
  }
}
