@font-face { font-family: "Cormorant Garamond"; src: url("./assets/fonts/cormorant.woff2") format("woff2"); font-style: normal; font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("./assets/fonts/cormorant-italic.woff2") format("woff2"); font-style: italic; font-weight: 500 700; font-display: swap; }
@font-face { font-family: Inter; src: url("./assets/fonts/inter.woff2") format("woff2"); font-style: normal; font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #172d25;
  --muted: #526057;
  --forest: #112b24;
  --forest-deep: #0b211b;
  --green: #285d4e;
  --gold: #e9be7e;
  --ivory: #f7f3e9;
  --paper: #f9f6ed;
  --line: #dcd6c7;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 14px/1.55 var(--body); }
body:has(dialog[open]) { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding-left: 1.25em; }
:focus-visible { outline: 3px solid #b36d28; outline-offset: 4px; }
[hidden] { display: none !important; }
[data-icon], .icon { display: inline-flex; flex: none; align-items: center; justify-content: center; vertical-align: middle; }
.icon { width: 18px; height: 18px; }
.wrap { width: min(1264px, calc(100% - 108px)); margin-inline: auto; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 3; padding: 12px; background: white; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }

.site-header { background: #102821; color: #f3ecd9; border-bottom: 1px solid #73978342; }
.header-inner { width: min(1376px, calc(100% - 80px)); height: 70px; margin: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 23px; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; color: #f2eddf; }
.brand span { font: 700 23px/.95 var(--display); letter-spacing: -.015em; white-space: nowrap; }
.site-header nav { display: flex; height: 100%; align-items: stretch; gap: 29px; white-space: nowrap; }
.site-header nav > * { border: 0; background: transparent; color: #d1d9cf; padding: 0 2px; position: relative; font: 600 12px/1 var(--body); display: inline-flex; align-items: center; }
.site-header nav > *:hover, .site-header nav [aria-current] { color: #f3cd95; }
.site-header nav [aria-current]::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: #dcab69; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.text-button { border: 0; background: none; padding: 4px 0; font-weight: 600; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.sign-in { white-space: nowrap; color: #e9e8dc; font-size: 12px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 47px; padding: 10px 17px; border-radius: 7px; border: 1px solid transparent; font: 700 12px/1.2 var(--body); white-space: nowrap; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.button:hover { transform: translateY(-1px); }
.button-small { min-height: 36px; padding: 7px 11px; gap: 7px; }
.button-small .icon { width: 15px; height: 15px; }
.button-outline { border-color: #708574; background: #28433955; color: #efecd9; }
.button-outline:hover, .button-glass:hover { background: #35564c; border-color: #aebdad; }
.button-gold { background: #ebc58d; color: #193127; border-color: #f0d29f; box-shadow: 0 2px 8px #0003; }
.button-gold:hover { background: #f6d5a3; }
.button-gold [data-icon="arrow"] { margin-left: 3px; }
.button-glass { color: #f7f4e8; border-color: #87968a; background: #13272185; }
.button-light { color: #294e41; background: #fdfaf2; border-color: #d5d2c4; min-height: 39px; }
.button-light:hover { border-color: #6b8f7e; background: #eef1e7; }
.button-green { background: #285849; color: #fffcf0; border-color: #285849; }
.button-green:hover { background: #174337; }

.hero { position: relative; isolation: isolate; min-height: 440px; color: #f8f1df; background: #1b3830 url("./assets/hero.webp") 52% 53% / cover no-repeat; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #091b16d9 0%, #0b2019b5 27%, #1129222c 64%, #071c1200 100%), linear-gradient(0deg,#101f18a0,transparent 30%); }
.hero-inner { min-height: inherit; position: relative; display: flex; align-items: center; padding-block: 42px 48px; }
.hero-copy { width: min(100%, 600px); }
.eyebrow { text-transform: uppercase; letter-spacing: .19em; color: #527267; font: 700 10px/1.5 var(--body); display: flex; align-items: center; gap: 8px; }
.eyebrow .icon { width: 13px; height: 13px; }
.hero-eyebrow { color: #efd097; letter-spacing: .22em; margin-bottom: 13px; }
.hero-eyebrow .icon { width: 17px; height: 17px; }
.hero h1 { font: 700 clamp(64px, 7vw, 99px)/.82 var(--display); letter-spacing: -.045em; margin: 0 0 19px -4px; text-shadow: 0 3px 24px #07150f95; }
.hero h1 em { font-weight: 600; color: #f0ca91; }
.hero-description { font-size: 15px; line-height: 1.66; color: #f0eee2; max-width: 440px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.hero-location { position: absolute; bottom: 19px; right: 0; display: flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 4px; background: #142b22c7; color: #f5ebd5; font-size: 10px; letter-spacing: .045em; }
.hero-location .icon { width: 13px; height: 13px; color: #efc686; }
.hero-location b { margin-inline: 4px; color: #edc58d; }
.guild-status { background: #e8eee3; border-bottom: 1px solid #d6ded2; color: #345649; }
.status-inner { display: flex; align-items: center; gap: 20px; min-height: 48px; font-size: 11px; font-weight: 650; }
.status-inner > span:not(.status-divider), .status-inner button { display: flex; align-items: center; gap: 7px; }
.status-inner button { border: 0; padding: 4px 0; background: none; font-size: inherit; }
.status-inner button:hover { color: #102b23; }
.status-inner .icon { width: 14px; height: 14px; }
.status-inner i { width: 7px; height: 7px; border-radius: 50%; background: #4d8569; box-shadow: 0 0 0 3px #c7dccb; margin-inline: 3px; flex: none; }
.status-divider { height: 16px; width: 1px; background: #c4d0c4; flex: none; }

.board { padding-block: 36px 49px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.section-heading h2 { margin: 1px 0 3px; font: 700 clamp(38px,4vw,54px)/.96 var(--display); letter-spacing: -.035em; }
.section-heading p:not(.eyebrow) { color: var(--muted); font-size: 13px; }
.board-grid { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(276px, 1fr); gap: 20px; }
.featured { --featured-art:url("./assets/puppies.webp"); isolation: isolate; min-height: 302px; display: flex; align-items: flex-end; position: relative; color: #fcf6e7; overflow: hidden; border-radius: 12px; background: #0d241b var(--featured-art) 52% 52% / cover no-repeat; }
.featured::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#0b2119fa,#0b2119dc 26%,#0b211963 57%,transparent 86%), linear-gradient(0deg,#071b148c,transparent 58%); }
.featured-content { width: min(100%, 425px); padding: 24px 26px; }
.featured-tag { display: flex; gap: 6px; align-items: center; font-weight: 700; text-transform: uppercase; font-size: 9px; letter-spacing: .13em; color: #f7d6a3; margin-bottom: 8px; }
.featured-tag .icon { width: 13px; height: 13px; }
.featured h3 { font: 700 clamp(30px,3.6vw,49px)/.94 var(--display); letter-spacing: -.025em; text-shadow: 0 2px 10px #0009; margin-bottom: 9px; }
.featured p { color: #f0ebdb; max-width: 276px; font-size: 12px; }
.feature-tools { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 14px; color: #eee4cd; font-size: 10px; font-weight: 600; }
.feature-tools span { display: inline-flex; align-items: center; gap: 5px; }
.feature-tools .icon { width: 13px; height: 13px; color: #f2c991; }
.featured .button { min-height: 36px; padding: 6px 11px; }
.featured .button .icon { width: 15px; height: 15px; }
.dispatches { padding: 15px 17px 13px; border-radius: 12px; border: 1px solid #e0dace; background: #fffdf7; min-width: 0; }
.dispatch-heading { display: flex; align-items: center; gap: 9px; padding: 1px 1px 11px; }
.dispatch-heading .icon { color: #477667; }
.dispatch-heading h3 { font: 700 24px/1 var(--display); }
.dispatch { min-height: 69px; width: 100%; display: grid; grid-template-columns: 60px minmax(0,1fr) auto; text-align: left; align-items: center; gap: 11px; border: 0; border-top: 1px solid #e9e2d7; padding: 9px 1px; background: transparent; }
.dispatch:hover { background: #f2f4e9; }
.dispatch img { width: 60px; height: 48px; border-radius: 5px; object-fit: cover; background: #d2d8c9; }
.dispatch strong { display: block; font: 700 20px/.95 var(--display); margin-bottom: 4px; }
.dispatch small { display: block; color: #526658; font-size: 10px; }
.dispatch > [data-icon] { color: #577568; }
.dispatch .icon { width: 15px; height: 15px; }

.atlas-section { padding: 37px 0 58px; border-top: 1px solid #e1e1d2; background: #eaeee3; }
.atlas-section .section-heading { margin-bottom: 21px; }
.island-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 15px; }
.island-tile { color: #f8f1df; border: 0; border-radius: 9px; padding: 0; background: #21463b; overflow: hidden; position: relative; isolation: isolate; text-align: left; min-height: 172px; display: flex; align-items: end; width: 100%; }
.island-tile img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; z-index: -2; transition: transform .25s ease; }
.island-tile:hover img { transform: scale(1.06); }
.island-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,#0b201beb 4%,#102b2040 65%,transparent); z-index: -1; }
.island-label { padding: 12px; width: 100%; }
.island-label small { display: block; color: #f1c88a; text-transform: uppercase; font-size: 8px; font-weight: 700; letter-spacing: .11em; margin-bottom: 2px; }
.island-label strong { display: flex; align-items: center; justify-content: space-between; gap: 3px; font: 700 23px/.96 var(--display); }
.island-label .icon { width: 14px; height: 14px; }
.site-footer { background: var(--forest); color: #e9eadc; padding: 19px 0; }
.footer-inner { display: flex; align-items: center; gap: 24px; }
.footer-inner > :first-child { margin-right: auto; }
.footer-inner .text-button { font-size: 12px; }

dialog { border: 1px solid #d0c5ac; border-radius: 13px; padding: 0; overflow: auto; color: var(--ink); background: var(--paper); width: min(550px, calc(100% - 28px)); max-height: min(92vh, 900px); box-shadow: 0 20px 75px #07171072; }
dialog::backdrop { background: #081b16cc; backdrop-filter: blur(4px); }
dialog.wide { width: min(810px, calc(100% - 28px)); }
dialog.scene-modal { width: min(1100px, calc(100% - 24px)); background: #112b24; border-color: #658777; }
dialog.scene-modal > .modal-close { display: none; }
.modal-close { position: absolute; z-index: 5; top: 12px; right: 12px; }
.icon-button { width: 35px; height: 35px; display: inline-grid; place-items: center; border: 1px solid #d7d9cb; background: #f9f6eb; color: #244238; border-radius: 50%; }
.icon-button:hover { background: #e7efe1; }
.panel { padding: 28px; }
.panel-title { font: 700 40px/.95 var(--display); letter-spacing: -.02em; margin: 3px 42px 8px 0; }
.panel p + p, .panel p + .panel-actions { margin-top: 12px; }
.panel-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.panel-actions .text-button { color: #2b6554; margin-inline: 5px; }
.panel-note { color: var(--muted); font-size: 12px; }
.panel-image { width: 100%; height: clamp(140px, 30vw, 265px); object-fit: cover; background: #1c3b31; }
.pills { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0; }
.pill { border-radius: 30px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; background: #e5ece0; border: 1px solid #d2dfd1; color: #315247; font: 600 10px/1.2 var(--body); }
.form { display: grid; gap: 11px; margin-top: 16px; }
.form label { display: grid; gap: 4px; color: #264a3d; font-weight: 600; font-size: 12px; }
.form input, .form select { border: 1px solid #bdcbbe; background: #fffdf7; color: var(--ink); border-radius: 6px; min-height: 40px; width: 100%; padding: 7px 9px; }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form legend { font-size: 12px; font-weight: 700; margin-bottom: 5px; color: #264a3d; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-error { color: #9b3724; font-size: 12px; min-height: 1em; }
.modal-list { list-style: none; padding: 0; margin-top: 15px; }
.modal-list .dispatch { grid-template-columns: 76px minmax(0,1fr) auto; }
.modal-list .dispatch img { width: 76px; }
.character-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.character-choice { position: relative; display: block !important; border: 1px solid #d0d5c7; border-radius: 7px; padding: 0 0 6px; background: #fdfaf1; cursor: pointer; overflow: hidden; }
.character-choice:has(:checked) { border-color: #3a735e; background: #e1ebdc; box-shadow: 0 0 0 1px #3a735e; }
.character-choice:focus-within { outline: 2px solid #9c6b34; outline-offset: 2px; }
.character-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.character-choice img { height: clamp(56px,15vw,100px); width: 100%; object-fit: cover; object-position: center 34%; background: #ccd8c9; margin-bottom: 4px; }
.character-choice strong, .character-choice small { display: block; padding: 0 5px; text-align: center; }
.character-choice small { font-size: 9px; color: #4b6558; }
#toast { position: fixed; z-index: 6; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 8px 13px; max-width: calc(100% - 28px); border-radius: 6px; background: #1b4135; color: #fff6e3; font-size: 12px; box-shadow: 0 5px 16px #0004; pointer-events: none; }
#toast:empty { display: none; }
.map-grid { position: relative; min-height: 386px; margin-top: 12px; border-radius: 9px; overflow: hidden; background-color: #dfece4; background-image: linear-gradient(#7f9c8a33 1px,transparent 1px),linear-gradient(90deg,#7f9c8a33 1px,transparent 1px); background-size: 10% 12.5%; border: 1px solid #9eb7aa; }
.map-point { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%,-50%); display: grid; justify-items: center; gap: 2px; border: 0; padding: 1px; background: transparent; font-size: 10px; font-weight: 700; text-align: center; color: #153e33; line-height: 1; }
.map-point img { width: 42px; height: 34px; object-fit: cover; border-radius: 50%; border: 1px solid #faf0d5; box-shadow: 0 1px 5px #20362e59; background: #42685c; }
.map-point:hover img, .map-point:focus-visible img { outline: 2px solid #a9732f; }
.map-compass { position: absolute; bottom: 10px; right: 10px; display: grid; justify-items: center; font-size: 10px; font-weight: 700; color: #46685c; }
.map-compass .icon { width: 29px; height: 29px; }
.journal-case { padding: 10px 0; border-top: 1px solid var(--line); }
.journal-case h3 { font: 700 23px/1 var(--display); margin-bottom: 5px; }
.journal-case ul { color: var(--muted); font-size: 12px; }
.party-mode { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px; }
.party-mode h3 { font: 700 23px/1.1 var(--display); margin-bottom: 5px; }
.party-code { font-size: 22px; letter-spacing: .15em; font-weight: 700; }
.party-roster { display: grid; gap: 3px; margin: 8px 0; padding-left: 16px; }
.party-messages { margin: 8px 0; font-size: 12px; }

@media (max-width: 1060px) {
  .wrap { width: min(100% - 68px,1264px); }
  .header-inner { width: calc(100% - 44px); gap: 13px; }
  .header-actions { gap: 11px; }
  .site-header nav { gap: 17px; }
  .island-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 750px) {
  .wrap { width: calc(100% - 34px); }
  .header-inner { width: calc(100% - 30px); height: auto; min-height: 62px; grid-template-columns: 1fr auto; gap: 0 10px; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; min-height: 38px; justify-content: center; gap: 26px; }
  .site-header nav > * { font-size: 11px; }
  .header-actions { min-height: 57px; }
  .brand span { font-size: 21px; }
  .brand img { width: 29px; height: 29px; }
  .hero { min-height: 409px; background-position: 63% 52%; }
  .hero::before { background: linear-gradient(90deg,#0a1d18e6,#0a211a9c 52%,#0a1e1936),linear-gradient(0deg,#091d17a6,transparent 28%); }
  .hero-inner { padding-block: 35px 56px; }
  .hero h1 { margin-left: -1px; font-size: clamp(58px,12vw,82px); }
  .hero-location { right: 0; bottom: 13px; }
  .board { padding-block: 29px 31px; }
  .board-grid { grid-template-columns: minmax(0,1fr); gap: 13px; }
  .featured { min-height: 272px; }
  .featured-content { padding: 18px; }
  .island-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
  .island-tile { min-height: 127px; }
  .island-label { padding: 8px; }
  .island-label strong { font-size: 20px; }
  .atlas-section { padding-block: 28px 37px; }
}
@media (max-width: 450px) {
  .brand { gap: 5px; }
  .brand span { font-size: 19px; }
  .header-actions { gap: 7px; }
  .header-actions .button { font-size: 10px; gap: 4px; padding-inline: 6px; }
  .sign-in { font-size: 10px; }
  .hero { min-height: 390px; }
  .hero h1 { font-size: clamp(53px,13vw,65px); }
  .hero-description { max-width: 260px; font-size: 13px; }
  .desktop-break { display: none; }
  .hero-actions { margin-top: 20px; gap: 7px; }
  .hero-actions .button { font-size: 10px; padding-inline: 8px; min-height: 40px; gap: 4px; }
  .hero-actions .icon { width: 14px; height: 14px; }
  .status-inner { gap: 8px 10px; flex-wrap: wrap; padding-block: 10px; font-size: 10px; }
  .status-inner .status-divider:nth-of-type(4) { display: none; }
  .section-heading .button { font-size: 10px; padding-inline: 8px; gap: 4px; }
  .section-heading .button .icon { width: 14px; height: 14px; }
  .section-heading p:not(.eyebrow) { font-size: 12px; }
  .featured { background-position: 55% 50%; }
  .featured::before { background: linear-gradient(90deg,#0b2119fa,#0b2119be 54%,#0b211925),linear-gradient(0deg,#071b14a6,transparent 65%); }
  .featured-content { width: 83%; }
  .island-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-inner { flex-wrap: wrap; gap: 5px 12px; }
  .footer-inner > :first-child { width: 100%; }
  .panel { padding: 20px 16px; }
  .panel-title { font-size: 34px; }
  .map-grid { min-height: 365px; }
  .map-point { font-size: 8px; }
  .map-point img { width: 31px; height: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
.walk-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.case-team-status { padding: 7px 16px; color: #274f42; background: #e4ece0; font-size: 12px; font-weight: 700; }
.scene-modal .panel { color: #f4eedc; }
.inline-link { color: #285849; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pill .icon { width: 12px; height: 12px; }
#explorer-label { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 450px) { #explorer-label { max-width: 65px; } }
.featured-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
dialog.adventure-modal {
  width: min(1600px, 100vw);
  height: min(1000px, 100dvh);
  max-width: none;
  max-height: none;
  overflow: hidden;
  color: #fff4dc;
  background: #112b24;
  border: none;
}
dialog.adventure-modal #modal-body, .adventure-host { position: relative; width: 100%; height: 100%; }
dialog.adventure-active > .modal-close { display: none; }
@media (max-width: 750px) { dialog.adventure-modal { border-radius: 0; } }
.credit-list { display: grid; gap: 8px; }
