:root {
  color-scheme: light;
  --ink: #17243b;
  --muted: #5f697e;
  --paper: #f7f3ea;
  --surface: #fffdf8;
  --line: rgba(23, 36, 59, .14);
  --blue: #4169e1;
  --blue-dark: #2747a7;
  --coral: #e86f58;
  --coral-dark: #a83f30;
  --yellow: #f5ca56;
  --mint: #55d6be;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--paper); }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--paper); }
a { color: inherit; }
img { max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  color: white;
  background: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header, main, footer { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; text-decoration: none; }
.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 5px);
  gap: 4px;
  width: 24px;
  height: 24px;
  padding: 5px;
  border: 2px solid var(--blue);
  border-radius: 8px;
  transform: rotate(-8deg);
}
.brand-mark i { width: 4px; height: 4px; border-radius: 50%; background: var(--coral); }
.tools-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); font-size: .82rem; font-weight: 700; }

.intro { padding: clamp(70px, 10vw, 140px) 0 clamp(46px, 7vw, 90px); }
.intro h1 { max-width: 940px; margin: 0; font-size: clamp(3rem, 8.3vw, 7.4rem); line-height: .91; letter-spacing: -.075em; }
.intro h1 em { color: var(--blue); font-family: Georgia, serif; font-weight: 500; }
.intro p { max-width: 610px; margin: 34px 0 0; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.18rem); line-height: 1.7; }

.game-grid { display: grid; gap: 34px; }
.game-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(320px, .86fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(23, 36, 59, .09);
}
.game-feature:nth-child(even) { grid-template-columns: minmax(320px, .86fr) minmax(0, 1.14fr); }
.game-feature:nth-child(even) .game-art { order: 2; }
.game-art { position: relative; min-height: 480px; overflow: hidden; isolation: isolate; }
.world-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-art::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(135deg, rgba(23,36,59,.03), rgba(23,36,59,.2)); }
.mascot { position: absolute; z-index: 3; object-fit: contain; filter: drop-shadow(0 16px 18px rgba(23,36,59,.2)); }
.doodle-mascot { right: 7%; bottom: 4%; width: min(42%, 250px); transform: rotate(7deg); }
.dotti-mascot { right: 7%; bottom: 7%; width: min(32%, 185px); }
.paper-note { position: absolute; z-index: 4; top: 12%; left: 8%; padding: 12px 15px; color: var(--coral-dark); background: #fff2a8; font-family: Georgia, serif; font-size: 1.05rem; font-weight: 700; transform: rotate(-5deg); box-shadow: 0 8px 18px rgba(23,36,59,.15); }
.sample-grid { position: absolute; z-index: 2; left: 11%; top: 18%; display: grid; grid-template-columns: repeat(3, 13px); gap: 52px; padding: 26px; border: 8px solid rgba(65,105,225,.72); border-right-color: transparent; border-bottom-color: var(--coral); transform: rotate(-4deg); }
.sample-grid i { width: 13px; height: 13px; border: 3px solid var(--ink); border-radius: 50%; background: white; }

.game-copy { align-self: center; padding: clamp(34px, 6vw, 74px); }
.game-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.game-title-row h2 { margin: 0; font-size: clamp(2.3rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -.07em; }
.game-mode { flex: 0 0 auto; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.game-copy > p { margin: 25px 0 22px; color: var(--muted); line-height: 1.7; }
.feature-list { display: grid; gap: 10px; margin: 0 0 30px; padding: 0; list-style: none; font-size: .86rem; font-weight: 700; }
.feature-list li { display: flex; align-items: center; gap: 9px; }
.feature-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(85,214,190,.16); }
.play-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 52px; padding: 0 21px; border-radius: 12px; color: white; font-weight: 800; text-decoration: none; box-shadow: 0 10px 22px rgba(23,36,59,.14); transition: transform .18s ease, box-shadow .18s ease; }
.play-button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(23,36,59,.2); }
.coral-button { background: var(--coral-dark); }
.blue-button { background: var(--blue-dark); }
.harbor-button { background: linear-gradient(135deg, #0a1b28, #193a52); }

.harbor-art {
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 240, 197, .4), transparent 14%),
    linear-gradient(180deg, #16314a 0%, #081119 48%, #02060b 100%);
}
.harbor-moon,
.harbor-shore,
.harbor-beam,
.harbor-water,
.harbor-ships span,
.harbor-wakes i { position: absolute; }
.harbor-moon {
  top: 14%;
  right: 12%;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: radial-gradient(circle, #f3e9c8 0 58%, rgba(243,233,200,.12) 58%, transparent 76%);
  box-shadow: 0 0 48px rgba(243,233,200,.2);
}
.harbor-shore {
  inset: auto -12% 38% -8%;
  height: 38%;
  background:
    radial-gradient(circle at 12% 64%, rgba(22,47,63,.95), transparent 15%),
    radial-gradient(circle at 39% 44%, rgba(11,25,35,.98), transparent 20%),
    radial-gradient(circle at 70% 48%, rgba(18,39,54,.96), transparent 24%),
    linear-gradient(180deg, transparent, rgba(3,6,10,.92));
}
.harbor-beam {
  left: 12%;
  top: 28%;
  width: 42%;
  height: 18%;
  background: linear-gradient(90deg, rgba(243,233,200,.22), rgba(243,233,200,0));
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  transform-origin: left center;
  animation: harbor-sweep 12s ease-in-out infinite;
}
.harbor-water {
  inset: auto -12% -12% -12%;
  height: 44%;
  border-radius: 100% 100% 0 0;
  background:
    radial-gradient(circle at 18% 0, rgba(123,183,255,.12), transparent 18%),
    radial-gradient(circle at 70% 6%, rgba(85,214,190,.12), transparent 18%),
    linear-gradient(180deg, rgba(16,49,70,.72), rgba(2,6,11,.98));
}
.harbor-ships span {
  width: 92px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(18,41,57,.96), rgba(8,18,27,.98));
  box-shadow: 0 14px 28px rgba(0,0,0,.24);
}
.harbor-ships span::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8fe0d6;
  box-shadow: 14px 0 0 rgba(143,224,214,.72), 28px 0 0 rgba(143,224,214,.42);
}
.harbor-ships span:nth-child(1) { left: 28%; top: 58%; }
.harbor-ships span:nth-child(2) { left: 48%; top: 50%; width: 104px; }
.harbor-ships span:nth-child(3) { left: 68%; top: 63%; width: 96px; }
.harbor-wakes i {
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle at left, rgba(255,255,255,.5), rgba(123,183,255,.1) 44%, transparent 74%);
  filter: blur(2px);
}
.harbor-wakes i:nth-child(1) { left: 18%; top: 64%; width: 124px; }
.harbor-wakes i:nth-child(2) { left: 40%; top: 56%; width: 148px; }
.harbor-wakes i:nth-child(3) { left: 62%; top: 69%; width: 118px; }

.access-note, .privacy-note { display: grid; grid-template-columns: minmax(180px, .35fr) minmax(0, .65fr); gap: 50px; margin-top: 80px; padding-top: 30px; border-top: 1px solid var(--line); }
.access-note h2, .privacy-note h2 { margin: 0; font-size: 1.15rem; letter-spacing: -.03em; }
.access-note p, .privacy-note p { max-width: 760px; margin: 0; color: var(--muted); line-height: 1.7; }
.privacy-note { margin-top: 36px; }

footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 100px; padding: 30px 0 42px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
footer nav { display: flex; gap: 24px; }

a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 4px; }

@media (max-width: 820px) {
  .game-feature, .game-feature:nth-child(even) { grid-template-columns: 1fr; }
  .game-feature:nth-child(even) .game-art { order: 0; }
  .game-art { min-height: 390px; }
  .access-note, .privacy-note { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 520px) {
  .site-header, main, footer { width: min(100% - 32px, 1240px); }
  .site-header { min-height: 72px; }
  .intro { padding: 58px 0 42px; }
  .intro h1 { font-size: clamp(2.8rem, 14vw, 4.5rem); }
  .intro p { margin-top: 24px; line-height: 1.6; }
  .game-grid { gap: 22px; }
  .game-feature { border-radius: 22px; }
  .game-art { min-height: 290px; }
  .game-copy { padding: 28px 24px 32px; }
  .game-title-row { display: block; }
  .game-mode { display: block; margin-top: 10px; }
  .play-button { width: 100%; min-height: 54px; }
  .access-note { margin-top: 58px; }
  footer { display: grid; margin-top: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (forced-colors: active) {
  .play-button { border: 2px solid ButtonText; }
  .feature-list li::before { border: 2px solid CanvasText; }
}

@keyframes harbor-sweep {
  0%, 100% { transform: rotate(-12deg); opacity: .38; }
  50% { transform: rotate(10deg); opacity: .72; }
}

.scrap-feature .game-art { background: #101b24; }
.scrap-feature .world-art { object-fit: contain; }
