:root {
  color-scheme: dark;
  --bg: #05060b;
  --bg-soft: #080b14;
  --surface: rgba(13, 18, 32, 0.72);
  --surface-strong: rgba(17, 24, 39, 0.92);
  --surface-card: rgba(10, 14, 26, 0.78);
  --surface-glass: rgba(10, 16, 30, 0.64);
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(96, 165, 250, 0.38);
  --line: rgba(255, 255, 255, 0.07);
  --text: #f8fafc;
  --muted: #8b9bb2;
  --muted-strong: #cbd5e1;
  --orange: #f97316;
  --orange-soft: rgba(249, 115, 22, 0.16);
  --blue: #60a5fa;
  --blue-deep: #2563eb;
  --purple: #a855f7;
  --purple-soft: rgba(168, 85, 247, 0.18);
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.14);
  --green: #34d399;
  --green-soft: rgba(52, 211, 153, 0.13);
  --red: #fb7185;
  --red-soft: rgba(251, 113, 133, 0.13);
  --gold: #facc15;
  --gold-soft: rgba(250, 204, 21, 0.16);
  --shadow: 0 28px 86px rgba(0, 0, 0, 0.48);
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.32);
  --glow-blue: 0 0 36px rgba(96, 165, 250, 0.2);
  --glow-orange: 0 0 32px rgba(249, 115, 22, 0.18);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content: min(1380px, calc(100vw - 40px));
  --font: "Sarabun", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(168, 85, 247, 0.22), transparent 34rem),
    radial-gradient(circle at 88% 8%, rgba(34, 211, 238, 0.16), transparent 32rem),
    radial-gradient(circle at 72% 48%, rgba(249, 115, 22, 0.08), transparent 30rem),
    linear-gradient(180deg, #05060b 0%, #080b14 44%, #05060b 100%);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent 82%);
}

body::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.055), transparent 18%, transparent 82%, rgba(168, 85, 247, 0.06)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 6px);
  opacity: 0.78;
}

main {
  flex: 1 0 auto;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  font-family: var(--font);
}

button,
a,
select,
input,
textarea {
  outline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-weight: 950;
  letter-spacing: 0.13em;
}

.brand img {
  padding: 5px;
  border: 1px solid rgba(249, 115, 22, 0.26);
  border-radius: 14px;
  background: rgba(249, 115, 22, 0.08);
  filter: drop-shadow(0 0 18px rgba(249, 115, 22, 0.5));
}

.section-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-kicker::before,
.eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 16px currentColor;
  content: "";
}

.section-kicker.gold {
  color: var(--gold);
}

.primary-action,
.secondary-action,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  font-weight: 950;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.primary-action,
.primary-link {
  border: 1px solid rgba(249, 115, 22, 0.42);
  background: linear-gradient(135deg, #fb923c, var(--orange));
  color: #160b04;
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.22);
}

.primary-action:hover,
.primary-link:hover,
.secondary-action:hover {
  transform: translateY(-1px);
}

.secondary-action {
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.66);
  color: var(--muted-strong);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000;
  max-width: min(430px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid rgba(34, 211, 238, 0.34);
  border-radius: 18px;
  background: rgba(7, 12, 22, 0.96);
  color: var(--text);
  box-shadow: var(--shadow), var(--glow-blue);
  backdrop-filter: blur(18px);
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 100vh;
  padding: 24px;
  text-align: center;
}

.empty-card {
  grid-column: 1 / -1;
  min-height: 160px;
  display: grid;
  place-items: center;
  padding: 28px;
  border: 1px dashed transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: transparent;
  text-align: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.54);
  color: var(--muted-strong);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-active,
.status-new {
  border-color: rgba(52, 211, 153, 0.34);
  background: var(--green-soft);
  color: var(--green);
}

.status-expired,
.status-reported {
  border-color: rgba(251, 113, 133, 0.34);
  background: var(--red-soft);
  color: var(--red);
}

.status-limited,
.status-event,
.status-unknown {
  border-color: rgba(250, 204, 21, 0.34);
  background: var(--gold-soft);
  color: var(--gold);
}

@media (max-width: 760px) {
  :root {
    --content: min(100vw - 24px, 1380px);
  }

  .toast {
    right: 12px;
    bottom: 12px;
  }
}
