/* Ancient Conquer â€” public site design system (matches AncientConquerLoader) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #14161c;
  --bg2: #1a1d26;
  --panel: #1e222c;
  --panel2: #252a36;
  --line: rgba(212, 185, 140, 0.12);
  --line2: rgba(212, 185, 140, 0.22);
  --ink: #ece7df;
  --muted: #9a9388;
  --faint: #6a645c;
  --gold: #d4b98c;
  --gold2: #b8956a;
  --sage: #8fa896;
  --rose: #c97b7b;
  --sky: #7f9bb8;
  --amber: #d4a574;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --header-h: 92px;
  --shell: 1480px;
  --gutter: clamp(16px, 2.4vw, 40px);
}

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

body {
  min-height: 100vh;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg, video {
  max-width: 100%;
  height: auto;
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: #f0e2c4; }

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 500px at 8% -10%, rgba(212, 185, 140, 0.10), transparent 55%),
    radial-gradient(700px 420px at 92% 8%, rgba(143, 168, 150, 0.08), transparent 50%),
    linear-gradient(180deg, #161922 0%, #12141a 55%, #101218 100%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(30, 34, 44, 0.96), rgba(20, 22, 28, 0.92));
  backdrop-filter: blur(12px);
}

.header-inner {
  position: relative;
  z-index: 1;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}
.brand-logo {
  display: block;
  height: calc(var(--header-h) - 20px);
  width: auto;
  max-width: min(380px, 55vw);
  object-fit: contain;
  object-position: left center;
}
.brand-mark,
.brand-sub {
  display: none;
}

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

.site-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
  background: rgba(212, 185, 140, 0.06);
  border-color: var(--line);
}

.btn-nav.primary {
  color: #1a140c !important;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  border: none !important;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(184, 149, 106, 0.22);
}

.btn-nav.primary:hover { filter: brightness(1.06); color: #1a140c !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
}

/* Main — wide MMORPG shell */
.site-main {
  position: relative;
  z-index: 1;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter) 80px;
}

/* Hero — full-bleed cinematic
   Artwork is ~16:9 (1365×768). Height tracks width so `cover` does not
   crop the baked title / characters on large monitors. */
.hero {
  position: relative;
  height: min(56.25vw, calc(100svh - var(--header-h)), 1100px);
  min-height: 420px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 36px;
  border-radius: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0e1014;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  transform: none;
}

.hero-slide.has-image,
.hero-slide-image {
  background-color: #0e1014;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Wide + short: show full art (sides letterbox) instead of cutting top/bottom */
@media (min-width: 1280px) and (max-height: 900px) {
  .hero-slide.has-image,
  .hero-slide-image {
    background-size: contain;
  }
}

.settings-block { margin-bottom: 18px; }
.settings-block h2 { margin-bottom: 14px; font-size: 1.15rem; }
.settings-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 0.9rem; }
.settings-images { margin-top: 12px; }
.settings-images .small,
.muted.small { font-size: 0.82rem; }
.hero-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin: 10px 0 14px;
}
.hero-thumb {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}
.hero-thumb img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.hero-thumb input { width: auto; margin-right: 4px; }
.settings-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}
.settings-subhead {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
}
.discord-section { margin-top: 8px; }
.discord-panel .panel-head { align-items: center; }
.discord-embed {
  padding: 0 0 4px;
  overflow: hidden;
  border-radius: 0 0 12px 12px;
}
.discord-embed iframe {
  display: block;
  width: 100%;
  min-height: 400px;
  border: 0;
  background: rgba(10, 12, 16, 0.35);
}

.hero-theme-gold {
  background:
    radial-gradient(ellipse 80% 60% at 72% 38%, rgba(212, 185, 140, 0.28), transparent 60%),
    radial-gradient(ellipse 45% 35% at 18% 78%, rgba(184, 149, 106, 0.16), transparent 55%),
    linear-gradient(135deg, #1a1d26 0%, #14161c 55%, #1e222c 100%);
}

.hero-theme-sage {
  background:
    radial-gradient(ellipse 75% 55% at 68% 42%, rgba(143, 168, 150, 0.24), transparent 58%),
    radial-gradient(ellipse 40% 30% at 15% 70%, rgba(212, 185, 140, 0.10), transparent 50%),
    linear-gradient(135deg, #171c1a 0%, #14161c 55%, #1a1f22 100%);
}

.hero-theme-sky {
  background:
    radial-gradient(ellipse 78% 58% at 70% 40%, rgba(127, 155, 184, 0.26), transparent 58%),
    radial-gradient(ellipse 42% 32% at 20% 75%, rgba(212, 185, 140, 0.08), transparent 50%),
    linear-gradient(135deg, #171a22 0%, #14161c 55%, #1a1d28 100%);
}

.hero-theme-rose {
  background:
    radial-gradient(ellipse 76% 56% at 74% 36%, rgba(201, 123, 123, 0.22), transparent 58%),
    radial-gradient(ellipse 44% 34% at 16% 72%, rgba(212, 185, 140, 0.10), transparent 52%),
    linear-gradient(135deg, #1c181a 0%, #14161c 55%, #221a1d 100%);
}

.hero-theme-ember {
  background:
    radial-gradient(ellipse 80% 58% at 66% 44%, rgba(212, 165, 116, 0.26), transparent 58%),
    radial-gradient(ellipse 48% 36% at 22% 68%, rgba(184, 149, 106, 0.14), transparent 52%),
    linear-gradient(135deg, #1c1914 0%, #14161c 55%, #221e18 100%);
}

.hero-slide.active {
  opacity: 1;
  transform: none;
  transition: opacity 1s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 22, 28, 0.88) 0%, rgba(20, 22, 28, 0.42) 42%, rgba(20, 22, 28, 0.12) 100%),
    linear-gradient(0deg, rgba(20, 22, 28, 0.55) 0%, transparent 42%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--shell);
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vh, 88px) var(--gutter) clamp(36px, 5vh, 72px);
  width: 100%;
  box-sizing: border-box;
}

.hero-content > .eyebrow,
.hero-content > h1,
.hero-content > .hero-lead,
.hero-content > .hero-actions,
.hero-content > .hero-dots {
  max-width: 720px;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.35rem, 4.8vw, 3.75rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero-lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  max-width: 560px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 32px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--line2);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.hero-dot.active,
.hero-dot:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.hero-mascot {
  position: absolute;
  right: 5%;
  bottom: 0;
  max-height: 280px;
  opacity: 0.85;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line2);
  background: rgba(212, 185, 140, 0.06);
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  transition: 0.2s ease;
}

.btn:hover { border-color: var(--gold); background: rgba(212, 185, 140, 0.12); color: var(--ink); }
.btn.primary {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #1a140c;
  border: none;
}
.btn.primary:hover { filter: brightness(1.05); color: #1a140c; }
.btn.ghost { background: transparent; }
.btn.full { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.stat-card {
  background: linear-gradient(180deg, var(--panel), var(--bg2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  min-height: 132px;
}

.stat-card::after {
  content: '';
  position: absolute;
  right: -20%;
  bottom: -40%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 185, 140, 0.12), transparent 70%);
}

.stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.stat-value {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.7rem, 2.2vw, 2.35rem);
  color: var(--gold);
  margin-top: 8px;
}

.stat-sub { font-size: 0.8rem; color: var(--muted); margin-top: 4px; line-height: 1.35; }

.class-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
  padding: 0;
}
.class-list li {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(212, 185, 140, 0.04);
}
.class-list.compact { margin-top: 10px; margin-bottom: 0; }
.class-list.compact li { font-size: 0.72rem; padding: 5px 10px; }

/* Panels */
.section { margin-bottom: 40px; }
.section.narrow { max-width: 440px; margin-left: auto; margin-right: auto; }

.grid-2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}

.panel {
  background: linear-gradient(180deg, rgba(37, 42, 54, 0.92), rgba(26, 29, 38, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.panel-head h2,
.page-hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}

.badge {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--sage);
  background: rgba(143, 168, 150, 0.12);
  border: 1px solid rgba(143, 168, 150, 0.25);
}

.news-list { list-style: none; }
.news-list li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(212, 185, 140, 0.08);
}
.news-list li:last-child { border-bottom: none; }
.news-list time { font-size: 0.75rem; color: var(--faint); }
.news-list strong { display: block; margin: 6px 0 4px; font-size: 1rem; color: var(--ink); }
.news-list p { font-size: 0.9rem; color: var(--muted); }

.panel-feature {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.feature-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(212, 185, 140, 0.18), transparent 65%),
    linear-gradient(180deg, rgba(37, 42, 54, 0.9), rgba(30, 34, 44, 0.6));
}

.feature-banner-mark {
  font-size: 3rem;
  opacity: 0.35;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.panel-body { padding: 22px; }
.panel-body h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  color: var(--ink);
  text-transform: none;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.panel-body p { color: var(--muted); margin-bottom: 18px; font-size: 0.95rem; }

/* Quick grid */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.quick-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
  transition: 0.2s;
  min-height: 96px;
}

.quick-card:hover {
  border-color: var(--gold);
  background: rgba(212, 185, 140, 0.06);
  color: var(--ink);
}

.quick-icon { font-size: 1.4rem; }
.quick-card strong { font-size: 0.95rem; }
.quick-card span:last-child { font-size: 0.8rem; color: var(--muted); }

/* Page hero compact */
.page-hero {
  padding: 56px 0 32px;
  text-align: center;
}
.page-hero.compact h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-size: 2.2rem;
  color: var(--ink);
  text-transform: none;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.page-hero p { color: var(--muted); max-width: 520px; margin: 0 auto; }

/* Forms */
.form-panel { padding: 28px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form label span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}
.auth-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(10, 12, 16, 0.45);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}
.auth-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(10, 12, 16, 0.45);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}
.auth-form input:focus,
.auth-form select:focus { border-color: var(--line2); }
.form-foot { margin-top: 18px; text-align: center; font-size: 0.9rem; color: var(--muted); }

.alert {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}
.alert-error {
  color: var(--rose);
  background: rgba(201, 123, 123, 0.1);
  border-color: rgba(201, 123, 123, 0.28);
}
.alert-ok {
  color: var(--sage);
  background: rgba(143, 168, 150, 0.12);
  border-color: rgba(143, 168, 150, 0.28);
}

.nav-user {
  font-size: 0.85rem;
  color: var(--gold);
  padding: 8px 10px;
  letter-spacing: 0.04em;
}
.nav-logout-form { display: inline; margin: 0; }
.btn-nav.ghost-btn {
  background: transparent;
  border: 1px solid var(--line2);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
}
.btn-nav.ghost-btn:hover { color: var(--ink); border-color: var(--gold); }

.page-hero code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85em;
  color: var(--gold2);
}

/* Shop */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.shop-card {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--bg2));
}

.shop-card.featured {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(212, 185, 140, 0.15), var(--shadow);
}

.shop-card img,
.shop-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
}

.shop-icon {
  font-size: 2rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(212, 185, 140, 0.06);
}

.shop-icon-vip {
  font-size: 2.2rem;
  color: var(--gold);
  border-color: rgba(212, 185, 140, 0.35);
  box-shadow: 0 0 24px rgba(212, 185, 140, 0.12);
}

.shop-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.shop-card .price { color: var(--muted); font-size: 0.85rem; margin-bottom: 16px; }

.form-hint {
  margin: -6px 0 12px;
  font-size: 0.85rem;
}
.referral-field.no-ref .referral-display {
  color: var(--faint);
}
.referral-field .referral-display[readonly] {
  cursor: default;
  opacity: 0.9;
  background: rgba(0, 0, 0, 0.18);
}

.referral-box { padding-bottom: 8px; }
.referral-link-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.referral-link-input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  color: var(--ink);
  font-size: 0.88rem;
}
.referral-copy-status {
  margin-top: 8px;
  color: var(--sage) !important;
}
.ref-yes {
  color: var(--sage);
  font-weight: 700;
  font-size: 1.1rem;
}
.ref-no {
  color: var(--rose);
  font-weight: 700;
  font-size: 1.1rem;
}
.inline-form { display: inline; margin: 0; }

.muted { color: var(--muted); font-size: 0.9rem; }
.center { text-align: center; }
.hero-sub-link { margin-top: 12px; font-size: 0.9rem; }
.hero-sub-link a { color: var(--gold); }
.shop-type {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold2);
  margin-bottom: 4px;
}

.shop-claim-guide {
  margin: 48px auto 8px;
  max-width: 480px;
  text-align: center;
}
.shop-claim-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.shop-claim-guide > .muted {
  margin-bottom: 18px;
}
.shop-claim-photo {
  display: block;
  width: min(100%, 360px);
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid var(--line2);
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: center top;
}
.shop-claim-caption {
  margin-top: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold2);
}

.qty-form { margin-top: 8px; }
.qty-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}
.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line2);
  background: rgba(212, 185, 140, 0.08);
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
  font-family: inherit;
}
.qty-btn:hover { border-color: var(--gold); color: var(--gold); }
.qty-input {
  width: 64px;
  text-align: center;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(10, 12, 16, 0.45);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
}
.qty-total { font-size: 0.8rem; margin-bottom: 12px; min-height: 1.2em; }

.admin-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(10, 12, 16, 0.45);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
}
.panel-pad { padding: 22px; }

/* Admin & tables */
.section.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.admin-stats { margin-bottom: 24px; }
.rank-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.rank-tab {
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rank-tab:hover,
.rank-tab.active {
  color: var(--ink);
  border-color: var(--gold);
  background: rgba(212, 185, 140, 0.08);
}
.rank-top-1 td:first-child { color: var(--gold); font-weight: 700; }
.rank-top-2 td:first-child { color: var(--gold2); font-weight: 600; }
.rank-top-3 td:first-child { color: var(--amber); font-weight: 600; }
.nobility-title {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nobility-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nobility-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  image-rendering: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 18px 16px;
  border-top: 1px solid var(--line);
}
.page-btn {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
}
.page-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.page-info { color: var(--muted); font-size: 0.85rem; }
.pagination-note { text-align: center; padding-top: 0; }

.panel-switch { margin-bottom: 24px; padding: 0; overflow: hidden; }
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.switch-row h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 6px;
}

.download-stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: auto;
  padding-top: 12px;
  padding-bottom: 8px;
}

/* Download hub */
.download-page-hero .download-page-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold2);
  margin-bottom: 10px;
}
.download-hub {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.download-steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin: 0 0 28px;
  padding: 0;
}
.download-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}
.download-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(212, 185, 140, 0.35);
  color: var(--gold2);
  font-size: 0.75rem;
  font-weight: 600;
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.download-grid--clients {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px) {
  .download-grid--clients {
    grid-template-columns: 1fr;
  }
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-inline-start: 6px;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.lang-btn {
  min-width: 2.1rem;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  text-align: center;
}
.lang-btn:hover {
  color: var(--ink);
}
.lang-btn.is-active {
  color: #1a140c;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
}
html[dir="rtl"] body {
  font-family: 'Outfit', 'Segoe UI', Tahoma, sans-serif;
}
html[dir="rtl"] .page-hero h1,
html[dir="rtl"] .hero-content h1,
html[dir="rtl"] .download-card h2,
html[dir="rtl"] .shop-claim-title {
  font-family: 'Fraunces', 'Segoe UI', Tahoma, serif;
}
html[dir="rtl"] .site-nav {
  text-align: right;
}
html[dir="rtl"] .form-foot,
html[dir="rtl"] .muted {
  text-align: inherit;
}
.download-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
  padding: 28px 26px 24px;
  border-radius: 20px;
  border: 1px solid rgba(212, 185, 140, 0.22);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 185, 140, 0.1), transparent 58%),
    linear-gradient(180deg, rgba(36, 32, 28, 0.92), rgba(18, 16, 14, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}
.download-card--primary {
  border-color: rgba(212, 185, 140, 0.38);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.45);
}
.download-card--utility {
  border-color: rgba(140, 170, 212, 0.22);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(140, 170, 212, 0.08), transparent 58%),
    linear-gradient(180deg, rgba(30, 34, 42, 0.92), rgba(16, 18, 24, 0.98));
}
.download-card--empty {
  grid-column: 1 / -1;
  align-items: center;
  text-align: center;
}
.download-card-glow {
  position: absolute;
  inset: -35% -15% auto;
  height: 160px;
  background: radial-gradient(circle, rgba(212, 185, 140, 0.2), transparent 70%);
  pointer-events: none;
}
.download-card-glow--soft {
  background: radial-gradient(circle, rgba(140, 170, 212, 0.14), transparent 70%);
}
.download-card-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 14px;
}
.download-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.download-badge--gold {
  border-color: rgba(212, 185, 140, 0.35);
  color: var(--gold2);
}
.download-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  position: relative;
}
.download-card-icon--client::before,
.download-card-icon--client::after,
.download-card-icon--fix::before,
.download-card-icon--fix::after {
  content: "";
  position: absolute;
  border-radius: 2px;
  background: var(--gold2);
}
.download-card-icon--client::before {
  inset: 10px 14px 16px 10px;
  transform: skewX(-8deg);
  opacity: 0.85;
}
.download-card-icon--client::after {
  width: 8px;
  height: 14px;
  right: 9px;
  bottom: 8px;
  transform: rotate(35deg);
}
.download-card-icon--fix::before {
  width: 16px;
  height: 4px;
  left: 8px;
  top: 16px;
  transform: rotate(-45deg);
}
.download-card-icon--fix::after {
  width: 10px;
  height: 4px;
  right: 8px;
  bottom: 11px;
  transform: rotate(-45deg);
  background: rgba(140, 170, 212, 0.9);
}
.download-card h2 {
  position: relative;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.55rem;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.2;
}
.download-card-desc {
  position: relative;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 8px;
  flex: 1;
}
.download-card-size {
  position: relative;
  margin: 0 0 18px;
  font-size: 0.78rem;
  color: var(--faint);
}
.download-card-cta {
  position: relative;
  margin-top: auto;
  min-width: 180px;
}
.download-hub-notes {
  margin: 22px auto 0;
  max-width: 640px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(30, 34, 44, 0.45);
  color: var(--faint);
  font-size: 0.84rem;
  line-height: 1.55;
  text-align: center;
}

.download-hero-card {
  position: relative;
  width: min(460px, 100%);
  margin: 0 auto;
  padding: 40px 36px 32px;
  text-align: center;
  border-radius: 22px;
  border: 1px solid rgba(212, 185, 140, 0.28);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 185, 140, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(36, 32, 28, 0.95), rgba(18, 16, 14, 0.98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.download-hero-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 180px;
  background: radial-gradient(circle, rgba(212, 185, 140, 0.22), transparent 70%);
  pointer-events: none;
}
.download-eyebrow {
  position: relative;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold2);
  margin-bottom: 12px;
}
.download-hero-card h2 {
  position: relative;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2rem;
  color: var(--ink);
  margin-bottom: 10px;
}
.download-desc {
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 auto 8px;
  max-width: 34ch;
}
.download-hero-card .download-size {
  position: relative;
  margin: 12px 0 22px;
  font-size: 0.8rem;
  color: var(--faint);
}
.download-cta {
  position: relative;
  min-width: 200px;
}
.download-notes {
  position: relative;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.82rem;
  line-height: 1.5;
}

.download-patches {
  max-width: 920px;
  margin: 0 auto;
}
.download-patches-panel {
  padding: 22px 24px 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(24, 28, 36, 0.55);
}
.download-patches-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.download-patches-head h2 {
  margin-bottom: 6px;
}
.download-patches-lead {
  margin-bottom: 0;
}
.download-patches-empty {
  margin: 8px 0 0;
}
.download-patches-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 12px;
}
.download-patches-group {
  border: 1px solid rgba(212, 185, 140, 0.14);
  border-radius: 14px;
  padding: 14px 14px 10px;
  background: rgba(255, 255, 255, 0.02);
}
.download-patches-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.download-patches-group-head h3 {
  margin: 0;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  color: var(--gold);
}
@media (max-width: 800px) {
  .download-patches-split {
    grid-template-columns: 1fr;
  }
}
.patch-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.patch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(30, 34, 44, 0.55);
}
.patch-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.patch-meta strong {
  color: var(--ink);
  font-weight: 600;
  word-break: break-all;
}
.download-patches-browse {
  margin-top: 16px;
  font-size: 0.85rem;
}

.home-split {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.home-split > .panel { min-height: 420px; }
.events-side { min-width: 0; }
.events-table td { vertical-align: top; }
.event-desc {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 400;
}
.next-event-hero {
  padding: 20px 22px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(212, 185, 140, 0.08), transparent);
}
.next-event-hero.is-live {
  background: linear-gradient(180deg, rgba(143, 168, 150, 0.12), transparent);
}
.next-event-hero h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.45rem;
  color: var(--ink);
  margin: 10px 0 6px;
}
.next-event-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.next-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
}
.pill-live {
  color: var(--sage);
  border-color: rgba(143, 168, 150, 0.45);
  background: rgba(143, 168, 150, 0.12);
}
.pill-next {
  color: var(--gold);
  border-color: rgba(212, 185, 140, 0.4);
  background: rgba(212, 185, 140, 0.1);
}
.pill-boss {
  color: var(--amber);
  border-color: rgba(212, 165, 116, 0.4);
}
.next-schedule {
  color: var(--faint);
  font-size: 0.78rem;
}
.next-countdown {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}
.next-countdown strong {
  display: block;
  margin-top: 4px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.55rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.next-event-hero.is-live .next-countdown strong { color: var(--sage); }
.next-event-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.next-event-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
}
.next-event-list li:first-child { border-top: 0; }
.next-list-main strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
}
.next-list-time {
  text-align: right;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}
.next-list-time strong {
  display: block;
  margin-top: 2px;
  color: var(--gold2);
  font-size: 0.9rem;
}
.next-event-list li.is-live .next-list-time strong { color: var(--sage); }
.muted.form-hint {
  font-size: 0.82rem;
  line-height: 1.45;
  margin: -4px 0 4px;
}
.home-quick {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 1100px) {
  .home-quick {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.admin-nav-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.admin-nav-row .quick-card {
  text-align: center;
  font-weight: 600;
}
.admin-nav-row .quick-card span { font-weight: 400; font-size: 0.8rem; color: var(--muted); }

@media (max-width: 960px) {
  .home-split { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .admin-nav-row-wide { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .admin-nav-row { grid-template-columns: 1fr 1fr; }
  .admin-nav-row-wide { grid-template-columns: 1fr; }
  .download-hero-card { padding: 32px 22px 26px; }
  .guide-article-body { padding: 20px 18px; }
  .patch-row {
    flex-direction: column;
    align-items: stretch;
  }
  .patch-row .btn { width: 100%; justify-content: center; }
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(212, 185, 140, 0.08);
}
.data-table th {
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.data-table tbody tr:hover { background: rgba(212, 185, 140, 0.03); }
.order-ref {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.85rem;
  color: var(--gold2);
  word-break: break-all;
}
.table-actions { white-space: nowrap; }
.table-actions a,
.table-actions .link-btn {
  color: var(--gold);
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 0;
  margin-right: 10px;
}
.table-actions .link-btn.danger { color: var(--rose); }
.inline-form { display: inline; }

.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
}
.status-pending { color: var(--amber); border-color: rgba(212, 165, 116, 0.35); }
.status-awaiting_payment { color: #7eb8ff; border-color: rgba(126, 184, 255, 0.35); }
.status-awaiting_review { color: #e0b35a; border-color: rgba(224, 179, 90, 0.4); }
.status-claimed { color: var(--sage); border-color: rgba(143, 168, 150, 0.35); }
.status-cancelled { color: var(--rose); border-color: rgba(201, 123, 123, 0.35); }
.status-rejected { color: var(--rose); border-color: rgba(201, 123, 123, 0.35); }

.status-gm { color: #e0b35a; border-color: rgba(224, 179, 90, 0.4); }
.status-cheater { color: var(--rose); border-color: rgba(201, 123, 123, 0.45); }
.status-drop_item, .status-pick_item, .status-sell_item { color: #7eb8ff; border-color: rgba(126, 184, 255, 0.35); }
.status-trade_item { color: #c4a7e7; border-color: rgba(196, 167, 231, 0.4); }
.status-suspicious_cps { color: #e8a87c; border-color: rgba(232, 168, 124, 0.5); }
.status-emoney_buy, .status-emoney_mono_buy, .status-web_shop_claim { color: var(--sage); border-color: rgba(143, 168, 150, 0.4); }
.status-action_log, .status-mail, .status-misc { color: var(--muted); }

/* —— Game logs investigation UI —— */
.gmlog-shell { overflow: visible; }
.gmlog-toolbar {
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gmlog-toolbar-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.gmlog-toolbar-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.gmlog-toolbar-hint { margin-top: 4px; max-width: 52ch; }
.gmlog-path {
  font-size: 0.78rem;
  color: var(--muted);
  max-width: min(420px, 100%);
}
.gmlog-path summary {
  cursor: pointer;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  user-select: none;
}
.gmlog-path summary::-webkit-details-marker { display: none; }
.gmlog-path[open] summary { border-color: var(--line2); color: var(--ink); }
.gmlog-path code {
  display: block;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--muted);
  word-break: break-all;
  font-size: 0.75rem;
}

.gmlog-toolbar-main {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(110px, 1fr));
  gap: 12px;
}
.gmlog-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
}
.gmlog-field input,
.gmlog-field select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(10, 12, 16, 0.45);
  color: var(--ink);
  font: inherit;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.92rem;
}
.gmlog-field input:focus,
.gmlog-field select:focus {
  outline: none;
  border-color: rgba(212, 185, 140, 0.45);
  box-shadow: 0 0 0 3px rgba(212, 185, 140, 0.08);
}

.gmlog-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gmlog-chips-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gmlog-chips-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.gmlog-title-cats {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
}
.gmlog-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.gmlog-chip:hover {
  color: var(--ink);
  border-color: var(--line2);
}
.gmlog-chip.is-active {
  color: #1a140c;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  border-color: transparent;
  font-weight: 600;
}
.gmlog-chip-count {
  font-size: 0.72rem;
  opacity: 0.8;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
}
.gmlog-chip.is-active .gmlog-chip-count {
  background: rgba(0, 0, 0, 0.16);
  color: #1a140c;
}
.gmlog-chip-alert {
  border-color: rgba(232, 168, 124, 0.45);
  color: #e8a87c;
}
.gmlog-chip-alert.is-active {
  color: #1a140c;
  background: linear-gradient(135deg, #e8a87c, #d4896a);
}
.gmlog-field-mincps input {
  min-width: 7.5rem;
  font-variant-numeric: tabular-nums;
}
.gmlog-field.is-hidden {
  display: none;
}
.gmlog-suspicious-hint {
  margin: 0;
  padding: 0 2px;
}
.gmlog-suspicious-sources {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(232, 168, 124, 0.06);
}
.gmlog-suspicious-sources.is-hidden {
  display: none;
}
.gmlog-subchips {
  flex-wrap: wrap;
}
.gmlog-subchip {
  font-size: 0.82rem;
  padding: 5px 10px;
}

.gmlog-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.gmlog-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.gmlog-summary-card {
  background: linear-gradient(180deg, rgba(37, 42, 54, 0.95), rgba(30, 34, 44, 0.92));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 96px;
}
.gmlog-summary-link {
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.gmlog-summary-link:hover {
  border-color: var(--gold);
  color: inherit;
  transform: translateY(-1px);
}
.gmlog-summary-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.gmlog-summary-value {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.85rem;
  color: var(--gold);
  line-height: 1.1;
}
.gmlog-summary-player {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
  color: var(--ink);
  word-break: break-word;
}
.gmlog-summary-meta {
  font-size: 0.8rem;
  color: var(--muted);
}
.gmlog-summary-main {
  border-color: rgba(212, 185, 140, 0.28);
}

.gmlog-timeline-panel { padding-bottom: 8px; }
.gmlog-empty {
  text-align: center;
  padding: 48px 20px;
}
.gmlog-empty strong {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.gmlog-banner {
  margin: 0 16px 12px;
  border-radius: 10px;
  border: 1px solid rgba(224, 179, 90, 0.35);
  background: rgba(224, 179, 90, 0.08);
  color: var(--muted);
  font-size: 0.88rem;
}
.gmlog-timeline {
  padding: 8px 18px 22px;
}
.gmlog-day + .gmlog-day { margin-top: 28px; }
.gmlog-day-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 4px 8px;
  border-bottom: 1px solid var(--line);
  background: rgba(20, 22, 28, 0.94);
  backdrop-filter: blur(8px);
}
.gmlog-day-label {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  color: var(--ink);
}
.gmlog-day-count {
  font-size: 0.78rem;
  color: var(--faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gmlog-day-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.gmlog-event {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  position: relative;
  padding: 14px 12px;
  border-radius: 12px;
  margin: 0 -4px;
}
.gmlog-event:hover {
  background: rgba(255, 255, 255, 0.02);
}
.gmlog-event + .gmlog-event {
  border-top: 1px solid rgba(212, 185, 140, 0.06);
}
.gmlog-event-rail {
  width: 10px;
  margin-top: 6px;
  border-radius: 999px;
  background: rgba(212, 185, 140, 0.22);
  justify-self: center;
  min-height: 10px;
  height: 10px;
}
.gmlog-event.cat-gm .gmlog-event-rail { background: #e0b35a; }
.gmlog-event.cat-cheater .gmlog-event-rail { background: var(--rose); }
.gmlog-event.cat-drop_item .gmlog-event-rail,
.gmlog-event.cat-pick_item .gmlog-event-rail,
.gmlog-event.cat-sell_item .gmlog-event-rail { background: #7eb8ff; }
.gmlog-event.cat-trade_item .gmlog-event-rail { background: #c4a7e7; }
.gmlog-event.cat-suspicious_cps .gmlog-event-rail { background: #e8a87c; }
.gmlog-event.cat-emoney_buy .gmlog-event-rail,
.gmlog-event.cat-emoney_mono_buy .gmlog-event-rail,
.gmlog-event.cat-web_shop_claim .gmlog-event-rail { background: var(--sage); }

.gmlog-event-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 6px;
}
.gmlog-event-time {
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  color: var(--gold);
  min-width: 4.8rem;
}
.gmlog-event-player {
  font-weight: 600;
  color: var(--ink);
}
.gmlog-event-player:hover { color: var(--gold); }
.gmlog-event-title,
.gmlog-event-story {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.4;
}
.gmlog-event-lines {
  margin: 6px 0 0;
  padding: 8px 12px;
  list-style: none;
  border-left: 2px solid rgba(212, 185, 140, 0.28);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 4px;
}
.gmlog-event-lines li {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}
.gmlog-event-lines li:first-child {
  color: var(--ink);
  font-weight: 550;
}
.gmlog-event-detail {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.gmlog-cat-badge {
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}
.gmlog-ids {
  opacity: 0.85;
}
.gmlog-event-foot {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.gmlog-event-file {
  font-size: 0.72rem;
  color: var(--faint);
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gmlog-raw {
  font-size: 0.78rem;
}
.gmlog-raw summary {
  cursor: pointer;
  color: var(--amber);
  user-select: none;
}
.gmlog-raw code {
  display: block;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--muted);
}

@media (max-width: 960px) {
  .gmlog-toolbar-main {
    grid-template-columns: 1fr 1fr;
  }
  .gmlog-field-player { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .gmlog-toolbar-main { grid-template-columns: 1fr; }
  .gmlog-toolbar-top { flex-direction: column; }
}

.turnstile-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 14px 0 8px;
  min-height: 72px;
}
.turnstile-wrap .cf-turnstile-host {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 300px;
  min-height: 65px;
}
.turnstile-wrap .cf-turnstile,
.turnstile-wrap iframe {
  margin-left: auto;
  margin-right: auto;
}
.turnstile-retry {
  min-width: 160px;
}

.shop-pay-form { margin-top: 0; }
.shop-pay-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.shop-pay-stack .btn { width: 100%; justify-content: center; }
.shop-gift-link { margin-top: 8px; display: inline-flex; justify-content: center; }

.nav-credits {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(224, 179, 90, 0.35);
  background: rgba(224, 179, 90, 0.08);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.82rem;
  white-space: nowrap;
}
.nav-credits:hover {
  border-color: var(--gold);
  background: rgba(224, 179, 90, 0.14);
}
.nav-credits-label {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nav-credits strong {
  color: var(--gold);
  font-weight: 600;
}

.admin-menu {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}
.admin-menu-group {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 12, 16, 0.35);
}
.admin-menu-title {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.admin-menu-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-menu-link {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
}
.admin-menu-link:hover {
  background: rgba(224, 179, 90, 0.08);
  border-color: rgba(224, 179, 90, 0.2);
}
.admin-menu-link.is-active {
  background: rgba(224, 179, 90, 0.14);
  border-color: rgba(224, 179, 90, 0.35);
  color: var(--gold);
}
.inline-credits-form,
.inline-seller-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.inline-credits-form input[type="number"],
.inline-seller-form input[type="number"] {
  width: 6.5rem;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(10, 12, 16, 0.45);
  color: var(--ink);
  font-family: inherit;
}
@media (max-width: 960px) {
  .admin-menu { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .admin-menu { grid-template-columns: 1fr; }
}
.gift-checkout .gift-panel { max-width: 720px; margin: 0 auto; }
.gift-order-summary { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.gift-total { font-size: 1.35rem; margin-top: 6px; color: var(--amber); }
.gift-instructions { margin-bottom: 20px; }
.gift-instructions h2 { font-size: 1.15rem; margin-bottom: 8px; }
.gift-instructions ol, .gift-instructions ul { padding-left: 1.2rem; color: var(--muted); }
.gift-instructions p { color: var(--muted); margin-bottom: 8px; }
.row-review { background: rgba(224, 179, 90, 0.06); }

.admin-form textarea.textarea,
.admin-form .textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(10, 12, 16, 0.45);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}
.checkbox-row input { width: auto; }
.btn.small { padding: 8px 14px; font-size: 0.75rem; }
.panel-head .btn { margin-left: auto; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Guide */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.guide-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--bg2));
}

.guide-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.guide-card-link:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.guide-card-link .badge {
  display: inline-block;
  margin-bottom: 8px;
}

.guide-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2rem;
  color: var(--gold2);
  opacity: 0.5;
}

.guide-card h3 { margin: 8px 0 10px; font-size: 1.1rem; }
.guide-card p { color: var(--muted); font-size: 0.92rem; }

.guide-article {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 24px 48px;
}
.guide-article-hero {
  margin-bottom: 20px;
}
.guide-article-hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--gold);
  margin: 12px 0 10px;
}
.guide-article-lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 42ch;
}
.guide-article-meta {
  margin-top: 12px;
  color: var(--faint);
  font-size: 0.8rem;
}
.guide-article-body {
  padding: 28px 30px;
}
.guide-prose {
  color: var(--ink);
  line-height: 1.7;
  font-size: 1rem;
}
.guide-prose h1,
.guide-prose h2,
.guide-prose h3 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--gold);
  margin: 1.4em 0 0.55em;
  line-height: 1.25;
}
.guide-prose h1 { font-size: 1.7rem; }
.guide-prose h2 { font-size: 1.35rem; }
.guide-prose h3 { font-size: 1.15rem; }
.guide-prose p { margin: 0 0 1em; color: var(--muted); }
.guide-prose ul,
.guide-prose ol {
  margin: 0 0 1.1em 1.25em;
  color: var(--muted);
}
.guide-prose li { margin: 0.35em 0; }
.guide-prose a { color: var(--gold2); text-decoration: underline; }
.guide-prose blockquote {
  margin: 1em 0;
  padding: 12px 16px;
  border-left: 3px solid var(--gold);
  background: rgba(212, 185, 140, 0.08);
  color: var(--muted);
}
.guide-prose img {
  max-width: 100%;
  border-radius: 12px;
  margin: 1em 0;
}
.guide-prose pre,
.guide-prose code {
  font-family: ui-monospace, Consolas, monospace;
  background: rgba(10, 12, 16, 0.55);
  border-radius: 8px;
}
.guide-prose code { padding: 0.1em 0.35em; font-size: 0.9em; }
.guide-prose pre { padding: 14px; overflow: auto; margin: 1em 0; }

.guide-edit-section { max-width: 960px; margin-left: auto; margin-right: auto; }
.guide-quill {
  min-height: 360px;
  margin-bottom: 8px;
  background: rgba(10, 12, 16, 0.45);
  border-radius: 0 0 12px 12px;
  color: var(--ink);
}
.guide-edit-section .ql-toolbar.ql-snow {
  border: 1px solid var(--line);
  border-radius: 12px 12px 0 0;
  background: rgba(20, 22, 28, 0.95);
}
.guide-edit-section .ql-container.ql-snow {
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  min-height: 360px;
}
.guide-edit-section .ql-editor {
  min-height: 340px;
  color: var(--ink);
}
.guide-edit-section .ql-editor.ql-blank::before {
  color: var(--faint);
  font-style: normal;
}
.guide-edit-section .ql-snow .ql-stroke { stroke: var(--muted); }
.guide-edit-section .ql-snow .ql-fill { fill: var(--muted); }
.guide-edit-section .ql-snow .ql-picker { color: var(--muted); }
.guide-edit-section .ql-snow .ql-picker-options {
  background: var(--panel);
  border-color: var(--line);
}
.admin-nav-row-wide {
  grid-template-columns: repeat(5, 1fr);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  margin-top: 56px;
  background:
    linear-gradient(180deg, rgba(26, 29, 38, 0.4), rgba(20, 22, 28, 0.98)),
    rgba(20, 22, 28, 0.98);
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 42px var(--gutter) 32px;
  display: grid;
  gap: 28px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 40px;
  align-items: flex-start;
}

.footer-brand strong {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--gold);
  font-size: 1.25rem;
}

.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }

.footer-links { display: flex; gap: 18px 22px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--muted); font-size: 0.92rem; }
.footer-links a:hover { color: var(--gold); }

.footer-partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.partners-label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-right: 4px;
}

.partner-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.partner-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  line-height: 0;
}

.partner-badge:hover {
  border-color: rgba(212, 185, 140, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.partner-badge img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  border-radius: 4px;
}

.footer-disclaimer {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--faint);
  max-width: 900px;
}
.footer-copy { font-size: 0.78rem; color: var(--faint); }


/* Responsive */
@media (max-width: 960px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-grid { grid-template-columns: 1fr; }
  .hero-mascot { display: none; }
  .home-split { grid-template-columns: 1fr; }
  .admin-nav-row-wide { grid-template-columns: 1fr 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .form-row-2 { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --header-h: 72px; }

  .site-main { padding: 0 var(--gutter) 48px; }
  .header-inner { padding: 0 var(--gutter); gap: 10px; }
  .brand-logo {
    max-width: min(260px, 62vw);
  }

  .nav-toggle {
    display: flex;
    z-index: 120;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(var(--header-h) - 4px);
    left: 10px;
    right: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(30, 34, 44, 0.98);
    box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h) - 16px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav.open { display: flex; }

  .site-nav a,
  .site-nav .btn-nav,
  .site-nav .ghost-btn {
    width: 100%;
    text-align: center;
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  .nav-user {
    display: block;
    text-align: center;
    padding: 8px 0 4px;
    color: var(--muted);
    font-size: 0.85rem;
  }

  .nav-logout-form { display: block; width: 100%; }
  .nav-logout-form .ghost-btn,
  .nav-logout-form button { width: 100%; }

  body.nav-open { overflow: hidden; }

  .hero {
    height: clamp(380px, 62vw, calc(100svh - var(--header-h) - 8px));
    min-height: 380px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 24px;
    border-radius: 0;
  }

  .hero-slide.has-image,
  .hero-slide-image {
    background-size: cover;
    background-position: center 35%;
  }

  .hero-content {
    padding: 40px var(--gutter) 32px;
    justify-content: flex-end;
  }

  .hero h1 {
    font-size: clamp(1.65rem, 7vw, 2.2rem);
    line-height: 1.15;
  }

  .hero-lead { font-size: 0.95rem; max-width: none; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .page-hero { padding: 28px 0 18px; }
  .page-hero.compact h1 { font-size: 1.6rem; }
  .page-hero p { font-size: 0.92rem; }

  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 22px;
  }

  .stat-card { padding: 14px; }
  .stat-value { font-size: 1.45rem; }
  .section { margin-bottom: 24px; }

  .panel-head {
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 14px 10px;
  }

  .news-list li { padding: 14px; }
  .next-event-hero { padding: 16px; }
  .next-event-hero h3 { font-size: 1.2rem; }
  .next-event-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .quick-grid,
  .home-quick { grid-template-columns: 1fr; }

  .admin-nav-row,
  .admin-nav-row-wide { grid-template-columns: 1fr; }

  .admin-stats { grid-template-columns: 1fr 1fr; }

  .download-hero-card { padding: 28px 18px 22px; }
  .download-hero-card h2 { font-size: 1.35rem; }
  .download-grid { grid-template-columns: 1fr; }
  .download-card h2 { font-size: 1.35rem; }
  .download-patches-panel { padding: 18px 16px 16px; }
  .download-patches-head { flex-direction: column; }
  .guide-article-body { padding: 18px 14px; }
  .guide-grid { grid-template-columns: 1fr; }

  .rank-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    margin-bottom: 14px;
    scrollbar-width: thin;
  }

  .rank-tab { flex: 0 0 auto; white-space: nowrap; }

  .panel:has(.data-table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-table {
    min-width: 560px;
    font-size: 0.82rem;
  }

  .data-table th,
  .data-table td { padding: 10px; }

  .auth-form input,
  .auth-form select,
  .admin-form input,
  .admin-form select,
  .admin-form textarea { font-size: 16px; }

  .form-panel,
  .settings-form .settings-block { padding: 16px; }

  .footer-inner { padding: 28px var(--gutter); }
  .footer-links { gap: 12px 16px; }
  .footer-partners { flex-direction: column; align-items: flex-start; }
  .partner-badge img { height: 36px; }

  .discord-embed iframe {
    min-height: 320px;
    height: 320px;
  }

  .shop-card { padding: 18px 16px; }
  .alert { font-size: 0.9rem; }
}

@media (max-width: 420px) {
  .stats-row,
  .admin-stats { grid-template-columns: 1fr; }

  .stat-value { font-size: 1.35rem; }
  .hero { height: 360px; min-height: 360px; }
  .data-table { min-width: 480px; }
}

/* Redeem cards */
.redeem-admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
}
.redeem-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.redeem-filter-form label {
  display: grid;
  gap: 4px;
}
.redeem-code-input {
  letter-spacing: 0.06em;
  font-family: ui-monospace, Consolas, monospace;
  text-transform: uppercase;
}
.redeem-success-box {
  margin: 12px 0 8px;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  background: rgba(212, 185, 140, 0.08);
}
.redeem-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.redeem-card-face {
  --redeem-accent: #d4b98c;
  width: min(420px, 100%);
  min-height: 560px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 185, 140, 0.28);
  color: #f4efe6;
  position: relative;
}
.redeem-card-face::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.55));
  pointer-events: none;
}
.redeem-card-face-inner {
  position: relative;
  z-index: 1;
  padding: 28px 24px 32px;
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  min-height: 560px;
  box-sizing: border-box;
}
.redeem-card-brand {
  margin: 0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--redeem-accent);
}
.redeem-card-title {
  margin: 4px 0 0;
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: #fff;
}
.redeem-card-reward {
  margin: 8px 0 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--redeem-accent);
}
.redeem-card-product { margin: 0; font-size: 0.9rem; }
.redeem-card-qr-wrap {
  margin-top: 18px;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
}
.redeem-card-qr-wrap img {
  display: block;
  width: 160px;
  height: 160px;
}
.redeem-card-code {
  margin: 16px 0 0;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(0,0,0,0.35);
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(212,185,140,0.35);
}
.redeem-card-hint {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.72);
  max-width: 280px;
}

/* Drop unlock — slider puzzle captcha */
.drop-unlock-section { max-width: 420px; }
.drop-unlock-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}
.drop-unlock-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.drop-unlock-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
  color: var(--gold);
}
.slider-captcha {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.slider-captcha-stage {
  position: relative;
  width: 320px;
  height: 160px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line2);
  background: #12141a;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
}
.slider-captcha-bg {
  display: block;
  width: 320px;
  height: 160px;
  max-width: none;
  pointer-events: none;
}
.slider-captcha-piece {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.45));
  will-change: left;
}
.slider-captcha-track {
  position: relative;
  height: 44px;
  width: 320px;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  overflow: hidden;
}
.slider-captcha-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 24px;
  background: linear-gradient(90deg, rgba(212,185,140,0.18), rgba(212,185,140,0.08));
  pointer-events: none;
}
.slider-captcha-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--muted);
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.slider-captcha-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  cursor: grab;
  background: linear-gradient(145deg, #e6d3b0, var(--gold2));
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
}
.slider-captcha-knob span {
  width: 10px;
  height: 2px;
  background: rgba(26,20,12,0.55);
  border-radius: 2px;
  box-shadow: 0 -4px 0 rgba(26,20,12,0.55), 0 4px 0 rgba(26,20,12,0.55);
}
.slider-captcha-knob.is-active,
.slider-captcha-track.is-dragging .slider-captcha-knob {
  cursor: grabbing;
  filter: brightness(1.05);
}
.slider-captcha.is-solved .slider-captcha-track {
  border-color: rgba(143, 168, 150, 0.45);
}
.slider-captcha.is-solved .slider-captcha-fill {
  width: 100% !important;
  background: rgba(143, 168, 150, 0.22);
}
.slider-captcha.is-solved .slider-captcha-knob {
  background: linear-gradient(145deg, #b6c9b8, #8fa896);
}

@media print {
  .page-hero, .admin-menu, .redeem-preview-actions, .site-header, .site-footer, .panel-pad {
    display: none !important;
  }
  .redeem-card-face {
    box-shadow: none;
    break-inside: avoid;
  }
}
