/* Quiet corner docks; the existing bottom action row keeps its layout. */
#scene{position:fixed;inset:0;width:100vw!important;height:100dvh!important}
header.hud{inset:max(16px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) auto max(18px,env(safe-area-inset-left));gap:10px;align-items:flex-start;z-index:5}
header.hud .hud-dock{display:flex;align-items:center;flex-wrap:nowrap;gap:0;max-width:none;min-width:0;padding:3px;border:1px solid #e5e4d24a;border-radius:32px;background:#2434459c;backdrop-filter:blur(18px);box-shadow:0 3px 16px #101e3112}
header.hud .world-dock{flex:0 1 auto}
header.hud .utility-dock{flex:0 0 auto}
header.hud .hud-dock button{display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;max-width:none;padding:0;border:0;border-radius:50%;background:transparent;box-shadow:none;backdrop-filter:none;font-size:13px;letter-spacing:0;color:#eee9d9;white-space:nowrap;overflow-wrap:normal}
header.hud .hud-dock button:hover,header.hud .hud-dock button[aria-expanded=true]{background:#ffffff14}
header.hud .hud-dock button svg{flex:none;width:21px;height:21px;stroke:currentColor;stroke-width:1.65;fill:none;stroke-linecap:round;stroke-linejoin:round}
header.hud #map{width:auto;min-width:0;border-radius:28px;gap:10px;padding:0 12px}
header.hud .brand{min-width:0;gap:0;text-shadow:none}
header.hud .brand b{font-size:15px;letter-spacing:.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
header.hud #lan-room-button{gap:4px;width:auto;min-width:48px;padding:0 8px 0 9px;border-left:1px solid #e3e4d42b;border-radius:0 25px 25px 0}
header.hud #lan-room-button svg{width:17px;height:17px}
#lan-room-count{font-size:12px;line-height:1;font-variant-numeric:tabular-nums}
#sound-toggle .sound-off{display:none}
#sound-toggle[aria-pressed=false] .sound-waves{display:none}
#sound-toggle[aria-pressed=false] .sound-off{display:block}
.hud-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#menu-panel,#chat-buttons,#view-panel,#settings-panel,#map-panel{top:78px;right:max(18px,env(safe-area-inset-right));max-height:calc(100dvh - 190px);overflow:auto}
#menu-panel{width:260px;padding:18px;background:#223247ed;border-color:#d8dfdf3b;box-shadow:0 14px 40px #10182433}
.menu-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.menu-heading strong{font-size:13px;font-weight:500;letter-spacing:.2px}
.menu-heading #fish-count{position:static;display:inline-flex;align-items:center;border-radius:20px;padding:6px 10px;font-size:11px;background:#eff3e510;color:#e8dfc9;white-space:nowrap}
.menu-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#menu-panel .menu-choices button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:10px 8px;border:1px solid #e5e4d32b;border-radius:13px;background:#ffffff06;font-size:12px}
#menu-panel .menu-choices button:hover{background:#ffffff13}
#menu-panel .menu-choices button{min-width:0}
#menu-panel .menu-choices button span{min-width:0;overflow-wrap:anywhere}
#menu-panel #rescue{grid-column:1/-1;color:#d4dddc}
#menu-panel svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#controls-help{margin-top:15px;border-top:1px solid #ffffff17;padding-top:13px;font-size:11px;color:#d1d8d8}
#controls-help summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:25px;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
#controls-help summary::-webkit-details-marker{display:none}
#controls-help summary::after{content:'+';font-size:17px;opacity:.6}
#controls-help[open] summary::after{content:'−'}
#controls-help p{font-size:11px;line-height:1.9;opacity:.8;margin:8px 0 0}
#chat-buttons{bottom:auto;left:auto;transform:none;display:flex;gap:8px;justify-content:center;width:168px;padding:12px;border-radius:20px;background:#223247ed;border-color:#d8dfdf3b;box-shadow:0 14px 40px #10182433;z-index:6}
#chat-buttons button{flex:1;padding:11px 8px;border-radius:14px;border:1px solid #e5e4d32b;background:#ffffff08;font-size:16px;font-weight:500;min-height:44px}
#chat-buttons button:hover{background:#ffffff18}
.building #chat-buttons:not([hidden]){display:flex}
.touch-controls #hint{display:none}
.touch-controls #sky-toolbar>span{white-space:normal;line-height:1.7}
@media(max-width:650px){
 header.hud{inset:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) auto max(12px,env(safe-area-inset-left));gap:8px}
 header.hud .hud-dock{padding:2px}
 header.hud #map{gap:7px;padding:0 9px}
 header.hud .brand b{font-size:12px;letter-spacing:0}
 header.hud #lan-room-button{min-width:42px;gap:3px;padding:0 6px}
 header.hud .hud-dock button{height:44px;min-width:42px;width:42px}
 header.hud .hud-dock button svg{width:19px;height:19px}
 #menu-panel,#chat-buttons,#view-panel,#settings-panel,#map-panel{top:max(72px,calc(env(safe-area-inset-top) + 60px));right:max(12px,env(safe-area-inset-right));max-width:calc(100vw - 24px)}
 #menu-panel{width:260px}
 #map-panel{width:310px}
}
@media(max-height:500px){#menu-panel,#chat-buttons,#view-panel,#settings-panel,#map-panel{max-height:calc(100dvh - 94px)}}

.utility-area{display:flex;gap:10px;align-items:center}.camera-button{display:flex;align-items:center;justify-content:center;width:50px;height:50px;padding:12px;border:1px solid #e5e4d24a;border-radius:50%;background:#2434459c;backdrop-filter:blur(18px)}.camera-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}@media(max-width:650px){.utility-area{gap:6px}.camera-button{width:44px;height:48px;padding:10px}}

#snow-screen{position:fixed;inset:0;width:100vw!important;height:100dvh!important;pointer-events:none;z-index:2}.bottom,#ski-toolbar,#ski-boost{z-index:3}#ride-speed{position:fixed;top:80px;left:max(20px,env(safe-area-inset-left));display:flex;align-items:baseline;gap:4px;color:#fff2d9;text-shadow:0 1px 5px #182840;z-index:5;pointer-events:none}#ride-speed b{font-size:21px;font-weight:500;font-variant-numeric:tabular-nums}#ride-speed small{font-size:8px}#snowman-timer{position:fixed;top:111px;left:max(20px,env(safe-area-inset-left));font-size:11px;color:#f3ebdb;background:#24374c9c;border-radius:12px;padding:5px 9px;z-index:5;pointer-events:none}#snowman-time{font-variant-numeric:tabular-nums}#ski-speed{display:none}#ski-boost{position:fixed;right:max(22px,env(safe-area-inset-right));bottom:165px;width:58px;height:58px;border:1px solid #e5e4d25a;border-radius:50%;background:#243445bd;backdrop-filter:blur(15px);font-size:12px;touch-action:none}body:not(.touch-controls) #ski-boost{display:none!important}.photo-mode #ride-speed,.photo-mode #snowman-timer,.photo-mode #ski-boost{visibility:hidden}

#ride-speed{padding:3px 7px;border-radius:12px;background:#24374c66;backdrop-filter:blur(8px)}

.bottom nav{max-width:calc(100vw - 20px)}.bottom nav button{min-width:60px}#firework-points{font:inherit}@media(max-width:600px){.bottom nav{gap:2px;padding:8px}.bottom nav button{min-width:47px;padding:8px 3px;font-size:11px}.bottom nav .action-icon{font-size:24px;height:28px}}

.cart-driving .bottom { display:none; }
#cart-toolbar {
  position:fixed; z-index:6; left:50%; bottom:max(12px,env(safe-area-inset-bottom));
  transform:translateX(-50%); width:min(322px,calc(100vw - 24px)); padding:8px 10px;
  color:#f6eed7; background:#273944ed; border:1px solid #e7dcbd52; border-radius:20px;
}
.cart-head,#cart-balance-controls { display:flex; align-items:center; gap:8px; }
.cart-head { font-size:12px; }
#cart-progress { flex:1; font-variant-numeric:tabular-nums; }
#cart-toolbar button { min-height:36px; padding:5px 10px; border-radius:12px; background:#fff1; touch-action:none; }
#cart-balance-controls { margin-top:2px; }
#cart-left,#cart-right { min-width:48px; min-height:44px!important; color:#f6dfaf; }
#cart-balance-controls button[data-down="true"] { color:#263a45; background:#eadab9; }
.cart-gauge { flex:1; text-align:center; min-width:0; font-size:11px; line-height:1.2; }
#cart-meter { position:relative; margin:9px 5px; height:5px; border-radius:6px; background:linear-gradient(90deg,#df957d,#e3c992 23%,#8cb6af 42%,#8cb6af 58%,#e3c992 77%,#df957d); }
#cart-meter::before { content:""; position:absolute; left:50%; top:-2px; height:9px; border-left:1px solid #243b48; }
#cart-meter i { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:9px; height:13px; border-radius:4px; background:#fff3d8; box-shadow:0 0 0 1px #263b47; }
#cart-right-hint { display:block; text-align:center; margin:4px 0 5px; font-size:13px; color:#f5d19c; }
