:root{--paper:#f4eddd;--paper-light:#fcf8ef;--ink:#312e27;--muted:#7a7568;--moss:#405b3b;--moss-dark:#2b4228;--line:#d8cfba;--ochre:#ab7b3b;--rust:#a45c43;--radius:14px;font-family:"Noto Serif KR","Batang",Georgia,serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select{font:inherit}button,a,select,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}a{color:inherit}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #b88643;outline-offset:4px}button{color:inherit}h1,h2,h3,p{margin:0}h1,h2{font-weight:600;word-break:keep-all}p{word-break:keep-all;line-height:1.7}button{word-break:keep-all}[hidden]{display:none!important}.paper-grain{position:fixed;inset:0;pointer-events:none;z-index:10;opacity:.05;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.35' filter='url(%23n)'/%3E%3C/svg%3E")}.site-header{max-width:1008px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:21px 20px 17px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:9px;text-decoration:none;font-size:13px;letter-spacing:.03em;line-height:1.3}.brand>svg{width:28px;height:32px;color:var(--moss)}.brand small{display:block;font:10px/1.7 system-ui,sans-serif;color:var(--muted);letter-spacing:.1em}.info-trigger{font-size:11px!important;white-space:nowrap}main{max-width:960px;margin:auto;padding:0 18px}.screen{animation:appear .4s ease}.text-button{border:0;background:none;padding:8px 0;font-size:12px;min-height:38px;text-decoration:underline;text-decoration-color:#bbb19a;text-underline-offset:5px}.text-button:hover{text-decoration-color:var(--ink)}.button{min-height:46px;border-radius:6px;border:1px solid var(--line);padding:12px 16px;font:600 13px/1.35 system-ui,-apple-system,"Malgun Gothic",sans-serif;display:inline-flex;align-items:center;justify-content:center;gap:12px;transition:background .18s,transform .18s}.button:active{transform:translateY(1px)}.primary{background:var(--moss);color:var(--paper-light);border-color:var(--moss)}.primary:hover{background:var(--moss-dark)}.secondary{background:rgba(252,248,239,.65)}.secondary:hover{background:var(--paper-light)}.big{width:100%;min-height:54px;font-size:14px;justify-content:space-between}.eyebrow{font:10px/1.5 system-ui,-apple-system,"Malgun Gothic",sans-serif;color:var(--moss);letter-spacing:.09em}.tiny-leaf{color:var(--ochre)}.intro-screen{padding-top:20px}.intro-art{height:190px;position:relative;margin:0 -18px;overflow:hidden}.intro-art>svg{width:100%;height:100%;display:block}.intro-copy{position:relative;padding:6px 5px 0}.intro-copy h1{font-size:39px;letter-spacing:-.07em;line-height:1.16;margin:13px 0 18px}.intro-copy h1 span{display:block;font-size:19px;letter-spacing:-.02em;margin-top:10px;color:var(--moss)}.intro-description{font-size:13px;line-height:1.8;margin-bottom:14px}.intro-description.small{font-size:11px;color:var(--muted);margin-bottom:21px}.intro-copy .button+.button{width:100%;margin-top:9px}.sampling-note{font:10px/1.6 system-ui,-apple-system,"Malgun Gothic",sans-serif;color:var(--muted);text-align:center;margin:12px 0 7px}.sampling-note strong{color:var(--moss);font-weight:500}.intro-links{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:6px}.intro-links span{font:10px system-ui,sans-serif;color:var(--muted)}.intro-footnote{border-top:1px solid var(--line);display:flex;justify-content:space-between;font:9px/1.5 system-ui,sans-serif;color:var(--muted);margin:25px 0;padding:15px 0 18px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-heading h2{font-size:15px;line-height:1.5}.section-number{font:11px system-ui,sans-serif;color:var(--ochre)}.library-screen{padding-top:30px}.library-screen h1{font-size:26px;margin-top:8px}.muted{color:var(--muted);font-size:12px;margin:16px 0}.library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding-bottom:30px}.library-card{border:1px solid var(--line);background:var(--paper-light);border-radius:8px;padding:12px;text-align:left;min-height:170px}.library-card>svg{display:block;width:100%;height:65px;color:var(--moss);margin-bottom:8px}.library-card strong{font-size:13px;display:block}.library-card small{font:10px/1.5 system-ui,sans-serif;color:var(--muted);display:block;margin:5px 0}.library-card .card-arrow{display:block;font:11px system-ui,sans-serif;color:var(--moss);margin-top:8px}.life-screen{padding-top:19px}.life-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:0 0 13px}.life-heading h1{font-size:23px;line-height:1.25;margin-top:5px}.latin{font:italic 11px/1.4 Georgia,serif;color:var(--muted);margin-top:4px}.age-stamp{text-align:right;min-width:76px}.age-stamp strong{display:block;font:600 13px/1.4 system-ui,sans-serif}.age-stamp span{font:10px/1.4 system-ui,sans-serif;color:var(--moss)}.habitat-scene{position:relative;overflow:hidden;min-height:180px;aspect-ratio:1.7;border-radius:10px 10px 2px 2px;background:#ddd8b9}.habitat-scene>div:first-child{position:absolute;inset:0}.habitat-scene #lifeArt>svg{display:block;width:100%;height:100%}.scene-topline,.scene-bottomline{position:absolute;left:12px;right:12px;display:flex;justify-content:space-between;gap:10px;font:9px/1.5 system-ui,sans-serif;color:#394235;text-shadow:0 1px 3px #fcf8ef;pointer-events:none}.scene-topline{top:10px}.scene-bottomline{bottom:10px;align-items:flex-end}.scene-bottomline>span:first-child{max-width:70%;word-break:keep-all}.scene-bottomline>span:last-child{white-space:nowrap}.event-panel,.birth-certificate{padding:20px 15px 19px;background:var(--paper-light);border:1px solid var(--line);border-top:0;border-radius:0 0 10px 10px}.event-label{display:flex;justify-content:space-between;gap:12px;font:9px/1.5 system-ui,sans-serif;color:var(--ochre);letter-spacing:.07em;margin-bottom:8px}.event-panel h2,.birth-certificate h2{font-size:19px;line-height:1.5;margin-bottom:9px}.event-panel p,.birth-certificate>p{font-size:12px;line-height:1.75;color:#635e53}.birth-certificate .eyebrow{font-size:9px;margin-bottom:8px}.birth-details{display:flex;gap:8px;flex-wrap:wrap;font:10px/1.6 system-ui,sans-serif;color:var(--muted);margin:14px 0}.birth-details span{border-left:1px solid var(--line);padding-left:8px}.birth-details span:first-child{border-left:0;padding-left:0}.birth-certificate>.button{width:100%}.choice-list{display:grid;gap:8px;margin-top:14px}.choice-button{min-height:57px;display:flex;gap:11px;align-items:flex-start;text-align:left;border:1px solid #cfcbb8;border-radius:7px;padding:11px 12px;background:var(--paper);font:12px/1.6 system-ui,-apple-system,"Malgun Gothic",sans-serif}.choice-button:hover{border-color:var(--moss);background:#edf0e4}.choice-number{font:11px/1.9 Georgia,serif;color:var(--moss);border:1px solid #c0c9b4;border-radius:50%;min-width:21px;height:21px;text-align:center;flex-shrink:0}.choice-button strong{font-weight:600;display:block}.choice-button small{color:var(--muted);font-size:10px;line-height:1.5;display:block;margin-top:2px}.decision-hint{font-size:10px!important;margin-top:11px!important;color:var(--moss)!important}.stats-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;padding:17px 1px 12px}.stat-heading{display:flex;justify-content:space-between;gap:4px;font:9px/1.5 system-ui,sans-serif;color:#615f51;margin-bottom:5px}.stat-value{color:var(--moss);font-weight:600}.stat-track{height:4px;background:#d9d6c5;border-radius:3px;overflow:hidden}.stat-fill{height:100%;background:var(--moss);border-radius:3px;transition:width .4s}.stat-low .stat-fill{background:var(--rust)}.focus-section{border-bottom:1px solid var(--line);padding-bottom:16px}.focus-heading{display:flex;align-items:center;justify-content:space-between}.focus-heading h2{font-size:12px}.focus-heading .text-button{font-size:10px;min-height:30px}.focus-list{display:flex;gap:6px;overflow-x:auto;padding:5px 0 4px;scrollbar-width:thin}.focus-pill{min-height:40px;flex-shrink:0;padding:8px 11px;background:transparent;border:1px solid var(--line);border-radius:24px;font:11px system-ui,-apple-system,"Malgun Gothic",sans-serif}.focus-pill[aria-pressed=true]{background:var(--moss);border-color:var(--moss);color:var(--paper-light)}.focus-description{font:10px/1.7 system-ui,sans-serif;color:var(--muted);margin-top:8px}.life-secondary{padding-top:20px}.relations-section,.companions-section,.memories-section{margin-bottom:24px}.relations{margin-top:11px;display:grid;gap:8px}.relation-row{display:flex;gap:12px;border-left:2px solid #8c9b78;padding:2px 0 2px 12px;align-items:flex-start}.relation-row strong{font:10px/1.7 system-ui,sans-serif;color:var(--moss);min-width:42px}.relation-row span{font-size:11px;line-height:1.65;color:#686357}.caption{font:10px/1.7 system-ui,sans-serif;color:var(--muted);margin-top:6px}.companions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}.companion-card{display:flex;align-items:center;gap:9px;padding:10px;border:1px solid var(--line);border-radius:7px;min-height:71px}.companion-card>svg{width:36px;height:35px;flex-shrink:0;fill:var(--moss);opacity:.83}.companion-card.ended>svg{opacity:.38}.companion-card strong{font:11px/1.6 system-ui,sans-serif;display:block}.companion-card small{font:9px/1.6 system-ui,sans-serif;color:var(--muted);display:block}.companion-card .dead-note{color:#936649}.memory-list{list-style:none;margin:12px 0 0;padding:0}.memory-list li{position:relative;padding:0 0 17px 17px;border-left:1px solid var(--line);margin-left:4px}.memory-list li:before{content:"";position:absolute;width:6px;height:6px;left:-3.5px;top:6px;border-radius:50%;background:#9f9d7b}.memory-list li:last-child{border-left-color:transparent}.memory-list li.is-important:before{background:var(--ochre)}.memory-list .memory-age{display:block;color:var(--ochre);font:9px/1.5 system-ui,sans-serif;margin-bottom:4px}.memory-list p{font-size:11px;line-height:1.75;color:#635e53}.memory-delta{display:flex;gap:7px;flex-wrap:wrap;font:9px/1.4 system-ui,sans-serif;color:var(--moss);margin-top:6px}.memory-delta .negative{color:var(--rust)}.life-utility{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:13px 0 30px;font:9px system-ui,sans-serif;color:var(--muted)}.life-utility button{font-size:10px}.is-playing{padding-bottom:96px}.playbar{position:fixed;bottom:0;left:0;right:0;z-index:20;background:rgba(244,237,221,.97);border-top:1px solid #c9c2ad;padding:11px 12px max(11px,env(safe-area-inset-bottom));backdrop-filter:blur(10px)}.playbar-inner{max-width:924px;margin:auto;display:grid;grid-template-columns:1fr 55px 1.12fr;align-items:center;gap:7px}.playbar .button{font-size:11px;padding:10px 11px;min-height:42px;gap:8px;white-space:nowrap}.speed-label select{width:100%;height:42px;border:1px solid var(--line);background:transparent;border-radius:6px;font:12px system-ui,sans-serif;padding:0 6px;color:var(--ink)}.auto-label{grid-column:1 / -1;justify-self:end;display:flex;align-items:center;gap:5px;font:9px/1.3 system-ui,sans-serif;margin-top:1px;cursor:pointer}.auto-label input{margin:0;accent-color:var(--moss);width:12px;height:12px}.time-track{position:absolute;height:2px;top:0;left:0;right:0;overflow:hidden;background:#ded8c6}.time-track span{display:block;height:100%;background:var(--moss);width:0;transition:width .15s}.ending-screen{padding-top:20px}.ending-art{height:210px;margin:0 -18px}.ending-art>svg{width:100%;height:100%;display:block}.ending-copy{margin:14px 4px 26px;text-align:center}.ending-copy h1{font-size:25px;line-height:1.5;margin-top:10px}.ending-story{font-size:13px;color:var(--muted);line-height:1.9;margin-top:15px}.ending-facts{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;margin-top:20px;font:11px/1.7 system-ui,sans-serif;color:var(--moss)}.ending-facts strong{display:block;font-size:15px;color:var(--ink);font-weight:500}.ending-copy blockquote{font-size:14px;line-height:1.9;margin:23px 0 0;padding:20px 10px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);color:var(--moss)}.ending-memories,.ending-companions{margin:0 4px 27px}.ending-actions{display:grid;gap:8px;margin:30px 4px 0}.ending-actions>.text-button{justify-self:center}.closing-note{text-align:center;font:10px/1.8 system-ui,sans-serif;color:var(--muted);padding:9px 0 30px}.info-dialog,.restart-dialog{color:var(--ink);border:1px solid var(--line);border-radius:13px;background:var(--paper-light);width:calc(100% - 24px);max-width:590px;padding:0;max-height:86dvh;box-shadow:0 15px 90px #302c2530}.info-dialog::backdrop,.restart-dialog::backdrop{background:#302b2460}.dialog-heading{position:sticky;top:0;background:var(--paper-light);padding:17px 20px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;z-index:1}.dialog-heading h2{font-size:18px}.icon-button{width:36px;height:36px;border:1px solid var(--line);border-radius:50%;background:transparent;font:23px/1 system-ui,sans-serif}.dialog-content{padding:22px 20px 28px}.dialog-content p{font-size:12px;line-height:1.8;margin-bottom:12px;color:#635e53}.model-notice{border-left:3px solid var(--moss);background:#e9eddf;padding:13px 13px 1px;margin:19px 0}.model-notice strong{font-size:13px}.model-notice p{font-size:11px;margin-top:7px}.dialog-content details{border-top:1px solid var(--line);padding:15px 0}.dialog-content summary{font-size:13px;cursor:pointer;font-weight:600;min-height:24px}.dialog-content details[open]>summary{margin-bottom:13px}.source-list{font:10px/1.7 system-ui,sans-serif}.source-item{margin-bottom:10px}.source-item a{overflow-wrap:anywhere;text-decoration-color:#b5bd9b;text-underline-offset:3px}.species-source-item{border-bottom:1px dashed var(--line);padding:8px 0;font-size:11px;line-height:1.7}.species-source-item .latin{font-size:10px}.restart-dialog{padding:25px;max-width:440px}.restart-dialog h2{font-size:19px;line-height:1.6}.restart-dialog p{font-size:12px;margin:14px 0 20px;color:var(--muted)}.dialog-actions{display:grid;gap:8px}.toast{position:fixed;z-index:80;bottom:110px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--paper-light);border-radius:8px;padding:11px 17px;font:11px/1.6 system-ui,sans-serif;max-width:90%;box-shadow:0 4px 20px #302b2430}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:-70px;left:10px;z-index:100;padding:12px;background:var(--paper-light);color:var(--moss)}.skip-link:focus{top:10px}.noscript{padding:30px;font-size:13px}.floating-wing{animation:floatWing 7s ease-in-out infinite}.water-line{animation:waterDrift 9s ease-in-out infinite}.grass-sway{transform-origin:center bottom;animation:grassSway 8s ease-in-out infinite}.animal-breathe{transform-origin:center;animation:breathe 6s ease-in-out infinite}@keyframes appear{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}@keyframes floatWing{0%,100%{transform:translate(0,0)}50%{transform:translate(6px,-7px)}}@keyframes waterDrift{0%,100%{opacity:.5;transform:translateX(0)}50%{opacity:.85;transform:translateX(9px)}}@keyframes grassSway{0%,100%{transform:skewX(0)}50%{transform:skewX(2deg)}}@keyframes breathe{0%,100%{opacity:1}50%{opacity:.9}}@media(min-width:600px){main{padding:0 28px}.site-header{padding:24px 28px}.brand{font-size:15px}.brand small{font-size:11px}.info-trigger{font-size:12px!important}.intro-screen{display:grid;grid-template-columns:1fr 1.05fr;gap:20px;padding-top:40px;align-items:center}.intro-art{height:440px;margin-left:-28px;margin-right:0;border-radius:50% 50% 3px 3px}.intro-copy{padding:0 8px}.intro-copy h1{font-size:45px}.intro-copy h1 span{font-size:21px}.intro-description{font-size:14px}.intro-description.small{font-size:12px}.intro-footnote{grid-column:1/-1;font-size:11px;margin-top:15px}.library-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.life-heading{margin-bottom:18px}.life-heading h1{font-size:28px}.life-screen{padding-top:26px}.habitat-scene{min-height:260px;aspect-ratio:1.7}.scene-topline,.scene-bottomline{font-size:11px;left:18px;right:18px}.scene-topline{top:15px}.scene-bottomline{bottom:15px}.event-panel,.birth-certificate{padding:24px}.event-panel p,.birth-certificate>p{font-size:13px}.event-panel h2,.birth-certificate h2{font-size:22px}.event-label{font-size:10px}.choice-button{font-size:13px;padding:13px 15px}.choice-button small{font-size:11px}.stats-row{padding:20px 0 16px;gap:22px}.stat-heading{font-size:11px}.focus-heading h2{font-size:14px}.focus-pill{font-size:12px;min-height:42px;padding:10px 17px}.focus-description{font-size:11px}.life-secondary{display:grid;grid-template-columns:1fr 1fr;gap:0 30px;margin-top:9px}.memories-section,.life-utility{grid-column:1/-1}.relation-row span{font-size:12px}.companion-card strong{font-size:12px}.companion-card small{font-size:10px}.memory-list p{font-size:12px}.memory-list .memory-age{font-size:10px}.playbar-inner{grid-template-columns:160px 66px 160px 1fr;gap:10px}.auto-label{grid-column:auto;justify-self:end;margin:0;font-size:11px}.auto-label input{width:14px;height:14px}.playbar .button{font-size:12px}.playbar{padding:13px 28px max(13px,env(safe-area-inset-bottom))}.is-playing{padding-bottom:80px}.ending-screen{max-width:700px;margin:auto}.ending-art{height:310px;margin:0 -28px}.ending-copy h1{font-size:33px}.ending-story{font-size:15px}.ending-copy blockquote{font-size:17px}.ending-copy{margin:17px 20px 33px}.ending-actions{grid-template-columns:1.4fr 1fr}.ending-actions>.text-button{grid-column:1/-1}.ending-actions .big{font-size:13px}.ending-facts{gap:30px;font-size:12px}.ending-facts strong{font-size:18px}.closing-note{font-size:11px}.toast{bottom:85px}}@media(min-width:850px){.life-screen{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(260px,1fr);gap:0 28px}.life-heading{grid-column:1/-1}.life-primary{grid-column:1}.life-secondary{display:block;grid-column:2;padding-top:0;margin-top:0}.life-secondary .relations-section{padding-top:8px}.life-secondary .memories-section{max-height:390px;overflow-y:auto;padding-right:5px}.life-utility{display:block}.life-utility button{float:right}.companions{gap:7px}.companion-card{padding:9px 6px;gap:6px}.companion-card>svg{width:30px}.companion-card strong{font-size:10px}.companion-card small{font-size:9px}.habitat-scene{min-height:268px}.library-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.intro-art{height:500px}.intro-copy h1{font-size:52px}.intro-copy h1 span{font-size:25px}.intro-description{font-size:15px}.intro-description.small{font-size:13px}.focus-pill{padding:10px 12px}.ending-screen{display:block}}@media(max-width:359px){main{padding:0 14px}.site-header{padding:17px 14px}.intro-copy h1{font-size:34px}.intro-art{height:165px;margin:0 -14px}.life-heading h1{font-size:21px}.event-panel,.birth-certificate{padding:17px 12px}.event-panel h2{font-size:17px}.choice-button{padding:10px 9px;font-size:11px}.focus-pill{font-size:10px;padding:8px 9px}.stats-row{gap:10px}.playbar-inner{grid-template-columns:1fr 49px 1.1fr;gap:5px}.playbar .button{padding:10px 7px;font-size:10px}.info-trigger{font-size:10px!important}.brand{font-size:12px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.text-button{min-height:44px}.focus-heading .text-button{min-height:44px}.focus-pill{min-height:44px}.scene-topline b{display:inline-block;font-weight:500;font-size:9px;border:1px solid #64705280;border-radius:3px;padding:1px 5px;margin-right:6px;background:#f4eddd55}.birth-human{color:var(--moss)!important;font-size:11px!important;margin-top:9px!important}.playbar-inner{grid-template-columns:1fr 47px 1.1fr 66px}.auto-label{grid-column:auto;min-height:44px;font-size:10px;justify-self:stretch;justify-content:center;margin:0}.is-playing{padding-bottom:84px}@media(min-width:600px){.playbar-inner{grid-template-columns:160px 66px 160px 1fr}.auto-label{justify-self:end;font-size:11px}.scene-topline b{font-size:10px}}@media(max-width:359px){.playbar-inner{grid-template-columns:1fr 44px 1.1fr 62px;gap:5px}.auto-label{font-size:9px}}
.decision-assist{display:flex;gap:12px;align-items:center;justify-content:space-between}.decision-assist .decision-hint{margin-top:10px!important}.decision-assist .text-button{font:10px system-ui,sans-serif;color:var(--moss);flex-shrink:0;margin-top:8px}.scene-topline>span:first-child{max-width:78%;line-height:1.65}.scene-topline b{white-space:nowrap}
.status-panel{position:sticky;top:0;z-index:15;background:#142527;color:#f0f4e8;padding:12px 14px 15px;margin:0 0 14px;border:1px solid #43534a;border-radius:9px;box-shadow:0 4px 14px #17252322}.status-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.status-title h2{margin:0;font:700 14px/1.4 system-ui,sans-serif}.status-title>span{font:11px/1.4 system-ui,sans-serif;color:#c5d0c1}.status-panel .stats-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;padding:11px 0 0;border:0}.status-panel .stat-heading{font:13px/1.5 system-ui,sans-serif;color:#f0f4e8}.stat-number{margin:3px 0 8px;white-space:nowrap}.status-panel .stat-value{font:750 27px/1 system-ui,sans-serif;font-variant-numeric:tabular-nums;color:inherit}.stat-max{font:10px system-ui,sans-serif;color:#9eafa4}.status-panel .stat-track{height:10px;border-radius:2px;background:#344442;overflow:hidden}.status-panel .stat-fill{height:100%;border-radius:1px;background:var(--stat-color);transition:width .25s ease}.stat-energy{--stat-color:#d8b262}.stat-health{--stat-color:#75ba97}.stat-skill{--stat-color:#7faecd}.stat-safety{--stat-color:#c192b8}.stat-change{font:700 11px system-ui,sans-serif}.stat-change.positive{color:#a6e4b4}.stat-change.negative{color:#ffb1a2}.stat-change.neutral{color:#84978c}.stat-low .stat-value{color:#ffb1a2!important}.status-panel .stat-low .stat-track{outline:1px solid #ec9180}.birth-human{font:13px/1.8 system-ui,sans-serif!important;color:#304f40!important;background:#e5e9d9;border-left:3px solid #61765a;padding:10px 12px}.lifespan-info{margin:13px 0;padding:12px;border:1px solid #c6cbbb;background:#eef0e4;border-radius:5px;font:13px/1.7 system-ui,sans-serif}.lifespan-info strong{display:block;font-size:14px;margin-bottom:4px}.lifespan-info small{display:block;color:#596254}.event-panel h2{font-size:22px;line-height:1.5}.event-panel p{font-size:14px;line-height:1.85}.relation-row span,.companions-section .caption{font-size:13px;line-height:1.75}.relation-row strong{min-width:74px}.companions-section h2{font-size:17px;line-height:1.5}.scene-topline,.scene-bottomline{color:#f1f4eb;text-shadow:0 1px 3px #132a25}.scene-topline b{background:#142527c9;border-color:#9bada180}.scene-bottomline{background:#132a25aa;padding:5px 7px;border-radius:3px}.pixel-scene{position:absolute;inset:0;overflow:hidden;background:#253d3a}.pixel-scene>svg{width:100%;height:100%;image-rendering:pixelated}.pixel-icon{width:70px;height:52px;object-fit:contain;image-rendering:pixelated}.pixel-scene [data-object]{image-rendering:pixelated}@media(max-width:359px){.status-panel{padding:10px}.status-panel .stats-row{gap:9px}.status-panel .stat-value{font-size:24px}.stat-max{display:none}.status-title>span{font-size:10px}.event-panel h2{font-size:20px}}@media(min-width:850px){.status-panel{top:8px}.life-primary{min-width:0}.status-panel .stat-value{font-size:30px}}
.playbar .button,.speed-label select{min-height:44px;height:44px}.icon-button{width:44px;height:44px}.brand{min-height:44px}

/* User-selected cover B and supplied lime globe; keep original bitmap bytes. */
#introScreen #introArt{height:auto;width:100%;aspect-ratio:16/9;margin:0 auto 16px;overflow:hidden;background:#171719}
#introScreen #introArt .earth-cover-image{display:block;position:static;width:100%;height:100%;object-fit:cover;image-rendering:pixelated}
.site-header .brand>img{display:block;width:34px;height:34px;flex:none;image-rendering:pixelated}
#deathScreen{width:min(100%,1060px);min-height:calc(100svh - 110px);margin:0 auto;padding:36px 0 52px;display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1fr);gap:44px;align-items:center}
#deathScreen[hidden]{display:none}
#deathScreen .death-art{width:100%;aspect-ratio:1;max-width:430px;overflow:hidden;border:1px solid #36363a;border-radius:18px;background:#202023}
#deathScreen .death-art>svg{display:block;width:100%;height:100%}
#deathScreen h1{font-size:clamp(30px,4vw,52px);line-height:1.2;letter-spacing:-.045em;margin:12px 0 18px;color:#f4f4ec}
#deathScreen .death-story{font-size:17px;line-height:1.8;color:#d0d0c9;overflow-wrap:anywhere}
#deathScreen .death-facts{margin:24px 0;display:grid;grid-template-columns:1fr 1fr;gap:14px}
#deathScreen .death-facts>div{min-width:0;padding:14px 0;border-top:1px solid #3d3d41}
#deathScreen dt{color:#a8a8a5;font-size:12px;margin-bottom:8px}
#deathScreen dd{margin:0;color:#f4f4ec;font-size:17px;line-height:1.55;font-weight:700;overflow-wrap:anywhere}
#deathScreen .death-record-note{font-size:12px;line-height:1.7;color:#a8a8a5}
#deathScreen .death-actions{display:grid;gap:12px;margin-top:24px}
#deathScreen #unfoldLife{min-height:56px;background:#c4ff00;color:#171719;white-space:normal}
#deathScreen #deathRestart{justify-self:center;color:#bdbdb6}
#deathScreen :focus-visible{outline:2px solid #c4ff00;outline-offset:5px}
@media(max-width:759px){#deathScreen{display:flex;flex-direction:column;gap:24px;min-height:0;padding:20px 0 36px}#deathScreen .death-art{width:min(100%,280px)}#deathScreen .death-copy{width:100%;min-width:0}#deathScreen h1{font-size:32px}#deathScreen .death-story{font-size:15px}#deathScreen .death-facts{gap:12px}#deathScreen dd{font-size:15px}}

#introScreen{padding-bottom:36px}
#homeRandomDock{position:fixed;z-index:80;left:50%;bottom:calc(14px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);width:min(420px,calc(100% - 24px));padding:6px;background:rgba(23,23,25,.94);border:1px solid #3c3c40;border-radius:16px;box-shadow:0 8px 32px rgba(0,0,0,.45)}
#homeRandomDock[hidden],body:has(dialog[open]) #homeRandomDock{display:none}
#homeRandomDock #startRandomFixed{display:flex;flex-direction:column;align-items:center;gap:4px;width:100%;min-height:60px;padding:12px;background:#c4ff00;color:#171719;border-radius:11px;font-size:16px;white-space:normal}
#homeRandomDock small{font-size:11px;font-weight:500;opacity:.72}
#libraryDetail .library-back-button{position:sticky;top:12px;z-index:2;display:flex;width:fit-content;max-width:100%;min-height:48px;margin:0 0 28px;padding:12px 16px;background:#c4ff00;color:#171719;border:1px solid #c4ff00;font-size:15px;font-weight:700;line-height:1.5;white-space:normal;box-shadow:0 4px 16px rgba(0,0,0,.24)}
@media(max-width:359px){#homeRandomDock #startRandomFixed{font-size:15px}#libraryDetail .library-back-button{width:100%;justify-content:center}}

#introLivingCounters .intro-counter-number-row{display:flex;align-items:baseline;gap:6px;flex-wrap:nowrap}
#introLivingCounters .intro-counter-number{font-size:clamp(28px,3.3vw,44px);letter-spacing:-.045em;white-space:nowrap;font-variant-numeric:tabular-nums}
#introLivingCounters .intro-counter-unit{font-size:13px;color:#a8a8a5}
#introLivingCounters .intro-counter-label{font-size:12px;line-height:1.6}
#introLivingCounters .intro-counter-note{line-height:1.8}
#introLivingCounters .intro-counter-sources{font-size:12px;line-height:1.8;color:#bdbdb6;margin-top:10px}
#introLivingCounters .intro-counter-sources summary{cursor:pointer;color:#d4d4cb;padding:6px 0}
#introLivingCounters .intro-counter-sources p{margin:10px 0;overflow-wrap:anywhere}
#introLivingCounters .intro-counter-source-links{display:flex;flex-wrap:wrap;gap:8px 16px}
#introLivingCounters .intro-counter-source-links a{color:#c4ff00;text-decoration:underline;text-underline-offset:3px}
@media(max-width:359px){#introLivingCounters .intro-counter-grid{gap:12px}#introLivingCounters .intro-counter-number{font-size:27px}#introLivingCounters .intro-counter-unit{font-size:11px}#introLivingCounters .intro-counter-label{font-size:11px}}

#introScreen .intro-presence{display:flex;align-items:baseline;justify-content:center;gap:7px;margin:20px 0 0;color:#99999f;font-size:11px;line-height:1.8}
#introScreen .intro-presence strong{font-size:12px;font-variant-numeric:tabular-nums;color:#c7c7c1}

.site-header .language-choice{display:flex;gap:2px;flex:none;align-items:center;border:1px solid #424247;border-radius:8px;padding:3px}
.site-header .language-choice .text-button{min-height:36px;padding:6px 8px;font-size:11px;white-space:nowrap;text-decoration:none;color:#b8b8b3;border-radius:5px}
.site-header .language-choice [aria-pressed=true]{background:#c4ff00;color:#171719;font-weight:700}
.site-header .brand{min-width:0}
.site-footer{display:flex;justify-content:center;margin:20px auto 0;padding:16px 12px 28px}
.site-footer #openInfo{font-size:11px;color:#99999f;min-height:32px;padding:6px 10px}
#introLivingCounters .intro-counter-secondary-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:18px 0 0;padding:14px 0;border-top:1px solid #353539}
#introLivingCounters .intro-counter-secondary-item{display:flex;flex-direction:column;gap:6px;min-width:0}
#introLivingCounters .intro-counter-secondary-item strong{font-size:18px;line-height:1.4;font-variant-numeric:tabular-nums;color:#d6d6cf}
#introLivingCounters .intro-counter-secondary-item span{font-size:10px;line-height:1.7;color:#a3a3a7;overflow-wrap:anywhere}
@media(max-width:759px){.site-header .brand>span{max-width:calc(100vw - 176px)}.site-header .language-choice .text-button{font-size:10px;padding:6px}.site-header .language-choice{padding:2px}.site-header{gap:8px}}

body[data-screen=intro] .site-footer{padding-bottom:112px}

#homeRandomDock .home-birth-categories{display:flex;align-items:center;gap:3px;overflow-x:auto;overscroll-behavior-x:contain;padding:2px 0 6px;scrollbar-width:thin;scrollbar-color:#4d4d52 transparent;touch-action:pan-x}
#homeRandomDock .home-birth-categories button{flex:none;border:0;border-radius:7px;background:transparent;color:#c6c6c0;font:600 11px/1.4 system-ui,sans-serif;min-height:34px;padding:6px 9px;white-space:nowrap;cursor:pointer}
#homeRandomDock .home-birth-categories button[aria-pressed=true]{background:#363a25;color:#c4ff00}
#homeRandomDock .home-birth-categories button:focus-visible{outline:2px solid #c4ff00;outline-offset:-2px}
#homeRandomDock #startRandomFixed{min-height:56px}
body[data-screen=intro] .site-footer{padding-bottom:150px}
@media(max-width:359px){#homeRandomDock .home-birth-categories button{padding:6px 8px;font-size:10px}#homeRandomDock #startRandomFixed{font-size:14px}}
/* Compact closed category picker; the bar stays shorter than one hundred pixels. */
#homeRandomDock{display:flex;align-items:center;gap:6px;max-width:440px;padding:6px;border-radius:13px}
#homeRandomDock .home-birth-categories{display:block;flex:0 0 72px;padding:0;overflow:visible}
#homeRandomDock .home-birth-categories select{height:48px;max-width:100%;border:1px solid #45454a;border-radius:8px;background:#242427;color:#e7e7df;padding:0 8px;font:600 12px/1.3 system-ui,sans-serif;cursor:pointer}
#homeRandomDock .home-birth-categories select{width:72px}
#homeRandomDock #startRandomFixed{flex:1;min-width:0;min-height:48px;flex-direction:row;padding:10px 6px;font-size:14px;white-space:nowrap;border-radius:8px}
#homeRandomDock #homeRandomLabel{overflow:hidden;text-overflow:ellipsis}
body[data-screen=intro] .site-footer{padding-bottom:90px}
.site-header .language-choice[hidden]{display:none}
#lifeScreen #identityColumn{display:flex;flex-direction:column;gap:14px}
#lifeScreen .identity-card{padding:18px;min-width:0;overflow:hidden}
#lifeScreen .identity-card .habitat-scene{position:relative;margin:18px -18px -18px;border:0;border-top:1px solid #39393d;border-radius:0;aspect-ratio:16/10;min-height:0;padding:0;overflow:hidden;background:#242428}
#lifeScreen .identity-card #lifeArt{position:absolute;inset:0 0 61px}
#lifeScreen .identity-card #lifeArt>.pixel-scene{position:absolute;inset:0}
#lifeScreen .identity-card #lifeArt>svg{display:block;width:100%;height:100%}
#lifeScreen .identity-card .scene-topline{top:8px;left:10px;right:10px;font-size:11px;gap:8px}
#lifeScreen .identity-card .scene-topline b{white-space:normal;line-height:1.5}
#lifeScreen .identity-card .scene-topline #habitatLabel{display:none}
#lifeScreen .identity-card .scene-bottomline{bottom:0;left:0;right:0;min-height:61px;height:auto;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;margin:0;padding:9px 12px;border-radius:0;background:#202023;color:#e9e9e1;text-shadow:none;line-height:1.5}
#lifeScreen .identity-card #sceneCaption{max-width:100%;white-space:normal;overflow:visible;text-overflow:clip;font-size:12px}
#lifeScreen .identity-card #lifeDate{display:block;font-size:10px;color:#a6a6a4}
#lifeScreen .current-companion{padding:12px;border-radius:8px;background:#242427}
#lifeScreen .current-companion small{font-size:12px;line-height:1.65;margin-top:5px;white-space:normal}
#lifeScreen .life-primary .choice-impact{display:block;color:#c4ff00;font-size:11px;margin-top:8px}
#endingScreen #endingTitle{font-size:clamp(32px,4.6vw,50px);font-weight:800;color:#f4f4ec}
#endingScreen .ending-facts{gap:20px;margin-top:24px}
#endingScreen .ending-facts>div:first-child strong,#endingScreen .ending-facts>div:nth-child(2) strong{font-size:24px;line-height:1.45;color:#f4f4ec}
#endingScreen .ending-facts>div:nth-child(n+3){font-size:10px;opacity:.7}
#endingScreen .ending-facts>div:nth-child(n+3) strong{font-size:14px}
#endingScreen #endingStory{font-size:18px;line-height:1.8;color:#d7d7d0}
#deathScreen .death-facts>div:nth-child(4){grid-column:1/-1}
#deathScreen .death-facts>div:nth-child(4) dd{font-size:13px;font-weight:400;color:#aaaab0}
@media(min-width:760px){#lifeScreen,#lifeScreen.is-birth{display:grid;grid-template-columns:minmax(300px,1fr) minmax(0,1.15fr);gap:24px;max-width:none;padding-top:24px}#lifeScreen #identityColumn{grid-column:1;grid-row:1/3}#lifeScreen .life-primary{grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:18px}#lifeScreen .life-secondary{grid-column:2;grid-row:2;display:flex;flex-direction:column;gap:18px;margin:0;padding:0}#lifeScreen .identity-card .habitat-scene{aspect-ratio:4/3}#lifeScreen .status-panel{position:static;margin:0}}
@media(max-width:759px){#lifeScreen,#lifeScreen.is-birth{display:flex;flex-direction:column;gap:18px;max-width:none}#lifeScreen .identity-card .life-heading{margin-bottom:10px}#lifeScreen .identity-card .habitat-scene{aspect-ratio:16/11}#lifeScreen .identity-facts{display:none}#lifeScreen .mobile-origin .identity-facts{display:block}#lifeScreen .mobile-origin{display:block}#lifeScreen .status-panel{position:static;margin:0}#lifeScreen .life-secondary{display:flex;flex-direction:column;gap:18px;padding:0;margin:0}#lifeScreen .life-primary{display:flex;flex-direction:column;gap:16px}#lifeScreen .event-panel,#lifeScreen .birth-certificate{margin:0}}
@media(max-width:359px){#homeRandomDock{gap:4px;width:calc(100% - 16px)}#homeRandomDock .home-birth-categories{flex-basis:62px}#homeRandomDock .home-birth-categories select{width:62px;padding:0 5px;font-size:11px}#homeRandomDock #startRandomFixed{font-size:12px;padding:10px 3px}#lifeScreen .identity-card{padding:14px}#lifeScreen .identity-card .habitat-scene{margin:14px -14px -14px}}

#lifeScreen .identity-card #lifeArt{position:absolute;top:0;left:0;right:0;bottom:61px;width:100%;height:calc(100% - 61px);aspect-ratio:auto}
#lifeScreen .identity-card .scene-bottomline{position:absolute;top:auto;left:0;right:0;bottom:0;height:61px}
#lifeScreen .identity-card .habitat-scene{box-sizing:border-box}
#lifeScreen .companions{display:flex;flex-direction:column;gap:8px}

#lifeScreen .identity-card .habitat-scene{aspect-ratio:auto;height:auto;min-height:0;display:block}
#lifeScreen .identity-card #lifeArt{position:relative;inset:auto;width:100%;height:auto;aspect-ratio:16/9}
#lifeScreen .identity-card .scene-bottomline{position:relative;inset:auto;width:100%;height:auto;min-height:61px}

#lifeScreen #choiceImpactNote{margin-top:8px;font-size:12px;line-height:1.65;color:#c4ff00}
.longevity-line{font-size:12px;line-height:1.65;color:#b8b8b2;margin-top:7px}
.site-header .language-choice{border:0;border-radius:0;padding:0;background:none;gap:0}
#languageKo,#languageEn{position:relative;isolation:isolate;border:0!important;background:none!important;color:#919196!important;font-size:12px}
#languageKo::before,#languageEn::before{content:"";position:absolute;z-index:-1;width:28px;height:28px;left:8px;top:8px;border-radius:50%;border:1px solid #515157;box-sizing:border-box}
#languageEn{margin-left:-8px}
#languageKo[aria-pressed="true"],#languageEn[aria-pressed="true"]{color:#27272b!important}
#languageKo[aria-pressed="true"]::before,#languageEn[aria-pressed="true"]::before{background:#d1d1d1;border-color:#d1d1d1}
#lifeScreen .identity-details{display:block;margin:5px 0 12px}#lifeScreen .identity-details summary{min-height:36px;padding:8px 0;font-size:11px;color:#a8a8ad;cursor:pointer}#lifeScreen .identity-details .identity-facts{display:block}#lifeScreen .identity-details .longevity-line{margin:8px 0;font-size:11px}
#lifeScreen #focusList{display:flex;flex-wrap:nowrap;gap:6px}#lifeScreen #focusList .focus-pill{flex:1;min-width:0;min-height:44px;padding:9px 4px}#lifeScreen #focusList strong{font-size:11px;line-height:1.4}#lifeScreen #focusList small{display:none}
.place-region,.place-micro{display:block}.place-micro{font-size:.9em;opacity:.8;margin-top:3px}
.choice-dialog{width:calc(100% - 20px);max-width:600px;max-height:90dvh;margin:auto;padding:0;overflow-y:auto;overscroll-behavior:contain;border:1px solid #53535b;border-radius:12px;background:#242428;color:#f1f1eb;box-shadow:0 15px 90px #0008}.choice-dialog::backdrop{background:#000a}.choice-dialog .event-panel{padding:0 16px 22px;border:0;border-radius:0;background:transparent}.choice-modal-top{position:sticky;top:0;display:flex;justify-content:flex-end;margin:0 -5px;padding:8px 0;background:#242428;z-index:2}.choice-modal-top .icon-button{width:44px;height:44px;color:#ddd;border-color:#53535b}
.choice-dialog h2{font-size:22px;line-height:1.45}.choice-dialog .event-panel p{font-size:13px;color:#babac0;line-height:1.7}.choice-dialog .event-label{color:#aaaab0}.choice-dialog #choiceImpactNote{color:#c4ff00;margin-top:8px;font-size:12px}.choice-auto-label{display:flex;align-items:center;gap:7px;font:11px system-ui,sans-serif;color:#aaa;margin-top:14px;min-height:36px}.choice-auto-label input{accent-color:#c4ff00}
#choiceDialog .choice-list{display:grid;gap:10px;margin-top:18px}#choiceDialog .choice-button{display:grid;grid-template-columns:36px minmax(0,1fr);gap:12px;min-height:72px;padding:14px;border:1px solid #57575d;border-radius:10px;background:#2a2a2e;color:#f4f4ec;text-align:left}#choiceDialog .choice-number{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:0;border-radius:8px;background:#c4ff00;color:#171719;font:800 21px/1 system-ui,sans-serif}#choiceDialog .choice-button strong{font-size:15px;line-height:1.5}#choiceDialog .choice-button small{font-size:12px;line-height:1.6;color:#bdbdc0}#choiceDialog .choice-button:focus-visible{outline:3px solid #c4ff00;outline-offset:3px;background:#34362b}
@media(max-width:759px){#lifeScreen .focus-description{display:none}}
@media(max-width:359px){#choiceDialog .choice-button{grid-template-columns:32px minmax(0,1fr);gap:10px;padding:12px}#choiceDialog .choice-number{width:32px;height:32px;font-size:20px}#choiceDialog .choice-button strong{font-size:14px}#choiceDialog h2{font-size:20px}.library-category select{width:86px!important}}
#introSpeciesCount,#introExtinctCount{color:#c4ff00}
#languageKo,#languageEn{display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;border:1px solid #424248;border-radius:50%;padding:0;background:transparent;font:600 13px system-ui,sans-serif;text-decoration:none;color:#b5b5b5}
#languageKo[aria-pressed="true"],#languageEn[aria-pressed="true"]{border-color:#c4ff00;color:#c4ff00;background:#2a3020}.language-choice{gap:5px;flex-shrink:0}
.library-browse-tools .library-search input{height:42px;padding:9px;font-size:12px}.library-category select{height:42px;width:75px;padding:0 6px;background:#242428;color:#e8e8e2;border:1px solid #45454c;border-radius:6px;font:12px system-ui,sans-serif}
.library-browse-tools .library-sort select{width:86px;padding:0 6px;font-size:12px}
.library-pagination{display:flex;justify-content:center;align-items:center;gap:7px;margin:20px 0 35px}.library-page{min-width:40px;min-height:42px;padding:8px 11px;border:1px solid #45454c;border-radius:6px;background:#242428;color:#ddd;font:12px system-ui,sans-serif}.library-page[aria-current="page"]{background:#c4ff00;border-color:#c4ff00;color:#171719;font-weight:700}
.species-dialog{width:calc(100% - 20px);max-width:920px;max-height:90dvh;margin:auto;padding:0;border:1px solid #4b4b52;border-radius:12px;background:#242428;color:#f1f1eb;overflow-y:auto;overscroll-behavior:contain;box-shadow:0 15px 90px #0008}.species-dialog::backdrop{background:#000a}
.species-dialog-close{position:sticky;top:0;display:flex;justify-content:flex-end;background:#242428;padding:8px 10px;z-index:3}.species-dialog-close .icon-button{width:44px;height:44px;color:#ddd;border-color:#53535a}.species-dialog .library-detail{padding:0 16px 24px;margin:0}.species-dialog .species-detail-heading{margin-top:0}.species-dialog .species-metrics{margin-top:18px}
@media(max-width:359px){.library-browse-tools{gap:6px}.library-category select{width:69px;font-size:11px}.library-browse-tools .library-sort select{width:73px;font-size:11px}.library-browse-tools .library-search input{font-size:11px;padding:8px}}
.library-browse-tools{display:flex;align-items:flex-end;gap:9px;margin:12px 0 20px}.library-browse-tools .library-search{flex:1;min-width:0;margin:0}.library-browse-tools input{width:100%}.library-sort select{height:42px;max-width:120px;border:1px solid #45454c;border-radius:6px;padding:0 8px;background:#242428;color:#e8e8e2;font:12px system-ui,sans-serif}
.intro-activity{display:flex;justify-content:center;flex-wrap:wrap;gap:5px 16px;margin:12px 0 0;font:10px/1.65 system-ui,sans-serif;color:#aaaab0}
#introScreen .intro-activity .intro-presence,#introScreen .intro-activity .intro-total-births{display:inline-flex;align-items:baseline;justify-content:center;gap:5px;margin:0;font:inherit;line-height:1.65}
#introScreen .intro-activity strong{font-size:inherit;font-weight:600;color:#d5d5ce;line-height:inherit;font-variant-numeric:tabular-nums}
.home-random-dock{grid-template-columns:minmax(0,1fr)}
.home-random-dock #startRandomFixed{width:100%}
.preview-annual-facts{width:min(100%,400px);margin:12px auto;font:11px/1.6 system-ui,sans-serif;text-align:left}
.preview-annual-facts .annual-fact{display:grid;grid-template-columns:76px minmax(0,1fr);gap:10px;padding:6px 0;border-top:1px solid #36363b}
.preview-annual-facts dt{color:#aaaab0}.preview-annual-facts dd{margin:0;min-width:0}.preview-annual-facts strong{display:block;color:#e5e5de;font-weight:500;overflow-wrap:anywhere}.preview-annual-facts small{display:block;color:#929298;font-size:10px;margin-top:2px}

/* Numbered action buttons keep pending choices distinct from observations. */
#lifeScreen .choice-list{display:grid;gap:10px;margin-top:18px}
#lifeScreen .choice-button{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:start;gap:13px;min-height:72px;padding:15px;border:1px solid #57575d;border-radius:10px;background:#2a2a2e;color:#f4f4ec;text-align:left;cursor:pointer}
#lifeScreen .choice-button .choice-number{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:8px;background:#c4ff00;color:#171719;font:800 21px/1 system-ui,sans-serif;opacity:1}
#lifeScreen .choice-button strong{display:block;font-size:15px;line-height:1.55}
#lifeScreen .choice-button small{display:block;font-size:12px;line-height:1.65;color:#bdbdc0;margin-top:4px}
#lifeScreen .choice-button:hover{border-color:#c4ff00;background:#34362b}
#lifeScreen .choice-button:focus-visible{outline:3px solid #c4ff00;outline-offset:3px;background:#34362b}
#lifeScreen .choice-button:active{border-color:#c4ff00;background:#42482d}
#lifeScreen #eventAge[hidden],#lifeScreen #decisionHint[hidden]{display:none}
@media(max-width:359px){#lifeScreen .choice-button{grid-template-columns:32px minmax(0,1fr);gap:10px;padding:12px}#lifeScreen .choice-button .choice-number{width:32px;height:32px;font-size:20px}#lifeScreen .choice-button strong{font-size:14px}#lifeScreen .choice-button small{font-size:11px}}

/* The current life follows one reading order at every viewport. */
#lifeScreen,#lifeScreen.is-birth{display:flex;flex-direction:column;max-width:900px;margin:auto;gap:18px}
#lifeScreen #identityColumn,#lifeScreen .life-primary,#lifeScreen .life-secondary{display:flex;flex-direction:column;gap:18px;grid-column:auto;grid-row:auto;min-width:0;margin:0;padding:0}
#lifeScreen .status-panel{position:static;margin:0;padding:11px 12px;border-radius:9px;background:#242427;border-color:#414148;box-shadow:none}
#lifeScreen .status-focus-row{display:flex;align-items:center;gap:12px}
#lifeScreen #statsRow{flex:1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:0;margin:0}
#lifeScreen .stat-heading{font-size:11px;line-height:1.4;color:#b7b7b9;gap:5px}
#lifeScreen .stat-number{margin:3px 0 5px}#lifeScreen .stat-value{font-size:21px;color:#eee}#lifeScreen .stat-max{display:none}#lifeScreen .stat-change{font-size:9px}#lifeScreen .stat-track{height:4px}
#lifeScreen .focus-toggle{display:grid;grid-template-columns:auto auto;gap:0 5px;min-height:42px;max-width:112px;flex:none;align-items:center;border:1px solid #718336;border-radius:8px;background:#2b321e;color:#d4e99a;padding:6px 9px;text-align:left;font:11px system-ui,sans-serif}
#lifeScreen .focus-toggle small{grid-column:1/-1;font-size:9px;color:#a8b68a;margin-bottom:2px}#lifeScreen .focus-toggle strong{font-weight:600;font-size:11px;white-space:nowrap}
#lifeScreen .focus-panel{margin-top:12px;padding-top:11px;border-top:1px solid #414148}#lifeScreen .focus-description{display:none}
#lifeScreen #focusList .focus-pill{padding:8px 3px;min-height:42px;background:#2b2b30;border-color:#494950}#lifeScreen #focusList .focus-pill[aria-pressed="true"]{color:#171719;background:#c4ff00;border-color:#c4ff00}
#lifeScreen .companion-illustration{display:block;width:48px;height:48px;flex:none;object-fit:contain;image-rendering:pixelated;overflow:hidden}
#lifeScreen .current-companion{display:flex;align-items:center;gap:12px}#lifeScreen .current-companion>div{min-width:0}
#lifeScreen .memory-list .new-memory{animation:memory-arrival 1.2s ease-out 1}
@keyframes memory-arrival{0%{background:#c4ff002b;box-shadow:inset 3px 0 #c4ff00}100%{background:transparent;box-shadow:inset 3px 0 transparent}}
@media(max-width:359px){#lifeScreen .status-focus-row{gap:8px}#lifeScreen #statsRow{gap:8px}#lifeScreen .stat-heading{font-size:9px}#lifeScreen .stat-change{display:none}#lifeScreen .stat-value{font-size:18px}#lifeScreen .focus-toggle{padding:5px 7px}#lifeScreen .focus-toggle strong{font-size:10px}#lifeScreen #focusList strong{font-size:10px}}
@media(prefers-reduced-motion:reduce){#lifeScreen .memory-list .new-memory{animation:none}}

#lifeScreen #focusList small{display:block;margin-top:3px;font-size:9px;line-height:1.4;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#aaaab0}#lifeScreen #focusList .focus-pill[aria-pressed="true"] small{color:#39411e}

#recordsDetail .record-main-age{font-size:24px;font-weight:700;margin:9px 0;color:#f0f0e9}#recordsDetail .record-main-cause{font-size:21px;font-weight:650;line-height:1.5;color:#e8e8df;margin:9px 0}#recordsDetail .record-main-story{font-size:16px;line-height:1.75;color:#cecec6;margin:14px 0 20px}

#lifeScreen .survival-section{min-width:0}#lifeScreen .survival-section svg{display:block;width:100%;max-width:100%;height:auto}

#lifeScreen,#lifeScreen.is-birth{align-items:stretch}#lifeScreen #identityColumn,#lifeScreen .life-primary,#lifeScreen .life-secondary{width:100%;align-items:stretch}
#lifeScreen #statsRow>.stat{display:flex;flex-direction:column;align-items:stretch;gap:0;min-width:0}#lifeScreen .stat-heading{display:flex;justify-content:space-between;min-width:0}#lifeScreen .stat-number{text-align:left}#lifeScreen .stat-change{position:static;background:none;line-height:1.4}#lifeScreen .stat-track{width:100%}
#lifeScreen .survival-section svg{max-width:360px}

.feedback-dialog{width:calc(100% - 24px);max-width:540px;max-height:calc(100dvh - 32px);overflow:auto;padding:20px;border:1px solid #505055;border-radius:12px;background:#242427;color:#e8e8e8}.feedback-dialog::backdrop{background:#000a}.feedback-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.feedback-heading h2{font:650 20px/1.4 system-ui,sans-serif}.feedback-heading button{border:0;background:none;color:#ddd;min-width:44px;min-height:44px;font:24px system-ui,sans-serif}.feedback-note{font:11px/1.7 system-ui,sans-serif;color:#aaaab0;margin:10px 0}.feedback-dialog form>label{display:block;margin:14px 0 6px;font:12px/1.5 system-ui,sans-serif}.feedback-dialog select,.feedback-dialog input:not([type=checkbox]),.feedback-dialog textarea{display:block;width:100%;min-width:0;border:1px solid #55555b;border-radius:6px;background:#171719;color:#eee;padding:10px;font:13px/1.5 system-ui,sans-serif}.feedback-dialog textarea{resize:vertical;min-height:115px;max-height:300px}.feedback-dialog .feedback-diagnostics{display:flex;gap:8px;align-items:start}.feedback-diagnostics input{margin:3px 0}.feedback-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.feedback-actions .button{min-height:44px;font-size:12px}.feedback-dialog #feedbackStatus{min-height:1.5em;margin:12px 0;font:12px/1.7 system-ui,sans-serif;color:#ddd}.feedback-receipts{border-top:1px solid #45454b;padding-top:16px;margin-top:18px}.feedback-receipts h3{font:600 14px/1.5 system-ui,sans-serif}.feedback-receipts ul{list-style:none;padding:0;margin:8px 0}.feedback-receipts li{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;border-bottom:1px solid #39393f;padding:10px 0;font:11px/1.6 system-ui,sans-serif}.feedback-receipts code{width:100%;overflow-wrap:anywhere;font-size:11px;color:#ddd}.feedback-receipts small{overflow-wrap:anywhere}.feedback-dialog #feedbackChallenge{margin-top:10px;max-width:100%;overflow:hidden}
@media(max-width:359px){.feedback-dialog{padding:14px}.feedback-heading h2{font-size:18px}}
.social-share-actions{display:flex;flex-wrap:wrap;gap:6px;margin:0 16px 16px}.social-share-actions .button{font-size:11px;padding:8px 10px;min-height:40px}.social-share-actions input{width:100%;min-width:0;padding:9px;background:#171719;color:#ddd;border:1px solid #555;border-radius:6px;font:12px system-ui,sans-serif}

.social-publish-dialog{box-sizing:border-box;width:min(680px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:22px;background:#252528;color:#eee;border:1px solid #555;border-radius:14px;overflow:auto}.social-publish-dialog::backdrop{background:#000b}.social-publish-dialog p{line-height:1.6;overflow-wrap:anywhere}.social-publish-dialog h3{font-size:32px;margin:16px 0}.social-publish-dialog .share-fact-ageLabel{font-size:25px;font-weight:800;color:var(--accent,#c4ff00);margin:10px 0}.social-publish-dialog .share-fact-cause{font-size:22px;font-weight:700;margin:10px 0}.social-publish-dialog .share-fact-story{font-size:17px;margin:14px 0}.social-publish-dialog .share-fact-sex{color:#999;font-size:12px}.social-publish-consent{display:flex;gap:9px;align-items:flex-start;margin:20px 0;font-size:13px;line-height:1.6}.social-publish-consent input{flex:none;margin-top:4px}.social-publish-dialog>p{font-size:12px;color:#b6b6bb}.social-publish-dialog .feedback-actions{flex-wrap:wrap}.social-publish-dialog .button{min-height:44px}

#lifeScreen .life-heading .latin{display:block!important;font:italic 11px/1.4 system-ui,sans-serif;color:#99999f;overflow-wrap:anywhere;margin:5px 0 0}
.analytics-dialog{max-width:520px;width:calc(100% - 32px);box-sizing:border-box;border:1px solid #45454a;border-radius:14px;background:#202023;color:#e9e9e5;padding:22px}.analytics-dialog p{font:14px/1.7 system-ui,sans-serif;color:#bcbcc3}.analytics-dialog a{color:inherit}

.home-random-dock{grid-template-columns:minmax(0,1fr)}.home-random-dock .button{width:100%}
.roulette-about{width:min(100%,640px);margin:28px auto;text-align:left;font-size:14px;line-height:1.65}
.roulette-about h3{font-size:15px;margin:0 0 12px;color:var(--ink)}
.roulette-about>p{margin:0 0 18px;color:var(--muted);font-size:14px;line-height:1.8}
.roulette-about dl{margin:0;border-top:1px solid var(--line)}
.roulette-about dl>div{display:grid;grid-template-columns:88px minmax(0,1fr);gap:14px;padding:11px 0;border-bottom:1px solid var(--line)}
.roulette-about dt{color:var(--muted);font-size:12px}.roulette-about dd{margin:0;color:var(--ink);font-size:13px}
.roulette-about details{margin-top:14px;color:var(--muted);font-size:12px}.roulette-about summary{cursor:pointer;padding:5px 0}.roulette-about details p{font-size:13px;line-height:1.8;margin:10px 0}
.roulette-sources ul{padding-left:18px;overflow-wrap:anywhere}.roulette-sources a{color:var(--muted)}
.social-share-actions{display:block;margin:0;padding:6px 18px max(14px,env(safe-area-inset-bottom));font:12px/1.5 system-ui,sans-serif}
.social-platforms{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 18px}
.social-platform-button{min-width:0;min-height:56px;border:1px solid var(--border,#45454a);border-radius:12px;background:transparent;color:inherit;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:8px 2px;font:11px/1.3 system-ui,sans-serif;cursor:pointer}
.social-platform-button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}
.social-platform-button img{width:26px;height:26px;object-fit:contain}
.social-platform-button:disabled,.social-link-copy:disabled,.social-home-copy:disabled{opacity:.45;cursor:default}
.social-record-link{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 10px;border-top:1px solid var(--border,#45454a);padding:14px 0 8px}
.social-link-label{font-size:12px;font-weight:650}.social-link-value{font-size:11px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted,#999);grid-column:1}
.social-link-copy{grid-column:2;grid-row:1/3;min-height:44px;padding:8px 10px;border:1px solid var(--border,#45454a);border-radius:8px;background:transparent;color:inherit;font:12px system-ui,sans-serif;cursor:pointer}
.social-home-copy{display:block;min-height:44px;padding:8px 0;border:0;background:transparent;color:var(--muted,#999);text-decoration:underline;text-underline-offset:3px;font:11px system-ui,sans-serif;cursor:pointer}
@media(max-width:599px){.social-share-actions{padding-left:10px;padding-right:10px}.social-platforms{gap:6px;margin-bottom:12px}}
.library-pagination{flex-wrap:wrap;max-width:100%}
.species-public-info .species-introduction-description,#roulettePublicInfo .species-introduction-description{font-size:15px;line-height:1.8;color:var(--muted);word-break:keep-all;overflow-wrap:anywhere}
#roulettePublicInfo .species-introduction-facts>div{grid-template-columns:128px minmax(0,1fr)}
#roulettePublicInfo .species-introduction-facts dd{font-size:14px;line-height:1.75}
#roulettePublicInfo .evidence-details a{color:inherit;text-underline-offset:3px;overflow-wrap:anywhere}
@media(max-width:599px){#roulettePublicInfo .species-introduction-facts>div{display:block;padding:13px 0}#roulettePublicInfo .species-introduction-facts dd{margin-top:5px}.species-public-info .species-introduction-facts dt{font-size:12px}.species-public-info .species-introduction-facts dd{font-size:14px}}
.species-introduction-facts{display:block;gap:0;margin:18px 0;border:0}.species-introduction-facts>div{padding:15px 0;border-top:1px solid #3d3d43;border-bottom:0}.species-introduction-facts dt{font-size:12px;color:#a9a9b2}.species-introduction-facts dd{margin:3px 0 0;line-height:1.7;word-break:keep-all;overflow-wrap:anywhere}
/* Keep the chosen action beside its observed result in the life log. */
.memory-choice{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:8px 0}
.memory-choice strong{color:var(--ink);font-size:17px;line-height:1.5;word-break:keep-all;overflow-wrap:anywhere}
.memory-life-changes{margin:12px 0;padding:10px 12px;border-left:2px solid var(--line);font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.memory-life-changes p{display:grid;grid-template-columns:auto 1fr;gap:8px;margin:4px 0}
.memory-life-changes strong{font-size:inherit;white-space:nowrap}
.choice-outcome{flex:none;border:1px solid #76767d;border-radius:999px;padding:3px 9px;font-size:12px;line-height:1.5;color:#d4d4d8}
.choice-outcome.success{border-color:#91b88c;color:#b4d5ae}
.choice-outcome.failure{border-color:#c3837e;color:#e4a39d}
.ending-cause{font-size:16px;line-height:1.7;color:#d7d7d0;word-break:keep-all;overflow-wrap:anywhere}
.choice-result-continue{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;font-size:16px}

#lifeScreen #statsRow{min-width:0}#lifeScreen .focus-toggle{min-width:0;grid-template-columns:minmax(0,1fr) auto}#lifeScreen .focus-toggle strong{overflow:hidden;text-overflow:ellipsis}#lifeScreen .focus-toggle small{min-width:0}

#choiceDialog .choice-icon,#lifeScreen .choice-button .choice-icon{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:8px;background:#c4ff00;color:#171719;flex:none}
.action-pictogram{width:25px;height:25px;flex:none}
#choiceDialog .choice-button.is-confirmation{display:block}
@media(max-width:359px){#choiceDialog .choice-icon,#lifeScreen .choice-button .choice-icon{width:32px;height:32px}.action-pictogram{width:23px;height:23px}}

#introScreen .presence-scope{margin:4px 0 0;text-align:center;font:10px/1.65 system-ui,sans-serif;color:#929299}
