:root {
  --color-primary: #0077be;
  --color-primary-light: #4a9fd8;
  --color-primary-dark: #004b7a;
  --color-secondary: #00a86b;
  --color-secondary-light: #4dd194;
  --color-secondary-dark: #007850;
  --color-accent-gold: #f4a732;
  --color-accent-silver: #b8c5d6;
  --color-bg-darkest: #0d1821;
  --color-bg-dark: #162536;
  --color-bg-medium: #1f3347;
  --color-bg-card: #253b52;
  --color-text-primary: #ffffff;
  --color-text-secondary: #d4e4f7;
  --color-text-muted: #8ba3ba;
  --color-text-disabled: #5b7184;

  --color-border-light: #2c4a62;
  --color-border-medium: #3d5a73;

  --color-success: #00b87c;
  --color-warning: #ffb84d;
  --color-error: #ff5c5c;
  --color-info: #4a9fd8;

  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.45);

  --glow-primary: 0 0 20px rgba(0, 119, 190, 0.5);
  --glow-secondary: 0 0 20px rgba(0, 168, 107, 0.5);

  --font-primary: "Inter", system-ui, -apple-system, sans-serif;
  --font-secondary: "Raleway", sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background: linear-gradient(
    160deg,
    var(--color-bg-darkest) 0%,
    var(--color-bg-dark) 40%,
    #1a2e42 100%
  );
  background-attachment: fixed;
  color: var(--color-text-secondary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--color-primary);
  color: var(--color-text-primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

ul,
ol {
  list-style: none;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-primary-light);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--color-secondary-light);
}

h4 {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
}

p {
  margin-bottom: var(--space-sm);
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
}

strong {
  font-weight: 600;
  color: var(--color-text-primary);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-padding {
  padding: var(--space-xl) 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.025em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  text-transform: none;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 100%
  );
  color: var(--color-text-primary);
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-sm), var(--glow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), var(--glow-primary);
  border-color: var(--color-primary-light);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent-silver);
  border-color: var(--color-accent-silver);
}

.btn-secondary:hover {
  background: var(--color-accent-silver);
  color: var(--color-bg-darkest);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.top-strip {
  background: linear-gradient(
    90deg,
    var(--color-bg-dark) 0%,
    var(--color-bg-medium) 100%
  );
  color: var(--color-text-muted);
  text-align: center;
  padding: 0.75rem var(--space-md);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-border-light);
  backdrop-filter: blur(10px);
}

.main-header {
  background: rgba(13, 24, 33, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border-light);
  padding: var(--space-sm) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.logo-area {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--color-primary-light) 0%,
    var(--color-secondary-light) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.logo-tagline {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.desktop-nav {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.desktop-nav ul {
  display: flex;
  gap: var(--space-md);
}

.desktop-nav a {
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: var(--space-xs) 0;
  position: relative;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--color-primary-light),
    var(--color-secondary-light)
  );
  transition: width var(--transition-base);
}

.desktop-nav a:hover {
  color: var(--color-text-primary);
}

.desktop-nav a:hover::after {
  width: 100%;
}

.auth-link {
  color: var(--color-primary-light);
  font-weight: 600;
}

.mobile-toggle {
  display: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--color-text-primary);
}

#age-gate {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 24, 33, 0.98);
  backdrop-filter: blur(20px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: var(--space-md);
}

.gate-content {
  background: linear-gradient(
    135deg,
    var(--color-bg-dark) 0%,
    var(--color-bg-medium) 100%
  );
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  max-width: 600px;
  text-align: center;
  border: 1px solid var(--color-border-medium);
  box-shadow: var(--shadow-xl);
}

.gate-content h2 {
  margin-bottom: var(--space-sm);
}

.gate-content p {
  margin-bottom: var(--space-md);
  font-size: 1rem;
  line-height: 1.7;
}

.gate-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

#overview {
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

#overview::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(0, 119, 190, 0.15) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-text {
  max-width: 600px;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transition: transform var(--transition-base);
}

.hero-image img:hover {
  transform: scale(1.05);
}

.hero-content h1 {
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.pill-container {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: var(--space-lg);
}

.pill {
  background: linear-gradient(
    135deg,
    rgba(0, 119, 190, 0.2) 0%,
    rgba(0, 168, 107, 0.2) 100%
  );
  border: 1px solid var(--color-border-medium);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-primary);
  backdrop-filter: blur(10px);
  transition: var(--transition-base);
}

.pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--color-primary-light);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.info-col {
  background: linear-gradient(
    135deg,
    rgba(37, 59, 82, 0.6) 0%,
    rgba(31, 51, 71, 0.6) 100%
  );
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  backdrop-filter: blur(10px);
  transition: var(--transition-base);
}

.info-col:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.info-col h3 {
  position: relative;
  padding-bottom: var(--space-sm);
}

.info-col h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-secondary-light), transparent);
  border-radius: var(--radius-sm);
}

.info-col.negative h3::after {
  background: linear-gradient(90deg, var(--color-error), transparent);
}

.info-col ul {
  list-style: none;
  padding: 0;
}

.info-col ul li {
  padding-left: 1.5rem;
  margin-bottom: var(--space-sm);
  position: relative;
  color: var(--color-text-secondary);
}

.info-col ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--color-secondary-light);
  font-weight: bold;
}

.info-col.negative ul li::before {
  content: "×";
  color: var(--color-error);
}

.help-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: var(--space-lg) auto 0;
}

.help-list li {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md);
  background: rgba(37, 59, 82, 0.4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  border: 1px solid var(--color-border-light);
  transition: var(--transition-base);
}

.help-list li:hover {
  background: rgba(37, 59, 82, 0.6);
  transform: translateX(10px);
  border-color: var(--color-primary-light);
}

.help-icon {
  font-size: 1.75rem;
  color: var(--color-primary-light);
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(0, 119, 190, 0.2),
    rgba(0, 168, 107, 0.2)
  );
  border-radius: 50%;
  border: 2px solid var(--color-primary-light);
}

.help-list strong {
  color: var(--color-text-primary);
  display: block;
  margin-bottom: 0.25rem;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.game-card {
  background: linear-gradient(
    135deg,
    rgba(0, 119, 190, 0.1) 0%,
    rgba(0, 168, 107, 0.1) 100%
  );
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border-light);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.game-card:hover::before {
  left: 100%;
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-lg), var(--glow-primary);
}

.game-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.game-card i {
  transition: transform var(--transition-base);
}

.game-card:hover i {
  transform: scale(1.2) rotate(5deg);
}

.game-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

#faq {
  background: rgba(13, 24, 33, 0.5);
}

.faq-item {
  background: linear-gradient(
    135deg,
    rgba(37, 59, 82, 0.6) 0%,
    rgba(31, 51, 71, 0.4) 100%
  );
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  overflow: hidden;
  transition: var(--transition-base);
}

.faq-item:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  padding: var(--space-md);
  font-weight: 600;
  color: var(--color-text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  font-size: 1.05rem;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--color-primary-light);
  transition: transform var(--transition-base);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background: rgba(0, 119, 190, 0.1);
}

.faq-item p {
  padding: 0 var(--space-md) var(--space-md) var(--space-md);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.principle-card {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.15) 0%,
    rgba(0, 119, 190, 0.15) 100%
  );
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid rgba(139, 92, 246, 0.3);
  transition: var(--transition-base);
}

.principle-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-secondary-light);
}

.principle-card h4 {
  color: var(--color-secondary-light);
  margin-bottom: var(--space-sm);
  font-size: 1.2rem;
}

.support-panel {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.2) 0%,
    rgba(0, 119, 190, 0.2) 100%
  );
  border: 2px solid rgba(139, 92, 246, 0.4);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.support-panel h3 {
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
}

.support-panel p {
  font-size: 1.05rem;
  line-height: 1.75;
}

.account-banner {
  background: linear-gradient(
    135deg,
    var(--color-primary-dark) 0%,
    var(--color-secondary-dark) 100%
  );
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  margin: var(--space-xl) 0;
  border: 2px solid var(--color-border-medium);
  box-shadow: var(--shadow-xl);
}

.account-banner h2 {
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.mpc-footer {
  background: linear-gradient(
    180deg,
    rgba(13, 24, 33, 0.8) 0%,
    rgba(13, 24, 33, 0.95) 100%
  );
  border-top: 2px solid var(--color-border-light);
  padding: var(--space-xl) 0 var(--space-lg);
  margin-top: var(--space-xl);
}

.border-top {
  border-top: 1px solid var(--color-border-light);
}

.py-4 {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.container-xxl {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(-1 * var(--space-sm));
}

.gy-2 > * {
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}

.col-md-12,
.col-md-6 {
  padding: 0 var(--space-sm);
}

.col-md-12 {
  flex: 0 0 100%;
}

.col-12 {
  flex: 0 0 100%;
}

.nav-pages {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.nav-pages a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  padding: 0.4rem 0;
  transition: var(--transition-fast);
}

.nav-pages a:hover {
  color: var(--color-primary-light);
  padding-left: 0.5rem;
}

.label-nav {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--color-accent-gold);
  margin-bottom: var(--space-sm);
  margin-top: var(--space-md);
}

.logo-trust {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-sm);
}

.logo-trust img {
  height: 150px;
  width: auto;
  border-radius: 10px;
  filter: grayscale(0.3) brightness(1.1);
  transition: var(--transition-base);
}

.logo-trust img:hover {
  filter: grayscale(0) brightness(1.3);
  transform: scale(1.05);
}

.age18 {
  width: 50px;
  height: 50px;
  border: 3px solid var(--color-error);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-error);
}

.text-center {
  text-align: center;
}

.border-secondary {
  border-color: var(--color-border-light) !important;
}

.pt-3 {
  padding-top: var(--space-md);
}

.mt-4 {
  margin-top: var(--space-lg);
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-0 {
  margin-bottom: 0;
}

.small {
  font-size: 0.875rem;
}

.fw-bold {
  font-weight: 700;
}

.fw-semibold {
  font-weight: 600;
}

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 24, 33, 0.98) 0%,
    rgba(22, 37, 54, 0.98) 100%
  );
  backdrop-filter: blur(20px);
  border-top: 2px solid var(--color-border-medium);
  padding: var(--space-md);
  display: none;
  z-index: 9999;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
}

.cookie-content {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.login-section,
.register-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: var(--space-xl) 0;
}

.login-card,
.register-card {
  background: linear-gradient(
    135deg,
    var(--color-bg-dark) 0%,
    var(--color-bg-medium) 100%
  );
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  border: 1px solid var(--color-border-medium);
  box-shadow: var(--shadow-xl);
}

.login-header,
.reg-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.login-header h1,
.reg-header h1 {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.login-header p,
.reg-header p {
  color: var(--color-text-muted);
}

.notice-box,
.info-box {
  background: rgba(0, 119, 190, 0.1);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  display: flex;
  gap: var(--space-sm);
}

.notice-icon,
.info-icon {
  font-size: 1.5rem;
  color: var(--color-primary-light);
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(0, 119, 190, 0.2),
    rgba(0, 168, 107, 0.2)
  );
  border-radius: 50%;
  border: 2px solid var(--color-primary-light);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: 0.95rem;
}

.form-input {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  background: rgba(13, 24, 33, 0.5);
  color: var(--color-text-primary);
  font-size: 1rem;
  transition: var(--transition-base);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(0, 119, 190, 0.2);
}

.form-input::placeholder {
  color: var(--color-text-disabled);
}

.checkbox-group {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.checkbox-label {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.form-footer {
  text-align: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-light);
  color: var(--color-text-muted);
}

.form-footer a {
  color: var(--color-primary-light);
  font-weight: 600;
}

.form-footer a:hover {
  text-decoration: underline;
}

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

  .mobile-toggle {
    display: block;
  }

  .col-md-6 {
    flex: 0 0 100%;
  }

  .game-grid,
  .info-grid,
  .principles-grid {
    grid-template-columns: 1fr;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .hero-text {
    text-align: center;
    max-width: 100%;
  }

  .pill-container {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .login-card,
  .register-card {
    padding: var(--space-md);
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .gate-content {
    padding: var(--space-md);
  }

  .gate-actions {
    flex-direction: column;
    width: 100%;
  }

  .gate-actions .btn {
    width: 100%;
  }

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-buttons {
    width: 100%;
    flex-direction: column;
    gap: var(--space-sm);
  }

  .auth-buttons .btn {
    width: 100%;
  }

  .logo-trust {
    justify-content: center;
  }

  .logo-trust img {
    height: 40px;
  }

  .help-list li {
    flex-direction: column;
    text-align: center;
  }

  .help-icon {
    margin: 0 auto var(--space-sm);
  }

  .account-banner {
    padding: var(--space-md);
  }

  .account-banner > div {
    flex-direction: column;
  }

  .cookie-buttons {
    width: 100%;
    flex-direction: column;
  }

  .cookie-buttons .btn {
    width: 100%;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .pill-container {
    justify-content: center;
  }

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

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

@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 48px;
  }

  .faq-item summary {
    min-height: 48px;
  }

  a,
  button {
    min-height: 44px;
    min-width: 44px;
  }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

@media (min-width: 769px) {
  .col-md-6 {
    flex: 0 0 50%;
  }
}

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

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

.gap-2 {
  gap: var(--space-sm);
}

.mb-3 {
  margin-bottom: var(--space-md);
}

.mb-2 {
  margin-bottom: var(--space-sm);
}

.mb-4 {
  margin-bottom: var(--space-lg);
}

.mb-md-0 {
  margin-bottom: 0;
}

.mt-4 {
  margin-top: var(--space-lg);
}

.brand-mark {
  width: 40px;
  height: 40px;
}

.brand-inner img {
  width: 100%;
  height: auto;
}

.navbar-brand {
  text-decoration: none;
}

.page {
  padding: var(--space-xl) 0;
  min-height: 70vh;
}

.legal-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(
    135deg,
    rgba(37, 59, 82, 0.4) 0%,
    rgba(31, 51, 71, 0.3) 100%
  );
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-lg);
}

.legal-wrapper h1 {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  color: var(--color-primary-light);
  border-bottom: 3px solid var(--color-primary-light);
  padding-bottom: var(--space-sm);
}

.legal-wrapper h2 {
  font-size: 1.75rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  color: var(--color-secondary-light);
  position: relative;
  padding-left: var(--space-md);
}

.legal-wrapper h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(
    180deg,
    var(--color-secondary-light),
    var(--color-primary-light)
  );
  border-radius: var(--radius-sm);
}

.legal-wrapper h3 {
  font-size: 1.35rem;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.legal-wrapper h4 {
  font-size: 1.15rem;
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.legal-wrapper p {
  margin-bottom: var(--space-md);
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.legal-wrapper ul,
.legal-wrapper ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.legal-wrapper ul {
  list-style: none;
}

.legal-wrapper ul li {
  position: relative;
  padding-left: var(--space-md);
  margin-bottom: var(--space-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.legal-wrapper ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--color-secondary-light);
  font-weight: bold;
}

.legal-wrapper ol {
  list-style: decimal;
}

.legal-wrapper ol li {
  margin-bottom: var(--space-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.legal-wrapper strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

.legal-wrapper a {
  color: var(--color-primary-light);
  text-decoration: underline;
  transition: var(--transition-fast);
}

.legal-wrapper a:hover {
  color: var(--color-secondary-light);
}

.legal-wrapper code {
  background: rgba(0, 119, 190, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: "Courier New", monospace;
  color: var(--color-primary-light);
  font-size: 0.9em;
}

.legal-wrapper table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
  background: rgba(13, 24, 33, 0.5);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.legal-wrapper th,
.legal-wrapper td {
  padding: var(--space-sm);
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
}

.legal-wrapper th {
  background: rgba(0, 119, 190, 0.2);
  color: var(--color-text-primary);
  font-weight: 600;
}

.legal-wrapper tr:last-child td {
  border-bottom: none;
}

.effective-date {
  display: inline-block;
  background: linear-gradient(
    135deg,
    rgba(0, 119, 190, 0.2),
    rgba(0, 168, 107, 0.2)
  );
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  font-weight: 600;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-medium);
}

.legal-wrapper blockquote {
  margin: var(--space-md) 0;
  padding: var(--space-md);
  background: rgba(0, 168, 107, 0.1);
  border-left: 4px solid var(--color-secondary-light);
  border-radius: var(--radius-sm);
  font-style: italic;
}

@media (max-width: 768px) {
  .legal-wrapper {
    padding: var(--space-md);
  }

  .legal-wrapper h1 {
    font-size: 2rem;
  }

  .legal-wrapper h2 {
    font-size: 1.5rem;
  }
}
