/* The game's own palette and type (client/Core/UiKit.gd). */
@font-face {
  font-family: "Rubik";
  src: url("fonts/Rubik.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rubik";
  src: url("fonts/Rubik-Italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink-950: #08191c;
  --ink-900: #0d2326;
  --ink-800: #143236;
  --ink-700: #1c4146;
  --ink-600: #285257;
  --hairline: rgba(255, 255, 255, 0.09);
  --cream: #fff5de;
  --cream-deep: #eadfc3;
  --muted: #a6bcb5;
  --gold: #ffc845;
  --gold-lip: #c58712;
  --gold-ink: #2b1c00;
  --ball-you: #ffd43b;
  --ball-caddy: #29d3ff;
  --coral: #ff6a5c;
  --radius: 16px;
  --gutter: clamp(20px, 5vw, 48px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--cream);
  font: 400 17px/1.6 "Rubik", system-ui, sans-serif;
}

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

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--gold-ink);
  border-radius: 12px;
}

.unfilled {
  margin: 0;
  padding: 10px var(--gutter);
  background: var(--coral);
  color: var(--ink-950);
  font-weight: 700;
  font-size: 15px;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  color: var(--cream);
  text-decoration: none;
  font-weight: 900;
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0.03em;
}

.brand svg {
  width: 46px;
  height: 34px;
}

.top nav {
  display: flex;
  gap: 4px;
}

.top nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}

.top nav a[aria-current] {
  background: var(--ink-800);
  color: var(--cream);
}

.top nav a:hover {
  color: var(--cream);
}

/* Hero */
.hero {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero-card {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 24px;
  background: var(--ink-800);
}

.hero-card img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: 50% 55%;
}

.hero-text {
  padding: 26px 24px 30px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--cream);
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  font-weight: 800;
  font-size: clamp(32px, 6vw, 46px);
}

.lede {
  margin: 12px 0 0;
  max-width: 46ch;
  color: var(--cream-deep);
}

/* The game's button: flat fill with a pressed lip. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin-top: 22px;
  padding: 0 26px;
  border-radius: var(--radius);
  background: var(--gold);
  box-shadow: 0 6px 0 var(--gold-lip);
  color: var(--gold-ink);
  font-weight: 800;
  text-decoration: none;
}

.btn:hover {
  filter: brightness(1.04);
}

.btn:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 var(--gold-lip);
}

/* Topics */
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter) 72px;
}

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

.topics a {
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 60px;
  padding: 12px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--ink-800);
  color: var(--cream);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
  text-decoration: none;
}

.topics a:hover {
  background: var(--ink-700);
}

/* Questions and policy text */
.block {
  padding-top: 52px;
}

.block > h2 {
  font-weight: 800;
  font-size: clamp(24px, 4vw, 30px);
}

.qa {
  margin-top: 12px;
}

.qa > div {
  padding: 20px 0;
}

.qa > div + div {
  border-top: 1px solid var(--hairline);
}

.panel {
  margin-top: 20px;
  padding: 20px 22px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--ink-800);
}

h3 {
  font-weight: 700;
  font-size: 19px;
}

.qa p,
.panel p {
  margin: 8px 0 0;
  max-width: 68ch;
  color: var(--cream-deep);
}

.panel > :first-child,
.prose > :first-child {
  margin-top: 0;
}

.key {
  color: var(--cream);
  font-weight: 700;
}

.contact-line {
  font-size: 20px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.qa ul,
.panel ul,
.prose ul,
.qa ol,
.prose ol {
  margin: 8px 0 0;
  padding-left: 22px;
  max-width: 68ch;
  color: var(--cream-deep);
}

.qa li + li,
.panel li + li,
.prose li + li {
  margin-top: 6px;
}

.small {
  font-weight: 800;
  font-size: 20px;
}

/* Privacy page */
.doc {
  max-width: 820px;
}

.doc .intro {
  padding-top: 26px;
}

.updated {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.prose p {
  margin: 12px 0 0;
  color: var(--cream-deep);
}

.prose strong {
  color: var(--cream);
}

.table-wrap {
  margin-top: 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-800);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.45;
}

th,
td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--ink-950);
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

tbody tr + tr > * {
  border-top: 1px solid var(--hairline);
}

tbody th {
  width: 40%;
  color: var(--cream);
  font-weight: 600;
}

td {
  color: var(--cream-deep);
}

/* Footer */
footer {
  border-top: 1px solid var(--hairline);
  background: var(--ink-950);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px var(--gutter) 28px;
  color: var(--muted);
  font-size: 15px;
}

.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--cream-deep);
}

@media (min-width: 760px) {
  .hero-card {
    grid-template-columns: 1fr 1.05fr;
  }

  .hero-card img {
    order: 2;
    height: 100%;
    min-height: 340px;
  }

  .hero-text {
    align-self: center;
    padding: 44px;
  }

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

}

@media (min-width: 900px) {
  /* Section name on the left, its answers on the right. */
  main:not(.doc) > .block {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 32px;
    padding-top: 56px;
  }

  main:not(.doc) > .block > h2 {
    position: sticky;
    top: 24px;
    align-self: start;
  }

  main:not(.doc) .qa {
    margin-top: 0;
  }

  main:not(.doc) .qa > div:first-child {
    padding-top: 4px;
  }

  main:not(.doc) .panel {
    margin-top: 0;
  }

  .qa p,
  .panel p {
    max-width: 62ch;
  }
}

@media (max-width: 640px) {
  /* Each row of the table becomes its own short list. */
  thead {
    position: absolute;
    clip-path: inset(50%);
  }

  tbody th,
  tbody td {
    display: block;
    width: 100%;
    padding: 0 18px;
  }

  tbody th {
    padding-top: 16px;
  }

  tbody td {
    padding-top: 6px;
  }

  tbody td:last-child {
    padding-bottom: 16px;
  }

  tbody td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
  }

  tbody tr + tr > * {
    border-top: 0;
  }

  tbody tr + tr {
    border-top: 1px solid var(--hairline);
  }

  .top nav a {
    padding: 0 10px;
  }

  .brand {
    font-size: 19px;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
.contact-line a{font-size:clamp(15px,4.3vw,20px);white-space:nowrap}
