@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("../fonts/space-mono-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-hockey-blue: #005bbb;
  --color-sweden-yellow: #fecb02;
  --color-ice-red: #c8281c;
  --color-arena-green: #1b5e20;
  --color-ice-rink-dark: #0a121f;
  --color-surface: #0f1e35;
  --color-ice-white: #e8f4ff;
  --color-stone: #55607a;
  --color-gold: #c8a400;
  --color-legal-text: #0a121f;
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.24);
  --shadow-card: 0 20px 60px rgba(3, 9, 19, 0.38);
  --border-soft: 1px solid rgba(232, 244, 255, 0.12);
  --container: min(1180px, calc(100% - 32px));
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 240ms var(--ease-standard);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
  background: var(--color-ice-rink-dark);
  color: var(--color-ice-white);
}

body.theme-dark {
  background:
    radial-gradient(
      circle at top left,
      rgba(0, 91, 187, 0.16),
      transparent 32%
    ),
    radial-gradient(
      circle at top right,
      rgba(254, 203, 2, 0.12),
      transparent 24%
    ),
    linear-gradient(
      180deg,
      #08101b 0%,
      var(--color-ice-rink-dark) 20%,
      #07111f 100%
    );
  color: var(--color-ice-white);
}

body.theme-dark::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(232, 244, 255, 0.04), transparent 34%),
    linear-gradient(300deg, rgba(232, 244, 255, 0.04), transparent 28%),
    radial-gradient(
      circle at 20% 20%,
      rgba(232, 244, 255, 0.04),
      transparent 28%
    ),
    radial-gradient(
      circle at 80% 12%,
      rgba(232, 244, 255, 0.04),
      transparent 16%
    );
  pointer-events: none;
  z-index: -1;
}

body.theme-legal {
  background: var(--color-ice-white);
  color: var(--color-legal-text);
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[role="checkbox"]:focus-visible,
[role="option"]:focus-visible {
  outline: 2px solid var(--color-sweden-yellow);
  outline-offset: 3px;
}

body.theme-legal a:focus-visible,
body.theme-legal button:focus-visible,
body.theme-legal input:focus-visible,
body.theme-legal textarea:focus-visible,
body.theme-legal select:focus-visible,
body.theme-legal [role="checkbox"]:focus-visible,
body.theme-legal [role="option"]:focus-visible {
  outline-color: var(--color-hockey-blue);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--color-sweden-yellow);
  color: var(--color-ice-rink-dark);
  transition: top var(--transition-base);
}

.skip-link:focus {
  top: 16px;
}

.site-notice {
  position: sticky;
  top: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  text-align: center;
  font-size: 0.95rem;
  background: rgba(254, 203, 2, 0.14);
  color: var(--color-ice-white);
  border-bottom: 1px solid rgba(254, 203, 2, 0.36);
  backdrop-filter: blur(12px);
}

.site-notice.is-visible {
  display: flex;
}

.site-notice[data-type="warning"] {
  background: rgba(200, 40, 28, 0.14);
  border-bottom-color: rgba(200, 40, 28, 0.4);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 110;
  border-bottom: 1px solid rgba(232, 244, 255, 0.08);
  backdrop-filter: blur(18px);
}

body.theme-dark .site-header {
  background: rgba(10, 18, 31, 0.88);
}

body.theme-legal .site-header {
  background: rgba(232, 244, 255, 0.92);
  border-top: 2px solid var(--color-hockey-blue);
  border-bottom-color: rgba(10, 18, 31, 0.12);
}

.header-inner,
.footer-inner,
.page-content,
.banner-inner {
  width: var(--container);
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-shield {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-title {
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--color-stone);
}

.header-nav {
  display: none;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  color: inherit;
  transition:
    background var(--transition-base),
    color var(--transition-base);
}

.nav-link:hover,
.nav-link.is-current {
  background: rgba(0, 91, 187, 0.16);
  color: var(--color-sweden-yellow);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.header-cluster {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-badge,
.game-badge,
.tiny-badge,
.rank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
}

.header-badge,
.rank-pill {
  background: rgba(0, 91, 187, 0.18);
  border: 1px solid rgba(0, 91, 187, 0.36);
}

.tiny-badge {
  min-height: 28px;
  padding-inline: 10px;
  background: rgba(232, 244, 255, 0.08);
  border: 1px solid rgba(232, 244, 255, 0.12);
}

.game-badge.is-free,
.status-pill.is-free {
  background: rgba(27, 94, 32, 0.18);
  border: 1px solid rgba(27, 94, 32, 0.42);
  color: #97f19b;
}

.game-badge.is-locked,
.status-pill.is-locked {
  background: rgba(200, 40, 28, 0.18);
  border: 1px solid rgba(200, 40, 28, 0.38);
  color: #ffb3ae;
}

.game-badge.is-unlocked {
  background: rgba(254, 203, 2, 0.18);
  border: 1px solid rgba(254, 203, 2, 0.42);
  color: var(--color-sweden-yellow);
}

.button,
.ghost-button,
.menu-toggle,
.sub-form,
.logout-button,
.site-menu-close,
.custom-select-trigger,
.custom-select-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    background var(--transition-base),
    color var(--transition-base);
}

.button,
.sub-form {
  background: var(--color-hockey-blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 91, 187, 0.26);
}

.button:hover,
.sub-form:hover {
  transform: translateY(-1px);
  background: #0a6bd4;
}

.button.is-highlight {
  background: var(--color-sweden-yellow);
  color: var(--color-ice-rink-dark);
  box-shadow: 0 10px 24px rgba(254, 203, 2, 0.22);
}

.ghost-button,
.logout-button,
.menu-toggle,
.site-menu-close {
  background: transparent;
  color: inherit;
  border: 1px solid rgba(232, 244, 255, 0.18);
}

body.theme-legal .ghost-button,
body.theme-legal .logout-button,
body.theme-legal .menu-toggle,
body.theme-legal .site-menu-close {
  border-color: rgba(10, 18, 31, 0.15);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  width: 46px;
  padding: 0;
}

.menu-toggle-line {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.header-disclaimer {
  display: none;
  padding: 0 0 10px;
  font-size: 0.84rem;
  color: var(--color-stone);
}

.site-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  z-index: 9999;
  pointer-events: none;
}

.site-menu-drawer.menu-open {
  pointer-events: auto;
}

.menu-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  background: rgba(10, 18, 31, 0.64);
  opacity: 0;
  transition: opacity 0.3s var(--ease-standard);
}

.site-menu-panel {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  padding: 22px 18px 28px;
  background: rgba(15, 30, 53, 0.98);
  border-right: 1px solid rgba(232, 244, 255, 0.12);
  box-shadow: var(--shadow-card);
  transform: translateX(-100%);
  transition: transform 0.3s var(--ease-standard);
  overflow-y: auto;
}

body.theme-legal .site-menu-panel {
  background: rgba(255, 255, 255, 0.98);
  border-right-color: rgba(10, 18, 31, 0.1);
}

.site-menu-drawer.menu-open .menu-overlay {
  opacity: 1;
}

.site-menu-drawer.menu-open .site-menu-panel {
  transform: translateX(0);
}

.site-menu-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.site-menu-header h2 {
  margin: 0;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.site-menu-close {
  width: 46px;
  min-width: 46px;
  padding: 0;
}

.site-menu-links,
.site-menu-actions {
  display: grid;
  gap: 10px;
}

.site-menu-links .nav-link {
  min-height: 48px;
  font-size: 1rem;
}

.mobile-nav-action {
  width: 100%;
}

.page-content {
  padding: 24px 0 72px;
}

.hero,
.section,
.legal-article,
.auth-layout,
.account-layout,
.game-detail {
  position: relative;
}

.hero {
  display: grid;
  gap: 20px;
  align-items: stretch;
}

.panel,
.surface-card,
.subscription-panel,
.legal-panel,
.auth-card,
.footer-top,
.account-card,
.countdown-card,
.table-card,
.play-card {
  background: rgba(15, 30, 53, 0.9);
  border: var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

body.theme-legal .panel,
body.theme-legal .surface-card,
body.theme-legal .subscription-panel,
body.theme-legal .legal-panel,
body.theme-legal .auth-card,
body.theme-legal .footer-top,
body.theme-legal .account-card,
body.theme-legal .countdown-card,
body.theme-legal .table-card,
body.theme-legal .play-card {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(10, 18, 31, 0.1);
  color: var(--color-legal-text);
}

.hero-copy,
.hero-art,
.section-card,
.legal-panel,
.auth-card,
.account-card,
.play-card,
.table-card,
.countdown-card,
.subscription-panel {
  padding: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-sweden-yellow);
}

.hero h1,
.section h2,
.section h3,
.legal-article h1,
.legal-article h2,
.auth-card h1,
.account-card h1,
.play-card h1,
.play-card h2,
.footer-heading {
  margin: 0 0 12px;
  font-family: "Barlow Condensed", Arial, sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.02;
}

.hero h1 {
  font-size: clamp(2.4rem, 8vw, 3.9rem);
  color: var(--color-hockey-blue);
}

.section h2,
.play-card h1,
.legal-article h1,
.auth-card h1,
.account-card h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.section h3,
.play-card h2,
.legal-article h2 {
  font-size: clamp(1.45rem, 4vw, 1.9rem);
}

.lead,
.supporting-copy,
.legal-article p,
.legal-article li,
.auth-copy,
.account-copy,
.play-card p,
.section p,
.section li {
  color: rgba(232, 244, 255, 0.88);
}

body.theme-legal .lead,
body.theme-legal .supporting-copy,
body.theme-legal .legal-article p,
body.theme-legal .legal-article li,
body.theme-legal .auth-copy,
body.theme-legal .account-copy,
body.theme-legal .play-card p,
body.theme-legal .section p,
body.theme-legal .section li {
  color: rgba(10, 18, 31, 0.88);
}

.hero-art {
  display: grid;
  gap: 16px;
  align-content: center;
  overflow: hidden;
}

.arena-visual {
  min-height: 260px;
  border-radius: 18px;
  padding: 18px;
  background:
    radial-gradient(
      circle at 50% 18%,
      rgba(254, 203, 2, 0.15),
      transparent 26%
    ),
    linear-gradient(180deg, rgba(0, 91, 187, 0.2), transparent 42%),
    rgba(8, 18, 31, 0.72);
  border: 1px solid rgba(232, 244, 255, 0.1);
}

.arena-visual svg {
  width: 100%;
  height: 100%;
}

.stat-grid,
.icon-grid,
.feature-grid,
.info-grid,
.contact-grid,
.auth-grid,
.account-grid,
.footer-grid,
.legal-grid,
.game-grid,
.details-grid {
  display: grid;
  gap: 16px;
}

.stat-card,
.feature-card,
.info-card,
.contact-card,
.game-card,
.detail-card,
.timeline-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(232, 244, 255, 0.04);
  border: 1px solid rgba(232, 244, 255, 0.08);
}

body.theme-legal .stat-card,
body.theme-legal .feature-card,
body.theme-legal .info-card,
body.theme-legal .contact-card,
body.theme-legal .game-card,
body.theme-legal .detail-card,
body.theme-legal .timeline-card {
  background: rgba(10, 18, 31, 0.03);
  border-color: rgba(10, 18, 31, 0.08);
}

.metric {
  font-family: "Space Mono", monospace;
  font-size: clamp(1.2rem, 4vw, 1.2rem);
  font-weight: 700;
}

.metric-label {
  color: var(--color-stone);
  font-size: 0.9rem;
}

.subscription-panel {
  border: 2px solid var(--color-hockey-blue);
}

.subscription-heading {
  margin-bottom: 6px;
  font-size: clamp(1.55rem, 5vw, 2rem);
  color: var(--color-sweden-yellow);
}

.subscription-subtitle,
.footer-copy {
  margin-top: 0;
  color: rgba(232, 244, 255, 0.78);
}

body.theme-legal .subscription-subtitle,
body.theme-legal .footer-copy {
  color: rgba(10, 18, 31, 0.72);
}

.subscription-form,
.auth-form {
  display: grid;
  gap: 14px;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-label {
  font-size: 0.94rem;
  font-weight: 500;
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid rgba(85, 96, 122, 0.8);
  background: rgba(10, 18, 31, 0.55);
  color: var(--color-ice-white);
  outline: none;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.checkbox-native,
.native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.field-input::placeholder,
.field-textarea::placeholder {
  color: rgba(232, 244, 255, 0.5);
}

body.theme-legal .field-input,
body.theme-legal .field-select,
body.theme-legal .field-textarea {
  background: #fff;
  color: var(--color-legal-text);
}

body.theme-legal .field-input::placeholder,
body.theme-legal .field-textarea::placeholder {
  color: rgba(10, 18, 31, 0.42);
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  border-color: var(--color-hockey-blue);
  box-shadow: 0 0 0 4px rgba(0, 91, 187, 0.16);
}

.field-textarea {
  min-height: 140px;
  padding-block: 12px;
  resize: vertical;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--color-stone);
}

.consent-enhanced {
  gap: 12px;
}

.checkbox-ui {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 6px;
  border: 1px solid rgba(85, 96, 122, 0.95);
  background: rgba(232, 244, 255, 0.05);
  transition:
    transform var(--transition-base),
    opacity var(--transition-base),
    background-color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

body.theme-legal .checkbox-ui {
  background: rgba(10, 18, 31, 0.03);
}

.checkbox-ui:hover {
  transform: translate3d(0, -1px, 0);
}

.checkbox-ui.is-checked {
  background: rgba(0, 91, 187, 0.24);
  border-color: rgba(0, 91, 187, 0.95);
}

.checkbox-check {
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--color-ice-white);
  border-bottom: 2px solid var(--color-ice-white);
  transform: translateY(-1px) rotate(-45deg) scale(0.55);
  opacity: 0;
  transition:
    transform var(--transition-base),
    opacity var(--transition-base);
}

.checkbox-ui.is-checked .checkbox-check {
  opacity: 1;
  transform: translateY(-1px) rotate(-45deg) scale(1);
}

.checkbox-label {
  flex: 1 1 auto;
}

.custom-select {
  position: relative;
}

.custom-select-trigger {
  width: 100%;
  min-height: 48px;
  justify-content: space-between;
  padding: 0 14px;
  background: rgba(10, 18, 31, 0.55);
  color: var(--color-ice-white);
  border: 1px solid rgba(85, 96, 122, 0.8);
  border-radius: 6px;
  box-shadow: none;
}

body.theme-legal .custom-select-trigger {
  background: #fff;
  color: var(--color-legal-text);
}

.custom-select-value {
  display: inline-flex;
  align-items: center;
  min-height: 1em;
}

.custom-select-arrow {
  transition: transform var(--transition-base);
}

.custom-select.is-open .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  padding: 8px;
  border-radius: 14px;
  background: rgba(15, 30, 53, 0.98);
  border: 1px solid rgba(232, 244, 255, 0.12);
  box-shadow: var(--shadow-card);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 8px, 0);
  transition:
    opacity var(--transition-base),
    transform var(--transition-base);
}

body.theme-legal .custom-select-dropdown {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(10, 18, 31, 0.08);
}

.custom-select.is-open .custom-select-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.custom-select.is-above .custom-select-dropdown {
  top: auto;
  bottom: calc(100% + 8px);
  transform: translate3d(0, -8px, 0);
}

.custom-select.is-open.is-above .custom-select-dropdown {
  transform: translate3d(0, 0, 0);
}

.custom-select-list {
  display: grid;
  gap: 6px;
  overflow-y: auto;
  padding-right: 2px;
}

.custom-select-list::-webkit-scrollbar {
  width: 8px;
}

.custom-select-list::-webkit-scrollbar-track {
  background: rgba(232, 244, 255, 0.06);
  border-radius: 999px;
}

.custom-select-list::-webkit-scrollbar-thumb {
  background: rgba(0, 91, 187, 0.7);
  border-radius: 999px;
}

.custom-select-option {
  justify-content: flex-start;
  min-height: 44px;
  padding: 0 12px;
  background: rgba(232, 244, 255, 0.05);
  color: inherit;
  border: 1px solid transparent;
  box-shadow: none;
  opacity: 0;
  transform: translate3d(0, 6px, 0);
  transition:
    opacity var(--transition-base),
    transform var(--transition-base),
    background-color var(--transition-base),
    border-color var(--transition-base);
  transition-delay: calc(var(--option-index, 0) * 0.03s);
}

body.theme-legal .custom-select-option {
  background: rgba(10, 18, 31, 0.03);
}

.custom-select.is-open .custom-select-option {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.custom-select-option:hover,
.custom-select-option.is-selected {
  background: rgba(0, 91, 187, 0.16);
  border-color: rgba(0, 91, 187, 0.32);
}

.consent a {
  color: var(--color-sweden-yellow);
  text-decoration: underline;
}

body.theme-legal .consent a {
  color: var(--color-hockey-blue);
}

.form-message {
  min-height: 24px;
  font-size: 0.95rem;
}

.form-message.is-success {
  color: #9ff3a4;
}

.form-message.is-error {
  color: #ffb3ae;
}

body.theme-legal .form-message.is-success {
  color: var(--color-arena-green);
}

body.theme-legal .form-message.is-error {
  color: var(--color-ice-red);
}

.game-grid {
  grid-template-columns: 1fr;
}

.game-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
}

.game-card h3,
.feature-card h3,
.info-card h3,
.detail-card h3,
.timeline-card h3 {
  margin: 0 0 8px;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1.45rem;
}

.game-card p:last-child,
.feature-card p:last-child,
.info-card p:last-child,
.detail-card p:last-child,
.timeline-card p:last-child {
  margin-bottom: 0;
}

.game-card-top,
.detail-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.game-card-copy {
  display: grid;
  gap: 10px;
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.card-link {
  color: var(--color-sweden-yellow);
  font-weight: 600;
}

.game-card.locked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 31, 0.76);
  pointer-events: none;
}

.lock-overlay {
  position: absolute;
  inset: auto 18px 18px 18px;
  z-index: 1;
  padding: 14px;
  border-radius: 14px;
  background: rgba(10, 18, 31, 0.88);
  border: 1px solid rgba(254, 203, 2, 0.28);
  color: var(--color-ice-white);
}

.lock-overlay strong {
  display: block;
  margin-bottom: 6px;
  color: var(--color-sweden-yellow);
}

.game-card.unlocked::after,
.game-card.unlocked .lock-overlay {
  display: none;
}

.section {
  margin-top: 28px;
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

.section + .section {
  margin-top: 32px;
}

.legal-article,
.auth-layout,
.account-layout {
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.countdown-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.countdown-value {
  padding: 14px 10px;
  border-radius: 16px;
  text-align: center;
  background: rgba(232, 244, 255, 0.05);
  border: 1px solid rgba(232, 244, 255, 0.08);
}

.countdown-number {
  display: block;
  font-family: "Space Mono", monospace;
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  font-weight: 700;
}

.countdown-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-stone);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(232, 244, 255, 0.08);
  vertical-align: top;
}

body.theme-legal th,
body.theme-legal td {
  border-bottom-color: rgba(10, 18, 31, 0.08);
}

th {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-stone);
}

.legal-article {
  display: grid;
  gap: 20px;
}

.legal-panel h1,
.legal-panel h2 {
  color: var(--color-legal-text);
}

.legal-panel ol,
.legal-panel ul {
  margin: 0;
  padding-left: 18px;
}

.auth-layout,
.account-layout {
  display: grid;
  gap: 20px;
}

.auth-card,
.account-card {
  max-width: 760px;
  margin: 0 auto;
}

.auth-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.play-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.play-meta {
  display: grid;
  gap: 16px;
}

.play-banner {
  position: sticky;
  bottom: 0;
  z-index: 90;
  margin-top: 28px;
  background: rgba(10, 18, 31, 0.9);
  border-top: 1px solid rgba(0, 91, 187, 0.6);
  backdrop-filter: blur(14px);
}

.banner-inner {
  padding: 12px 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  display: grid;
  gap: 6px;
}

.site-footer {
  border-top: 1px solid rgba(232, 244, 255, 0.08);
}

body.theme-dark .site-footer {
  background: rgba(8, 16, 27, 0.92);
}

body.theme-legal .site-footer {
  background: rgba(10, 18, 31, 0.05);
  border-top-color: rgba(10, 18, 31, 0.08);
}

.footer-inner {
  padding: 28px 0 40px;
}

.footer-top {
  margin-bottom: 24px;
  padding: 22px;
}

.footer-grid {
  grid-template-columns: 1fr 1fr;
}

.footer-column h3 {
  margin: 0 0 12px;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1.45rem;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(232, 244, 255, 0.82);
}

body.theme-legal .footer-links a {
  color: rgba(10, 18, 31, 0.8);
}

.footer-links a:hover {
  color: var(--color-sweden-yellow);
}

.footer-meta {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(232, 244, 255, 0.08);
  font-size: 0.9rem;
  color: var(--color-stone);
}

body.theme-legal .footer-meta {
  border-top-color: rgba(10, 18, 31, 0.08);
}

.footer-meta a {
  color: var(--color-hockey-blue);
  text-decoration: underline;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
}

.modal-root.is-open {
  display: block;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 31, 0.78);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.modal-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(560px, calc(100% - 32px));
  padding: 28px;
  border-radius: 20px;
  background: rgba(15, 30, 53, 0.98);
  border: 1px solid rgba(0, 91, 187, 0.34);
  box-shadow: var(--shadow-card);
  transform: translate(-50%, calc(-50% + 20px));
  opacity: 0;
  transition:
    opacity var(--transition-base),
    transform var(--transition-base);
}

.modal-root.is-active .modal-overlay {
  opacity: 1;
}

.modal-root.is-active .modal-panel {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.modal-panel h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 2rem;
  color: var(--color-sweden-yellow);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.list-clean {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.muted {
  color: var(--color-stone);
}

.accent {
  color: var(--color-sweden-yellow);
}

.inline-code {
  font-family: "Space Mono", monospace;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 766px) {
  .brand-subtitle {
    display: none;
  }

  .header-cluster > :not(.menu-toggle) {
    display: none;
  }

  .site-menu-actions {
    display: grid;
  }
}

@media (min-width: 767px) and (max-width: 1199px) {
  .site-menu-actions {
    display: none;
  }
}

@media (min-width: 1024px) {
  .page-content {
    padding-top: 32px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  }

  .header-disclaimer {
    display: block;
    width: var(--container);
    margin: 0 auto;
  }

  .footer-grid,
  .feature-grid,
  .info-grid,
  .contact-grid,
  .game-grid,
  .details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-grid,
  .account-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .legal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-top .subscription-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .footer-top .subscription-form .consent,
  .footer-top .subscription-form .form-message {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1200px) {
  .menu-toggle {
    display: none;
  }

  .header-inner {
    gap: 24px;
  }

  .header-nav {
    display: flex;
    align-items: center;
  }

  .header-actions {
    min-width: 260px;
  }

  .site-menu-panel {
    max-width: 320px;
  }

  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .game-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .details-grid,
  .contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .menu-toggle,
  .nav-link,
  .button,
  .ghost-button,
  .logout-button,
  .sub-form,
  .menu-overlay,
  .site-menu-panel,
  .checkbox-ui,
  .checkbox-check,
  .custom-select-arrow,
  .custom-select-dropdown,
  .custom-select-option,
  .modal-overlay,
  .modal-panel {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
  }
}
