:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#eaf4e9;background:#0d271e;font-synthesis:none;font-size:16px;--active:#ef5350;--ink:#193828;--muted:#a4b9a9}
*{box-sizing:border-box}body{margin:0}button,a,input{ -webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;border:0;transition:background .15s,transform .15s}button:hover:not(:disabled){filter:brightness(1.12)}button:active:not(:disabled){transform:translateY(1px)}button:disabled{cursor:default;opacity:.38}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #ffdf68;outline-offset:4px}button,summary{touch-action:manipulation}kbd{font:inherit;font-size:.75rem;background:#ffffff14;border:1px solid #ffffff26;border-radius:4px;padding:2px 5px;white-space:nowrap}button kbd{margin-left:10px}.topbar{height:88px;padding:0 3%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff12;background:#102e22}.brand{display:flex;gap:12px;align-items:center;color:#fff;text-decoration:none;font-size:1.35rem;font-weight:750;letter-spacing:-.03em}.brand small{display:block;font-size:.8rem;font-weight:400;letter-spacing:.02em;color:#aec3b2;margin-top:5px}.brand-icon{font-size:3.5rem;color:#f8d04c;line-height:1}.topbar nav{display:flex;gap:12px;align-items:center}.quiet,.icon-button,.outline{background:transparent;color:#dce9de;padding:11px 14px;border-radius:9px}.quiet:hover,.icon-button:hover{background:#ffffff0d}.outline{border:1px solid #ffffff33}.game-layout{max-width:1650px;margin:auto;padding:24px 2.5% 28px;display:grid;grid-template-columns:minmax(0,1fr) 355px;gap:28px}.table-area{min-width:0}.table-heading{display:flex;justify-content:space-between;align-items:center;padding:0 4px 13px;color:#a9c0ad;font-size:.86rem}.eyebrow{font-size:.75rem;font-weight:700;letter-spacing:.16em;color:#c2d9bb}.table-frame{position:relative;border:1px solid #547a49;border-radius:28px;background:radial-gradient(ellipse at 50% 42%,#3b7043 0%,#254e32 61%,#1a3e29 100%);box-shadow:inset 0 0 70px #102a1f99,0 18px 45px #05100c55;overflow:hidden;min-height:0}.table-frame:before{content:"";position:absolute;inset:0;opacity:.13;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='m3 12 2-6m9 28 3-8m15-8 2-7m9 28 3-7m-35 20 3-7m28 10 2-8' stroke='%23aac67a' stroke-width='2'/%3E%3C/svg%3E");pointer-events:none}#board{width:100%;height:auto;display:block;position:relative;max-height:none;min-height:0}.board-legend{display:flex;align-items:center;justify-content:center;gap:8px;position:absolute;bottom:10px;left:0;right:0;font-size:.75rem;color:#bad0af;pointer-events:none}.peg-key{width:12px;height:6px;background:#bc8a47;transform:rotate(-25deg);border:1px solid #e4b467}.flower-key{color:#f9d452;margin-left:12px;font-size:1.15rem}.seat{position:absolute;z-index:2;pointer-events:none}.seat-top{top:12px;left:50%;transform:translateX(-50%)}.seat-bottom{bottom:35px;left:50%;transform:translateX(-50%)}.seat-left{left:12px;top:50%;transform:translateY(-50%)}.seat-right{right:12px;top:50%;transform:translateY(-50%)}.seat-label{background:#112d22dd;padding:9px 12px;border:1px solid #ffffff1a;border-radius:10px;font-size:.8rem;color:#b8cbb7;text-align:center}.seat-label b{color:#f4f8ee;display:block;margin-bottom:3px}.seat-label.active{border-color:var(--seat-color);box-shadow:0 0 0 2px color-mix(in srgb,var(--seat-color) 20%,transparent)}.seat-dot{display:inline-block;width:8px;height:8px;background:var(--seat-color);border-radius:50%;margin-right:5px}.seat-label.out{opacity:.45}.controls{display:flex;flex-direction:column;gap:17px}.turn-banner{display:flex;align-items:center;gap:13px;background:color-mix(in srgb,var(--active) 15%,#142f23);border:1px solid color-mix(in srgb,var(--active) 55%,transparent);border-radius:14px;padding:15px 17px;min-height:79px}.turn-banner .turn-dot{width:14px;height:14px;border-radius:50%;background:var(--active);box-shadow:0 0 0 6px color-mix(in srgb,var(--active) 14%,transparent)}.turn-banner strong{display:block;font-size:1.12rem;color:#fff}.turn-banner small{display:block;color:#b8cbbd;margin-top:4px;font-size:.8rem}.move-panel,.score-panel,.history-panel{border:1px solid #ffffff16;border-radius:15px;padding:18px;background:#143224}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}h1,h2{font-size:1rem;margin:0;font-weight:650}h1{font-size:1.08rem}.pill{font-size:.65rem;letter-spacing:.08em;font-weight:700;background:#ffffff10;color:#b4ceb6;border-radius:5px;padding:5px 7px}.hint{font-size:.88rem;color:#b6caba;line-height:1.5;margin:11px 0 16px;min-height:42px}.hand{display:flex;gap:7px;justify-content:space-between;margin-bottom:9px}.tile-choice{width:32%;padding:4px 2px 8px;background:#0d271d;border:2px solid #ffffff13;border-radius:12px;color:#93ac96;position:relative}.tile-choice svg{display:block;width:100%;height:auto}.tile-choice.selected{border-color:var(--active);background:#214630;color:#fff}.tile-choice .choice-label{font-size:.75rem}.tile-choice:disabled{opacity:.28}.rotation-controls{display:flex;justify-content:space-between;margin:4px -8px 13px}.rotation-controls button{font-size:.78rem;padding:9px 8px}.primary{background:#f2cd4b;color:#263019;font-weight:750;padding:15px 16px;border-radius:10px;width:100%;font-size:.9rem;box-shadow:0 3px 0 #a38223}.primary kbd{background:#00000009;border-color:#0002;font-size:.65rem}.micro{font-size:.76rem;color:#97b29d;margin:13px 0 0;line-height:1.5}.subtle{font-size:.75rem;color:#9bb7a1}.score-row{display:flex;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid #ffffff0d}.score-row:last-child{border-bottom:0;padding-bottom:0}.player-swatch{width:10px;height:31px;border-radius:4px;flex:none}.player-info{flex:1;min-width:0}.player-info strong{font-size:.88rem;font-weight:600;display:block}.lives{display:flex;gap:5px;margin-top:5px}.life{font-size:.73rem;line-height:1;filter:grayscale(1);opacity:.18}.life.alive{filter:none;opacity:1}.score-value{font-size:1.4rem;font-weight:750;font-variant-numeric:tabular-nums}.score-value small{display:block;font-size:.65rem;font-weight:400;color:#93ae98;text-align:right;margin-top:1px}.score-row.active .player-info strong{color:var(--active)}.score-row.out{opacity:.4}.text-button{padding:0;color:#b4cbb7;background:none;font-size:.75rem;text-decoration:underline;text-underline-offset:3px}.history-panel{padding-bottom:10px}#history{list-style:none;margin:12px 0 0;padding:0;max-height:95px;overflow:auto;scrollbar-width:thin}#history li{font-size:.77rem;color:#9db8a3;padding:5px 0;line-height:1.4}#history li:first-child{color:#e2eddd}.keyboard-hint{font-size:.75rem;line-height:1.9;color:#89a992;margin:0 4px}.announcement{margin-top:12px;min-height:24px;color:#c6d9b9;font-size:.87rem;text-align:center}.cell-hit{cursor:default}.start-peg{cursor:pointer;outline:none}.start-peg:focus-visible rect,.start-peg:hover rect{fill:#ffdc78;stroke:#fff;stroke-width:3}.start-peg.disabled{opacity:.35;cursor:default}.start-peg:not(.disabled).available rect{animation:peg-glow 2s ease-in-out infinite}.target-outline{animation:target-pulse 1.7s ease-in-out infinite}.bee-token{filter:drop-shadow(0 3px 2px #0007)}.motion-bee{pointer-events:none}.route{fill:none;stroke-linecap:round;stroke-linejoin:round}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#f2cd4b;color:#27331c;padding:13px 20px;border-radius:10px;z-index:9;box-shadow:0 6px 25px #0005;max-width:90%;font-size:.9rem}dialog{color:#e7f1e5;background:#163d2c;border:1px solid #6d8f60;border-radius:22px;width:min(520px,calc(100vw - 30px));max-height:90vh;padding:34px;box-shadow:0 25px 100px #0007}dialog::backdrop{background:#04140ecb;backdrop-filter:blur(8px)}dialog h2{font-size:1.8rem;letter-spacing:-.04em;margin:9px 0 15px}dialog p{color:#b8cfbc;font-size:.92rem;line-height:1.65}dialog .eyebrow{font-size:.67rem}.modal-bee{text-align:center;font-size:3rem;margin:0 0 20px}#setup-dialog{text-align:center}fieldset{border:0;margin:25px 0 18px;padding:0}legend{width:100%;font-size:.85rem;margin-bottom:12px}.count-options{display:flex;gap:8px}.count-options label{flex:1;cursor:pointer}.count-options input{position:absolute;opacity:0;pointer-events:none}.count-options span{display:block;padding:12px 4px;border:1px solid #77956a;border-radius:9px;font-size:.86rem}.count-options input:checked+span{border-color:#f2cd4b;background:#f2cd4b;color:#23331b;font-weight:700}.count-options input:focus-visible+span{outline:3px solid #fff;outline-offset:3px}.setup-colors{display:flex;justify-content:center;gap:17px;font-size:.8rem}.setup-colors span:before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--color);margin-right:5px}.setup-colors span.inactive{opacity:.25}p.setup-detail{font-size:.8rem;margin:23px 0}.wide{width:100%;margin-top:12px}.close-button{position:absolute;right:15px;top:10px;font-size:1.8rem;background:none;color:#b8cebc;padding:2px 8px}.rules{padding-left:20px;margin:20px 0;color:#bbd0bc;font-size:.88rem;line-height:1.6}.rules li{margin:12px 0}.rules strong{color:#fff}details{background:#0c2b1e66;padding:12px;border-radius:8px;font-size:.8rem}summary{cursor:pointer;color:#c7d9bb}details p{font-size:.8rem;margin-bottom:0}#result-dialog{text-align:center}#result-scores{margin:25px 0;text-align:left}#result-scores .score-row{padding:12px}
@keyframes peg-glow{50%{fill:#e7ba67}}@keyframes target-pulse{50%{stroke-opacity:.45}}@media(min-width:1500px){.game-layout{grid-template-columns:minmax(0,1fr) 390px}.controls{gap:20px}.move-panel,.score-panel,.history-panel{padding:22px}.hand{gap:10px}.hint{font-size:.94rem}}@media(max-width:1050px){.game-layout{grid-template-columns:minmax(0,1fr) 310px;gap:16px;padding:18px 2%}.topbar{padding:0 2%}.topbar nav{gap:3px}.brand{font-size:1.12rem}.brand small{font-size:.7rem}.table-frame{min-height:0}#board{min-height:0}.seat-left{left:5px}.seat-right{right:5px}.seat-label{padding:7px;font-size:.65rem}.controls{gap:12px}.move-panel,.score-panel,.history-panel{padding:14px}.primary{font-size:.8rem;padding:14px 8px}.primary kbd{margin-left:5px}.rotation-controls button{font-size:.7rem}.board-legend{font-size:.65rem}}@media(max-width:760px){.topbar{height:auto;min-height:76px;padding:12px 16px;gap:10px;flex-wrap:wrap}.brand small{font-size:.68rem}.topbar nav{gap:0}.topbar nav button{padding:8px;font-size:.75rem}.brand-icon{font-size:2.6rem}.game-layout{display:flex;flex-direction:column;padding:15px 12px;gap:16px}.table-frame{min-height:0;border-radius:20px}#board{min-height:0;max-height:none}.controls{display:grid;grid-template-columns:1fr 1fr;align-items:start}.turn-banner,.move-panel{grid-column:1/-1}.move-panel{padding:18px}.hand{max-width:370px;margin-left:auto;margin-right:auto}.tile-choice{max-width:112px}.rotation-controls{max-width:370px;margin-left:auto;margin-right:auto}.hint{min-height:0}.keyboard-hint{display:none}.score-panel,.history-panel{height:100%}#history{max-height:200px}.seat-top{top:8px}.seat-bottom{bottom:26px}.seat-label{font-size:.65rem;padding:5px 7px}.board-legend{bottom:6px;font-size:.6rem}.announcement{font-size:.8rem}.score-value{font-size:1.15rem}.score-panel .panel-heading{display:block}.score-panel .subtle{display:block;margin-top:5px}.history-panel .panel-heading{flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}


#setup-preview{display:block;width:100%;height:auto;max-height:190px;margin:0 0 20px;background:#0d2b1d;border:1px solid #638258;border-radius:8px;padding:8px}#preset-summary{margin:18px 0 12px}
