:root {
  color-scheme: dark;
  --background: #081822;
  --surface: #122632;
  --raised: #1c3541;
  --text: #fff8ee;
  --muted: #c0cbd0;
  --accent: #f3d29c;
  --pink: #ff987f;
  --border: #b4d5d826;
  --champagne-border: #e6cb9440;
  --display-font: 'Iowan Old Style', 'Baskerville', 'Noto Serif', Georgia, serif;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 100%;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: radial-gradient(ellipse at 68% -8%, #214957 0%, transparent 54rem), linear-gradient(150deg, #0c202a, var(--background) 55%); min-height: 100vh; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { text-decoration: none; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.site-header { border-bottom: 1px solid var(--champagne-border); background: #081922de; }
.header-inner, .shell { width: min(100% - 5rem, 86rem); margin-inline: auto; }
.header-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; min-height: 4.8rem; gap: 1.1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.brand strong { display: block; font-size: 1.25rem; line-height: 1.25; letter-spacing: .14em; white-space: nowrap; }
:lang(en) .brand strong { font-family: var(--display-font); font-size: 1.42rem; letter-spacing: .02em; }
.brand small { display: block; color: var(--accent); font-size: .72rem; letter-spacing: .23em; margin-top: .12rem; }
.brand-mark { flex-shrink: 0; width: 3rem; height: 3rem; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
nav { display: flex; align-items: center; justify-content: center; gap: clamp(.72rem, 2.2vw, 2rem); color: var(--muted); font-size: .94rem; }
nav a { padding-block: 1.15rem; transition: color .18s; white-space: nowrap; }
nav a:hover { color: var(--accent); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: .56rem; min-width: 0; }
.language-switch { display: inline-flex; align-items: center; flex-shrink: 0; padding: .16rem; border: 1px solid var(--champagne-border); border-radius: .55rem; background: #081822a8; color: var(--muted); }
.language-switch a { display: grid; place-items: center; min-width: 2rem; min-height: 1.84rem; padding: .12rem .38rem; border-radius: .37rem; font-size: .875rem; line-height: 1; white-space: nowrap; }
.language-switch a:hover { color: var(--text); }
.language-switch a[aria-current="page"] { background: #d7b57a26; color: #ffe5b9; }
.wallet { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.5rem; padding: .42rem .76rem; border: 1px solid #ffd39353; border-radius: 999px; background: #ffd3930d; color: #ffdda6; font-size: .88rem; white-space: nowrap; }
.wallet strong { font-size: 1.03rem; font-variant-numeric: tabular-nums; }
.coin { display: inline-block; flex-shrink: 0; width: 1rem; height: 1rem; border-radius: 50%; border: 1px solid #ffe2a1; background: radial-gradient(circle at 40% 34%, #ffeab5, #e5a340 68%, #ae7324); box-shadow: inset 0 0 0 2px #cf882d, 0 0 .65rem #ffcd7258; }
.profile-button { background: #ffffff08; border: 1px solid var(--border); border-radius: 999px; padding: .58rem 1rem; font-size: .94rem; flex-shrink: 0; }
.profile-button .profile-icon { color: var(--accent); margin-right: .24rem; }
.profile-button:hover { background: #ffffff12; }
.shell { padding: clamp(1.3rem, 3vw, 2.7rem) 0 4rem; }
.community-heading { display: flex; flex-wrap: wrap; gap: .42rem 1.5rem; align-items: baseline; justify-content: space-between; margin-bottom: clamp(.88rem, 2vw, 1.55rem); }
.community-heading h1 { margin: 0; color: #fff3db; font-size: clamp(2.15rem, 5.6vw, 4.65rem); font-weight: 740; line-height: 1.04; letter-spacing: -.035em; }
:lang(en) .community-heading h1 { font-family: var(--display-font); font-weight: 560; }
.community-heading p { margin: 0; color: var(--muted); font-size: clamp(.94rem, 1.4vw, 1.08rem); line-height: 1.55; }
.community-stage { display: grid; grid-template: "map detail" auto "locations detail" auto / minmax(0, 1fr) minmax(15rem, 24%); border: 1px solid #e9cc9069; border-radius: 1.14rem; overflow: hidden; background: #122834; box-shadow: 0 1.25rem 3.4rem #050f175e; }
.community-map { grid-area: map; position: relative; isolation: isolate; aspect-ratio: 1.8; width: 100%; background: #1a3d54 url("assets/community.jpg") center / 100% 100% no-repeat; }
.community-map::after { position: absolute; inset: 0; z-index: -1; pointer-events: none; content: ""; box-shadow: inset 0 0 clamp(1rem, 4vw, 3.7rem) #061a2a60; }
.map-pin { position: absolute; top: var(--pin-y); left: var(--pin-x); z-index: 1; display: grid; justify-items: center; gap: .23rem; min-width: 2.8rem; min-height: 2.8rem; padding: 0; transform: translate(-50%, -1.4rem); border: 0; border-radius: .55rem; background: none; color: #fff8ee; text-align: center; }
.map-pin:hover, .map-pin:focus-visible, .map-pin[aria-pressed="true"] { z-index: 2; }
.map-pin-icon { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border: 1px solid #ffedc8d9; border-radius: 50%; background: #0c2534eb; box-shadow: 0 .22rem .8rem #06131f9c, inset 0 0 0 2px #fcdfa923; color: #ffe3b4; font-size: 1.18rem; font-weight: 760; line-height: 1; transition: transform .18s, background .18s; }
.map-pin:hover .map-pin-icon { transform: scale(1.08); }
.map-pin[aria-pressed="true"] .map-pin-icon { border-color: #fff0cb; background: linear-gradient(145deg, #ffeac0, #d9ac75); box-shadow: 0 0 0 4px #ffe9b575, 0 .18rem .7rem #061320a3; color: #242423; }
.map-pin-label { max-width: 11rem; padding: .18rem .46rem; overflow: hidden; text-overflow: ellipsis; border: 1px solid #efdcaf4a; border-radius: .3rem; background: #0c222dec; font-size: .875rem; font-weight: 675; line-height: 1.35; white-space: nowrap; }
.map-pin[aria-pressed="true"] .map-pin-label { border-color: #ffdda682; color: #ffe3b4; }
.community-locations { grid-area: locations; display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; padding: .72rem .86rem; border-top: 1px solid #ddd4ac35; background: #0f222e; }
.community-locations:empty { display: none; }
.map-location-button { min-height: 2.28rem; padding: .32rem .68rem; border: 1px solid var(--border); border-radius: 100vmax; background: #17323e; color: var(--muted); font-size: .875rem; line-height: 1.3; }
.map-location-button:hover { color: var(--text); border-color: #ffda9b8c; }
.map-location-button[aria-pressed="true"] { border-color: #ffda9b80; background: #dbc18b24; color: #ffe5b4; }
.community-detail { grid-area: detail; display: grid; align-content: start; gap: clamp(.85rem, 2vw, 1.28rem); min-width: 0; padding: clamp(.85rem, 1.65vw, 1.38rem); border-left: 1px solid var(--champagne-border); background: radial-gradient(ellipse at top right, #3a5b5b55, transparent 84%), #112732; }
.community-detail:empty { visibility: hidden; }
.community-detail img { display: block; width: 100%; aspect-ratio: 1.28; border: 1px solid #e6cb944a; border-radius: .7rem; object-fit: cover; box-shadow: 0 .32rem 1.15rem #06111a48; }
.community-detail :is(h2, p) { margin: 0; }
.community-detail .map-location-type { color: var(--accent); font-size: .875rem; font-weight: 660; }
.community-detail h2 { margin-block: .28rem .55rem; font-size: clamp(1.25rem, 2.15vw, 1.95rem); line-height: 1.16; }
:lang(en) .community-detail h2 { font-family: var(--display-font); font-weight: 620; }
.community-detail p { color: var(--muted); font-size: .95rem; line-height: 1.58; }
.community-detail .actions { margin-top: .95rem; }
.nightlife-panel { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .85rem 1.15rem; min-height: 8.55rem; margin-top: 1.2rem; padding: 1.14rem clamp(1rem, 2.4vw, 1.9rem); overflow: hidden; border: 1px solid var(--champagne-border); border-radius: 1rem; background: #19222c; }
.nightlife-panel::before { position: absolute; inset: 0; z-index: -1; content: ""; background: linear-gradient(90deg, #16232a 8%, #182630f8 40%, #1826319c 100%), url("assets/rooftop.jpg") right 48% / min(62%, 52rem) auto no-repeat; }
.nightlife-event :is(h2, p), .nightlife-cta p { margin: 0; }
.nightlife-event .nightlife-label { color: var(--accent); font-size: .875rem; font-weight: 680; }
.nightlife-event h2 { margin-block: .18rem .32rem; font-size: clamp(1.37rem, 2.5vw, 1.95rem); line-height: 1.2; }
:lang(en) .nightlife-event h2 { font-family: var(--display-font); }
.nightlife-event p:last-child, .nightlife-cta p { color: #e8d7df; font-size: .9rem; line-height: 1.5; }
.nightlife-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .56rem .8rem; }
.nightlife-cta .button { white-space: nowrap; }
.actions { display: flex; gap: .65rem; flex-wrap: wrap; }
.button { min-height: 2.85rem; border-radius: .65rem; padding: .68rem .95rem; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font-size: .94rem; font-weight: 650; transition: background .18s, transform .18s, border-color .18s; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(1px); }
.button:disabled { cursor: default; opacity: .62; transform: none; }
.primary { background: linear-gradient(115deg, #fce3ad, #d6ad76); color: #242622; }
.primary:hover { background: #ffe8bb; }
.glass { border-color: #ffffff42; background: #17323e83; backdrop-filter: blur(12px); }
.glass:hover, .subtle:hover { background: #ffffff13; border-color: #ffffff46; }
.subtle { background: #ffffff06; border-color: var(--border); }
.button.danger { color: #ffc0ae; border-color: #ff987f51; }
.economy { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(14rem, 1fr) auto; gap: clamp(.9rem, 2.6vw, 2.25rem); align-items: center; margin-top: 1rem; padding: .97rem 1.15rem; border: 1px solid var(--champagne-border); border-radius: 1rem; background: radial-gradient(ellipse at top left, #36545665, transparent 58%), #122832; }
.economy-goal { min-width: 0; }
.economy-goal-heading { display: flex; align-items: baseline; gap: .55rem; margin-bottom: .46rem; }
.economy-goal-heading h2, .economy-goal p { margin: 0; color: var(--muted); font-size: .88rem; font-weight: 500; }
.economy-goal-heading strong { color: #ffe1b0; font-size: 1.035rem; }
.goal-button { margin-left: auto; padding: .24rem .15rem; border: 0; background: transparent; color: #ffdda6; font-size: .875rem; text-decoration: underline; text-underline-offset: .19rem; white-space: nowrap; }
.goal-button:hover { color: #fff3d6; }
.economy-goal p { margin-top: .37rem; }
.progress-track { overflow: hidden; height: .45rem; border-radius: 100vmax; background: #111322a0; box-shadow: inset 0 1px 3px #0007; }
.progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #a38158, #ffe0a0); box-shadow: 0 0 .65rem #ffc77364; transition: width .35s ease; }
.economy-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .64rem; margin: 0; border-left: 1px solid var(--border); padding-left: clamp(.8rem, 2.4vw, 2rem); }
.economy-stats dt { color: var(--muted); font-size: .88rem; margin-bottom: .21rem; }
.economy-stats dd { margin: 0; color: var(--text); font-size: 1.15rem; font-weight: 680; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ledger-button { white-space: nowrap; }
.island-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(14rem, 1fr); gap: 1.15rem; margin-top: 1.8rem; align-items: start; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; margin-bottom: .9rem; }
.section-heading h2 { font-size: clamp(1.32rem, 2.1vw, 1.72rem); line-height: 1.2; margin: 0; letter-spacing: -.02em; }
:lang(en) .section-heading h2 { font-family: var(--display-font); font-weight: 650; }
.section-heading span { font-size: .9rem; color: var(--muted); }
.venue-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.venue-card, .person-card { border: 1px solid var(--border); background: var(--surface); padding: 0; text-align: left; border-radius: .95rem; min-width: 0; overflow: hidden; transition: transform .2s, border-color .2s, background .2s; }
.venue-card:hover, .person-card:hover { border-color: #ffbf8c81; transform: translateY(-3px); background: var(--raised); }
.venue-card img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; display: block; transition: filter .2s; }
.venue-card.is-locked { border-color: #ffd39326; }
.venue-card.is-locked img { filter: saturate(.63) brightness(.74); }
.venue-card.is-locked:hover img, .venue-card.is-locked:focus-visible img { filter: saturate(.9) brightness(.93); }
.card-info { padding: .84rem .95rem 1rem; display: grid; gap: .35rem; }
.card-info strong { font-size: clamp(1rem, 1.36vw, 1.15rem); }
.card-info small { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.card-action { color: var(--accent); font-size: .91rem; margin-top: .37rem; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .65rem; margin-top: .35rem; }
.card-meta .card-action { margin-top: 0; }
.lock-status { display: inline-flex; align-items: center; padding: .12rem .48rem; border: 1px solid #ffd39345; border-radius: 100vmax; background: #ffd3930c; color: #ffdda6; font-size: .875rem; line-height: 1.45; }
.life-panel { padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: 1rem; background: linear-gradient(145deg, #1b3340, #132833); }
.life-panel .section-heading h2 { font-size: 1.15rem; }
.life-panel .section-heading span { color: var(--accent); }
.life-stats { margin: .12rem 0 .82rem; }
.life-stats div { display: flex; justify-content: space-between; gap: .55rem; border-top: 1px solid var(--border); padding: .67rem 0; font-size: .88rem; }
.life-stats dt { color: var(--muted); }
.life-stats dd { text-align: right; margin: 0; }
.life-panel .button { width: 100%; min-height: 2.35rem; padding: .42rem .65rem; }
.investments-section { margin-top: 2.05rem; }
.investments-heading { align-items: flex-end; }
.investments-heading h2 { flex-shrink: 0; }
.investments-heading span { line-height: 1.55; }
.portfolio-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 .8rem; border: 1px solid var(--champagne-border); border-radius: .9rem; background: radial-gradient(ellipse at top left, #33545b86, transparent 75%), #132a36; }
.portfolio-stats > div { min-width: 0; padding: .82rem clamp(.65rem, 1.8vw, 1.4rem); }
.portfolio-stats > div + div { border-left: 1px solid var(--border); }
.portfolio-stats dt { color: var(--muted); font-size: .875rem; }
.portfolio-stats dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .35rem; margin: .2rem 0 0; }
.portfolio-stats dd strong { color: #ffe1b0; font-size: clamp(1.17rem, 2.1vw, 1.58rem); font-weight: 740; font-variant-numeric: tabular-nums; line-height: 1.15; overflow-wrap: anywhere; }
.portfolio-stats dd span { color: var(--muted); font-size: .875rem; }
.investment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.investment-card { min-width: 0; min-height: 6.6rem; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: .42rem .65rem; padding: .88rem; text-align: left; border: 1px solid var(--border); border-radius: .86rem; background: var(--surface); transition: border-color .18s, background .18s, transform .18s; }
.investment-card:hover { border-color: #ffbf8c81; background: var(--raised); transform: translateY(-2px); }
.investment-icon { display: grid; place-items: center; flex-shrink: 0; width: 2.45rem; height: 2.45rem; border: 1px solid var(--champagne-border); border-radius: .66rem; background: linear-gradient(135deg, #5b5550, #253743); color: #ffdda6; font-size: 1.25rem; line-height: 1; }
.investment-copy { display: grid; min-width: 0; gap: .28rem; line-height: 1.4; }
.investment-copy strong { font-size: 1rem; }
.investment-copy small { color: var(--muted); font-size: .875rem; }
.investment-reward { color: #ffe0ab; font-size: .875rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.investment-price { display: grid; justify-items: end; align-self: start; gap: .3rem; color: var(--accent); font-size: .875rem; font-variant-numeric: tabular-nums; text-align: right; }
.investment-status { width: max-content; max-width: 100%; padding: .1rem .4rem; border: 1px solid #ffd39345; border-radius: 100vmax; background: #ffd3930c; color: #ffdda6; font-size: .875rem; line-height: 1.4; }
.investment-card.is-owned { border-color: #ffc98c5c; background: linear-gradient(115deg, #31403e, #172f39); }
.investment-card.is-owned .investment-icon { border-color: #ffd3966b; background: linear-gradient(135deg, #776654, #3d4545); }
.investment-card.is-locked .investment-icon { border-color: var(--border); background: #22333d; color: var(--muted); }
.investment-card.is-locked .investment-price { color: var(--muted); }
.people-section { margin-top: 2.05rem; }
.people-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.person-card { display: flex; align-items: center; gap: .72rem; min-height: 5.25rem; padding: .85rem; }
.avatar { position: relative; display: grid; place-items: center; flex-shrink: 0; width: 3.1rem; height: 3.1rem; overflow: hidden; border-radius: 50%; background: color-mix(in srgb, var(--person) 22%, #1b2d39); color: var(--person); border: 1px solid color-mix(in srgb, var(--person) 55%, #bfa36a); font-size: 1.04rem; font-weight: 700; }
.avatar img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.avatar img[hidden] { display: none; }
.person-card strong, .person-card small { display: block; line-height: 1.4; }
.person-card small { font-size: .85rem; color: var(--muted); margin-top: .12rem; }
.person-card .person-state { color: var(--accent); }
#community, #places, #investments, #people { scroll-margin-top: 1rem; }
body:has(dialog[open]) { overflow: hidden; }
.modal { background: #132830; color: var(--text); border: 1px solid #e7cb9865; border-radius: 1.15rem; box-shadow: 0 1rem 6rem #0009; padding: 0; width: min(42.5rem, 100% - 1.75rem); max-height: calc(100dvh - 1.75rem); overflow: auto; }
.modal::backdrop { background: #080a16bd; backdrop-filter: blur(5px); }
.modal-top { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .82rem 1rem; border-bottom: 1px solid var(--border); background: #132830; }
.modal-top h2 { font-size: 1.26rem; margin: 0; }
.close { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: #ffffff0b; border: 1px solid var(--border); font-size: 1.55rem; line-height: 1; }
.close:hover { background: #ffffff1e; }
.modal-content { padding: 1rem; }
.modal-content p { line-height: 1.65; }
.venue-art { position: relative; display: grid; align-items: end; min-height: 14rem; border-radius: .7rem; padding: .85rem; background: #343651 center 55% / cover no-repeat; overflow: hidden; isolation: isolate; }
.venue-art::before { position: absolute; content: ""; inset: 0; z-index: -1; background: linear-gradient(0deg, #101022cf, transparent 64%); }
.venue-art.night-venue::before { background: linear-gradient(0deg, #101022eb, transparent 70%), radial-gradient(ellipse at 75% 25%, color-mix(in srgb, var(--night-accent, #ecac88) 35%, transparent), transparent 69%); }
.night-invite-list { display: grid; gap: .47rem; padding: 0; list-style: none; }
.night-invite-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .6rem; padding: .58rem .7rem; border: 1px solid var(--border); border-radius: .68rem; background: #27273d; }
.night-invite-row small { color: var(--muted); }
.night-companion { display: grid; gap: .53rem; color: #ffdda2; }
.night-companion p { margin: 0; }
.night-activities { display: flex; flex-wrap: wrap; gap: .55rem; }
.venue-art[data-tone="ocean"] { box-shadow: inset 0 0 0 100vmax #4358a252; }
.venue-art[data-tone="rose"] { box-shadow: inset 0 0 0 100vmax #d34d6b4d; }
.venue-art strong { font-size: 1.2rem; }
.venue-art.sailing { animation: sailing .95s ease-in-out; }
@keyframes sailing { 50% { background-position: 60% 50%; filter: brightness(1.25); } }
.modal-description { color: var(--muted); margin: .7rem 0 .9rem; }
.home-tiers { display: grid; gap: .45rem; margin: .8rem 0; padding: 0; list-style: none; }
.home-tier { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: .35rem .55rem; padding: .64rem .74rem; border: 1px solid var(--border); border-radius: .63rem; background: #25283b; color: var(--muted); }
.home-tier strong { color: var(--text); }
.home-tier > :last-child { font-size: .875rem; text-align: right; font-variant-numeric: tabular-nums; }
.home-tier.is-next { border-color: #ffd39345; }
.home-tier:is(.is-current, [aria-current]:not([aria-current="false"])) { border-color: #ffdda681; background: #453546; color: #ffdfac; }
.reward-line { color: var(--accent); margin: .6rem 0 .9rem; min-height: 1.65rem; }
.unlock-panel, .reward-summary { background: linear-gradient(120deg, #493344, #27293e); border: 1px solid #ffc78155; border-radius: .8rem; padding: .78rem .9rem; }
.unlock-panel p, .reward-summary p { margin: 0; }
.unlock-panel p + *, .reward-summary p + * { margin-top: .7rem; }
.reward-summary { margin-block: .75rem; }
.reward-emphasis { color: #ffdda2; font-weight: 740; font-variant-numeric: tabular-nums; }
.reward-summary:not([hidden]) { animation: reward-arrival .33s ease-out; }
@keyframes reward-arrival {
  from { transform: translateY(.5rem); opacity: .45; }
  to { transform: translateY(0); opacity: 1; }
}
.divider { border-top: 1px solid var(--border); padding-top: .85rem; margin-top: .9rem; }
.dialog-person { display: flex; align-items: center; gap: .72rem; }
.dialog-person small { display: block; color: var(--muted); margin-top: .16rem; }
.dialog-person .avatar { width: 3.3rem; height: 3.3rem; }
.message { min-height: 4.2rem; background: #223944; border-radius: .8rem; border: 1px solid var(--border); padding: .8rem .95rem; margin: .8rem 0; }
.topics { display: grid; gap: .46rem; }
.topics .button { justify-content: start; text-align: left; }
.topics .answered { color: var(--muted); }
.relationship-note { font-size: .9rem; color: var(--muted); margin: .55rem 0 0; }
.journal { margin: 0; padding: 0; list-style: none; }
.journal li { padding: .7rem 0; border-bottom: 1px solid var(--border); line-height: 1.55; }
.ledger { margin: 0; padding: 0; list-style: none; }
.ledger li { display: flex; align-items: baseline; justify-content: space-between; gap: .7rem; border-bottom: 1px solid var(--border); padding: .7rem 0; line-height: 1.5; }
.ledger-amount { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.ledger-amount.is-credit { color: #ffdda2; }
.ledger-amount.is-debit { color: #e0bdcc; }
@media (max-width: 65rem) {
  .header-inner, .shell { width: min(100% - 2.35rem, 86rem); }
  .island-grid { grid-template-columns: minmax(0, 2.7fr) minmax(12rem, 1fr); }
  .venue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 56rem) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 0 .55rem; padding: .65rem 0 .32rem; }
  nav { grid-column: 1 / -1; grid-row: 2; gap: clamp(.45rem, 3vw, 1.65rem); }
  nav a { padding: .6rem 0 .25rem; }
}
@media (max-width: 48rem) {
  .community-stage { grid-template: "map" auto "locations" auto "detail" auto / minmax(0, 1fr); }
  .community-stage:has(.map-location-button) .map-pin-label { display: none; }
  .community-detail { grid-template-columns: minmax(5.25rem, 33%) minmax(0, 1fr); gap: .65rem; border-top: 1px solid #ffffff23; border-left: 0; }
  .community-detail img { height: 100%; }
  .island-grid { grid-template-columns: minmax(0, 1fr); }
  .economy { grid-template-columns: minmax(0, 1fr) auto; }
  .economy-goal { grid-column: 1 / -1; }
  .economy-stats { padding-left: 0; border-left: 0; }
  .life-panel .button { width: auto; }
  .investment-grid { grid-template-columns: 1fr; }
  .investment-card { min-height: 4.5rem; }
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 34rem) {
  .header-inner, .shell { width: calc(100% - 1.4rem); }
  .header-inner { min-height: 3.8rem; }
  .brand { gap: .39rem; }
  .brand-mark { width: 2.15rem; height: 2.15rem; }
  .brand strong { font-size: 1.15rem; }
  :lang(en) .brand strong { font-size: 1.15rem; }
  .brand small { font-size: .63rem; letter-spacing: .12em; }
  .header-actions { gap: .35rem; }
  .wallet { padding-inline: .5rem; }
  .profile-button { padding-inline: .6rem; }
  .profile-button .profile-icon { display: none; }
  .language-switch a { min-width: 1.74rem; padding-inline: .24rem; font-size: .81rem; }
  .shell { padding-top: 1.03rem; }
  .community-heading { margin-bottom: .62rem; }
  .community-heading p { font-size: .9rem; }
  .community-stage { border-radius: .83rem; }
  .community-map { aspect-ratio: 1.53; }
  .community-locations { gap: .33rem; padding: .52rem .58rem; }
  .map-location-button { padding-inline: .51rem; }
  .community-detail { padding: .62rem; }
  .community-detail h2 { margin-block: .14rem .3rem; }
  .community-detail p { font-size: .9rem; }
  .nightlife-panel { grid-template-columns: minmax(0, 1fr); gap: .6rem; padding: .76rem; }
  .nightlife-panel::before { background-position: right center; background-size: cover; }
  .nightlife-cta { justify-content: space-between; padding-top: .56rem; border-top: 1px solid #ffd29a31; }
  .economy { gap: .72rem; padding: .78rem; }
  .economy .ledger-button { padding-inline: .6rem; }
  .venue-grid { grid-template-columns: 1fr; gap: .65rem; }
  .venue-card { display: grid; grid-template-columns: minmax(0, 43%) minmax(0, 1fr); }
  .venue-card img { height: 100%; min-height: 7.1rem; aspect-ratio: auto; }
  .card-info { padding: .75rem .65rem .72rem .8rem; align-content: center; }
  .investments-section, .people-section { margin-top: 1.6rem; }
  .investments-heading { display: grid; gap: .37rem; }
  .person-card { padding: .6rem; gap: .45rem; }
  .person-card .avatar { width: 2.25rem; height: 2.25rem; }
  .venue-art { min-height: 11.5rem; }
}
@media (max-width: 25rem) {
  .brand { gap: .3rem; }
  .brand-mark { width: 1.9rem; height: 1.9rem; }
  .brand strong, :lang(en) .brand strong { font-size: 1.07rem; }
  .header-actions { gap: .24rem; }
  .wallet { min-height: 2.25rem; padding-inline: .36rem; }
  .wallet strong { font-size: .92rem; }
  .wallet .coin { width: .82rem; height: .82rem; }
  .wallet-unit { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .profile-button { min-height: 2.25rem; padding: .36rem .54rem; }
  .profile-button .profile-icon { display: inline; margin-right: 0; }
  .profile-button .profile-label { display: none; }
  .language-switch a { min-width: 1.57rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
