:root {
  --paper: #f8efdf;
  --paper-2: #f1e3c8;
  --sand: #e8d5b0;
  --rose: #f0c3c6;
  --rose-soft: #f9e1e2;
  --rose-deep: #b24f5c;
  --ink: #3a281c;
  --ink-soft: #6b5442;
  --teal: #3d7476;
  --gold: #d29d45;
  --line: #d9c298;
  --side: 264px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  background-image: radial-gradient(rgba(178, 79, 92, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  font: 17px/1.65 var(--sans);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--rose-deep);
}
a:hover {
  color: var(--teal);
}
h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
h3 {
  font-size: 1.2rem;
}
p {
  margin: 0 0 1em;
}
.age-lock body > * {
  filter: blur(6px);
}
.age-lock body {
  overflow: hidden;
}
.age-lock body > .overlay {
  filter: none;
}

/* shell */
.shell {
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr);
  min-height: 100vh;
}
.side {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px;
  background: var(--sand);
  border-right: 10px solid transparent;
  border-image: repeating-linear-gradient(135deg, #c9a56a 0 6px, #e6cf9e 6px 12px) 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font: 700 1.55rem var(--serif);
  letter-spacing: 0.01em;
}
.brand i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rose);
  border: 2px solid var(--ink);
  font-style: normal;
  font-size: 1.3rem;
}
.sidenav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidenav a {
  padding: 9px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
}
.sidenav a:hover {
  background: var(--rose-soft);
}
.sidenav a[aria-current="page"] {
  background: var(--rose);
  box-shadow: inset 4px 0 0 var(--rose-deep);
}
.side .sign {
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--ink-soft);
  border-top: 2px dashed var(--line);
  padding-top: 14px;
}
.topbar {
  display: none;
}
.content {
  min-width: 0;
}
.ribbon {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  font-size: 0.86rem;
  padding: 8px 16px;
  letter-spacing: 0.02em;
}
.ribbon b {
  color: var(--rose);
}
.wrap {
  width: min(1060px, 100% - 48px);
  margin-inline: auto;
}

/* buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font: 700 0.98rem var(--sans);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
}
.button:hover {
  color: var(--ink);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}
.button.primary {
  background: var(--rose);
}
.button.block {
  width: 100%;
}
.button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 0;
}

/* hero */
.hero {
  padding: 56px 0 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  background: var(--rose-soft);
  border: 2px dashed var(--rose-deep);
  color: var(--rose-deep);
  padding: 3px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.lead {
  font-size: 1.14rem;
  color: var(--ink-soft);
}
.porthole {
  position: relative;
}
.porthole .frame {
  border: 8px solid var(--ink);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 10px 10px 0 var(--rose);
  background: #000;
}
.porthole .captain {
  position: absolute;
  width: 34%;
  right: -10px;
  bottom: -34px;
  filter: drop-shadow(4px 6px 0 rgba(58, 40, 28, 0.25));
}
.chips {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips li {
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1.5px solid var(--line);
  font-size: 0.9rem;
  font-weight: 600;
}

/* sections */
.section {
  padding: 52px 0;
}
.section.tint {
  background: var(--paper-2);
  border-block: 2px dashed var(--line);
}
.section.dark {
  background: var(--ink);
  color: var(--paper);
}
.section.dark h2,
.section.dark h3 {
  color: var(--paper);
}
.section.dark a:not(.button) {
  color: var(--rose);
}
.heading {
  max-width: 680px;
  margin-bottom: 30px;
}
.heading p {
  color: var(--ink-soft);
}
.grid {
  display: grid;
  gap: 22px;
}
.g2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.g3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.g4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.card {
  background: #fffaf0;
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 24px;
  position: relative;
  box-shadow: 5px 5px 0 var(--sand);
}
.card.pink {
  background: var(--rose-soft);
  box-shadow: 5px 5px 0 var(--rose);
}
.card .num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--rose);
  border: 2px solid var(--ink);
  font: 700 0.95rem var(--serif);
  margin-bottom: 12px;
}
.card h3 {
  margin-bottom: 0.35em;
}
.card p:last-child {
  margin-bottom: 0;
}
.card img.cover {
  border-radius: 12px;
  border: 2px solid var(--ink);
  margin-bottom: 16px;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.loot {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.loot figure {
  margin: 0;
  background: #fffaf0;
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 14px 8px 8px;
  text-align: center;
}
.loot img {
  height: 84px;
  width: auto;
  margin: 0 auto 8px;
  object-fit: contain;
}
.loot figcaption {
  font: 700 0.9rem var(--serif);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}
.split.top {
  align-items: start;
}
.shot {
  border: 6px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--rose);
}
.ship-path {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: s;
  border-left: 4px dotted var(--rose-deep);
  margin-left: 18px;
}
.ship-path li {
  counter-increment: s;
  position: relative;
  padding: 0 0 26px 38px;
}
.ship-path li::before {
  content: counter(s);
  position: absolute;
  left: -20px;
  top: -2px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rose);
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  font: 700 1rem var(--serif);
  color: var(--ink);
}
.ship-path b {
  display: block;
  font: 700 1.1rem var(--serif);
}
.ship-path span {
  color: var(--ink-soft);
}
.dark .ship-path span {
  color: #e8d9bd;
}
.page-head {
  padding: 46px 0 22px;
}
.crumbs {
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding-top: 22px;
}
.crumbs a {
  color: var(--ink-soft);
}
.banner {
  border: 6px solid var(--ink);
  border-radius: 20px;
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  box-shadow: 8px 8px 0 var(--rose);
}
.prose {
  max-width: 760px;
}
.prose h2 {
  margin-top: 1.5em;
  font-size: 1.55rem;
}
.prose h3 {
  margin-top: 1.2em;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li {
  margin-bottom: 0.4em;
}
.meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.legal-box {
  background: var(--rose-soft);
  border: 2px dashed var(--rose-deep);
  border-radius: 16px;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 0.97rem;
}
.legal-box p:last-child {
  margin: 0;
}

/* faq */
details.q {
  background: #fffaf0;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 0 20px;
  margin-bottom: 12px;
}
details.q summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 28px 16px 0;
  font: 700 1.05rem var(--serif);
  position: relative;
}
details.q summary::-webkit-details-marker {
  display: none;
}
details.q summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 11px;
  font-size: 1.6rem;
  color: var(--rose-deep);
}
details.q[open] summary::after {
  content: "–";
}
details.q p {
  color: var(--ink-soft);
}

/* forms */
.form {
  display: grid;
  gap: 16px;
}
.form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 0.95rem;
}
.form input[type="text"],
.form input[type="email"],
.form select,
.form textarea {
  font: 400 1rem var(--sans);
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #fffdf8;
  color: var(--ink);
  width: 100%;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 3px solid var(--rose);
  outline-offset: 1px;
}
.form .check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.92rem;
}
.form .check-row input {
  margin-top: 5px;
  accent-color: var(--rose-deep);
}
.trap {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.state {
  padding: 12px 16px;
  border-radius: 12px;
  margin: 0;
  font-weight: 600;
}
.state.ok {
  background: #e3f0e4;
  border: 2px solid #4d8b57;
}
.state.bad {
  background: #fbe0e0;
  border: 2px solid #b44;
}
.fine {
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.chart {
  display: grid;
  gap: 14px;
  font-size: 0.98rem;
}
.chart > div {
  background: #fffaf0;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 14px 18px;
}
.chart .lab {
  display: block;
  font: 700 0.75rem var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose-deep);
}
address {
  font-style: normal;
}

/* game */
.game-box {
  position: relative;
  border: 8px solid var(--ink);
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 10px 10px 0 var(--rose);
}
.game-box iframe,
.game-box .poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.game-box .poster {
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
}
.game-box .poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}
.game-box .poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--rose);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 14px 34px;
  font: 700 1.3rem var(--serif);
  box-shadow: 5px 5px 0 var(--ink);
}
.game-box [hidden] {
  display: none;
}

/* footer */
footer {
  margin-top: 40px;
  background: var(--ink);
  color: #eadcc1;
  padding: 44px 0 26px;
  font-size: 0.93rem;
}
footer b {
  display: block;
  color: var(--rose);
  font: 700 1.05rem var(--serif);
  margin-bottom: 8px;
}
footer a {
  color: #f6e8cc;
}
footer a:hover {
  color: var(--rose);
}
.foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
}
.footlinks {
  display: grid;
  gap: 5px;
}
.copy {
  margin: 30px 0 0;
  padding-top: 18px;
  border-top: 1px dashed #7d6550;
  font-size: 0.84rem;
}

/* overlays */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(58, 40, 28, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.age-lock .overlay {
  display: flex;
}
.dialog {
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: 24px;
  max-width: 480px;
  width: 100%;
  padding: 28px;
  text-align: center;
  box-shadow: 10px 10px 0 var(--rose);
}
.dialog img {
  width: 150px;
  margin: 0 auto 10px;
}
.age-actions {
  display: grid;
  gap: 12px;
  margin: 18px 0 10px;
}
.dialog .fine {
  margin: 0;
}
.cookie {
  position: fixed;
  z-index: 80;
  left: calc(var(--side) + 20px);
  right: 20px;
  bottom: 18px;
  display: none;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  background: #fffaf0;
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 0.92rem;
  box-shadow: 5px 5px 0 var(--rose);
}
.cookie .button {
  white-space: nowrap;
  padding: 9px 18px;
}

@media (max-width: 960px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .side {
    display: none;
  }
  .topbar {
    display: block;
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--sand);
    border-bottom: 4px solid var(--ink);
  }
  .topbar .bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
  }
  .topbar summary {
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    padding: 8px 16px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--rose);
  }
  .topbar summary::-webkit-details-marker {
    display: none;
  }
  .topbar nav {
    display: grid;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--sand);
    border-bottom: 4px solid var(--ink);
    padding: 6px 18px 16px;
  }
  .topbar nav a {
    padding: 10px 4px;
    border-bottom: 1px dashed var(--line);
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
  }
  .cookie {
    left: 12px;
    right: 12px;
  }
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }
  .g3,
  .g4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .foot {
    grid-template-columns: 1fr 1fr;
  }
  .loot {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  .wrap {
    width: calc(100% - 32px);
  }
  .g2,
  .g3,
  .g4,
  .foot {
    grid-template-columns: 1fr;
  }
  .loot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    padding-top: 34px;
  }
  .porthole .captain {
    width: 30%;
    right: -4px;
  }
  .cookie {
    flex-direction: column;
    align-items: stretch;
  }
  .section {
    padding: 38px 0;
  }
}
