:root{--journal-bg: #f5eddd;--journal-paper: #fff9ed;--journal-ink: #302f21;--journal-muted: #696553;--journal-green: #526d35;--journal-green-hover: #40572a;--journal-selected: #e2e9be;--journal-line: #d7c5a5;--journal-clay: #a95f38;--journal-focus: #274e89;--target: #f2b705;--shadow: 0 3px 12px rgb(69 48 23 / 8%);--serif: Georgia, Cambria, "Times New Roman", serif;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:16px;color:var(--journal-ink);background:var(--journal-bg);-webkit-tap-highlight-color:transparent}*{box-sizing:border-box}html,body,#root{margin:0;height:100%}body{overscroll-behavior:none;background:linear-gradient(180deg,#f7f0e2,var(--journal-bg) 40%)}h1,h2{font-family:var(--serif);font-weight:700;margin:0}h1{font-size:1.5rem}h2{font-size:1.15rem;margin:.5rem 0}.muted{color:var(--journal-muted)}.center{display:grid;place-items:center;height:100%}.error{color:#9d2a1e}.danger{color:#9d2a1e!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}button,input,select{font:inherit;color:inherit;border-radius:12px;border:1px solid var(--journal-line);background:var(--journal-paper);padding:.55rem .85rem;min-height:44px}button{cursor:pointer;transition:background-color .15s,border-color .15s}button:hover:not(:disabled){border-color:#bfa983}button:disabled{opacity:.5;cursor:default}button[aria-pressed=true],button.on{background:var(--journal-selected);border-color:var(--journal-green);box-shadow:inset 0 0 0 1px var(--journal-green)}button.primary{background:var(--journal-green);color:#fff;border-color:var(--journal-green);font-weight:600}button.primary:hover:not(:disabled){background:var(--journal-green-hover)}button.link{background:none;border:none;color:var(--journal-green-hover);padding:.4rem .5rem;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#52693566}button.wide{width:100%}:focus-visible{outline:3px solid var(--journal-focus);outline-offset:2px}input{width:100%;background:#fff}.icon-btn{width:44px;padding:0;flex:none;font-size:1.15rem;background:transparent;border-color:transparent}.pill,.pill-btn{display:inline-flex;align-items:center;border:1px solid var(--journal-line);background:var(--journal-paper);border-radius:999px;padding:.2rem .7rem;font-size:.85rem;white-space:nowrap}.pill{min-height:32px}.pill-btn{min-height:40px}.pill.event{color:var(--journal-clay);font-weight:600}.login,.page{position:relative;isolation:isolate}.login:before,.page:before{content:"";position:absolute;z-index:-1;pointer-events:none;top:0;right:0;width:150px;height:160px;background:url(/ui/garden-journal/botanical-corner.webp) no-repeat top right / contain;opacity:.18}.login{max-width:380px;margin:0 auto;padding:12vh 1.25rem 2rem;display:flex;flex-direction:column;gap:.9rem}.login h1{font-size:2.25rem;color:var(--journal-green-hover)}.login label{display:flex;flex-direction:column;gap:.3rem;font-size:.9rem}.page{max-width:560px;margin:0 auto;padding:0 1rem 2rem}.bar{display:flex;align-items:center;gap:.5rem;padding:.75rem 0;padding-top:max(.75rem,env(safe-area-inset-top))}.bar h1{flex:1;color:var(--journal-green-hover)}.card{background:var(--journal-paper);border:1px solid var(--journal-line);border-radius:16px;padding:1rem;margin:.75rem 0;display:flex;flex-direction:column;gap:.75rem;box-shadow:var(--shadow)}.row{display:flex;gap:.5rem}.room-item{display:grid;grid-template-columns:auto 1fr;gap:.15rem .75rem;width:100%;text-align:left;margin-bottom:.5rem;padding:.7rem .9rem;box-shadow:var(--shadow)}.room-item b{grid-row:span 2;font-family:var(--serif);font-size:1.25rem;letter-spacing:.08em;align-self:center;color:var(--journal-green-hover)}.code{font-family:var(--serif);font-size:1.6rem;letter-spacing:.15em}.seats{margin:0;padding-left:1.4rem;line-height:2}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#c9bfa9;margin-right:.5rem}.dot.on{background:#3f8f47}.toast{position:fixed;left:50%;bottom:calc(1rem + env(safe-area-inset-bottom));transform:translate(-50%);background:var(--journal-ink);color:#fff;padding:.7rem 1rem;border-radius:12px;z-index:50;max-width:92vw;box-shadow:0 4px 14px #0004}.toast.warn{background:#7a4f00;bottom:auto;top:calc(.5rem + env(safe-area-inset-top))}.game{display:flex;flex-direction:column;height:100dvh;padding:0 max(.5rem,env(safe-area-inset-right)) 0 max(.5rem,env(safe-area-inset-left));gap:.4rem;position:relative;isolation:isolate}.gbar{flex:none;display:flex;align-items:center;gap:.35rem;padding-top:max(.25rem,env(safe-area-inset-top));position:relative}.gbar .icon-btn{width:40px;min-height:40px}.gbar .journal{margin-left:auto;color:var(--journal-green-hover)}.gbar .journal .ico{margin:0;width:22px;height:22px}.pill.round{min-height:36px;padding:.15rem .6rem;font-size:.875rem;gap:.15rem}.pill.round .ico{width:16px;height:16px;margin:0 .1rem 0 .2rem;color:var(--journal-clay)}.ico{width:18px;height:18px;flex:none;margin-right:.3rem}.log{background:var(--journal-paper);border:1px solid var(--journal-line);border-radius:12px;font-size:.85rem;padding:.4rem .75rem;max-height:30vh;overflow:auto;flex:none}.game-body{flex:1;min-height:0;display:flex;flex-direction:column;gap:.4rem}.game-main{flex:1;min-height:0;display:flex;flex-direction:column;gap:.35rem}.game-side{flex:none;display:flex;flex-direction:column;min-height:0}.resources{display:flex;gap:.35rem}.res{display:inline-flex;align-items:center;gap:.25rem;background:var(--journal-paper);border:1px solid var(--journal-line);border-radius:999px;padding:.1rem .6rem .1rem .2rem;min-height:36px;font-size:.875rem}.res img{width:26px;height:26px;object-fit:contain}.res b{font-family:var(--serif);font-size:1.15rem}.res small{font-size:.8125rem;color:var(--journal-muted)}.hud{flex:none;display:flex}.phase-pill{flex:1;display:flex;align-items:center;gap:.45rem;border-radius:12px;min-height:36px;padding:.1rem .6rem;font-size:.95rem;text-align:left;color:var(--journal-muted)}.phase-pill.mine{background:var(--journal-selected);border-color:var(--journal-green);color:var(--journal-green-hover);font-weight:700}.phase-pill>span[role=status]{flex:1}.phase-pill .chev{color:var(--journal-muted);font-size:.8rem}.phase-pill .die.small{width:24px;height:24px}.gain{position:absolute;z-index:5;left:50%;top:100%;transform:translate(-50%);font-size:.9rem;font-weight:700;color:#fff;background:var(--journal-green);border-radius:999px;padding:.2rem .75rem;box-shadow:var(--shadow);white-space:nowrap;animation:rise .22s ease-out}.board{flex:none;padding:.4rem;background:#efe4cc;border:1px solid var(--journal-line);border-radius:14px}.board-grid{display:grid;gap:.3rem;margin-bottom:.3rem}.board-grid.top{grid-template-columns:repeat(4,1fr)}.board-grid.bottom{grid-template-columns:repeat(3,1fr)}.tile{background:var(--journal-paper);border:1px solid var(--journal-line);border-radius:12px;padding:.3rem;min-height:72px;display:flex;flex-direction:column}.tile-shed,.tile-scissors,.tile-mower{background:#fbf3d2}.tile-market{background:#f6ead8}.tile-name{font-size:.8rem;line-height:1.15;font-weight:600;display:flex;justify-content:space-between;gap:.2rem}.edith{background:var(--journal-clay);color:#fff;border-radius:50%;width:1.2rem;height:1.2rem;display:inline-grid;place-items:center;font-size:.7rem;flex:none}.tile-dice{display:flex;flex-wrap:wrap;gap:.15rem;margin-top:auto;padding-top:.2rem}.die-btn{padding:3px;min-height:44px;min-width:44px;border:2px solid transparent;border-radius:10px;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center}.die-btn:disabled{opacity:1}.die-btn.taken{opacity:.45}.die-btn.can{border-color:var(--journal-green);background:var(--journal-selected)}.owner{font-size:.7rem;max-width:3.2rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.die{width:34px;height:34px;display:block;flex:none}.die.small{width:26px;height:26px}.die rect{fill:#fff;stroke:#5a4a36;stroke-width:.14}.die circle{fill:var(--journal-ink)}.rounds{display:flex;gap:.25rem;overflow-x:auto;font-size:.8rem;scrollbar-width:none;list-style:none;margin:0;padding:.1rem 0}.rounds li{border:1px solid var(--journal-line);background:var(--journal-paper);border-radius:999px;padding:.1rem .5rem;white-space:nowrap}.rounds .on{border-color:var(--journal-clay);color:var(--journal-clay);font-weight:700}.rounds .past{opacity:.55}.board-actions{display:flex;justify-content:space-between}.board-actions .link{font-size:.85rem}.sheet-tools{flex:none;display:flex;gap:.4rem}.seg{flex:1;display:flex;background:var(--journal-paper);border:1px solid var(--journal-line);border-radius:12px;padding:2px;gap:2px;min-width:0}.seg button{flex:1;min-width:0;min-height:30px;border:none;border-radius:11px;background:transparent;font-size:.9rem;padding:.3rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.seg button[aria-pressed=true]{background:var(--journal-green);color:#fff;box-shadow:none;font-weight:600}.sheet-tools select{flex:0 1 7.5rem;min-width:0;min-height:36px;border-radius:12px;padding:.2rem .4rem;font-size:.9rem}.sheet-wrap{flex:1;min-height:120px;position:relative;border:1px solid var(--journal-line);border-radius:14px;overflow:hidden;box-shadow:var(--shadow)}.sheet-scroll{position:absolute;inset:0;overflow:auto;-webkit-overflow-scrolling:touch;background:#7c9659}.sheet{position:relative;margin:0 auto}.sheet img{width:100%;display:block;user-select:none;-webkit-user-select:none}.sheet svg{position:absolute;inset:0;width:100%;height:100%}.mark{fill:#2c3140;opacity:.8}.mark.fresh{fill:var(--journal-clay);opacity:.95;animation:stamp .22s ease-out;transform-box:fill-box;transform-origin:center}.target{cursor:pointer;outline:none}.target .hit{fill:transparent}.target .ring{fill:#f2b70540;stroke:var(--target);stroke-width:1.5}.target:focus-visible .ring{stroke:var(--journal-focus);stroke-width:2.2}.target.selected .ring{fill:#526d35b0;stroke:#2f4a1c}.sheet-float{position:absolute;right:.5rem;bottom:.5rem;display:flex;align-items:flex-end;gap:.4rem;pointer-events:none}.sheet-float>*{pointer-events:auto}.zoom{display:flex;flex-direction:column;gap:.3rem}.zoom button{width:34px;height:34px;min-height:0;padding:0;font-size:1.15rem;line-height:1;border-radius:50%;background:#fff9ed8c;border-color:#d7c5a599;box-shadow:0 1px 4px #0002}.zoom button:active{background:#fff9ede5}.panel{position:relative;isolation:isolate;overflow:hidden;background:var(--journal-paper);border:1px solid var(--journal-line);border-radius:16px;margin-bottom:max(.4rem,env(safe-area-inset-bottom));padding:.35rem .6rem .4rem;box-shadow:var(--shadow);display:flex;flex-direction:column;min-height:0;max-height:44dvh}.panel .corner{position:absolute;z-index:-1;right:-1rem;bottom:-1rem;width:110px;opacity:.25;pointer-events:none;transform:rotate(90deg)}.panel-head{display:flex;align-items:center;gap:.4rem;flex:none;min-width:0}.panel-head .leaf{width:18px;height:18px;flex:none}.panel-head h2{font-size:1.1rem;margin:0;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:0 1 auto}.sub-chip{font-size:.8125rem;background:#efe4cc;border:1px solid var(--journal-line);border-radius:999px;padding:.05rem .5rem;color:var(--journal-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:0 1 auto}.panel-head .collapse{margin-left:auto;color:var(--journal-muted);width:36px;min-height:36px;border:none}.panel-title{flex:1;min-width:0}.panel-title h2{font-size:1.15rem;margin:.2rem 0 0;line-height:1.2}.panel-title p{margin:.1rem 0 0;font-size:.85rem;color:var(--journal-muted)}.panel-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:.4rem;padding:.35rem 0 .3rem}.queue{display:flex;gap:.3rem;overflow-x:auto;scrollbar-width:none;flex:none;padding:1px}.chip{white-space:nowrap;font-size:.85rem;min-height:32px;padding:.2rem .7rem;border-radius:999px}.detail{display:flex;flex-direction:column;gap:.4rem}.detail p{margin:0;font-size:.9rem}.detail .note{color:var(--journal-clay);font-size:.85rem}.detail .hint{font-size:.85rem}.options{display:flex;flex-wrap:wrap;gap:.35rem}.options button{font-size:.9rem;min-height:40px;padding:.3rem .65rem}.option{display:flex;flex-direction:column;align-items:flex-start;text-align:left;flex:1 1 10rem}.option small{font-size:.8125rem;color:var(--journal-green-hover)}.beds{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.3rem}.bed{padding:.1rem;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:42px;border-radius:10px}.bed:disabled{background:#efe9dc;opacity:.55}.bed-n{font-family:var(--serif);font-weight:700;font-size:1.15rem;line-height:1}.bed small{font-size:.75rem;line-height:1.1;color:var(--journal-muted);display:inline-flex;align-items:center;gap:1px}.bed-cost img{width:14px;height:14px;object-fit:contain}.bed[aria-pressed=true]{background:#c9d89a}.mode-cards{display:grid;grid-template-columns:1fr 1fr;gap:.35rem}.mode-card{display:flex;align-items:center;gap:.4rem;text-align:left;padding:.1rem .45rem .1rem .25rem;min-height:40px;border-radius:12px}.mode-card img{width:32px;height:32px;object-fit:contain;flex:none}.mode-card b{display:block;font-family:var(--serif);font-size:1rem;line-height:1.15}.mode-card small{display:block;font-size:.75rem;color:var(--journal-muted);line-height:1.2}.mode-card:disabled img{filter:grayscale(.8)}.counter{color:var(--journal-muted);font-size:.85rem!important}.outcome{font-size:.85rem!important;color:var(--journal-green-hover)}.outcome.bad{color:#9d2a1e}.check{display:flex;gap:.5rem;align-items:center;font-size:.9rem;min-height:40px}.check input{width:22px;height:22px;min-height:0}.panel-foot{flex:none;display:grid;grid-template-columns:auto 1fr;gap:.25rem .4rem;padding-top:.3rem}.panel-foot .back{border-radius:10px;min-height:36px;padding:.15rem .8rem;font-size:.9rem}.panel-foot .primary{min-height:36px;padding:.15rem .8rem;border-radius:10px;font-size:.95rem}.foot-links{grid-column:1 / -1;display:flex;justify-content:space-between;gap:.25rem}.foot-links .link{font-size:.85rem;min-height:28px;padding:.1rem .25rem;color:var(--journal-muted)}.foot-links .link:nth-child(2){color:var(--journal-green-hover)}.wait .players{margin:.4rem 0 0;padding:0;list-style:none;line-height:2}.wait{display:none}.scores{overflow:auto}.scores table{width:100%;border-collapse:collapse;font-size:.95rem}.scores td,.scores th{padding:.4rem;text-align:center;border-bottom:1px solid var(--journal-line)}.scores td:first-child{text-align:left}.scores .total td{font-weight:700;font-family:var(--serif);font-size:1.1rem}.scores th.win{color:var(--journal-green-hover)}.dialog-back{position:fixed;inset:0;background:#302f2173;z-index:60;display:grid;place-items:center;padding:1rem}.dialog{background:var(--journal-paper);border:1px solid var(--journal-line);border-radius:16px;padding:1.1rem;max-width:420px;width:100%;box-shadow:0 10px 30px #302f2140}.dialog h2{margin:0 0 .4rem;line-height:1.3}.dialog p{margin:0 0 .9rem;font-size:.92rem}.dialog-actions{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:flex-end}.dialog-actions button{flex:1 1 10rem}.modal{position:fixed;inset:0;background:#000c;z-index:40;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;padding:.5rem}.modal img{max-width:100%;max-height:86dvh;border-radius:8px}@keyframes stamp{0%{transform:scale(1.6);opacity:.3}}@keyframes rise{0%{transform:translate(-50%,4px);opacity:0}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(max-width:359px){.beds{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:479px){.res-label{display:none}.res{padding-right:.5rem}.mode-card small{display:none}}@media(min-width:600px){.tile-name{font-size:.85rem}.die,.mode-card img{width:40px;height:40px}}@media(min-width:1024px){.game{padding-left:1rem;padding-right:1rem}.game-body{flex-direction:row;gap:1rem}.game-side{width:360px;flex:none}.panel{max-height:none;flex:1;padding:.9rem 1rem 1rem}.panel-head h2{font-size:1.3rem;white-space:normal}.panel-head{flex-wrap:wrap}.panel .corner{width:170px}.wait{display:flex}.mode-card{flex-direction:column;text-align:center;padding:.5rem}.mode-card img{width:88px;height:88px}.mode-card small{display:block;font-size:.8125rem}.beds .bed{min-height:52px}}
