/* World-facing controls: warm paper, river blue and Hakken gold. */
.world-conversation{position:fixed;z-index:65;left:50%;bottom:26px;transform:translateX(-50%);width:min(790px,calc(100vw - 48px));background:#fff8e6;border:2px solid #d8ac47;border-radius:9px;box-shadow:inset 0 0 0 3px #fff0bc,0 8px 0 #8d693b22,0 14px 35px #153c432b;color:#164456;padding:0}
.world-conversation[hidden],.courtyard-practice[hidden]{display:none!important}
.world-conversation::before{content:"";position:absolute;top:-5px;left:12px;right:12px;height:5px;background:repeating-linear-gradient(90deg,#5eb0c1 0 20px,#32849d 20px 23px);border-radius:3px}
.world-conversation .conversation-scene{display:grid;grid-template-columns:112px minmax(0,1fr);gap:18px;padding:19px 46px 14px 18px;min-height:0;background:none}
.world-conversation .conversation-person{position:relative;inset:auto;width:112px;height:145px;min-height:0;padding:0;align-self:end;pointer-events:none;display:flex;align-items:flex-end;justify-content:center}
.world-conversation .conversation-person::before,.world-conversation .conversation-person>span{display:none}
.world-conversation .conversation-person .resident-art{width:95px;height:153px;max-height:none;filter:drop-shadow(0 4px 0 #a4823b22)}
.world-conversation .conversation-box{padding:0;min-width:0;background:none;border:0;box-shadow:none}
.world-conversation .conversation-box header{margin:0;display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 15px}
.world-conversation .conversation-box header h2{font:800 23px/1.3 system-ui,sans-serif;letter-spacing:-.025em;color:#17465a;margin:0;order:-1}
.world-conversation .eyebrow{font:700 10px/1.5 HakkenPixel,monospace;color:#338497}
.world-conversation .conversation-line{font:15px/1.6 system-ui,sans-serif;color:#315e69;margin:9px 0 12px;max-width:none}
.world-conversation .conversation-choices{display:flex;gap:7px;flex-wrap:wrap;margin:0;counter-reset:option}
.world-conversation .conversation-choices .pixel-button{counter-increment:option;min-height:39px;padding:8px 13px;border-radius:5px;font:750 13px/1.4 system-ui,sans-serif;box-shadow:0 2px 0 #af853b3b;border:1px solid #dbad3f;background:#ffda66;color:#183e50;max-width:none}
.world-conversation .conversation-choices .pixel-button.secondary{background:#edf4e8;border-color:#b2c7ac;box-shadow:0 2px 0 #b3c3a92b}
.world-conversation .conversation-choices .pixel-button::before{content:counter(option);display:inline-flex;align-items:center;justify-content:center;width:17px;height:19px;margin-right:7px;border-radius:3px;background:#ffffff7a;font-size:10px;color:#42626a}
.conversation-close,.practice-close{position:absolute;right:12px;top:11px;width:31px;height:31px;border:1px solid #d5b66e;border-radius:5px;color:#20516a;background:#fff0c4;font:24px/1 system-ui;cursor:pointer}
.world-conversation .conversation-hint{display:block;font:11px/1.4 system-ui,sans-serif;color:#6c8984;margin:10px 0 0}
.world-conversation .conversation-detail{max-height:23dvh;overflow:auto;margin:8px 0 12px;padding-right:7px;font-size:14px}
.world-conversation .quest-active{padding:10px;background:#e7f1df;border:0}.world-conversation .quest-active h3{font:700 16px system-ui;margin:0 0 7px}.world-conversation .quest-current{font-size:14px}.world-conversation .quest-meta{font-size:11px}.world-conversation .quest-active .play-actions .pixel-button{font-size:12px;min-height:36px;padding:8px 12px}
.is-talking #city-interact,.is-talking #active-objective,.is-talking .hud-bottom-left{visibility:hidden}
.world-conversation button:focus-visible,.courtyard-practice button:focus-visible{outline:3px solid #1687b1;outline-offset:3px}
.courtyard-practice{position:fixed;z-index:55;left:50%;bottom:24px;transform:translateX(-50%);width:min(510px,calc(100vw - 40px));padding:17px 21px 13px;background:#fff8e6f7;color:#194c5a;border:2px solid #d9ae4c;border-radius:9px;box-shadow:0 7px 24px #163c4326}
.courtyard-practice header{display:flex;justify-content:space-between;padding-right:30px}.courtyard-practice h2{font:800 21px/1.3 system-ui;margin:5px 0 0}.courtyard-practice .eyebrow{font:700 9px HakkenPixel,monospace;color:#3d8896}
.practice-cue{font:700 14px/1.5 system-ui;margin:12px 0;color:#266c7c;min-height:21px}.courtyard-practice[data-cue=counter] .practice-cue{color:#b74e40}.courtyard-practice.complete .practice-cue{color:#228061}
.practice-progress{display:flex;gap:24px;font:13px system-ui;margin-bottom:13px}.practice-progress b{margin-left:7px;color:#1c6476}
.practice-actions{display:flex;gap:8px}.practice-actions button{flex:1;min-height:42px;padding:8px;border:1px solid #d2ac52;background:#ffdc72;color:#173e50;font:700 13px system-ui;border-radius:4px;touch-action:none;cursor:pointer}.practice-actions button:last-child{background:#d8eff0;border-color:#8bbdc3}.practice-actions kbd{font:700 11px system-ui;padding:2px 4px;background:#fff9;border-radius:3px;margin-right:5px}.courtyard-practice>small{display:block;font:11px/1.5 system-ui;color:#708581;margin-top:10px}
.public-fishing{left:50%;right:auto;bottom:24px;transform:translateX(-50%);width:min(450px,calc(100vw - 36px));max-height:calc(100dvh - 100px);overflow:auto;padding:16px 20px 15px;border:2px solid #d8ad47;border-radius:8px;box-shadow:inset 0 0 0 2px #fff0bd,0 8px 25px #163d432b;background:#fff8e8f7;color:#174b5a}
.public-fishing::before{display:none}.fishing-panel-heading{margin:0;align-items:center}.fishing-panel-heading h2{font:800 21px/1.2 system-ui;margin:4px 0 0;color:#174b5a}.fishing-panel-heading .eyebrow{font:700 9px/1.5 HakkenPixel,monospace;color:#458d99}.fishing-panel-heading .hud-button{width:31px;min-height:31px;height:31px;border-radius:4px;box-shadow:none}
.fishing-steps{margin:10px 0 0;font:700 11px system-ui;gap:14px}.fishing-steps li{padding:5px 0;color:#8a9b91;border-color:#d5decc}.fishing-steps .current{color:#1b7c92;border-color:#49a6b8}
.fishing-message{font:600 14px/1.5 system-ui;min-height:21px;margin:10px 0;color:#2d6573}.public-fishing[data-phase=waiting] .fishing-message{color:#986025}.public-fishing:has(.bite-ready){border-color:#edb521}.public-fishing:has(.bite-ready) .fishing-message{color:#a15c14}
.public-reel{display:block;margin:10px 0 0}.public-reel[hidden]{display:none}.public-reel .vertical-reel{position:relative;width:100%;height:39px;min-height:39px;max-height:39px;border-radius:4px;border:2px solid #6fa8b4;background:repeating-linear-gradient(90deg,#c7e7ec 0 24px,#c0e0e7 24px 25px);overflow:hidden}
.public-reel .reel-grid{display:none}.public-reel .player-catch-zone{position:absolute;top:0;bottom:0;height:100%;min-height:0;background:#63cda899;border:2px solid #2f9e76;transform:none}.public-reel .player-catch-zone.in-zone{background:#52d792cc;border-color:#1f9669}.public-reel .reel-fish-icon{position:absolute;top:50%;bottom:auto;transform:translate(-50%,-50%);font-size:24px;line-height:1;color:#1d617b;text-shadow:1px 1px #fff}
.fishing-reel-help{margin-top:8px;font:12px system-ui}.fishing-reel-help strong{font-size:13px;color:#237c8b}.fishing-reel-help p{font-size:12px;margin:5px 0;color:#5f7f83}.fishing-reel-help progress{height:6px;width:100%;accent-color:#389b7b}.fishing-reel-help small{display:inline-block;font-size:11px;margin:3px 16px 0 0;color:#718b89}
.fishing-key-hint{display:block;font:11px/1.4 system-ui;color:#768d87;margin:8px 0}.fishing-key-hint kbd{font:700 10px system-ui;color:#3e7181;background:#e5eee0;padding:2px 4px}.fishing-bait{font:12px/1.5 system-ui;color:#5c807e;margin:6px 0}.fishing-primary{width:100%;font:800 14px system-ui;min-height:43px;padding:10px;border-radius:4px;background:#ffd15b;color:#174c5d;border-color:#d6a039}.fishing-primary.bite-ready{background:#ffd149;animation:hook-pulse .65s ease-in-out infinite alternate}.fishing-primary.held{background:#90dbb5;box-shadow:inset 0 0 0 2px #e2f7d1;border-color:#47977d}.fishing-result{padding:9px;gap:13px;border-radius:5px;margin:10px 0;background:#e5f1dc;border:1px solid #c0d6ac}.fishing-result .fish-art{width:50px;height:50px;flex-basis:50px;border:0;background-color:transparent}.fishing-result strong{font-size:17px}.fishing-result small{font-size:12px}.fishing-active .hud-bottom-right{display:none}.fishing-active .hud-brand{opacity:.65}
@keyframes hook-pulse{to{box-shadow:0 0 0 4px #ffcf4c55}}
@media(max-width:700px){.world-conversation{bottom:12px;width:calc(100vw - 24px)}.world-conversation .conversation-scene{grid-template-columns:65px minmax(0,1fr);gap:9px;padding:15px 35px 13px 10px}.world-conversation .conversation-person{width:65px;height:105px}.world-conversation .conversation-person .resident-art{width:62px;height:111px}.world-conversation .conversation-box header h2{font-size:19px}.world-conversation .eyebrow{font-size:8px}.world-conversation .conversation-line{font-size:14px;line-height:1.45;margin:8px 0}.world-conversation .conversation-choices{gap:6px}.world-conversation .conversation-choices .pixel-button{font-size:12px;padding:9px;min-height:42px}.world-conversation .conversation-choices .pixel-button::before{display:none}.world-conversation .conversation-hint{display:none}.world-conversation .conversation-detail{max-height:21dvh}.conversation-close{top:8px;right:7px;width:27px;height:29px}.courtyard-practice{bottom:14px;width:calc(100vw - 28px);padding:12px 14px}.courtyard-practice h2{font-size:18px}.practice-progress{font-size:12px;margin-bottom:9px}.practice-cue{font-size:13px;margin:9px 0}.practice-actions button{min-height:46px;font-size:12px}.practice-actions kbd{display:none}.courtyard-practice>small{display:none}.courtyard-practice~* .city-context{visibility:hidden}.public-fishing{bottom:14px;width:min(410px,calc(100vw - 24px));padding:12px 14px;max-height:70dvh}.fishing-panel-heading h2{font-size:18px}.fishing-key-hint{display:none}.fishing-message{font-size:13px}.fishing-primary{min-height:47px}}
@media(max-height:520px) and (orientation:landscape){.world-conversation{bottom:10px;width:min(690px,calc(100vw - 30px))}.world-conversation .conversation-scene{padding:10px 42px 10px 12px;grid-template-columns:63px 1fr}.world-conversation .conversation-person{width:63px;height:100px}.world-conversation .conversation-person .resident-art{width:59px;height:100px}.world-conversation .conversation-line{font-size:13px;margin:5px 0 8px}.world-conversation .conversation-hint{display:none}.world-conversation .conversation-choices .pixel-button{min-height:33px;font-size:12px;padding:6px 10px}.public-fishing{width:370px;bottom:9px;padding:10px 14px;max-height:85dvh}.fishing-steps,.fishing-key-hint{display:none}.fishing-message{margin:7px 0}.fishing-reel-help p{display:none}}
@media(prefers-reduced-motion:reduce){.fishing-primary.bite-ready{animation:none}}.reduced-motion .fishing-primary.bite-ready{animation:none}

@media(max-width:700px) and (orientation:portrait){.courtyard-practice{bottom:150px}}
@media(max-height:520px) and (orientation:landscape){.courtyard-practice{left:auto;right:12px;bottom:12px;transform:none;width:min(440px,calc(100vw - 195px));padding:10px 12px}.courtyard-practice h2{font-size:17px}.courtyard-practice>small{display:none}.practice-progress{margin-bottom:8px}.practice-cue{font-size:12px;margin:7px 0}}

.fishing-save{display:block;margin:10px auto 0;border:0;background:none;color:#268097;text-decoration:underline;font:600 12px/1.5 system-ui;cursor:pointer}.is-practicing #city-interact{visibility:hidden}
/* During a catch, keep only the live cue and meter so the fighter stays visible. */
.public-fishing:is([data-phase=reel],[data-phase=checking],[data-phase=result],[data-phase=retry]) :is(.fishing-panel-heading h2,.fishing-steps,.fishing-message,.fishing-key-hint,.fishing-reel-help p){display:none}
.public-fishing:is([data-phase=reel],[data-phase=checking]) .fishing-panel-heading .eyebrow::after{content:' · REELING'}
.public-fishing:is([data-phase=reel],[data-phase=checking]) .public-reel{margin-top:5px}
.public-fishing .fishing-result[hidden]{display:none}

/* Fishing salvage uses the established pixel inventory treatment. */
.scrap-art{width:50px;height:50px;flex-shrink:0}.salvage-bag>div{display:flex;flex-wrap:wrap;gap:12px}.salvage-bag article{display:flex;align-items:center;gap:10px;padding:10px;background:#e6edcd}.salvage-bag article>span{display:flex;flex-direction:column}.salvage-bag .scrap-art{width:36px;height:36px}.public-fishing[data-phase=retry] .fishing-message{display:block}.public-fishing[data-phase=connecting] .fishing-primary{opacity:.8}
