@charset "UTF-8";
:root{font-family:"Hiragino Maru Gothic ProN","Yu Gothic",Meiryo,sans-serif;color:#34483d;background:#f6f5ee;font-synthesis:none;font-weight:600}*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;border:0;cursor:pointer;touch-action:manipulation}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #448f71;outline-offset:4px}button:disabled{opacity:.32;cursor:default}button:hover:not(:disabled){filter:brightness(.975)}button:active:not(:disabled){transform:translateY(2px)}.app{height:100vh;height:100dvh;min-height:570px;display:flex;flex-direction:column;padding:0 max(28px,env(safe-area-inset-right)) 0 max(28px,env(safe-area-inset-left));overflow:hidden}header{height:100px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;border-bottom:1px solid #e3e5db}.brand{display:flex;gap:10px;align-items:center;text-decoration:none;color:#364d3e;font-size:23px;letter-spacing:.025em}.brand img{width:44px;height:44px}.brand-light{font-weight:500}.brand small{display:block;font-size:9px;letter-spacing:.27em;margin-top:3px;color:#819080}.save-status{display:flex;gap:8px;align-items:center;font-size:11px;color:#839180;margin-left:auto;margin-right:28px}.save-status>span:first-child{width:6px;height:6px;border-radius:50%;background:#91b48b}.header-actions{display:flex;gap:10px}.round{height:44px;width:44px;background:#eeeee5;border:1px solid #e1e4d8;border-radius:50%;font-size:22px;display:grid;place-items:center}.round svg{width:21px}.playground{flex:1;min-height:0;position:relative;isolation:isolate;background:radial-gradient(ellipse at 53% 57%,#e2eddd 0, #edf1e5 32%, #f6f5ee 69%)}#world{width:100%;height:100%;display:block;touch-action:none;cursor:crosshair}.intro{position:absolute;left:14px;top:27px;pointer-events:none;z-index:1}.eyebrow{font-size:8px;letter-spacing:.18em;color:#85967a;display:flex;align-items:center;gap:7px}.eyebrow span{width:6px;height:6px;background:#9eaf88;border-radius:50%}h1{font-size:clamp(23px,2.7vw,36px);letter-spacing:.12em;line-height:1.65;margin:13px 0 8px;font-weight:700}.intro p{font-size:11px;color:#8b9685;letter-spacing:.06em}.world-label{position:absolute;right:14px;top:30px;border:1px solid #e0e5d8;border-radius:20px;background:#ffffff65;padding:9px 14px;font-size:10px;color:#7e8d74;letter-spacing:.07em}.world-label span{color:#c0a154;font-size:16px;margin-right:6px}.side-tools{position:absolute;right:12px;top:50%;transform:translateY(-35%);display:flex;flex-direction:column;gap:12px}.utility{width:62px;height:67px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #dde3d6;background:#fbfcf5cf;border-radius:19px;box-shadow:0 3px 0 #dce2d440;gap:1px}.utility>span{height:30px;font-size:29px;font-weight:400;line-height:1}.utility svg{width:24px;height:28px}.utility small{font-size:9px;letter-spacing:.08em}.hint{position:absolute;bottom:26px;left:50%;transform:translateX(-50%);background:#fffdf3e8;border:1px solid #e2e4d6;padding:11px 21px;border-radius:24px;font-size:12px;color:#7b876c;white-space:nowrap;box-shadow:0 3px 14px #62714d06;pointer-events:none;transition:opacity .3s}.zoom{position:absolute;bottom:24px;left:14px;display:flex;align-items:center;border:1px solid #dfe3d7;background:#fbfcf5bd;border-radius:14px;overflow:hidden}.zoom button{width:44px;height:42px;background:transparent;font-size:20px}.zoom span{font-size:10px;color:#8b9682;min-width:38px;text-align:center}.world-note{position:absolute;bottom:38px;right:12px;color:#9aa58d;font-size:9px;letter-spacing:.07em}.world-note span{font-size:16px;margin-right:4px}.workbench{flex-shrink:0;padding-bottom:max(12px,env(safe-area-inset-bottom))}.toolbar{width:max-content;max-width:100%;margin:auto;padding:13px 17px;display:flex;align-items:center;gap:18px;background:#fffef7;border:1px solid #e0e4d7;border-radius:26px;box-shadow:0 8px 32px #5b6a4610}.modes,.materials{display:flex;gap:8px}.mode{width:68px;height:79px;border-radius:17px;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#8f9c89}.mode>span{font-size:25px;height:30px}.mode svg{width:28px;height:28px}.mode small{font-size:11px}.mode.selected{background:#e6eddf;color:#567546;box-shadow:inset 0 0 0 1px #cad8bd}.divider{width:1px;height:52px;background:#e2e7d9}.material{position:relative;width:70px;height:79px;background:transparent;border-radius:17px;display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center;transition:background .2s,box-shadow .2s}.material svg{width:38px;height:38px;filter:drop-shadow(0 3px 1px #0000000c)}.material small{font-size:10px;color:#7e8c73}.material.selected{background:#f0f2e5;box-shadow:inset 0 0 0 2px #9eaf7d}.material.selected::after{content:"";position:absolute;width:6px;height:6px;background:#8fa865;border-radius:50%;top:5px;right:7px}.stamp{font-size:31px;line-height:38px}.footer-note{display:flex;justify-content:space-between;margin:16px 14px 0;font-size:9px;letter-spacing:.09em;color:#9aA38f}.tiny-flower{font-size:15px;color:#9aa87f;margin-left:10px}dialog{border:1px solid #dbe2d2;background:#fffef6;color:#4e6148;border-radius:28px;padding:32px;max-width:min(480px,calc(100vw - 32px));box-shadow:0 24px 100px #324b3433;text-align:center}dialog::backdrop{background:#2f4c374d;backdrop-filter:blur(5px)}dialog h2{font-size:23px;letter-spacing:.04em}dialog p{line-height:1.9;font-size:14px;color:#879077}.close{position:absolute;top:10px;right:12px;width:44px;height:44px;border-radius:50%;background:transparent;font-size:28px}.dialog-symbol{font-size:43px}.help-row{display:flex;align-items:center;text-align:left;gap:14px}.help-row>span{font-size:26px}.help-row p{font-size:13px}.primary{display:block;width:100%;padding:15px 25px;border-radius:15px;background:#73945d;color:white;font-size:16px;text-decoration:none;margin-top:15px}.primary span{float:right}dialog .parent-note{font-size:10px;margin-top:22px}#photo-dialog{max-width:720px;width:90vw}#snapshot{width:100%;border-radius:12px}
@media(min-width:1500px){.app{padding-inline:50px}.intro{top:40px}.toolbar{gap:24px;padding:16px 24px}.material{width:80px}}
@media(max-width:1050px){.app{padding-inline:20px}header{height:84px}.toolbar{gap:11px;padding:10px}.mode{width:59px}.material{width:60px}.materials{gap:4px}.world-note{display:none}.intro h1{font-size:27px}.intro p{font-size:10px}}
@media(max-width:740px){.app{min-height:540px;padding-inline:12px}header{height:75px}.brand{font-size:19px}.brand img{width:36px}.save-status{margin-right:12px;font-size:9px}.round{width:40px;height:40px}.header-actions{gap:6px}.intro{top:19px;left:8px}.eyebrow{font-size:6px}.intro h1{font-size:23px;line-height:1.5;margin-top:8px}.intro p{font-size:9px}.world-label{top:20px;right:5px;font-size:8px;padding:7px 10px}.side-tools{right:3px;gap:8px;transform:translateY(-15%)}.utility{width:48px;height:57px;border-radius:16px}.utility small{font-size:8px}.utility>span{font-size:25px}.toolbar{flex-wrap:wrap;width:100%;justify-content:center;border-radius:21px;gap:8px;padding:8px}.modes{width:100%;justify-content:center;gap:10px}.mode{height:49px;width:100px;flex-direction:row;gap:8px}.mode>span{height:26px;font-size:22px}.mode svg{width:24px;height:24px}.divider{display:none}.materials{width:100%;justify-content:center;gap:3px}.material{height:67px;width:calc((100% - 18px)/7);max-width:76px;border-radius:13px}.material svg{width:31px;height:31px}.material small{font-size:9px}.stamp{font-size:27px;line-height:31px}.hint{bottom:18px;font-size:10px;padding:10px 13px;left:56%}.zoom{left:3px;bottom:18px}.zoom button{width:32px;height:36px}.zoom span{min-width:30px;font-size:9px}.footer-note{font-size:8px;margin:10px 3px 0}.footer-note>span:last-child{display:none}}
@media(max-height:700px) and (min-width:741px){header{height:72px}.intro{top:15px}.intro h1{font-size:25px}.toolbar{padding-block:8px}.mode,.material{height:68px}.footer-note{margin-top:10px}.hint,.zoom{bottom:14px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* Growing worlds and language-aware controls. */
[hidden]{display:none!important}h1,[data-i18n="helpIntro"],[data-i18n="parentNote"],[data-i18n="resetBody"]{white-space:pre-line}.eyebrow span[data-i18n]{width:auto;height:auto;border-radius:0;background:none}.header-actions{align-items:center}#language{font:inherit;font-size:12px;min-height:44px;max-width:125px;border:1px solid #dce2d4;background:#fffef5;color:#65795c;border-radius:14px;padding:8px;cursor:pointer}.reset-button{display:flex;align-items:center;gap:6px;min-height:44px;background:#eeeee5;border:1px solid #e1e4d8;border-radius:14px;padding:6px 12px}.reset-button span{font-size:24px}.reset-button small{font-size:10px}.growth{margin-top:16px;color:#81956d;font-size:10px;max-width:270px;line-height:1.7}.growth button{pointer-events:auto;background:#73945d;color:#fff;border-radius:14px;min-height:48px;padding:10px 17px;font-size:13px;box-shadow:0 3px 0 #5b7b49;margin-top:7px}#growth-dots{font-size:15px;letter-spacing:3px;color:#9bb47e}.world-label>span[data-i18n]{font-size:inherit;color:inherit;margin:0}#land-size{display:block;font-size:9px;margin-top:4px;text-align:center;color:#8c9c80}.secondary{width:100%;margin-top:10px;min-height:48px;padding:12px;border-radius:14px;background:#edf0e3;color:#71855d}dialog{max-height:90dvh;overflow:auto}.hint{max-width:60%;white-space:normal;text-align:center}html:not([lang="ja"]) h1{letter-spacing:.025em}html[lang="es"] .utility small{font-size:8px}html[lang="en"] .intro p,html[lang="es"] .intro p{max-width:245px}.save-status{margin-right:18px}.brand{flex-shrink:0}.world-label{max-width:190px}.intro{max-width:36%}
@media(max-width:1050px){.brand{font-size:19px}.save-status{font-size:9px;margin-right:10px}.reset-button{padding:6px 9px}.intro{max-width:34%}.intro h1{font-size:25px}}
@media(max-width:740px){header{height:112px;flex-wrap:wrap;align-content:center;gap:7px}.brand{font-size:18px}.brand img{width:30px;height:30px}.save-status{margin-left:auto;margin-right:0}.header-actions{width:100%;justify-content:flex-end}.header-actions #language{margin-right:auto;max-width:125px;min-height:40px}.header-actions .round,.reset-button{min-height:40px;height:40px}.intro{max-width:58%}.intro h1{font-size:21px}.intro p{max-width:190px!important;font-size:9px}.growth{margin-top:8px;font-size:9px;max-width:175px}.growth button{font-size:11px;min-height:44px;padding:8px 12px}#growth-dots{font-size:12px}.world-label{max-width:130px}#land-size{font-size:8px}.hint{max-width:59%;font-size:9px;left:62%}.footer-note{letter-spacing:0}.app{min-height:640px}}
@media(max-height:700px) and (min-width:741px){.intro h1{font-size:21px;line-height:1.4}.growth{margin-top:6px;font-size:9px}.growth button{font-size:11px;margin-top:3px;padding:6px 12px;min-height:44px}#growth-dots{font-size:12px}}
/* Browser fullscreen keeps every game control, including the exit button. */
:root:fullscreen{background:#f6f5ee}:root:-webkit-full-screen{background:#f6f5ee}.app{padding-top:env(safe-area-inset-top,0px)}#fullscreen[aria-pressed="true"]{background:#dce9cf;border-color:#afc39b}.fullscreen-steps{text-align:left;line-height:1.8;font-size:14px;padding-left:24px}.fullscreen-steps li{padding:5px 0 7px 5px}[data-i18n="fullscreenIntro"]{white-space:pre-line}@media(min-width:741px) and (max-width:900px){.save-status{font-size:8px;margin-right:8px}.header-actions{gap:6px}.brand{font-size:17px}.brand img{width:34px}#language{max-width:110px}}
.room-strip{min-height:42px;display:flex;align-items:center;gap:14px;flex-shrink:0;font-size:11px;color:#78896d}.room-strip button{border-radius:13px;background:#e7eedd;padding:8px 14px;min-height:36px;color:#567348}.room-strip button>span:first-child{font-size:20px;vertical-align:middle}.room-strip #room-badge{font-weight:700;color:#59724b}.room-strip #room-connection{margin-left:auto;font-size:10px}#room-dialog{width:460px}#room-dialog p{white-space:pre-line}#room-code{display:block;width:180px;margin:10px auto 0;text-align:center;font:700 30px monospace;letter-spacing:10px;border:2px solid #cad8b9;border-radius:14px;padding:10px;color:#547044;background:#f6f8ec}#room-join-form{margin-top:24px;padding-top:18px;border-top:1px solid #e0e7d4}#room-join-form label{font-size:13px}#room-share-code{font-size:42px;letter-spacing:12px;display:block;color:#5c7d46;margin:8px}#room-players{list-style:none;padding:0;text-align:left;font-size:12px}#room-players li{display:flex;align-items:center;gap:9px;padding:9px;background:#f0f4e7;border-radius:10px;margin:6px 0}.player-dot{width:18px;height:18px;border-radius:6px;flex-shrink:0}#room-feedback{font-size:12px;color:#987347;min-height:20px}.intro{top:16px}@media(max-width:740px){.room-strip{gap:6px;font-size:9px;flex-wrap:wrap;padding:5px 0}.room-strip #room-connection{font-size:8px}.room-strip button{padding:5px 10px}.app{min-height:680px}}
/* Keep new materials touch-sized while the palette grows. */
.toolbar{width:min(1040px,100%);min-width:0}.modes{flex-shrink:0}.divider{flex-shrink:0}.palette{flex:1;min-width:0}.palette-hint{display:block;font-size:9px;color:#839475;text-align:center;margin-bottom:3px}.palette-row{display:flex;align-items:center;min-width:0;gap:2px}.materials{flex:1;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;touch-action:pan-x;justify-content:flex-start;scrollbar-width:thin;scrollbar-color:#bacba4 transparent;padding:3px 2px 7px}.material{flex:0 0 66px;max-width:none}.material small{white-space:nowrap;font-size:9px}.palette-arrow{flex:0 0 28px;height:52px;font-size:27px;background:#eef2e4;border-radius:10px}.camera-help{position:absolute;bottom:75px;left:14px;font-size:9px;color:#7b8d6b;pointer-events:none}.zoom #center-map{border-left:1px solid #dfe3d7}.zoom button{min-width:40px}.water-lines{stroke:#e7f8f0;stroke-width:2;fill:none}@media(max-width:740px){.palette{flex-basis:100%;width:100%}.materials{width:auto}.material{flex-basis:62px;max-width:none}.palette-arrow{flex-basis:28px}.camera-help{left:6px;bottom:65px;font-size:8px}.hint{bottom:112px;left:50%;max-width:80%}.toolbar{gap:4px}.palette-hint{font-size:8px}.zoom button{min-width:36px}}
/* Explicit control boxes avoid native padding and font-baseline offsets. */
.header-actions{--control-size:44px}
.header-actions #language,.header-actions .reset-button{height:var(--control-size);min-height:var(--control-size);max-height:var(--control-size);padding-block:0;line-height:1.2;border-radius:14px}
.header-actions .reset-button{justify-content:center;gap:6px}
.reset-button>span{display:grid;place-items:center;width:22px;height:22px;font:22px/1 Arial,sans-serif}
.reset-button small{display:block;line-height:1.2}
.header-actions .round,dialog .close{display:flex;align-items:center;justify-content:center;flex-shrink:0;padding:0;line-height:1;aspect-ratio:1;appearance:none;-webkit-appearance:none}
.header-actions .round{width:var(--control-size);height:var(--control-size);min-height:var(--control-size)}
.header-actions .round svg,dialog .close svg{display:block;flex:none;width:22px;height:22px}
#help svg{width:24px;height:24px}
.utility>span,.mode>span,.zoom button,.palette-arrow{display:flex;align-items:center;justify-content:center;line-height:1}
.utility svg,.mode svg{display:block;flex-shrink:0}
.zoom button,.palette-arrow{padding:0}
@media(max-width:740px){.header-actions{--control-size:40px}}
.utility{padding-inline:4px}.utility small{white-space:nowrap}
/* Keep the map separate from feedback and the bottom tool tray. */
header{height:84px;gap:16px}.brand-group{display:flex;align-items:center;gap:20px;min-width:0;flex:1}.header-tagline{margin:0;max-width:180px;font-size:12px;font-weight:400;line-height:1.6;letter-spacing:.03em;white-space:normal;color:#899583}.save-status{flex-shrink:0}.header-actions{flex-shrink:0}.intro .growth{margin-top:0}.intro{top:14px}.world-label{top:14px}
.workbench{padding-bottom:max(4px,env(safe-area-inset-bottom));padding-top:0}.feedback-row{display:flex;align-items:center;justify-content:center;min-height:34px;padding:3px 8px}.workbench .hint{position:static;transform:none;max-width:100%;margin:0;border:0;box-shadow:none;background:transparent;border-radius:0;padding:2px 8px;font-size:11px;line-height:1.5;white-space:normal;text-align:center}.toolbar{padding:8px 12px}.camera-help{bottom:62px}.zoom{bottom:12px}
@media(max-width:1050px){header{gap:10px}.brand-group{gap:12px}.header-tagline{font-size:10px;max-width:135px}.save-status{margin-right:0}}
@media(min-width:741px) and (max-width:900px){.brand-group{gap:9px}.header-tagline{font-size:9px;max-width:100px}.brand{gap:7px}}
@media(max-width:740px){header{height:104px;gap:6px}.brand-group{flex:1;gap:12px}.header-tagline{max-width:160px;font-size:10px}.header-actions{flex-shrink:1}.feedback-row{min-height:30px;padding:2px 4px}.workbench .hint{font-size:10px;padding:2px 4px}.toolbar{padding:6px 8px}.mode{height:44px}.camera-help{bottom:54px}.zoom{bottom:9px}.intro{top:10px}}
@media(max-width:430px){.header-tagline{max-width:100px;font-size:9px}.brand-group{gap:8px}.save-status{max-width:76px;font-size:8px}.brand{font-size:16px;gap:6px}}
@media(max-height:700px) and (min-width:741px){header{height:72px}.feedback-row{min-height:28px}.toolbar{padding-block:6px}}
/* A large, separate thumb target for a cosmetic hop in place. */
.jump-button{position:absolute;right:12px;bottom:12px;width:76px;height:76px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:0;background:#e4edda;color:#607d4b;border:1px solid #c9d8ba;box-shadow:0 4px 0 #cad7bd;touch-action:manipulation}
.jump-button>span{display:flex;align-items:center;justify-content:center;width:32px;height:32px}.jump-button svg{width:28px;height:28px;display:block}.jump-button small{font-size:10px;line-height:1.4}.jump-button.is-jumping{background:#d5e5c5}.side-tools{transform:translateY(-60%)}
@media(max-width:740px){.jump-button{right:3px;bottom:9px;width:64px;height:64px}.jump-button small{font-size:9px}.side-tools{transform:translateY(-60%)}}
/* Keep the invitation beside the island name; room status appears only when used. */
.room-strip:has(#room-badge:empty):has(#room-connection:empty){display:none}.world-corner{position:absolute;right:14px;top:14px;display:flex;flex-direction:column;align-items:flex-end;gap:8px;z-index:1}.world-corner .world-label{position:static}.world-corner #room-open{display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:6px 14px;border:1px solid #d6e0cb;border-radius:14px;background:#e7eedd;color:#567348;font-size:11px}.world-corner #room-open>span:first-child{font-size:22px;line-height:1}.side-tools{top:auto;bottom:106px;transform:none;gap:8px}.utility{height:60px}
@media(max-width:740px){.world-corner{right:5px;top:10px;gap:6px}.world-corner #room-open{font-size:10px;min-height:42px;padding:5px 10px}.side-tools{transform:none;bottom:94px}.utility{height:53px}}
@media(max-height:700px) and (min-width:741px){.side-tools{right:102px;bottom:12px;flex-direction:row}.utility{height:54px}}

#app-version{white-space:nowrap;font-variant-numeric:tabular-nums}#room-self{font-weight:700;color:#567348}#room-admission{padding:12px;background:#f0f4e7;border-radius:14px}.admission-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;min-height:44px;cursor:pointer}.admission-toggle input{position:absolute;opacity:0;width:1px;height:1px}.switch-track{width:48px;height:28px;border-radius:20px;background:#a5ad9c;padding:3px;flex-shrink:0}.switch-track:before{content:'';display:block;background:white;width:22px;height:22px;border-radius:50%;transition:transform .15s}.admission-toggle input:checked+.switch-track{background:#719b56}.admission-toggle input:checked+.switch-track:before{transform:translateX(20px)}.admission-toggle input:focus-visible+.switch-track{outline:3px solid #47663a;outline-offset:3px}.admission-toggle input:disabled+.switch-track{opacity:.5}#room-admission-state{display:block;text-align:right;font-size:11px;color:#637a52}#room-back{width:100%;margin-top:12px}#room-dialog{max-height:90dvh;overflow:auto}

#land-size{white-space:pre-line;line-height:1.6}
