@font-face { font-family: Pixelify; src: url('/fonts/pixelify-sans.woff2') format('woff2'); font-display: swap; }
:root {
  color-scheme: light;
  --night: #142845;
  --midnight: #101e36;
  --paper: #fff8e9;
  --ink: #24324b;
  --quiet: #59556b;
  --blue: #254d70;
  --rose: #8b3960;
  --border: #ded3c3;
  --pixel: Pixelify, ui-monospace, monospace;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, ::before, ::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: #fff7e8; background: radial-gradient(ellipse at 23% 10%, #294c6f, var(--night) 47%, var(--midnight) 88%); min-height: 100dvh; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .57; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #a15472; outline-offset: 3px; }
a { color: inherit; }
p, h1, h2, h3, figure { margin: 0; }
p { line-height: 1.55; }
h1, h2, h3 { font-family: var(--pixel); font-weight: 600; line-height: 1.05; }
h2 { font-size: clamp(1.65rem, 3vw, 2.15rem); }
h3 { font-size: 1.4rem; }
.quiet { color: var(--quiet); }
.small { font-size: .89rem; }
.site-shell { width: min(1190px, calc(100% - 44px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 3; top: 12px; left: 12px; padding: 10px 14px; background: var(--paper); color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-top { background: #13243d; border-bottom: 1px solid #536281; }
.site-top-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 76px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; font: 1.24rem/.91 var(--pixel); }
.site-brand img { image-rendering: pixelated; }
.site-brand strong { display: block; color: #ffce9a; font-size: 1.55rem; font-weight: 600; }
.site-top nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-top nav a { display: inline-flex; align-items: center; min-height: 42px; padding: 5px 11px; border-radius: 30px; color: #e2eaf4; text-decoration: none; font-weight: 650; font-size: .93rem; }
.site-top nav a:hover, .site-top nav a[aria-current] { color: #fff8e9; background: #314862; }
.entrance { display: grid; grid-template-columns: minmax(0, 1.66fr) minmax(320px, 1fr); align-items: start; gap: clamp(22px, 4vw, 56px); margin-block: clamp(24px, 4.4vw, 64px) 32px; }
.island-intro { padding-top: 5px; min-width: 0; }
.island-intro h1 { font-size: clamp(2.35rem, 5.25vw, 4.65rem); letter-spacing: -.035em; text-wrap: balance; color: #fff5d8; overflow-wrap: anywhere; }
.island-intro > p { color: #d8e7f3; font-size: clamp(1rem, 1.55vw, 1.12rem); margin-top: 12px; overflow-wrap: anywhere; }
.island-portrait { position: relative; margin-top: 24px; border: 1px solid #7184a5; border-radius: 24px; overflow: hidden; background: #15335b; box-shadow: 0 14px 36px #09142460; }
.island-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; image-rendering: pixelated; }
.island-portrait figcaption { position: absolute; inset: auto auto 10px 10px; padding: 6px 11px; border-radius: 16px; background: #13233a; color: #fff4d7; font-size: .82rem; }
.paper { color: var(--ink); background: var(--paper); border: 1px solid #f9e4c9; border-radius: 23px; box-shadow: 0 12px 34px #0e162748; }
.gate { min-width: 0; padding: clamp(20px, 3vw, 33px); }
.gate h2 { margin-bottom: 16px; }
.gate-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 15px; background: #eae3db; margin-bottom: 15px; }
.gate-tabs button { min-height: 42px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: var(--ink); font-weight: 700; }
.gate-tabs button:hover { background: #fff4e2; }
.gate-tabs button[aria-pressed=true] { background: #fffaf0; border-color: #e0cdb8; box-shadow: 0 1px 3px #49353718; }
.gate-stack { display: grid; gap: 12px; }
.gate-stack.snug { gap: 8px; }
.paper label, .field-group > label { display: block; font-size: .95rem; font-weight: 700; }
.paper :is(input, select, textarea) { display: block; width: 100%; margin-top: 5px; min-height: 44px; border: 1px solid var(--border); border-radius: 11px; padding: 9px 12px; background: #fffdfa; color: var(--ink); font-weight: 400; font-size: 1rem; }
.paper textarea { resize: vertical; }
.password-input { position: relative; }
.password-input input { padding-right: 72px; }
.password-input button { position: absolute; top: 2px; right: 4px; bottom: 2px; min-width: 60px; border: 0; border-radius: 9px; background: transparent; color: var(--rose); font-size: .91rem; font-weight: 740; }
.password-input button:hover { background: #f4e7df; }
.primary, .site-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 9px 15px; border-radius: 12px; border: 1px solid #173a60; color: #fff8e9; background: var(--blue); text-align: center; text-decoration: none; font-weight: 750; }
.primary:hover:not(:disabled), .site-button:hover { background: #1b3b62; }
.link-button { display: inline-flex; justify-content: center; align-items: center; min-height: 34px; border: 0; background: transparent; color: var(--rose); font: inherit; font-weight: 700; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.link-button:hover { color: #632548; }
.notice { border-radius: 10px; padding: 9px 12px; background: #f6ebce; color: #5a3b26; font-size: .91rem; }
.notice[data-error=true] { background: #fae6e4; color: #822844; }
.gate > .notice { margin-bottom: 13px; }
.password-strength { display: grid; gap: 2px; }
.password-strength meter { display: block; width: 100%; height: 11px; accent-color: #348475; }
.password-strength meter::-webkit-meter-bar { background: #e6dcd1; border: 0; }
.password-strength span { font-size: .84rem; color: var(--quiet); }
.ideas-heading { display: flex; gap: 8px; justify-content: space-between; align-items: center; font-size: .92rem; }
.ideas-heading button { font-size: .85rem; }
#idea-list { display: grid; gap: 4px; }
#idea-list button { text-align: start; min-height: 34px; overflow-wrap: anywhere; padding: 4px 8px; border: 1px solid #dacfc5; border-radius: 8px; background: #f6eee3; color: var(--blue); font: .86rem ui-monospace, monospace; }
#idea-list button:hover { background: #eae6da; }
.bulletin { padding: clamp(20px, 3vw, 36px); scroll-margin-top: 15px; }
.bulletin-heading p { color: var(--quiet); margin-top: 9px; white-space: pre-line; overflow-wrap: anywhere; }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.news-grid:empty { display: none; }
.news-grid article { min-width: 0; margin-top: 16px; border-radius: 15px; padding: 15px 17px; background: #f4ebda; border: 1px solid #e8ddc8; }
.news-grid article p { margin-top: 8px; white-space: pre-line; overflow-wrap: anywhere; }
.news-grid :is(time, h3) { overflow-wrap: anywhere; }
.news-grid time { display: block; margin-bottom: 5px; color: var(--quiet); font-size: .85rem; }
.support-form { margin-top: 18px; max-width: 840px; }
.support-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.support-form .primary { justify-self: start; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; color: #d4e0ef; font-size: .92rem; padding-block: 20px 27px; }
.site-footer a { text-underline-offset: 3px; }
.site-legal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.privacy-shell { max-width: 780px; padding-block: clamp(22px, 5vw, 56px); }
.privacy-copy { padding: clamp(18px, 5vw, 44px); overflow-wrap: anywhere; }
.privacy-copy h1 { font-size: clamp(2rem, 6vw, 3.2rem); margin-bottom: 14px; }
.privacy-copy h2 { font-size: clamp(1.35rem, 3.9vw, 1.65rem); margin-bottom: 8px; }
.privacy-copy section { margin-top: 24px; }
.privacy-copy p + p { margin-top: 9px; }
.privacy-copy a { color: var(--rose); text-underline-offset: 3px; }
.cataway-public { padding-block: clamp(22px, 4.5vw, 54px); }
.site-island-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); align-items: center; gap: clamp(18px, 4vw, 50px); }
.site-island-intro h1, .site-play-intro h1 { font-size: clamp(2.1rem, 6vw, 4.1rem); color: #fff5d8; overflow-wrap: anywhere; }
.site-island-intro p { margin: 12px 0 22px; color: #d9e7f1; }
.site-island-intro img { width: 100%; height: auto; border-radius: 24px; border: 1px solid #7184a5; image-rendering: pixelated; }
.site-updates { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-top: 25px; }
.site-story-list, .site-play-guide { padding: clamp(17px, 3vw, 30px); overflow-wrap: anywhere; }
.site-story-list h2, .site-story-list h3, .site-play-guide h2 { margin-bottom: 7px; }
.site-story-list article { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.site-play-intro { display: grid; gap: 14px; }
#public-play { display: grid; gap: 12px; justify-items: start; }
#public-play iframe { display: block; width: 100%; height: max(550px, calc(100dvh - 120px)); border: 1px solid #7184a5; border-radius: 16px; }
.site-play-guide { margin-block-start: 22px; }
.site-play-guide p + p { margin-top: 8px; }
.site-ad { min-width: 0; width: min(100%, 970px); margin: 30px auto 0; padding-top: 12px; border-top: 1px solid #61758e; }
.site-play-intro ~ .site-ad { margin-top: 158px; }
.site-ad-label { color: #d8e7f3; font-size: .8rem; margin-bottom: 8px; text-align: center; }
.site-ad ins { display: block; width: 100%; }
#public-support { margin-block: 12px 18px; }
@media (max-width: 680px) { .site-island-intro, .site-updates { grid-template-columns: minmax(0,1fr); } }
.site-footer nav a { padding: 7px 10px; border-radius: 11px; background: #2c4564; }
.reset-shell { width: min(470px, calc(100% - 28px)); margin: 9dvh auto 40px; }
.reset-shell .site-brand { margin-bottom: 23px; }
.reset-shell h1 { font-size: 2.3rem; margin-bottom: 12px; }
.reset-shell .gate-stack p { color: var(--quiet); }
.reset-shell .notice { margin-top: 12px; }
.reset-shell .gate > a { margin-top: 12px; }
@media (max-width: 845px) {
  .site-top-inner { padding-block: 9px; flex-wrap: wrap; gap: 6px; }
  .site-top nav a { min-height: 39px; padding-inline: 8px; }
  .entrance { gap: 20px; }
}
@media (max-width: 670px) {
  .site-shell { width: calc(100% - 26px); }
  .entrance { grid-template-columns: 1fr; margin-top: 18px; gap: 14px; }
  .island-intro { padding-top: 0; }
  .island-intro h1 { font-size: clamp(2rem, 8vw, 3.4rem); }
  .island-intro > p { margin-top: 4px; }
  .island-portrait { margin-top: 10px; border-radius: 16px; }
  .island-portrait img { max-height: 212px; object-fit: contain; }
  .island-portrait figcaption { display: none; }
  .gate, .bulletin { border-radius: 19px; }
  .news-grid, .support-fields { grid-template-columns: 1fr; gap: 7px; }
  .site-top nav { gap: 0; }
}
