:root {
  color-scheme: light;
  --navy: #091d36;
  --navy-soft: #173b62;
  --denim: #2e628f;
  --red: #c83b4d;
  --red-dark: #9f2637;
  --gold: #e9b949;
  --paper: #f2f5f8;
  --white: #ffffff;
  --ink: #142033;
  --muted: #5c6675;
  --line: #d7e0e8;
  --green: #246b55;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: var(--denim);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--red-dark);
}

.skip_link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--white);
  color: var(--navy);
  border-radius: 6px;
}

.skip_link:focus {
  top: 12px;
}

.site_header {
  background: var(--navy);
  color: var(--white);
  border-bottom: 4px solid var(--red);
}

.topbar,
.hero_inner,
.page,
.footer_inner {
  width: min(100% - 40px, 1040px);
  margin-inline: auto;
}

.topbar {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--white);
  text-decoration: none;
}

.brand img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 8px;
}

.brand_name {
  display: block;
  max-width: 250px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.brand_tagline {
  display: block;
  margin-top: 4px;
  color: #b8c7d6;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  color: #dbe5ee;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--gold);
}

.hero {
  background: var(--navy-soft);
  color: var(--white);
  border-bottom: 1px solid #345a7d;
}

.hero_inner {
  min-height: 235px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: center;
  gap: 56px;
  padding-block: 44px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 850;
}

.hero_summary {
  max-width: 720px;
  margin: 14px 0 0;
  color: #dbe5ee;
  font-size: 18px;
  line-height: 1.55;
}

.hero_badge {
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #0d2947;
  border: 1px solid #49647c;
  border-radius: 8px;
  color: var(--white);
  text-align: center;
}

.hero_badge strong {
  display: block;
  color: var(--gold);
  font-size: 44px;
  line-height: 1;
}

.hero_badge span {
  display: block;
  margin-top: 10px;
  color: #b8c7d6;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.page {
  padding-block: 42px 68px;
}

.meta_line {
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 14px;
}

.fact_grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 42px;
}

.fact {
  min-height: 150px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--denim);
  border-radius: 8px;
}

.fact:nth-child(2) {
  border-top-color: var(--red);
}

.fact:nth-child(3) {
  border-top-color: var(--gold);
}

.fact_label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.fact strong {
  display: block;
  font-size: 18px;
  line-height: 1.35;
}

.fact p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.section {
  padding-block: 30px;
  border-top: 1px solid var(--line);
}

.section:first-of-type {
  border-top: 0;
}

.section h2 {
  margin: 0 0 14px;
  color: var(--navy-soft);
  font-size: 25px;
}

.section h3 {
  margin: 26px 0 8px;
  font-size: 18px;
}

.section p {
  max-width: 820px;
  margin: 0 0 14px;
}

.section ul,
.section ol {
  max-width: 820px;
  margin: 12px 0 0;
  padding-left: 24px;
}

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

.callout {
  margin: 22px 0;
  padding: 18px 20px;
  background: #e9f1f7;
  border-left: 4px solid var(--denim);
  border-radius: 0 7px 7px 0;
}

.callout.privacy {
  background: #e8f3ee;
  border-left-color: var(--green);
}

.callout.warning {
  background: #fff4e0;
  border-left-color: var(--gold);
}

.callout p:last-child {
  margin-bottom: 0;
}

.support_contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  margin-bottom: 42px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 8px;
}

.support_contact .eyebrow {
  color: var(--red-dark);
}

.support_contact h2 {
  margin: 0 0 10px;
  color: var(--navy-soft);
  font-size: 25px;
}

.support_contact p:last-child {
  max-width: 670px;
  margin: 0;
}

.support_actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.support_button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: var(--red);
  border: 2px solid var(--red);
  border-radius: 7px;
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.support_button:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
}

.support_button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.support_email {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.table_wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 14px;
}

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

th {
  background: #e7edf3;
  color: var(--navy);
  font-size: 12px;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.pair_list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
  margin: 18px 0;
}

.pair {
  padding: 13px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--red-dark);
  font-weight: 800;
  text-align: center;
}

.suit_rule {
  display: flex;
  width: 150px;
  height: 4px;
  margin: 18px 0 0;
}

.suit_rule span {
  flex: 1;
}

.suit_rule span:nth-child(1) {
  background: var(--red);
}

.suit_rule span:nth-child(2) {
  background: var(--white);
}

.suit_rule span:nth-child(3) {
  background: var(--denim);
}

.site_footer {
  background: var(--navy);
  color: #b8c7d6;
  border-top: 4px solid var(--gold);
}

.footer_inner {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px;
}

.footer_inner p {
  margin: 0;
  font-size: 13px;
}

.footer_links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.footer_links a {
  color: #dbe5ee;
  font-size: 13px;
}

@media (max-width: 780px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-block: 16px 10px;
  }

  .nav {
    width: 100%;
  }

  .hero_inner {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 36px;
  }

  .hero_badge {
    min-height: 0;
    display: block;
    text-align: left;
  }

  .hero_badge strong,
  .hero_badge span {
    display: inline;
    font-size: 16px;
  }

  .hero_badge span {
    margin-left: 8px;
  }

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

  .fact {
    min-height: 0;
  }

  .support_contact {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .support_actions {
    align-items: flex-start;
  }

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

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

  .footer_links {
    justify-content: flex-start;
  }
}

@media (max-width: 440px) {
  .topbar,
  .hero_inner,
  .page,
  .footer_inner {
    width: min(100% - 28px, 1040px);
  }

  h1 {
    font-size: 32px;
  }

  .hero_summary {
    font-size: 16px;
  }

  .page {
    padding-block: 32px 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Match the blue table, red actions, and gold accents used in the game. */
.hero {
  background:
    repeating-linear-gradient(120deg, transparent 0 76px, rgb(200 59 77 / 8%) 76px 108px, transparent 108px 184px),
    linear-gradient(135deg, var(--navy), var(--navy-soft) 58%, var(--denim));
}

.hero_badge {
  background: rgb(9 29 54 / 72%);
  border-color: rgb(233 185 73 / 48%);
  box-shadow: 0 12px 30px rgb(6 21 40 / 18%);
}

.fact,
.support_contact {
  box-shadow: 0 5px 18px rgb(9 29 54 / 4%);
}

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

.brand:hover {
  color: var(--white);
}

.topbar > *,
.hero_inner > *,
.support_contact > * {
  min-width: 0;
}

p,
li,
td {
  overflow-wrap: anywhere;
}

tr:last-child th {
  border-bottom: 0;
}

@media print {
  .site_header,
  .hero_badge,
  .skip_link,
  .site_footer {
    display: none;
  }

  .hero {
    background: white;
    color: #142033;
  }

  .hero_summary,
  .eyebrow {
    color: #142033;
  }

  .hero_inner {
    display: block;
    padding-block: 20px;
  }

  .fact,
  .callout,
  tr {
    break-inside: avoid;
  }
}
