:root {
  --page: #0b0f14;
  --surface: #12171e;
  --surface-soft: #171d25;
  --line: #29313a;
  --line-soft: #202730;
  --text: #f5f4ef;
  --muted: #a8adb4;
  --accent: #f5aa18;
  --accent-hover: #ffc148;
  --accent-soft: rgba(245, 170, 24, 0.1);
  --danger: #ff7b72;
  --radius: 12px;
  --content: 1160px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

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

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

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

[hidden] {
  display: none !important;
}

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

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

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

.container {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.announcement-bar {
  border-bottom: 1px solid var(--line-soft);
  background: #090d12;
}

.announcement-inner {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 36px;
  overflow: hidden;
}

.announcement-inner span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7f8791;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.announcement-inner i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: 1px solid rgba(41, 49, 58, 0.8);
  background: rgba(11, 15, 20, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: contain;
}

.desktop-nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.desktop-nav a,
.footer-links a {
  padding: 8px 11px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: background 150ms ease, color 150ms ease;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"],
.footer-links a:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #1a1204;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.button:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

.button-secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.button-secondary:hover {
  border-color: #3a4551;
  background: var(--surface-soft);
  color: var(--text);
}

.button-small {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 13px;
}

.button:focus-visible,
.menu-button:focus-visible,
.tab-button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(245, 170, 24, 0.3);
  outline-offset: 3px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.menu-button-lines,
.menu-button-lines::before,
.menu-button-lines::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  content: "";
}

.menu-button-lines::before {
  transform: translateY(-5px);
}

.menu-button-lines::after {
  transform: translateY(3.5px);
}

.mobile-menu {
  padding: 10px 20px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--page);
}

.mobile-menu a {
  display: block;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.home-main {
  overflow: hidden;
}

.home-hero {
  position: relative;
  display: flex;
  min-height: calc(100svh - 69px);
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background: #080c11;
}

.home-hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 12, 0.94) 0%, rgba(5, 8, 12, 0.76) 48%, rgba(5, 8, 12, 0.42) 100%),
    linear-gradient(0deg, rgba(5, 8, 12, 0.68) 0%, transparent 48%, rgba(5, 8, 12, 0.34) 100%);
  content: "";
  pointer-events: none;
}

.home-hero-video {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(32px, 7vw, 96px);
  padding-block: 76px;
}

.home-copy {
  position: relative;
  z-index: 2;
  max-width: 710px;
}

.server-status {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 23, 30, 0.72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  backdrop-filter: blur(10px);
}

.server-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(245, 170, 24, 0.1);
}

.server-status-dot.is-online {
  background: #42d686;
  box-shadow: 0 0 0 4px rgba(66, 214, 134, 0.12);
}

.server-status-dot.is-offline {
  background: #737b85;
  box-shadow: none;
}

.server-status-dot.is-loading {
  animation: status-pulse 1.3s ease-in-out infinite;
}

@keyframes status-pulse {
  50% { opacity: 0.35; }
}

.home-copy .eyebrow {
  margin-bottom: 14px;
}

.home-copy h1 {
  margin: 0;
  font-size: clamp(64px, 9vw, 112px);
  font-weight: 850;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.home-copy h1 span {
  color: var(--accent);
}

.home-copy > p:last-of-type {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.home-brand-visual {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
}

.home-brand-visual img {
  position: relative;
  z-index: 1;
  width: min(100%, 500px);
  filter: drop-shadow(0 28px 45px rgba(0, 0, 0, 0.38));
}

.home-logo-glow {
  position: absolute;
  width: 64%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(245, 170, 24, 0.11);
  filter: blur(55px);
}

.home-features {
  position: relative;
  border-top: 1px solid rgba(245, 170, 24, 0.12);
  background: #0b0f14;
}

.home-features-heading {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.home-features-heading h2 {
  margin: 0;
  font-size: clamp(38px, 5.5vw, 66px);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.home-features-heading > p:last-child {
  max-width: 650px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 17px;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-feature-card {
  position: relative;
  display: flex;
  min-height: 380px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 170, 24, 0.1), transparent 38%),
    linear-gradient(160deg, #171d25, #0e1319);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.home-feature-card::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 72%);
  content: "";
}

.home-feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 170, 24, 0.55);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.home-feature-media {
  position: relative;
  height: 190px;
  flex: 0 0 auto;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #080c11;
}

.home-feature-media::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 52%, rgba(8, 12, 17, 0.58));
  pointer-events: none;
  content: "";
}

.home-feature-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.home-feature-card:hover .home-feature-media > img {
  transform: scale(1.035);
}

.home-feature-slideshow > img {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.home-feature-slideshow.has-three-slides > img {
  animation: feature-fade-three 12s linear infinite;
  animation-delay: calc(var(--slide-index) * 4s);
}

.home-feature-slideshow.has-four-slides > img {
  animation: feature-fade-four 16s linear infinite;
  animation-delay: calc(var(--slide-index) * 4s);
}

.home-feature-card h3 {
  position: relative;
  margin: 24px 28px 0;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.home-feature-card p {
  position: relative;
  margin: 12px 28px 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

@keyframes feature-fade-three {
  0%, 30% { opacity: 1; }
  33%, 100% { opacity: 0; }
}

@keyframes feature-fade-four {
  0%, 22% { opacity: 1; }
  25%, 100% { opacity: 0; }
}

.hero {
  padding: 112px 0 104px;
}

.hero-grid {
  display: block;
}

.hero-grid > div {
  max-width: 820px;
}

.hero h1,
.page-hero h1,
.success-card h1 {
  margin: 0;
  font-size: clamp(46px, 7vw, 82px);
  font-weight: 820;
  letter-spacing: -0.06em;
  line-height: 1;
}

.hero h1 span,
.page-hero h1 span {
  color: var(--accent);
}

.hero-copy,
.page-hero p:last-child {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.stats-bar {
  border-block: 1px solid var(--line-soft);
  background: #0e1319;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat {
  padding: 26px 24px;
  border-right: 1px solid var(--line-soft);
}

.stat:first-child {
  padding-left: 0;
}

.stat:last-child {
  border-right: 0;
}

.stat strong,
.stat span {
  display: block;
}

.stat strong {
  font-size: 15px;
}

.stat span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 96px 0;
}

.section-compact {
  padding: 72px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 32px;
}

.section-heading h2,
.cta-panel h2,
.rules-document-heading h1 {
  margin: 0;
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.section-heading > p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
}

.feature-grid,
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.package-card,
.notice,
.success-card,
.checkout-dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-card {
  min-height: 260px;
  padding: 26px;
}

.feature-number,
.package-category {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feature-graphic {
  display: block;
  width: 44px;
  height: 2px;
  margin: 50px 0 24px;
  background: var(--accent);
}

.feature-card h3,
.package-card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
}

.feature-card p,
.package-description {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.store-preview {
  border-block: 1px solid var(--line-soft);
  background: #0e1319;
}

.package-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
}

.package-visual {
  position: relative;
  display: grid;
  min-height: 190px;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0e1319;
}

.package-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  border: 1px solid rgba(245, 170, 24, 0.5);
  border-radius: var(--radius);
  background: #1c160a;
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
}

.package-badge.is-new {
  border-color: #3a4551;
  background: var(--surface-soft);
  color: var(--text);
}

.package-visual img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.package-glyph {
  color: var(--text);
  font-size: 42px;
  font-weight: 850;
  letter-spacing: -0.06em;
}

.package-glyph span {
  color: var(--accent);
}

.package-content {
  display: flex;
  min-height: 240px;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.package-content h3 {
  margin-top: 10px;
}

.package-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
}

.price,
.price small {
  display: block;
}

.price {
  font-size: 17px;
  font-weight: 800;
}

.price small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.cta-panel {
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.cta-panel > p:not(.eyebrow) {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--muted);
}

.page-hero {
  padding: 88px 0 58px;
  border-bottom: 1px solid var(--line-soft);
}

.page-hero h1 {
  font-size: clamp(42px, 6vw, 68px);
}

.store-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.tab-button:hover,
.tab-button.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

.store-state,
.empty-state {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
}

.store-state.is-error {
  border-color: rgba(255, 123, 114, 0.4);
  color: var(--danger);
}

.loading-card {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--surface) 20%, var(--surface-soft) 50%, var(--surface) 80%);
  background-size: 240% 100%;
  animation: loading 1.4s linear infinite;
}

@keyframes loading {
  to { background-position: -240% 0; }
}

.notice {
  margin-top: 24px;
  padding: 18px 20px;
  color: var(--muted);
  font-size: 13px;
}

.checkout-overlay {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  padding: 20px;
  place-items: center;
  background: rgba(4, 7, 10, 0.78);
  backdrop-filter: blur(8px);
}

.checkout-dialog {
  width: min(100%, 430px);
  padding: 34px;
  text-align: center;
  box-shadow: var(--shadow);
}

.checkout-dialog h2 {
  margin: 18px 0 8px;
}

.checkout-dialog p {
  margin: 0;
  color: var(--muted);
}

.loading-ring {
  width: 36px;
  height: 36px;
  margin: 0 auto;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.rules-page {
  min-height: 70vh;
}

.rules-document {
  padding-block: 76px 100px;
}

.rules-document-heading {
  max-width: 820px;
  margin-bottom: 42px;
}

.rules-document-heading h1 {
  font-size: clamp(58px, 10vw, 108px);
  letter-spacing: 0.16em;
  line-height: 0.9;
}

.rules-document-heading > p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.rules-layout {
  display: grid;
  align-items: start;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
}

.rules-sidebar {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #151b22, var(--surface));
}

.rules-sidebar-title {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rules-index {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.rules-index a {
  padding: 12px 13px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  transition: background 150ms ease, color 150ms ease;
}

.rules-index a:hover,
.rules-index a[aria-current="true"],
.rules-index a[aria-current="location"] {
  border-color: rgba(245, 170, 24, 0.32);
  background: var(--accent-soft);
  color: var(--text);
}

.rules-main {
  width: 100%;
  margin-inline: auto;
  min-width: 0;
}

.rules-document-section {
  scroll-margin-top: 98px;
  margin-bottom: 54px;
}

.rules-document-section h2 {
  margin: 0 0 18px;
  padding: 0 0 16px 14px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.rules-introduction {
  padding: 24px;
  border: 1px solid rgba(245, 170, 24, 0.28);
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.rules-introduction h2 {
  padding-left: 0;
  border-bottom-color: rgba(245, 170, 24, 0.2);
  border-left: 0;
}

.rules-introduction p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
}

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

.penalty-list li {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
}

.penalty-list li {
  padding: 15px 16px;
  color: var(--muted);
  font-size: 13px;
}

.penalty-list strong {
  color: var(--text);
}

.document-rule {
  padding: 20px 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #0e1319;
}

.document-rule + .document-rule {
  margin-top: 10px;
}

.document-rule h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 780;
  letter-spacing: -0.015em;
  line-height: 1.45;
}

.document-rule h3 span {
  display: inline-flex;
  margin: 8px 0 0;
  padding: 4px 8px;
  border: 1px solid rgba(245, 170, 24, 0.28);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
}

.document-rule p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.rules-document-note {
  padding: 20px 22px;
  border: 1px solid rgba(245, 170, 24, 0.35);
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.rules-document-note strong {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rules-document-note p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.rules-source {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.rules-source a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* APV search and share links use the existing site palette and corner radius. */
.rules-updated {
  margin: -20px 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.rules-search {
  margin: 0 0 32px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.rules-search label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.rules-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rules-search input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--page);
  color: var(--text);
  font-size: 16px;
}

.rules-search input::placeholder { color: var(--muted); }
.rules-search [role="status"] {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.document-rule { scroll-margin-top: 104px; }
.rule-title-link:hover { color: var(--accent); }
.rule-copy-link {
  margin-top: 16px;
  padding: 9px 12px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.rule-copy-link:hover {
  background: var(--accent-soft);
  color: var(--text);
}
.rules-search :focus-visible,
.rule-title-link:focus-visible,
.rule-copy-link:focus-visible,
.package-details summary:focus-visible,
.package-purchase-info a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.package-purchase-info {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}
.package-purchase-info p { margin: 0; }
.package-purchase-info a,
.package-description a,
.notice a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.package-purchase-info a { display: inline-block; margin-top: 10px; }
.package-details {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}
.package-details summary {
  padding-block: 12px;
  min-height: 44px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.package-description { overflow-wrap: anywhere; }
.package-description p,
.package-description div { margin: 0 0 12px; }
.package-description h4 {
  margin: 16px 0 8px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
.package-description ul,
.package-description ol { margin: 8px 0 16px; padding-left: 22px; }
.package-description li + li { margin-top: 6px; }
.package-description > :first-child { margin-top: 0; }

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: #090d12;
}

.footer-inner {
  display: flex;
  min-height: 140px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-meta {
  margin-top: 8px;
  color: #7f8791;
  font-size: 12px;
}

.success-page {
  display: grid;
  min-height: calc(100vh - 69px);
  padding: 40px 20px;
  place-items: center;
}

.success-card {
  width: min(100%, 620px);
  padding: 46px;
  text-align: center;
  box-shadow: var(--shadow);
}

.success-card h1 {
  font-size: clamp(38px, 6vw, 58px);
}

.success-card > p:not(.eyebrow) {
  color: var(--muted);
}

.success-check {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 22px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 24px;
}

.success-actions {
  justify-content: center;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms ease, transform 420ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-hero-video { display: none; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .header-actions > .button {
    display: none;
  }

  .feature-grid,
  .package-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.55fr);
    gap: 28px;
  }

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

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

  .feature-graphic {
    margin-top: 32px;
  }

  .rules-layout {
    grid-template-columns: 1fr;
  }

  .rules-sidebar {
    position: static;
    overflow: visible;
    padding: 16px;
  }

  .rules-sidebar-title {
    display: block;
  }

  .rules-index {
    display: grid;
    width: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .rules-index a {
    white-space: normal;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 28px), var(--content));
  }

  .announcement-inner {
    justify-content: flex-start;
  }

  .announcement-inner span:nth-child(n + 3) {
    display: none;
  }

  .brand > span {
    display: none;
  }

  .home-hero {
    min-height: auto;
  }

  .home-hero-grid {
    grid-template-columns: 1fr;
    padding-block: 62px 48px;
    text-align: left;
  }

  .home-copy h1 {
    font-size: clamp(58px, 20vw, 82px);
  }

  .home-copy > p:last-of-type {
    font-size: 16px;
  }

  .home-actions .button {
    flex: 1 1 150px;
  }

  .home-brand-visual {
    width: min(82%, 340px);
    margin: 10px auto 0;
  }

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

  .home-feature-card {
    min-height: auto;
  }

  .home-feature-card h3 {
    margin-top: 22px;
  }

  .home-feature-media {
    height: clamp(190px, 56vw, 270px);
  }

  .hero {
    padding: 76px 0 72px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

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

  .stat,
  .stat:first-child {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .section,
  .section-compact {
    padding: 64px 0;
  }

  .section-heading,
  .store-toolbar,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading {
    margin-bottom: 26px;
  }

  .section-heading > p {
    font-size: 14px;
  }

  .cta-panel,
  .success-card {
    padding: 28px;
  }

  .page-hero {
    padding: 64px 0 44px;
  }

  .package-content {
    min-height: 220px;
  }

  .rules-document {
    padding-block: 54px 72px;
  }

  .rules-document-heading {
    margin-bottom: 28px;
  }

  .rules-document-heading h1 {
    font-size: clamp(54px, 20vw, 78px);
    letter-spacing: 0.12em;
  }

  .penalty-list {
    grid-template-columns: 1fr;
  }

  .document-rule {
    padding: 18px 0 22px;
  }

  .rules-search-row {
    align-items: stretch;
    flex-direction: column;
  }

  .rules-index {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    min-height: auto;
    padding-block: 34px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-feature-slideshow > img {
    display: none;
    animation: none;
  }

  .home-feature-slideshow > img:first-child {
    display: block;
    opacity: 1;
  }
}
