:root {
  color-scheme: dark;
  --deep-sea: #071e2b;
  --ink: #0a2636;
  --sea-glass: #a8d6d7;
  --brass: #d7ac65;
  --parchment: #ffefd0;
  --muted: #c1d0ce;
  font-family: "Pixelify Sans", "Trebuchet MS", sans-serif;
  color: var(--parchment);
  background: var(--deep-sea);
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; isolation: isolate; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--parchment); outline-offset: 7px; }
.skip-link { position: absolute; left: 20px; top: -80px; z-index: 5; padding: 12px 18px; background: var(--ink); }
.skip-link:focus { top: 16px; }
.art-background { position: fixed; z-index: -3; inset: 0; background-color: #12374b; background-size: cover; background-position: center; image-rendering: pixelated; }
.sea-shade { position: fixed; z-index: -2; inset: 0; pointer-events: none; background: linear-gradient(180deg, #04172573, #071e2b19 35%, #071e2b80 66%, #041521ed), radial-gradient(ellipse at 50% 43%, #071e2b8c, #071e2b10 70%); }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px clamp(20px, 4vw, 72px); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; text-decoration: none; text-shadow: 2px 2px var(--deep-sea); }
.wordmark img { width: 36px; height: 36px; object-fit: contain; image-rendering: pixelated; }
.development { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; color: var(--parchment); padding: 10px 14px; border: 1px solid #d7ac655e; background: #071e2bb8; }
.signal { width: 6px; height: 6px; background: var(--brass); box-shadow: 0 0 0 3px #d7ac651f; }
.landing { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 4px 24px 28px; }
.hero { width: min(100%, 720px); text-align: center; padding: 0 0 36px; }
.game-logo { display: block; width: min(100%, 480px); height: auto; max-height: 340px; object-fit: contain; margin: 0 auto 8px; image-rendering: auto; filter: drop-shadow(0 8px 0 #04172670); animation: arrival 1.2s ease-out both; }
.horizon-rule { width: min(100%, 310px); display: flex; align-items: center; gap: 18px; margin: 0 auto 22px; color: var(--brass); font-size: 17px; }
.horizon-rule::before, .horizon-rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--brass)); }
.horizon-rule::after { transform: scaleX(-1); }
h1 { font-size: clamp(30px, 3.35vw, 49px); font-weight: 500; line-height: 1.12; letter-spacing: -.025em; margin: 0; text-wrap: balance; text-shadow: 0 3px 0 #061b2c; scroll-margin-top: 20px; }
.invitation { color: #e4e7db; font-size: clamp(18px, 1.65vw, 22px); line-height: 1.5; margin: 18px auto 25px; text-shadow: 0 2px 2px #041521; }
.captains-note { width: min(100%, 390px); margin: 0 auto; text-align: left; border: 1px solid #d7ac657a; background: #081e2eea; box-shadow: 4px 4px 0 #04152166, inset 0 0 0 4px #bd8e3e0c; }
.captains-note summary { min-height: 54px; padding: 16px 21px; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 18px; color: var(--parchment); }
.captains-note summary::-webkit-details-marker { display: none; }
.captains-note summary:hover { background: #d7ac6514; }
.captains-note summary span { color: var(--brass); font-size: 24px; line-height: 1; transition: transform .2s; }
.captains-note[open] summary span { transform: rotate(45deg); }
.captains-note[open] summary { border-bottom: 1px solid #d7ac653b; }
.note-content { padding: 4px 22px 12px; color: #dce5df; font-size: 18px; line-height: 1.5; }
.signature { color: var(--brass); }
.signature strong { font-weight: 500; }
.return-note { font-size: 15px; color: var(--muted); margin: 17px 0 0; text-shadow: 0 2px 2px #041521; }
.voyage { display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap; padding: 21px 28px; border-top: 1px solid #d7ac654d; border-bottom: 1px solid #d7ac6526; font-size: 18px; text-shadow: 0 2px 2px #041521; }
.voyage i { font-style: normal; color: var(--brass); font-size: 12px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 18px clamp(20px, 4vw, 72px) 24px; font-size: 14px; color: var(--muted); }
@keyframes arrival { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (min-height: 900px) and (min-width: 761px) { .game-logo { width: 550px; max-height: 390px; margin-bottom: 18px; } .hero { padding-bottom: 55px; } }
@media (max-height: 850px) and (min-width: 761px) {
  .masthead { padding-block: 16px; }
  .landing { padding-block: 0 14px; }
  .hero { padding-bottom: 24px; }
  .game-logo { width: 360px; max-height: 250px; }
  .horizon-rule { margin-bottom: 14px; }
  h1 { font-size: 38px; }
  .invitation { font-size: 20px; line-height: 1.35; margin: 12px auto 18px; }
  .return-note { margin-top: 12px; }
  .voyage { padding-block: 14px; }
  .site-footer { padding-block: 14px; }
}
@media (max-width: 760px) {
  .masthead { padding: 18px 20px; gap: 12px; }
  .wordmark { font-size: 18px; gap: 6px; }
  .wordmark img { width: 28px; height: 28px; }
  .development { font-size: 13px; padding: 8px 10px; gap: 7px; }
  .landing { padding: 20px 22px 30px; }
  .game-logo { width: min(100%, 410px); max-height: 300px; margin-bottom: 18px; }
  .hero { padding-bottom: 32px; }
  h1 { max-width: 440px; margin: 0 auto; font-size: clamp(32px, 6.8vw, 43px); }
  .invitation { font-size: 20px; }
  .voyage { width: 100%; gap: 12px; padding: 20px 0; font-size: 16px; }
  .voyage i { display: none; }
  .site-footer { flex-direction: column; text-align: center; align-items: center; gap: 7px; padding: 14px 20px 24px; }
  .art-background { background-position: 62% center; }
}
@media (max-width: 380px) {
  .masthead { padding: 15px 16px; }
  .wordmark { font-size: 16px; }
  .wordmark img { display: none; }
  .development { font-size: 12px; }
  .landing { padding-inline: 18px; }
  .captains-note summary { font-size: 17px; padding-inline: 16px; }
  .return-note { font-size: 14px; }
  .voyage { flex-direction: column; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .game-logo { animation: none; } .captains-note summary span { transition: none; } }
