/* The city is the play surface. Information lives in a journal; choices happen in conversation. */
body.in-city { overflow: hidden; background: #dfe5d0; padding-bottom: 0; }
body.in-city .topbar { height: 66px; max-width: none; background: #f5f3eb; padding: 0 25px; }
body.in-city .topbar-center { font-family: var(--display); font-size: 14px; }
.game-screen { display: block; max-width: none; padding: 0; height: calc(100dvh - 66px); }
.game-screen > .life-sidebar, .game-screen > .action-sidebar { display: none; }
.city-column { height: 100%; width: 100%; }
.city-heading, .city-footnote, .game-screen .city-column .journal-card { display: none; }
.city-column > .location-nav { display: none; }
.map-frame { height: 100%; border: 0; border-radius: 0; position: relative; background: #dce3ce; overflow: hidden; }
.world-stage { width: 100%; height: 100%; min-height: 0; background: #dce3ce; }
.map-topline { position: absolute; z-index: 3; right: 21px; bottom: 24px; width: auto; background: #fffbedcf; border-radius: 8px; height: 37px; gap: 15px; }
.map-topline > span { display: none; }
.map-topline button { width: 28px; min-height: 28px; }
#camera-toggle { width: auto; font-size: 10px; min-width: 64px; }
.world-hud { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.world-hud button, .world-hud a { pointer-events: auto; }
.hud-title { position: absolute; top: 22px; left: 28px; display: flex; flex-direction: column; gap: 4px; color: #385344; text-shadow: 0 1px #fff9e9; }
.hud-city { font: 27px var(--display); letter-spacing: 2px; }
.hud-city small { font: 10px var(--font); letter-spacing: 1px; margin-left: 9px; color: #788b70; }
#hud-date { font-size: 10px; color: #7a8d70; }
.hud-wallet { position: absolute; right: 25px; top: 20px; display: flex; flex-direction: column; text-align: right; border: 1px solid #cbd6ba; border-radius: 12px; background: #fffdf0e8; padding: 12px 18px; box-shadow: 0 5px 20px #435a3010; min-width: 180px; }
.hud-wallet > span { font-size: 10px; color: #8b977f; }
.hud-wallet strong { font: 29px Georgia, serif; color: #36583e; line-height: 1.5; }
.hud-wallet small { font-size: 10px; color: #8d9b7c; }
.quest-card { position: absolute; top: 103px; left: 26px; width: 245px; padding: 16px; background: #fffcf0ee; border: 1px solid #cbd4b9; border-left: 3px solid #c59a56; border-radius: 8px; box-shadow: 0 5px 20px #3651240b; text-align: left; }
.quest-card > span { font-size: 9px; letter-spacing: 2px; color: #b18b56; display: block; }
.quest-card > strong { font: 21px var(--display); display: block; margin: 8px 0; }
.quest-card > small { color: #849275; font-size: 11px; line-height: 1.9; display: block; }
.quest-card > b { display: block; margin-top: 10px; color: #688253; font-size: 11px; font-weight: 400; }
.scene-controls { position: absolute; right: 25px; top: 141px; display: flex; flex-direction: column; gap: 8px; }
.scene-controls button { background: #fdf9e9ed; border: 1px solid #cdd7bd; padding: 10px 15px; border-radius: 7px; font-size: 11px; min-height: 40px; color: #668058; text-align: left; }
.scene-controls span { background: #dce5cc; border-radius: 12px; padding: 1px 5px; font-size: 9px; margin-left: 3px; }
.scene-controls button.has-choice { border-color:#bd9856; background:#fff0ce; color:#8b6c39; }
.life-summary { border-top:1px solid #d6dec7;margin-top:24px;padding-top:22px; }
.life-section-heading { display:flex;justify-content:space-between;gap:12px;color:#71835f;font-size:12px;margin-bottom:15px; }
.life-section-heading b { font-weight:400;color:#9a9e80;font-size:10px; }
.life-facts { display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0; }
.life-facts>div { padding:13px;background:#edf0e0;border:1px solid #d8dfc8;border-radius:7px;min-width:0; }
.life-facts small,.life-facts span { display:block;color:#93a17f;font-size:10px;line-height:1.8; }
.life-facts strong { display:block;color:#5d7650;font-weight:400;font-size:14px;line-height:1.8;overflow-wrap:anywhere; }
.life-cost-list { display:flex;flex-wrap:wrap;gap:7px; }
.life-cost-list>span { padding:5px 9px;background:#f0ead8;color:#a08756;border-radius:4px;font-size:10px; }
.life-note { color:#9a9f86!important;font-size:11px!important;line-height:1.9;margin:14px 0!important; }
.life-memory { border-left:2px solid #cbd4b9;padding-left:12px;margin:17px 0; }
.life-memory p { color:#788d67;font-size:11px;line-height:1.9;margin:7px 0; }
.life-memory time { color:#a5ac94;margin-right:9px;font-size:9px; }
.mastery-status { color:#7c8d6b;font-size:11px;line-height:1.9;border-top:1px solid #d9dfcd;padding-top:12px; }
.crossroad-symbol { font-size:43px;color:#b39459;line-height:1;margin-bottom:18px; }
.crossroad-body { font:20px/1.9 var(--display)!important;color:#617754!important; }
.crossroad-options { display:flex;flex-direction:column;gap:10px; }
.crossroad-option { text-align:left;padding:15px;background:#f8faef;border:1px solid #ccd8b8;border-radius:8px;line-height:1.8; }
.crossroad-option strong { font-weight:500;color:#587148;display:block;font-size:13px; }
.crossroad-option small { color:#8d9a7c;display:block;font-size:11px;margin-top:6px; }
.crossroad-option em { display:block;color:#b18f5e;font-style:normal;font-size:10px;margin-top:7px; }
.crossroad-option:hover:not(:disabled) { background:#eaf1dc;border-color:#96ab7c; }
.crossroad-option:disabled { opacity:.53; }
.map-bottomline { position: absolute; left: 50%; transform: translateX(-50%); bottom: 91px; background: transparent; border: 0; display: flex; flex-direction: column; height: auto; padding: 0; gap: 7px; z-index: 4; width: max-content; max-width: 88%; }
#nearby-label { padding: 4px 10px; border-radius: 5px; color: #536a49; background: #fbf8e9d9; font-size: 11px; }
.interact-button { background: #345d48; color: #fff9e5; border: 1px solid #f6edd6; border-radius: 24px; padding: 11px 23px; font-size: 13px; min-height: 47px; box-shadow: 0 5px 15px #28463429; gap: 12px; }
.interact-button:hover { background: #244735; }
.interact-button:disabled { display: none; }
.interact-button kbd { color: #f7f3d9; background: #5d8060; border-color: #95ad7c; }
.city-tools { position: absolute; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 3; width: min(540px, calc(100% - 135px)); }
.city-tools .month-end { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 7px; border: 1px solid #cdd7bc; border-radius: 11px; background: #f8f6e9ed; box-shadow: 0 5px 20px #34502513; position: static; inset: auto; width: 100%; min-height: 53px; }
.city-tools .month-end .month-preview, .city-tools .month-end > p, #jump-map { display: none!important; }
.city-tools .month-end .mobile-jump { display: block; color: #738769; border: 1px solid #d2dbc2; border-radius: 5px; background: transparent; min-height: 37px; min-width: 67px; padding: 6px 10px; font-size: 11px; }
.city-tools .month-end .ledger-button { width: auto; min-width: 75px; margin: 0; min-height: 37px; }
.city-tools #end-month { min-width: 132px; width: auto; padding: 8px 14px; min-height: 37px; font-size: 11px; }
.city-tools #end-month span { font-size: 13px; }
.travel-menu { position: absolute; bottom: 82px; right: 22px; width: 260px; background: #fffcf0f5; border: 1px solid #ccd6bb; border-radius: 10px; padding: 17px; z-index: 7; box-shadow: 0 10px 35px #2f472b20; }
.travel-menu > strong { font: 22px var(--display); }
.travel-menu > button { float: right; background: transparent; font-size: 22px; }
.travel-menu .location-nav { display: grid; grid-template-columns: 1fr 1fr; margin: 14px 0 0; }
.travel-menu .location-nav button { min-height: 43px; font-size: 11px; }
.mission-card { position: absolute; top: 104px; left: 25px; width: 255px; background: #fff9e9f5; border: 1px solid #c6cdaa; border-left: 3px solid #bb8648; border-radius: 8px; padding: 15px; box-shadow: 0 5px 20px #43572e15; }
.mission-card > div:first-child { display: flex; justify-content: space-between; color: #ae854e; font-size: 9px; letter-spacing: 1px; align-items: center; }
.mission-card > div:first-child button { background: transparent; font-size: 9px; color: #9c9d80; padding: 4px; }
.mission-card > strong { display: block; font: 23px var(--display); margin: 10px 0 7px; }
.mission-card p { font-size: 11px; color: #849371; line-height: 1.9; margin: 0 0 10px; }
#mission-steps { display: flex; gap: 5px; }
#mission-steps i { flex: 1; height: 4px; background: #e0e2cd; border-radius: 2px; }
#mission-steps i.done { background: #8ea775; }
#mission-go { min-height: 39px; width: 100%; text-align: left; background: transparent; color: #688257; font-size: 11px; margin-top: 9px; padding: 5px 0; }
.place-dialog { width: min(640px,94vw); border: 1px solid #c6d1b3; border-radius: 15px; padding: 27px; overflow: auto; max-height: 87dvh; background: #faf8ec; }
.place-close { position: absolute; right: 14px; top: 10px; font-size: 24px; width: 37px; height: 37px; background: transparent; color: #8e9c7e; z-index: 2; }
.place-dialog .location-panel { border: 0; padding: 0; background: transparent; min-height: 0; }
.place-dialog .location-label { padding-right: 35px; }
.place-dialog .location-title h2 { font-size: 31px; }
.place-dialog .npc-note { padding: 15px; background: #edf0df; gap: 15px; margin: 17px 0; }
.place-dialog .npc-avatar { width: 46px; height: 46px; font-size: 23px; background: #84987a; }
.place-dialog .npc-note strong { font-size: 12px; }
.place-dialog .npc-note p { font: 18px/1.9 var(--display); color: #65785a; }
.place-dialog .available-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.place-dialog .action-button { padding: 14px; border: 1px solid #d0dac1; background: #f6f7eb; border-radius: 8px; min-height: 104px; }
.place-dialog .action-button .action-top { font-size: 13px; }
.place-dialog .action-button p { font-size: 11px; line-height: 1.8; }
.place-dialog .action-button .action-preview { font-size: 10px; margin-top: 8px; }
.place-footnote { font-size: 10px; text-align: center; margin: 18px 0 0; color: #a0a48a; }
.life-dialog { width: min(790px,94vw); max-height: 88dvh; border-radius: 13px; padding: 26px; }
.life-dialog-heading { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 13px; margin-bottom: 22px; }
.life-dialog-heading h2 { font: 28px var(--display); margin: 0; }
.life-dialog-heading button { background: transparent; font-size: 24px; padding: 3px 7px; }
#life-content { display: grid; grid-template-columns: 1fr 1.2fr; gap: 25px; align-items: start; }
#life-content > .life-sidebar { display: flex; }
#life-content > .gig-panel { max-height: none; }
#life-content > .month-plan { grid-column: 1/-1; }
body.in-city .toast { bottom: 155px; font-size: 12px; }
.activity-header { display: flex; align-items: center; gap: 8px; color: #a18d5d; font-size: 10px; letter-spacing: 1px; margin-bottom: 14px; }
.activity-header .activity-dot { width: 5px; height: 5px; border-radius: 50%; background: #96a47e; }
.activity-art { height: 128px; overflow: hidden; margin: -30px -30px 23px; position: relative; }
.activity-art img { width: 100%; height: 100%; object-fit: cover; }
.activity-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 50%,#f5f3eb); }
.activity-person { display: flex; align-items: center; gap: 9px; font-size: 11px; color: #8b977c; margin-bottom: 13px; }
.activity-person > b { width: 32px; height: 32px; border-radius: 50%; background: #8ea17e; color: #fffae8; display: grid; place-items: center; font: 18px var(--display); }
.activity-body { font: 20px/1.85 var(--display)!important; color: #536a48!important; }
.activity-instruction { padding: 10px 13px; background: #ebeeda; border-left: 2px solid #b59c60; font-size: 11px; color: #81926e; margin-bottom: 15px; }
.activity-choices { display: flex; flex-direction: column; gap: 9px; }
.activity-choice { background: #f9faef; border: 1px solid #ced9bb; border-radius: 8px; padding: 14px 16px; min-height: 51px; text-align: left; color: #5b754c; font-size: 12px; line-height: 1.8; display: flex; gap: 11px; }
.activity-choice > span { color: #b3975c; }
.activity-choice:hover { background: #e8efda; border-color: #91a773; }
.activity-feedback { min-height: 23px; color: #ae8a52; font-size: 11px; line-height: 1.9; margin: 12px 0 0; }
.activity-feedback.mistake { animation: gentle-shake .35s; }
.activity-progress { display: flex; gap: 5px; margin-bottom: 20px; }
.activity-progress span { height: 4px; flex: 1; background: #e1e5d3; border-radius: 2px; }
.activity-progress span.done { background: #8aa876; }
.activity-cancel { color: #9da58b; background: transparent; font-size: 10px; display: block; margin: 18px auto 0; padding: 8px; }
.reward-symbol { width: 69px; height: 69px; border: 1px solid #c5ad6e; background: #eee5c7; color: #a48340; display: grid; place-items: center; border-radius: 50%; font-size: 32px; margin: 7px auto 18px; animation: reward-pop .42s cubic-bezier(.34,1.56,.64,1) both; }
.reward-inner { text-align: center; }
.reward-inner .dialog-top { text-align: left; }
.reward-inner h2 { font-size: 32px; }
.reward-inner .reward-caption { font-size: 12px; color: #8a967b; line-height: 1.9; }
.reward-gains { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 21px 0; text-align: left; }
.reward-gains > div { border: 1px solid #dae0c9; background: #edf1df; padding: 12px; border-radius: 6px; }
.reward-gains span { display: block; font-size: 10px; color: #91a07f; }
.reward-gains strong { color: #5c7d4b; font-size: 21px; font-family: Georgia,var(--font); font-weight: 400; }
.earned-badge { border: 1px solid #d0b979; border-radius: 8px; padding: 12px; background: #f2ead1; color: #987941; margin: 10px 0; font-size: 12px; }
.earned-badge small { display: block; font-size: 10px; color: #ad986c; margin-top: 3px; }
.achievement-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.achievement-tile { border: 1px solid #dce0cc; border-radius: 7px; padding: 14px; opacity: .5; }
.achievement-tile.earned { opacity: 1; background: #f2ead3; border-color: #ceb97f; }
.achievement-tile > span { font-size: 28px; color: #af9052; }
.achievement-tile strong { display: block; font-size: 12px; font-weight: 500; color: #708257; margin: 7px 0; }
.achievement-tile small { font-size: 10px; color: #96a083; }
button:not(:disabled) { transition: background .12s,transform .07s,filter .07s; }
button:active:not(:disabled) { transform: translateY(2px); filter: brightness(.95); }
.world-hud button:active { transform: translateY(2px); }
@keyframes reward-pop { from { transform: scale(.2) rotate(-15deg); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes gentle-shake { 20% { transform: translateX(-4px); } 50% { transform: translateX(3px); } 80% { transform: translateX(-1px); } }
@media(max-width:1000px) {
  .quest-card, .mission-card { width: 215px; left: 17px; }
  .quest-card > strong, .mission-card > strong { font-size: 19px; }
  .quest-card > small { font-size: 10px; }
  .scene-controls { right: 17px; }
  .hud-wallet { right: 17px; min-width: 156px; }
}
@media(max-width:640px) {
  body.in-city .topbar { height: 58px; padding: 0 12px; }
  body.in-city .topbar-center { display: none; }
  body.in-city .brand-globe { width: 27px; height: 27px; }
  body.in-city .brand small { display: none; }
  body.in-city .header-actions { gap: 5px; }
  body.in-city .header-save-button { min-height: 34px; padding: 5px 8px; font-size: 9px; }
  body.in-city .icon-button { width: 32px; min-height: 32px; }
  body.in-city .save-state { display: none; }
  .game-screen { height: calc(100dvh - 58px); padding: 0; gap: 0; }
  .world-stage { height: 100%; min-height: 0; }
  .hud-title { left: 13px; top: 14px; gap: 1px; }
  .hud-city { font-size: 22px; }
  .hud-city small { display: none; }
  #hud-date { font-size: 9px; }
  .hud-wallet { top: 13px; right: 12px; min-width: 126px; padding: 7px 11px; border-radius: 8px; }
  .hud-wallet > span { font-size: 8px; }
  .hud-wallet strong { font-size: 22px; line-height: 1.4; }
  .hud-wallet small { font-size: 8px; }
  .quest-card { top: 82px; left: 12px; width: calc(100% - 24px); padding: 9px 12px; border-radius: 7px; }
  .quest-card > span { font-size: 8px; }
  .quest-card > strong { font-size: 17px; margin: 3px 0; }
  .quest-card > small { display: none; }
  .quest-card > b { position: absolute; right: 13px; top: 18px; font-size: 10px; }
  .scene-controls { top: 157px; right: 12px; flex-direction: row; gap: 5px; }
  .scene-controls button { font-size: 9px; padding: 6px 8px; min-height: 35px; }
  .scene-controls span { display: none; }
  .mission-card { top: 82px; left: 12px; width: calc(100% - 24px); padding: 10px 12px; }
  .mission-card > strong { font-size: 18px; margin: 5px 0; }
  .mission-card p { margin-bottom: 6px; font-size: 10px; }
  .mission-card #mission-go { min-height: 29px; margin-top: 4px; font-size: 10px; }
  body.on-mission .scene-controls { display: none; }
  .city-tools { bottom: 10px; width: calc(100% - 24px); }
  .city-tools .month-end { padding: 6px; gap: 5px; min-height: 55px; }
  .city-tools #end-month { flex: 1; min-width: 100px; font-size: 11px; min-height: 40px; }
  .city-tools .month-end .mobile-jump { min-width: 55px; min-height: 40px; font-size: 10px; }
  .city-tools .month-end .ledger-button { min-width: 64px; min-height: 40px; font-size: 10px; }
  .map-bottomline { bottom: 84px; gap: 5px; }
  #nearby-label { font-size: 9px; max-width: 290px; text-align: center; }
  .interact-button { font-size: 12px; min-height: 44px; padding: 9px 18px; }
  .map-topline { right: 8px; bottom: 166px; padding: 4px; background: #fff9e7cc; }
  .travel-menu { bottom: 80px; right: 12px; width: calc(100% - 24px); }
  .travel-menu .location-nav { grid-template-columns: repeat(3,1fr); }
  .place-dialog { padding: 22px 18px 18px; max-height: 90dvh; }
  .place-dialog .location-title h2 { font-size: 28px; }
  .place-dialog .npc-note { padding: 12px; gap: 10px; }
  .place-dialog .npc-note p { font-size: 17px; }
  .place-dialog .available-actions { grid-template-columns: 1fr; }
  .place-dialog .action-button { min-height: 85px; padding: 13px; }
  .place-dialog .action-button .action-top { font-size: 13px; }
  .life-dialog { padding: 20px; }
  #life-content { grid-template-columns: 1fr; gap: 20px; }
  #life-content .life-sidebar { display: flex; }
  #life-content .condition-card { display: block; }
  #life-content #condition-bars { flex-direction: column; }
  #life-content .condition-row { display: grid; grid-template-columns: 34px 1fr 27px; margin: 7px 0; }
  #life-content .condition-row b { display: block; }
  #life-content .sidebar-bottom { display: flex; }
  .activity-body { font-size: 19px!important; }
  .activity-art { margin: -23px -23px 18px; height: 109px; }
  .activity-choice { font-size: 12px; padding: 12px; }
  .reward-gains strong { font-size: 19px; }
  .achievement-grid { gap: 8px; }
  .achievement-tile { padding: 11px; }
  body.in-city .toast { bottom: 157px; font-size: 11px; }
  body:not(.in-city) .start-screen { padding-bottom: 0; }
}
@media(prefers-reduced-motion:reduce) { .reward-symbol, .activity-feedback { animation: none; } }
.music-hint { color: #526e60; font-size: 12px; line-height: 1.7; margin: 16px 0 0; }
.sound-settings .sound-slider { display: block; margin: 24px 0; }
.sound-slider span { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.sound-slider output { color: #526e60; font-variant-numeric: tabular-nums; }
.sound-slider input { display: block; width: 100%; min-height: 44px; accent-color: #2d6152; cursor: pointer; }
.sound-track-list { display: grid; gap: 8px; margin: 24px 0; }
.sound-track-list > div { border-left: 2px solid #d9dfd3; padding: 10px 14px; display: grid; grid-template-columns: 100px 1fr; gap: 6px; }
.sound-track-list > div.current { border-color: #2d6152; background: #2d615209; }
.sound-track-list span, .sound-track-list small { color: #617064; font-size: 12px; }
.sound-track-list strong { font-size: 14px; }
.sound-track-list small { grid-column: 2; line-height: 1.5; }
@media (max-width: 480px) {
  .sound-track-list > div { grid-template-columns: 84px 1fr; padding: 10px 8px; }
  body .topbar { padding: 0 10px; gap: 6px; }
  body .brand { gap: 6px; }
  body .brand-globe { width: 24px; height: 24px; }
  body .brand > span { font-size: 14px; }
  body .brand b, body .brand small { display: none; }
  body .header-actions { gap: 4px; }
  body .header-actions .header-save-button { min-width: 44px; min-height: 44px; padding: 5px 6px; font-size: 10px; }
  body .header-actions .icon-button { flex: 0 0 30px; min-height: 44px; border-radius: 16px; }
}
