:root {
  --sand: #efe4c8;
  --sand-deep: #e2d2a8;
  --ink: #1b1a17;
  --ink-soft: #3a372f;
  --muted: #5c574c;
  --paper: #fff8ea;
  --navy: #1f4b73;
  --navy-ink: #f4ead2;
  --red: #b42318;
  --red-ink: #fff6ee;
  --mustard: #d4a017;
  --line: #1b1a17;
  --font-display: "Arial Black", "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  --font-body: "Palatino Linotype", Palatino, "Book Antiqua", serif;
  --header-h: 64px;
  --max: 1120px;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--sand);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a {
  color: var(--navy);
}

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

h1,
h2,
h3,
.brand-name,
.stall-score,
.stall-go span,
.kicker {
  font-family: var(--font-display);
  letter-spacing: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
  margin: 0 0 0.45em;
  color: var(--ink);
}

h1 {
  font-size: clamp(1.65rem, 3.6vw, 2.4rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(1.28rem, 2.6vw, 1.7rem);
  font-weight: 800;
}

h3 {
  font-size: 1.08rem;
  font-weight: 800;
}

p {
  margin: 0 0 1em;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  color: var(--navy-ink);
}

.site-header::after {
  content: "";
  display: block;
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    #b42318 0 14px,
    #fff8ea 14px 28px,
    #1f4b73 28px 42px,
    #d4a017 42px 56px
  );
}

.header-inner {
  height: var(--header-h);
  width: min(100% - 24px, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  flex: 1;
}

.brand-text {
  min-width: 0;
  overflow: hidden;
}

.brand img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 2px solid #f4ead2;
  background: #132c46;
  border-radius: 50%;
}

.brand-name {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-tag {
  display: block;
  margin-top: 3px;
  color: #d9c89a;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-height: 40px;
  min-width: 40px;
  padding: 0 10px;
  border: 2px solid #f4ead2;
  background: #163656;
  color: #f4ead2;
  font-family: var(--font-display);
  font-size: 0.88rem;
  cursor: pointer;
  border-radius: 999px;
}

.nav-toggle-bars {
  display: block;
  width: 16px;
  height: 2px;
  background: #f4ead2;
  box-shadow: 0 5px 0 #f4ead2, 0 10px 0 #f4ead2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  color: #f4ead2;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 999px;
}

.site-nav a[aria-current="page"] {
  background: var(--red);
  color: #fff6ee;
}

.site-nav a:hover {
  background: #163656;
  color: #fff;
}

.hero {
  padding: 22px 0 8px;
}

.kicker {
  margin: 0 0 6px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 64ch;
  margin-bottom: 18px;
  color: var(--ink-soft);
}

.age-note {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 12px;
  border: 2px solid var(--line);
  background: var(--paper);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
}

.stall-wall {
  display: grid;
  gap: 16px;
  padding-bottom: 12px;
}

.game-card {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  grid-template-areas:
    "mark copy"
    "go go";
  gap: 10px 12px;
  padding: 18px 14px 14px;
  border: 3px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  user-select: none;
  border-radius: var(--radius);
}

.game-card:nth-child(odd) {
  background: #fffdf6;
}

.game-card:nth-child(even) {
  background: #f7ecd2;
}

.hidlink {
  position: absolute;
  z-index: -5;
  opacity: 0;
}

.game-card:active {
  transform: translate(1px, 1px);
}

.stall-num {
  position: absolute;
  top: -11px;
  left: 10px;
  z-index: 1;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  background: var(--mustard);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 900;
  border-radius: 50%;
}

.stall-mark {
  grid-area: mark;
  width: 84px;
  height: 84px;
  overflow: hidden;
  border: 2px solid var(--line);
  background: #111;
  border-radius: var(--radius);
}

.stall-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stall-copy {
  grid-area: copy;
  min-width: 0;
}

.stall-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.15;
}

.stall-score {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 800;
}

.stars {
  color: #a67c0a;
  letter-spacing: -1px;
}

.stall-flag {
  padding: 2px 8px;
  border: 2px solid var(--line);
  background: var(--mustard);
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 999px;
}

.stall-copy p:last-child {
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stall-go {
  grid-area: go;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 2px solid var(--line);
  background: var(--red);
  color: var(--red-ink);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 999px;
}

.band {
  padding: 32px 0 10px;
}

.band h2 {
  margin-bottom: 10px;
}

.pair {
  display: grid;
  gap: 18px;
  align-items: center;
}

.pair-media {
  border: 3px solid var(--line);
  background: #d9c89a;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pair-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.pair-copy p {
  color: var(--ink-soft);
}

.pair.is-flip .pair-media {
  order: 0;
}

.handbill {
  display: grid;
  gap: 16px;
}

.handbill article {
  padding: 16px 16px 14px;
  border: 3px solid var(--line);
  border-top-width: 10px;
  border-top-color: var(--navy);
  background: var(--paper);
  border-radius: var(--radius);
}

.ask {
  display: grid;
  gap: 8px;
}

.ask details {
  padding: 12px 14px;
  border: 2px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius-sm);
}

.ask summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.ask details p {
  margin-top: 8px;
  color: var(--ink-soft);
}

.notices {
  display: grid;
  gap: 12px;
  padding: 8px 0 28px;
}

.notices article {
  padding: 16px 16px 14px;
  border: 3px solid var(--ink);
  background: var(--paper);
  border-radius: var(--radius);
}

.inner {
  padding: 24px 0 42px;
}

.inner .lead {
  max-width: 64ch;
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.prose {
  max-width: 70ch;
}

.prose h2 {
  margin-top: 1.35em;
}

.prose ul {
  padding-left: 1.15em;
}

.contact-grid {
  display: grid;
  gap: 22px;
}

.contact-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 3px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
}

.contact-form label {
  display: grid;
  gap: 5px;
  font-weight: 700;
  font-size: 0.88rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  border-radius: var(--radius-sm);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid var(--mustard);
  outline-offset: 1px;
}

.send-button,
.button,
a.send-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 2px solid var(--line);
  background: var(--red);
  color: var(--red-ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  border-radius: 999px;
}

.send-button:hover,
.button:hover {
  background: #8e1a12;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.contact-aside address {
  font-style: normal;
}

.site-foot {
  margin-top: 8px;
  background: #141311;
  color: #e8dcc0;
}

.foot-shell {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 28px 0 20px;
}

.foot-grid {
  display: grid;
  gap: 24px;
}

.site-foot a {
  color: #e2b93d;
}

.site-foot a:hover {
  color: #fff8ea;
}

.site-foot .site-nav {
  flex-wrap: wrap;
  margin-top: 10px;
}

.site-foot .site-nav a {
  color: #e2b93d;
}

.site-foot .brand-name,
.site-foot .brand-tag {
  color: #e8dcc0;
}

.foot-contact h2 {
  margin: 0 0 8px;
  color: #fff8ea;
  font-size: 1.2rem;
}

.foot-contact p {
  margin: 0 0 8px;
}

.rg-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 8px;
}

.rg-row a {
  display: inline-flex;
  align-items: center;
  background: transparent;
  padding: 0;
  border: 0;
}

.rg-row img {
  height: 32px;
  width: auto;
  max-width: min(220px, 100%);
  object-fit: contain;
}

.rg-row a[href*="gamcare"] img {
  height: 34px;
  max-width: 168px;
}

.rg-row a[href*="begambleaware"] img {
  height: 30px;
  max-width: 220px;
}

.rg-row img[alt="18 plus"] {
  height: 40px;
  max-width: 40px;
}

.foot-disclaimer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #3a372f;
  color: #d7ccb4;
  font-size: 0.9rem;
}

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 14px;
  font-size: 0.88rem;
}

.foot-copy {
  margin: 12px 0 0;
  color: #9d937c;
  font-size: 0.8rem;
}

.cookie-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-top: 3px solid var(--line);
  background: #1f4b73;
  color: #f4ead2;
  border-radius: var(--radius) var(--radius) 0 0;
}

.cookie-bar a {
  color: #e2b93d;
}

.cookie-bar .button {
  background: var(--mustard);
  color: var(--ink);
}

.cookie-bar[hidden] {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 19, 17, 0.7);
}

.modal-backdrop[hidden] {
  display: none;
}

.thank-you {
  position: relative;
  width: min(100%, 420px);
  padding: 28px 22px 22px;
  border: 3px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius-lg);
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 2px solid var(--line);
  background: var(--sand);
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 50%;
}

.lost-page {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 16px;
}

.omit-grid {
  display: grid;
  gap: 14px;
}

.omit-grid article {
  padding: 18px 16px 16px;
  border: 3px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
}

.omit-grid h3 {
  margin-bottom: 8px;
}

.omit-grid p {
  color: var(--ink-soft);
}

.desk-panel {
  display: grid;
  gap: 18px;
  padding: 22px 20px 20px;
  border: 3px solid var(--line);
  background: var(--navy);
  color: var(--navy-ink);
  border-radius: var(--radius-lg);
}

.desk-panel h2 {
  color: #fff8ea;
  margin-bottom: 8px;
}

.desk-panel p,
.desk-panel address {
  color: #e8dcc0;
  font-style: normal;
}

.desk-panel a {
  color: #e2b93d;
}

.desk-hours {
  padding: 16px 16px 14px;
  border: 2px solid #f4ead2;
  background: #163656;
  border-radius: var(--radius);
}

.desk-hours h3 {
  color: #fff8ea;
  margin-bottom: 8px;
}

@media (min-width: 760px) {
  .stall-wall {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .game-card {
    grid-template-columns: 96px minmax(0, 1fr);
    padding: 22px 16px 16px;
  }

  .stall-mark {
    width: 96px;
    height: 96px;
  }

  .pair,
  .handbill,
  .foot-grid,
  .desk-panel {
    grid-template-columns: 1fr 1fr;
  }

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

  .pair.is-flip .pair-media {
    order: 2;
  }

  .contact-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

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

@media (min-width: 1080px) {
  .stall-wall {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 759px) {
  :root {
    --header-h: 56px;
  }

  .wrap {
    width: min(100% - 20px, var(--max));
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-toggle {
    font-size: 0;
    gap: 0;
    padding: 0 11px;
  }

  .site-header {
    position: sticky;
  }

  .site-header .brand-tag {
    display: none;
  }

  .site-header .brand img {
    width: 32px;
    height: 32px;
  }

  .site-header .brand-name {
    font-size: 0.84rem;
  }

  .site-header .site-nav {
    display: none;
    position: absolute;
    top: calc(var(--header-h) + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 16px 14px;
    background: #163656;
    border-bottom: 2px solid #f4ead2;
  }

  .site-header .site-nav.is-open {
    display: flex;
  }

  .site-header .site-nav a {
    min-height: 44px;
    justify-content: flex-start;
    font-size: 0.95rem;
  }

  .hero {
    padding: 14px 0 8px;
  }

  .kicker {
    font-size: 0.68rem;
    margin-bottom: 4px;
  }

  h1,
  .hero h1 {
    font-size: 1.38rem;
  }

  .hero-lead {
    font-size: 0.92rem;
    margin-bottom: 12px;
  }

  .age-note {
    font-size: 0.72rem;
    margin-bottom: 12px;
  }

  .stall-wall {
    gap: 14px;
  }

  .game-card {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 8px 10px;
    padding: 16px 10px 10px;
  }

  .stall-num {
    width: 24px;
    height: 24px;
    top: -9px;
    left: 8px;
    font-size: 0.78rem;
  }

  .stall-mark {
    width: 68px;
    height: 68px;
  }

  .stall-title {
    font-size: 0.82rem;
  }

  .stall-score {
    font-size: 0.82rem;
  }

  .stall-copy p:last-child {
    font-size: 0.76rem;
    -webkit-line-clamp: 2;
  }

  .stall-go {
    min-height: 44px;
    font-size: 0.82rem;
  }

  .band {
    padding: 22px 0 8px;
  }

  .cookie-bar {
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    font-size: 0.82rem;
  }

  .cookie-bar .button {
    min-height: 40px;
    width: 100%;
  }

  .foot-shell {
    width: min(100% - 20px, var(--max));
    padding: 22px 0 18px;
  }

  .contact-form,
  .thank-you {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .site-header .brand-name {
    font-size: 0.78rem;
  }

  .game-card {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .stall-mark {
    width: 56px;
    height: 56px;
  }
}

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

  .game-card:active {
    transform: none;
  }
}
