:root {
  --bg: #0a1628;
  --steel: #1c2e44;
  --rust: #c45c26;
  --cream: #f3e6d0;
  --rope: #c8b08a;
  --text: #f3e6d0;
  --ink: #0a1628;
  --rust-deep: #8a3912;
  --fog: rgba(243, 230, 208, 0.08);
  --line: rgba(200, 176, 138, 0.28);
  --metal: 7px 8px 0 #071018, 0 18px 32px rgba(0, 0, 0, 0.42);
  --header-h: 78px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 47px,
      rgba(196, 92, 38, 0.05) 47px 48px
    ),
    radial-gradient(1200px 480px at 10% -10%, rgba(196, 92, 38, 0.16), transparent 55%),
    var(--bg);
}

body.is-locked {
  overflow: hidden;
}

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

a {
  color: var(--rust);
  text-decoration: none;
}

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

h1, h2, h3, h4 {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: var(--cream);
  margin: 0 0 0.45em;
  text-transform: uppercase;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

.wrap {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
}

.skip:focus {
  left: 12px;
  z-index: 200;
  background: var(--cream);
  color: var(--ink);
  padding: 8px 14px;
}

.dock-ticker {
  background: var(--rust);
  color: var(--cream);
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 3px solid #071018;
}

.dock-ticker span {
  display: inline-block;
  padding: 7px 0;
  animation: haul 28s linear infinite;
}

@keyframes haul {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(10, 22, 40, 0.94);
  border-bottom: 4px solid var(--rust);
  box-shadow: 0 10px 0 rgba(7, 16, 24, 0.4);
}

.header-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.55rem;
  letter-spacing: 0.12em;
  flex-shrink: 0;
}

.brand img {
  width: 44px;
  height: 44px;
}

.brand:hover {
  color: var(--rope);
}

.site-nav {
  display: flex;
  gap: 4px 18px;
  margin-left: auto;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--rope);
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.14em;
  font-size: 1.02rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.is-current {
  color: var(--cream);
  border-bottom-color: var(--rust);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

#guest-actions {
  display: flex;
  gap: 8px;
}

.player-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--rust);
  padding: 4px 8px 4px 12px;
  box-shadow: 3px 3px 0 #071018;
  transform: rotate(-1.2deg);
}

.player-chip span {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  margin-left: auto;
  background: var(--steel);
  border: 2px solid var(--rust);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--cream);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 3px solid var(--rust);
  background: var(--rust);
  color: var(--cream);
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.12em;
  font-size: 1.05rem;
  padding: 10px 18px;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 #071018;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  color: var(--cream);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 #071018;
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #071018;
}

.btn-rust {
  background: var(--rust);
  color: var(--cream);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--rope);
}

.btn-steel {
  background: var(--steel);
  color: var(--cream);
  border-color: var(--rope);
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.95rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: min(86vh, 820px);
  border-bottom: 4px solid var(--rust);
}

.hero-poster {
  position: relative;
  padding: 56px 48px 64px;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 31px,
      rgba(243, 230, 208, 0.04) 31px 32px
    ),
    var(--steel);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 3px dashed var(--rope);
}

.hero-poster::before {
  content: "MANIFESTI · LAITURI 7";
  position: absolute;
  top: 18px;
  left: 48px;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--rope);
}

.stamp-date {
  position: absolute;
  top: 22px;
  right: 28px;
  border: 2px solid var(--rust);
  color: var(--rust);
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.12em;
  padding: 6px 10px;
  transform: rotate(8deg);
  opacity: 0.9;
}

.hero-kicker {
  display: block;
  color: var(--rust);
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.26em;
  font-size: 0.86rem;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(3.1rem, 6.4vw, 5.6rem);
  max-width: 11ch;
  margin-bottom: 18px;
}

.hero-lead {
  max-width: 38ch;
  color: var(--rope);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.hero-photo {
  position: relative;
  overflow: hidden;
  background: #071018;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 22, 40, 0.28), transparent 40%);
  pointer-events: none;
}

.section {
  padding: 72px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  margin-bottom: 36px;
  align-items: end;
  border-bottom: 2px solid var(--line);
  padding-bottom: 18px;
}

.col-mark {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.18em;
  color: var(--rust);
  font-size: 0.82rem;
}

.section-head h2 {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  margin: 0;
}

.section-head p {
  grid-column: 2;
  max-width: 58ch;
  color: var(--rope);
  margin: 0;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.game-card {
  position: relative;
  background: var(--cream);
  color: var(--ink);
  border: 5px solid var(--rust);
  box-shadow: var(--metal);
  padding: 14px 14px 20px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.game-card:hover {
  transform: translate(-2px, -3px);
  box-shadow: 9px 11px 0 #071018, 0 22px 36px rgba(0, 0, 0, 0.48);
}

.game-card h3,
.game-card p {
  color: var(--ink);
}

.game-card h3 {
  font-size: 1.7rem;
  margin: 12px 0 6px;
}

.game-card p {
  min-height: 4.6em;
}

.game-card .thumb {
  border: 3px solid var(--ink);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--steel);
}

.game-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ticket {
  position: absolute;
  top: 10px;
  right: -8px;
  z-index: 2;
  background: var(--rust);
  color: var(--cream);
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  padding: 7px 16px;
  transform: rotate(14deg);
  box-shadow: 3px 3px 0 #071018;
  border: 2px dashed var(--cream);
}

.game-card .btn {
  width: 100%;
}

.feature-split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 36px;
  align-items: center;
}

.feature-visual {
  position: relative;
}

.feature-visual img {
  width: 100%;
  border: 5px solid var(--rust);
  box-shadow: var(--metal);
}

.feature-visual::after {
  content: "LASTI";
  position: absolute;
  left: -12px;
  bottom: 18px;
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--rust);
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.2em;
  padding: 8px 16px;
  transform: rotate(-8deg);
}

.feature-copy h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.feature-copy p {
  color: var(--rope);
}

.cargo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.cargo-label {
  background: var(--cream);
  color: var(--ink);
  border: 4px solid var(--rust);
  padding: 22px 22px 24px;
  box-shadow: var(--metal);
  position: relative;
}

.cargo-label .num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 3.4rem;
  letter-spacing: 0.04em;
  color: var(--rust);
  line-height: 0.8;
  margin-bottom: 10px;
}

.cargo-label h3 {
  color: var(--ink);
  font-size: 1.55rem;
}

.cargo-label p {
  color: #2a2430;
  margin: 0;
}

.crate-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.crate-stamp {
  background: var(--steel);
  border: 4px solid var(--rope);
  padding: 22px 18px 20px;
  text-align: center;
  box-shadow: var(--metal);
  transform: rotate(-1.4deg);
}

.crate-stamp:nth-child(even) {
  transform: rotate(1.8deg);
}

.crate-stamp:nth-child(3) {
  transform: rotate(-2.4deg);
}

.crate-stamp svg {
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
}

.crate-stamp h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.crate-stamp p {
  color: var(--rope);
  font-size: 0.95rem;
  margin: 0;
}

.cta-band {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border: 5px solid var(--rust);
  box-shadow: var(--metal);
}

.cta-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 340px;
  position: absolute;
  inset: 0;
}

.cta-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 22, 40, 0.88) 0%, rgba(10, 22, 40, 0.42) 70%, rgba(10, 22, 40, 0.18));
}

.cta-copy {
  position: relative;
  z-index: 1;
  padding: 48px 42px;
  max-width: 34rem;
}

.cta-copy h2 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.page-head {
  padding: 56px 0 28px;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 18px,
      rgba(196, 92, 38, 0.08) 18px 19px
    ),
    var(--steel);
  border-bottom: 4px solid var(--rust);
}

.page-head h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  max-width: 16ch;
}

.page-head p {
  max-width: 52ch;
  color: var(--rope);
  margin: 0;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 48px 0 80px;
}

.manifest-side {
  position: sticky;
  top: 100px;
  align-self: start;
  background: var(--cream);
  color: var(--ink);
  border: 4px solid var(--rust);
  padding: 18px;
  transform: rotate(-2deg);
  box-shadow: var(--metal);
}

.manifest-side strong {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.14em;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.manifest-side p {
  margin: 0;
  font-size: 0.92rem;
}

.prose h2 {
  font-size: 1.9rem;
  margin-top: 1.4em;
  border-left: 6px solid var(--rust);
  padding-left: 12px;
}

.prose p,
.prose li {
  color: var(--rope);
}

.prose ul {
  padding-left: 1.1em;
  list-style: disc;
  margin: 0 0 1em;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  padding: 42px 0 80px;
}

.note-card,
.form-card {
  background: var(--cream);
  color: var(--ink);
  border: 5px solid var(--rust);
  box-shadow: var(--metal);
  padding: 28px;
}

.note-card h2,
.form-card h2,
.note-card p {
  color: var(--ink);
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  border: 3px solid var(--ink);
  background: #fffaf1;
  color: var(--ink);
  padding: 10px 12px;
  font-size: 1rem;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-thanks {
  display: none;
}

.form-card.is-sent form {
  display: none;
}

.form-card.is-sent .form-thanks {
  display: block;
}

.form-thanks h2 {
  color: var(--ink);
}

.form-thanks p {
  color: #2a2430;
}

.site-footer {
  background: #071018;
  border-top: 6px solid var(--rust);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.9fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.14em;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
}

.site-footer p,
.site-footer a {
  color: var(--rope);
}

.site-footer h4 {
  font-size: 1.15rem;
  color: var(--rust);
}

.site-footer a:hover {
  color: var(--cream);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 16px;
  font-size: 0.92rem;
  color: var(--rope);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 16, 24, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 120;
}

.overlay.is-open {
  display: flex;
}

.modal {
  width: min(460px, 100%);
  background: var(--cream);
  color: var(--ink);
  border: 6px solid var(--rust);
  box-shadow: var(--metal);
  padding: 28px 26px 24px;
  position: relative;
}

.modal h2,
.modal p,
.modal label {
  color: var(--ink);
}

.modal .fine {
  color: #4a3f34;
  font-size: 0.92rem;
}

.modal-x {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: 0;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--ink);
  line-height: 1;
}

.age-mark {
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 12px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 12px 0 16px;
  border: 3px solid var(--ink);
}

.auth-tab {
  background: transparent;
  border: 0;
  padding: 10px;
  cursor: pointer;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.12em;
  font-size: 1.05rem;
  color: var(--ink);
}

.auth-tab.is-on {
  background: var(--rust);
  color: var(--cream);
}

.auth-error {
  min-height: 1.2em;
  color: var(--rust-deep);
  margin: 0 0 8px;
}

.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--cream);
  color: var(--ink);
  border: 4px solid var(--rust);
  box-shadow: var(--metal);
  padding: 14px 16px;
}

.cookie-bar.is-open {
  display: flex;
}

.cookie-bar p {
  margin: 0;
  color: var(--ink);
}

.cookie-bar a {
  color: var(--rust-deep);
  text-decoration: underline;
}

@media (max-width: 980px) {
  .hero,
  .feature-split,
  .games-grid,
  .cargo-row,
  .crate-grid,
  .legal-layout,
  .contact-grid,
  .footer-grid,
  .section-head {
    grid-template-columns: 1fr;
  }

  .section-head p {
    grid-column: 1;
  }

  .hero-poster {
    padding: 48px 24px 40px;
    border-right: 0;
    border-bottom: 3px dashed var(--rope);
  }

  .hero-poster::before {
    left: 24px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border: 3px solid var(--rust);
    flex-direction: column;
    padding: 12px 16px 18px;
    margin: 0;
    z-index: 90;
  }

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

  .header-row {
    flex-wrap: wrap;
  }

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

@media (max-width: 640px) {
  .games-grid,
  .cargo-row,
  .crate-grid,
  .cookie-bar,
  .modal-actions,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .hero h1 {
    max-width: none;
  }

  .cookie-bar {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }

  .brand span {
    font-size: 1.25rem;
  }
}
