/* Phone UI: retain the existing PHP game and score storage. */
button,input,select{touch-action:manipulation}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--gold);outline-offset:3px}.mobile-keypad,.answer-label{display:none}.pitch .goal,.pitch .keeper,.pitch .striker,.pitch .ball{pointer-events:none}.hotspots button:disabled{cursor:default;opacity:.55}.hotspots button small{display:block;font-size:10px;margin-top:5px}.shoot-btn:disabled{opacity:.45;cursor:default}
@media(max-width:700px),(max-height:500px) and (max-width:1000px){
 html{scroll-padding-top:8px}body{background-attachment:scroll;-webkit-text-size-adjust:100%;font-size:14px}.app{display:flex;flex-direction:column;padding:10px 10px calc(12px + env(safe-area-inset-bottom,0px));max-width:680px}header{order:1;display:flex;align-items:center;justify-content:space-between;gap:9px;margin:0 0 8px}h1{font-size:25px;line-height:1.05;text-shadow:0 2px 8px #000;max-width:220px}.tag{font-size:8px;letter-spacing:1px;margin-bottom:5px}.sound{min-height:44px;font-size:11px;padding:8px 10px;white-space:nowrap}.stats{order:2;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0 0 8px}.stat{padding:8px;border-radius:11px;box-shadow:none}.stat span{font-size:9px}.stat strong{font-size:19px}.score-row{order:3;grid-template-columns:minmax(0,1fr) 67px;gap:7px}.task-card{padding:11px 8px;border-radius:13px;box-shadow:none}.task-label{font-size:10px;letter-spacing:.5px}.task{font-size:38px;line-height:1.1;margin:5px 0}.task-card>div:last-child{font-size:11px;line-height:1.5}.timer{padding:7px;border-radius:13px}.timer strong{font-size:26px}.timer span{font-size:9px}.answer-wrap{order:4;display:grid;grid-template-columns:1fr;gap:8px;margin:10px 0 0}.answer-label{display:block;font-size:11px;color:var(--gold)}.answer-wrap input[type=number],.answer-wrap input[type=text]{min-height:48px;height:48px;border-radius:12px;padding:7px 12px;font-size:28px;min-width:0;width:100%;outline:none}.mobile-keypad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.mobile-keypad button{min-height:49px;border:1px solid rgba(255,213,0,.35);border-radius:11px;background:rgba(255,213,0,.09);color:var(--white);font:700 23px Arial,sans-serif;box-shadow:0 2px 0 rgba(255,213,0,.18)}.mobile-keypad button:active{transform:translateY(1px);background:rgba(255,213,0,.2)}.mobile-keypad button[data-action]{font-size:19px;color:var(--gold)}.shoot-btn{min-height:48px;border-radius:11px;font-size:18px;grid-row:4}.answer-label{grid-row:1}.answer-wrap input{grid-row:2}.mobile-keypad{grid-row:3}.pitch{order:6;min-height:225px;height:225px;margin-top:10px;border-radius:15px}.pitch .goal{inset:12px 4% 10px;background-size:100% 100%}.hotspots{inset:12px 4% 10px;grid-template-rows:repeat(3,minmax(0,1fr));gap:6px}.hotspots button{min-height:53px;min-width:0;color:var(--white);font-size:12px;font-weight:700;background:rgba(4,12,8,.7);border:1px solid rgba(255,213,0,.5);border-radius:11px;line-height:1.2;padding:5px}.hotspots .zone-center{background:rgba(255,213,0,.9);color:#171b0e}.hotspots .zone-center small{color:#353b1e}.striker{transform:translateX(-50%) scale(.56);transform-origin:bottom center;opacity:.8}.ball{width:30px;height:30px;left:calc(50% - 15px);bottom:3px}.keeper{transform:scale(.65)}.result{order:5;padding:13px;font-size:19px;border-radius:13px;margin:10px 0 0}.result small{font-size:11px}.controls{order:7;gap:8px;margin:10px 0}.controls select,.controls .new-btn{min-height:44px;font-size:12px;border-radius:11px}.hint{order:8;font-size:11px;line-height:1.6;padding:10px;margin:0}.trophies{order:9;gap:6px}.trophy{min-height:52px;border-radius:10px}.trophy img{max-height:34px}.leaderboard{order:10;padding:12px;border-radius:12px;font-size:12px}.leaderboard h2{font-size:17px}.leaderboard small{display:block;font-size:10px;margin-top:4px}.task-active .pitch{display:none}.task-active .controls,.task-active .trophies,.task-active .leaderboard{display:none}.task-active .hint{margin-top:9px}.task-active .hint:before{content:'Erst rechnen, dann Schuss. ';color:var(--gold)}
}
@media(max-width:380px) and (max-height:700px){.app{padding:8px}h1{font-size:23px}.sound{padding:6px 8px}.stat{padding:7px}.stat strong{font-size:17px}.task{font-size:33px}.task-card{padding:8px}.task-card>div:last-child{font-size:10px}.answer-wrap{margin-top:8px;gap:6px}.mobile-keypad{gap:6px}.mobile-keypad button{min-height:45px}.answer-wrap input[type=text]{height:45px;min-height:45px}.shoot-btn{min-height:46px}.answer-label{font-size:10px}}
@media(max-height:500px) and (min-width:540px) and (max-width:1000px){
 .app{display:grid;max-width:none;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:8px;padding:8px;align-items:start}header{grid-column:1;grid-row:1;margin:0}h1{font-size:22px}.tag{font-size:7px}.sound{min-height:42px;padding:7px;font-size:10px}.stats{grid-column:1;grid-row:2;margin:0;gap:5px}.stat{padding:6px}.stat strong{font-size:17px}.score-row{grid-column:1;grid-row:3;gap:6px}.task{font-size:33px}.task-card{padding:9px}.controls{grid-column:1;grid-row:4;margin:0}.hint{grid-column:1;grid-row:5;margin:0}.answer-wrap{grid-column:2;grid-row:1/6;margin:0;gap:7px}.answer-wrap input[type=text]{height:44px;min-height:44px}.answer-label{font-size:10px}.mobile-keypad{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.mobile-keypad button{min-height:47px}.mobile-keypad [data-digit="1"]{grid-area:1/1}.mobile-keypad [data-digit="2"]{grid-area:1/2}.mobile-keypad [data-digit="3"]{grid-area:1/3}.mobile-keypad [data-digit="4"]{grid-area:2/1}.mobile-keypad [data-digit="5"]{grid-area:2/2}.mobile-keypad [data-digit="6"]{grid-area:2/3}.mobile-keypad [data-digit="7"]{grid-area:3/1}.mobile-keypad [data-digit="8"]{grid-area:3/2}.mobile-keypad [data-digit="9"]{grid-area:3/3}.mobile-keypad [data-action="sign"]{grid-area:1/4}.mobile-keypad [data-digit="0"]{grid-area:2/4}.mobile-keypad [data-action="back"]{grid-area:3/4}.shoot-btn{min-height:46px}.pitch{grid-column:2;grid-row:1/6;margin:0;min-height:285px;height:calc(100svh - 16px);max-height:365px}.hotspots button{min-height:60px}.result{grid-column:1;grid-row:4;margin:0;font-size:18px}.shooting .controls{grid-row:5}.shooting .hint{grid-row:6}.trophies,.leaderboard{display:none}.task-active .hint{grid-column:1;grid-row:4;margin:0}.task-active .controls{display:none}
}
@media(prefers-reduced-motion:reduce){.shooting .striker,.shooting .ball,.shooting .keeper{animation:none!important;transition:none!important}}

@media(max-width:700px),(max-height:500px) and (max-width:1000px){.answer-wrap input[type=text]{background:rgba(9,12,8,.95);color:var(--white);border:1px solid var(--line);text-align:center;font-weight:900}.mobile-keypad button{background:rgba(14,17,11,.95)}}

button,input,select{font-family:Arial,Helvetica,sans-serif}
@media(max-width:700px),(max-height:500px) and (max-width:1000px){.controls select{font-size:16px}}
