:root{color-scheme:light;--ochre:#b86a10;--ink:#57300c;--cream:#fff2cf;--pearl:#fff9e8;--shadow:#763b15;font-family:ui-rounded,"Trebuchet MS",system-ui,sans-serif}
*{box-sizing:border-box}body{margin:0;background:#a7641f;color:var(--ink)}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:var(--ink);border:1px solid #c79246;background:linear-gradient(#fff8e4,#efd4a3);box-shadow:inset 0 2px 0 #fffaf0,0 3px 0 #ab722e;border-radius:14px;font-weight:800;min-width:48px;min-height:48px;touch-action:manipulation}button:active:not(:disabled){transform:translateY(2px);box-shadow:inset 0 1px 3px #9e6b32}button:disabled{cursor:default;filter:saturate(.55);opacity:.65}button:focus-visible,a:focus-visible,input:focus-visible,[role=slider]:focus-visible,select:focus-visible{outline:3px solid #58390a;outline-offset:3px}[hidden]{display:none!important}
.game-shell{width:min(100%,520px);height:100vh;height:100dvh;min-height:650px;margin:0 auto;position:relative;display:grid;grid-template-rows:auto 46px minmax(205px,1fr) 247px 48px;overflow:hidden;background:#b66e20;border:1px solid #a46017;box-shadow:0 0 80px #5d310e88;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
.title-wrap{position:relative;width:100%;height:clamp(120px,37.5vw,170px);overflow:hidden;background:#bc782d}.title-art{display:block;width:100%;height:100%;object-fit:fill;pointer-events:none}.corner{position:absolute;top:3%;width:15%;height:33%;min-height:48px;min-width:48px;border:0;box-shadow:none;background:transparent;border-radius:50%}.corner:active:not(:disabled){box-shadow:inset 0 0 12px #8c500a77}.pause{left:2%}.restart{right:2%}
.score-strip{background:linear-gradient(#dfaf5e,#f5d49b);display:grid;grid-template-columns:1fr 86px 1fr;align-items:center;text-align:center;padding:2px 8px;box-shadow:inset 0 -2px 3px #a46a2a55;z-index:1}.side-name{display:block;font-size:11px;font-weight:900;letter-spacing:.5px;white-space:nowrap}.hull{display:block;color:#ba6508;font-size:21px;line-height:23px;text-shadow:0 1px #fff2c9,0 2px 2px #8f4c17}.hull.pearl{color:#fff5df;text-shadow:0 2px 2px #9b5a19}.wind b{font-size:18px;display:block;line-height:21px}.wind small{font-size:11px;font-weight:900;letter-spacing:1px;display:block}
.arena{position:relative;min-height:0;background:#e9c798;overflow:hidden;touch-action:none}.arena canvas{display:block;width:100%;height:100%;touch-action:none;outline-offset:-4px}.turn-note{position:absolute;top:9px;left:50%;transform:translateX(-50%);max-width:96%;white-space:nowrap;border:1px solid #be8a4488;padding:6px 12px;border-radius:20px;background:#fff1d4e8;font-size:12px;font-weight:800;box-shadow:0 3px 8px #89552422;pointer-events:none}.aim-readout{position:absolute;left:5%;bottom:18%;display:flex;gap:10px;padding:3px 8px;background:#fff0d1ed;border:1px solid #c08a3e;border-radius:12px;box-shadow:0 2px 4px #653a1833;pointer-events:none}.aim-readout span{text-align:center}.aim-readout b{font-size:26px;line-height:29px;display:block;letter-spacing:-1px}.aim-readout small{font-size:11px;letter-spacing:1px;display:block;font-weight:900}.last-shot{position:absolute;right:10px;bottom:28px;max-width:50%;font-size:11px;font-weight:800;text-align:right;background:#fff0d4de;border-radius:8px;padding:4px 6px;pointer-events:none}.preview-label{position:absolute;bottom:9px;right:10px;font-size:11px;font-weight:700;color:#fff7dd;text-shadow:0 1px 2px #5c2d0b;pointer-events:none}
.control-tray{z-index:2;border-radius:28px 28px 0 0;background:radial-gradient(ellipse at 30% 0,#fff8e6,#ecd2a6);box-shadow:inset 0 4px 1px #fff8e4,inset 0 0 0 4px #e9c28d,0 -4px 8px #71411844;padding:10px 12px 9px;display:grid;grid-template-rows:154px 64px;gap:8px;touch-action:none}.aim-controls{display:grid;grid-template-columns:35% 65%;gap:0;min-width:0}.dial-box{padding-right:8px;position:relative}.aim-dial{position:relative;width:100%;height:106px;touch-action:none;cursor:grab;user-select:none}.aim-dial img{width:100%;height:100%;object-fit:contain;pointer-events:none}.aim-dial:active{cursor:grabbing}#dial-needle{position:absolute;width:4px;height:34%;bottom:50%;left:calc(50% - 2px);background:linear-gradient(90deg,#fff0c1,#753700);border:1px solid #7e4107;border-radius:4px;transform-origin:50% 100%;transform:rotate(35deg);box-shadow:1px 2px 2px #74400a55;pointer-events:none}.dial-dot{width:16px;height:16px;background:#fff2cb;border:3px solid #b76c13;border-radius:50%;position:absolute;top:calc(50% - 8px);left:calc(50% - 8px);pointer-events:none}.step-buttons{display:flex;align-items:center;justify-content:space-between;gap:2px;height:48px}.step-buttons button{font-size:25px;width:48px;height:48px;border-radius:12px;flex-shrink:0}.step-buttons span{font-size:11px;font-weight:900;letter-spacing:.3px;text-align:center}.power-box{min-width:0;padding-left:4px}.power-box label{display:flex;justify-content:space-between;font-size:11px;font-weight:900;letter-spacing:1px;line-height:16px}#power-small{font-size:14px;letter-spacing:0}input[type=range]{appearance:none;width:100%;height:48px;margin:0;cursor:ew-resize;touch-action:none;background:transparent}input[type=range]::-webkit-slider-runnable-track{height:16px;border-radius:10px;background:linear-gradient(#a95506,#d38820);box-shadow:0 1px 0 #fff,inset 0 2px 4px #6c350b;border:2px solid #eac597}input[type=range]::-webkit-slider-thumb{appearance:none;width:34px;height:34px;border-radius:50%;margin-top:-11px;border:3px solid #e4b875;background:radial-gradient(circle at 35% 25%,#fff9e5,#e4c495);box-shadow:0 2px 3px #70411166}input[type=range]::-moz-range-track{height:16px;border-radius:10px;background:#b46d16}input[type=range]::-moz-range-thumb{width:32px;height:32px;border-radius:50%;background:#fff0d1;border:2px solid #c3924c}.power-box .step-buttons{height:42px;transform:translateY(-3px)}.power-box .step-buttons button{height:48px}.shields{display:flex;gap:6px;height:48px;margin-top:0}.shields button{width:33.33%;height:48px;min-height:48px;display:flex;align-items:center;justify-content:center;gap:4px;border-radius:12px;padding:3px 4px}.shields img{height:31px;width:17px;object-fit:contain;pointer-events:none}.shields button:first-child img{transform:rotate(45deg)}.shields button:last-child img{transform:rotate(-35deg)}.shields span{font-size:11px}.shields [aria-pressed=true]{border:3px solid #9c550d;background:linear-gradient(#f9d88c,#e9ac42);box-shadow:inset 0 2px 0 #fff7df,0 2px 0 #93591c}
.fire{height:64px;width:100%;background:#d08314 url('../assets/play/pebblebattery/fire.webp') center/100% 100% no-repeat;border:0;border-radius:25px;box-shadow:0 3px 0 #ae6b1c;display:flex;justify-content:space-between;align-items:center;padding:0 25px;text-shadow:0 1px #ffe7aa;color:#5f2a00;letter-spacing:1px}.fire span{font-size:22px;font-weight:1000}.fire small{max-width:80px;font-size:11px;text-align:right;line-height:12px}.bottom-nav{display:flex;align-items:center;justify-content:space-evenly;background:#b87528;gap:2px;padding:0 6px}.bottom-nav button,.bottom-nav a{min-width:48px;min-height:48px;padding:0 7px;display:flex;align-items:center;justify-content:center;border:0;box-shadow:none;background:transparent;font-size:11px;font-weight:800;color:#fff3d1;text-decoration:none;border-radius:8px}
.overlay{position:absolute;z-index:5;left:12px;right:12px;bottom:57px;border:3px solid #d2a263;border-radius:24px;background:linear-gradient(135deg,#fff6df,#f0d5a8);box-shadow:0 6px 0 #8e541e,0 12px 28px #54300b55}.mg-panel{padding:12px}.setup-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.setup-heading b{font-size:20px}.setup-heading span{font-size:11px;font-weight:800}.setup-selects{display:grid;grid-template-columns:1fr 1fr;gap:7px}.setup-selects label{font-size:11px;letter-spacing:1px;font-weight:900;min-width:0}.setup-selects select{width:100%;height:48px;min-width:0;border:1px solid #c79755;border-radius:10px;background:#fff6de;color:var(--ink);font-size:12px;font-weight:700;padding:0 5px;letter-spacing:0}.slot-row{display:flex;gap:6px;margin:8px 0}.slot-row button{flex:1;font-size:12px;line-height:17px;min-height:48px;padding:3px 4px}.slot-row small{font-size:11px;display:block}.slot-row [aria-pressed=true]{outline:2px solid #94510b;outline-offset:1px;background:#f4d28d}.start-row{display:flex;gap:7px}.start-row button{flex:1;font-size:13px;padding:5px}.primary{background:linear-gradient(#efb33e,#c98216);border:1px solid #a86a1b;box-shadow:inset 0 2px 0 #ffe4a5,0 3px 0 #945018;color:#4e2608}.setup-note{font-size:11px;font-weight:700;text-align:center;margin:9px 0 0;line-height:12px}.floating{bottom:160px;left:24px;right:24px;text-align:center}.floating .mg-panel{padding:22px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:900;color:#96520e}.floating h2{font-size:30px;letter-spacing:-1px;margin:6px 0 9px;line-height:1.05}.floating p{font-size:14px;line-height:1.45;margin:10px 0 14px}.floating button{display:block;width:100%;margin-top:9px;min-height:48px}.help{max-width:760px;margin:0 auto;background:#fff4d9;padding:32px 24px 64px;font-size:16px;line-height:1.7;scroll-margin-top:12px}.help h1{font-size:30px;line-height:1.2}.help h2{font-size:22px;line-height:1.25;margin-top:30px}.help a{color:#86500c;font-weight:800}.back-game{display:inline-flex;min-height:48px;align-items:center}#practice-card{height:48px;display:flex;align-items:center;gap:5px}#practice-card button{min-width:40px;width:40px;height:48px;font-size:25px}#practice-card>div{flex:1;min-width:0;text-align:center}#shell-name{display:block;font-size:12px}#shell-detail{font-size:11px;line-height:12px;display:block}
@media(min-width:800px){body{background:radial-gradient(ellipse at 50% 25%,#d49a3e,#814512)}.game-shell{width:560px;grid-template-rows:166px 46px minmax(205px,1fr) 247px 48px}.title-wrap{height:166px}.help{border-radius:0 0 24px 24px}.aim-readout{bottom:18%}.control-tray{padding-left:20px;padding-right:20px}}
@media(max-height:740px){.game-shell{grid-template-rows:120px 42px minmax(205px,1fr) 237px 48px;min-height:652px}.title-wrap{height:120px}.control-tray{grid-template-rows:144px 64px;padding-top:6px}.aim-dial{height:96px}.power-box .step-buttons{height:34px}.turn-note{font-size:11px;padding:4px 8px}.setup .mg-panel{padding:9px}.setup-heading{margin-bottom:5px}.setup-heading b{font-size:18px}.floating{bottom:115px}}
.game-shell{touch-action:none}.overlay{touch-action:none}button:disabled{opacity:1;filter:saturate(.82)}.fire:disabled{opacity:1;filter:saturate(.85)}.shields button:disabled{color:#77501d}.title-wrap{height:clamp(120px,45vw,188px)}.aim-readout{z-index:1}
@media(min-height:741px){.title-wrap{height:clamp(150px,45vw,188px)}}
@media(min-width:800px){.title-wrap{height:166px}}
@media(max-height:740px){.title-wrap{height:120px}}
#practice-card button{min-width:48px;width:48px}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
