/* An additive play layer: the original interface and theme remain the foundation. */
.play-edition { --play-glass: #20362eee; --play-edge: #d6c4953d; }
.play-edition .topbar { height: 72px; padding: 0 26px; background: #1c3027b8; }
.play-edition .brand { min-width: 210px; }
.play-edition .brand-crest { width: 33px; height: 39px; }
.play-edition .brand strong { font-size: 23px; }
.play-edition .top-actions { min-width: 210px; }
.play-edition .world-shade { background: linear-gradient(180deg,#142b2360,transparent 30%,transparent 72%,#152b2380); }
.play-edition .place-heading { top: 102px; left: 50%; width: 320px; transform: translateX(-50%); pointer-events: none; }
.play-edition .place-heading h1 { font-size: 43px; }
.play-edition .place-heading p { font-size: 10px; margin-top: 7px; }
.play-edition .place-heading .eyebrow { font-size: 7px; }
.play-edition .left-hud { top: 99px; left: 26px; width: 230px; bottom: auto; }
.play-edition .character-card { padding: 14px 15px 10px; border-radius: 12px; background: var(--play-glass); }
.play-edition .portrait { width: 39px; height: 47px; }
.play-edition .portrait-level { left: 11px; width: 17px; height: 15px; line-height: 15px; }
.play-edition .character-top { gap: 11px; }
.play-edition .character-top h2 { font-size: 23px; margin: 3px 0; }
.play-edition .character-top p { font-size: 9px; }
.play-edition .character-top .eyebrow, .play-edition .house-line, .play-edition .vitals { display: none; }
.play-edition .character-treasury { margin-top: 13px; padding: 10px 0; }
.play-edition .character-treasury strong { font-size: 20px; }
.play-edition .character-card .text-link { display: inline-flex; align-items: center; gap: 25px; font-size: 10px; padding: 8px 0; min-height: 36px; }
.play-edition .character-card .text-link svg { width: 14px; height: 14px; }
.play-edition #founder-button { font-size: 9px; min-height: 36px; margin: 2px 0; padding: 7px 9px; }
.play-edition #founder-button svg { width: 14px; }
.play-edition .right-hud { display: none; top: 294px; right: 26px; bottom: auto; width: 268px; max-height: calc(100dvh - 415px); overflow-y: auto; z-index: 6; }
.play-edition.story-open .right-hud { display: block; }
.play-edition .right-hud .whisper { display: none; }
.play-edition .right-hud .chapter-card { padding: 20px; background: #20362efa; }
.play-edition .chapter-card h2 { font-size: 28px; }
.play-edition .chapter-card > p { display: block; font-size: 11px; }
.play-edition .chapter-divider { display: flex; }
.play-edition .objective { font-size: 11px; min-height: 40px; }
.play-edition .world-tools { top: auto; bottom: 160px; right: 26px; gap: 6px; }
.play-edition .world-tools button { min-height: 42px; border-radius: 8px; background: var(--play-glass); border: 1px solid var(--play-edge); }
.play-edition .world-tools span { display: none; }
.play-edition .world-tools .glass-button { padding: 10px; }
.play-edition .world-tools #pause { display: grid; place-items: center; }
.play-edition .world-tools svg { width: 17px; height: 17px; }
.play-edition .compass-rose, .play-edition .bottom-hud footer, .play-edition .touch-controls { display: none; }
.play-edition .bottom-hud { left: 50%; right: auto; bottom: 18px; width: min(880px,calc(100% - 52px)); transform: translateX(-50%); }
.play-edition .year-row { height: 42px; padding: 0 4px; }
.play-edition .date > svg { width: 19px; height: 19px; }
.play-edition .date > span > strong { font-size: 23px; }
.play-edition .date small, .play-edition .year-divider, .play-edition .year-age { display: none; }
.play-edition .actions-left { font-size: 10px; }
.play-edition .world-help { position: static; display: flex; gap: 13px; }
.play-edition .world-help button { display: flex; align-items: center; gap: 4px; min-height: 32px; }
.play-edition .world-help svg { width: 12px; height: 12px; }
.play-edition .life-bar { height: 74px; display: flex; padding: 8px 9px 8px 16px; gap: 0; border-radius: 12px; background: var(--play-glass); }
.play-edition .life-bar-title { width: 84px; gap: 7px; font-size: 7px; letter-spacing: 1px; }
.play-edition .life-bar-title svg { width: 19px; }
.play-edition .life-action { flex-direction: row; min-width: 0; height: 48px; padding: 0 14px; gap: 9px; }
.play-edition .life-action > span { font-size: 12px; }
.play-edition .life-action > svg { width: 18px; height: 18px; }
.play-edition .life-action small { display: none; }
.play-edition .life-action kbd { align-self: auto; font-size: 9px; }
.play-edition .spark-action { color: #f3e2b4; }
.play-edition .spark-action[hidden] { display: none; }
.play-edition .next-year { grid-column: auto; height: 56px; min-width: 150px; padding: 9px 15px; margin: 0 0 0 6px; border-radius: 8px; }
.play-edition .next-year > span { font-size: 23px; }
.play-edition .next-year small { font-size: 8px; }
.play-edition .playground-dock { top: auto; bottom: 211px; left: auto; right: 26px; transform: none; display: flex; gap: 6px; padding: 0; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; max-width: none; border-radius: 0; z-index: 4; }
.play-edition .mood-label { position: absolute; right: 0; bottom: 53px; white-space: nowrap; padding: 0; pointer-events: none; text-shadow: 0 1px 5px #192f23; }
.play-edition .mood-label small { display: none; }
.play-edition .mood-label strong { font-size: 9px; }
.play-edition #emote-toggle, .play-edition .movement-actions button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 8px 12px; font-size: 10px; border: 1px solid var(--play-edge); background: var(--play-glass); border-radius: 9px; }
.play-edition #emote-toggle svg, .play-edition .movement-actions svg { width: 15px; height: 15px; }
.play-edition .movement-actions { display: flex; gap: 6px; }
.play-edition .movement-actions button[aria-pressed=true] { color: #24382c; background: var(--gold); }
.play-edition .movement-actions [data-emote=jump] svg { transform: rotate(-90deg); }
.play-edition .emote-actions { display: none; position: absolute; right: 0; bottom: 54px; padding: 6px; background: #20362efa; border: 1px solid var(--play-edge); border-radius: 10px; }
.play-edition .emotes-open .emote-actions { display: flex; }
.play-edition .emotes-open .mood-label { visibility: hidden; }
.play-edition .emote-actions button { min-height: 44px; padding: 8px 13px; font-size: 11px; }
.play-edition .emote-actions svg { display: block; }
.play-edition #activity-cue { top: auto; bottom: 150px; max-width: 280px; padding: 9px 16px 12px; z-index: 3; }
.play-edition #activity-cue strong { font-size: 22px; }
.play-edition #activity-cue span { display: none; }
.play-edition #toast { top: auto; bottom: 203px; z-index: 8; max-width: min(450px,calc(100% - 32px)); font-size: 11px; }
.play-edition #nearby { bottom: 160px; z-index: 4; }
.play-edition #year-transition { padding-bottom: 180px; }
.explore-tools { position: absolute; left: 26px; top: 315px; display: flex; gap: 6px; z-index: 5; }
.explore-tools button { display: flex; align-items: center; gap: 7px; min-height: 42px; padding: 9px 12px; background: var(--play-glass); border: 1px solid var(--play-edge); border-radius: 8px; font-size: 10px; }
.explore-tools svg { width: 15px; height: 15px; }
.explore-tools kbd { display: none; }
.explore-tools button[aria-expanded=true], .explore-tools button[aria-pressed=true] { background: #d8c18a; color: #23382d; }
.village-day { position: absolute; right: 26px; top: 100px; width: 268px; padding: 17px 18px; border-radius: 12px; background: var(--play-glass); border: 1px solid var(--play-edge); backdrop-filter: blur(14px); }
.day-id { display: flex; gap: 7px; align-items: center; color: var(--gold); font-size: 8px; letter-spacing: 1.3px; }
.day-id svg { width: 15px; height: 15px; }
.day-live { margin-left: auto; font-size: 6px; letter-spacing: 1px; color: #c0cbb3; }
.village-day h2 { font-size: 28px; margin-top: 13px; letter-spacing: -.5px; }
.village-day p { color: #c1caba; font-size: 10px; line-height: 1.5; margin-top: 4px; }
#days-open { display: flex; justify-content: space-between; align-items: center; background: #d8c18a; color: #283b2d; width: 100%; padding: 11px 13px; min-height: 42px; border-radius: 7px; margin-top: 15px; font-weight: 600; font-size: 11px; }
#days-open:hover { background: #ecdbaf; }
#days-open svg { width: 16px; }
.day-title { display: flex; align-items: center; justify-content: space-between; }
.day-title h2 { font-size: 25px; }
#day-cancel { min-width: 36px; min-height: 36px; padding: 8px; margin-right: -10px; }
.day-progress { display: flex; justify-content: space-between; align-items: center; margin: 17px 0 12px; }
#day-pips { display: flex; gap: 8px; }
#day-pips i { width: 11px; height: 11px; border: 1px solid #d8c18a80; border-radius: 3px; transform: rotate(45deg); }
#day-pips i.done { background: #d8c18a; }
#day-count { font-size: 11px; font-weight: 500; }
.day-tools { display: flex; justify-content: space-between; align-items: center; padding-top: 9px; border-top: 1px solid var(--play-edge); font-size: 10px; }
#day-time { font-variant-numeric: tabular-nums; color: #c1caba; }
#day-guide { display: flex; align-items: center; gap: 5px; min-height: 32px; color: #e5d5b1; font-size: 10px; }
#day-guide svg { width: 13px; }
.trail-world-marker { position: absolute; top: 0; left: 0; padding: 5px 8px; border: 1px solid #e5cd94; border-radius: 5px; background: #2d4230eb; color: #f4dda2; font-size: 10px; font-weight: 600; pointer-events: none; }
#village-map { position: absolute; top: 365px; left: 26px; width: 250px; padding: 15px; max-height: calc(100dvh - 390px); overflow: auto; background: #20362efa; border: 1px solid var(--play-edge); border-radius: 12px; z-index: 6; }
.map-heading { display: flex; justify-content: space-between; align-items: center; }
.map-heading button { display: grid; place-items: center; width: 34px; height: 34px; }
.map-heading .eyebrow { font-size: 8px; }
#village-map .village-map-art { display: block; width: 100%; height: 125px; margin: 0 auto 8px; border-radius: 7px; background: #b1ba9320; stroke-width: .65; }
.map-river { stroke: #84a29a; stroke-width: 3; }
.map-road { stroke: #bba879; stroke-width: 1.2; }
.map-home { fill: #76886a; stroke: #afbc94; }
#map-player { fill: #f3e8c5; stroke: #f3e8c5; }
#map-targets { fill: #d9b971; stroke: #d9b971; }
#village-map > p { font-size: 9px; text-align: center; color: var(--muted); margin-bottom: 8px; }
.play-edition #village-map .journey-menu { display: block; margin: 0; padding: 0; }
#village-map .journey-menu > .eyebrow { display: none; }
#village-map .journey-menu button { min-height: 39px; padding: 8px 0; font-size: 11px; }
#village-map .journey-menu button span { font-size: 8px; }
#joystick { display: none; }
#days-dialog { width: min(820px,calc(100% - 40px)); max-height: calc(100dvh - 40px); padding: 27px 32px; border: 1px solid #bbaa7659; border-radius: 18px; background: #20372e; color: var(--ink); box-shadow: 0 35px 100px #10221c80; }
#days-dialog::backdrop { background: #122b2294; backdrop-filter: blur(7px); }
#days-dialog .dialog-header { margin-bottom: 16px; }
#days-title { font-size: 48px; line-height: .98; letter-spacing: -1px; }
#days-title em { color: #d8c18a; font-weight: 400; }
.days-intro { font-size: 12px; color: #bec9b9; margin: 16px 0 23px; }
.activity-cards { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 12px; }
.activity-card { text-align: left; border: 1px solid #e1d2aa35; border-radius: 12px; background: #2a4135; overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.activity-card:hover { transform: translateY(-4px); border-color: #d8c18a; background: #334e3e; }
.activity-art { display: block; background: #d6c18b16; padding: 8px 0 0; color: #dbcb9d; }
.activity-art svg { width: 100%; height: 124px; stroke-width: 1.5; }
.art-path { opacity: .4; stroke-dasharray: 3 5; }
.activity-harvest .activity-art { background: #c8926d18; color: #d4b28b; }
.activity-rhythm .activity-art { background: #94b9ac15; color: #b2cdc0; }
.activity-info { padding: 18px 16px 8px; flex: 1; display: flex; flex-direction: column; }
.activity-info small { color: #c4b68f; font-size: 7px; letter-spacing: 1.5px; }
.activity-info strong { font: 500 27px var(--serif); margin: 8px 0; }
.activity-info > span { font-size: 10px; line-height: 1.6; color: #bec9b9; }
.activity-info b { font-size: 9px; font-weight: 500; color: #e0d3ac; margin-top: auto; padding-top: 20px; line-height: 1.6; }
.activity-start { display: flex; justify-content: space-between; align-items: center; margin: 7px 16px 14px; border-top: 1px solid #d6c49530; padding-top: 12px; font-size: 11px; }
.activity-start svg { width: 16px; }
.days-note { color: #b0beae; font-size: 10px; line-height: 1.7; margin-top: 21px; }
.day-result { text-align: center; padding: 15px 0; }
.day-result > svg { width: 56px; height: 56px; padding: 14px; border: 1px solid #d8c18a; border-radius: 50%; color: var(--gold); margin-bottom: 23px; }
.day-result #days-title { font-size: 46px; }
.day-result p { font-size: 12px; margin: 16px 0; color: var(--muted); }
.result-pips { display: flex; justify-content: center; gap: 10px; color: var(--gold); margin: 27px 0; }
.day-result > strong { font-size: 13px; font-weight: 500; }
.day-result .primary-button { margin: 22px auto 10px; }
.day-result .text-link { display: block; margin: auto; padding: 14px; }
#rhythm-game { position: absolute; bottom: 158px; left: 50%; transform: translateX(-50%); width: 334px; padding: 18px 20px; background: #20372ef5; border: 1px solid var(--play-edge); border-radius: 12px; z-index: 5; }
#rhythm-game > .eyebrow { font-size: 7px; letter-spacing: 1.8px; }
.rhythm-track { position: relative; height: 16px; border: 1px solid #d6c49550; border-radius: 8px; margin: 22px 0 18px; width: 290px; background: #152d24; }
.rhythm-zone { position: absolute; left: 34%; width: 32%; top: 0; bottom: 0; background: #c7ab68; border-radius: 4px; }
#rhythm-cursor { position: absolute; left: 0; top: -6px; width: 8px; height: 26px; background: #f9f1d9; border-radius: 3px; }
.rhythm-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#rhythm-feedback { font-size: 10px; max-width: 160px; line-height: 1.5; }
#rhythm-tap { min-height: 44px; min-width: 90px; padding: 10px 15px; color: #283b2d; background: var(--gold); border-radius: 7px; }
#rhythm-tap kbd { margin-left: 10px; font-size: 9px; opacity: .6; }
.relaxed-option { display: flex; align-items: center; gap: 5px; font-size: 9px; color: #c3cbb8; margin-top: 12px; min-height: 32px; cursor: pointer; }
.relaxed-option input { accent-color: #d8c18a; width: 16px; height: 16px; }
.rhythm-hit { border-color: #d8c18a !important; }
.play-edition .event-dialog { width: min(620px,calc(100% - 28px)); }
.event-scene { display: flex; align-items: center; gap: 20px; padding: 19px; margin-bottom: 24px; background: #d8c18a0f; border: 1px solid #d8c18a30; border-radius: 10px; }
.event-scene > svg { width: 45px; height: 45px; stroke-width: 1; color: #d8c18a; }
.event-scene > span { font-size: 8px; letter-spacing: 1px; line-height: 2; }
.event-scene em { font: italic 23px var(--serif); letter-spacing: 0; }
.event-scene > strong { margin-left: auto; font: 500 31px var(--serif); color: #d8c18a; text-align: right; }
.event-scene small { display: block; font: 9px var(--sans); color: var(--muted); }
.event-dialog #dialog-title { font-size: 36px; }
.event-dialog .dialog-intro { font-size: 11px; margin-bottom: 18px; }
.event-dialog .receipt { display: none; }
.event-dialog .event-quote { font: 16px/1.6 var(--sans); padding: 0; margin: 20px 0 10px; border: 0; }
.event-context { color: var(--muted); font-size: 10px; margin-bottom: 18px; }
.event-context summary { cursor: pointer; padding: 8px 0; }
.event-context p { margin: 8px 0; line-height: 1.7; }
.event-dialog .choice-card { gap: 14px; padding: 16px; }
.event-dialog .choice-card h3 { font-size: 22px; }
.event-dialog .choice-card small { display: block; margin-top: 6px; font-size: 10px; line-height: 1.5; }
.event-choice-number { color: #d8c18a; font: 20px var(--serif); }
.life-vitals { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 20px 0; }
.life-vitals > div { padding: 14px; border: 1px solid var(--play-edge); border-radius: 8px; }
.life-vitals span { display: block; color: var(--muted); font-size: 10px; }
.life-vitals strong { display: block; margin-top: 8px; font: 500 27px var(--serif); color: var(--gold); }
.life-vitals small { font: 9px var(--sans); color: var(--muted); }
.story-founder { min-height: 42px; }
.play-edition.focus-mode .topbar, .play-edition.focus-mode .left-hud, .play-edition.focus-mode .right-hud, .play-edition.focus-mode .place-heading, .play-edition.focus-mode .bottom-hud, .play-edition.focus-mode .world-tools, .play-edition.focus-mode .world-label, .play-edition.focus-mode .village-day:not(.is-playing), .play-edition.focus-mode #map-toggle, .play-edition.focus-mode #story-toggle { display: none; }
.play-edition.focus-mode .explore-tools { left: 20px; top: 20px; }

@media (max-width: 1100px) and (min-width: 761px) {
  .play-edition .left-hud { width: 204px; left: 18px; }
  .village-day { width: 235px; right: 18px; }
  .day-live { display: none; }
  .village-day h2 { font-size: 26px; }
  .play-edition .place-heading { width: 235px; }
  .play-edition .place-heading h1 { font-size: 38px; }
  .explore-tools { left: 18px; gap: 4px; }
  .explore-tools button { padding: 9px; }
  .play-edition .world-help > span { display: none; }
  .play-edition .life-bar-title { display: none; }
  .play-edition .life-action kbd { display: none; }
}
@media (max-width: 760px) {
  .play-edition .topbar { height: 58px; padding: 0 14px; }
  .play-edition .brand { min-width: 0; gap: 7px; }
  .play-edition .brand-crest { width: 25px; height: 30px; }
  .play-edition .brand-crest svg { width: 20px; height: 22px; }
  .play-edition .brand small { font-size: 5px; }
  .play-edition .brand strong { font-size: 19px; letter-spacing: 2px; }
  .play-edition .topbar nav { display: flex; gap: 13px; margin: 0 9px 0 auto; }
  .play-edition .nav-link { font-size: 9px; }
  .play-edition .nav-link:first-child { display: none; }
  .play-edition .top-actions { min-width: 0; }
  .play-edition .top-actions .icon-button { min-width: 36px; min-height: 40px; }
  .play-edition .place-heading { top: 78px; left: 16px; width: auto; transform: none; text-align: left; }
  .play-edition .place-heading h1 { font-size: 28px; margin-top: 3px; }
  .play-edition .place-heading .eyebrow { font-size: 5px; }
  .play-edition .place-heading p { display: none; }
  .play-edition .left-hud { top: 130px; left: 14px; width: 170px; bottom: auto; }
  .play-edition .character-card { padding: 10px 11px; }
  .play-edition .portrait { display: none; }
  .play-edition .character-top h2 { font-size: 20px; margin: 0 0 4px; }
  .play-edition .character-top p { font-size: 8px; }
  .play-edition .character-treasury { margin-top: 7px; padding: 7px 0 0; border: 0; }
  .play-edition .character-treasury strong { font-size: 18px; }
  .play-edition .character-treasury span { font-size: 7px; }
  .play-edition .character-card .text-link { padding: 6px 0 0; min-height: 29px; font-size: 9px; }
  .play-edition #founder-button { display: none; }
  .explore-tools { top: 77px; right: 14px; left: auto; gap: 5px; }
  .explore-tools button { min-width: 40px; min-height: 44px; padding: 9px; }
  .explore-tools button span { display: none; }
  .explore-tools #focus-toggle span { display: none; }
  .village-day { top: 130px; right: 14px; width: calc(100% - 208px); min-width: 144px; padding: 11px 12px; }
  .day-id { font-size: 7px; letter-spacing: .8px; }
  .day-id svg { width: 13px; height: 13px; }
  .day-live, .day-idle p { display: none; }
  .village-day h2 { font-size: 23px; margin-top: 8px; line-height: 1.05; }
  #days-open { font-size: 9px; padding: 8px; min-height: 44px; margin-top: 10px; }
  #days-open svg { width: 13px; }
  .play-edition .right-hud { top: 265px; right: 14px; width: calc(100% - 28px); max-height: calc(100dvh - 400px); }
  .play-edition .right-hud .chapter-card { padding: 15px; }
  .play-edition .chapter-card h2 { font-size: 25px; }
  .play-edition .chapter-card h2 br { display: none; }
  .play-edition .chapter-card > p { display: none; }
  .play-edition .chapter-divider { margin: 10px 0; }
  #village-map { top: 120px; left: 14px; width: calc(100% - 28px); max-height: calc(100dvh - 265px); }
  #village-map .village-map-art { height: 140px; }
  #village-map .journey-menu button { min-height: 44px; }
  .play-edition .bottom-hud { left: 12px; right: 12px; bottom: max(12px,env(safe-area-inset-bottom)); width: auto; transform: none; }
  .play-edition .year-row { height: 34px; }
  .play-edition .date { gap: 7px; }
  .play-edition .date > svg { width: 16px; }
  .play-edition .date > span > strong { font-size: 22px; }
  .play-edition .actions-left { font-size: 9px; }
  .play-edition .world-help { display: none; }
  .play-edition .life-bar { height: 65px; padding: 6px; gap: 0; border-radius: 11px; }
  .play-edition .life-bar-title, .play-edition .life-action kbd, .play-edition .next-year small { display: none; }
  .play-edition .life-action { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 3px 7px; border-left: 0; height: 50px; }
  .play-edition .life-action > span { font-size: 8px; }
  .play-edition .life-action > svg { width: 18px; height: 18px; }
  .play-edition .next-year { min-width: 91px; padding: 7px 10px; height: 49px; flex: 0; gap: 6px; }
  .play-edition .next-year > span { font-size: 19px; white-space: nowrap; }
  .play-edition .next-year svg { display: none; }
  .play-edition .playground-dock { bottom: 185px; right: 14px; gap: 5px; }
  .play-edition #emote-toggle { padding: 8px 10px; }
  .play-edition #emote-toggle span { display: none; }
  .play-edition .movement-actions { gap: 5px; }
  .play-edition .movement-actions button { padding: 8px 10px; font-size: 9px; }
  .play-edition .movement-actions svg { display: none; }
  .play-edition .mood-label { bottom: 54px; }
  .play-edition .world-tools { bottom: 135px; right: 14px; gap: 5px; }
  .play-edition .world-tools button, .play-edition .world-tools #director-toggle { min-width: 44px; min-height: 44px; padding: 8px; }
  .play-edition #activity-cue { bottom: 288px; padding: 8px 12px; max-width: calc(100% - 32px); }
  .play-edition #activity-cue strong { font-size: 20px; }
  .play-edition #nearby { bottom: 270px; font-size: 10px; }
  .play-edition #toast { bottom: 290px; }
  #joystick { display: block; position: absolute; bottom: 138px; left: 18px; z-index: 5; }
  .joystick-label { display: block; text-align: center; font-size: 7px; letter-spacing: 2px; margin-bottom: 8px; color: #e0dfc8; }
  #joystick-pad { display: grid; place-items: center; position: relative; width: 102px; height: 102px; border-radius: 50%; border: 1px solid #e5d8b64d; background: #20362e9c; touch-action: none; user-select: none; }
  #joystick-pad:active { transform: none; }
  #joystick-pad i { width: 68px; height: 68px; border: 1px solid #e5d8b624; border-radius: 50%; position: absolute; }
  #joystick-pad span { display: block; width: 42px; height: 42px; border-radius: 50%; background: #d4c59e; border: 3px solid #f0e2bd; box-shadow: 0 4px 12px #152c2550; }
  #joystick-pad.engaged { border-color: #e5d8b6aa; }
  #days-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 20px; border-radius: 14px; }
  #days-title { font-size: 39px; }
  .days-intro { font-size: 11px; margin: 12px 0 17px; }
  .activity-cards { display: flex; flex-direction: column; gap: 10px; }
  .activity-card { display: grid; grid-template-columns: 88px 1fr; }
  .activity-art { display: grid; place-items: center; padding: 0; grid-row: 1 / 3; }
  .activity-art svg { height: 90px; }
  .activity-info { padding: 13px 12px 6px; }
  .activity-info strong { font-size: 25px; margin: 5px 0; }
  .activity-info > span { display: none; }
  .activity-info b { padding-top: 0; font-size: 8px; }
  .activity-start { margin: 0 12px 10px; padding-top: 7px; font-size: 10px; }
  .days-note { font-size: 9px; margin-top: 15px; }
  .day-title h2 { font-size: 22px; }
  #day-cancel { min-width: 25px; padding: 4px; margin-right: -5px; }
  #day-cancel svg { width: 14px; }
  .village-day p { font-size: 9px; }
  .day-progress { margin: 12px 0 9px; }
  #day-pips { gap: 5px; }
  #day-pips i { width: 8px; height: 8px; }
  #day-count { font-size: 9px; }
  .day-tools { font-size: 9px; gap: 5px; }
  #day-guide { font-size: 8px; }
  #day-guide svg { display: none; }
  #rhythm-game { bottom: 295px; width: 322px; padding: 15px; }
  .play-edition .event-dialog { padding: 22px; }
  .event-scene { padding: 13px; margin-bottom: 19px; gap: 12px; }
  .event-scene > svg { width: 32px; }
  .event-scene em { font-size: 20px; }
  .event-dialog #dialog-title { font-size: 31px; }
  .event-dialog .event-quote { font-size: 13px; }
  .event-dialog .choice-card { padding: 12px; gap: 10px; }
  .event-dialog .choice-card h3 { font-size: 21px; }
}
@media (max-height: 720px) and (max-width: 760px) {
  .play-edition .left-hud { top: 126px; }
  .play-edition .character-top p { display: none; }
  .play-edition .character-card { padding: 9px 11px; }
  .village-day { top: 126px; }
  .play-edition .mood-label { display: none; }
  #rhythm-game { bottom: 258px; }
  .play-edition #activity-cue { bottom: 259px; }
  .play-edition #toast { bottom: 260px; }
}
@media (max-width: 360px) {
  .play-edition .left-hud { width: 140px; }
  .village-day { width: calc(100% - 181px); min-width: 133px; padding: 10px; }
  .village-day h2 { font-size: 21px; }
  #rhythm-game { width: calc(100% - 24px); }
  .rhythm-track { width: 100%; }
}
@media (max-height: 550px) and (min-width: 761px) {
  .play-edition .place-heading { top: 85px; }
  .play-edition .left-hud { top: 85px; }
  .village-day { top: 85px; }
  .explore-tools { top: auto; bottom: 155px; }
  #village-map { top: 80px; max-height: calc(100dvh - 200px); }
  .play-edition .right-hud { top: 85px; max-height: calc(100dvh - 220px); }
}
@media (prefers-reduced-motion: reduce) {
  .play-edition *, .play-edition *::before, .play-edition *::after { scroll-behavior: auto; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .activity-card:hover { transform: none; }
}
@media (pointer: coarse) and (min-width: 761px) {
  #joystick { display: block; position: absolute; bottom: 147px; left: 22px; z-index: 5; }
  .joystick-label { display: block; text-align: center; font-size: 7px; letter-spacing: 2px; margin-bottom: 7px; }
  #joystick-pad { display: grid; place-items: center; position: relative; width: 90px; height: 90px; border-radius: 50%; border: 1px solid #e5d8b64d; background: #20362e9c; touch-action: none; user-select: none; }
  #joystick-pad:active { transform: none; }
  #joystick-pad i { width: 60px; height: 60px; border: 1px solid #e5d8b624; border-radius: 50%; position: absolute; }
  #joystick-pad span { display: block; width: 38px; height: 38px; border-radius: 50%; background: #d4c59e; border: 3px solid #f0e2bd; }
}
@media (max-height: 550px) and (orientation: landscape) {
  .play-edition .topbar { height: 50px; }
  .play-edition .place-heading, .play-edition .mood-label { display: none; }
  .play-edition .left-hud { top: 64px; left: 18px; width: 194px; }
  .play-edition .character-card { padding: 9px 12px; }
  .play-edition .portrait, .play-edition #founder-button, .play-edition .character-top p { display: none; }
  .play-edition .character-top h2 { font-size: 21px; }
  .play-edition .character-treasury { margin-top: 5px; padding: 5px 0; }
  .play-edition .character-card .text-link { padding: 4px 0; min-height: 28px; }
  .village-day { top: 64px; right: 18px; width: 223px; padding: 10px 13px; }
  .village-day h2 { font-size: 25px; margin-top: 7px; }
  .day-idle p, .day-live { display: none; }
  #days-open { margin-top: 10px; min-height: 36px; }
  .village-day.is-playing .day-id { display: none; }
  .village-day.is-playing .day-title h2 { margin: 0; font-size: 22px; }
  .village-day.is-playing #day-cancel { min-height: 24px; padding: 3px; }
  .village-day.is-playing p { font-size: 9px; }
  .village-day.is-playing .day-progress { margin: 8px 0; }
  .village-day.is-playing .day-tools { padding-top: 4px; }
  .village-day.is-playing #day-guide { min-height: 24px; }
  .explore-tools { top: 63px; left: 50%; right: auto; bottom: auto; transform: translateX(-50%); }
  .play-edition .playground-dock { bottom: 148px; right: 18px; }
  .play-edition .world-tools { bottom: 99px; right: 18px; }
  .play-edition .bottom-hud { bottom: 8px; width: calc(100% - 36px); left: 18px; right: 18px; transform: none; }
  .play-edition .year-row { height: 28px; }
  .play-edition .life-bar { height: 60px; }
  .play-edition .next-year { height: 45px; }
  #joystick { bottom: 105px; }
  #joystick-pad { width: 78px; height: 78px; }
  #village-map, .play-edition .right-hud { top: 58px; max-height: calc(100dvh - 145px); }
  #village-map .village-map-art { display: none; }
  #rhythm-game { bottom: 103px; width: 322px; padding: 12px 15px; }
  .play-edition #nearby, .play-edition #activity-cue { bottom: 110px; }
  .play-edition #toast { bottom: 190px; }
  .play-edition.focus-mode .explore-tools { transform: none; }
}
