:root{font:16px/1.45 "Nunito Sans",system-ui,sans-serif;color:#253c50;background:#f5efdf;color-scheme:light;--ink:#253c50;--paper:#fff9e9;--vermilion:#a53f2d;--jade:#3d7169}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 30% 0,#d5e1dc70,transparent 60%),#f5efdf}button,input,select{font:inherit}button,input[type=number],select{min-height:44px;padding:9px 13px;border:1px solid #a79a7b;border-radius:6px;color:var(--ink);background:#fff9eb}button{cursor:pointer;font-weight:800;line-height:1.25}button:hover{background:#eae3ce}button.primary{background:var(--vermilion);color:white;border-color:#8d3425;box-shadow:0 3px 0 #713529}button.primary:hover{background:#8c3424}button:disabled,input:disabled,select:disabled{opacity:.5;cursor:default;box-shadow:none}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,#stage:focus-visible{outline:3px solid #2d8079;outline-offset:3px}h1,h2,h3,p,li,figcaption{overflow-wrap:anywhere}h1,h2,h3{font-family:Georgia,serif;line-height:1.12}h1{font-size:clamp(2.2rem,6vw,4.2rem);margin:12px 0}h2{font-size:1.65rem}h3{font-size:1.2rem}p{margin:.6em 0}.small{font-size:.85rem}.kicker{color:var(--vermilion);font-weight:900;letter-spacing:.08em;text-transform:uppercase}.homeHeader{display:flex;gap:12px;align-items:center;justify-content:space-between}.homeHeader nav{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.pipLogo{object-fit:contain;flex-shrink:0}#home{max-width:1200px;padding:16px;margin:auto}.hero{display:grid;grid-template-columns:1fr 1.1fr;gap:26px;align-items:center;margin:20px 0 32px}.heroCopy{padding:16px 0}.cover{width:100%;height:auto;border:7px solid #fffae9;border-radius:4px;box-shadow:0 7px 20px #34414222;transform:rotate(1deg)}.actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.actions button{max-width:100%}#progress{color:var(--jade)}#route{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.chapter{min-width:0;background:var(--paper);border:1px solid #d5c8aa;border-radius:5px;overflow:hidden}.chapter>img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;display:block}.chapterCopy{padding:14px}.chapter h3{margin:0 0 6px}.chapter small{color:var(--jade);font-weight:850}.chapter p{font-size:.9rem}.stageButtons{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin-top:12px}.stageButtons button{padding:6px 3px}.stageButtons .stamped{background:#e0e9dc;border-color:#6b9386}.practiceSetup{margin:25px 0;background:var(--paper);border:1px solid #d5c8aa;padding:12px;border-radius:5px}summary{cursor:pointer;min-height:44px;padding:8px 0;font-weight:850}.practiceRow{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.practiceRow label{flex:1;min-width:160px}label{display:flex;flex-direction:column;gap:5px;min-width:0}select{width:100%}#notice,#gameNotice{font-size:.8rem;color:#7c4c2e}#game{max-width:1240px;margin:auto;padding:10px 12px}.gameHeader{display:flex;gap:10px;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:3;background:#f5efdfef;padding:4px 0}.gameHeader strong{font-family:Georgia,serif;font-size:1.15rem}.gameMeta{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:.85rem}#pause{flex-shrink:0}.windBar{display:flex;align-items:center;gap:8px;margin:7px 0 10px;padding:6px 10px;background:#e4e9dd;border:1px solid #d0d7c9;border-radius:5px}.windBar>img{object-fit:contain;flex-shrink:0}.windBar strong,.windBar small{display:block}.windBar small{font-size:.75rem}#trend{width:90px;height:30px;flex-shrink:0;color:var(--jade)}#goal{margin-left:auto;font-size:.8rem}.rangeGrid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(230px,1fr);gap:18px;align-items:center}.scene{min-width:0}#stage{width:100%;aspect-ratio:5/4;border:2px solid #8a8e7b;position:relative;overflow:hidden;touch-action:none;background:#f4eddc}canvas,#fallback{width:100%;height:100%;display:block;pointer-events:none}#phase{font-size:.85rem;text-align:center;min-height:1.5em}.shotPanel{min-width:0}.controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.field{min-width:0}.field label{font-size:.85rem;font-weight:850;min-height:2.5em}.field input{width:100%;min-width:0}.field input[type=range]{min-height:44px;accent-color:var(--jade);margin:0}.field input[type=number]{padding:7px;font-variant-numeric:tabular-nums}.zoomRow{display:flex;justify-content:flex-end;margin:12px 0}.zoomRow label{flex-direction:row;align-items:center;font-size:.85rem;gap:8px}.zoomRow select{width:90px}#shoot{width:100%;font-size:1.15rem;min-height:48px}.pipCue{display:flex;align-items:center;gap:8px;min-height:90px}.pipCue>img{width:96px;height:84px;object-fit:contain;transform-origin:50% 96%;animation:pipBreath 3.3s ease-in-out infinite;flex-shrink:0}.pipCue>p{font-size:.85rem}#impact{white-space:pre-line}dialog{max-width:min(520px,calc(100vw - 24px));width:520px;max-height:calc(100dvh - 24px);overflow:auto;border:1px solid #a89571;border-radius:9px;background:var(--paper);color:var(--ink);padding:22px;box-shadow:0 12px 60px #202d3950;overscroll-behavior:contain}dialog::backdrop{background:#1d2c3c9c;backdrop-filter:blur(3px)}dialog h2{margin:0 0 16px}dialog img{max-width:100%;height:auto}.toggle{display:flex;flex-direction:row;align-items:center;gap:10px;margin:8px 0}.toggle input{width:24px;height:44px;accent-color:var(--jade);flex-shrink:0}#settings>label:not(.toggle){margin:12px 0}#rules{padding-left:1.5em}#rules li{margin:12px 0}#cardGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}figure{margin:0}.lockedCard{aspect-ratio:3/2;display:grid;place-items:center;background:#e9e1cc;color:#90856c;font-size:2.5rem;border:1px dashed #bfb294}#cardGrid figcaption{font-size:.85rem}#cardGrid img,#rewardImage{width:100%;border:4px solid #eee2c6}.bigPoints{font-family:Georgia,serif;font-size:1.8rem;color:var(--vermilion)}#resultStars{font-weight:900;color:var(--jade)}#chapterReward{position:relative;margin:15px 0}.stamp{width:50px;float:right;transform:rotate(12deg)}#recordsList p{font-size:.85rem;padding:8px 0;border-bottom:1px solid #ddcfb2}body.reducedMotion *,body.reducedMotion *::before,body.reducedMotion *::after{animation:none!important;transition:none!important}[hidden]{display:none!important}@keyframes pipBreath{50%{transform:scaleY(.97) rotate(-1deg)}}@media(max-width:850px){.hero{grid-template-columns:1fr;gap:7px}.heroCopy{padding:8px 0}.cover{transform:none}#route{grid-template-columns:repeat(2,minmax(0,1fr))}.rangeGrid{grid-template-columns:1fr}.scene{max-width:720px;width:100%;margin:auto}.shotPanel{max-width:720px;width:100%;margin:auto}}@media(max-width:480px){#home{padding:10px}.homeHeader{gap:4px}.pipLogo{width:64px;height:60px}.homeHeader nav{gap:5px}.homeHeader nav button{font-size:.8rem;padding:7px 9px}.hero{margin-top:6px}#route{grid-template-columns:1fr}.windBar{flex-wrap:wrap;gap:5px;padding:4px 7px}.windBar>img{width:40px;height:38px}#trend{width:64px}#goal{margin-left:0;flex-basis:100%;text-align:right;font-size:.75rem}.gameMeta{gap:2px 8px}.field label{font-size:.8rem}.pipCue{min-height:76px}.pipCue>img{width:80px;height:70px}dialog{padding:16px}h1{font-size:2.35rem}.controls{gap:5px}.field input[type=number]{padding:6px 4px}}@media(orientation:landscape) and (max-height:600px){#game{padding-top:3px}.gameHeader strong{font-size:1rem}.gameMeta{font-size:.7rem}.windBar{margin:3px 0 7px;font-size:.8rem}.windBar>img{width:36px;height:32px}.rangeGrid{grid-template-columns:minmax(220px,1.2fr) minmax(245px,1fr);align-items:start;gap:12px}.scene{max-width:calc(100dvh - 104px)}#phase{font-size:.7rem;margin:2px 0}.controls{display:block}.field{display:grid;grid-template-columns:minmax(70px,.8fr) minmax(60px,1fr) 65px;align-items:center;gap:5px}.field label{font-size:.72rem;min-height:0}.field input[type=number]{padding:4px}.zoomRow{margin:4px 0}.zoomRow label{font-size:.72rem}.zoomRow select{min-height:44px;padding:3px 8px}#shoot{font-size:1rem;min-height:44px}#aimHint{font-size:.68rem;margin:5px 0}.pipCue{min-height:40px}.pipCue>img{width:50px;height:44px}.pipCue>p{font-size:.7rem}}@media(prefers-reduced-motion:reduce){body:not(.motionAllowed) *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.ringLegend{font-size:.72rem;text-align:center;color:#475663}.ringLegend small{display:block;margin:3px 0}.ringLegend #ringPoints{display:flex;flex-wrap:wrap;gap:3px;justify-content:center}.ringLegend span{display:grid;place-items:center;min-width:1.6em;min-height:1.6em;background:#fff8e0;border:1px solid #b9aa87;border-radius:50%;font-variant-numeric:tabular-nums}.ringLegend span:nth-child(odd){color:white;background:#a23e2d;border-color:#8e4b3b}@media(orientation:landscape) and (max-height:600px){.ringLegend{font-size:.64rem}.ringLegend small{display:inline}.ringLegend #ringPoints{display:inline-flex;margin-left:6px}}

.gameHeader>div{min-width:0}.gameHeader strong{overflow-wrap:anywhere}

.field label{overflow-wrap:anywhere}
