:root {
  --font-display: 'Sora', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  
  --bg: #f7f8fc;
  --surface: #ffffff;
  --line: rgba(15, 26, 51, .10);
  --line-2: rgba(15, 26, 51, .18);
  --text: #0b1226;
  --muted: #55627f;
  --dim: #8591ab;
  
  --accent: #2c55e8;
  --accent-2: #4f46e5;
  --accent-soft: rgba(44, 85, 232, .08);
  --on-accent: #fff;
  --glow: rgba(44, 85, 232, .45);
  
  --input-bg: #fff;
  --danger: #e11d48;
  --ok: #16a34a;
  --warn: #d97706;
  --shadow-lg: 0 24px 48px -22px rgba(15, 26, 51, .3);
}

[data-theme="dark"] {
  --bg: #070b16;
  --surface: #0e1424;
  --line: rgba(160, 185, 255, .11);
  --line-2: rgba(160, 185, 255, .2);
  --text: #eef2ff;
  --muted: #9faccb;
  --dim: #6c7a9f;
  
  --accent: #7ea4ff;
  --accent-2: #9a8cff;
  --accent-soft: rgba(126, 164, 255, .1);
  --glow: rgba(70, 120, 255, .5);
  
  --input-bg: #0b1122;
  --danger: #fb7185;
  --ok: #4ade80;
  --warn: #fbbf24;
  --shadow-lg: 0 28px 56px -24px rgba(0, 0, 0, .9);
}

html.theming,
html.theming *,
html.theming *::before,
html.theming *::after {
  transition: background-color .3s ease, border-color .3s ease, color .3s ease !important;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* single quiet glow at the very top */
  background-image: radial-gradient(900px 380px at 50% -160px, var(--accent-soft), transparent 70%);
  background-repeat: no-repeat;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -.025em;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .7rem;
  padding-bottom: .7rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  min-width: 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: block;
  flex: 0 0 auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .28rem;
  min-width: 0;
}

.logo-name {
  line-height: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.logo-badge {
  font-size: .54rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: .2rem .5rem;
  white-space: nowrap;
  line-height: 1;
}

.theme-btn {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color .2s, transform .3s cubic-bezier(.2, .9, .3, 1.4);
}

.theme-btn:hover {
  border-color: var(--accent);
  transform: rotate(-14deg);
}

.theme-btn i {
  font-size: .85rem;
}

/* ---------- hero ---------- */
.hero {
  padding-top: 3.4rem;
  padding-bottom: 1rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 8.4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin-bottom: 1.1rem;
}

.hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  font-size: 1.12em;
  color: var(--accent);
}

.lede {
  max-width: 46ch;
  margin: 0 auto 2.1rem;
  color: var(--muted);
  font-size: 1rem;
}

/* claim form (inline, no box) */
.claim {
  max-width: 440px;
  margin: 0 auto;
  text-align: left;
}

.field {
  display: block;
}

.field-label {
  display: block;
  margin-bottom: .5rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.field-input {
  position: relative;
  display: block;
}

.field-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dim);
  font-size: .9rem;
  pointer-events: none;
  transition: color .2s;
}

.field-input:focus-within .field-icon {
  color: var(--accent);
}

.field-input input {
  width: 100%;
  padding: 1.05rem 1rem 1.05rem 2.8rem;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  font-size: .98rem;
  outline: none;
  transition: border-color .2s, box-shadow .25s;
}

.field-input input::placeholder {
  color: var(--dim);
  opacity: 1;
}

.field-input input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.field.has-error .field-input input {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, .12);
  animation: shake .4s ease;
}

.field.has-error .field-icon {
  color: var(--danger);
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }
  
  25% {
    transform: translateX(-6px);
  }
  
  50% {
    transform: translateX(5px);
  }
  
  75% {
    transform: translateX(-3px);
  }
}

.field-error {
  display: block;
  font-size: .78rem;
  color: var(--danger);
  font-weight: 600;
  overflow: hidden;
  max-height: 0;
  transition: max-height .25s ease, margin .25s ease;
}

.field.has-error .field-error {
  max-height: 40px;
  margin-top: .45rem;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: grid;
  place-items: center;
  margin-top: .85rem;
  padding: 1.05rem 1.2rem;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .98rem;
  background: linear-gradient(120deg, #2c55e8, #4f46e5);
  box-shadow: 0 14px 28px -14px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .2);
  transition: transform .2s cubic-bezier(.2, .9, .3, 1.4), box-shadow .3s, filter .2s;
}

[data-theme="dark"] .btn-primary {
  color: #fff;
  background: linear-gradient(120deg, #3a67f2, #6a5cf2);
}

.btn-primary>* {
  grid-area: 1 / 1;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px -14px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.btn-primary:active:not(:disabled) {
  transform: none;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%);
  transform: translateX(-130%);
  transition: transform .7s ease;
}

.btn-primary:hover:not(:disabled)::after {
  transform: translateX(130%);
}

.btn-label,
.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}

.btn-label i {
  font-size: .8rem;
  transition: transform .25s;
}

.btn-primary:hover .btn-label i {
  transform: translateX(3px);
}

.btn-loading {
  display: none;
}

.btn-primary.is-loading {
  cursor: progress;
}

.btn-primary.is-loading .btn-label {
  display: none;
}

.btn-primary.is-loading .btn-loading {
  display: inline-flex;
}

.claim-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem .9rem;
  margin-top: .95rem;
}

.link-soft {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.link-soft:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-soft i {
  font-size: .62rem;
}

.fineprint {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .76rem;
  color: var(--dim);
}

.fineprint i {
  font-size: .66rem;
}

.trust-line {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem 1.3rem;
  margin-top: 2rem;
}

.trust-line li {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--muted);
}

.trust-line i {
  color: var(--accent);
  font-size: .74rem;
}

/* ---------- ad ---------- */
.ad-slot {
  display: grid;
  place-items: center;
  min-height: 90px;
  margin-top: 2rem;
  border: 1px dashed var(--line-2);
  border-radius: 14px;
}

.ad-label {
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 600;
}

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 1.4rem .5rem;
  text-align: center;
}

.stat+.stat {
  border-left: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}

.stat span {
  display: block;
  margin-top: .2rem;
  font-size: .76rem;
  color: var(--dim);
}

/* ---------- coins (full-bleed) ---------- */
.coins-wrap {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.coins-label {
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
}

.coins-marquee {
  width: 100%;
  overflow: hidden;
  padding: .9rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.coins {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
}

.coins.is-running {
  animation: coinsRight 36s linear infinite;
  will-change: transform;
}

.coins-marquee:hover .coins.is-running {
  animation-play-state: paused;
}

@keyframes coinsRight {
  from {
    transform: translateX(-50%);
  }
  
  to {
    transform: translateX(0);
  }
}

.coin {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: 0 1.6rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
  transition: color .2s;
}

.coin:hover {
  color: var(--text);
}

.coin-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: block;
  border-radius: 50%;
  overflow: hidden;
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.4);
}

.coin:hover .coin-icon {
  transform: scale(1.12);
}

.coin-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.coin-name {
  white-space: nowrap;
  line-height: 1;
}

/* ---------- sections ---------- */
.section {
  margin-top: 4rem;
}

.kicker {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.4rem;
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* features: open grid, hairline dividers */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}

.feature {
  padding: 1.4rem 1rem 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.feature:nth-child(even) {
  padding-left: 1rem;
  padding-right: 0;
  border-left: 1px solid var(--line);
}

.feature i {
  display: block;
  margin-bottom: .9rem;
  font-size: 1.05rem;
  color: var(--accent);
  transition: transform .3s cubic-bezier(.2, .9, .3, 1.4);
}

.feature:hover i {
  transform: translateY(-3px);
}

.feature h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .25rem;
}

.feature p {
  font-size: .84rem;
  color: var(--muted);
}

/* rules: simple check list */
.rules {
  list-style: none;
  display: grid;
}

.rules li {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .95rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .93rem;
}

.rules li:first-child {
  border-top: 1px solid var(--line);
}

.rules i {
  width: 20px;
  text-align: center;
  color: var(--warn);
  font-size: .85rem;
  flex: 0 0 auto;
}

/* faq: list with plus icon */
.faq {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--text);
  transition: color .2s;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question i {
  flex: 0 0 auto;
  font-size: .78rem;
  color: var(--dim);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), color .25s;
}

.faq-item.active .faq-question i {
  transform: rotate(135deg);
  color: var(--accent);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s cubic-bezier(.2, .8, .2, 1);
}

.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer>div {
  overflow: hidden;
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.65;
  transition: padding-bottom .35s ease;
}

.faq-item.active .faq-answer>div {
  padding-bottom: 1.2rem;
}

/* ---------- footer ---------- */
.footer {
  margin-top: 4.5rem;
  padding-top: 1.6rem;
  padding-bottom: 2.6rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--dim);
  font-size: .8rem;
  max-width: 680px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-bottom: .7rem;
}

.footer-links a {
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ---------- toasts ---------- */
.toast-container {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  width: calc(100% - 2rem);
  max-width: 420px;
  display: grid;
  gap: .6rem;
  pointer-events: none;
}

.toast {
  --toast-accent: var(--accent);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .9rem 1rem 1rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
  font-size: .86rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-14px) scale(.97);
  transition: opacity .3s ease, transform .35s cubic-bezier(.2, .9, .3, 1.3);
  pointer-events: auto;
}

.toast.show {
  opacity: 1;
  transform: none;
}

.toast-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--toast-accent) 16%, transparent);
  color: var(--toast-accent);
  font-size: .72rem;
  margin-top: 1px;
}

.toast-msg {
  flex: 1;
  color: var(--text);
  line-height: 1.45;
}

.toast-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--toast-accent);
  transform-origin: left;
  animation: toastTimer var(--dur, 4s) linear forwards;
}

@keyframes toastTimer {
  from {
    transform: scaleX(1);
  }
  
  to {
    transform: scaleX(0);
  }
}

.toast.success {
  --toast-accent: #22c55e;
}

.toast.warning {
  --toast-accent: #f59e0b;
}

.toast.error {
  --toast-accent: #ef4444;
}

.toast.info {
  --toast-accent: #38bdf8;
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s cubic-bezier(.2, .8, .2, 1), transform .6s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--delay, 0ms);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (min-width: 720px) {
  .wrap {
    max-width: 760px;
    padding: 0 1.5rem;
  }
  
  .hero {
    padding-top: 5rem;
  }
  
  .features {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .feature,
  .feature:nth-child(even) {
    padding: 1.6rem 1.1rem;
    border-left: 1px solid var(--line);
  }
  
  .feature:first-child {
    padding-left: 0;
    border-left: none;
  }
  
  .feature:last-child {
    padding-right: 0;
  }
  
  .section {
    margin-top: 5rem;
  }
}

@media (max-width: 380px) {
  .logo-badge {
    display: none;
  }
  
  .coin {
    padding: 0 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  
  .reveal {
    opacity: 1;
    transform: none;
  }
  
  .coins-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* ---- v8 adjustments ---- */
/* rules sit right under the claim form, compact two-column */
.rules-section {
  margin-top: 2.6rem;
}

.rules-section .kicker {
  margin-bottom: 1rem;
}

.rules {
  grid-template-columns: 1fr;
}

.rules li {
  padding: .8rem 0;
  font-size: .9rem;
}

@media (min-width: 520px) {
  .rules {
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
  }
  
  .rules li:nth-child(2) {
    border-top: 1px solid var(--line);
  }
}

.ad-slot {
  margin-top: 2.2rem;
}

/* three features: rows on phones, three columns on desktop */
.features {
  grid-template-columns: 1fr;
}

.feature,
.feature:nth-child(even) {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: .9rem;
  align-items: start;
  padding: 1.15rem 0;
  border-left: none;
}

.feature i {
  grid-row: 1 / span 2;
  margin: .15rem 0 0;
}

.feature h4,
.feature p {
  grid-column: 2;
}

@media (min-width: 720px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .feature,
  .feature:nth-child(even) {
    display: block;
    padding: 1.6rem 1.2rem;
    border-left: 1px solid var(--line);
  }
  
  .feature:first-child {
    padding-left: 0;
    border-left: none;
  }
  
  .feature:last-child {
    padding-right: 0;
  }
  
  .feature i {
    margin: 0 0 .9rem;
  }
}

/* ---- v9: collapsible "Before you start" box (above login) ---- */
.rules-box {
  max-width: 440px;
  margin: 0 auto 1.4rem;
  text-align: left;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--surface);
  box-shadow: 0 14px 30px -20px var(--glow);
  transition: border-color .25s, box-shadow .3s;
}

.rules-box.open {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line-2));
  box-shadow: 0 20px 38px -22px var(--glow);
}

.rules-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .95rem 1.05rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.rules-ico {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #2c55e8, #4f46e5);
  color: #fff;
  font-size: .95rem;
  box-shadow: 0 8px 16px -8px var(--glow);
}

.rules-head {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .12rem;
  min-width: 0;
}

.rules-head strong {
  font-family: var(--font-display);
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: -.015em;
}

.rules-head small {
  font-size: .76rem;
  color: var(--muted);
}

.rules-count {
  flex: 0 0 auto;
  min-width: 24px;
  height: 24px;
  padding: 0 .4rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

.rules-chev {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  font-size: .7rem;
  color: var(--muted);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), background .25s, color .25s, border-color .25s;
}

.rules-toggle:hover .rules-chev {
  border-color: var(--accent);
  color: var(--accent);
}

.rules-box.open .rules-chev {
  transform: rotate(180deg);
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.rules-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .38s cubic-bezier(.2, .8, .2, 1);
}

.rules-box.open .rules-panel {
  grid-template-rows: 1fr;
}

.rules-panel>.rules {
  overflow: hidden;
  min-height: 0;
  padding: 0 1.05rem;
  display: grid;
  grid-template-columns: 1fr;
}

.rules-box.open .rules-panel>.rules {
  padding-bottom: .5rem;
}

.rules-box .rules li,
.rules-box .rules li:first-child,
.rules-box .rules li:nth-child(2) {
  padding: .8rem 0;
  border: none;
  border-top: 1px solid var(--line);
  font-size: .9rem;
}

.rules-box .rules li:first-child {
  border-top: 1px solid var(--line);
}

.rules-box .rules i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .74rem;
}

/* ---- v10: floating header + telegram ---- */
.header {
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  padding: .65rem 0 0;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .5rem .55rem .5rem .75rem;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 12px 30px -18px var(--glow);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: 0 0 auto;
}

.tg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  height: 38px;
  padding: 0 .95rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: .8rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #2aabee, #229ed9);
  box-shadow: 0 8px 16px -9px rgba(34, 158, 217, .9);
  transition: transform .2s cubic-bezier(.2, .9, .3, 1.4), box-shadow .25s;
}

.tg-btn i {
  font-size: 1.05rem;
}

.tg-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -10px rgba(34, 158, 217, 1);
}

.theme-btn {
  background: var(--surface);
}

@media (max-width: 440px) {
  .tg-btn {
    width: 38px;
    padding: 0;
  }
  
  .tg-btn span {
    display: none;
  }
  
  .header-bar {
    padding: .45rem .45rem .45rem .6rem;
    border-radius: 18px;
  }
}

@media (min-width: 720px) {
  .header-bar {
    padding: .6rem .7rem .6rem .9rem;
    border-radius: 22px;
  }
}

/* telegram rule */
.rules-box .rules .rule-tg i {
  background: rgba(34, 158, 217, .15);
  color: #229ed9;
  font-size: .95rem;
}

.rules .rule-tg a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}

.rules .rule-tg a:hover {
  border-bottom-color: var(--accent);
}

@media (max-width: 380px) {
  .logo-badge {
    display: inline-block;
  }
}

/* ---- v11: classic flat header, roomier spacing ---- */
.header {
  position: sticky;
  top: 0;
  padding: 0;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header .wrap {
  padding-left: 1.4rem;
  padding-right: 1.4rem;
}

.header-bar {
  padding: .95rem 0;
  gap: 1.5rem;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.logo {
  gap: .85rem;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.logo-text {
  gap: .45rem;
}

.logo-name {
  font-size: 1.05rem;
}

.logo-badge {
  padding: .22rem .6rem;
}

.header-actions {
  gap: 0;
  margin-left: auto;
}

.theme-btn {
  width: 42px;
  height: 42px;
}

@media (max-width: 440px) {
  .header .wrap {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
  
  .header-bar {
    padding: .85rem 0;
    gap: 1rem;
  }
  
  .logo {
    gap: .75rem;
  }
}

@media (min-width: 720px) {
  .header .wrap {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .header-bar {
    padding: 1.05rem 0;
    border-radius: 0;
  }
}