@font-face {
  font-family: "Sarabun";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/sarabun-400-thai.woff2") format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
  font-family: "Sarabun";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/sarabun-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Sarabun";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/sarabun-500-thai.woff2") format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
  font-family: "Sarabun";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/sarabun-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Sarabun";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/sarabun-600-thai.woff2") format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
  font-family: "Sarabun";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/sarabun-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Sarabun";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/sarabun-700-thai.woff2") format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
  font-family: "Sarabun";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/sarabun-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-primary: "Sarabun", "Noto Sans Thai", Tahoma, sans-serif;
  --navy-950: #031942;
  --navy-900: #06285f;
  --navy-800: #0a3677;
  --navy-700: #124a93;
  --blue-100: #edf4ff;
  --gold-600: #a97c20;
  --gold-500: #c69a3a;
  --gold-200: #f1d99c;
  --ink: #12213e;
  --muted: #586379;
  --line: #dce3ed;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --success: #1a7f51;
  --shadow-sm: 0 10px 30px rgba(7, 35, 81, 0.08);
  --shadow-lg: 0 22px 60px rgba(7, 35, 81, 0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --header-height: 112px;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

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

button {
  color: inherit;
}

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

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

h1,
h2,
h3,
strong {
  font-weight: 700;
}

h1,
h2,
h3 {
  line-height: 1.28;
}

:focus-visible {
  outline: 3px solid #ecb934;
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--navy-900);
  padding: 10px 16px;
  box-shadow: var(--shadow-sm);
}

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

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

.section {
  padding: 72px 0;
}

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

.section-heading.centered {
  text-align: center;
}

.section-heading h2,
.section-row h2,
.mission-panel > h2,
.partners-row h2,
.support-row h2 {
  margin-bottom: 4px;
  color: var(--navy-900);
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
}

.section-kicker,
.eyebrow {
  margin-bottom: 6px;
  color: var(--gold-600);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-header {
  position: relative;
  z-index: 100;
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.98);
}

.site-header.is-sticky {
  position: sticky;
  top: 0;
  box-shadow: 0 8px 24px rgba(7, 35, 81, 0.08);
}

.header-inner {
  width: min(calc(100% - 48px), 1360px);
  display: grid;
  grid-template-columns: auto minmax(420px, 1fr) auto;
  align-items: center;
  min-height: var(--header-height);
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-height: 84px;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(6, 40, 95, 0.12);
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-title {
  color: var(--navy-900);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
}

.brand-subtitle {
  color: var(--gold-600);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.primary-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2vw, 34px);
}

.primary-navigation a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #18233a;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

.primary-navigation a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--gold-500);
  content: "";
  transition: transform 180ms ease;
}

.primary-navigation a:hover::after,
.primary-navigation a.active::after {
  transform: scaleX(1);
}

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

.language {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.language-button,
.icon-button,
.menu-toggle {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.language-button {
  min-width: auto;
  padding: 8px 2px;
  color: var(--muted);
}

.language-button.active {
  color: var(--navy-900);
}

.social-link {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--navy-900);
}

.login-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  margin-left: 8px;
  border: 0;
  border-radius: 7px;
  background: var(--navy-900);
  color: #fff;
  padding: 8px 14px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(6, 40, 95, 0.16);
  transition: background 180ms ease, transform 180ms ease;
}

.mobile-login-button {
  display: none;
}

.login-button:hover {
  transform: translateY(-2px);
  background: var(--navy-800);
}

.login-button > i:first-child {
  font-size: 1.25rem;
}

.login-button span {
  display: grid;
  text-align: left;
  line-height: 1.25;
}

.login-button strong {
  font-size: 0.82rem;
}

.login-button small {
  font-size: 0.7rem;
  opacity: 0.78;
}

.menu-toggle {
  display: none;
  color: var(--navy-900);
  font-size: 1.6rem;
}

.search-panel {
  position: absolute;
  z-index: 10;
  top: 100%;
  right: 0;
  left: 0;
  border-top: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.search-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
}

.search-inner label {
  font-weight: 700;
}

.search-inner input,
.prototype-form input,
.newsletter-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #c8d0dc;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  padding: 10px 14px;
}

.hero {
  position: relative;
  min-height: 630px;
  overflow: hidden;
  background: #f8fafc;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 10px;
  background: linear-gradient(90deg, transparent, var(--gold-500), var(--navy-800));
  content: "";
  opacity: 0.8;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 630px;
}

.hero-copy {
  width: min(520px, 48%);
  padding: 62px 0 54px;
}

.hero h1 {
  margin-bottom: 22px;
  color: var(--navy-900);
  font-size: clamp(2.55rem, 4vw, 4.25rem);
  letter-spacing: -0.03em;
}

.hero-description {
  max-width: 450px;
  margin-bottom: 26px;
  color: #2d374c;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  align-items: stretch;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 11px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--navy-900);
  color: #fff;
  box-shadow: 0 10px 22px rgba(6, 40, 95, 0.18);
}

.button-primary:hover {
  background: var(--navy-800);
  box-shadow: 0 14px 28px rgba(6, 40, 95, 0.24);
}

.button-outline {
  border-color: #c0a261;
  background: rgba(255, 255, 255, 0.86);
  color: var(--navy-900);
}

.button-outline:hover {
  background: #fff;
}

.button-large {
  min-height: 64px;
  min-width: 214px;
  justify-content: flex-start;
}

.button-large span {
  display: grid;
  margin-right: auto;
  text-align: left;
  line-height: 1.2;
}

.button-large strong {
  font-size: 0.94rem;
}

.button-large small {
  margin-top: 4px;
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.8;
}

.secondary-login {
  min-height: 44px;
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: #354159;
  padding: 5px 0;
  cursor: pointer;
}

.secondary-login strong {
  color: var(--navy-900);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rules-section {
  background: #fff;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rules-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold-500);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.rules-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-500);
  box-shadow: var(--shadow-lg);
}

.rules-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.rules-icon {
  display: grid;
  flex: 0 0 48px;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #fdf6e7;
  color: var(--gold-600);
  font-size: 1.45rem;
}

.rules-tag {
  display: inline-block;
  margin-bottom: 4px;
  border-radius: 4px;
  background: #fcf4e4;
  color: var(--gold-600);
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
}

.rules-card-header h3 {
  margin: 0;
  color: var(--navy-900);
  font-size: 1.15rem;
  line-height: 1.3;
}

.rules-card > p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.rules-list {
  display: grid;
  gap: 10px;
  margin: 0 0 24px 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  line-height: 1.5;
}

.rules-list li {
  position: relative;
  padding-left: 20px;
  color: #2b384e;
}

.rules-list li::before {
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--gold-600);
  content: "•";
  font-size: 1.1rem;
}

.rules-list strong {
  color: var(--navy-950);
}

.rules-card-footer {
  margin-top: auto;
  padding-top: 12px;
}

.button-small {
  min-height: 42px;
  width: 100%;
  padding: 8px 14px;
  font-size: 0.86rem;
}

.rules-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
  border-radius: var(--radius-md);
  background: var(--navy-900);
  color: #fff;
  padding: 24px 32px;
  box-shadow: var(--shadow-sm);
}

.cta-banner-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cta-banner-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cta-icon {
  color: var(--gold-500);
  font-size: 2.2rem;
  flex-shrink: 0;
}

.cta-banner-title-row h4 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.cta-banner-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.rules-cta-banner .button-primary {
  flex-shrink: 0;
  background: var(--gold-500);
  color: var(--navy-950);
}

.rules-cta-banner .button-primary:hover {
  background: var(--gold-200);
}

/* Interactive Simulator Component */
.rules-simulator-card {
  margin-top: 32px;
  border: 1px solid var(--surface-border, #e2e8f0);
  border-radius: var(--radius-md, 8px);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(6, 40, 95, 0.06);
  padding: 28px;
  overflow: hidden;
}

.simulator-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #edf2f7;
}

.simulator-title-group h3 {
  margin: 6px 0 4px;
  color: var(--navy-950, #031942);
  font-size: 1.45rem;
  font-weight: 700;
}

.simulator-title-group p {
  margin: 0;
  color: #4a5568;
  font-size: 0.94rem;
}

.simulator-class-tabs {
  display: flex;
  width: 100%;
  gap: 8px;
  background: #f1f5f9;
  padding: 6px;
  border-radius: 8px;
}

.sim-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: #475569;
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 180ms ease;
}

.sim-tab:hover {
  color: var(--navy-900, #06285f);
  background: rgba(255, 255, 255, 0.6);
}

.sim-tab.active {
  background: var(--navy-900, #06285f);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(6, 40, 95, 0.18);
}

.canvas-wrapper {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #0f172a;
  border: 2px solid var(--navy-900, #06285f);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

#petanque-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 420;
  cursor: crosshair;
}

.canvas-overlay-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  z-index: 10;
}

.sim-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 200ms ease;
}

.sim-badge.valid {
  background: rgba(16, 185, 129, 0.92);
  color: #ffffff;
}

.sim-badge.invalid {
  background: rgba(239, 68, 68, 0.95);
  color: #ffffff;
  animation: pulse-badge 1s infinite alternate;
}

@keyframes pulse-badge {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}

.simulator-controls {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.control-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.control-action-group .button {
  width: auto;
  flex: 1 1 auto;
}

.simulator-info-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 5px solid var(--gold-500, #c69a3a);
  border-radius: 6px;
  padding: 16px 20px;
  transition: border-color 200ms ease, background 200ms ease;
}

.simulator-info-box.foul-mode {
  background: #fef2f2;
  border-color: #fca5a5;
  border-left-color: #ef4444;
}

.simulator-info-box .info-icon {
  color: var(--gold-600, #a97c20);
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.simulator-info-box.foul-mode .info-icon {
  color: #dc2626;
}

.simulator-info-box h4 {
  margin: 0 0 4px;
  color: var(--navy-950, #031942);
  font-size: 1rem;
  font-weight: 700;
}

.simulator-info-box p {
  margin: 0;
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Standalone Petanque Game Launch Banner Box (Solid Orange) */
.rules-game-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
  border-radius: var(--radius-md);
  background: #d97706; /* Solid Orange - No Gradient! */
  color: #ffffff;
  padding: 24px 32px;
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.2);
}

.game-banner-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.game-banner-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.game-banner-icon {
  color: #ffffff;
  font-size: 2.2rem;
  flex-shrink: 0;
}

.game-banner-title-row h4 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.game-banner-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
}

.button-navy-solid {
  flex-shrink: 0;
  background: var(--navy-950, #031942);
  color: #ffffff;
  border: none;
}

.button-navy-solid:hover {
  background: var(--navy-900, #06285f);
  color: #ffffff;
}

@media (max-width: 768px) {
  .rules-simulator-card {
    padding: 16px 12px;
  }

  .simulator-header {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .simulator-title-group h3 {
    font-size: 1.25rem;
  }

  .simulator-class-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 4px;
    gap: 6px;
    scrollbar-width: none;
  }

  .simulator-class-tabs::-webkit-scrollbar {
    display: none;
  }

  .sim-tab {
    flex: 1 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
    justify-content: center;
    padding: 9px 14px;
    font-size: 0.84rem;
  }

  .canvas-overlay-badges {
    top: 8px;
    left: 8px;
    right: 8px;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center;
    gap: 6px;
  }

  .sim-badge {
    padding: 3px 8px;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .control-action-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .control-action-group .button {
    width: 100%;
    min-height: 40px;
    padding: 6px 8px;
    font-size: 0.8rem;
    justify-content: center;
  }

  .simulator-info-box {
    padding: 12px 14px;
  }

  .simulator-info-box h4 {
    font-size: 0.92rem;
  }

  .simulator-info-box p {
    font-size: 0.84rem;
  }

  .rules-game-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 18px;
    gap: 16px;
  }

  .rules-game-banner .button-navy-solid {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .simulator-class-tabs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .sim-tab {
    width: 100%;
    justify-content: flex-start;
    white-space: normal;
  }

  .control-action-group {
    grid-template-columns: 1fr;
  }
}

.news-section {
  background: var(--surface-soft);
}

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

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  color: var(--navy-900);
  font-weight: 700;
}

.is-disabled {
  cursor: default;
  opacity: 0.68;
  pointer-events: none;
}

.button.is-disabled:hover {
  transform: none;
}

.news-section .section-row > .text-link {
  flex-shrink: 0;
  white-space: nowrap;
}

.news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.news-secondary-list {
  display: grid;
  gap: 24px;
}

.news-secondary-list .news-item + .news-item {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.news-item {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.news-item.news-featured {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.news-featured .news-image {
  aspect-ratio: 16 / 9;
}

.news-featured .news-copy h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.4;
}

.news-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

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

.news-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  border-radius: 999px;
  background: var(--navy-800);
  color: #fff;
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 700;
}

.tag-orange {
  background: #cf641e;
}

.news-copy h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.52;
}

.news-copy h3 a:hover {
  color: var(--navy-700);
}

.news-copy time {
  color: var(--muted);
  font-size: 0.82rem;
}

.about-section {
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 44px;
  align-items: center;
}

.about-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--navy-950);
  color: #fff;
}

.about-card > img,
.about-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.about-card > img {
  object-fit: cover;
}

.about-overlay {
  background: linear-gradient(90deg, rgba(3, 25, 66, 0.98) 0%, rgba(3, 25, 66, 0.82) 50%, rgba(3, 25, 66, 0.16) 100%);
}

.about-copy {
  position: relative;
  z-index: 2;
  max-width: 420px;
  padding: 44px;
}

.about-copy h2 {
  margin-bottom: 14px;
  font-size: 2rem;
}

.about-copy p {
  font-size: 0.96rem;
}

.button-outline-light {
  border-color: rgba(255, 255, 255, 0.72);
  background: transparent;
  color: #fff;
}

.button-outline-light:hover {
  background: #fff;
  color: var(--navy-900);
}

.mission-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
  background: #fff;
  padding: 44px;
}

.mission-panel > h2 {
  margin-bottom: 24px;
}

.mission-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mission-list li {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  color: var(--navy-900);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.mission-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.home-page .button {
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.home-page .button:hover,
.home-page .login-button:hover {
  transform: none;
}

.home-page .button-primary,
.home-page .button-primary:hover,
.home-page .login-button {
  box-shadow: none;
}

.home-page .login-button {
  min-height: 48px;
  font-size: 0.875rem;
  font-weight: 700;
}

.support-section {
  border-block: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 48px 0;
}

.support-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 64px;
}

.support-row p {
  margin: 12px 0 0;
  color: var(--muted);
}

.association-contact-details {
  border-left: 2px solid var(--gold-500);
  padding-left: 32px;
}

.association-contact-details h3 {
  margin-bottom: 12px;
  color: var(--navy-900);
  font-size: 1.125rem;
}

.association-contact-details address {
  margin-top: 12px;
  font-style: normal;
}

.association-contact-details dl {
  margin: 24px 0 0;
}

.association-contact-details dl > div {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.association-contact-details dt {
  color: var(--muted);
  font-size: 0.875rem;
}

.association-contact-details dd {
  margin: 0;
  min-width: 0;
}

.association-contact-details a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--navy-900);
  overflow-wrap: anywhere;
}

.association-contact-details a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .support-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .association-contact-details {
    border-left: 0;
    border-top: 2px solid var(--gold-500);
    padding: 24px 0 0;
  }

  .association-contact-details dl > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 12px;
  }
}

.partners-section {
  border-top: 1px solid var(--line);
  padding: 34px 0;
}

.partners-row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 28px;
}

.partners-row h2 {
  margin: 0;
}

.partner-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
}

.partner-item {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 0;
  min-width: 0;
  color: var(--navy-900);
  text-align: center;
}

.partner-logo {
  display: block;
  width: 160px;
  max-width: 100%;
  height: 112px;
  object-fit: contain;
}

.partner-name {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
}

.site-footer {
  background: linear-gradient(120deg, var(--navy-950), var(--navy-900));
  color: rgba(255, 255, 255, 0.88);
  padding: 52px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr 1fr 1.15fr 1.2fr;
  gap: 40px;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  text-decoration: none;
}

.footer-brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
}

.footer-brand-text strong {
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.25;
}

.footer-brand-text small {
  color: var(--gold-200);
  font-size: 0.72rem;
  font-weight: 500;
}

.footer-brand > p {
  max-width: 280px;
  margin: 16px 0 18px;
  font-size: 0.84rem;
}

.footer-socials {
  display: flex;
  gap: 8px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #fff;
  font-size: 0.82rem;
  transition: color 180ms ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  color: var(--gold-200);
}

.footer-socials a:focus-visible {
  outline: 2px solid var(--gold-200);
  outline-offset: 4px;
}

.footer-column,
.footer-newsletter {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-column h2,
.footer-newsletter h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 1rem;
}

.footer-column a,
.footer-column button {
  min-height: 36px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  padding: 4px 0;
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
}

.footer-column a:hover,
.footer-column button:hover {
  color: #fff;
}

.footer-contact p {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.78rem;
}

.footer-contact i {
  color: var(--gold-200);
}

.footer-newsletter p {
  font-size: 0.82rem;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr 48px;
  width: 100%;
}

.newsletter-form input {
  border: 0;
  border-radius: 7px 0 0 7px;
}

.newsletter-form button {
  min-width: 48px;
  border: 0;
  border-radius: 0 7px 7px 0;
  background: var(--gold-500);
  color: var(--navy-950);
  cursor: pointer;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 18px;
  font-size: 0.72rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-legal-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.88;
  transition: opacity 180ms ease, color 180ms ease;
}

.footer-legal-link:hover,
.footer-legal-link.active {
  opacity: 1;
  color: var(--gold-200);
}

.page-banner {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 100%);
  color: #fff;
  padding: 56px 0 44px 0;
  border-bottom: 3px solid var(--gold-500);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb a {
  color: var(--gold-300);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb i {
  font-size: 0.75rem;
  opacity: 0.6;
}

.page-banner h1 {
  margin: 0 0 8px 0;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  color: #fff;
}

.page-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

.page-content-layout {
  max-width: 860px;
  margin: 0 auto;
}

.page-article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
  color: #2b384e;
  line-height: 1.7;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 20px;
  border-radius: 30px;
  background: #fdf6e7;
  border: 1.5px solid var(--gold-400);
  color: var(--gold-600);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(192, 162, 97, 0.12);
}

.document-header-box {
  margin-bottom: 32px;
  padding: 24px 28px;
  border-radius: var(--radius-md);
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold-500);
  box-shadow: 0 2px 8px rgba(6, 40, 95, 0.04);
}

.document-header-box h2 {
  margin: 0 0 6px 0 !important;
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
  color: var(--navy-950) !important;
  font-size: 1.5rem !important;
}

.document-header-org {
  margin-bottom: 14px;
  color: var(--gold-600);
  font-size: 1.05rem;
  font-weight: 700;
}

.document-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-top: 12px;
  border-top: 1px dashed #d1d9e6;
  font-size: 0.88rem;
  color: var(--muted);
}

.document-header-meta span strong {
  color: var(--navy-900);
}

.document-header-meta .legal-badge {
  margin-bottom: 0;
  margin-left: auto;
  padding: 4px 14px;
  font-size: 0.82rem;
}

.text-note {
  display: inline-block;
  margin-top: 6px;
  color: #4b586e;
  font-size: 0.86rem;
  line-height: 1.5;
}

.page-article h2 {
  margin: 32px 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--navy-900);
  font-size: 1.3rem;
}

.page-article h2:first-of-type {
  margin-top: 24px;
}

.page-article p {
  margin: 0 0 16px 0;
}

.page-article ul {
  display: grid;
  gap: 10px;
  margin: 0 0 20px 0;
  padding-left: 22px;
}

.page-article li strong {
  color: var(--navy-950);
}

.contact-card-box {
  margin: 32px 0 24px 0;
  padding: 24px 28px;
  border-radius: var(--radius-md);
  background: #f7f9fc;
  border-left: 4px solid var(--navy-900);
}

.contact-card-box h3 {
  margin: 0 0 12px 0;
  color: var(--navy-900);
  font-size: 1.1rem;
}

.contact-card-box p {
  margin: 0 0 8px 0;
  font-size: 0.95rem;
}

.contact-card-box p:last-child {
  margin-bottom: 0;
}

.page-actions {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.modal {
  width: min(520px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  overflow: auto;
  border: 0;
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--ink);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.modal-large {
  width: min(680px, calc(100% - 32px));
}

.legal-content {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  color: #2c384e;
  font-size: 0.92rem;
  line-height: 1.65;
  text-align: left;
}

.legal-content h3 {
  margin: 10px 0 2px 0;
  color: var(--navy-900);
  font-size: 1.05rem;
}

.legal-content p {
  margin: 0;
}

.legal-content ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
}

.modal::backdrop {
  background: rgba(3, 25, 66, 0.7);
  backdrop-filter: blur(4px);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-soft);
  cursor: pointer;
}

.modal-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--navy-900);
  font-size: 1.8rem;
}

.modal h2 {
  margin-bottom: 10px;
  color: var(--navy-900);
  font-size: 2rem;
}

.prototype-form {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.prototype-form label {
  margin-top: 6px;
  font-weight: 600;
}

.prototype-form .button {
  margin-top: 12px;
}

.toast {
  position: fixed;
  z-index: 1000;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(420px, calc(100% - 48px));
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
}

.toast[hidden] {
  display: none;
}

.toast i {
  color: var(--success);
  font-size: 1.25rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1380px) {
  .header-inner {
    grid-template-columns: 220px minmax(0, 1fr) 168px;
    gap: 12px;
  }

  .primary-navigation {
    gap: 12px;
  }

  .primary-navigation a {
    font-size: 0.8rem;
  }

  .social-link,
  .language,
  .header-actions > .icon-button {
    display: none;
  }

  .login-button {
    width: 160px;
    margin-left: 0;
    padding-inline: 10px;
  }

  .login-button span {
    white-space: nowrap;
  }
}

@media (max-width: 1220px) {
  :root {
    --container: 1050px;
  }

  .header-inner {
    grid-template-columns: 220px minmax(0, 1fr) 168px;
    gap: 12px;
  }

  .primary-navigation {
    gap: 12px;
  }

  .primary-navigation a {
    font-size: 0.8rem;
  }

  .social-link,
  .language {
    display: none;
  }

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

  .login-button {
    width: 160px;
    margin-left: 0;
    padding-inline: 10px;
  }

  .login-button span {
    white-space: nowrap;
  }

  .news-item {
    grid-template-columns: 140px 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 0.7fr 0.9fr 1.1fr;
  }

  .footer-newsletter {
    grid-column: 2 / -1;
  }
}

@media (max-width: 992px) {
  :root {
    --header-height: 84px;
  }

  .container {
    width: min(calc(100% - 36px), var(--container));
  }

  .header-inner {
    grid-template-columns: 1fr auto auto;
    min-height: var(--header-height);
  }

  .brand {
    min-height: 64px;
    gap: 10px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand-title {
    font-size: 0.9rem;
  }

  .brand-subtitle {
    font-size: 0.64rem;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .primary-navigation {
    position: fixed;
    z-index: 101;
    top: var(--header-height);
    right: 0;
    left: 0;
    width: 100vw;
    max-height: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: #fff;
    padding: 0 max(24px, 6vw);
    overflow: hidden;
    border-top: 1px solid rgba(8, 33, 76, 0.08);
    box-shadow: 0 24px 40px rgba(7, 35, 81, 0.12);
    transition: max-height 340ms cubic-bezier(0.22, 1, 0.36, 1), padding 340ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease, visibility 0s linear 340ms;
  }

  .primary-navigation.is-open {
    max-height: calc(100dvh - var(--header-height));
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding: 30px max(24px, 6vw) 42px;
    overflow-y: auto;
    transition: max-height 340ms cubic-bezier(0.22, 1, 0.36, 1), padding 340ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease, visibility 0s linear 0s;
  }

  .primary-navigation a {
    min-height: 54px;
    border-bottom: 1px solid rgba(8, 33, 76, 0.08);
    font-size: 1rem;
  }

  .desktop-login-button {
    display: none;
  }

  .mobile-login-button {
    display: inline-flex;
    width: 100%;
    min-height: 56px;
    margin: 8px 0 0;
    justify-content: space-between;
    padding: 10px 14px;
  }

  .mobile-login-button span {
    display: grid;
    white-space: normal;
  }

  .hero,
  .hero-inner {
    min-height: 660px;
  }

  .hero-image {
    object-position: 59% center;
  }

  .hero-copy {
    width: 55%;
  }

  .rules-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .rules-cta-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 14px;
  }

  .cta-banner-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .cta-banner-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .cta-icon {
    font-size: 1.8rem;
    flex: 0 0 auto;
    margin-top: 0;
  }

  .cta-banner-title-row h4 {
    font-size: 0.98rem;
    line-height: 1.35;
    margin-bottom: 0;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .cta-banner-content p {
    font-size: 0.84rem;
    line-height: 1.45;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .rules-cta-banner .button-primary {
    width: 100%;
    justify-content: center;
    white-space: nowrap;
    font-size: 0.86rem;
    padding: 10px 12px;
  }

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

  .stat-item:nth-child(3) {
    border-left: 0;
  }

  .stat-item:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.28);
  }

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

  .news-item {
    grid-template-columns: 220px 1fr;
  }

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

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

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .footer-contact {
    grid-column: 2 / 4;
  }

  .footer-newsletter {
    grid-column: 2 / 4;
  }
}

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

  .section {
    padding: 54px 0;
  }

  .brand {
    width: auto;
    max-width: calc(100% - 56px);
    height: auto;
    min-height: 56px;
  }

  .brand-title {
    font-size: clamp(0.82rem, 3.7vw, 1rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-subtitle {
    font-size: clamp(0.56rem, 2.3vw, 0.68rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .icon-button {
    display: none;
  }

  .hero {
    position: relative;
    display: block;
    min-height: auto;
    overflow: hidden;
    background: #f7f9fc;
    padding-bottom: 52px;
  }

  .hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    border-radius: 0;
    box-shadow: none;
    filter: contrast(1.06) brightness(0.98);
  }

  .hero::before {
    display: block;
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.65) 0%,
      rgba(255, 255, 255, 0.42) 45%,
      rgba(255, 255, 255, 0.20) 100%
    );
    content: "";
  }

  .hero-inner {
    position: relative;
    z-index: 2;
    align-items: stretch;
    min-height: auto;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 42px;
  }

  .hero-copy h1,
  .hero-copy .hero-description,
  .hero-copy .eyebrow {
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.95), 0 2px 8px rgba(255, 255, 255, 0.85);
  }

  .hero h1 {
    font-size: clamp(2.25rem, 11vw, 3.25rem);
  }

  .hero-description {
    max-width: 100%;
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button-large {
    width: 100%;
  }

  .cta-banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .rules-cta-banner .button-primary {
    width: 100%;
  }

  .stats-strip {
    grid-template-columns: 1fr;
    padding: 8px 22px;
  }

  .stat-item {
    padding: 14px 6px;
  }

  .stat-item + .stat-item {
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    border-left: 0;
  }

  .section-row {
    align-items: flex-start;
  }

  .news-item {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
  }

  .news-image {
    aspect-ratio: 16 / 9;
  }

  .mission-panel {
    padding: 36px 22px;
  }

  .partners-row {
    grid-template-columns: 1fr;
  }

  .partner-list {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .footer-brand,
  .footer-contact,
  .footer-newsletter {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .footer-bottom div {
    justify-content: center;
    width: 100%;
  }

  .search-inner {
    grid-template-columns: 1fr auto;
  }

  .search-inner label {
    grid-column: 1 / -1;
  }

  .search-inner .button {
    grid-row: 2;
  }

  .modal {
    padding: 32px 24px;
  }
}

/* ==========================================================================
   TPDS Petanque Mini-Game Styles
   ========================================================================== */
.button-game {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 18px rgba(180, 83, 9, 0.3);
}

.button-game:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 12px 24px rgba(180, 83, 9, 0.4);
}

.game-page-body {
  background: var(--slate-50, #f8fafc);
  color: var(--slate-800, #1e293b);
  min-height: 100vh;
}

.game-header {
  background: #ffffff;
  border-bottom: 2px solid var(--navy-900, #06285f);
  padding: 16px 0;
  box-shadow: 0 4px 12px rgba(6, 40, 95, 0.06);
}

.game-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.game-back-btn {
  border-color: var(--navy-900, #06285f);
  color: var(--navy-900, #06285f);
  background: #ffffff;
}

.game-title-group h1 {
  margin: 4px 0 0;
  font-size: 1.35rem;
  color: var(--navy-900, #06285f);
  font-weight: 800;
}

.game-badge {
  display: inline-block;
  background: var(--gold-500, #c69a3a);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.game-score-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-900, #06285f);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.95rem;
  color: #f1d99c;
  border: 1.5px solid var(--gold-400, #c69a3a);
}

.game-score-badge strong {
  font-size: 1.2rem;
  color: #ffffff;
}

.game-container {
  margin-top: 24px;
  margin-bottom: 40px;
}

.game-card {
  background: #ffffff;
  border-radius: 14px;
  border: 2px solid var(--navy-900, #06285f);
  padding: 24px;
  box-shadow: 0 12px 36px rgba(6, 40, 95, 0.08);
}

.game-class-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.game-bar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.game-bar-label {
  font-weight: 700;
  color: var(--navy-900, #06285f);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.game-mode-tabs,
.game-class-tabs {
  display: flex;
  gap: 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}

.mode-tab,
.game-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  color: #64748b;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 180ms ease;
}

.mode-tab.active {
  background: var(--navy-900, #06285f);
  color: #ffffff;
  font-weight: 700;
}

.game-tab.active {
  background: var(--gold-500, #c69a3a);
  color: #ffffff;
  font-weight: 700;
}

/* Turn & Game Phase Banner */
.game-phase-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
  transition: all 200ms ease;
}

.game-phase-banner.phase-jack {
  background: #fef2f2;
  border: 1.5px solid #ef4444;
  color: #991b1b;
}

.game-phase-banner.phase-p1 {
  background: #f0f9ff;
  border: 1.5px solid #0284c7;
  color: #075985;
}

.game-phase-banner.phase-p2 {
  background: #fefce8;
  border: 1.5px solid #d97706;
  color: #78350f;
}

.game-phase-banner.phase-over {
  background: #ecfdf5;
  border: 1.5px solid #10b981;
  color: #065f46;
}

.game-stage-wrapper {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--navy-900, #06285f);
  box-shadow: 0 6px 18px rgba(6, 40, 95, 0.12);
}

#game-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 480;
  touch-action: none;
}

/* Dedicated Scoreboard Bar Outside Canvas */
.game-scoreboard-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.score-card-item {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.score-card-label {
  font-size: 0.78rem;
  color: var(--navy-900, #06285f);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.score-card-label i {
  color: var(--gold-500, #c69a3a);
}

.score-card-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-900, #06285f);
}

.score-card-value.highlight {
  color: #0284c7;
}

.score-card-value.medal.gold {
  color: #b45309;
}

.score-card-value.medal.silver {
  color: #475569;
}

.score-card-value.medal.bronze {
  color: #c2410c;
}

.game-controls-panel {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.aim-controls-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.game-btn-aim {
  flex: 0 0 auto;
  border-color: var(--navy-900, #06285f);
  color: var(--navy-900, #06285f);
  background: #f1f5f9;
  min-height: 52px;
  padding: 0 16px;
  font-size: 0.9rem;
  font-weight: 700;
}

.game-btn-aim:hover {
  background: var(--navy-900, #06285f);
  color: #ffffff;
}

.game-btn-throw {
  flex: 1 1 auto;
  background: linear-gradient(135deg, #06285f, #031942);
  color: #ffffff;
  min-height: 52px;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(6, 40, 95, 0.3);
  touch-action: manipulation;
  user-select: none;
  border: 1.5px solid var(--gold-400, #c69a3a);
}

.game-btn-throw:active {
  transform: scale(0.98);
  background: linear-gradient(135deg, #031942, #020d24);
}

/* Prominent Full-Width Power Meter Container */
.power-meter-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
}

.power-meter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.power-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-900, #06285f);
  display: flex;
  align-items: center;
  gap: 6px;
}

.power-label i {
  color: var(--gold-500, #c69a3a);
}

.power-percent-text {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-900, #06285f);
}

.power-bar-track {
  width: 100%;
  height: 20px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.power-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #c69a3a, #d97706);
  box-shadow: 0 0 10px rgba(198, 154, 58, 0.5);
  transition: width 40ms linear;
}

.game-btn-reset {
  width: 100%;
  justify-content: center;
  border-color: #cbd5e1;
  color: #475569;
  background: #f1f5f9;
}

.game-guide-box {
  margin-top: 20px;
  display: flex;
  gap: 14px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-left: 5px solid var(--navy-900, #06285f);
  border-radius: 8px;
  padding: 16px;
}

.guide-icon {
  color: var(--gold-500, #c69a3a);
  font-size: 1.4rem;
}

.guide-content h3 {
  margin: 0 0 4px;
  color: var(--navy-900, #06285f);
  font-size: 0.95rem;
  font-weight: 700;
}

.guide-content p {
  margin: 0;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Bottom Navigation Back Button */
.game-bottom-nav {
  margin-top: 24px;
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
}

.game-back-btn-bottom {
  min-height: 48px;
  padding: 0 28px;
  font-size: 0.95rem;
  font-weight: 700;
  border-color: var(--gold-400, #c69a3a);
  color: #ffffff;
  background: var(--navy-900, #06285f);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(6, 40, 95, 0.25);
  transition: all 200ms ease;
}

.game-back-btn-bottom:hover {
  background: var(--navy-950, #031942);
  border-color: var(--gold-500, #f59e0b);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(6, 40, 95, 0.4);
}

/* Custom Game Result Modal Popup (No System Alert) */
.game-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 25, 66, 0.88);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 1;
  transition: opacity 250ms ease;
}

.game-modal-backdrop.hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

.game-modal-card {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 2px solid var(--gold-500, #c69a3a);
  border-radius: 14px;
  width: 100%;
  max-width: 440px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  color: #ffffff;
  text-align: center;
  animation: modalPopIn 280ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-trophy-icon {
  font-size: 3.2rem;
  margin-bottom: 6px;
  line-height: 1;
}

.game-modal-header h2 {
  margin: 0 0 6px;
  color: #f1d99c;
  font-size: 1.35rem;
  font-weight: 800;
}

.game-modal-header p {
  margin: 0 0 16px;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.modal-score-box {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px;
}

.modal-score-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-score-label {
  font-size: 0.8rem;
  color: #94a3b8;
}

.modal-score-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.modal-score-vs {
  font-weight: 900;
  font-size: 1.1rem;
  color: #f59e0b;
}

.modal-detail-text {
  margin: 0 0 20px;
  font-size: 0.88rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 12px;
  border-radius: 6px;
}

.game-modal-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.game-modal-btn {
  width: 100%;
  justify-content: center;
  min-height: 48px;
  font-size: 1rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  border: 1px solid #60a5fa !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

.game-modal-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.game-modal-btn-secondary {
  width: 100%;
  justify-content: center;
  min-height: 46px;
  font-size: 0.95rem;
  font-weight: 700;
  background: rgba(30, 41, 59, 0.95) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.6) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 200ms ease;
}

.game-modal-btn-secondary:hover {
  background: rgba(245, 158, 11, 0.2) !important;
  border-color: #fbbf24 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .game-card {
    padding: 14px;
  }

  .game-class-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .game-class-tabs {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
  }

  .game-tab {
    flex: 1 0 auto;
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  /* Keep 1 horizontal row on Mobile as requested */
  .aim-controls-row {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .game-btn-aim {
    flex: 0 0 auto;
    min-height: 48px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .game-btn-throw {
    flex: 1 1 auto;
    min-height: 48px;
    padding: 0 6px;
    font-size: 0.8rem;
  }

  .game-scoreboard-bar {
    gap: 6px;
    margin-bottom: 12px;
  }

  .score-card-item {
    padding: 6px 6px;
  }

  .score-card-label {
    font-size: 0.68rem;
  }

  .score-card-value {
    font-size: 0.88rem;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
}

/* ==========================================================================
   TPDS About Us Page (about.html) Styles
   ========================================================================== */
.about-page-body {
  background: var(--slate-50, #f8fafc);
  color: var(--slate-800, #1e293b);
}

.about-hero {
  background: linear-gradient(135deg, #031942 0%, #06285f 100%);
  color: #ffffff;
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--gold-500, #c69a3a);
}

.about-hero-inner {
  position: relative;
  z-index: 2;
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(198, 154, 58, 0.15), transparent 50%);
  pointer-events: none;
}

.about-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.about-breadcrumb a {
  color: #f1d99c;
  text-decoration: none;
  transition: color 150ms ease;
}

.about-breadcrumb a:hover {
  color: #ffffff;
}

.about-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(198, 154, 58, 0.2);
  border: 1px solid var(--gold-400, #c69a3a);
  color: #f1d99c;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.about-hero h1 {
  font-size: 2.3rem;
  font-weight: 800;
  margin: 0 0 16px;
  color: #ffffff;
}

.about-hero-desc {
  font-size: 1.1rem;
  color: #e2e8f0;
  max-width: 720px;
  line-height: 1.6;
  margin: 0;
}

.about-overview-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.about-overview-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 10px 30px rgba(6, 40, 95, 0.06);
  border: 1px solid #e2e8f0;
}

.about-card-badge {
  display: inline-block;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.about-overview-card h2 {
  color: var(--navy-900, #06285f);
  font-size: 1.6rem;
  margin: 0 0 16px;
}

.about-overview-card p {
  color: #475569;
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.about-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1.5px dashed #e2e8f0;
}

.about-stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--navy-900, #06285f);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 6px;
}

.about-image-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(6, 40, 95, 0.14);
  border: 2px solid var(--navy-900, #06285f);
}

.about-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-image-overlay {
  position: absolute;
  bottom: 0;
  inset-x: 0;
  background: linear-gradient(0deg, rgba(6, 40, 95, 0.95) 0%, rgba(6, 40, 95, 0.4) 70%, transparent 100%);
  color: #ffffff;
  padding: 24px 20px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 700;
}

.about-image-overlay i {
  font-size: 1.6rem;
  color: var(--gold-400, #fbbf24);
  flex: 0 0 auto;
}

.mission-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;

  @media (max-width: 992px) {
    grid-template-columns: repeat(2, 1fr);
  }

  @media (max-width: 576px) {
    grid-template-columns: 1fr;
  }
}

.mission-card-item {
  background: #ffffff;
  border-radius: 14px;
  padding: 28px 24px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 6px 20px rgba(6, 40, 95, 0.04);
  transition: all 220ms ease;
}

.mission-card-item:hover {
  transform: translateY(-4px);
  border-color: var(--navy-900, #06285f);
  box-shadow: 0 12px 30px rgba(6, 40, 95, 0.1);
}

.mission-card-icon {
  width: 52px;
  height: 52px;
  background: #f0f9ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--navy-900, #06285f);
  margin-bottom: 18px;
}

.mission-card-item h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy-900, #06285f);
  margin: 0 0 10px;
}

.mission-card-item p {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;

  @media (max-width: 768px) {
    grid-template-columns: 1fr;
  }
}

.leader-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 30px 24px;
  text-align: center;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.leader-avatar {
  width: 72px;
  height: 72px;
  background: var(--navy-900, #06285f);
  color: var(--gold-400, #fbbf24);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
  box-shadow: 0 6px 16px rgba(6, 40, 95, 0.2);
}

.leader-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy-900, #06285f);
  margin: 0 0 4px;
}

.leader-role {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-500, #c69a3a);
  margin: 0 0 12px;
}

.leader-desc {
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

.about-cta-card {
  background: linear-gradient(135deg, #06285f, #031942);
  border-radius: 18px;
  padding: 44px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border: 2px solid var(--gold-400, #c69a3a);
  box-shadow: 0 16px 40px rgba(6, 40, 95, 0.2);

  @media (max-width: 992px) {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
}

.cta-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
}

.cta-content p {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin: 0;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;

  @media (max-width: 992px) {
    justify-content: center;
    width: 100%;
  }
}
