:root{color-scheme:light;--paper:#fbf5e7;--ink:#263f38;--muted:#687362;--teal:#087b76;--coral:#c4543b;--edge:#d4c4a6;--vh:100dvh;font-family:"Trebuchet MS","Avenir Next",sans-serif}
*{box-sizing:border-box}html,body{margin:0;width:100%;min-width:320px;height:100%;overflow:hidden;background:#eee1c7;color:var(--ink);overscroll-behavior:none}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{font:inherit;color:inherit;min-height:44px;min-width:44px;border:0;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #194e6d;outline-offset:3px}button:active{filter:brightness(.95)}button[aria-disabled=true]{cursor:default}button:disabled{cursor:wait;opacity:.6}[hidden]{display:none!important}p,h1,h2{margin:0}h1,h2,.brand strong{font-family:Georgia,"Times New Roman",serif;font-weight:normal;letter-spacing:-.05em}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#app{height:100vh;height:var(--vh,100dvh);width:100%;padding:22px 30px 14px;display:flex;flex-direction:column;overflow:hidden;position:relative;isolation:isolate;background:radial-gradient(ellipse at 15% 5%,#fff9e9 0,transparent 55%),radial-gradient(ellipse at 90% 95%,#cad0ad88 0,transparent 55%),repeating-linear-gradient(103deg,#92612407 0 1px,transparent 1px 5px),#eee1c7;padding-top:max(12px,env(safe-area-inset-top));padding-bottom:max(10px,env(safe-area-inset-bottom));padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}#app::before{content:"";position:absolute;z-index:-1;width:900px;height:900px;left:-430px;top:12%;border:1px solid #ab95682b;border-radius:50%;box-shadow:0 0 0 52px #ac915611,0 0 0 104px #ac915607;pointer-events:none}header{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;max-width:1220px;margin:0 auto;flex:none}.brand{text-decoration:none;color:inherit;display:flex;align-items:center;gap:12px;min-height:48px}.brand small{display:block;font-size:8px;font-weight:bold;letter-spacing:.17em;margin-bottom:3px}.brand strong{display:block;font-size:34px;line-height:1}.brand strong span{color:var(--coral)}.brand-mark{display:grid;align-items:center;letter-spacing:-3px;padding-right:3px;text-align:center;font:24px Georgia,serif;color:var(--teal);width:46px;height:45px;border-radius:12px;transform:rotate(-8deg);background:linear-gradient(145deg,#eecb91,#b97d42);box-shadow:inset 1px 2px 2px #fff3bd,0 4px 0 #81572f,0 9px 12px #70451b2a}nav{display:flex;gap:6px}nav button{border:1px solid #cbbd9e;background:#fbf6e780;border-radius:24px;padding:0 15px;font-size:12px;font-weight:bold}#sound[aria-pressed=true]{background:#d9e5cc;border-color:#719581}main{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,330px);align-items:center;gap:clamp(20px,4vw,60px);width:100%;max-width:1140px;min-height:0;flex:1;margin:10px auto}.board-area{min-width:0;min-height:0;align-self:stretch;display:flex;flex-direction:column;justify-content:center;align-items:center}.table-label{display:flex;justify-content:space-between;width:90%;font-size:8px;letter-spacing:.13em;color:#73694e;margin-bottom:6px}.canvas-wrap{width:100%;max-width:min(680px,calc((var(--vh) - 214px) * 1.163));aspect-ratio:1000/860;min-height:0;flex:0 1 auto}canvas{display:block;width:100%;height:100%}#columns{width:100%;max-width:560px;display:grid;grid-template-columns:repeat(7,minmax(44px,1fr));gap:4px;flex:none;margin-top:0}#columns button{padding:0;background:linear-gradient(#fff7df,#e6d2a9);box-shadow:inset 0 1px #fffef5,0 3px 0 #b59b71,0 5px 8px #83613222;border:1px solid #baa481;border-radius:12px;position:relative;font-size:13px;font-weight:bold;min-height:46px}#columns button::before{content:"";width:6px;height:6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;display:inline-block;transform:rotate(45deg);margin:0 8px 3px 0}#columns button[aria-disabled=true]{color:#776d58;background:#e4d8bf;box-shadow:inset 0 1px 3px #91703b22}#columns button[data-selected=true]:not([aria-disabled=true]){background:linear-gradient(#178f86,#09655f);color:#fff9e8;box-shadow:inset 0 1px #77b8a6,0 3px 0 #064a47}#app[data-screen=menu] #columns{display:none}.board-caption{font:italic 16px Georgia,serif;color:#756a50;margin-top:19px}.eyebrow{font-size:9px;font-weight:bold;letter-spacing:.17em;color:var(--teal);line-height:1.5}h1{font-size:clamp(35px,4.5vw,58px);line-height:1.04;margin:13px 0 18px}.intro{font-size:13px;color:var(--muted);line-height:1.65;margin-bottom:22px}fieldset{border:0;padding:0;margin:0 0 15px}legend{font-size:12px;font-weight:bold;margin-bottom:8px;padding:0}.choices{display:flex;gap:4px;padding:4px;background:#dfd2b99c;border:1px solid #cebd9d;border-radius:14px}.choices button{flex:1;min-width:0;background:transparent;border-radius:10px;font-size:13px;padding:5px 9px;line-height:1.3}.choices small{display:block;font-size:10px;margin-top:3px;font-weight:normal}.choices button[aria-pressed=true]{color:#07685f;background:#fffaf0;box-shadow:0 2px 5px #7b674128;font-weight:bold}.note{color:var(--muted);font-size:12px;line-height:1.5;margin-top:7px}.primary{width:100%;min-height:52px;display:flex;justify-content:space-between;align-items:center;padding:0 19px;background:linear-gradient(135deg,#178f82,#07615b);color:#fff9e9;border-radius:14px;box-shadow:inset 0 1px #77b9a8,0 4px 0 #044a44,0 10px 17px #385c3920;font-weight:bold;font-size:14px}.primary>span{font-size:24px}.start-note{font-size:10px;color:var(--muted);line-height:1.7;margin-top:17px}#local-note{min-height:62px;margin:0 0 10px}h2{font-size:clamp(30px,4vw,47px);line-height:1.05;margin:10px 0}.scorecard{background:#fff9e975;border:1px solid #cfc0a3;border-radius:17px;padding:16px;margin:23px 0}.score-label{display:flex;justify-content:space-between;font-size:8px;font-weight:bold;letter-spacing:.07em}.score-label span{color:var(--muted)}.scores{display:grid;grid-template-columns:repeat(3,1fr);margin-top:14px;text-align:center}.scores>div{display:grid;grid-template-columns:1fr 1fr;gap:4px 8px;align-items:center;padding:0 7px;border-right:1px solid #d6c7ac}.scores>div:last-child{border:0}.scores strong{font:31px Georgia,serif;justify-self:start}.scores span{grid-column:1/-1;font-size:10px;color:var(--muted)}.pebble{width:22px;height:22px;border-radius:50%;justify-self:end;box-shadow:inset 2px 2px 3px #fff6,0 3px 0 #204c43;position:relative;background:linear-gradient(135deg,#51bda4,#08736c)}.pebble::after{content:"";position:absolute;inset:5px;border:1px solid #e4ffdd94;border-radius:50%}.pebble.coral{background:linear-gradient(135deg,#fda479,#ba3c28);box-shadow:inset 2px 2px 3px #fff6,0 3px 0 #7e3423}.pebble.coral::after{border:3px double #fff1cdad;inset:4px}.draw-icon{font:24px Georgia,serif;justify-self:end}.next{text-align:center;font-size:10px}footer{display:flex;justify-content:space-between;font-size:8px;letter-spacing:.12em;color:#7b755f;max-width:1220px;width:100%;margin:0 auto;flex:none}dialog{width:min(370px,calc(100vw - 24px));max-height:calc(var(--vh) - 20px);overflow:auto;border:1px solid #fff6d6;padding:26px;border-radius:24px;background:var(--paper);color:var(--ink);box-shadow:0 25px 90px #27352666}dialog::backdrop{background:#293c3269;backdrop-filter:blur(6px)}dialog h2{font-size:40px}dialog .primary{margin-top:20px}.secondary,.text-button{width:100%;border-radius:12px;background:#e6deca;margin-top:9px;font-size:12px}.text-button{background:transparent;text-decoration:underline;text-underline-offset:4px}
@media(max-width:700px) and (orientation:portrait){#app{padding-left:6px;padding-right:6px;padding-top:max(12px,env(safe-area-inset-top));padding-bottom:max(10px,env(safe-area-inset-bottom))}header{padding:0 8px;gap:6px;flex-wrap:wrap}.brand-mark{display:none}.brand strong{font-size:30px}.brand small{font-size:7px}nav{gap:4px}nav button{padding:0 11px;font-size:11px}main{display:flex;flex-direction:column;gap:10px;justify-content:center;margin:10px auto;max-width:440px}.board-area{width:100%;align-self:auto;flex:none}.table-label,.board-caption{display:none}.canvas-wrap{max-width:min(100%,calc((var(--vh) - 295px) * 1.163));width:100%}#columns{gap:0;max-width:100%;margin-top:4px}#columns button{border-radius:9px;margin:0;min-height:44px}#columns button::before{margin-right:5px}.panel{width:100%;padding:0 10px}#setup h1,#setup>.eyebrow,#setup>.intro{display:none}#app[data-screen=menu] .canvas-wrap{max-width:min(280px,calc((var(--vh) - 340px) * 1.163))}#app[data-screen=menu] main{gap:2px}fieldset{margin-bottom:12px}.start-note{text-align:center;margin-top:12px}#level-note{font-size:10px}#round{text-align:center}h2{font-size:32px;margin:4px 0}.status-block>.note{margin-top:3px;font-size:11px}.scorecard{margin:12px 0;padding:10px 13px}.scores{margin-top:8px}.scores strong{font-size:26px}.score-label{text-align:left}#round .start-note{display:none}#round .primary{min-height:46px}footer{justify-content:center;font-size:7px}footer>span:first-child{display:none}#local-note{min-height:50px}#next-note{margin-top:7px}#app[data-screen=over] .canvas-wrap{max-width:min(100%,calc((var(--vh) - 359px) * 1.163))}}
@media(max-width:380px) and (orientation:portrait){.brand strong{font-size:27px}.brand small{font-size:6px}header{padding:0 2px}nav button{padding:0 8px;font-size:10px}nav{gap:3px}.brand{min-height:44px}.score-label{font-size:7px}h2{font-size:28px}#app[data-screen=menu] .canvas-wrap{max-width:min(220px,calc((var(--vh) - 330px) * 1.163))}}
@media(orientation:landscape) and (max-height:620px){#app{padding:8px max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left))}header{min-height:44px}.brand-mark{display:none}.brand strong{font-size:27px}.brand small{font-size:7px}nav button{padding:0 12px}main{margin:5px auto 0;grid-template-columns:minmax(308px,1fr) minmax(220px,.8fr);gap:20px;max-width:850px}.canvas-wrap{max-width:min(100%,calc((var(--vh) - 117px) * 1.163))}.table-label,.board-caption,footer,#setup h1,#setup>.eyebrow,.intro,.start-note{display:none}.choices{padding:3px}.choices button{font-size:12px}fieldset{margin-bottom:9px}legend{font-size:10px;margin-bottom:5px}.note{font-size:10px}#columns{gap:0}#columns button{min-height:44px;border-radius:8px}.primary{min-height:46px}h2{font-size:32px;margin:5px 0}.scorecard{margin:12px 0;padding:10px}.scores{margin-top:8px}.scores strong{font-size:26px}.score-label{font-size:7px}#local-note{min-height:40px}.next{margin-top:6px}dialog{padding:16px 22px}dialog h2{font-size:29px;margin:5px 0}dialog .primary{margin-top:10px}.secondary,.text-button{margin-top:5px}}
@media(orientation:landscape) and (max-width:650px){main{gap:10px;grid-template-columns:308px minmax(0,1fr)}#app{padding-left:6px;padding-right:6px}#level-note,.choices small{display:none}#local-note{min-height:20px}.score-label span{display:none}.scores{gap:0}.scores>div{padding:0 3px;gap:3px}.scores strong{font-size:22px}.scorecard{padding:8px;margin:8px 0}h2{font-size:27px}.status-block>.note{font-size:10px}.eyebrow{font-size:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media(min-width:701px) and (max-width:1000px) and (orientation:portrait){#app:not([data-screen=menu]) main{display:flex;flex-direction:column;justify-content:center;gap:12px;max-width:620px}#app:not([data-screen=menu]) .board-area{width:100%;flex:none}#app:not([data-screen=menu]) .canvas-wrap{max-width:min(100%,calc((var(--vh) - 310px) * 1.163))}#app:not([data-screen=menu]) .table-label,#app:not([data-screen=menu]) .board-caption{display:none}#round{width:100%;max-width:460px;text-align:center}#round .start-note{display:none}.scorecard{margin:14px 0}.status-block h2{margin:5px 0}}
