:root {
  --bg: #0d0f14;
  --card: #161a22;
  --border: #222838;
  --border-dashed: #333b4f;
  --text: #e8eaf0;
  --text-soft: #c9cfdc;
  --muted: #9aa3b5;
  --faint: #6b7385;
  --brand: #9146ff;
  --brand-hover: #a56bff;
  --link: #b8a2ff;
  --link-hover: #d6c8ff;
  --ok: #3ddc97;
  --ok-bg: #15301f;
  --warn: #ffb020;
  --warn-bg: #3a2a0a;
  --radius: 12px;
  --ticket: #16121f;
  --ticket-edge: #2c2440;
  --glow: #b38cff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; overflow-x: hidden; }
/* A faint violet light at the top of the page, fixed so it costs nothing to scroll. */
body::before { content: ""; position: fixed; inset: 0 0 auto 0; height: 60vh; background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(145, 70, 255, .16), transparent 70%); pointer-events: none; z-index: -1; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 24px 16px 56px; }
.wrap.narrow { max-width: 1000px; }

.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.logo { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.logo span { color: var(--brand); }
.logo:hover { color: var(--text); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; }

section { padding: 24px 0 40px; }
h1 { margin: 0 0 14px; font-size: clamp(32px, 6vw, 60px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; }
h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -0.02em; }
.lede { margin: 0; max-width: 620px; color: var(--muted); font-size: 18px; line-height: 1.55; }
.sub { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.note { margin: 12px 0 0; color: var(--faint); font-size: 13px; }

.eyebrow { margin: 0 0 10px; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; color: var(--ok); }
.eyebrow.warn { color: var(--warn); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }

.hero { padding: 48px 0 32px; }
.tiles { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.tile { flex: 1 1 160px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.tile .num { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tile .num.warn { color: var(--warn); }
.tile .lbl { color: var(--muted); font-size: 14px; }
.tiles.small .tile { padding: 14px 16px; flex-basis: 140px; }
.tiles.small .num { font-size: 20px; }

.banner { margin: 20px 0 0; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: var(--text-soft); font-size: 14px; }
.banner.warn { border-color: #5a4310; background: var(--warn-bg); color: var(--warn); }
.banner.sample { border-color: #3d2e66; background: #1d1630; color: var(--link); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 20px 16px; }
.card { display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-decoration: none; color: inherit; min-width: 0; transition: border-color .15s; }
.card:hover { color: inherit; border-color: var(--brand); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.card-name { font-weight: 600; font-size: 16px; min-width: 0; overflow-wrap: anywhere; }
.card-reward { color: var(--text-soft); font-size: 14px; }
.card-req { color: var(--muted); font-size: 13px; }

.badge { font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 999px; white-space: nowrap; background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.section-head .sub { margin: 0; }
/* Search, filters and sort on the right, with the update time under them. */
.list-tools { flex-direction: column; align-items: flex-end; justify-content: flex-start; margin-left: auto; }
.list-tools .updated { text-align: right; }
.picker { display: flex; gap: 4px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 4px; }
.picker button { background: transparent; color: var(--text-soft); border: 0; border-radius: 7px; padding: 8px 12px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.picker button[aria-pressed="true"] { background: var(--brand); color: #fff; }

.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.search { flex: 1 1 200px; max-width: 260px; min-width: 0; background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 14px; }
.search::placeholder { color: var(--faint); }
.search:focus { outline: 2px solid var(--link); outline-offset: 2px; }
.sort { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.sort select { background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 14px; }
.group { margin-bottom: 28px; }
.group summary { cursor: pointer; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; padding: 6px 0 14px; list-style-position: inside; }
.group .count { color: var(--faint); font-weight: 600; font-size: 14px; margin-left: 4px; }
.reward-row { display: flex; align-items: center; gap: 8px; color: var(--text-soft); font-size: 14px; }
.reward-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.card-cta { margin-top: auto; color: var(--link); font-size: 13px; font-weight: 600; }
.badge.soon { background: #1d1630; color: var(--link); }
.card-row { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.card-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; flex: 1; }
.art { width: 88px; height: auto; aspect-ratio: 3 / 4; border-radius: 8px; object-fit: cover; flex: none; background: var(--border); }
.art-lg { width: 120px; border-radius: 12px; margin-bottom: 18px; }
.art-fallback { display: flex; align-items: center; justify-content: center; background: var(--brand); color: #fff; font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.art-lg.art-fallback { font-size: 36px; }
.reward-thumb { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; background: var(--card); flex: none; }
/* Loot ticket: the drop card. A stub with the serial and box art, a dashed
   perforation, and two notches cut out of the edge where the tear would be. */
.ticket { --stub: 112px; position: relative; display: flex; min-width: 0; background: var(--ticket); border: 1px solid var(--ticket-edge); border-radius: 14px; color: var(--text); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.ticket:hover { color: var(--text); transform: translateY(-2px); border-color: var(--glow); box-shadow: 0 10px 30px -12px rgba(145, 70, 255, .55); }
.ticket::before, .ticket::after { content: ""; position: absolute; left: calc(var(--stub) - 10px); width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 1px solid var(--ticket-edge); box-sizing: border-box; }
.ticket::before { top: -11px; }
.ticket::after { bottom: -11px; }
.ticket-stub { width: var(--stub); flex: none; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 12px; border-right: 2px dashed var(--ticket-edge); }
.serial { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--glow); font-variant-numeric: tabular-nums; }
.ticket-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; flex: 1; padding: 16px 18px; }
.ticket .art { width: 80px; }
.ticket:hover .art { box-shadow: 0 0 0 2px var(--glow); }

/* "Load more" under each group on the home page. */
.more { display: block; margin: 18px auto 0; background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 10px 18px; font-weight: 600; font-size: 14px; }
.more:hover { border-color: var(--brand); }
.more[hidden] { display: none; }

/* Countdown strip for the drop ending soonest. */
.ticker { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 22px 0 0; padding: 10px 16px; border-radius: 999px; background: rgba(145, 70, 255, .12); border: 1px solid rgba(179, 140, 255, .35); font-size: 14px; }
.ticker[hidden] { display: none; }
.ticker-label { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--glow); }
.ticker a { color: var(--text); font-weight: 700; }
.ticker a:hover { color: var(--glow); }
.ticker-time { color: var(--warn); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Game page reward ticket: wider stub, and labelled fields on the body side. */
.ticket-wide { --stub: 168px; margin: 28px 0 0; max-width: 720px; }
.ticket-wide:hover { transform: none; box-shadow: none; border-color: var(--ticket-edge); }
.ticket-wide .ticket-stub { padding: 18px 16px; }
.ticket-wide .reward-lg { width: 100%; height: auto; aspect-ratio: 1; margin: 0; border: 0; border-radius: 10px; }
.ticket-wide .ticket-body { padding: 20px 24px; gap: 14px; }
@media (max-width: 520px) {
  .ticket-wide { --stub: 128px; }
  .ticket-wide .ticket-stub { padding: 14px 12px; }
  .ticket-wide .ticket-body { padding: 16px 16px; }
  .ticket-field .val { font-size: 15px; }
}
.ticket-field { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ticket-field .lbl { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--glow); }
.ticket-field .val { font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
/* Game page layout: breadcrumb, hero row, campaign card. */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 0 0; font-size: 14px; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.game-hero { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; max-width: none; padding: 24px 0 8px; }
.game-hero .art-lg { margin: 0; }
.hero-text { flex: 1 1 280px; min-width: 0; }
.hero-text h1 { margin-bottom: 10px; }
.stats { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.updated { margin: 0; color: var(--faint); font-size: 13px; }
.hero-text .btn { margin-top: 18px; }
.campaign { background: var(--ticket); border: 1px solid var(--ticket-edge); border-radius: 14px; padding: 20px 22px; }
.campaign-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 14px; }
.campaign-title { min-width: 0; flex: 1 1 260px; }
.campaign-title h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.01em; }
.campaign-dates { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.campaign-desc { margin: 14px 0 0; color: var(--text-soft); font-size: 15px; line-height: 1.6; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); white-space: nowrap; }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.btn-sm { display: inline-block; background: var(--brand); color: #fff; text-decoration: none; font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 8px; white-space: nowrap; }
.btn-sm:hover { background: var(--brand-hover); color: #fff; }
/* Reward grid on the game page: one tile per reward. */
.reward-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 22px 16px; }
.reward-ticket { --stub: 112px; min-width: 0; }
.reward-ticket .ticket-stub { padding: 12px 10px; gap: 8px; }
.reward-ticket .ticket-body { padding: 14px 14px; justify-content: center; gap: 6px; }
.reward-ticket:hover { border-color: var(--glow); }
.reward-tile-art { width: 88px; aspect-ratio: 1; border-radius: 8px; background: var(--card); display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.reward-tile-art img { width: 100%; height: 100%; object-fit: contain; }
.reward-initial { font-size: 32px; font-weight: 800; color: var(--glow); }
.reward-tile-name { font-size: 14px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.reward-tile-req { margin-top: -6px; font-size: 13px; color: var(--glow); font-weight: 600; }
.reward-lg { display: block; width: 96px; height: 96px; border-radius: 12px; object-fit: contain; background: var(--card); border: 1px solid var(--border); margin: 24px 0 0; }
.empty { padding: 18px; color: var(--muted); }

.faq { display: flex; flex-direction: column; gap: 10px; max-width: 800px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); line-height: 1.6; margin: 10px 0 0; }

.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 14px; }
.steps li { background: var(--ticket); border: 1px solid var(--ticket-edge); border-radius: 14px; padding: 18px; }
.steps .n { color: var(--brand); font-weight: 800; font-size: 22px; }
.steps .t { font-weight: 600; margin: 6px 0; }
.steps .d { color: var(--muted); font-size: 14px; line-height: 1.5; }

.game-hero { padding: 40px 0 32px; max-width: 720px; }
.game-hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.08; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.btn { display: inline-block; margin-top: 22px; background: var(--brand); color: #fff; text-decoration: none; font-weight: 600; padding: 12px 20px; border-radius: 8px; }
.btn:hover { background: var(--brand-hover); color: #fff; }
.steps .btn { margin-top: 12px; }
.steps .d p { margin: 0 0 8px; }

.site-footer { border-top: 1px solid var(--border); padding-top: 20px; color: var(--faint); font-size: 13px; line-height: 1.6; }
.site-footer p { margin: 0 0 6px; }

[hidden] { display: none !important; }

@media (max-width: 520px) {
  .hero { padding-top: 32px; }
  .lede { font-size: 16px; }
  .picker { width: 100%; }
  .picker button { flex: 1; padding: 8px 4px; }
}

h2.spaced { margin-bottom: 18px; }
.header-link { font-size: 15px; }
.back-bottom { margin: 0 0 40px; }
