:root {
  color-scheme: dark;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --page: #07101d;
  --page-soft: #0a1628;
  --surface: #101f35;
  --surface-2: #142844;
  --surface-3: #19314f;
  --text: #f5f8ff;
  --muted: #a8b7cd;
  --faint: #71829a;
  --line: rgba(174, 199, 230, 0.18);
  --line-strong: rgba(174, 199, 230, 0.34);
  --accent: #68edcf;
  --accent-ink: #04261f;
  --blue: #79a8ff;
  --yellow: #ffd166;
  --pink: #ff6cae;
  --danger: #ff7785;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 12px 38px rgba(0, 0, 0, 0.16);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1380px;
}

html[data-theme="warm"] {
  color-scheme: light;
  --page: #f5efe4;
  --page-soft: #ece2d2;
  --surface: #fffaf2;
  --surface-2: #f8efdf;
  --surface-3: #f2e4d1;
  --text: #29231d;
  --muted: #6b6258;
  --faint: #8d8173;
  --line: rgba(88, 70, 50, 0.16);
  --line-strong: rgba(88, 70, 50, 0.3);
  --accent: #087e70;
  --accent-ink: #f4fffc;
  --blue: #365fac;
  --yellow: #a56600;
  --pink: #b93470;
  --danger: #b62e42;
  --shadow: 0 24px 70px rgba(83, 58, 31, 0.14);
  --shadow-soft: 0 12px 32px rgba(83, 58, 31, 0.1);
}

html[data-theme="azure"] {
  color-scheme: light;
  --page: #e9f6ff;
  --page-soft: #d9edfb;
  --surface: #ffffff;
  --surface-2: #eff8ff;
  --surface-3: #dcefff;
  --text: #0b2941;
  --muted: #506b7f;
  --faint: #728b9e;
  --line: rgba(26, 88, 126, 0.15);
  --line-strong: rgba(26, 88, 126, 0.28);
  --accent: #007f92;
  --accent-ink: #f0feff;
  --blue: #3268d0;
  --yellow: #a56b00;
  --pink: #b23578;
  --danger: #bd3146;
  --shadow: 0 24px 70px rgba(25, 82, 119, 0.15);
  --shadow-soft: 0 12px 32px rgba(25, 82, 119, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  background: var(--page);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 5%, color-mix(in srgb, var(--blue) 12%, transparent) 0, transparent 31rem),
    radial-gradient(circle at 88% 13%, color-mix(in srgb, var(--accent) 10%, transparent) 0, transparent 35rem),
    var(--page);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(3.1rem, 8vw, 6.5rem);
  font-weight: 850;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
}

h3 {
  font-size: 1.15rem;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  transform: translateY(-160%);
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
}

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

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

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  width: min(calc(100% - 32px), var(--max));
  margin: 14px auto 0;
  padding: 12px 14px 12px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: var(--text);
  text-decoration: none;
}

.brand > span:last-child {
  display: grid;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 0.7rem;
}

.brand-icon {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  background: linear-gradient(135deg, #10bde0, #665bff 70%, #a53df3);
  box-shadow: 0 7px 22px rgba(64, 111, 255, 0.25);
}

.brand-icon::before,
.brand-icon::after {
  position: absolute;
  content: "";
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.82);
}

.brand-icon::before {
  width: 6px;
  height: 6px;
  top: 8px;
  right: 9px;
}

.brand-icon::after {
  width: 4px;
  height: 4px;
  top: 16px;
  right: 6px;
  opacity: 0.6;
}

.brand-icon > span {
  width: 22px;
  height: 12px;
  transform: translateY(-1px) rotate(-42deg);
  border-bottom: 5px solid white;
  border-left: 5px solid white;
  border-radius: 2px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.main-nav a {
  padding: 8px 11px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover {
  background: var(--surface-2);
  color: var(--text);
}

.theme-picker {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--page-soft);
}

.theme-picker button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.theme-picker button[aria-pressed="true"] {
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: var(--text);
}

.theme-dot {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

.theme-dot-dark {
  background: #0a1728;
}

.theme-dot-warm {
  background: #f3e7d5;
}

.theme-dot-azure {
  background: #83cfff;
}

main {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  align-items: center;
  min-height: 650px;
  padding: 86px clamp(12px, 5vw, 72px) 66px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.eyebrow,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 16%, transparent);
}

.hero-lede {
  max-width: 790px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-lede strong {
  color: var(--text);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.hero-badges span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-badges strong {
  color: var(--text);
}

.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 12px;
  background: var(--accent);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--accent-ink);
  font-weight: 850;
  text-decoration: none;
}

.hero-art {
  position: relative;
  height: 440px;
  color: color-mix(in srgb, var(--blue) 38%, transparent);
}

.hero-art svg {
  position: absolute;
  inset: 55px 0 auto;
  width: 100%;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--blue) 25%, transparent));
}

.orbit {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--blue) 28%, transparent);
  border-radius: 50%;
}

.orbit-one {
  width: 340px;
  height: 340px;
  top: 35px;
  right: 10px;
}

.orbit-two {
  width: 220px;
  height: 220px;
  top: 95px;
  right: 70px;
  border-style: dashed;
}

.mote {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 42% 58% 55% 45% / 50% 42% 58% 50%;
  background: linear-gradient(145deg, var(--mote-a), var(--mote-b));
  box-shadow:
    inset 0 1px 8px rgba(255, 255, 255, 0.5),
    0 18px 55px color-mix(in srgb, var(--mote-a) 32%, transparent);
  color: white;
  font-weight: 900;
  animation: float 5s ease-in-out infinite;
}

.mote::before,
.mote::after {
  position: absolute;
  top: 10%;
  width: 28%;
  height: 34%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 60% 40% 55% 45%;
  background: color-mix(in srgb, var(--mote-a) 38%, transparent);
  content: "";
}

.mote::before {
  left: -18%;
  transform: rotate(-24deg);
}

.mote::after {
  right: -18%;
  transform: rotate(24deg) scaleX(-1);
}

.mote-one {
  --mote-a: #12cde2;
  --mote-b: #4551e8;
  width: 145px;
  height: 130px;
  top: 115px;
  right: 112px;
  font-size: 3rem;
}

.mote-two {
  --mote-a: #ff7b9f;
  --mote-b: #7a4ee8;
  width: 92px;
  height: 83px;
  top: 44px;
  right: 14px;
  animation-delay: -1.6s;
  font-size: 1.4rem;
}

.mote-three {
  --mote-a: #84d76a;
  --mote-b: #079c91;
  width: 76px;
  height: 70px;
  top: 283px;
  right: 10px;
  animation-delay: -3s;
  font-size: 1.5rem;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-14px) rotate(2deg);
  }
}

.tracker-shell,
.content-section,
.legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  box-shadow: var(--shadow);
}

.tracker-shell {
  position: relative;
  padding: clamp(20px, 3vw, 42px);
}

.tracker-shell::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: linear-gradient(90deg, var(--accent), var(--blue), var(--pink));
  content: "";
}

.tracker-heading,
.split-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 30px;
}

.tracker-heading h2 {
  max-width: 780px;
  margin-bottom: 10px;
  font-size: clamp(1.75rem, 3vw, 2.7rem);
}

.tracker-heading p:not(.section-kicker) {
  margin-bottom: 0;
  color: var(--muted);
}

.tracker-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.action,
.more-actions summary,
.more-actions button {
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
}

.action:hover,
.more-actions summary:hover,
.more-actions button:hover {
  border-color: var(--accent);
}

.action-primary {
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-ink);
}

.action-danger {
  border-color: transparent;
  background: var(--danger);
  color: white;
}

.more-actions {
  position: relative;
}

.more-actions summary {
  display: grid;
  min-width: 74px;
  place-items: center;
  list-style: none;
  cursor: pointer;
}

.more-actions summary::-webkit-details-marker {
  display: none;
}

.more-actions > div {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: 190px;
  gap: 5px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.more-actions button {
  width: 100%;
  border-color: transparent;
  text-align: left;
}

.danger-text {
  color: var(--danger) !important;
}

.progress-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(280px, 1.25fr);
  gap: 12px;
  margin: 32px 0 24px;
}

.progress-card,
.accuracy-card {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--page-soft);
}

.progress-card > div:last-child,
.accuracy-card > div {
  display: grid;
}

.progress-card span,
.accuracy-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.progress-card strong {
  font-size: 1.45rem;
}

.progress-card small {
  color: var(--faint);
  font-size: 0.7rem;
}

.progress-ring {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 50%;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
}

.progress-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-ring circle {
  fill: none;
  stroke-width: 7;
}

.progress-ring-track {
  stroke: var(--surface-3);
}

.progress-ring-arc {
  stroke: var(--accent);
  stroke-linecap: round;
  transition: stroke-dasharray 180ms ease;
}

.progress-ring > span {
  position: relative;
  z-index: 1;
}

.mastery-ring {
  color: var(--yellow);
}

.mastery-ring .progress-ring-arc {
  stroke: var(--yellow);
}

.missing-mark,
.accuracy-icon {
  display: grid;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  color: var(--muted);
  font-size: 1.5rem;
  font-weight: 900;
}

.accuracy-card {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent) 7%, var(--page-soft));
}

.accuracy-icon {
  border-style: solid;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}

.accuracy-card strong {
  margin-bottom: 3px;
}

.filters {
  display: grid;
  grid-template-columns: minmax(230px, 1.4fr) minmax(150px, 0.55fr) minmax(150px, 0.55fr) minmax(400px, auto);
  align-items: end;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--page-soft);
}

.filters label,
.status-filter {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.filters label > span,
.status-filter legend {
  padding: 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.filters input,
.filters select {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: 0;
  background: var(--surface);
}

.filters input:focus,
.filters select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}

.status-filter > div {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
}

.status-filter button {
  flex: 1;
  min-height: 34px;
  padding: 5px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.status-filter button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

.tracker-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 18px 0 12px;
}

.state-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.state-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.state-legend i {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 0.64rem;
  font-style: normal;
}

.legend-owned {
  border-color: var(--accent) !important;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
}

.legend-mastered {
  border-color: var(--yellow) !important;
  background: color-mix(in srgb, var(--yellow) 18%, transparent);
  color: var(--yellow);
}

.legend-unavailable {
  border-style: dashed !important;
}

.tracker-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--page-soft);
  scrollbar-color: var(--line-strong) transparent;
}

.checklist-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
}

.checklist-table th,
.checklist-table td {
  padding: 9px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.checklist-table thead th {
  position: sticky;
  z-index: 3;
  top: 0;
  padding-top: 13px;
  padding-bottom: 13px;
  background: var(--surface);
}

.checklist-table thead th:first-child,
.checklist-table tbody th {
  width: 190px;
  text-align: left;
}

.checklist-table tbody th {
  position: sticky;
  z-index: 2;
  left: 0;
  background: var(--page-soft);
}

.checklist-table tbody tr:last-child th,
.checklist-table tbody tr:last-child td {
  border-bottom: 0;
}

.checklist-table tbody tr:hover th,
.checklist-table tbody tr:hover td {
  background-color: color-mix(in srgb, var(--accent) 4%, var(--page-soft));
}

.variant-label {
  display: block;
  padding: 6px 7px;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.variant-label.normal,
.variant-card.normal > span {
  background: #c9d4df;
  color: #142130;
}

.variant-label.gold,
.variant-card.gold > span {
  background: linear-gradient(135deg, #ffd36a, #b87600);
  color: #2d1d00;
}

.variant-label.gummy,
.variant-card.gummy > span {
  background: linear-gradient(135deg, #ff8ec5, #ca267a);
  color: #2d071c;
}

.variant-label.galaxy,
.variant-card.galaxy > span {
  background: linear-gradient(135deg, #a78bfa, #6436cf);
  color: white;
}

.variant-label.holofoil,
.variant-card.holofoil > span {
  background: linear-gradient(135deg, #7cf5dc, #159eac);
  color: #042522;
}

.variant-label.cube,
.variant-card.cube > span {
  background: linear-gradient(135deg, #9ae875, #489d35);
  color: #0c2810;
}

.sprite-cell,
.sprite-card-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sprite-mark {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 34px;
  place-items: center;
  border: 1px solid hsla(var(--sprite-hue), 85%, 70%, 0.55);
  border-radius: 45% 55% 52% 48% / 55% 42% 58% 45%;
  background:
    radial-gradient(circle at 32% 28%, hsla(var(--sprite-hue), 95%, 84%, 0.88), transparent 24%),
    linear-gradient(145deg, hsla(var(--sprite-hue), 84%, 61%, 0.9), hsla(calc(var(--sprite-hue) + 35), 75%, 37%, 0.9));
  box-shadow: 0 5px 18px hsla(var(--sprite-hue), 80%, 50%, 0.22);
  color: white;
  font-size: 0.62rem;
  font-weight: 950;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.sprite-hue-4 { --sprite-hue: 4; }
.sprite-hue-11 { --sprite-hue: 11; }
.sprite-hue-17 { --sprite-hue: 17; }
.sprite-hue-24 { --sprite-hue: 24; }
.sprite-hue-25 { --sprite-hue: 25; }
.sprite-hue-31 { --sprite-hue: 31; }
.sprite-hue-44 { --sprite-hue: 44; }
.sprite-hue-48 { --sprite-hue: 48; }
.sprite-hue-54 { --sprite-hue: 54; }
.sprite-hue-104 { --sprite-hue: 104; }
.sprite-hue-151 { --sprite-hue: 151; }
.sprite-hue-185 { --sprite-hue: 185; }
.sprite-hue-196 { --sprite-hue: 196; }
.sprite-hue-207 { --sprite-hue: 207; }
.sprite-hue-222 { --sprite-hue: 222; }
.sprite-hue-228 { --sprite-hue: 228; }
.sprite-hue-260 { --sprite-hue: 260; }
.sprite-hue-275 { --sprite-hue: 275; }
.sprite-hue-280 { --sprite-hue: 280; }
.sprite-hue-287 { --sprite-hue: 287; }
.sprite-hue-350 { --sprite-hue: 350; }

.sprite-mark::before,
.sprite-mark::after {
  position: absolute;
  top: 7px;
  width: 7px;
  height: 9px;
  border-radius: 60% 35% 55% 35%;
  background: hsla(var(--sprite-hue), 80%, 58%, 0.55);
  content: "";
}

.copy-fallback {
  position: fixed;
  left: -9999px;
  opacity: 0;
}

.sprite-mark::before {
  left: -5px;
  transform: rotate(-25deg);
}

.sprite-mark::after {
  right: -5px;
  transform: rotate(25deg) scaleX(-1);
}

.checklist-table tbody th small {
  display: block;
  margin: -8px 0 0 48px;
  color: var(--faint);
  font-size: 0.62rem;
  font-weight: 650;
}

.entry-button {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 66px;
  place-items: center;
  padding: 7px 4px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  color: var(--muted);
}

.entry-button::before {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(145deg, color-mix(in srgb, var(--state-color) 20%, transparent), transparent);
  content: "";
  transition: opacity 150ms ease;
}

.entry-button:hover::before {
  opacity: 1;
}

.entry-button.state-1 {
  --state-color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent);
}

.entry-button.state-2 {
  --state-color: var(--yellow);
  border-color: color-mix(in srgb, var(--yellow) 72%, var(--line));
  background: color-mix(in srgb, var(--yellow) 12%, var(--surface));
  color: var(--yellow);
}

.entry-state-icon {
  position: relative;
  z-index: 1;
  min-height: 1.25em;
  font-size: 1.05rem;
  font-weight: 950;
}

.entry-state-label {
  position: relative;
  z-index: 1;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.entry-unavailable span {
  display: grid;
  min-height: 66px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 11px;
  color: var(--faint);
}

.entry-filtered {
  visibility: hidden;
}

.row-filtered {
  display: none;
}

.mobile-cards {
  display: none;
}

.empty-state {
  margin: 16px 0 0;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--muted);
  text-align: center;
}

.privacy-note {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.print-heading {
  display: none;
}

.content-section {
  margin-top: 28px;
  padding: clamp(28px, 5vw, 72px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 36px;
}

.section-heading > p:last-child,
.split-heading > p,
.trust-copy {
  color: var(--muted);
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-grid li {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--page-soft);
}

.step-grid li > span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 40px;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
}

.step-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.split-heading {
  max-width: none;
  margin-bottom: 34px;
}

.split-heading > div {
  max-width: 780px;
}

.split-heading > p {
  max-width: 440px;
  margin-bottom: 0;
}

.roster-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.roster-table {
  width: 100%;
  min-width: 1000px;
  border-collapse: collapse;
}

.roster-table th,
.roster-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.roster-table thead th {
  background: var(--page-soft);
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.roster-table tbody th {
  white-space: nowrap;
  color: var(--text);
}

.roster-table td {
  color: var(--muted);
  font-size: 0.82rem;
}

.roster-table tbody tr:last-child th,
.roster-table tbody tr:last-child td {
  border-bottom: 0;
}

.variant-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.variant-card {
  min-height: 190px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--page-soft);
}

.variant-card > span {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 14px;
  font-size: 0.7rem;
  font-weight: 950;
}

.variant-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.trust-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 7vw, 100px);
}

.trust-copy p:last-of-type {
  margin-bottom: 20px;
}

.source-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-list li {
  display: grid;
  align-content: start;
  min-height: 160px;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--page-soft);
}

.source-list a {
  font-weight: 800;
}

.source-list span {
  color: var(--muted);
  font-size: 0.82rem;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--page-soft);
}

.faq-list summary {
  position: relative;
  padding: 18px 54px 18px 20px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 20px;
  content: "+";
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.3rem;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list p {
  max-width: 900px;
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  width: min(calc(100% - 32px), var(--max));
  margin: 28px auto 14px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand strong {
  color: var(--text);
  font-size: 0.95rem;
}

.footer-brand p {
  margin: 3px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.site-footer nav a {
  color: var(--text);
  text-decoration: none;
}

.site-footer .disclaimer {
  max-width: 880px;
  margin: 0;
}

.site-footer > p:last-child {
  margin: 0;
  text-align: right;
}

.site-dialog {
  width: min(calc(100% - 32px), 480px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
}

.site-dialog::backdrop {
  background: rgba(2, 8, 15, 0.72);
  backdrop-filter: blur(4px);
}

.site-dialog form {
  padding: 30px;
}

.site-dialog h2 {
  margin: 14px 0 10px;
  font-size: 1.55rem;
}

.site-dialog p {
  color: var(--muted);
}

.site-dialog form > div:last-child {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}

.dialog-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-size: 1.35rem;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  max-width: min(calc(100% - 40px), 420px);
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 750;
}

.legal-main {
  width: min(calc(100% - 32px), 1000px);
  margin: 70px auto;
}

.legal-hero {
  margin-bottom: 28px;
}

.legal-hero h1 {
  max-width: 880px;
  margin-bottom: 16px;
  font-size: clamp(2.8rem, 7vw, 5rem);
}

.legal-hero > p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.legal-card {
  padding: clamp(26px, 5vw, 60px);
}

.legal-card h2 {
  margin-top: 42px;
  font-size: 1.5rem;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card h3 {
  margin-top: 30px;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal-card li + li {
  margin-top: 8px;
}

.legal-card code {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--page-soft);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.86em;
}

.feedback-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.feedback-form label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--page-soft);
}

.feedback-form textarea {
  min-height: 180px;
  resize: vertical;
}

.feedback-form .action {
  justify-self: start;
}

.update-list {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.update-list li {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--page-soft);
}

.update-list time {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .main-nav {
    display: none;
  }

  .theme-picker {
    justify-self: end;
  }

  .progress-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .status-filter {
    grid-column: 1 / -1;
  }

  .variant-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    gap: 10px;
    width: min(calc(100% - 20px), var(--max));
    margin-top: 8px;
    padding: 9px 10px;
  }

  .brand small,
  .theme-picker button span:last-child {
    display: none;
  }

  .theme-picker button {
    padding: 8px;
  }

  main {
    width: min(calc(100% - 20px), var(--max));
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 72px 10px 50px;
  }

  .hero-art {
    display: none;
  }

  h1 {
    font-size: clamp(3.15rem, 15vw, 5.2rem);
  }

  .tracker-heading,
  .split-heading,
  .trust-section {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .tracker-actions {
    justify-content: flex-start;
  }

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

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

  .search-field,
  .status-filter {
    grid-column: 1 / -1;
  }

  .matrix-wrap {
    display: none;
  }

  .mobile-cards {
    display: grid;
    gap: 12px;
  }

  .sprite-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-left: 3px solid hsla(var(--sprite-hue), 82%, 58%, 0.9);
    border-radius: var(--radius-md);
    background: var(--page-soft);
  }

  .sprite-card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 850;
  }

  .sprite-card > header > span {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
  }

  .sprite-card > p {
    margin: 10px 0 14px;
    color: var(--muted);
    font-size: 0.78rem;
  }

  .mobile-variants {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .mobile-entry {
    min-width: 0;
  }

  .mobile-entry > span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .mobile-entry .entry-button {
    min-height: 54px;
  }

  .tracker-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .step-grid,
  .source-list {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
    width: min(calc(100% - 20px), var(--max));
    padding: 26px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .site-footer > p:last-child {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .brand strong {
    font-size: 0.88rem;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding-top: 58px;
  }

  .hero-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-badges span {
    border-radius: 12px;
  }

  .tracker-shell {
    padding: 18px 12px;
    border-radius: 20px;
  }

  .tracker-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
  }

  .tracker-actions .action {
    padding-inline: 8px;
  }

  .more-actions {
    grid-column: 1 / -1;
  }

  .more-actions summary {
    width: 100%;
  }

  .more-actions > div {
    right: auto;
    left: 0;
    width: 100%;
  }

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

  .progress-card,
  .accuracy-card {
    min-height: 98px;
  }

  .filters {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .search-field,
  .status-filter {
    grid-column: auto;
  }

  .status-filter > div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .status-filter button:last-child {
    grid-column: span 2;
  }

  .mobile-variants {
    grid-template-columns: 1fr 1fr;
  }

  .content-section {
    padding: 28px 18px;
    border-radius: 20px;
  }

  .step-grid,
  .source-list,
  .variant-grid {
    grid-template-columns: 1fr;
  }

  .step-grid li {
    min-height: 190px;
  }

  .variant-card {
    min-height: auto;
  }

  .variant-card > span {
    margin-bottom: 18px;
  }

  .legal-main {
    width: min(calc(100% - 20px), 1000px);
    margin-top: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  @page {
    size: auto;
    margin: 8mm;
  }

  :root,
  html[data-theme] {
    color-scheme: light;
    --page: white;
    --page-soft: white;
    --surface: white;
    --surface-2: white;
    --surface-3: #eeeeee;
    --text: #111111;
    --muted: #444444;
    --faint: #666666;
    --line: #cccccc;
    --line-strong: #999999;
    --accent: #087e70;
    --yellow: #8a5a00;
  }

  body {
    background: white;
    font-size: 9pt;
  }

  .site-header,
  .hero,
  .site-footer,
  .content-section,
  .tracker-heading,
  .progress-grid,
  .filters,
  .tracker-meta,
  .mobile-cards,
  .privacy-note,
  .toast,
  dialog {
    display: none !important;
  }

  main {
    width: 100%;
  }

  .tracker-shell {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .tracker-shell::before {
    display: none;
  }

  .print-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 4mm;
    padding-bottom: 2mm;
    border-bottom: 2px solid #111111;
  }

  .print-heading strong {
    font-size: 17pt;
  }

  .print-heading span {
    color: #444444;
    font-size: 8pt;
  }

  .matrix-wrap {
    display: block;
    overflow: visible;
    border: 1px solid #999999;
    border-radius: 0;
  }

  .checklist-table {
    min-width: 0;
    font-size: 7.5pt;
  }

  .checklist-table th,
  .checklist-table td {
    padding: 1.4mm;
    border-color: #bbbbbb;
  }

  .checklist-table thead th,
  .checklist-table tbody th {
    position: static;
    background: white;
  }

  .checklist-table thead th:first-child,
  .checklist-table tbody th {
    width: 31mm;
  }

  .sprite-mark {
    width: 7mm;
    height: 6mm;
    border-color: #777777;
    box-shadow: none;
    print-color-adjust: exact;
  }

  .checklist-table tbody th small {
    margin: -2mm 0 0 9mm;
  }

  .entry-button,
  .entry-unavailable span {
    min-height: 8mm;
    padding: 0.8mm;
    border-radius: 2mm;
    background: white;
    print-color-adjust: exact;
  }

  .entry-button.state-1 {
    border: 2px solid #087e70;
    color: #087e70;
  }

  .entry-button.state-2 {
    border: 2px solid #8a5a00;
    color: #8a5a00;
  }

  .entry-state-icon {
    min-height: 1em;
    font-size: 8pt;
  }

  .entry-state-label {
    font-size: 5pt;
  }

  .variant-label {
    padding: 1mm;
    border: 1px solid #777777;
    background: white !important;
    color: #111111 !important;
  }
}
