@charset "UTF-8";

:root {
  color-scheme: light;
  --forest: #153b35;
  --forest-deep: #102e29;
  --sea: #28685e;
  --sea-pale: #e9f1e9;
  --sand: #f4efe4;
  --paper: #fffdf8;
  --ink: #233d36;
  --muted: #65736a;
  --gold: #e7c789;
  --line: #e0e3d7;
  --error: #943f32;
  --shadow: 0 18px 55px #183a2b0b;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-padding-top: 20px; background:var(--forest); }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--sand); color: var(--ink); line-height: 1.55; }
/* Keep native panning in the game without page-pinch/double-tap scaling.
   The map's touch-action:none and its own pointer zoom remain independent.
   Public text pages, login and character forms keep normal browser zoom. */
html.game-fixed-viewport, html.game-fixed-viewport body { touch-action:pan-x pan-y; }
@media (any-pointer:coarse) {
  html.game-fixed-viewport :is(input:not([type=range]):not([type=checkbox]):not([type=radio]), select, textarea) { font-size:max(16px,1rem); }
}
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, select, summary { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: not-allowed; }
input, select, button, a { touch-action: manipulation; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
picture { display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.13; letter-spacing: -.035em; }
h1 { font-size: clamp(34px, 4.2vw, 58px); }
h2 { font-size: 29px; }
h3 { font-size: 16px; font-weight: 650; line-height: 1.4; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; }
button { border: 0; }
button, a, input, select, summary { outline-offset: 4px; }
:focus-visible { outline: 3px solid #b67c31; }
[hidden] { display: none !important; }
.icon { width: 22px; height: 22px; flex: 0 0 auto; }
.sr-only, .honeypot { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 16px; padding: 12px 18px; border-radius: 8px; background: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
main:focus { outline: none; }
.page-width { width: min(1220px, calc(100% - 64px)); margin-inline: auto; }
.muted, .quiet { color: var(--muted); }
.lead { font-size: 17px; line-height: 1.65; color: var(--muted); }
.small-label, .eyebrow { display: block; font-size: 11px; font-weight: 750; line-height: 1.5; letter-spacing: .16em; text-transform: uppercase; }
.small-label { color: #727f6c; }
.eyebrow { color: var(--sea); margin-bottom: 14px; }
.eyebrow.light { color: #f1d8a6; }
.centered { text-align: center; }
.status-dot { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: #88b39c; box-shadow: 0 0 0 4px #88b39c12; }

.site-header { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px max(32px, calc((100vw - 1360px) / 2)); padding-top: calc(18px + env(safe-area-inset-top, 0px)); background: var(--forest); color: var(--paper); }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; min-height: 48px; text-decoration: none; font-family: var(--serif); font-size: 30px; letter-spacing: -.03em; line-height: 1; }
.brand img { width: 40px; height: 40px; border-radius:31.25%; }
.brand-caption { display: block; margin-top: 6px; font: 9px/1.2 var(--sans); text-transform: uppercase; letter-spacing: .13em; color: #bed0be; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.alpha-badge { display: inline-flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 550; letter-spacing: .025em; color: #e2e6d5; white-space: nowrap; }
.site-footer { width: min(1360px, calc(100% - 64px)); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 0 auto; padding: 22px 0 max(26px, env(safe-area-inset-bottom)); font-size: 11px; color: #596b5d; }
.footer-separator { margin-inline: 10px; opacity: .5; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 0 20px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 0; color: #536c5e; text-decoration: none; font-size: 11px; }
.footer-links a:hover, .footer-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; color: var(--forest); }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 12px; border: 1px solid transparent; border-radius: 12px; padding: 12px 20px; font-size: 14px; font-weight: 650; line-height: 1.45; text-decoration: none; transition: background-color .18s, box-shadow .18s; }
.button-primary { background: var(--forest); color: #fffdf6; box-shadow: 0 4px 10px #183b3512; }
.button-primary:not(:disabled):hover { background: #24594c; box-shadow: 0 5px 18px #183b3524; }
.button-primary:disabled { background: #d4dbce; color: #657360; box-shadow: none; }
.button-full { width: 100%; }
.button-quiet { color: #e8eedf; background: transparent; border-color: #edf4e52b; min-height: 44px; padding: 9px 14px; }
.button-quiet:hover { background: #ffffff0d; }
.button.is-loading { opacity: .65; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 7px 0; background: transparent; color: var(--sea); font-size: 12px; font-weight: 650; line-height: 1.4; }
.text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-button:disabled { opacity: .4; text-decoration: none; }
.text-button .icon { width: 17px; height: 17px; }
.surface { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.form-error { border: 1px solid #e5c7b7; border-radius: 10px; padding: 12px 14px; background: #fff0e7; color: var(--error); font-size: 13px; overflow-wrap: anywhere; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; color: var(--ink); }
.field > span:first-child, .field-label { font-size: 12px; font-weight: 650; }
.field input, .field select { width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; border: 1px solid #cbd3c4; border-radius: 10px; background: #fffefb; color: var(--ink); font-size: 16px; line-height: 1.5; }
.field input::placeholder { color: #899082; font-size: 14px; }
.field input:focus, .field select:focus { border-color: var(--sea); }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid #8cb6a7; outline-offset: 2px; }
.field-hint { display: block; color: var(--muted); font-size: 11px; line-height: 1.6; font-weight: 400; }
.stack-form { display: flex; flex-direction: column; gap: 19px; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 58px; }
.password-toggle { position: absolute; inset: 3px 4px 3px auto; display: grid; width: 44px; min-height: 44px; place-items: center; border-radius: 8px; background: transparent; color: var(--muted); }
.password-toggle:hover, .password-toggle[aria-pressed="true"] { background: var(--sea-pale); color: var(--forest); }

.auth-layout { display: grid; grid-template-columns: 1.18fr 1fr; width: min(1360px, calc(100% - 64px)); margin: 34px auto 18px; overflow: hidden; background: var(--paper); border: 1px solid #dedfcf; border-radius: 25px; box-shadow: 0 16px 52px #36492d10; }
.welcome-scene { position: relative; min-width: 0; min-height: 700px; overflow: hidden; color: var(--paper); background: #324b3b; }
.welcome-scene picture, .welcome-scene img, .scene-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.welcome-scene img { object-fit: cover; object-position: 39% center; }
.scene-shade { background: linear-gradient(180deg, #153b353d, transparent 30%, #163a323b 54%, #102e29f0 100%); }
.scene-topline { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 30px 34px; }
.scene-coordinate { font-size: 8px; font-weight: 700; letter-spacing: .17em; text-shadow: 0 1px 6px #000; }
.scene-topline .icon { width: 26px; height: 26px; }
.scene-copy { position: absolute; inset: auto 40px 37px; }
.scene-copy h1 { font-size: clamp(43px, 4.7vw, 72px); line-height: 1.03; letter-spacing: -.045em; text-shadow: 0 2px 24px #0d2b3250; }
.scene-copy p { margin-top: 23px; color: #eeeede; line-height: 1.75; font-size: 15px; }
.scene-caption { display: inline-block; margin-top: 29px; padding-top: 14px; width: 100%; border-top: 1px solid #eef2de40; font-size: 10px; letter-spacing: .055em; color: #d9e4d1; }
.auth-panel { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 46px clamp(26px, 4vw, 62px); }
.panel-kicker { display: flex; align-items: center; gap: 8px; color: var(--sea); font-size: 9px; font-weight: 750; letter-spacing: .15em; margin-bottom: 19px; }
.panel-kicker .icon { width: 19px; height: 19px; }
.auth-panel h2 { font-size: clamp(29px, 2.8vw, 39px); }
.auth-intro { font-size: 13px; line-height: 1.7; margin-top: 12px; }
.auth-tabs { display: grid; grid-template-columns: .84fr 1.16fr; gap: 4px; padding: 4px; background: #edf0e7; border-radius: 11px; margin: 29px 0 27px; }
.auth-tabs button { min-height: 44px; padding: 10px 8px; background: transparent; border-radius: 8px; color: #6d796b; font-size: 12px; font-weight: 650; }
.auth-tabs button[aria-selected="true"] { background: var(--paper); color: var(--forest); box-shadow: 0 2px 7px #425b2a12; }
.auth-tabs button:hover { color: var(--forest); }
.refresh-state { align-self: center; color: #596b5d; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; margin: -9px 0 -5px; }
.alpha-note { display: flex; align-items: flex-start; gap: 11px; padding: 17px 15px; margin-top: 23px; background: #eef2e9; border: 1px solid #e0e8d8; border-radius: 12px; }
.alpha-note > .icon { width: 19px; height: 19px; margin-top: 2px; color: var(--sea); }
.alpha-note p { font-size: 11px; line-height: 1.75; color: #63715f; }
.alpha-note strong { display: block; color: var(--forest); font-size: 12px; margin-bottom: 2px; }
.auth-limit { margin-top: 16px; color: #596b5d; text-align: center; font-size: 10px; line-height: 1.7; }
.registration-closed { margin-top: 22px; padding: 15px; border: 1px solid #dfddc8; background: #f7f3e6; border-radius: 10px; font-size: 12px; color: #686c55; }
.auth-tabs button:disabled { opacity: .55; cursor: not-allowed; }
.auth-support { display: flex; justify-content: center; margin-top: 8px; }
.auth-next { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 25px; }
.resend-content, .activation-form { margin-top: 26px; }
.form-privacy { margin-top: 16px; text-align: center; color: #596b5d; font-size: 10px; line-height: 1.7; }
.form-privacy a { color: #486955; text-underline-offset: 3px; }
.mail-notice { margin-top: 24px; padding: 22px; border: 1px solid #d9e4cf; border-radius: 14px; background: #eef3e7; }
.mail-symbol { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 15px; border-radius: 12px; background: #dde8d1; color: var(--sea); }
.mail-notice > p:first-of-type { color: #466346; font-size: 13px; line-height: 1.85; }
.mail-notice ol { margin: 18px 0; padding-left: 20px; color: #64785d; font-size: 11px; line-height: 1.8; }
.mail-notice li + li { margin-top: 6px; }
.mail-notice .field-hint { font-size: 10px; }
.activation-panel > .form-error { margin-top: 20px; }
.activation-detail { margin-top: 23px; padding-top: 19px; border-top: 1px solid var(--line); }
.activation-detail p { font-size: 11px; color: #75806d; line-height: 1.8; }
.activation-detail .text-button { margin-top: 5px; }
.password-hint { margin-top: -11px; }
.legal-page { max-width: 850px; margin-top: 38px; margin-bottom: 24px; padding: 32px 46px 44px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.legal-back { margin-bottom: 25px; }
.legal-page > .eyebrow { font-size: 10px; }
.legal-page h1 { font-size: clamp(31px, 4vw, 47px); overflow-wrap: anywhere; }
.legal-content { margin-top: 25px; font-size: 15px; line-height: 1.8; color: #4a6155; overflow-wrap: anywhere; }
.legal-content h2 { margin: 34px 0 14px; color: var(--forest); font-size: 27px; line-height: 1.25; }
.legal-content h3 { margin: 25px 0 10px; color: var(--forest); font-size: 16px; }
.legal-content p + p { margin-top: 15px; }
.legal-content address { font: inherit; font-style: normal; margin: 16px 0; }
.legal-content ul, .legal-content ol { margin: 16px 0; padding-left: 22px; }
.legal-content li + li { margin-top: 7px; }
.legal-content a { color: #2a6d58; text-underline-offset: 4px; }
.legal-content code { padding: 2px 5px; border-radius: 4px; background: #edf1e6; font: 12px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.legal-content pre { max-width: 100%; overflow-x: auto; padding: 14px; border-radius: 9px; background: #edf1e6; }
.legal-content pre code { padding: 0; white-space: pre; }
.legal-content blockquote { margin: 20px 0; padding: 12px 18px; border-left: 3px solid #abc09a; background: #f1f4e9; }

.maintenance-layout { width: min(1360px, calc(100% - 64px)); margin: 34px auto 18px; display: grid; grid-template-columns: 1.18fr 1fr; overflow: hidden; border-radius: 25px; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.maintenance-art { min-height: 660px; position: relative; background: #395e43; }
.maintenance-art picture, .maintenance-art img { width: 100%; height: 100%; position: absolute; inset: 0; }
.maintenance-art img { object-fit: cover; object-position: 38% center; }
.maintenance-copy { align-self: center; padding: 52px clamp(30px, 4vw, 65px); }
.maintenance-copy h1 { font-size: clamp(35px, 3.8vw, 55px); }
.maintenance-copy .lead { margin-top: 22px; font-size: 15px; }
.maintenance-note { display: flex; align-items: center; gap: 12px; background: var(--sea-pale); border: 1px solid #d7e4d3; padding: 16px; border-radius: 12px; margin-top: 30px; font-size: 12px; }
.maintenance-copy .quiet { margin-top: 28px; font-size: 12px; line-height: 1.8; }
.maintenance-copy > .small-label { margin-top: 30px; font-size: 9px; }
.loading-state, .notice-panel { width: min(700px, calc(100% - 40px)); margin: 70px auto; padding: 42px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); }
.loading-state p, .notice-panel p { margin-top: 20px; color: var(--muted); }
.notice-panel .button { margin-top: 26px; }

.creator { padding-top: 43px; padding-bottom: 28px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.page-heading h1 { font-size: clamp(33px, 3.8vw, 49px); }
.page-heading .lead { margin-top: 13px; font-size: 14px; }
.step-complete { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding-bottom: 3px; font-size: 11px; color: var(--sea); }
.step-complete .icon { width: 18px; height: 18px; }
.creator-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
.character-preview { position: sticky; top: 24px; padding: 48px 24px 0; text-align: center; border-radius: 22px; border: 1px solid #d7ddc6; overflow: hidden; background: radial-gradient(ellipse at 50% 29%, #f1e5c8 0%, #ece4cd 44%, #e2e6d5 95%); }
.portrait-decoration { position: absolute; top: 20px; right: 19px; color: #aeb49b; }
.portrait-decoration .icon { width: 25px; height: 25px; }
#avatar-preview { max-width: 235px; margin: 0 auto 26px; }
.avatar-svg { width: 100%; height: auto; }
.character-preview h2 { margin-top: 9px; font-size: 30px; overflow-wrap: anywhere; }
#preview-archetype { color: #6d7967; font-size: 11px; margin-top: 11px; min-height: 36px; line-height: 1.6; }
.preview-foot { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 25px -24px 0; padding: 19px 15px; border-top: 1px solid #cfdbc426; background: #cedac748; font-size: 10px; color: #557052; }
.creator-controls { display: flex; flex-direction: column; gap: 21px; min-width: 0; }
.appearance-panel, .stats-panel { padding: 28px 30px; }
.section-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 27px; }
.section-number { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; background: var(--sea-pale); color: var(--sea); font-size: 10px; font-weight: 750; margin-top: 2px; }
.section-heading h2 { font-size: 28px; }
.section-heading p { font-size: 11px; color: var(--muted); margin-top: 5px; line-height: 1.7; }
.name-field { margin-bottom: 25px; }
.preset-picker { margin-bottom: 27px; border: 1px solid #e1e5d8; border-radius: 12px; }
.preset-picker summary { min-height: 48px; padding: 14px 16px; font-size: 12px; font-weight: 650; color: var(--forest); }
.preset-picker summary::marker { color: #71917c; }
.preset-selected { float: right; color: var(--muted); font-size: 11px; font-weight: 400; }
.preset-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; padding: 6px 12px 14px; max-height: 371px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c2cbb9 transparent; }
.preset-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; min-width: 0; min-height: 84px; padding: 4px 3px 8px; border-radius: 10px; background: #f8f6ef; border: 2px solid transparent; }
.preset-card .avatar-svg { max-width: 82px; }
.preset-card > span:not(.preset-check) { font-size: 10px; line-height: 1.5; font-weight: 600; }
.preset-card:hover { background: #edf0e6; }
.preset-card[aria-pressed="true"] { border-color: var(--sea); background: #e9f1e7; }
.preset-check { display: none; position: absolute; right: -5px; top: -5px; width: 19px; height: 19px; border-radius: 50%; background: var(--forest); color: #fff; padding: 3px; }
.preset-check .icon { width: 13px; height: 13px; }
.preset-card[aria-pressed="true"] .preset-check { display: block; }
.appearance-options legend { font-size: 12px; font-weight: 650; margin-bottom: 16px; }
.skin-field { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 19px; }
.skin-field .field-label { color: var(--muted); font-size: 11px; }
.skin-options { display: flex; flex-wrap: wrap; gap: 5px; }
.skin-choice { display: grid; position: relative; place-items: center; width: 44px; min-height: 44px; padding: 3px; border: 2px solid transparent; border-radius: 50%; background: transparent; }
.skin-choice > svg { width: 32px; height: 32px; }
.skin-choice[aria-pressed="true"] { border-color: var(--sea); }
.skin-tick { display: none; position: absolute; inset: 0; place-items: center; }
.skin-tick .icon { color: #fff; width: 18px; height: 18px; filter: drop-shadow(0 1px 2px #172d20a8); }
.skin-choice[aria-pressed="true"] .skin-tick { display: grid; }
.select-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.points-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; padding: 17px 19px; background: #eef2e7; border-radius: 12px; }
.points-summary strong { display: block; font-size: 14px; color: var(--forest); }
.points-summary span:not(.point-bead) { display: block; color: #74816a; font-size: 10px; margin-top: 1px; }
.points-beads { display: flex; gap: 5px; }
.point-bead { display: block; width: 10px; height: 19px; border: 1px solid #c6d1bb; border-radius: 4px; background: #ffffff80; }
.point-bead.is-filled { background: #538d72; border-color: #538d72; }
.stat-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 0; border-bottom: 1px solid #e8eadf; }
.stat-copy { min-width: 0; }
.stat-copy label { font-size: 13px; font-weight: 650; }
.stat-copy p { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.stat-stepper { display: flex; align-items: center; flex: 0 0 auto; gap: 2px; padding: 3px; border: 1px solid #dce3d4; border-radius: 12px; background: #f8f9f3; }
.stat-stepper button { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 8px; background: #e9efe4; color: var(--forest); }
.stat-stepper button:hover:not(:disabled) { background: #d8e5d1; }
.stat-stepper button:disabled { color: #bac4b2; background: transparent; }
.stat-stepper .icon { width: 16px; height: 16px; }
.stat-stepper output { width: 27px; text-align: center; font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
.stat-shortcuts { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 13px; }
.stat-shortcuts .text-button { font-size: 11px; }
.create-finish { display: flex; flex-direction: column; gap: 15px; padding: 0 8px 10px; }
.commit-hint { text-align: center; color: var(--muted); font-size: 11px; line-height: 1.8; max-width: 440px; margin: 0 auto; }
.create-finish .button { min-height: 52px; }
.create-finish .refresh-state { margin-top: 0; }

.camp-hero { min-height: 475px; height: min(55vw, 590px); position: relative; overflow: hidden; color: white; background: var(--forest); }
.camp-hero picture, .camp-hero img, .camp-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.camp-hero img { object-fit: cover; object-position: center 53%; }
.camp-shade { background: linear-gradient(90deg, #082f3180 0%, transparent 65%), linear-gradient(0deg, #123c33ed, #1d433420 64%, #23402e40); }
.camp-hero-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 25px; }
.location-badge { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border: 1px solid #f4eacf70; border-radius: 20px; background: #183e3280; font-size: 11px; backdrop-filter: blur(8px); }
.location-badge .icon { width: 17px; height: 17px; }
.camp-level { font-size: 11px; padding: 8px 13px; border-radius: 20px; background: #153b3580; backdrop-filter: blur(8px); }
.camp-hero-copy { position: absolute; left: 0; right: 0; bottom: 43px; }
.camp-hero-copy h1 { font-size: clamp(43px, 5vw, 68px); max-width: 800px; line-height: 1.02; text-wrap: balance; }
.camp-hero-copy h1 span { overflow-wrap: anywhere; }
.camp-hero-copy p { font-size: 14px; margin-top: 20px; color: #e8ecd9; }
.camp-content { padding-top: 27px; padding-bottom: 18px; }
.arrival-note { display: flex; gap: 10px; align-items: center; margin-bottom: 26px; padding: 13px 17px; background: #e9eee0; border: 1px solid #d8e3ca; border-radius: 10px; color: #5e7356; }
.arrival-note > .icon { color: #64935b; width: 18px; height: 18px; }
.arrival-note p { font-size: 12px; }
.arrival-note strong { color: var(--forest); font-weight: 650; }
.camp-grid { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 22px; align-items: start; }
.resident-card { grid-row: span 2; padding: 23px 23px 0; text-align: center; overflow: hidden; }
.resident-portrait { max-width: 205px; margin: 0 auto 14px; }
.resident-card h2 { margin-top: 8px; overflow-wrap: anywhere; font-size: 30px; }
.resident-card > .muted { font-size: 12px; margin-top: 7px; }
.character-metrics { display: grid; grid-template-columns: 1fr 1fr; margin: 28px 0 0; padding: 20px 0; border-top: 1px solid var(--line); }
.character-metrics > div + div { border-left: 1px solid var(--line); }
.character-metrics dt { display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--muted); font-size: 10px; }
.character-metrics dt .icon { width: 16px; height: 16px; }
.character-metrics dd { margin: 8px 0 0; font-size: 28px; line-height: 1.3; font-weight: 650; }
.character-metrics dd span { font-size: 11px; color: var(--muted); font-weight: 400; }
.idle-status { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 0 -23px; padding: 17px 10px; background: #f0f3e9; border-top: 1px solid #e0e7d7; font-size: 10px; color: #69815f; }
.inventory-card, .saved-stats { padding: 28px; }
.card-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 22px; }
.card-heading h2 { margin-top: 6px; }
.heading-icon { width: 28px; height: 28px; color: #91a78b; }
.inventory-row { display: flex; align-items: center; gap: 15px; padding: 18px 0; border-bottom: 1px solid #e9eadf; }
.inventory-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 auto; border: 1px solid #e4ddc8; border-radius: 13px; color: #8b7f55; background: #f4edd8; }
.inventory-wood { color: #8e704d; border-color: #e8ddc9; background: #f0e6d5; }
.inventory-stone { color: #778073; border-color: #dbe0d1; background: #ebeee4; }
.inventory-icon .icon { width: 25px; height: 25px; }
.inventory-row > div { min-width: 0; }
.inventory-row h3 { font-size: 14px; }
.inventory-row p { margin-top: 4px; color: var(--muted); font-size: 11px; }
.inventory-row > strong { font-size: 27px; margin-left: auto; padding-left: 12px; font-variant-numeric: tabular-nums; }
.inventory-caption { color: #798371; font-size: 10px; line-height: 1.8; margin-top: 18px; }
.empty-inventory { padding: 24px 0; font-size: 13px; }
.saved-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; row-gap: 21px; }
.saved-stat > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.saved-stat > div > span { font-size: 11px; font-weight: 550; }
.saved-stat strong { font-size: 17px; font-weight: 600; }
.stat-pips { display: flex; gap: 4px; margin-top: 7px; }
.stat-pips > span { height: 5px; border-radius: 5px; flex: 1 1 0; background: #e3e8da; }
.stat-pips > span.is-filled { background: #709b77; }
.alpha-outlook { display: flex; align-items: flex-start; gap: 24px; margin-top: 30px; padding: 29px 32px; border-radius: 18px; border: 1px solid #dce1ce; background: #e8ecde; }
.outlook-symbol { display: grid; place-items: center; flex: 0 0 auto; width: 50px; height: 50px; background: #f8f7e8; border: 1px solid #e0e4cf; border-radius: 50%; color: #788a60; }
.outlook-symbol .icon { width: 25px; height: 25px; }
.alpha-outlook h2 { font-size: 27px; margin-top: 8px; }
.alpha-outlook p { max-width: 850px; margin-top: 12px; color: #68735e; font-size: 12px; line-height: 1.85; }
.alpha-outlook .outlook-note { font-size: 11px; color: #567253; }
.camp-refresh { margin: 14px auto 0; text-align: center; }
.camp-refresh .form-error { max-width: 500px; margin: 6px auto; text-align: left; }

@media (min-width: 1500px) {
  .auth-layout, .maintenance-layout { margin-top: 50px; margin-bottom: 35px; }
  .welcome-scene { min-height: 760px; }
}

@media (max-width: 1050px) {
  .site-header { padding-inline: 26px; }
  .auth-layout, .maintenance-layout { width: calc(100% - 44px); }
  .auth-panel { padding: 37px 28px; }
  .scene-copy { inset-inline: 28px; }
  .scene-topline { padding-inline: 26px; }
  .creator-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 20px; }
  .appearance-panel, .stats-panel { padding: 24px; }
  .preset-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
  .camp-grid { grid-template-columns: 270px minmax(0, 1fr); gap: 18px; }
  .saved-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-complete { display: none; }
}

@media (max-width: 760px) {
  .site-header { min-height: 82px; padding: 15px 20px; padding-top: calc(15px + env(safe-area-inset-top, 0px)); gap: 12px; }
  .brand { font-size: 28px; gap: 10px; }
  .brand img { width: 36px; height: 36px; }
  .brand-caption { font-size: 8px; }
  .header-actions { gap: 10px; }
  .alpha-badge { font-size: 9px; gap: 7px; }
  .logout-button { padding: 9px 11px; min-width: 44px; min-height: 44px; }
  .logout-button .icon { width: 18px; height: 18px; }
  .logout-button span { display: none; }
  .page-width { width: calc(100% - 36px); }
  .site-footer { width: calc(100% - 40px); font-size: 9px; gap: 10px; padding-top: 17px; }
  .footer-links { width: 100%; order: 3; gap: 0 22px; }
  .auth-layout, .maintenance-layout { width: 100%; margin: 0 0 10px; grid-template-columns: 1fr; border: 0; border-radius: 0; box-shadow: none; }
  .welcome-scene { min-height: 370px; }
  .welcome-scene img { object-position: center 51%; }
  .scene-topline { padding: 19px 24px; }
  .scene-coordinate { font-size: 7px; }
  .scene-topline .icon { width: 23px; height: 23px; }
  .scene-copy { inset: auto 26px 26px; }
  .scene-copy .eyebrow { font-size: 9px; margin-bottom: 10px; }
  .scene-copy h1 { font-size: 49px; }
  .scene-copy p { margin-top: 15px; font-size: 12px; line-height: 1.7; }
  .scene-caption { display: none; }
  .auth-panel { padding: 29px 26px 30px; }
  .auth-panel h2 { font-size: 32px; }
  .auth-intro { margin-top: 10px; max-width: 480px; }
  .panel-kicker { margin-bottom: 12px; }
  .auth-tabs { margin-top: 24px; margin-bottom: 22px; }
  .alpha-note { margin-top: 22px; }
  .activation-layout .welcome-scene { min-height: 300px; }
  .activation-layout .scene-copy h1 { font-size: 43px; }
  .activation-layout .scene-copy p { display: none; }
  .activation-panel { padding-top: 28px; }
  .legal-page { padding: 26px 28px 34px; margin-top: 24px; border-radius: 17px; }
  .legal-content { font-size: 14px; line-height: 1.85; }
  .legal-content h2 { font-size: 25px; margin-top: 29px; }
  .legal-back { margin-bottom: 19px; }
  .maintenance-art { min-height: 345px; }
  .maintenance-art img { object-position: center 48%; }
  .maintenance-copy { padding: 33px 28px 40px; }
  .maintenance-copy h1 { max-width: 550px; font-size: 41px; }
  .maintenance-copy .eyebrow { font-size: 9px; }
  .maintenance-copy .lead { font-size: 14px; }
  .maintenance-note { margin-top: 24px; }
  .loading-state, .notice-panel { padding: 28px; margin: 35px auto; }
  .creator { padding-top: 30px; }
  .page-heading { margin-bottom: 25px; }
  .page-heading .eyebrow { font-size: 9px; }
  .page-heading h1 { max-width: 530px; font-size: 38px; }
  .page-heading .lead { font-size: 13px; line-height: 1.7; margin-top: 12px; }
  .creator-layout { grid-template-columns: 1fr; gap: 22px; }
  .character-preview { position: relative; top: auto; display: grid; grid-template-columns: minmax(100px, 145px) minmax(0, 1fr); gap: 0 22px; align-items: center; padding: 23px 24px 0; text-align: left; }
  #avatar-preview { grid-row: span 4; margin: 0; width: 100%; max-width: 145px; }
  .character-preview > .small-label { align-self: end; font-size: 9px; margin-top: 15px; }
  .character-preview h2 { font-size: 29px; align-self: start; margin-top: 6px; }
  #preview-archetype { font-size: 10px; min-height: 0; margin-top: 2px; align-self: start; }
  .preview-foot { grid-column: 1 / -1; margin: 18px -24px 0; padding: 13px 15px; font-size: 10px; }
  .portrait-decoration { top: 13px; right: 13px; }
  .portrait-decoration .icon { width: 21px; height: 21px; }
  .appearance-panel, .stats-panel { padding: 23px; border-radius: 17px; }
  .section-heading { margin-bottom: 24px; gap: 12px; }
  .section-heading h2 { font-size: 27px; }
  .section-heading p { font-size: 10px; }
  .preset-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); max-height: 340px; }
  .preset-card { min-height: 80px; }
  .camp-hero { min-height: 415px; height: 66vw; max-height: 520px; }
  .camp-hero img { object-position: 45% 50%; }
  .camp-hero-top { padding-top: 19px; }
  .camp-hero-copy { bottom: 29px; }
  .camp-hero-copy .eyebrow { font-size: 9px; margin-bottom: 12px; }
  .camp-hero-copy h1 { font-size: 45px; }
  .camp-hero-copy p { font-size: 12px; margin-top: 17px; }
  .camp-content { padding-top: 19px; }
  .arrival-note { align-items: flex-start; padding: 12px 14px; margin-bottom: 20px; }
  .arrival-note p { font-size: 11px; }
  .arrival-note .icon { margin-top: 2px; }
  .camp-grid { grid-template-columns: 1fr; gap: 18px; }
  .resident-card { grid-row: auto; display: grid; grid-template-columns: 120px minmax(0, 1fr); padding: 18px 22px 0; gap: 0 19px; text-align: left; }
  .resident-portrait { grid-row: 1 / 5; width: 120px; margin: 0; align-self: center; }
  .resident-card > .small-label { align-self: end; font-size: 9px; padding-top: 12px; }
  .resident-card h2 { font-size: 29px; margin-top: 7px; }
  .resident-card > .muted { font-size: 10px; margin-top: 5px; }
  .character-metrics { padding-top: 14px; padding-bottom: 19px; margin-top: 14px; grid-column: 2; }
  .character-metrics dt { justify-content: flex-start; gap: 4px; font-size: 9px; }
  .character-metrics dd { font-size: 23px; margin-top: 6px; }
  .character-metrics > div + div { padding-left: 16px; }
  .idle-status { grid-column: 1 / -1; margin: 0 -22px; padding: 12px; }
  .inventory-card, .saved-stats { padding: 24px; }
  .card-heading { margin-bottom: 15px; }
  .card-heading h2 { font-size: 29px; }
  .card-heading .small-label { font-size: 9px; }
  .inventory-row { padding-block: 16px; }
  .saved-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .alpha-outlook { padding: 22px; gap: 15px; margin-top: 22px; }
  .outlook-symbol { width: 36px; height: 36px; }
  .outlook-symbol .icon { width: 20px; height: 20px; }
  .alpha-outlook .small-label { font-size: 9px; }
  .alpha-outlook h2 { font-size: 25px; }
  .alpha-outlook p { font-size: 11px; }
}

@media (max-width: 480px) {
  .page-width { width: calc(100% - 30px); }
  .site-header { padding-inline: 18px; }
  .brand { font-size: 26px; gap: 9px; }
  .brand img { width: 34px; height: 34px; }
  .alpha-badge { font-size: 8px; }
  .welcome-scene { min-height: 332px; }
  .scene-copy { inset-inline: 24px; bottom: 24px; }
  .scene-copy h1 { font-size: 45px; }
  .auth-panel { padding-inline: 24px; }
  .auth-panel .button { font-size: 13px; }
  .auth-next { gap: 7px; }
  .mail-notice { padding: 18px; }
  .mail-notice > p:first-of-type { font-size: 12px; }
  .activation-layout .welcome-scene { min-height: 255px; }
  .activation-layout .scene-copy h1 { font-size: 38px; }
  .activation-layout .scene-copy .eyebrow { font-size: 8px; }
  .activation-layout .scene-coordinate { max-width: 200px; }
  .legal-page { width: calc(100% - 28px); padding: 24px 21px 29px; }
  .legal-page h1 { font-size: 33px; }
  .legal-content h2 { font-size: 24px; }
  .legal-content h3 { font-size: 15px; }
  .legal-content code { font-size: 11px; }
  .maintenance-art { min-height: 290px; }
  .maintenance-copy { padding: 30px 24px 35px; }
  .maintenance-copy h1 { font-size: 37px; }
  .maintenance-note { font-size: 11px; padding: 14px; }
  .character-preview { grid-template-columns: 113px minmax(0, 1fr); padding-inline: 18px; column-gap: 15px; }
  .character-preview h2 { font-size: 26px; }
  .preview-foot { margin-inline: -18px; }
  .appearance-panel, .stats-panel { padding: 21px 18px; }
  .section-heading h2 { font-size: 25px; }
  .section-number { width: 31px; height: 31px; }
  .preset-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; padding-inline: 10px; }
  .preset-card { min-height: 84px; }
  .skin-field { gap: 9px; }
  .skin-field > .field-label { width: 100%; }
  .select-row { gap: 11px; }
  .select-row select { padding-inline: 11px; font-size: 14px; }
  .points-summary { padding: 14px; }
  .points-summary strong { font-size: 13px; }
  .points-beads { gap: 3px; }
  .point-bead { width: 9px; height: 17px; }
  .stat-row { gap: 10px; padding-block: 15px; }
  .stat-copy label { font-size: 12px; }
  .stat-copy p { font-size: 10px; }
  .stat-stepper { padding: 1px; gap: 0; border-radius: 10px; }
  .stat-stepper output { width: 24px; font-size: 17px; }
  .stat-stepper button { width: 44px; }
  .stat-shortcuts { gap: 3px; }
  .stat-shortcuts .text-button { font-size: 10px; }
  .commit-hint { font-size: 10px; }
  .create-finish { padding-inline: 0; }
  .create-finish .button { padding-inline: 14px; font-size: 13px; }
  .camp-hero { min-height: 395px; }
  .camp-hero-copy h1 { font-size: 42px; }
  .resident-card { grid-template-columns: 105px minmax(0, 1fr); padding-inline: 17px; column-gap: 14px; }
  .resident-portrait { width: 105px; }
  .resident-card h2 { font-size: 26px; }
  .character-metrics { margin-top: 12px; }
  .character-metrics > div + div { padding-left: 9px; }
  .idle-status { margin-inline: -17px; }
  .inventory-card, .saved-stats { padding: 21px; }
  .inventory-row { gap: 12px; }
  .inventory-icon { width: 44px; height: 44px; }
  .inventory-row p { font-size: 10px; }
  .inventory-row > strong { font-size: 25px; padding-left: 3px; }
  .saved-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; }
  .alpha-outlook { display: block; padding: 24px 21px; }
  .outlook-symbol { margin-bottom: 14px; }
  .alpha-outlook h2 { font-size: 28px; max-width: 280px; }
}

@media (max-width: 360px) {
  .site-header { gap: 8px; }
  .header-actions.has-account .alpha-badge { display: none; }
  .auth-panel { padding-inline: 20px; }
  .auth-panel h2 { font-size: 29px; }
  .auth-panel .button { font-size: 12px; gap: 8px; padding-inline: 11px; }
  .auth-panel .button .icon { width: 19px; height: 19px; }
  .resident-card { grid-template-columns: 89px minmax(0, 1fr); column-gap: 12px; }
  .resident-portrait { width: 89px; }
  .resident-card h2 { font-size: 24px; }
  .site-footer { gap: 3px 10px; }
  .footer-links { column-gap: 18px; }
}

@media (max-height: 500px) and (orientation: landscape) and (max-width: 950px) {
  .welcome-scene { min-height: 280px; }
  .activation-layout .welcome-scene { min-height: 235px; }
  .scene-copy h1 { font-size: 40px; }
  .scene-copy p { font-size: 11px; margin-top: 12px; }
  .scene-copy .eyebrow { font-size: 8px; }
  .scene-caption { display: none; }
  .camp-hero { min-height: 330px; height: 80vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Optional, keyboard-accessible device login and illustrated HTTP error pages. */
.remember-choice { display:flex; align-items:flex-start; gap:12px; min-height:48px; cursor:pointer; font-size:14px; }
.remember-choice input { flex:0 0 20px; width:20px; height:20px; margin:3px 0 0; accent-color:var(--forest); }
.remember-choice small { display:block; margin-top:5px; color:var(--muted); font-size:12px; line-height:1.5; }
.error-layout { display:grid; grid-template-columns:1.15fr 1fr; margin-block:clamp(24px,6vw,80px); overflow:hidden; border-radius:24px; background:#fffdf6; box-shadow:0 8px 35px #193b3510; }
.error-art { min-height:350px; }
.error-art img { display:block; width:100%; height:100%; object-fit:cover; }
.error-panel { padding:clamp(24px,5vw,70px); align-self:center; }
.error-panel h1 { font:clamp(30px,4vw,48px)/1.12 var(--serif); margin:18px 0; overflow-wrap:break-word; }
.error-panel p { line-height:1.65; }
.error-panel .button { margin:12px 0; }
@media(max-width:700px) { .error-layout { grid-template-columns:1fr; width:calc(100% - 28px); } .error-art { min-height:0; height:190px; } .error-panel { padding:24px; } .error-panel .button { width:100%; } }

/* Compact topic choices: one shared preference per channel, 44 px touch targets. */
.game-notification-topics table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:.86rem}
.game-notification-topics th:first-child{width:34%;text-align:left}
.game-notification-topics thead th:nth-child(2){width:26%}
.game-notification-topics thead th:nth-child(3){width:18%}
.game-notification-topics thead th:nth-child(4){width:22%}
.game-notification-topics thead th:not(:first-child){font-size:.8rem;white-space:nowrap}
.game-notification-topics th,.game-notification-topics td{padding:.15rem .1rem;border-bottom:1px solid var(--line,#ded7bd);vertical-align:middle}
.game-notification-topics th{font-weight:600;overflow-wrap:anywhere}
.game-topic-choice{min-height:44px;display:flex;align-items:center;justify-content:center;cursor:pointer;margin:0}
.game-topic-choice input{width:21px;height:21px;margin:0;accent-color:#275549}
.game-notification-topics [role=status]:empty{display:none}

/* Public alpha landing: no trackers or externally hosted assets. */
.alpha-landing{margin:2rem auto 3rem;display:grid;grid-template-columns:1.2fr 1fr;gap:2rem;align-items:start}
.alpha-landing[hidden],#alpha-application-form[hidden]{display:none}
.alpha-intro h2{font-size:clamp(1.8rem,4vw,2.8rem);line-height:1.12;margin:.5rem 0 1rem}
.alpha-intro p{line-height:1.65}.alpha-features{display:grid;gap:.7rem}.alpha-features h3{margin:.4rem 0;font-size:1.1rem}.alpha-features p{margin:0}
.alpha-application{padding:clamp(1.2rem,3vw,2rem);scroll-margin-top:1rem}.alpha-application h2{margin:.5rem 0 1rem}.alpha-application textarea{font:inherit;min-height:100px;width:100%;padding:.8rem;border:1px solid #a7b8a3;border-radius:12px;background:#fffdf5;resize:vertical;color:#153b35}
.alpha-test-note{border-left:3px solid #c0a763;padding-left:1rem}.application-result{padding:1rem;border-radius:12px;background:#e5edda;line-height:1.6}.application-result.error{background:#fce9de}.alpha-application .form-privacy{font-size:.85rem}
@media(max-width:760px){.alpha-landing{grid-template-columns:1fr;gap:1rem;margin-top:1rem}.alpha-features{gap:.4rem}.alpha-application .button{width:100%}.footer-links{flex-wrap:wrap}}

/* Shared header geometry also applies before the game bundle is loaded. */
@media (max-width:760px) { .site-header {padding-top:calc(22px + env(safe-area-inset-top,0px));background:var(--forest);filter:none;-webkit-backdrop-filter:none;backdrop-filter:none} }

.auth-panel .button-primary { transition:box-shadow .18s ease; }

/* Returning players get a quiet public shell, not a second marketing page. */
.app-resume{width:min(100%,48rem);margin:0 auto;padding:clamp(1rem,4vw,2rem);min-height:10rem}
.app-resume-status{opacity:0;animation:resume-status .15s ease .8s forwards}
.app-resume-status:is(h1,h2),.app-resume-status h2{font-size:clamp(1.1rem,4vw,1.45rem);margin:.75rem 0;color:var(--ink,#153b35)}
.app-resume:has(#form-error[hidden]) [data-refresh]{display:none}
.app-resume:has(#form-error:not([hidden])) .app-resume-status{opacity:1;animation:none}
@keyframes resume-status{to{opacity:1}}
@media(prefers-reduced-motion:reduce){.app-resume-status{animation-duration:0s}}
