:root {
  --bg: #050914;
  --panel: rgba(9, 17, 30, 0.72);
  --panel-strong: rgba(8, 13, 22, 0.9);
  --line: rgba(160, 210, 255, 0.26);
  --line-hot: rgba(255, 151, 86, 0.45);
  --text: #eef6ff;
  --muted: #aab8ca;
  --blue: #70c6ff;
  --red: #8b171d;
  --red2: #b32629;
  --ok: #66e0a3;
  --bad: #ff8a80;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.bg-system, .bg-layer, .bg-veil, .bg-particles, .bg-fog {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.bg-system { z-index: -5; overflow: hidden; background: #02050b; }
.bg-layer {
  opacity: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: opacity 1500ms ease;
  animation: slowZoom 18s ease-in-out infinite alternate;
}
.bg-layer.is-active { opacity: 1; }
.bg-veil {
  z-index: 2;
  background:
    radial-gradient(circle at 25% 22%, rgba(65, 170, 255, 0.2), transparent 32%),
    radial-gradient(circle at 15% 70%, rgba(255, 100, 35, 0.16), transparent 28%),
    linear-gradient(90deg, rgba(3, 8, 17, .55), rgba(3, 7, 14, .22) 44%, rgba(3, 7, 14, .78)),
    linear-gradient(180deg, rgba(3, 7, 14, .35), rgba(3, 7, 14, .84));
}
.bg-particles {
  z-index: 3;
  opacity: .55;
  background-image:
    radial-gradient(circle, rgba(136, 211, 255, .8) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 143, 87, .7) 0 1px, transparent 1.5px);
  background-size: 120px 120px, 180px 180px;
  animation: drift 28s linear infinite;
}
.bg-fog {
  z-index: 4;
  opacity: .26;
  background: linear-gradient(100deg, transparent, rgba(190, 220, 255, .18), transparent);
  transform: translateX(-55%);
  animation: fogMove 16s ease-in-out infinite;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  background: linear-gradient(180deg, rgba(2, 7, 15, .78), rgba(2, 7, 15, .22));
  border-bottom: 1px solid rgba(155, 205, 255, .16);
  backdrop-filter: blur(12px);
}
.topbar.scrolled { background: rgba(3, 8, 16, .92); }
.brand-area { display: inline-flex; align-items: center; min-width: 0; gap: 10px; }
.brand {
  position: relative;
  font-family: Cinzel, serif;
  display: inline-flex;
  align-items: center;
  width: clamp(132px, 14vw, 192px);
  min-width: 0;
}
.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: contain;
}
.brand-logo--video { position: absolute; inset: 0; opacity: 0; }
.brand-logo--video.is-playing { opacity: 1; }
.language-switcher--inline { display: flex; align-items: center; gap: 4px; }
.language-switcher--inline a { display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid transparent; border-radius: 50%; }
.language-switcher--inline a.active { border-color: var(--blue); box-shadow: 0 0 8px rgba(49,215,255,.35); }
.language-switcher--inline a:hover { background: rgba(255,255,255,.12); }
.language-switcher--inline a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.language-switcher.language-switcher--inline img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
html[lang="zh-CN"] body { font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; }
html[lang="zh-CN"] h1, html[lang="zh-CN"] h2, html[lang="zh-CN"] h3 { font-family: inherit; letter-spacing: normal; }
@media (prefers-reduced-motion: reduce) { .brand-logo--video { display: none; } }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.language-switcher { position: relative; flex: 0 0 auto; }
.language-switcher summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 8px;
  cursor: pointer;
  color: var(--muted);
  border: 1px solid rgba(160, 210, 255, .28);
  border-radius: 7px;
  background: rgba(5, 13, 24, .52);
  font-size: 12px;
  list-style: none;
}
.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher summary::after { content: "▾"; font-size: 10px; transition: transform .2s ease; }
.language-switcher[open] summary::after { transform: rotate(180deg); }
.language-switcher summary:focus-visible,
.language-switcher__menu a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.language-switcher img { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.16); }
.language-switcher__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 50;
  display: grid;
  min-width: 154px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 10, 19, .98);
  box-shadow: 0 14px 34px rgba(0,0,0,.38);
}
.language-switcher__menu a { display: inline-flex; align-items: center; gap: 9px; padding: 8px; border-radius: 5px; color: var(--muted); font-size: 13px; }
.language-switcher__menu a:hover, .language-switcher__menu a.active { color: #fff; background: rgba(112, 198, 255, .13); }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a, .nav-logout {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  padding: 8px 2px;
  transition: color .2s ease, transform .2s ease;
}
.nav a::after, .nav-logout::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  transform: scaleX(0);
  transition: transform .22s ease;
}
.nav a:hover, .nav a.active, .nav-logout:hover { color: white; transform: translateY(-1px) scale(1.03); }
.nav a:hover::after, .nav a.active::after, .nav-logout:hover::after { transform: scaleX(1); }
.burger { display: none; background: transparent; border: 0; width: 40px; }
.burger span { display: block; height: 2px; margin: 7px 0; background: white; }

main { min-height: calc(100vh - 80px); }
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 44px;
  padding: 110px 7vw 70px;
}
.hero-content { max-width: 760px; }
.eyebrow {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  margin: 0 0 14px;
}
h1, h2, h3 { margin-top: 0; line-height: 1.08; }
h1 {
  font-family: Cinzel, serif;
  font-size: clamp(42px, 7vw, 92px);
  letter-spacing: .02em;
  margin-bottom: 20px;
}
h2 { font-size: clamp(28px, 3vw, 42px); }
h3 { font-size: 20px; }
p { color: var(--muted); line-height: 1.65; }
.lead { max-width: 660px; font-size: 20px; color: #dce9f8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  color: white;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.22), transparent);
  transform: translateX(-120%);
  transition: transform .45s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 0 28px rgba(95, 180, 255, .22); border-color: rgba(160, 220, 255, .55); }
.btn:hover::before { transform: translateX(120%); }
.btn.primary { background: linear-gradient(180deg, var(--red2), var(--red)); border-color: var(--line-hot); }
.btn.ghost { background: rgba(10, 24, 40, .54); }
.btn.text { border-color: transparent; background: transparent; }
button.btn { font: inherit; }

.status-panel, .card, .auth-card, .download-box, .metric {
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 18px 55px rgba(0,0,0,.28);
}
.status-panel { padding: 20px; }
.status-panel div { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.status-panel div:last-child { border-bottom: 0; }
.status-panel span { color: var(--muted); }
.status-panel .ok { color: var(--ok); }
.status-panel .bad { color: var(--bad); }
.status-panel .rates-lines { text-align: right; line-height: 1.35; font-size: 14px; }

.band { max-width: 1180px; margin: 0 auto; padding: 70px 24px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.mini-grid, .cards, .account-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.account-manager { margin-top: 18px; }
.referral-panel { margin-top: 18px; padding-top: 36px; padding-bottom: 36px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.referral-panel .section-head { align-items: flex-start; }
.referral-panel .section-head > div { min-width: 0; }
.referral-panel .section-head > span { flex: 0 0 auto; padding-top: 8px; text-align: right; }
.referral-panel .section-head h1 { margin-bottom: 0; font-size: clamp(36px, 4vw, 54px); line-height: 1.04; }
.referral-panel .section-head p { margin: 5px 0 0; color: var(--muted); }
.referral-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.referral-fields > label, .referral-fields form, .referral-fields form > label { min-width: 0; }
.referral-fields form { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: 10px; align-items: start; }
.referral-fields form > .btn { margin-top: 26px; white-space: nowrap; }
.copy-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.copy-field .btn { white-space: nowrap; }
.copy-field input { font-weight: 800; letter-spacing: .08em; color: var(--blue); }
.referral-progress { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 14px; }
.referral-progress span { padding: 8px 11px; background: rgba(4, 9, 17, .72); border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.referral-progress strong { color: var(--text); }
.referral-milestones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.referral-milestone { padding: 15px; background: rgba(4, 9, 17, .72); border: 1px solid var(--line); border-radius: var(--radius); }
.referral-milestone > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.referral-milestone span { color: var(--blue); }
.referral-milestone p { margin: 10px 0; color: var(--muted); }
.referral-milestone small { color: #ffd18f; }
.referral-milestone.processed { border-color: rgba(102,224,163,.48); }
.referral-milestone.processed small { color: var(--ok); }
.referral-milestone.review, .referral-notice.review { border-color: rgba(255,209,143,.48); }
.referral-milestone.blocked, .referral-milestone.failed, .referral-notice.blocked { border-color: rgba(255,138,128,.48); }
.referral-milestone.blocked small, .referral-milestone.failed small { color: var(--bad); }
.referral-notice { padding: 11px 13px; border: 1px solid; border-radius: var(--radius); background: rgba(4, 9, 17, .72); }
.premium-card { display: flex; flex-direction: column; align-items: stretch; }
.premium-account-control { margin: 4px 0 12px; }
.premium-account-summary { padding: 10px 12px; background: rgba(4, 9, 17, .72); border: 1px solid var(--line); }
.premium-account-summary p { margin: 4px 0; }
.premium-card .btn { margin-top: auto; }
.game-account-list { display: grid; gap: 8px; margin-bottom: 18px; }
.game-account-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; background: rgba(4, 9, 17, .72); border: 1px solid var(--line); }
.game-account-row div { display: flex; align-items: baseline; gap: 12px; }
.game-account-row .game-account-meta { justify-content: flex-end; flex-wrap: wrap; }
.game-account-row span, .game-account-row time { color: var(--muted); font-size: 13px; }
.game-account-form { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; }
.mini-grid { grid-template-columns: repeat(2, 1fr); }
.metric, .card, .download-box { padding: 22px; }
.metric span { display: block; color: var(--muted); margin-bottom: 8px; }
.metric strong { font-size: 28px; color: white; }
.card { transition: transform .22s ease, border-color .22s ease, background .22s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(130,210,255,.5); background: rgba(12, 24, 40, .78); }
.news-card img, .article img { border-radius: var(--radius); aspect-ratio: 16/9; object-fit: cover; margin-bottom: 16px; }
.news-card time, .article time { color: var(--blue); font-size: 13px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.page-hero { padding: 150px 7vw 50px; max-width: 980px; }
.page-hero h1 { font-size: clamp(38px, 5vw, 68px); }
.about-page-hero { padding-bottom: 34px; }
.about-page-hero .about-lead { color: #eef8ff; font-size: clamp(20px, 2.1vw, 28px); font-weight: 700; line-height: 1.35; }
.about-content { max-width: 1040px; padding-top: 24px; }
.about-accordion-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; width: 100%; }
.about-accordion {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(10, 20, 34, .92), rgba(5, 12, 22, .8));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 16px 42px rgba(0,0,0,.22);
}
.about-accordion[open] { border-color: rgba(130,210,255,.48); background: linear-gradient(135deg, rgba(12, 27, 45, .96), rgba(5, 13, 24, .9)); }
.about-accordion > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.about-accordion > summary::-webkit-details-marker { display: none; }
.about-accordion > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; }
.about-accordion__heading { display: grid; gap: 5px; min-width: 0; }
.about-accordion__heading strong { color: #f4f8ff; font-family: 'Cinzel', serif; font-size: clamp(18px, 2vw, 24px); line-height: 1.2; overflow-wrap: anywhere; }
.about-accordion__heading small { color: var(--muted); font-size: 14px; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.about-accordion__icon { position: relative; width: 30px; height: 30px; border: 1px solid rgba(130,210,255,.42); border-radius: 50%; background: rgba(130,210,255,.08); }
.about-accordion__icon::before,
.about-accordion__icon::after { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--blue); transform: translate(-50%, -50%); transition: transform .2s ease; }
.about-accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.about-accordion[open] .about-accordion__icon::after { transform: translate(-50%, -50%) rotate(0); }
.about-accordion__body { min-width: 0; padding: 0 22px 22px; border-top: 1px solid rgba(255,255,255,.07); color: var(--muted); overflow-wrap: anywhere; }
.about-accordion__body p { margin: 18px 0 0; line-height: 1.7; }
.about-accordion__body strong { color: #f4f8ff; }
.about-feature-list { margin: 18px 0 0; padding-left: 20px; }
.about-feature-list li { padding-left: 3px; line-height: 1.65; }
.about-feature-list li + li { margin-top: 7px; }
.about-feature-list--columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 34px; }
.about-reward-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.about-reward-grid > div { display: grid; gap: 8px; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(4,9,17,.7); }
.about-reward-grid strong { color: #f4f8ff; font-size: 17px; }
.about-reward-grid span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.about-reward-grid b { color: var(--blue); font-size: 14px; overflow-wrap: anywhere; }
.about-closing { margin: 24px 0 0; padding: 22px; border-left: 3px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; background: rgba(8,18,31,.82); color: #eef8ff; font-size: clamp(17px, 2vw, 21px); font-weight: 700; line-height: 1.55; }
.article { max-width: 860px; margin: 0 auto; padding: 140px 24px 80px; }
.back { color: var(--blue); display: inline-block; margin-bottom: 18px; }

.article--major-update {
  max-width: 960px;
}
.article--major-update > img {
  width: 100%;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
}
.article--major-update > time {
  display: block;
  margin: 4px 0 14px;
}
.article--major-update > h1 {
  max-width: 880px;
  margin-bottom: 28px;
  color: #f6fbff;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(32px, 4.2vw, 54px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.025em;
  overflow-wrap: break-word;
  text-wrap: balance;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .82);
}
.article--major-update .article-content {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(125, 199, 255, .24);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(4, 10, 19, .94), rgba(8, 20, 35, .9));
  box-shadow: 0 26px 72px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .04);
  backdrop-filter: blur(18px);
}
.article--major-update .article-content p {
  margin: 0;
  color: #d7e3ef;
  font-size: 17px;
  line-height: 1.75;
}
.article--major-update .article-lead {
  color: #eef7ff;
  font-size: clamp(18px, 2.1vw, 21px);
  font-weight: 600;
}
.article--major-update .article-section-title {
  margin: 34px 0 14px;
  color: #ffffff;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(21px, 2.7vw, 28px);
  line-height: 1.2;
  letter-spacing: -.015em;
}
.article--major-update .article-section-title:first-child {
  margin-top: 0;
}
.article-update-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.article-update-list li {
  position: relative;
  padding-left: 22px;
  color: #d7e3ef;
  font-size: 16px;
  line-height: 1.65;
}
.article-update-list li::before {
  content: "";
  position: absolute;
  top: .72em;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 14px rgba(95, 180, 255, .68);
}
.article--major-update .article-callout {
  margin-top: 34px;
  padding: 18px 20px;
  border: 1px solid rgba(95, 180, 255, .36);
  border-left: 3px solid var(--blue);
  border-radius: 12px;
  background: rgba(18, 51, 78, .56);
  color: #f4f9ff;
  font-weight: 700;
}

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 110px 20px 50px; }
.auth-card { width: min(460px, 100%); padding: 28px; }
.auth-card h1 {
  max-width: 100%;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.article-content p { white-space: pre-line; }
form { display: grid; gap: 14px; }
label { display: grid; gap: 7px; color: var(--muted); }
.field-hint {
  color: rgba(220, 233, 248, .72);
  font-size: 13px;
  line-height: 1.45;
}
input, textarea, select {
  width: 100%;
  background: rgba(4, 9, 17, .82);
  color: white;
  border: 1px solid rgba(145, 205, 255, .3);
  border-radius: var(--radius);
  padding: 12px 13px;
  font: inherit;
  outline: none;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(112,198,255,.12); }
.check { grid-template-columns: auto 1fr; align-items: center; }
.check input { width: auto; }
.form-result { min-height: 24px; color: var(--blue); }
.form-result.error { color: var(--bad); }
.custom-top-up { max-width: 590px; margin-top: 16px; }
.custom-top-up form { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; }
.vote-reward-card { display: grid; gap: 16px; margin: 18px 0; }
.vote-platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 20px;
  align-items: stretch;
  margin: 18px 0;
}
.vote-platform-grid .vote-reward-card {
  grid-template-rows: auto auto auto auto 1fr;
  height: 100%;
  margin: 0;
  overflow: hidden;
}
.vote-reward-card h3 { margin-bottom: 6px; }
.vote-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}
.vote-actions .btn { justify-content: center; text-align: center; }
.vote-timer {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(112,198,255,.22);
  border-radius: var(--radius);
  color: #dce9f8;
  background: rgba(112,198,255,.08);
}
.vote-timer.ready { color: var(--blue); }
.vote-reward-hint { margin: 0; color: var(--muted); }
.vote-reward-list { display: grid; gap: 8px; }
.vote-reward-list div {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.vote-reward-list em { color: var(--muted); font-style: normal; }
.vote-reward-list time { color: var(--muted); font-size: 13px; }

.account-nav { display: flex; flex-wrap: wrap; gap: 10px; max-width: 1180px; margin: 0 auto; padding: 120px 24px 0; }
.account-nav a { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(8,15,26,.72); }
.achievement-panel { margin-top: 18px; }
.achievement-target-picker {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  align-items: end;
  gap: 18px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 14, 25, .78);
}
.achievement-target-picker label { display: grid; gap: 8px; font-weight: 700; }
.achievement-target-picker select { width: 100%; }
.achievement-target-picker p { margin: 0 0 5px; color: var(--muted); line-height: 1.5; }
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.achievement-item { display: grid; gap: 12px; align-content: start; }
.achievement-flip {
  position: relative;
  min-height: 310px;
  border-radius: 18px;
  outline: none;
  perspective: 1100px;
}
.achievement-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(130, 210, 255, .28);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(13, 28, 48, .96), rgba(4, 9, 17, .98));
  box-shadow: 0 18px 38px rgba(0, 0, 0, .3);
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.2,.75,.2,1), border-color .25s ease;
  text-align: center;
}
.achievement-front { transform: rotateY(0); }
.achievement-back { transform: rotateY(180deg); }
.achievement-flip:hover .achievement-front,
.achievement-flip:focus .achievement-front,
.achievement-flip:focus-within .achievement-front { transform: rotateY(-180deg); }
.achievement-flip:hover .achievement-back,
.achievement-flip:focus .achievement-back,
.achievement-flip:focus-within .achievement-back { transform: rotateY(0); border-color: rgba(112, 198, 255, .68); }
.achievement-face img,
.achievement-placeholder {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(160, 220, 255, .42);
  box-shadow: 0 0 30px rgba(58, 167, 255, .2);
}
.achievement-placeholder {
  display: grid;
  place-items: center;
  color: #bfe6ff;
  background: radial-gradient(circle at 35% 30%, rgba(112,198,255,.36), rgba(5,14,27,.94) 68%);
  font: 700 54px/1 "Cinzel", serif;
}
.achievement-face h2 { margin: 0; font-size: 20px; letter-spacing: 0; }
.achievement-face p { margin: 0; color: #d2deeb; font-size: 14px; line-height: 1.55; }
.achievement-face small { color: var(--blue); }
.achievement-rarity {
  color: #9bb1c9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.achievement-item.eligible .achievement-face { border-color: rgba(102, 224, 163, .65); }
.achievement-item.processed .achievement-face { border-color: rgba(255, 209, 143, .58); }
.achievement-item.preparing .achievement-face { filter: saturate(.55); opacity: .84; }
.achievement-claim { width: 100%; justify-content: center; }
.achievement-status {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(4, 9, 17, .72);
  text-align: center;
  font-size: 13px;
}
@media (max-width: 720px) {
  .achievement-target-picker { grid-template-columns: 1fr; align-items: stretch; }
  .about-page-hero { padding-right: 20px; padding-left: 20px; }
  .about-content { padding-right: 16px; padding-left: 16px; }
  .about-accordion > summary { gap: 12px; padding: 17px 16px; }
  .about-accordion__body { padding: 0 16px 18px; }
  .about-feature-list--columns, .about-reward-grid { grid-template-columns: minmax(0, 1fr); }
  .about-closing { padding: 18px 16px; }
}
.admin-hero { padding-bottom: 22px; }
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 10px;
}
.admin-nav a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8,15,26,.78);
  color: #dce9f8;
  transition: transform .2s ease, border-color .2s ease;
}
.admin-nav a:hover { transform: translateY(-2px); border-color: rgba(130,210,255,.55); }
.admin-panel {
  margin-top: 0;
}
.admin-list {
  display: grid;
  gap: 14px;
}
.admin-list.compact { margin-top: 22px; }
.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(14px);
}
.admin-row h3 { margin-bottom: 6px; }
.admin-row p { margin: 0; }
.admin-row small { color: #8295ab; }
.row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 8px;
  margin-bottom: 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--blue);
  background: rgba(6, 14, 24, .8);
  font-size: 12px;
  text-transform: uppercase;
}
.badge.published, .badge.paid { color: var(--ok); border-color: rgba(102,224,163,.36); }
.badge.draft, .badge.pending { color: #ffd18f; border-color: rgba(255,209,143,.36); }
.badge.refunded, .badge.failed, .badge.canceled { color: var(--bad); border-color: rgba(255,138,128,.38); }
.btn.danger { background: rgba(82, 16, 22, .82); border-color: rgba(255, 118, 105, .42); }
.upload-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .45fr);
  gap: 10px;
}
.admin-search {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 18px;
}
.cash-form {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
}
code {
  color: #b8dfff;
  word-break: break-word;
  white-space: normal;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); }
th, td { padding: 13px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; }
th { color: var(--blue); }
.admin-form { max-width: 720px; }
.translation-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.translation-editor { max-width: none; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(5, 13, 24, .72); }
.translation-editor textarea[name="content"] { min-height: 300px; }
.footer { padding: 32px; color: var(--muted); text-align: center; border-top: 1px solid rgba(255,255,255,.08); background: rgba(3,8,16,.72); }

.discord-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 15px;
  border-radius: var(--radius);
  border: 1px solid rgba(151, 170, 255, .55);
  background: rgba(88, 101, 242, .92);
  color: #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .32), 0 0 26px rgba(88, 101, 242, .24);
  backdrop-filter: blur(12px);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.discord-float svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: currentColor;
}
.discord-float span {
  font-weight: 700;
  line-height: 1;
}
.discord-float:hover {
  transform: translateY(-2px);
  background: rgba(100, 113, 255, .98);
  box-shadow: 0 20px 42px rgba(0, 0, 0, .38), 0 0 34px rgba(88, 101, 242, .34);
}
.discord-link-card h1,
.discord-link-card h2 {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: 0;
}
.discord-profile {
  margin: 14px 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(4, 9, 17, .72);
}
.discord-profile p {
  margin: 4px 0;
}
.discord-code {
  min-height: 38px;
  margin: 14px 0 0;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .06em;
}


@keyframes slowZoom { from { transform: scale(1.03); } to { transform: scale(1.09); } }
@keyframes drift { from { transform: translate3d(0,0,0); } to { transform: translate3d(-120px,-180px,0); } }
@keyframes fogMove { 0%,100% { transform: translateX(-60%); } 50% { transform: translateX(60%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 900px) {
  .achievement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vote-platform-grid { grid-template-columns: 1fr; }
  .vote-actions { grid-template-columns: 1fr; }
  .topbar { padding: 0 18px; }
  .brand { width: 142px; }
  .burger { display: block; }
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: rgba(3, 8, 16, .96);
  }
  .nav.open { display: flex; }
  .hero, .two-col { grid-template-columns: 1fr; }
  .hero { padding-top: 118px; }
  .cards, .account-grid, .mini-grid, .referral-fields, .referral-milestones { grid-template-columns: 1fr; }
  .referral-fields form, .copy-field { grid-template-columns: 1fr; }
  .referral-fields form > .btn { margin-top: 0; }
  .admin-row, .upload-line, .cash-form, .admin-search, .game-account-form { grid-template-columns: 1fr; }
  .translation-editor-grid { grid-template-columns: 1fr; }
  .custom-top-up form { grid-template-columns: 1fr; }
  .vote-reward-list div { grid-template-columns: 1fr; align-items: start; }
  .row-actions { justify-content: flex-start; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .discord-float {
    right: 16px;
    bottom: 16px;
    min-width: 48px;
    padding: 12px;
  }
  .discord-float span { display: none; }
}

@media (max-width: 520px) {
  .achievement-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 22px 18px; }
  .auth-card h1 { font-size: 30px; }
  .article--major-update { padding-right: 14px; padding-left: 14px; }
  .article--major-update > h1 { font-size: 32px; line-height: 1.12; }
  .article--major-update .article-content { padding: 20px 17px; border-radius: 14px; }
  .article--major-update .article-content p { font-size: 16px; }
  .article-update-list li { padding-left: 19px; font-size: 15px; }
}
