@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display&display=swap');
:root{color-scheme:dark;--navy:#051020;--cream:#fff0d2;--amber:#d9af66;--muted:#abb7c9;--scene:url('assets/optimized/night-scene-no-moon-v1.webp')}*{box-sizing:border-box}html,body{margin:0;min-height:100%;width:100%}body{font-family:'DM Sans',sans-serif;color:var(--cream);background:#050d1b;isolation:isolate}body::before{content:'';position:fixed;inset:0;z-index:-2;background:linear-gradient(#020a1633,#020a1611),var(--scene) center/cover no-repeat}button,input{font:inherit}button{cursor:pointer;color:inherit;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible{outline:2px solid #ffe1a4;outline-offset:4px}button{transition:transform .15s,box-shadow .15s}button:hover:not(:disabled){transform:scale(1.015);box-shadow:0 0 16px #dfb76622}img{object-fit:contain;max-width:100%}[hidden]{display:none!important}.primary,.secondary{display:flex;justify-content:center;align-items:center;gap:10px;min-height:44px;border-radius:5px;letter-spacing:1.2px;font-size:12px;font-weight:700;padding:10px 20px}.primary{background:linear-gradient(115deg,#ffedc5,#dabe80);border:1px solid #e6c98c;color:#211a0c;box-shadow:0 3px 12px #0003}.secondary{background:#061324b8;border:1px solid #c4ae795e;color:#f8eacc}.masthead{height:clamp(90px,16vh,150px);position:relative;display:flex;align-items:center;justify-content:center;z-index:2}.logo{width:clamp(240px,36vw,510px);height:100%;padding:14px 0;filter:drop-shadow(0 5px 10px #0006)}.sound-button{position:absolute;left:30px;top:24px;display:flex;align-items:center;gap:8px;min-height:44px;background:#0411216b;border:1px solid #ece3d632;border-radius:30px;padding:8px 14px;font-size:21px}.sound-button span{font-size:9px;font-weight:600;letter-spacing:1px}.home{position:relative;width:min(1280px,92%);height:calc(100svh - clamp(90px,16vh,150px));min-height:480px;margin:auto;display:grid;grid-template-columns:1fr 1.2fr;align-items:center;padding-bottom:12vh}.hero-copy{z-index:1;padding-left:4%}h1,h2{font-family:'DM Serif Display',Georgia,serif;font-weight:400;line-height:1.02;letter-spacing:-.5px;text-shadow:0 3px 12px #0006}h1{font-size:clamp(42px,4.7vw,75px);margin:0 0 18px}.hero-copy p{font-size:clamp(14px,1.4vw,20px);line-height:1.5;margin:0 0 27px}.mobile-break{display:none}.menu-buttons{display:flex;flex-direction:column;gap:11px;width:240px}.hero-art{position:absolute;inset:0;pointer-events:none}.hero-art img{position:absolute;filter:drop-shadow(0 12px 16px #0006)}.hero-fish{width:34%;top:8%;right:7%;transform:rotate(-10deg);animation:float 7s ease-in-out infinite}.flying-fish{width:11%}.fish-one{top:4%;left:13%;transform:rotate(12deg);opacity:.7}.fish-two{top:42%;right:0;transform:rotate(-12deg);opacity:.8}.fish-three{top:58%;left:48%;transform:rotate(10deg);opacity:.75}.hero-shofar{width:32%;height:30%;bottom:1%;right:6%;transform:rotate(-6deg)}.hero-shot{width:4%;right:30%}.shot-one{bottom:36%;transform:rotate(-15deg)}.shot-two{bottom:53%;width:3%}.is-playing{height:100svh;overflow:hidden}.is-playing .masthead{height:82px}.is-playing .logo{width:270px;padding:7px}.is-playing .sound-button{top:17px;left:2vw}.is-playing #play{height:calc(100svh - 82px);padding:0 2vw 18px;display:grid;grid-template-columns:minmax(0,1fr) 190px;grid-template-rows:minmax(0,1fr);gap:20px;max-width:1800px;margin:auto}.arena{position:relative;min-width:0;min-height:0;overflow:hidden;border:1px solid #c9bd9340;border-radius:8px;background:linear-gradient(#06102020,#03102311);box-shadow:0 10px 30px #0002}canvas{width:100%;height:100%;display:block;touch-action:none;object-fit:contain}.game-sidebar{padding:26px 20px;align-self:start;background:linear-gradient(#061326d9,#041020a8);border:1px solid #c9bd9330;border-radius:8px}.game-top{display:flex;flex-direction:column;gap:22px}.tiny{display:block;font-size:9px;letter-spacing:1.4px;margin-bottom:5px;color:#ede4d4}.game-top strong{display:block;font-family:'Barlow Condensed',Impact,sans-serif;color:var(--amber);font-size:32px;letter-spacing:1.3px;line-height:1}.level-group strong{font-size:24px;color:var(--cream)}.game-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:22px 0;border-bottom:1px solid #ffffff1a}.lives{display:flex;align-items:center;gap:4px;min-height:28px}.lives img{width:26px;height:31px}.round-button{min-width:38px;min-height:38px;border-radius:50%;background:#02101ba1;border:1px solid #ece3d65c;font-size:19px}.sidebar-controls{padding-top:20px;display:flex;flex-direction:column;gap:15px}.control-hint{display:grid;grid-template-columns:36px 1fr;align-items:center;gap:2px 10px}.control-hint>span,.control-hint>img{grid-row:span 2;width:32px;height:36px;color:var(--amber);font-size:22px}.control-hint b{font-size:9px;letter-spacing:1px}.control-hint small,.key-hint{font-size:9px;color:#b9c2d0}.key-hint{text-align:center}#blast{font-size:9px;padding:10px 6px}#announcement{position:absolute;top:12px;left:50%;transform:translateX(-50%);text-align:center;white-space:nowrap;padding:7px 13px;border-radius:20px;font-size:10px;letter-spacing:1.5px;background:#05112499;color:var(--cream);pointer-events:none}#announcement:empty{display:none}.touch-controls{display:none}.screen-overlay,.menu-screen{position:fixed;inset:0;width:100%;height:100svh;max-width:none;max-height:none;margin:0;border:0;background:linear-gradient(#020d20a3,#020d20a3),var(--scene) center/cover;color:var(--cream);z-index:10;padding:0;overflow:hidden}.menu-screen::backdrop{background:#051020}.screen-logo{display:block;width:clamp(225px,30vw,360px);height:clamp(75px,13vh,116px);object-fit:contain;margin:0 auto 15px}.result-screen,.screen-inner{width:min(100% - 48px,1020px);height:100%;margin:auto;position:relative;padding:24px 0;display:flex;flex-direction:column;align-items:center;justify-content:center}.result-heading{text-align:center}.result-heading h2{font-size:clamp(32px,4vw,55px);margin:0 0 14px}.result-stats{display:flex;justify-content:center;gap:40px}.result-stats span{display:block;font-size:10px;letter-spacing:1px;margin-bottom:3px}.result-stats strong{font:700 32px 'Barlow Condensed',Impact,sans-serif;letter-spacing:1.5px;color:var(--amber)}.new-best{display:inline-block;font-size:10px;letter-spacing:1px;border:1px solid #c99b54;border-radius:4px;color:#f3c873;padding:4px 9px;margin-top:10px}.result-body{display:grid;grid-template-columns:260px 340px;gap:46px;margin-top:23px;width:auto;max-width:100%;align-items:start}.result-content{display:flex;flex-direction:column;gap:9px}.result-content>button{width:100%}.result-board h3{font-size:16px;letter-spacing:1px;margin:0 0 14px;font-weight:700}.edge-fish{position:fixed;left:-130px;top:27%;width:320px;transform:rotate(25deg);opacity:.85;z-index:-1}.result-screen #modal-copy{font-size:14px;margin:6px 0 15px;color:#c6cfdb}#initials-label{display:block;text-align:center;font-size:9px;letter-spacing:1.5px;margin-bottom:8px}.initials{display:flex;justify-content:center;gap:10px;margin-bottom:13px}.initials input{height:51px;width:51px;background:#041020c7;border:1px solid #acb6c376;border-radius:5px;color:var(--cream);font:bold 29px monospace;text-align:center;text-transform:uppercase;caret-color:var(--amber)}.initials input:focus{border-color:var(--amber)}.initials input:disabled{opacity:.65}#save-score{width:100%}#score-message{min-height:13px;font-size:9px;text-align:center;color:#c6d0dd;margin:7px 0 0}.score-table{width:100%;border-collapse:collapse;font-size:12px;font-family:'DM Sans',sans-serif;font-variant-numeric:tabular-nums}.score-table td{padding:9px 8px;border-bottom:1px solid #dce3ef10;color:#d4dbe5}.score-table td:first-child{width:62px}.score-table td:last-child{text-align:right}.rank-marker{display:inline-flex;align-items:center;gap:9px;font-size:10px;color:#dfc180}.rank-marker img{width:19px;height:21px;object-fit:contain}.score-table tr.your-score{background:#c8993c18}.score-table tr.your-score td{color:#f2cb80}.empty-board{text-align:center!important;font-size:10px;color:#8795a8!important;padding:25px 0!important}.screen-overlay:not(.game-over) .result-body{display:block;width:270px;margin-top:20px}.screen-overlay:not(.game-over) .edge-fish{display:none}.screen-overlay:not(.game-over) #modal-kicker{display:none}.screen-overlay:not(.game-over) #continue{background:#e6d0a0;color:#201b11;border-color:#d8bb79}.screen-inner h2{font-size:42px;margin:0 0 30px}.how-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;width:min(100%,790px)}.how-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:24px 15px;border:1px solid #e3e6e72b;border-radius:7px;background:#0412247a;min-height:155px}.how-item img,.move-arrows{width:70px;height:64px;object-fit:contain}.move-arrows{display:grid;place-items:center;font-size:34px;color:var(--amber);white-space:nowrap}.how-item b{font-size:11px;letter-spacing:1px}.how-item small{font-size:10px;color:#c8d0dd}.how-lives{display:flex;align-items:center;gap:18px;margin:32px 0}.how-lives .lives img{width:32px;height:39px}.how-lives p{font-size:12px;line-height:1.7;margin:0}#help-play{width:240px}.close-button{position:absolute;right:0;top:25px;background:transparent;border:0;min-width:44px;min-height:44px;font-size:30px;color:#bcc7d5}.scores-inner{max-width:420px}.scores-inner h2{margin-bottom:24px}.scores-inner .score-table{font-size:13px}.scores-inner .score-table td{padding:12px 8px}#close-scores{width:100%;margin-top:24px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes float{50%{transform:translateY(-10px) rotate(-7deg)}}
@media(min-width:1600px){.game-sidebar{padding:30px 24px}.is-playing #play{grid-template-columns:minmax(0,1fr) 220px;gap:24px}.game-top strong{font-size:38px}.logo{width:530px}}
@media(min-width:600px) and (max-width:1023px){.home{grid-template-columns:1fr 1fr}.hero-copy{padding:0}h1{font-size:46px}.hero-fish{width:43%;right:0;top:10%}.hero-shofar{width:42%;right:0}.fish-one{left:8%}.result-body{grid-template-columns:240px 300px;gap:30px}.edge-fish{opacity:.4;width:230px;left:-120px}.is-playing #play{grid-template-columns:minmax(0,1fr) 155px;gap:10px;padding:0 12px 14px}.game-sidebar{padding:18px 12px}.game-top strong{font-size:28px}.lives img{width:20px;height:25px}.sidebar-controls{gap:12px}.sound-button{left:18px}.masthead{height:140px}.home{height:calc(100svh - 140px)}}
@media(max-width:599px){body::before{background-position:center bottom}.masthead{height:130px;padding-top:18px}.logo{width:255px;max-width:75vw;padding:13px 0}.sound-button{top:12px;left:11px;min-width:36px;min-height:36px;padding:4px 8px;font-size:20px}.sound-button span{display:none}.home{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;width:100%;height:calc(100svh - 130px);min-height:0;padding:0 25px}.hero-copy{text-align:center;padding:0;margin-top:clamp(165px,26svh,250px)}h1{font-size:clamp(30px,8.4vw,39px);margin:0 0 9px;line-height:1.04}.hero-copy p{font-size:13px;line-height:1.5;margin-bottom:18px}.mobile-break{display:none}.menu-buttons{width:min(100%,280px);margin:0 auto;gap:8px}.menu-buttons button{min-height:39px;font-size:11px}.menu-buttons .primary{min-height:45px}.hero-fish{width:54%;top:0;right:22%;max-height:185px}.fish-one{width:20%;left:3%;top:6%;}.fish-two{width:20%;right:1%;top:15%}.fish-three{display:none}.hero-shofar{width:43%;height:18%;right:4%;bottom:0}.hero-shot{width:6%;right:35%;bottom:18%}.shot-two{display:none}.is-playing .masthead{height:59px;padding:0}.is-playing .logo{width:170px;max-width:55vw;padding:5px}.is-playing .sound-button{top:11px;left:10px}.is-playing #play{height:calc(100svh - 59px);padding:0 8px max(8px,env(safe-area-inset-bottom));display:grid;grid-template-columns:1fr;grid-template-rows:73px minmax(0,1fr) 49px;gap:6px}.game-sidebar{grid-row:1;padding:0 6px;border:0;border-radius:0;background:none;display:grid;grid-template-columns:1fr;position:relative}.game-top{display:grid;grid-template-columns:1fr 1fr 1fr;gap:4px;text-align:center}.tiny{font-size:7px;letter-spacing:.7px;margin-bottom:3px}.game-top strong,.level-group strong{font-size:21px;letter-spacing:.7px;white-space:nowrap}.desktop-only{display:none}.level-group{align-self:center}.game-actions{padding:3px 0 0;border:0;justify-content:center;min-height:27px}.lives{min-height:23px;gap:3px}.lives img{width:19px;height:23px}.game-actions .round-button{position:absolute;right:3px;bottom:0;min-width:30px;min-height:30px;font-size:15px}.sidebar-controls{position:absolute;left:0;bottom:0;padding:0;display:block}.control-hint,.key-hint{display:none}#blast{min-height:28px;font-size:7px;padding:4px 7px;letter-spacing:.6px}.arena{grid-row:2;border-color:#bdc3d033;border-radius:6px}.touch-controls{display:grid;grid-row:3;grid-template-columns:1fr 1fr 1.6fr;gap:8px}.touch-controls button{touch-action:none;user-select:none;border:1px solid #cbd2db33;border-radius:5px;background:#061526a8;min-height:44px;font-size:24px}.touch-controls #fire{font-size:12px;letter-spacing:1px;color:var(--cream)}#announcement{font-size:8px;padding:5px 9px;top:6px;letter-spacing:1px}.screen-overlay,.menu-screen{background-position:center bottom}.result-screen,.screen-inner{width:calc(100% - 36px);padding:14px 0 18px;justify-content:flex-start}.screen-logo{width:220px;height:75px;max-width:75vw;margin:0 auto 12px}.result-heading h2{font-size:27px;margin-bottom:12px}.result-stats{gap:35px}.result-stats span{font-size:9px}.result-stats strong{font-size:28px}.new-best{font-size:8px;margin-top:8px;padding:3px 7px}.result-body{display:flex;flex-direction:column;gap:15px;width:100%;max-width:320px;margin-top:15px}.result-content{display:contents}.result-content #score-entry{order:0;width:100%}.result-content #continue{order:1}.result-board{order:2;width:100%;margin:0}.result-content #quit{order:3}.initials{gap:9px;margin-bottom:10px}.initials input{height:43px;width:46px;font-size:26px}#initials-label{font-size:8px;margin-bottom:7px}#save-score,.result-content>button{min-height:37px;width:100%;font-size:10px}#score-message{font-size:8px;min-height:10px;margin:5px 0 0}.result-board h3{font-size:12px;margin-bottom:5px}.score-table{font-size:10px}.score-table td{padding:7px 6px}.rank-marker img{width:16px;height:18px}.rank-marker{font-size:9px;gap:6px}.edge-fish{width:160px;left:-130px;top:35%;opacity:.6}.screen-overlay:not(.game-over) .result-screen{justify-content:center}.screen-overlay:not(.game-over) .result-content{display:flex}.screen-overlay:not(.game-over) .result-body{width:270px}.screen-overlay:not(.game-over) .result-heading h2{font-size:28px}.screen-inner h2{font-size:29px;margin:5px 0 25px}.how-grid{display:flex;flex-direction:column;gap:8px;max-width:330px}.how-item{display:grid;grid-template-columns:65px 1fr;grid-template-rows:1fr 1fr;gap:2px 13px;min-height:76px;padding:10px 16px;align-items:center;text-align:left}.how-item img,.move-arrows{grid-row:span 2;width:52px;height:50px}.how-item b{align-self:end;font-size:11px}.how-item small{align-self:start;font-size:10px}.how-lives{flex-direction:column;gap:7px;margin:23px 0;text-align:center}.how-lives p{font-size:11px}.how-lives .lives img{width:27px;height:33px}#help-play{width:min(100%,300px)}.close-button{top:10px;right:-4px}.scores-inner .score-table{font-size:12px;width:100%}.scores-inner .score-table td{padding:11px 6px}#close-scores{margin-top:22px;min-height:42px}}
@media(max-width:599px) and (max-height:740px){.masthead{height:105px;padding-top:10px}.logo{width:225px}.home{height:calc(100svh - 105px)}.hero-copy{margin-top:20svh}.hero-fish{width:45%;right:26%;max-height:140px}.hero-shofar{width:32%;height:13%;right:1%}.hero-shot{display:none}.hero-copy p{margin-bottom:11px}.menu-buttons{gap:6px}.menu-buttons button{min-height:35px}.menu-buttons .primary{min-height:41px}.result-screen,.screen-inner{padding-top:8px}.screen-logo{height:58px;width:185px;margin-bottom:8px}.result-heading h2{font-size:24px;margin-bottom:7px}.result-stats strong{font-size:25px}.result-body{margin-top:10px;gap:8px}.initials input{height:37px;width:42px;font-size:24px}.initials{margin-bottom:7px}#save-score,.result-content>button{min-height:34px}.result-board .score-table td{padding:5px 6px}.result-heading .new-best{margin-top:5px}.how-item{min-height:62px;padding:7px 13px}.how-item img,.move-arrows{height:44px}.screen-inner h2{margin-bottom:16px}.how-lives{margin:15px 0}.scores-inner .score-table td{padding:8px 6px}}
@media(max-width:599px) and (max-height:600px){body:not(.is-playing){overflow-y:auto}.home{min-height:490px}.hero-copy{margin-top:138px}.hero-shofar{display:none}.screen-overlay,.menu-screen{overflow-y:auto}.result-screen,.screen-inner{height:auto;min-height:100svh}.how-grid{gap:5px}.how-lives{margin:12px 0}.how-lives .lives img{height:26px}.scores-inner .score-table td{padding:7px 6px}}
@media(min-width:600px) and (max-height:700px){.is-playing .masthead{height:60px}.is-playing #play{height:calc(100svh - 60px)}.game-sidebar{padding:15px}.game-top{gap:14px}.game-top strong{font-size:28px}.game-actions{padding:14px 0}.sidebar-controls{gap:12px;padding-top:14px}.screen-logo{height:65px;margin-bottom:10px}.result-screen,.screen-inner{padding:12px 0}.result-heading h2{font-size:35px;margin-bottom:9px}.result-body{margin-top:14px;gap:25px}.result-stats strong{font-size:27px}.result-content{gap:7px}.how-item{min-height:125px;padding:15px}.how-lives{margin:20px 0}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* Keep decorative artwork inside the viewport without adding page scrollbars. */
html{overflow-x:clip}.home{overflow:clip}.control-hint>span{white-space:nowrap;width:42px;font-size:18px}
body{height:100svh;overflow:hidden}
@media(max-width:599px) and (max-height:600px){body:not(.is-playing){height:auto;overflow-y:auto}}

/* Keep the special ability with gameplay actions, and give mobile menus breathing room. */
.mobile-help{display:none}
@media(min-width:600px){.game-actions{flex-wrap:wrap;gap:12px}.game-actions .lives{width:100%;justify-content:center}.game-actions #blast{flex:1;min-height:40px;font-size:8px}.game-actions #pause{flex-shrink:0}}
@media(max-width:599px){.touch-controls{grid-template-columns:1fr;justify-items:center}.touch-controls #blast{width:min(100%,320px);min-height:44px;font-size:11px;letter-spacing:1px;background:linear-gradient(115deg,#ffedc5,#dabe80);color:#211a0c;border-color:#e6c98c}.sidebar-controls{display:none}.menu-buttons{gap:16px}.screen-overlay:not(.game-over) .result-content{gap:20px}.mobile-help{display:block}.desktop-help,.how-move .move-arrows,.how-fire{display:none}.how-move{grid-template-columns:1fr;grid-template-rows:auto auto;gap:6px;padding:16px;text-align:center}.how-move small{line-height:1.6}}
@media(min-width:600px){.game-actions .lives{width:auto}.game-actions #blast{order:2;flex-basis:100%;font-size:10px;min-height:44px}.game-actions #pause{order:1}}

/* Keep animated artwork inside the visible composition without slicing it. */
.home{overflow:visible}.swipe-icon{display:none}
#blast{width:auto;flex:0 0 auto;align-self:center;min-height:38px;padding:6px 12px;gap:8px;border:1px solid #c4ae797d;border-radius:5px;background:linear-gradient(135deg,#162235,#071321);color:var(--cream);box-shadow:inset 0 1px #ffe4ac18;font-size:9px;letter-spacing:.7px}
#blast img{width:30px;height:24px;filter:drop-shadow(0 2px 3px #0008)}#blast-count{display:grid;place-items:center;min-width:20px;height:20px;border-radius:50%;background:#d9af6626;color:#f7d595}
@media(min-width:600px){.game-actions #blast{flex:0 0 auto;min-height:38px;font-size:9px;margin:0 auto}}
@media(max-width:599px){.hero-fish{top:12px}.how-move{grid-template-columns:65px 1fr;grid-template-rows:auto auto;gap:2px 13px;padding:10px 16px;text-align:left}.how-item{justify-items:start}.how-move .swipe-icon{display:block;grid-row:span 2;width:52px;height:50px;color:var(--amber);filter:drop-shadow(0 2px 4px #e6a23644)}.how-move small{line-height:1.5}.touch-controls #blast{width:auto;min-height:38px;height:38px;align-self:center;padding:6px 14px;font-size:10px;letter-spacing:.7px;background:linear-gradient(135deg,#162235,#071321);color:var(--cream);border-color:#c4ae797d}}

@media(max-width:599px){body:not(.is-playing) .masthead{transform:translateY(12px)}body:not(.is-playing) .hero-fish{top:24px}.is-playing .masthead{height:67px;padding-top:8px}.is-playing #play{height:calc(100svh - 67px)}.is-playing .sound-button{top:19px}}

@media(min-width:600px){
 .masthead{padding-top:20px}
 .sound-button{top:34px}
 .is-playing .masthead{height:106px;padding-top:20px}
 .is-playing .sound-button{top:37px}
 .is-playing #play{height:calc(100svh - 106px)}
}

/* One-shot record treatment; existing layout stays intact. */
#result-score{position:relative;display:inline-block}
.world-record #result-score::before{content:'♛';position:absolute;right:-16px;top:-17px;font:16px Georgia,serif;color:#ffd47b;text-shadow:0 0 8px #fbb94b}
.world-record #result-score{animation:record-score 1.4s ease-out}
.world-record .new-best{color:#ffe2a0;border-color:#e9bd64;animation:record-badge 1.4s ease-out}
.score-table .champion-row{background:#d9af661c}.score-table .champion-row td{color:#ffda8a}
.record-spark{position:absolute;left:50%;top:50%;width:5px;height:5px;border-radius:2px;color:#ffdb85;font:12px Georgia;pointer-events:none;animation:record-spark 1.4s ease-out forwards}
@keyframes record-score{30%{color:#fff1c1;text-shadow:0 0 16px #ffc452,0 0 30px #ffa82f}100%{text-shadow:none}}
@keyframes record-badge{35%{box-shadow:0 0 16px #eab44370}100%{box-shadow:none}}
@keyframes record-spark{0%{opacity:0;transform:translate(0,0)}15%{opacity:1}100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(160deg)}}
@media(prefers-reduced-motion:reduce){.world-record #result-score,.world-record .new-best{animation:none}.record-spark{display:none}}

@media(min-width:600px){.is-playing #play{grid-template-rows:minmax(0,1fr) 44px;row-gap:8px}.arena{grid-column:1;grid-row:1}.game-sidebar{grid-column:2;grid-row:1 / 3}.touch-controls{display:flex;grid-column:1;grid-row:2;align-items:center;justify-content:center}.sidebar-controls .key-hint{display:none}.touch-controls #blast{min-height:38px;padding:6px 14px}}

.menu-buttons{gap:24px}.menu-buttons>button{margin:0;flex-shrink:0;box-shadow:none}.menu-buttons>button:hover:not(:disabled){transform:none}

/* Center the gameplay logo with equal vertical breathing room. */
.is-playing .masthead{padding-top:0;padding-bottom:0}

.screen-overlay:not(.game-over) .result-content{gap:32px}

@media(max-width:599px){.home .hero-copy{padding-top:28px}body:not(.is-playing){height:auto;min-height:100svh;overflow-y:auto}.home{min-height:650px}}
.is-playing::before{background-image:linear-gradient(#020a1633,#020a1611),url('assets/outer-grove.png')}

/* Artwork-only blast control, below the arena. */
.is-playing #play{row-gap:10px}
.touch-controls{display:flex;justify-content:center;align-items:flex-start;min-height:0}
.touch-controls #blast{display:block;position:relative;width:144px;height:48px;min-height:48px;padding:0;border:0;border-radius:0;background:transparent url('assets/blast/ready.png') center/contain no-repeat;box-shadow:none;transform:none;opacity:1;touch-action:manipulation;transition:none}
.touch-controls #blast>*{display:none}
.touch-controls #blast:hover{transform:none;box-shadow:none}
@media(hover:hover) and (pointer:fine){.touch-controls #blast:not(:disabled):hover{background-image:url('assets/blast/hover.png')}}
.touch-controls #blast:not(:disabled):active{background-image:url('assets/blast/pressed.png')}
.touch-controls #blast.used{background-image:url('assets/blast/ready.png');opacity:0;visibility:hidden;pointer-events:none;transition:opacity .25s ease,visibility 0s .25s}
@media(min-width:600px){.is-playing #play{grid-template-rows:minmax(0,1fr) 48px}}
@media(max-width:599px){.is-playing #play{grid-template-rows:73px minmax(0,1fr) 52px;padding-bottom:max(8px,env(safe-area-inset-bottom))}.touch-controls #blast{width:160px;height:52px;min-height:52px}}

/* First-name entry: scoped to Game Over. */
.game-over .result-body{grid-template-columns:400px 340px;gap:30px;margin-top:40px;align-items:stretch}
.game-over .result-content{display:flex;flex-direction:column;gap:16px;position:relative}
.game-over #score-entry{display:contents}
.game-over #initials-label{position:absolute;bottom:100%;left:0;width:100%;margin:0 0 10px}
.game-over .initials{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:7px;margin:0;width:100%}
.game-over .initials input{width:100%;height:auto;aspect-ratio:1;min-width:0;font-size:25px;padding:0}
.game-over #score-message{position:absolute;top:100%;width:100%;margin:5px 0 0;min-height:0}
.game-over .result-board{align-self:stretch;margin:0;padding:12px;border:1px solid #acb6c376;border-radius:6px;display:flex;flex-direction:column}
.game-over .result-board .score-table{flex:1;width:100%}
@media(max-width:599px){
 .game-over .result-body{display:flex;max-width:340px;margin-top:38px;gap:22px}
 .game-over .result-content{display:flex;width:100%;gap:16px}
 .game-over .result-content #continue,.game-over .result-content #quit{order:0}
 .game-over .result-board{order:1;width:100%}
 .game-over .initials{gap:5px}
 .game-over .initials input{font-size:21px}
 .game-over .result-board h3{font-size:0}
 .game-over .result-board h3:after{content:'TOP 5 HIGH SCORES';font-size:12px}
}

/* Subtle treatment for decorative homepage horseradish only. */
.home .hero-shot{filter:none;opacity:1;z-index:2}

/* Gentle homepage motion, preserving each asset's existing rotation. */
.home .flying-fish,.home .hero-shot{animation:home-drift 7s ease-in-out infinite}
.home .fish-one{animation-delay:-1s}.home .fish-two{animation-delay:-3s}.home .fish-three{animation-delay:-5s}
.home .shot-one{animation-delay:-2s}.home .shot-two{animation-delay:-4s}
@keyframes home-drift{0%,100%{translate:0 0;rotate:0deg}50%{translate:0 -10px;rotate:3deg}}
@media(prefers-reduced-motion:reduce){.home .flying-fish,.home .hero-shot{animation:none}}

.home .hero-shot{left:var(--mouth-x);top:var(--mouth-y);right:auto;bottom:auto;width:clamp(16px,2.3vw,34px);height:auto;transform:translate(-50%,-50%);animation:home-fire 3.6s linear infinite;opacity:0}
.home .shot-two{animation-delay:-1.8s}
@keyframes home-fire{0%{translate:0 0;opacity:1}99.9%{opacity:1}100%{translate:0 -180px;opacity:0}}
@media(prefers-reduced-motion:reduce){.home .hero-shot{animation:none;opacity:0}}

.home .hero-shot{width:clamp(27px,3.7vw,52px)}
.home .fish-three{left:44%}

/* About follows the menu without changing its layout when expanded. */
.menu-buttons{position:relative}
.hero-copy{position:relative}
.game-about{position:absolute;top:calc(100% + 24px);left:4%;width:240px;z-index:5;font-size:12px}
.game-about summary{box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:var(--about-button-height,44px);padding:0 12px;list-style:none;cursor:pointer;border:1px solid #d9af66;border-radius:7px;background:#03121ef5;color:var(--cream);font-size:9px;font-weight:700;letter-spacing:.5px}
.game-about summary::-webkit-details-marker{display:none}
.game-about summary img,.about-content h3 img{width:28px;height:28px;border-radius:5px;object-fit:contain}
.about-chevron{font-size:22px;color:var(--amber);margin-left:auto}
.game-about[open] .about-chevron{transform:rotate(180deg)}
.game-about summary:hover{border-color:#ffe4a3;box-shadow:0 0 12px #d9af6633}
.game-about summary:active{filter:brightness(.8)}
.game-about .about-content{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(460px,calc(100vw - 32px));max-height:calc(100svh - 40px);overflow-y:auto;box-sizing:border-box;background:#03121efa;border:1px solid #d9af66;border-radius:12px;padding:24px;box-shadow:0 14px 60px #000b}
.about-content h3{display:flex;align-items:center;gap:12px;margin:0 32px 16px 0;font-size:13px;letter-spacing:.4px}
.game-about p{line-height:1.6}
.about-close{position:absolute;top:5px;right:5px;width:44px;height:44px;padding:0;border:0;background:transparent;color:var(--cream);font-size:28px}
.about-facts{display:grid;grid-template-columns:repeat(3,1fr);margin-top:16px;padding-top:16px;border-top:1px solid #d9af6655;text-align:center;font-size:11px;line-height:1.5}
.about-facts>div+div{border-left:1px solid #d9af6633}
.about-facts span{display:block;font-size:28px;line-height:1.4;margin-bottom:6px}
.about-facts>div:last-child span{color:#edbf55}
.is-playing .game-about{display:none}
@media(max-width:599px){.game-about{position:fixed;top:auto;bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(300px,calc(100vw - 40px))}.game-about summary{height:48px}.game-about .about-content{position:fixed;top:auto;bottom:60px;left:50%;transform:translateX(-50%);max-height:calc(100svh - 100px)}}

.home-logo-link{height:100%;display:flex;align-items:center;justify-content:center}
.world-record .new-best{animation:record-blink 1.2s steps(2,end) infinite}
@keyframes record-blink{0%,100%{opacity:1}50%{opacity:.4}}
@media(prefers-reduced-motion:reduce){.world-record .new-best{animation:none}}
@media(max-width:599px){
 body:not(.is-playing) .masthead{margin-top:24px}
 .home .hero-shot{display:block}
 .home .hero-shofar{display:block}
}

.game-about .about-content{inset:0;margin:auto;transform:none;height:fit-content;color:var(--cream);font-family:inherit}
.game-about .about-content::backdrop{background:#02091688;backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
.about-chevron{display:flex;align-items:center;justify-content:center;line-height:1;width:18px;height:18px;flex-shrink:0}
.about-facts span{height:32px;display:flex;align-items:center;justify-content:center}
.game-about summary img,.about-content h3 img{object-fit:cover;object-position:center;image-rendering:auto}
@media(max-width:599px){.game-about .about-content{inset:0;transform:none;margin:auto;max-height:calc(100svh - 40px)}}

@media(min-width:600px){.game-about summary{font-size:var(--about-font-size,12px)}.game-about .about-chevron{display:none}}

/* Quiet footer link on the shaded brick edge. */
.game-about{position:fixed;top:auto;bottom:max(8px,env(safe-area-inset-bottom))}
.game-about summary{border:0;border-radius:3px;background:#03121e80;box-shadow:none;font-weight:500;letter-spacing:.5px}
.game-about summary:hover{border:0;box-shadow:none;background:#03121eb3;text-decoration:underline;text-underline-offset:3px}
.game-about summary:active{filter:none}
.game-about .about-chevron{display:none}

/* Frameless About footer, matching the supplied reference. */
.game-about summary{width:fit-content;max-width:100%;height:44px;padding:0;gap:12px;border:0;border-radius:0;background:transparent;box-shadow:none;font-family:inherit;font-size:var(--about-font-size,12px);font-weight:600;letter-spacing:1px;opacity:.85;text-shadow:0 1px 5px #000,0 0 12px #000}
.game-about summary:hover{background:transparent;opacity:1;box-shadow:none}
.game-about summary img{width:32px;height:32px}
@media(min-width:600px){.game-about summary{justify-content:flex-start}}
@media(max-width:599px){.game-about{bottom:max(16px,env(safe-area-inset-bottom));width:max-content;max-width:calc(100vw - 32px)}.game-about summary{justify-content:center;font-size:11px}}

@media(min-width:600px){
 .game-about{bottom:max(2px,calc(env(safe-area-inset-bottom) - 6px))}
 .game-about summary{height:44px;min-height:0;padding:0 4px;margin-left:-4px;background:linear-gradient(#03121e33,#03121e33) center/100% 34px no-repeat;border:0;box-shadow:none}
 .game-about summary:hover{background:#03121e55}
}
@media(min-width:600px){
 .game-about summary{position:relative;margin-inline:auto;padding-inline:4px;justify-content:center;gap:10px}
 .game-about summary>img{position:absolute;right:calc(100% + 6px);top:50%;transform:translateY(-50%)}
}

@media(max-width:599px){
 .home .hero-shofar{position:fixed;width:140px;height:70px;right:6%;bottom:calc(74px + env(safe-area-inset-bottom));z-index:1}
 .home .hero-shot{position:fixed}
 .game-about summary{-webkit-tap-highlight-color:transparent;outline:none}
 .game-about summary:focus-visible{outline:2px solid var(--amber);outline-offset:3px}
}

/* Independent music control, beside the master sound control. */
.audio-controls{padding:0;background:none;border:0;gap:8px}
.audio-controls button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 14px;background:#041121b3;border:1px solid #ece3d632;border-radius:30px;font-size:21px}
.audio-controls #music{width:auto}
.audio-controls svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.audio-controls .music-slash{display:none}
.audio-controls [aria-pressed="true"] .music-slash{display:block}
.audio-controls [aria-pressed="true"]{color:#abb7c9}
@media(max-width:599px){.audio-controls{flex-direction:row;justify-content:space-between;right:10px;gap:12px;min-width:44px;pointer-events:none}.audio-controls button{pointer-events:auto}.is-playing .audio-controls{top:12px}.audio-controls button,.audio-controls #music{width:44px;padding:5px 2px;flex-direction:column;gap:2px}.audio-controls span{display:block;font-size:7px;letter-spacing:.3px}.audio-controls svg{width:20px;height:20px}}

.copyright{position:fixed;bottom:max(2px,calc(env(safe-area-inset-bottom) - 6px));right:16px;height:44px;display:flex;align-items:center;font-size:12px;line-height:normal;color:var(--cream);opacity:.65;white-space:nowrap;text-shadow:0 1px 4px #000;pointer-events:none}
.pointer-input button:focus,.pointer-input .game-about summary:focus{outline:none}
.about-close,.about-close:hover{border:0;box-shadow:none;background:transparent}
.about-facts strong{font-weight:700}

@media(max-width:599px){.game-about{left:12px;transform:none;max-width:calc(100vw - 125px)}.game-about summary{gap:6px;letter-spacing:.3px}.game-about summary img{width:24px;height:24px}.copyright{right:12px;bottom:max(16px,env(safe-area-inset-bottom));font-size:11px}}

/* Keep the mobile landing screen anchored when an in-app browser restores scroll. */
@media(max-width:599px){
 body:not(.is-playing){position:fixed;inset:0;width:100%;height:100svh;min-height:0;overflow:hidden}
 .home{min-height:0}
}

/* Keep held gameplay gestures inside the arena rather than scrolling the page. */
.is-playing{overscroll-behavior:none}
.is-playing #play,.is-playing .arena,.is-playing canvas{touch-action:none;overscroll-behavior:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
@media(max-width:599px){body.is-playing{position:fixed;inset:0;width:100%;overflow:hidden}}
