:root{--paper: #f2e8d2;--paper-2: #e6d7b8;--paper-3: #d9c59f;--ink: #3a2e22;--ink-2: #6b5a45;--wood: #7a5a3a;--wood-dark: #553d26;--leaf: #4f8a37;--leaf-dark: #33622a;--plum: #7a4a6a;color-scheme:light}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{color:var(--ink);font-family:Nunito,system-ui,sans-serif;overflow:hidden;background-color:var(--paper);background-image:radial-gradient(1200px 700px at 20% 10%,#f8f0de 0,transparent 60%),radial-gradient(900px 600px at 90% 90%,#e3d2ae 0,transparent 60%),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .17 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}button{font:inherit;cursor:pointer;color:inherit}button:disabled{cursor:default}.small{font-size:12px;color:var(--ink-2)}h1,h2{font-family:Fraunces,Georgia,serif;font-weight:700;margin:0}.app{height:100%;display:flex;flex-direction:column}.bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px max(14px,env(safe-area-inset-right)) 6px max(14px,env(safe-area-inset-left));border-bottom:1.5px solid #cdb78e;background:linear-gradient(#efe3c8,#e8d9b8);z-index:5}.brand{display:flex;align-items:center;gap:8px;cursor:pointer}.brand .title{font-family:Fraunces,Georgia,serif;font-size:21px;font-weight:700;letter-spacing:.3px;color:var(--leaf-dark)}.sprout{width:24px;height:24px;fill:#8cc06a;stroke:var(--leaf-dark);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.bar nav{display:flex;gap:6px}.bar nav button{background:#f7efdc;border:1.5px solid #c4ab7f;border-radius:999px;padding:4px 12px;font-size:13px;font-weight:600}.bar nav button:hover{background:#fff7e6}.bar nav button.icon{padding:3px 9px;display:grid;place-items:center}.bar nav button.icon svg{width:18px;height:18px;fill:var(--ink);stroke:var(--ink);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.setup{flex:1;overflow:auto;display:grid;place-items:center;padding:20px 16px}.card{width:min(520px,100%);background:#fbf5e7;border:1.5px solid #cdb78e;border-radius:18px;padding:24px 26px 18px;box-shadow:0 1px #fff inset,0 14px 40px #6b4f2a22,0 2px 6px #6b4f2a18}.hero-pieces{display:flex;gap:14px;align-items:flex-end;justify-content:center;margin-bottom:10px}.card h1{font-size:38px;text-align:center;color:var(--leaf-dark)}.lede{text-align:center;color:var(--ink-2);margin:6px 0 18px;line-height:1.45}.field{display:grid;grid-template-columns:96px 1fr;align-items:center;gap:10px;margin:10px 0}.field>span{font-weight:700;font-size:14px}.field .note{grid-column:2;margin-top:-4px}.pills button{min-width:44px}.field input{font:inherit;padding:7px 10px;border-radius:10px;border:1.5px solid #c4ab7f;background:#fffaf0}.pills{display:flex;flex-wrap:wrap;gap:6px}.pills button{border:1.5px solid #c4ab7f;background:#fffaf0;border-radius:999px;padding:5px 12px;font-size:14px}.pills button.on{background:var(--leaf);border-color:var(--leaf-dark);color:#fff}.start{display:block;width:100%;margin:18px 0 8px;padding:12px;border-radius:14px;border:2px solid var(--leaf-dark);background:linear-gradient(#6aa84f,#4f8a37);color:#fff;font-family:Fraunces,Georgia,serif;font-size:20px;font-weight:700;box-shadow:0 3px 0 var(--leaf-dark)}.start:active{transform:translateY(2px);box-shadow:0 1px 0 var(--leaf-dark)}.soon{text-align:center;margin:4px 0 0}.game{flex:1;min-height:0;display:flex;gap:18px;width:100%;max-width:calc(100vh + 300px);margin:0 auto;padding:10px max(12px,env(safe-area-inset-right)) 10px max(12px,env(safe-area-inset-left))}.board-wrap{position:relative;flex:1;min-width:0;min-height:0;container-type:size;display:grid;place-items:center}.board{width:min(100cqw,100cqh);height:min(100cqw,100cqh);touch-action:none;user-select:none;-webkit-user-select:none;display:block}.board .frame{fill:#a07a4c;stroke:var(--wood-dark);stroke-width:1.2;filter:drop-shadow(0 2px 2px #5a3f2255)}.board .grid{stroke:#5c452e;stroke-width:.35;opacity:.55;fill:none}.board .meadow-edge{fill:none;stroke-width:.75;stroke-linecap:round}.board .bonus-plot{fill:#f3e7c9;stroke:#6b5232;stroke-width:.45;stroke-dasharray:1.2 .9;opacity:.9}.board .plot-stone{fill:#e4ddcf}.board .plot-rob{fill:#e5e6dc}.board .mine{fill:none;stroke:#fbf6ea;stroke-width:.7;stroke-dasharray:1.6 1.2;opacity:.85;pointer-events:none}.board .ghost rect{stroke-width:.7;stroke-dasharray:1.4 .9;opacity:.82}.board .ghost.bad rect{opacity:.55}.board .ghost{pointer-events:none}.board .target{fill:#fbf6ea;stroke:var(--ink);stroke-width:.4;pointer-events:none;animation:pulse 1.6s ease-in-out infinite}.board .target-rob{fill:none;stroke:#fbf6ea;stroke-width:.8}@keyframes pulse{0%,to{opacity:.35}50%{opacity:.95}}.board .cell.grow .turf,.board .cell.grow .turf-shade{animation:turf .55s ease-out both;animation-delay:var(--d)}.board .cell.grow .blades path{transform-box:fill-box;transform-origin:50% 100%;animation:blade .9s cubic-bezier(.2,.9,.3,1.25) both;animation-delay:calc(var(--d) + .12s)}.board .cell.grow .blades path:nth-child(2n){animation-duration:1.1s}.board .cell.grow .flower{transform-box:fill-box;transform-origin:center;animation:blade .9s ease-out both}@keyframes turf{0%{opacity:0}to{opacity:1}}@keyframes blade{0%{transform:scaleY(0)}to{transform:scaleY(1)}}.board .reveal-dim{animation:turf .6s ease-out both}.board .reveal-sq rect:first-child{stroke-width:1.4;stroke-dasharray:100;animation:draw 1s ease-out both}.board .reveal-sq g{animation:turf .5s ease-out .6s both}.board .reveal-label{font-family:Caveat,cursive;font-size:8px;fill:var(--ink)}@keyframes draw{0%{stroke-dashoffset:100;fill-opacity:0}to{stroke-dashoffset:0}}.toast{position:absolute;top:12px;left:50%;transform:translate(-50%);z-index:4;pointer-events:none;background:#fbf5e7;border:1.5px solid #c4ab7f;border-radius:999px;padding:7px 16px;font-weight:700;box-shadow:0 6px 18px #5a3f2230;animation:toast 2.6s ease-out both;white-space:nowrap}@keyframes toast{0%{opacity:0;transform:translate(-50%,-8px)}12%,82%{opacity:1;transform:translate(-50%)}to{opacity:0}}.side{width:clamp(230px,27vw,310px);flex:none;display:flex;flex-direction:column;gap:10px;overflow-y:auto;min-height:0;padding-bottom:6px}.round{font-family:Fraunces,Georgia,serif;font-size:18px;color:var(--ink-2)}.round b{color:var(--ink);font-size:22px}.players{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}.players li{display:grid;grid-template-columns:18px 1fr auto 44px;align-items:center;gap:8px;padding:5px 9px;border-radius:11px;border:1.5px solid transparent}.players li.now{background:#fbf5e7;border-color:#c4ab7f;box-shadow:0 2px 8px #5a3f2218}.players li.you .pname{font-weight:700}.swatch{width:16px;height:16px;border-radius:5px;border:1.5px solid;display:inline-block}.pname{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tickets{display:flex;gap:1px}.sq{font-family:Caveat,cursive;font-size:21px;text-align:right;line-height:1}.lineup{background:#fbf5e7;border:1.5px solid #cdb78e;border-radius:14px;padding:8px 10px 10px}.lineup.waiting{opacity:.75}.lineup-head{display:flex;justify-content:space-between;align-items:baseline;font-weight:700;font-size:13px;margin-bottom:6px}.tiles{display:flex;gap:5px;align-items:stretch}.slot{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:6px 2px 3px;border-radius:10px;border:1.5px solid #ddc9a3;background:#fffaf0}.slot.next{flex-grow:1.5}.slot{min-height:64px}.slot.sel{border-color:var(--leaf-dark);background:#eef6e4;box-shadow:0 0 0 2px #9fd07f88}.slot:disabled{background:transparent}.slot-tag{font-size:10px;text-transform:uppercase;letter-spacing:.6px;color:var(--ink-2)}.piece{display:block;max-width:100%;height:auto}.piece.dim{opacity:.45}.tools{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.tools button{flex:1;border:1.5px solid #c4ab7f;background:#fffaf0;border-radius:10px;padding:7px 8px;font-weight:700}.tools button.primary{background:var(--leaf);color:#fff;border-color:var(--leaf-dark)}.tools button:disabled{opacity:.45}.toolbox{display:flex;align-items:center;gap:10px;background:#fbf5e7;border:1.5px solid #cdb78e;border-radius:14px;padding:8px 10px}.toolbox-head{font-weight:700;font-size:13px;flex:1}.tokens{display:flex;gap:9px}.token{position:relative;width:44px;height:44px;padding:0;border-radius:50%;display:grid;place-items:center;border:2px solid #b89c6c;background:radial-gradient(circle at 35% 30%,#fffaf0,#eadcbc);box-shadow:0 2px #b89c6c}.token svg{width:28px;height:28px}.token.dim{opacity:.42;filter:grayscale(.7);box-shadow:none;cursor:help}.token.ready{border-color:var(--leaf-dark);box-shadow:0 2px 0 var(--leaf-dark),0 0 0 3px #9fd07f99;animation:beckon 1.3s ease-in-out 2}.token.active{background:radial-gradient(circle at 35% 30%,#e3f3d4,#a9d68b);box-shadow:inset 0 2px 4px #33622a55,0 0 0 3px var(--leaf);transform:translateY(1px);animation:none}.token .badge{position:absolute;top:-5px;right:-5px;min-width:19px;height:19px;padding:0 4px;border-radius:10px;background:var(--leaf-dark);color:#fff;font-size:11px;font-weight:700;display:grid;place-items:center;border:1.5px solid #fbf5e7}.token.dim .badge{background:var(--ink-2)}@keyframes beckon{0%,to{transform:scale(1);box-shadow:0 2px 0 var(--leaf-dark),0 0 0 3px #9fd07f99}50%{transform:scale(1.12);box-shadow:0 2px 0 var(--leaf-dark),0 0 0 9px #9fd07f33}}.tray-hint{margin:-2px 0 0;font-size:13.5px;font-weight:700;color:var(--leaf-dark);line-height:1.35}.tray-hint.note{color:var(--ink-2);font-weight:600}.slot.reach:not(:disabled){border-color:var(--leaf);background:#f1f8e8;box-shadow:0 0 0 2px #9fd07f66}.lineup-head .mode{color:var(--leaf-dark);font-weight:700}.hint{margin:0;font-size:14px;line-height:1.35;min-height:2.7em}.hint.warn{color:var(--plum)}.log{list-style:none;margin:0;padding:0;font-size:12.5px;color:var(--ink-2);display:flex;flex-direction:column;gap:2px}.log li:first-child{color:var(--ink)}.pace{margin-top:auto;font-size:13px;font-weight:700;display:flex;align-items:center;gap:8px}.pace select{font:inherit;font-weight:400;border-radius:8px;border:1.5px solid #c4ab7f;background:#fffaf0;padding:3px 6px}.results{background:#fbf5e7;border:1.5px solid #c4ab7f;border-radius:14px;padding:12px 14px;box-shadow:0 8px 26px #5a3f2226;animation:rise .5s ease-out both}@keyframes rise{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}.results h2{font-size:21px;color:var(--leaf-dark);margin-bottom:10px}.results ol{list-style:none;padding:0;margin:0 0 8px}.results li{display:grid;grid-template-columns:22px 18px 1fr auto;grid-template-rows:auto auto;column-gap:8px;align-items:center;padding:6px 0;border-bottom:1px dashed #d9c59f}.results .rank{font-family:Fraunces,Georgia,serif;font-weight:700;grid-row:span 2}.results .swatch{grid-row:span 2}.results .big{font-family:Caveat,cursive;font-size:26px;grid-row:span 2}.results li .small{grid-column:3}.modal{position:fixed;top:0;right:0;bottom:0;left:0;background:#2b211666;z-index:30;display:grid;place-items:center;padding:16px}.sheet{position:relative;width:min(560px,100%);max-height:100%;overflow:auto;background:#fbf5e7;border-radius:18px;border:1.5px solid #c4ab7f;padding:20px 24px;line-height:1.5}.sheet h2{color:var(--leaf-dark);margin-bottom:6px}.sheet p{margin:8px 0}.sheet ul{margin:4px 0 8px;padding-left:4px;list-style:none}.sheet .inline{vertical-align:-4px}.close{position:absolute;top:8px;right:12px;border:none;background:none;font-size:26px;color:var(--ink-2)}@media (max-height: 520px){.bar{padding-top:3px;padding-bottom:3px}.brand .title{font-size:17px}.sprout{width:19px;height:19px}.bar nav button{padding:2px 10px;font-size:12px}.game{padding-top:6px;padding-bottom:max(6px,env(safe-area-inset-bottom));gap:8px}.side{width:clamp(210px,32vw,270px);gap:6px}.round{font-size:15px}.round b{font-size:18px}.players li{padding:2px 7px}.sq{font-size:18px}.lineup{padding:5px 7px 7px}.tools{margin-top:5px}.tools button{padding:5px 6px}.hint{font-size:12.5px;min-height:2.5em}.log{display:none}.game{max-width:none}.board-wrap{justify-items:end}.players{display:grid;grid-template-columns:1fr 1fr;gap:3px}.players li{grid-template-columns:14px 1fr auto;gap:5px;padding:2px 6px;font-size:13px}.players .tickets{display:none}.swatch{width:13px;height:13px}.lineup-head .small{display:none}.lineup-head{margin-bottom:3px;font-size:12px}.slot{min-height:44px;padding:4px 1px 2px}.slot-tag{display:none}.slot.next .slot-tag{display:block;font-size:9px}.pace,.hint.quiet{display:none}.toolbox{padding:4px 8px;gap:6px}.toolbox-head{font-size:12px}.tokens{gap:7px}.token{width:32px;height:32px}.token svg{width:21px;height:21px}.token .badge{min-width:16px;height:16px;font-size:10px;top:-4px;right:-4px}.tray-hint{font-size:12px;margin-top:-2px}.results{padding:8px 10px}.results h2{font-size:17px;margin-bottom:4px}.results li{padding:2px 0}.results .big{font-size:20px}.results li .small{display:none}.results>p.small{display:none}.card{padding:14px 18px 10px}.card h1{font-size:28px}.hero-pieces{display:none}.lede{margin-bottom:8px}.field{margin:6px 0}.start{margin-top:10px;padding:8px}}.rotate{display:none}@media (orientation: portrait) and (max-width: 600px){.rotate{display:flex;position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:var(--paper)}.rotate-phone{width:92px;height:160px;border:3px solid var(--wood);border-radius:16px;display:grid;place-items:center;animation:tilt 2.6s ease-in-out infinite;background:#fbf5e7}.rotate-en{font-family:Fraunces,Georgia,serif;font-size:20px;color:var(--leaf-dark)}}@keyframes tilt{0%,30%{transform:rotate(0)}60%,to{transform:rotate(-90deg)}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-delay:0ms!important;animation-iteration-count:1!important;transition:none!important}}
