:root {
  --bg: #0E0E0F;
  --hero: #141416;
  --card: #17171A;
  --line: #2A2A2C;
  --gold: #C9A24A;
  --gold-hover: #E3C27A;
  --text: #E8E3D8;
  --label: #A8A29A;
  --dot: #55524C;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--gold); }
a:hover, a:focus-visible { color: var(--gold-hover); }

h1, h2, h3 { color: var(--gold); line-height: 1.25; }
h1 { font-size: 2.4rem; margin: 0; }
h2 { font-size: 1.5rem; margin: 2rem 0 .6rem; }
h3 { font-size: 1.15rem; margin: 0 0 .5rem; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.text { max-width: 800px; margin: 0 auto; }

/* Short gold line under each page title */
.rule { width: 72px; height: 3px; background: var(--gold); border: 0; margin: 14px 0 24px; }

.label {
  display: block;
  color: var(--label);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 4px;
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: block; line-height: 0; }
.brand img { height: 68px; width: auto; }
.site-header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
}
.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-header nav a:hover { color: var(--gold-hover); }
.site-header nav a[aria-current="page"] {
  font-weight: 700;
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Home */
/* The hero is the table for the opening break (hero/hero.js): 2:1 like the
   game's. The logo waits; if the script never takes over (.hero-break), it
   simply appears on black after a moment. */
.hero {
  position: relative;
  box-sizing: content-box;
  aspect-ratio: 2 / 1;
  background: var(--hero);
  border-bottom: 1px solid var(--line);
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero img {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 56%;
  width: auto;
  transform: translate(-50%, -50%);
  animation: hero-logo-late 0s 2s both;
}
@keyframes hero-logo-late { from { opacity: 0; } }
.hero.hero-break img { animation: none; opacity: 0; }
.hero.hero-break.done img { opacity: 1; transition: opacity .9s ease; }
@media (prefers-reduced-motion: reduce) {
  .hero.hero-break.done img { transition: none; }
}

.intro {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 48px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 56px;
}
.intro p { margin: 0; font-size: 1.1rem; text-align: justify; }

.slideshow { margin: 0; }
.slides {
  position: relative;
  aspect-ratio: 1280 / 589;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .55);
}
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .6s ease;
}
.slide.active { opacity: 1; }
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1C1C1F;
  color: var(--label);
  text-align: center;
  padding: 16px;
}
.dots { display: flex; justify-content: center; gap: 2px; margin-top: 6px; }
.dots button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dots button::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--dot);
  transition: width .3s ease, background .3s ease;
}
.dots button[aria-current="true"]::before { width: 24px; background: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .slide, .dots button::before { transition: none; }
}

.contact { background: var(--card); border-top: 1px solid var(--line); padding: 48px 0; }
.contact h2 { margin-top: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact p { margin: 0 0 18px; }

/* Text pages */
main.page { padding-top: 48px; padding-bottom: 64px; }
.note {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 8px;
  padding: 10px 16px;
  margin: 16px 0 8px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 24px;
}
.big-email {
  display: inline-block;
  padding: 6px 0;
  font-size: clamp(1.05rem, 5vw, 1.6rem);
  font-weight: 700;
  white-space: nowrap;
}
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0; }
.cards p { margin: 0; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 48px 0 0; }
li { margin-bottom: .35rem; }

/* Owner still has to fill these in */
.todo {
  background: #FFF3B0;
  color: #5A3A00;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Footer */
.site-footer {
  background: #000000;
  border-top: 1px solid var(--gold);
  color: var(--text);
  font-size: .9rem;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 20px; }
.site-footer li { margin: 0; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); }
.site-footer a:hover { color: var(--gold-hover); }

@media (max-width: 760px) {
  body { font-size: 16px; }
  h1 { font-size: 2rem; }
  .wrap { padding: 0 16px; }
  .site-header nav ul { gap: 0 16px; }
  .intro { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; padding-bottom: 36px; }
  .contact-grid, .cards { grid-template-columns: 1fr; }
  main.page { padding-top: 32px; }
}

/* Support intro paragraph and Privacy deletion box */
.lead { font-size: 1.1rem; margin: 0 0 32px; }
.text .card { margin: 24px 0; }
.card h3 { margin: 0 0 .5rem; }
.card p { margin: 0; }

/* Never split words; justify text; centred reading column */
p, li { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; word-break: normal; }
.text p, .text li { text-align: justify; }
.text h1 { text-align: center; }
.text .rule { margin-left: auto; margin-right: auto; }
.text > p:first-of-type:not(.lead) { text-align: center; }
.text .card { text-align: center; }
.text .card p { text-align: justify; }
.text .card h3 { text-align: center; }
.text li { text-align: left; }
.text p.address, .text .card p { text-align: center; }
/* Footer sits at the bottom on short pages */
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }
/* Home contact: everything stacked on the left */
.contact-grid { grid-template-columns: 1fr; gap: 8px; }

/* Menu bar: logo hard left, menu hard right, on every screen size */
.site-header .wrap {
  max-width: none;
  padding-left: 16px;
  padding-right: 16px;
  flex-wrap: nowrap;
}
.site-header nav { margin-left: auto; }
.site-header nav ul { flex-wrap: nowrap; justify-content: flex-end; }
/* Bigger edge gap on laptops (about 1 cm); phones keep 16px */
@media (min-width: 761px) {
  .site-header .wrap { padding-left: 40px; padding-right: 40px; }
}
