:root {
  --ice: #dceef4;
  --snow: #f7fbff;
  --ink: #1b2430;
  --ink-soft: #3d4a58;
  --muted: #5c6976;
  --maple: #c41e3a;
  --maple-deep: #8e1428;
  --pine: #1c5c45;
  --gold: #d9a017;
  --sky: #2f7ea8;
  --slot: #fffdf8;
  --line: #1b2430;
  --font-display: "Avenir Next Condensed", "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  --font-body: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --max: 980px;
  --head: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--ice);
  background-image:
    repeating-linear-gradient(
      -18deg,
      transparent 0 18px,
      rgba(47, 126, 168, 0.07) 18px 19px
    );
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

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

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

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

h1,
h2,
h3,
.brand-name,
.post-score,
.slot-go span {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

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

h1 {
  font-size: clamp(1.85rem, 4.4vw, 2.7rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
}

h3 {
  font-size: 1.12rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

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

.skip-link {
  position: absolute;
  left: 14px;
  top: -44px;
  z-index: 80;
  padding: 8px 12px;
  background: var(--maple);
  color: #fff;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--maple);
  border-bottom: 6px solid var(--gold);
}

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

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

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #fff8ea;
  background: #8ec8e0;
}

.brand-name {
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1;
  color: #fff8ea;
}

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

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 2px solid #fff8ea;
  background: var(--maple-deep);
  color: #fff8ea;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

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

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

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: #fff8ea;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

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

.site-nav a:hover {
  color: var(--gold);
}

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

.rack-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding: 18px 18px 16px;
  background: var(--snow);
  border: 2px solid var(--line);
  border-left: 14px solid var(--maple);
}

.rack-kicker {
  margin: 0;
  color: var(--maple);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.rack-lead {
  max-width: 64ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.mail-list {
  display: grid;
  gap: 14px;
}

.game-card {
  position: relative;
  display: grid;
  grid-template-columns: 52px 72px minmax(0, 1fr);
  grid-template-areas:
    "mark icon copy"
    "go go go";
  column-gap: 12px;
  row-gap: 10px;
  align-items: center;
  padding: 12px 12px 12px 0;
  background: var(--slot);
  border: 2px solid var(--line);
  border-radius: 0 18px 18px 0;
  cursor: pointer;
  user-select: none;
}

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

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

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

.game-card:active {
  transform: translateY(2px);
}

.post-mark {
  grid-area: mark;
  align-self: stretch;
  display: grid;
  place-items: center;
  margin: -12px 0 -12px;
  background: var(--pine);
  color: #f4efe2;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  border-right: 2px dashed rgba(27, 36, 48, 0.28);
}

.game-card:nth-child(2) .post-mark { background: var(--sky); }
.game-card:nth-child(3) .post-mark { background: var(--maple); }
.game-card:nth-child(4) .post-mark { background: #b45309; }
.game-card:nth-child(5) .post-mark { background: #5b4db0; }
.game-card:nth-child(6) .post-mark { background: #0f766e; }

.post-icon {
  grid-area: icon;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 50%;
  border: 3px solid var(--line);
  background: #fff;
}

.post-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.post-title {
  margin: 0 0 3px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.15;
}

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

.stars {
  color: var(--gold);
  letter-spacing: -1px;
}

.editor-flag {
  padding: 1px 7px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.post-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slot-go {
  grid-area: go;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-left: 12px;
  border: 2px solid var(--line);
  background: var(--maple);
  color: #fff8ea;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 8px 100%, 0 50%);
}

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

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

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

.gazette {
  padding: 40px 0 36px;
  background: #f4efe4;
  border-top: 1px solid rgba(27, 36, 48, 0.18);
}

.gazette-alt {
  background: #e8f0e9;
}

.gazette-kicker {
  margin: 0 0 6px;
  color: var(--maple);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gazette-intro {
  max-width: 62ch;
  margin-bottom: 18px;
  color: var(--ink-soft);
}

.gazette-cols {
  columns: 1;
  column-gap: 36px;
}

.gazette-cols p {
  break-inside: avoid;
}

.fact-rail {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
  border-top: 3px double var(--line);
}

.fact-rail > div {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(27, 36, 48, 0.2);
}

.fact-rail dt {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
}

.fact-rail dd {
  margin: 0;
  color: var(--ink-soft);
}

.film {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.film img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 4px solid var(--maple);
}

.film h3 {
  margin: 10px 0 6px;
}

.film p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.rule-bar {
  margin: 0;
  padding: 18px 0 4px 22px;
  border: none;
  border-left: 10px solid var(--gold);
  color: var(--ink-soft);
}

.plain-faq {
  width: 100%;
  border-collapse: collapse;
}

.plain-faq th,
.plain-faq td {
  padding: 14px 0;
  border-bottom: 1px solid rgba(27, 36, 48, 0.22);
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}

.plain-faq th {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  padding-right: 18px;
}

.plain-faq td {
  color: var(--ink-soft);
}

.legal-run {
  margin: 0;
}

.legal-run > div {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px dashed rgba(27, 36, 48, 0.35);
}

.legal-run dt {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--maple);
}

.legal-run dd {
  margin: 0;
  color: var(--ink-soft);
}

.check-line {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--line);
}

.check-line li {
  padding: 14px 0 14px 0;
  border-bottom: 1px solid rgba(27, 36, 48, 0.2);
  color: var(--ink-soft);
}

.check-line strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.02rem;
}

.about-sheet {
  padding: 0 0 48px;
  background: #f4efe4;
}

.about-mast {
  display: grid;
  gap: 22px;
  padding: 28px 0 8px;
}

.about-mast .lead {
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.desk-stamp {
  padding: 14px 16px;
  background: var(--snow);
  border: 1px solid var(--line);
  box-shadow: 8px 8px 0 var(--maple);
  font-size: 0.92rem;
}

.desk-stamp p {
  margin: 0 0 4px;
}

.file-stack {
  margin-top: 28px;
  display: grid;
  gap: 0;
}

.file {
  padding: 22px 0;
  border-top: 3px solid var(--line);
}

.file h2 {
  margin: 0 0 10px;
}

.file p {
  color: var(--ink-soft);
  max-width: 68ch;
}

.about-close {
  margin: 8px 0 0;
  padding-top: 18px;
  border-top: 3px double var(--line);
  max-width: 68ch;
  color: var(--ink-soft);
}

.chip {
  padding: 16px 16px 14px;
  background: var(--snow);
  border: 2px solid var(--line);
}

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

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

.ask summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 800;
}

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

.inner-page {
  padding: 26px 0 42px;
}

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

.prose {
  max-width: 70ch;
}

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

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

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

.contact-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: var(--snow);
  border: 2px solid var(--line);
}

.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;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid var(--gold);
  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(--maple);
  color: #fff8ea;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.send-button:hover,
.button:hover {
  background: var(--maple-deep);
}

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

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

.site-footer {
  margin-top: 8px;
  background: #14202c;
  color: #e6edf3;
  border-top: 8px solid var(--gold);
}

.footer-shell {
  width: min(100% - 28px, var(--max));
  margin: 0 auto;
  padding: 30px 0 22px;
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.site-footer a {
  color: #f2c94c;
}

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

.site-footer .brand-name,
.site-footer .brand-tag {
  color: #e6edf3;
}

.site-footer .site-nav {
  flex-wrap: wrap;
  margin-top: 12px;
}

.site-footer .site-nav a {
  color: #f2c94c;
  border-bottom: none;
  padding: 0 10px 0 0;
}

.footer-contact h2 {
  margin: 0 0 10px;
  color: #fff8ea;
  font-size: 1.35rem;
}

.footer-contact p {
  margin: 0 0 8px;
  color: #dce6ee;
}

.rg-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 14px;
}

.rg-row img {
  height: 40px;
  width: auto;
  max-width: 180px;
  background: #ffffff;
  padding: 6px 10px;
  border-radius: 6px;
}

.rg-row a[href*="gamcare"] img {
  height: 44px;
}

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

.rg-row .age-badge {
  height: 48px;
  width: 48px;
  max-width: 48px;
  padding: 0;
  background: transparent;
  border-radius: 50%;
}

.footer-disclaimer {
  margin-top: 22px;
  padding: 16px 18px;
  background: #0d1620;
  color: #dce6ee;
}

.footer-disclaimer p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

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

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

.cookie-bar {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  background: var(--snow);
}

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

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

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

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

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

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

@media (min-width: 820px) {
  .game-card {
    grid-template-columns: 58px 84px minmax(0, 1fr) 168px;
    grid-template-areas: "mark icon copy go";
    padding: 10px 10px 10px 0;
    row-gap: 0;
  }

  .post-mark {
    margin: -10px 0;
    font-size: 1.5rem;
  }

  .post-icon {
    width: 84px;
    height: 84px;
  }

  .slot-go {
    margin-left: 0;
    min-height: 84px;
    clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
  }

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

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

  .gazette-cols {
    columns: 2;
  }

  .fact-rail {
    grid-template-columns: 1fr 1fr;
    gap: 0 36px;
  }

  .film {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
  }

  .plain-faq th {
    width: 34%;
  }

  .about-mast {
    grid-template-columns: minmax(0, 1fr) 240px;
    align-items: start;
    gap: 40px;
    padding-top: 36px;
  }

  .file-stack {
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
  }
}

@media (max-width: 819px) {
  .nav-toggle {
    display: inline-flex;
  }

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

  .site-header .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 16px 14px;
    background: var(--maple-deep);
    border-bottom: 6px solid var(--gold);
  }

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

  .site-header .site-nav a {
    min-height: 42px;
    justify-content: flex-start;
  }

  .rack-lead {
    font-size: 0.95rem;
  }

  .post-title {
    font-size: 0.92rem;
  }

  .plain-faq,
  .plain-faq tbody,
  .plain-faq tr,
  .plain-faq th,
  .plain-faq td {
    display: block;
    width: 100%;
  }

  .plain-faq th {
    padding-bottom: 4px;
    border-bottom: 0;
  }

  .plain-faq td {
    padding-top: 0;
  }

  .gazette {
    padding: 28px 0 24px;
  }
}

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

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