/* Riverbank and mining controls retain the native world behind them. */
.gathering-sheet{inset:0;margin:auto;width:min(600px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 28px);padding:0;color:#e3d5ad;background:linear-gradient(135deg,#252318,#11150e);border:1px solid #a98644;border-radius:12px;box-shadow:0 18px 70px #000a;overflow:hidden}
.gathering-sheet::backdrop{background:#050805ad;backdrop-filter:blur(5px)}
.gathering-sheet[open]{display:flex;flex-direction:column}
.gathering-sheet>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 24px 16px;border-bottom:1px solid #826c3d66;flex:none}
.gathering-sheet h2{font:28px/1.15 Georgia,serif;color:#eddaa6;margin:0}
.gathering-sheet>header button{width:42px;height:42px;min-height:42px;padding:0;font:28px Arial;background:none;border:0;color:#c6b58b;flex:none}
.gathering-sheet-body{overflow:auto;min-height:0;overscroll-behavior:contain;padding:20px 24px;scrollbar-width:thin;scrollbar-color:#8b764b transparent}
.gathering-sheet h3{margin:22px 0 12px;font:600 15px/1.4 Arial,sans-serif;color:#e3d5ad}
.gathering-help{margin:0 0 14px;color:#aca58b;font:13px/1.65 Arial,sans-serif}
.gathering-sheet button{font-size:13px;min-height:44px}
.gathering-sheet button:focus-visible,.gathering-scene-panel button:focus-visible{outline:2px solid #ecc572;outline-offset:3px}
.gather-tool{display:flex;align-items:center;gap:16px;padding:14px 0;border-block:1px solid #77623c55;margin:16px 0}
.gather-tool>img{width:40px;height:64px;object-fit:contain}
.gather-tool strong,.gather-tool small{display:block}.gather-tool strong{font-size:15px}.gather-tool small{font-size:12px;color:#a99f82;margin-top:6px}
.gathering-chance{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:#bab08f}.gathering-chance strong{font-size:20px;color:#edc46c}
.gather-baits,.gather-supplies,.gather-stones{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.gather-baits button,.gather-ore-list button{display:flex;align-items:center;gap:12px;text-align:left;padding:12px;background:#0c100b77;border:1px solid #6b583966;border-radius:4px;color:#daceaa;min-width:0}
.gather-baits img{width:32px;height:40px;object-fit:contain}.gather-baits small,.gather-ore-list small{display:block;margin-top:4px;color:#b5a784;font-size:12px}
.gathering-sheet [aria-pressed=true]{border-color:#c79e50;background:#79602c26;box-shadow:inset 3px 0 #b99046}
.gather-fish-list,.gather-map-ores{display:flex;flex-wrap:wrap;gap:12px}.gather-fish-list>span,.gather-map-ores>span{display:flex;align-items:center;gap:7px;font-size:12px;color:#beb18c}.gather-fish-list img,.gather-map-ores img{width:28px;height:32px;object-fit:contain}
.gathering-actions{display:flex;justify-content:flex-end;gap:12px;padding-top:18px;margin-top:20px;border-top:1px solid #77623c66}.gathering-actions button{padding:10px 18px;min-width:100px}
.gather-ore-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.gather-ore-list img{width:36px;height:38px;object-fit:contain;flex:none}.gather-ore-list span{flex:1}.gather-ore-list i{font-style:normal;color:#eac56e;visibility:hidden}.gather-ore-list [aria-pressed=true] i{visibility:visible}
.gather-supplies{grid-template-columns:repeat(3,minmax(0,1fr))}.gather-supplies button,.gather-stones button{display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 8px;color:#dbcca4;background:#0c100b77;border:1px solid #6b583966;border-radius:4px}.gather-supplies img{width:40px;height:64px;object-fit:contain}.gather-supplies strong{font-size:13px}.gather-supplies small{font-size:11px;color:#d1ad65}.gather-stones img{width:36px;height:36px;object-fit:contain}
.gather-purchase{display:flex;align-items:center;gap:20px;padding:12px 0}.gather-purchase img{width:50px;height:80px;object-fit:contain}.gather-quantity{display:flex;align-items:center;justify-content:space-between;font-size:14px}.gather-quantity input{width:100px;text-align:center;padding:10px;color:#ead6a5;background:#11140e;border:1px solid #8a7042}.gather-purchase-price{color:#e8bd65;text-align:right;font-size:17px}
.gather-refine-recipe{display:flex;justify-content:space-around;align-items:center;gap:10px;margin:8px 0 24px}.gather-refine-recipe>span{display:flex;flex-direction:column;align-items:center;gap:8px;max-width:32%;text-align:center}.gather-refine-recipe img{width:48px;height:48px;object-fit:contain}.gather-refine-recipe small{font-size:12px;color:#c7b78e}.gather-refine-recipe b{color:#9e8247}
.gathering-scene-panel{position:absolute;z-index:6;left:24px;bottom:24px;width:320px;max-width:calc(100% - 48px);padding:16px 18px;background:linear-gradient(130deg,#252417eb,#10150eeb);border:1px solid #8b713d;border-radius:6px;box-shadow:0 8px 30px #0005;backdrop-filter:blur(8px)}
.gathering-scene-panel[hidden]{display:none}.gather-scene-heading{display:flex;align-items:center;gap:12px}.gather-scene-heading>img{width:30px;height:48px;object-fit:contain}.gather-scene-heading small{font-size:11px;color:#b9a478}.gather-scene-heading h2{margin:4px 0 0;font:22px/1.2 Georgia,serif;color:#eddaa6}.gather-scene-stats{display:flex;gap:28px;margin:16px 0 10px}.gather-scene-stats small{display:block;color:#b0a587;font-size:11px}.gather-scene-stats strong{display:block;color:#ebd9a8;margin-top:4px;font:600 19px/1.2 Arial,sans-serif;font-variant-numeric:tabular-nums}.gathering-scene-panel .gathering-help{font-size:11px;margin:10px 0}.gather-scene-actions{display:flex;gap:8px;border-top:1px solid #806a3c66;padding-top:10px}.gather-scene-actions button{flex:1;min-height:40px;padding:6px;font-size:12px}
body[data-view=farm][data-gathering]:not([data-gathering=""]) .activity-empty,body[data-view=farm][data-gathering]:not([data-gathering=""]) .skill-ribbon,body[data-view=farm][data-gathering]:not([data-gathering=""]) .activity-results-button,body[data-view=farm][data-gathering]:not([data-gathering=""]) .combat-target,body[data-view=farm][data-gathering]:not([data-gathering=""]) .hunt-search,body[data-view=farm][data-gathering]:not([data-gathering=""]) .encounter-reveal{display:none!important}
body:not([data-view=farm]) .gathering-scene-panel{display:none}
.gather-location-options{display:contents}.gather-location h3{margin-bottom:12px}.gather-location>button{margin-top:14px;width:100%}.gather-alchemist-service img{width:40px;height:48px;object-fit:contain}.gather-field-action{margin-left:12px}.gather-field-action[hidden]{display:none}
.gather-reward-quantity{display:flex;align-items:center;justify-content:space-between;padding:14px 0 10px;color:#c5b898;font-size:12px}.gather-reward-quantity strong{font-size:25px;color:#edc46c}.encounter-rewards-portrait>img{width:100%;height:100%;object-fit:contain}
@media(max-width:600px){.gathering-sheet{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.gathering-sheet>header{padding:14px 16px}.gathering-sheet h2{font-size:24px}.gathering-sheet-body{padding:16px}.gathering-actions button{flex:1;min-width:0;padding:10px}.gather-supplies{gap:6px}.gather-supplies strong{font-size:12px}.gathering-scene-panel{left:12px;bottom:14px;max-width:calc(100% - 24px);width:290px;padding:12px 14px}.gather-ore-list{grid-template-columns:1fr}.gather-field-action{margin:10px 0 0}}
@media(max-height:500px) and (orientation:landscape){.gathering-scene-panel{bottom:10px;width:280px}.gather-scene-stats{margin:8px 0}.gathering-scene-panel .gathering-help{display:none}}

body[data-view=farm][data-gathering]:not([data-gathering=""]) .rest-screen,body[data-view=farm][data-gathering]:not([data-gathering=""]) .hunt-search-screen{display:none!important}
body[data-view=farm][data-gathering]:not([data-gathering=""]) .scene{visibility:visible!important;opacity:1!important;display:block!important}

/* One quiet status button on the scene; management stays behind a tap. */
.mining-search-screen{position:absolute;inset:0;z-index:2;isolation:isolate;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;padding:64px 18px 22px;background:#10120f;color:#ead9af}
.mining-search-screen[hidden]{display:none}
.mining-search-screen:before{content:'';position:absolute;inset:0;min-height:100%;background:radial-gradient(ellipse at 50% 36%,#10120f22,#10120fc9 70%),linear-gradient(#10120f44,#10120fdd);z-index:-1;pointer-events:none}
.mining-search-screen .hunt-search-target>img{width:36px;height:42px;object-fit:contain;flex:none}
.mining-search-screen .hunt-search-target h3{font-size:15px;margin:0}
.mining-search-screen .hunt-search-settings{margin-top:16px}
body:not([data-view=farm]) .mining-search-screen{display:none}
body[data-view=farm][data-gathering=mining][data-mining-search=true] .scene{visibility:hidden!important}
.gathering-scene-panel{z-index:4}
.gather-mined{border-top:1px solid #76603b55;margin:0 0 16px;padding-top:12px}
.gather-mined h3{font:18px Georgia,serif;margin:0 0 8px;color:#dfc99a}
[data-mined-ores]>div{display:flex;align-items:center;gap:10px;padding:6px 0;color:#d6c7a5;font-size:13px}
[data-mined-ores] img{width:30px;height:34px;object-fit:contain;flex:none}
[data-mined-ores] strong{margin-left:auto;color:#e7c774;font-size:15px;font-variant-numeric:tabular-nums}
@media(max-width:600px){.mining-search-screen{padding:60px 14px 18px}}
.gathering-scene-panel{inset:12px 12px auto auto;width:auto;max-width:calc(100% - 24px);padding:0;background:none;border:0;border-radius:0;box-shadow:none;backdrop-filter:none}
.gathering-status{display:flex;align-items:center;gap:10px;min-height:44px;padding:6px 11px;border:1px solid #8b713d99;border-radius:4px;background:#11150ee8;box-shadow:0 3px 10px #0003;color:#e1cfa4;font:600 13px/1.4 Arial,sans-serif;font-variant-numeric:tabular-nums;cursor:pointer;touch-action:manipulation}
.gathering-status>img{width:28px;height:28px;object-fit:contain}
.gathering-status>i{width:1px;height:22px;background:#806a3c77}
.gathering-status-catch{display:flex;align-items:baseline;gap:4px}.gathering-status-catch strong{color:#edce88;font-size:14px}.gathering-status-catch small{font:11px Arial,sans-serif;color:#b6aa8d}
.gathering-status:hover{border-color:#bd9653}.gathering-status:focus-visible{outline:2px solid #edca83;outline-offset:3px}
.gathering-detail-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;margin:20px 0 24px}
.gathering-detail-metrics>div{min-width:0}.gathering-detail-metrics dt{color:#afa386;font:12px/1.5 Arial,sans-serif}.gathering-detail-metrics dd{margin:5px 0 0;color:#ecdbad;font:600 22px/1.3 Arial,sans-serif;font-variant-numeric:tabular-nums}
.gathering-detail-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.gathering-detail-actions [data-detail-stop]{grid-column:1/-1;border-color:#916347;background:#49291b;color:#e3c2aa}
.gathering-detail-actions [data-detail-stop][hidden]{display:none}
@media(max-width:600px){.gathering-scene-panel{inset:10px 10px auto auto;width:auto;max-width:calc(100% - 20px);padding:0}.gathering-status{gap:8px;padding:6px 9px;font-size:12px}.gathering-status>img{width:25px;height:25px}.gathering-status-catch strong{font-size:13px}}
