:root{--paper:#faf9f6;--ink:#262724;--green:#496454;--line:#e4dfd5;--muted:#5e5d57;--btn-bg:#faf8f1;--btn-ink:#294b39;--eyebrow:#557366}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.75 'Noto Sans TC','PingFang TC','Microsoft JhengHei',system-ui,sans-serif}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer;border:1px solid #718276;background:#fffdf8;color:var(--green);min-height:44px;padding:10px 18px;border-radius:0}button:hover{background:#edf3eb}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #c3933c;outline-offset:3px}button:disabled{opacity:.55;cursor:default}header,footer{padding:20px max(20px,calc((100vw - 1136px)/2));display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);background:#fff;font-size:13px}header>span{font-size:12px;letter-spacing:3px}main{max-width:1176px;padding:0 20px;margin:auto}.hero{display:grid;grid-template-columns:1fr 1fr;gap:50px;padding:48px 0}.hero-copy{align-self:center}.kicker{font-size:10px;letter-spacing:2px;color:var(--green);font-weight:700}h1{font-size:clamp(36px,4.8vw,62px);line-height:1.35;margin:22px 0}h2{font-size:27px;line-height:1.4;margin:12px 0 25px}h3{font-size:18px;line-height:1.5}.hero-copy>p:not(.kicker){color:#59645c}.primary{background:var(--green);color:#fffdf8;border-color:var(--green);font-weight:600;min-height:48px}.primary:hover{background:#294b39;color:#fff}.hero-art{position:relative;min-height:460px;background:url('./assets/garden.webp') center 60%/cover;border:1px solid var(--line)}.hero-pet{position:absolute;width:230px;height:230px;background:url('./assets/morni-defense.webp') 0 0/200% 200%;left:50%;top:40%;transform:translateX(-50%);animation:float 3s ease-in-out infinite}.art-note{position:absolute;left:20px;top:20px;padding:8px 12px;background:#fffdf8e6;border:1px solid var(--line);font-size:12px}.small,.fine{font-size:12px;color:#59645c}.section{border-top:1px solid var(--line);padding:32px 0}.products,.journal{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.products article,.entry{padding:22px;border:1px solid var(--line);background:#fffdf8}.products canvas{float:right;width:65px;height:65px}.products h3{min-height:54px;max-width:75%;margin-top:4px}.products span{font-size:12px;color:var(--green)}.entry canvas{display:block;width:100%;height:130px;background:#f4f3e9}.entry h3{margin:14px 0 0}.entry .latin{font-size:11px;font-style:italic;color:#68766b}.entry a{text-decoration:underline;font-size:12px}.entry p{font-size:13px}.entry.locked canvas{opacity:.25}.entry.locked{color:#788176}h2 small{font-size:15px;color:#68766b;font-weight:400}footer{margin-top:25px;border-top:1px solid var(--line)}
dialog{padding:0;border:1px solid var(--line);width:min(880px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);color:var(--ink);background:#fffdf8;overflow:auto}dialog::backdrop{background:#233029bd;backdrop-filter:blur(4px)}.dialog-top{height:65px;padding:10px 18px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.dialog-top h2{font-size:18px;margin:0}.dialog-top .kicker{font-size:8px}.top-actions{display:flex;gap:8px}.top-actions button{padding:0;min-width:44px;font-size:22px}.battle-body{display:grid;grid-template-columns:minmax(0,1fr) 265px}.stage{position:relative;height:min(680px,calc(100dvh - 110px));min-height:260px;overflow:hidden;background:#e9e3d5}#field{display:block;width:100%;height:100%;touch-action:none}.hud{position:absolute;top:12px;left:12px;right:12px;display:flex;justify-content:space-between;pointer-events:none;gap:8px}.hud>div{background:#fffdf8ed;border:1px solid var(--line);padding:6px 14px;min-width:76px}.hud span{font-size:10px;display:block;color:#59645c}.hud b{font-size:24px;line-height:1.25}.hud.urgent>div:last-child{color:#b74129;border-color:#b74129}.overlay{position:absolute;inset:0;background:#faf9ef33;backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center;padding:20px}.overlay-card{background:#fffdf8f5;border:1px solid #bfc8bd;text-align:center;padding:26px;max-width:370px;max-height:100%;overflow:auto}.overlay-card h3{font-size:24px;margin:10px 0}.overlay-card p{font-size:14px}.overlay-card .fine{font-size:11px}.overlay-card .primary{width:100%}#count{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);font-size:70px;color:#294b39;background:#fffdf8d9;padding:0 30px;pointer-events:none}#toast{position:absolute;bottom:10px;left:16px;right:16px;text-align:center;background:#fffdf8eb;font-size:12px;margin:0;pointer-events:none}#toast:empty{display:none}aside{padding:18px;border-left:1px solid var(--line)}.kit-heading{display:flex;justify-content:space-between;font-size:13px;margin-bottom:15px}.tools{display:flex;flex-direction:column;gap:12px}.tools button{display:grid;grid-template-columns:50px 1fr;align-items:center;padding:10px;text-align:left;touch-action:none}.tools canvas{width:46px;height:46px;grid-row:span 2}.tools strong{font-size:14px;display:block}.tools small{display:block;font-size:10px;color:#59645c}.tools b{font-size:11px;font-weight:500}.tools button.selected{border:2px solid #496454;background:#edf3eb}.kit-help{font-size:12px;color:#496454}.live-notes{border-top:1px solid var(--line);margin-top:24px;padding-top:16px}.live-notes p{font-size:13px}[hidden]{display:none!important}@keyframes float{50%{transform:translate(-50%,-5px)}}
@media(max-width:650px){header>span{display:none}header{padding:15px 16px}.hero{grid-template-columns:1fr;gap:24px;padding:30px 0}.hero h1{font-size:39px}.hero-art{min-height:340px}.hero-pet{width:180px;height:180px;top:35%}.products,.journal{grid-template-columns:1fr}.products h3{min-height:0}.section h2{font-size:24px}.products article{padding:20px}dialog{width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;padding-top:env(safe-area-inset-top);overflow:hidden}dialog[open]{display:flex;flex-direction:column}.dialog-top{flex:0 0 60px;padding:8px 12px}.battle-body{display:flex;flex-direction:column;flex:1;min-height:0}.stage{height:auto;min-height:0;flex:1}aside{padding:8px 10px calc(8px + env(safe-area-inset-bottom));border-left:0;border-top:1px solid var(--line)}.tools{flex-direction:row;gap:6px}.tools button{display:flex;flex-direction:column;flex:1;padding:5px 2px;min-width:0;text-align:center;min-height:91px}.tools canvas{width:32px;height:32px}.tools strong{font-size:12px}.tools small{display:none}.tools b{font-size:10px}.kit-heading{margin:0 0 5px;font-size:11px}.kit-help{font-size:11px;margin:5px 0 0}.desktop-note,.live-notes{display:none}.hud{top:8px;left:8px;right:8px}.hud>div{padding:5px 10px;min-width:65px}.hud b{font-size:21px}.overlay{padding:14px}.overlay-card{padding:20px}.overlay-card h3{font-size:22px}}
@media(max-height:500px) and (orientation:landscape){dialog{width:100%;height:100dvh;max-height:100dvh;margin:0}.dialog-top{height:50px}.stage{height:calc(100dvh - 52px);min-height:0}.battle-body{grid-template-columns:1fr 230px}.tools{gap:5px}.tools button{padding:3px 8px}.tools canvas{width:35px;height:35px}.kit-help{margin:5px 0}.live-notes,.desktop-note{display:none}.overlay-card{padding:10px 18px}.overlay-card h3{font-size:19px;margin:4px 0}.overlay-card p{font-size:12px;margin:6px 0}}
@media(prefers-reduced-motion:reduce){*{animation:none!important}}
/* Game lobby: scenery first, compact menu layered inside the courtyard. */
.hero{display:block;position:relative;isolation:isolate;min-height:650px;margin:24px 0 36px;padding:0;overflow:hidden;border:1px solid #bfc8bd;background:#e9e3d5}
.hero-art{position:absolute;inset:0;z-index:-1;border:0;min-height:0;background:url('./assets/garden.webp') center 55%/cover}
.hero-art:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(248,245,231,.96),rgba(248,245,231,.78) 38%,rgba(248,245,231,0) 75%)}
.hero-copy{position:relative;z-index:2;width:min(510px,55%);padding:46px 36px 110px;pointer-events:none}.hero-copy button,.hero-copy a{pointer-events:auto}
.hero-copy .kicker{display:inline-block;background:#294b39;color:#fff6da;padding:6px 12px;letter-spacing:2px;margin:0}.hero h1{font-size:clamp(34px,4.6vw,58px);line-height:1.18;margin:24px 0 16px;text-shadow:0 2px #fff9e8;letter-spacing:1px}.hero-copy>p:not(.kicker){font-size:14px;line-height:1.8;max-width:340px}.hero-copy .primary{margin:12px 0 5px;min-height:60px;width:100%;max-width:310px;background:#294b39;border:2px solid #fff0bd;box-shadow:4px 4px 0 #294b39;font-size:20px;letter-spacing:2px}.hero-copy .primary:hover{background:#496454;transform:translateY(-2px)}
.hero-pet{z-index:1;left:72%;top:34%;width:290px;height:290px;filter:drop-shadow(0 18px 5px #344c3524)}.art-note{left:auto;right:22px;top:22px;z-index:2;background:#294b39;color:#fff9df;border:1px solid #fff3c8;font-weight:700;letter-spacing:1px}
.lobby-nav{position:absolute;bottom:22px;left:26px;right:26px;display:grid;grid-template-columns:1fr 1fr;gap:12px;z-index:3}.lobby-nav a{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fffdf3ed;border:1px solid #718276;border-bottom:4px solid #496454;padding:14px 20px;font-size:17px;font-weight:700;min-height:62px}.lobby-nav a span{font-size:11px;color:#657361;font-weight:400}.lobby-nav a:hover{background:#eaf0dd}
.lobby-spark{position:absolute;right:15%;top:32%;z-index:2;color:#ba8e3e;font-size:36px;animation:float 3s ease-in-out infinite;pointer-events:none}.hero-copy #best{display:inline-block;background:#fffdf3bd;padding:7px 10px;border-left:3px solid #b9964d;font-size:12px;margin-top:8px}.hero-copy .small{font-size:12px!important}
.section{scroll-margin-top:20px}.section .kicker{background:#e9ecdf;display:inline-block;padding:4px 8px}.products article,.entry{border-top:4px solid #496454}.entry canvas{background:linear-gradient(135deg,#e7eadb,#f9f1dc)}.product-link{font-size:12px;text-decoration:underline;text-underline-offset:4px}
@media(max-width:850px){.hero{min-height:620px}.hero-copy{width:57%;padding:32px 24px 115px}.hero h1{font-size:38px}.hero-pet{width:240px;height:240px;left:75%;top:40%}.hero-copy>p:not(.kicker){font-size:13px}.lobby-nav{left:20px;right:20px}.lobby-nav a{padding:12px}.lobby-nav a span{display:none}}
@media(max-width:650px){main{padding:0 12px}.hero{min-height:690px;margin:12px 0 24px}.hero-art{background-position:center 58%}.hero-art:after{background:linear-gradient(180deg,#f8f5e7f0 0%,#f8f5e7c7 30%,#f8f5e720 64%,#f8f5e785 100%)}.hero-copy{width:100%;padding:24px 22px 0;text-align:center}.hero-copy .kicker{font-size:9px}.hero h1{font-size:39px;margin:17px 0 10px}.hero-copy>p:not(.kicker){margin-inline:auto;font-size:13px;max-width:290px}.hero-copy>p:not(.small):not(.kicker){margin-bottom:8px}.hero-copy .primary{position:absolute;top:500px;left:50%;transform:translateX(-50%);width:calc(100% - 48px);max-width:340px;font-size:19px}.hero-copy .primary:hover{transform:translateX(-50%)}.hero-copy .small{display:none}.hero-copy #best{display:inline-block;font-size:11px!important;margin-top:2px}.hero-pet{left:50%;top:280px;width:225px;height:225px}.art-note{top:auto;bottom:155px;right:16px;font-size:10px;padding:5px 8px}.lobby-nav{bottom:20px;left:20px;right:20px;gap:10px}.lobby-nav a{justify-content:center;min-height:54px;font-size:15px;padding:10px}.lobby-spark{top:320px;right:18%;font-size:28px}.products,.journal{gap:14px}}
@media(prefers-reduced-motion:reduce){.hero-copy .primary:hover{transform:none}.hero-pet,.lobby-spark{animation:none!important}}
/* Generated inventory art: give the illustrations enough room to read. */
.products canvas{width:88px;height:88px;float:right}.products h3{max-width:68%}.tools canvas{width:56px;height:56px}.tools button{grid-template-columns:60px 1fr}.entry canvas{height:150px}
@media(max-width:650px){.tools canvas{width:44px;height:44px}.tools button{min-height:103px}.products canvas{width:80px;height:80px}}
@media(max-height:500px) and (orientation:landscape){.tools canvas{width:38px;height:38px}.tools button{grid-template-columns:44px 1fr;min-height:0}}
/* Flow-based lobby: mission label and CTA cannot occupy the same coordinates. */
.hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto;gap:26px;padding:36px;min-height:0}
.hero-copy{grid-column:1;grid-row:1;width:auto;padding:0;min-width:0}.lobby-character{grid-column:2;grid-row:1;position:relative;align-self:center;justify-self:center;width:min(290px,100%);aspect-ratio:1;z-index:1}
.lobby-character .hero-pet{position:static;left:auto;top:auto;width:100%;height:100%;transform:none;animation:lobby-breathe 3s ease-in-out infinite}
.lobby-action{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin:20px 0 12px;max-width:320px;pointer-events:auto}.mission-tag{align-self:flex-start;background:#fff9e8df;border-left:3px solid #b9964d;padding:4px 9px;font-size:11px;letter-spacing:1px;color:#496454}
.hero-copy .lobby-action .primary{position:static;top:auto;left:auto;transform:none;margin:0;max-width:none;width:100%;font-size:20px;white-space:normal}.hero-copy .lobby-action .primary:hover{transform:none}
.lobby-nav{position:static;grid-column:1 / -1;grid-row:2;margin:0;min-width:0}.lobby-spark{right:18%;top:24%}
@keyframes lobby-breathe{50%{transform:translateY(-5px)}}
@media(max-width:650px){.hero{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;gap:16px;padding:24px 18px;min-height:0}.hero-copy{grid-column:1;grid-row:1;display:flex;flex-direction:column;align-items:center}.hero-copy .kicker{max-width:100%;font-size:9px}.hero h1{font-size:36px}.hero-copy .lobby-action{order:5;width:100%;max-width:340px;margin:14px 0 0}.lobby-character{grid-row:2;grid-column:1;width:200px;display:none}.hero-copy:after{content:'';display:block;order:4;width:200px;height:200px;background:url('./assets/morni-defense.webp') 0 0/200% 200%;animation:lobby-breathe 3s ease-in-out infinite}.hero-copy #best{order:3;margin:6px 0!important}.mission-tag{align-self:center;font-size:10px}.lobby-nav{grid-row:3;grid-column:1;gap:10px}.lobby-nav a{font-size:14px;min-width:0;padding:10px 6px}.lobby-spark{display:none}}
@media(prefers-reduced-motion:reduce){.hero-copy:after,.lobby-character .hero-pet{animation:none!important}}

/* Square source and display prevent stretched field-guide illustrations. */
.entry canvas{width:min(100%,240px);height:auto;aspect-ratio:1;display:block;margin-inline:auto}
.related-articles{display:grid;gap:12px}.related-articles a{display:block;padding:16px;border:1px solid var(--line);background:#fffdf8;color:#294b39}.related-articles a:hover{background:#edf3eb}

/* 2.1 — aligned with mornihome.com tokens. */
h1,h2,h3{font-weight:500;color:var(--ink)}
.kicker{color:var(--eyebrow);font-weight:700;letter-spacing:.16em}
button{background:var(--btn-bg);color:var(--btn-ink);border-color:var(--green);letter-spacing:.04em}
#overlay-copy{white-space:pre-line}
