.match-actions{display:flex;align-items:center;gap:16px}
.fullscreen-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 13px;border:1px solid #dcfa7966;border-radius:5px;background:#dcfa7910;color:var(--lime);font:600 12px var(--body,Arial,sans-serif);white-space:nowrap;touch-action:manipulation}
.fullscreen-btn>span:first-child{font:24px/1 Arial,sans-serif}
.fullscreen-btn:hover,.fullscreen-btn[aria-pressed=true]{background:#dcfa7920;border-color:var(--lime)}
.fullscreen-btn:focus-visible{outline:2px solid var(--lime);outline-offset:3px}
.fullscreen-help{min-width:32px;min-height:44px;font-size:18px!important}
.fullscreen-notice{position:fixed;z-index:50;top:calc(58px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 28px);padding:12px 16px;border:1px solid #dcfa7966;border-radius:5px;background:#071925f5;color:var(--ink);font-size:12px;line-height:1.5;pointer-events:none}
body.immersive{overflow:hidden;overscroll-behavior:none}
body.immersive #game:not([hidden]){position:fixed;inset:0;z-index:30;box-sizing:border-box;height:100vh;height:100dvh;padding:max(6px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));display:flex;flex-direction:column;background:var(--bg)}
.immersive .match-top{flex:0 0 48px;height:48px;gap:12px}
.immersive .game-layout{display:grid;grid-template-columns:minmax(0,1fr) clamp(240px,27vw,340px);flex:1;min-height:0;overflow:hidden;border:1px solid var(--line);border-radius:6px}
.immersive .arena{height:100%;max-height:none;min-height:0;border:0;border-radius:0}
.immersive .controls{margin:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;border:0;border-radius:0;padding:16px}
.immersive .control-heading h2{font-size:28px;margin:6px 0}
.immersive .control-heading p{margin-bottom:12px}
.immersive .shoot-area{margin-top:auto}
.immersive .shoot-area .primary,.immersive .shoot-area .secondary{min-height:48px}
.immersive .reset-aim{min-height:38px;padding:6px 0}
.immersive .match-footer,.immersive .keyboard-hint{display:none}
.immersive .sync-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0;padding:0}
@media(max-width:1000px){.match-title{display:none}.match-actions{gap:8px}}
@media(max-width:760px){.fullscreen-btn{font-size:11px;padding:6px 9px}.match-top .text-btn{min-height:44px}.match-actions{gap:6px}}
@media(orientation:portrait),(max-width:540px){
 .immersive .game-layout{grid-template-columns:1fr;grid-template-rows:minmax(180px,1fr) auto}
 .immersive .controls{padding:10px 14px;max-height:48dvh;border-top:1px solid var(--line)}
 .immersive .control-heading,.immersive .stage-note{display:none}
 .immersive .shot-steps{margin-bottom:6px;justify-content:space-around}
 .immersive .input-stages{height:115px;margin-bottom:4px}
 .immersive .aim-controls{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-content:center}
 .immersive .height-gauge{height:110px}.immersive .height-track{height:100px}.immersive .height-labels{height:96px}
 .immersive .curl-ball{width:86px;height:86px}.immersive .curl-labels{margin-bottom:0}
 .immersive .shot-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding-top:6px;margin-bottom:8px}
 .immersive .shot-summary strong{font-size:9px}
 .immersive .shoot-area{margin-top:0}
}
@media(max-height:600px) and (orientation:landscape){
 .immersive .match-top{flex-basis:44px;height:44px}
 .immersive .game-layout{grid-template-columns:minmax(0,1fr) 230px}
 .immersive .controls{padding:8px 12px}
 .immersive .control-heading,.immersive .shot-summary,.immersive .stage-note{display:none}
 .immersive .shot-steps{margin-bottom:6px;font-size:9px}.immersive .shot-steps b{width:18px;height:18px}
 .immersive .input-stages{flex:1;min-height:90px;height:auto;margin-bottom:6px}
 .immersive .aim-controls{display:flex;flex-direction:column;gap:8px;justify-content:center}
 .immersive .control input{margin-top:12px;margin-bottom:10px}
 .immersive .control>span{font-size:11px}.immersive .control small{font-size:8px}
 .immersive .height-gauge{height:100%}.immersive .height-track{height:min(100%,135px)}.immersive .height-labels{height:min(100%,130px)}
 .immersive .curl-ball{width:min(26dvh,105px);height:min(26dvh,105px)}
 .immersive .shoot-area .primary,.immersive .shoot-area .secondary{font-size:15px;min-height:44px;padding:8px 10px}
 .immersive .reset-aim{min-height:32px}
 .immersive .scoreboard{top:10px;left:10px;padding:7px 9px;gap:10px}
 .immersive .score-club{font-size:16px;padding-right:10px}.immersive .score-club small{font-size:7px}.immersive .scoreboard-crest{width:28px;height:28px}
 .immersive .score-number strong{font-size:24px}.immersive .score-number span{font-size:7px}
 .immersive .attempts{top:70px;left:12px}.immersive .attempts span{width:16px;height:16px;font-size:9px}
 .immersive .arena-info{top:13px;right:10px;font-size:8px;max-width:85px}
 .immersive .pitch-hint{bottom:10px;left:10px;font-size:8px;max-width:75%}
 .immersive .arena-tag{bottom:10px;right:10px;font-size:12px}.immersive .arena-tag span{font-size:6px}
 .immersive .shot-status strong{font-size:clamp(30px,7vw,62px)}.immersive .shot-status span{font-size:11px}
}
