:root{color-scheme:light;--page: #efe2c6;--backdrop: #d8c9a8;--panel: #fff8e8;--panel-strong: #fffdf4;--ink: #2b241f;--muted: #5d5347;--line: #c9a473;--line-soft: #e5d2ae;--teal: #1f5d54;--teal-soft: #dceee5;--gold: #e0a62f;--gold-ink: #8a520f;--gold-soft: #fdf0c9;--red: #d95f4c;--amber: #d89a2a;--aqua: #3e9e9c;--violet: #8c71bc;--blue: #4f7ea8;--green: #5f8d4e;--rose: #bf6d72;--teal-pin: #2f7d6f;--shadow: 0 3px 0 rgba(94, 62, 31, .16);--safe-top: env(safe-area-inset-top, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px);--tap: 2.75rem;--next-h: 3.25rem;--tab-h: 3.5rem;--radius: 14px;--fs-caption: .75rem;--fs-body: .875rem;--fs-lead: .9375rem;--fs-title: 1.375rem;--fs-heading: 1.125rem}:root[data-theme=dark]{color-scheme:dark;--page: #1d2825;--backdrop: #101816;--panel: #26342f;--panel-strong: #2d3e37;--ink: #f6edda;--muted: #c9bda8;--line: #8f7551;--line-soft: #4a5b50;--teal: #9ed7be;--teal-soft: #334c42;--gold: #f0bb4d;--gold-ink: #ffd98a;--gold-soft: #4a432e;--shadow: 0 3px 0 rgba(0, 0, 0, .28)}*,*:before,*:after{box-sizing:border-box}html{font-size:16px;-webkit-text-size-adjust:100%;text-size-adjust:100%}html,body{margin:0;padding:0;min-height:100%;background:var(--backdrop);color:var(--ink)}body{font-family:PingFang SC,Hiragino Sans GB,Microsoft YaHei,Noto Sans SC,system-ui,sans-serif;font-size:var(--fs-body);line-height:1.5;overflow-x:hidden;overflow-y:auto}button{font:inherit;color:inherit;-webkit-tap-highlight-color:transparent}button:focus-visible,[tabindex]:focus-visible{outline:3px solid #15594f;outline-offset:2px}:root[data-theme=dark] button:focus-visible,:root[data-theme=dark] [tabindex]:focus-visible{outline-color:#bde8d5}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.icon{width:1.25em;height:1.25em;display:inline-block;flex:none;vertical-align:-.16em}.muted{color:var(--muted)}.app-shell{position:relative;width:100%;max-width:480px;margin:0 auto;min-height:100vh;min-height:100dvh;background:radial-gradient(circle at 12% 0%,rgba(255,255,255,.55),transparent 38%),linear-gradient(180deg,#f7ecd4 0%,var(--page) 100%);box-shadow:0 0 0 1px #60411e1f,0 18px 40px #30210c2e}:root[data-theme=dark] .app-shell{background:radial-gradient(circle at 12% 0%,rgba(106,151,129,.22),transparent 38%),linear-gradient(180deg,#22322d,#17231f)}.app-main{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}@media(min-width:481px){body{background:var(--backdrop)}.app-shell{border-radius:22px;margin-top:12px;margin-bottom:12px;min-height:calc(100dvh - 24px);overflow:hidden}}.topbar{position:sticky;top:0;z-index:30;flex:none;display:flex;align-items:center;gap:6px;padding:calc(6px + var(--safe-top)) 8px 6px;background:linear-gradient(180deg,#fff7e5,#f2e1bc);border-bottom:2px solid #a87645;box-shadow:0 2px #7149231f}:root[data-theme=dark] .topbar{background:linear-gradient(180deg,#2d4038,#22332c);border-bottom-color:#876b49}.top-metrics{flex:1 1 auto;min-width:0;display:flex;flex-wrap:wrap;gap:4px;align-items:stretch}.metric{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;justify-content:center;padding:2px 4px;border:1px solid rgba(169,124,60,.4);border-radius:9px;background:#fffcefa8}:root[data-theme=dark] .metric{background:#1d2d2680;border-color:#b4935e66}.metric-label{color:var(--muted);font-size:var(--fs-caption);line-height:1.25;overflow-wrap:anywhere}.metric-value{display:flex;align-items:baseline;gap:3px;flex-wrap:wrap;font-size:.875rem;font-weight:800;line-height:1.2;letter-spacing:-.01em;overflow-wrap:anywhere}.metric[data-metric=year] .metric-value strong{font-size:1.0625rem}.metric-value small{color:var(--teal);font-size:var(--fs-caption);font-weight:700}.metric-icon{display:none}.top-actions{flex:none;display:flex;align-items:center;gap:4px}.icon-button{width:var(--tap);min-width:var(--tap);height:var(--tap);padding:0;display:inline-flex;align-items:center;justify-content:center;border:1.5px solid #a57b4c;border-radius:10px;background:linear-gradient(180deg,#fffaf0,#e9d5b0);color:#3f3122;box-shadow:0 2px #67411d29;cursor:pointer}:root[data-theme=dark] .icon-button{background:linear-gradient(180deg,#3a5047,#2b3d35);color:#f2e6ce;border-color:#876b49}.icon-button:active{transform:translateY(1px);box-shadow:none}.icon-button .icon{width:1.375rem;height:1.375rem}.stage{flex:1 0 auto;min-width:0}.panel{padding:10px 12px 16px;max-width:100%}.panel:focus-visible{outline:3px solid #15594f;outline-offset:-3px}.section-head{padding:2px 0 10px}.section-head h2{margin:2px 0 4px;font-size:var(--fs-title);line-height:1.25;letter-spacing:-.01em}.section-head p,.panel-intro{margin:0;color:var(--muted);font-size:var(--fs-lead);line-height:1.5;overflow-wrap:anywhere}.tag,.eyebrow{display:inline-block;color:var(--teal);font-size:var(--fs-caption);font-weight:800;letter-spacing:.02em;line-height:1.35}.tag{padding:1px 6px;border:1px solid rgba(40,101,85,.3);border-radius:5px;background:var(--teal-soft)}.panel-footnote{margin:10px 0 0;color:var(--muted);font-size:var(--fs-body);line-height:1.5;overflow-wrap:anywhere}.subsection-title{margin:16px 0 8px;font-size:var(--fs-heading);line-height:1.3}.scene-frame{display:flex;flex-direction:column;overflow:hidden;border:2px solid #7d5b35;border-radius:var(--radius);background:#91c8d9;box-shadow:var(--shadow)}.scene-media{height:clamp(145px,18dvh,184px);overflow:hidden;background:#91c8d9}.scene-svg{display:block;width:100%;height:100%;object-fit:cover}.scene-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;padding:6px 10px 8px;background:var(--panel)}.scene-chip{flex:none}.scene-caption{margin:0;flex:1 1 8rem;color:var(--muted);font-size:var(--fs-body);line-height:1.45;overflow-wrap:anywhere}.year-card{position:relative;margin-top:10px;padding:10px 12px 12px;border:1.5px solid #a37a4a;border-radius:var(--radius);background:linear-gradient(135deg,rgba(255,255,255,.5),transparent 45%),var(--panel);box-shadow:var(--shadow)}.card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px;flex-wrap:wrap}.page-count{color:var(--muted);font-size:var(--fs-caption);font-weight:700}.year-card h2{margin:2px 0 6px;font-size:1.25rem;line-height:1.3;overflow-wrap:anywhere}.card-lines p{margin:0 0 4px;font-size:var(--fs-body);line-height:1.55;overflow-wrap:anywhere}.card-lines p:last-child{margin-bottom:0}.card-highlight{display:flex;align-items:flex-start;gap:6px;margin-top:8px;padding-top:8px;border-top:1px dashed var(--line-soft);color:var(--muted);font-size:var(--fs-body);line-height:1.45;overflow-wrap:anywhere}.card-highlight .dot{width:7px;height:7px;margin-top:.4em;border-radius:50%;background:var(--gold);flex:none}.card-flash{animation:card-flash .45s ease-out}@keyframes card-flash{0%{opacity:.55;transform:translateY(3px)}to{opacity:1;transform:none}}.choice-teaser{width:100%;display:flex;align-items:center;gap:10px;margin-top:10px;padding:10px;text-align:left;border:1.5px solid #b87b3a;border-radius:var(--radius);background:linear-gradient(180deg,#fff4cd,#f3d28d);box-shadow:0 3px #764d1e2e;cursor:pointer;min-height:var(--tap)}:root[data-theme=dark] .choice-teaser{background:linear-gradient(180deg,#4a432e,#3a3427);border-color:#a98954}.choice-teaser:active{transform:translateY(1px);box-shadow:none}.teaser-icon{width:2.25rem;height:2.25rem;display:grid;place-items:center;flex:none;border-radius:9px;background:#fff9e8;color:var(--gold-ink)}:root[data-theme=dark] .teaser-icon{background:#2d3d35;color:var(--gold)}.teaser-copy{min-width:0;display:flex;flex-direction:column;gap:2px;flex:1 1 auto}.teaser-title{font-size:1rem;line-height:1.35;overflow-wrap:anywhere}.teaser-note{color:var(--muted);font-size:var(--fs-body);line-height:1.45;overflow-wrap:anywhere}.teaser-chevron{color:#6d4a1f;flex:none}.daily-card{display:flex;align-items:flex-start;gap:10px;margin-top:10px;padding:9px 10px;border:1px dashed var(--line);border-radius:var(--radius);background:#fffaeb99}:root[data-theme=dark] .daily-card{background:#27382f9e}.daily-icon{width:2rem;height:2rem;flex:none;display:grid;place-items:center;border-radius:8px;background:var(--teal-soft);color:var(--teal)}.daily-copy{min-width:0;display:flex;flex-direction:column;gap:2px}.daily-copy strong{font-size:1rem;line-height:1.35;overflow-wrap:anywhere}.daily-copy p{margin:0;color:var(--muted);font-size:var(--fs-body);line-height:1.5;overflow-wrap:anywhere}.bottom-stack{position:sticky;bottom:0;z-index:40;flex:none;margin-top:auto;display:flex;flex-direction:column;background:linear-gradient(180deg,#f9efd9,#efdfc0);border-top:2px solid #c69a5d;box-shadow:0 -2px 8px #6244201f}:root[data-theme=dark] .bottom-stack{background:linear-gradient(180deg,#2b3d35,#22322b);border-top-color:#856c48}.status-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:5px 6px}.stat{min-width:0;padding:4px 5px;border:1px solid rgba(169,130,75,.45);border-radius:8px;background:#fffaeeb3}:root[data-theme=dark] .stat{background:#213029b8;border-color:#977b5480}.stat-head{display:flex;align-items:baseline;justify-content:space-between;gap:3px;margin-bottom:3px;line-height:1.25;flex-wrap:wrap}.stat-label{color:var(--ink);font-size:var(--fs-caption);font-weight:700;overflow-wrap:anywhere}.stat-value{color:var(--ink);font-size:var(--fs-caption);font-weight:800}.bar{height:5px;border-radius:3px;background:#7a603938;overflow:hidden}.bar-fill{display:block;width:var(--pct, 0%);height:100%;border-radius:3px}.next-button{display:flex;align-items:center;justify-content:center;gap:8px;width:calc(100% - 20px);min-height:var(--next-h);margin:2px 10px 8px;padding:8px 14px;border:2px solid #1d5148;border-radius:12px;background:linear-gradient(180deg,#2f7d6f,#1f5d54);color:#fffdf1;font-size:1.0625rem;font-weight:800;letter-spacing:.02em;box-shadow:0 3px #12302a66;cursor:pointer;overflow-wrap:anywhere}.next-button .next-label{overflow-wrap:anywhere;text-align:center}.next-button:active{transform:translateY(1px);box-shadow:none}.next-button:disabled{background:linear-gradient(180deg,#b7ab94,#9c907b);border-color:#8a7f6c;color:#2f2a24;box-shadow:none;cursor:not-allowed}:root[data-theme=dark] .next-button:disabled{background:linear-gradient(180deg,#5b5446,#4a4438);border-color:#6d6552;color:#f3ecd9}.tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;padding:0 4px calc(4px + var(--safe-bottom))}.tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:var(--tab-h);min-width:var(--tap);padding:5px 2px;border:0;border-radius:10px 10px 0 0;background:transparent;color:var(--muted);font-size:var(--fs-body);font-weight:700;cursor:pointer;overflow-wrap:anywhere}.tab .icon{width:1.375rem;height:1.375rem}.tab[aria-selected=true]{background:#2f7d6f24;color:var(--teal)}:root[data-theme=dark] .tab[aria-selected=true]{background:#9ed7be29}.tree{display:flex;flex-direction:column;padding:8px 10px;border:1.5px solid var(--line);border-radius:var(--radius);background:var(--panel);box-shadow:var(--shadow)}.tree-row{display:flex;align-items:flex-start;gap:8px;padding:7px 0}.tree-row+.tree-row{border-top:1px dashed var(--line-soft)}.tree-label{flex:none;width:4.75rem;padding-top:.6rem;color:var(--muted);font-size:var(--fs-caption);font-weight:700}.tree-nodes{flex:1 1 auto;min-width:0;display:flex;flex-wrap:wrap;gap:6px}.tree-node{display:flex;align-items:center;gap:8px;min-height:var(--tap);padding:4px 8px;text-align:left;border:1px solid var(--line-soft);border-radius:11px;background:var(--panel-strong);cursor:pointer}.tree-node:active{transform:translateY(1px)}.tree-copy{display:flex;flex-direction:column;min-width:0}.tree-copy strong{font-size:.9375rem;line-height:1.3;overflow-wrap:anywhere}.tree-copy span{color:var(--muted);font-size:var(--fs-caption);line-height:1.3}.tree-empty{margin:0;padding:.7rem 0;color:var(--muted);font-size:var(--fs-body)}.avatar{width:2.25rem;height:2.25rem;flex:none;display:grid;place-items:center;border-radius:10px;color:#fffdf1;font-size:.9375rem;font-weight:800}.avatar-lg{width:3rem;height:3rem;font-size:1.25rem;border-radius:14px}.card-block{margin-top:12px;padding:10px;border:1.5px solid var(--line);border-radius:var(--radius);background:var(--panel);box-shadow:var(--shadow)}.card-block>h3{margin:0 0 8px;font-size:var(--fs-heading);line-height:1.3}.member-card{display:flex;align-items:flex-start;gap:10px;padding:4px 0}.member-copy{min-width:0;flex:1 1 auto;display:flex;flex-direction:column;gap:2px}.member-copy strong{font-size:1rem;line-height:1.35;overflow-wrap:anywhere}.member-role{color:var(--muted);font-size:var(--fs-caption);font-weight:600}.member-copy p{margin:0;color:var(--muted);font-size:var(--fs-body);line-height:1.5;overflow-wrap:anywhere}.member-bond{flex:none;padding:2px 7px;border-radius:8px;background:var(--teal-soft);color:var(--teal);font-size:var(--fs-caption);font-weight:800}.empty-state{padding:12px;border:1px dashed var(--line);border-radius:11px;background:#fffaeb80}:root[data-theme=dark] .empty-state{background:#23322b99}.empty-state strong{display:block;font-size:1rem;margin-bottom:4px}.empty-state p{margin:0;color:var(--muted);font-size:var(--fs-body);line-height:1.5;overflow-wrap:anywhere}.relation-list{display:flex;flex-direction:column;gap:10px}.relation-row{display:flex;flex-direction:column;gap:4px}.relation-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:var(--fs-body);flex-wrap:wrap}.relation-head strong{font-size:var(--fs-body)}.relation-note{color:var(--muted);font-size:var(--fs-caption)}.home-band{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 10px;margin:12px 0;padding:9px 11px;border:1px dashed var(--line);border-radius:11px;background:#fffaeb8c;font-size:var(--fs-body)}:root[data-theme=dark] .home-band{background:#23322b99}.home-band strong{color:var(--teal);overflow-wrap:anywhere}.moment-list{display:flex;flex-direction:column;gap:8px}.moment-card{padding:9px 10px;border:1.5px solid var(--line);border-radius:11px;background:var(--panel);box-shadow:0 2px #674d2a1a}.moment-card h3{margin:3px 0;font-size:var(--fs-heading);line-height:1.35;overflow-wrap:anywhere}.moment-card p{margin:0;color:var(--muted);font-size:var(--fs-body);line-height:1.5;overflow-wrap:anywhere}.detail-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:2px 0 10px;flex-wrap:wrap}.back-button{display:inline-flex;align-items:center;gap:4px;min-height:var(--tap);padding:4px 10px 4px 6px;border:1.5px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);font-size:var(--fs-body);font-weight:700;cursor:pointer}.detail-card{padding:12px;border:1.5px solid var(--line);border-radius:var(--radius);background:var(--panel);box-shadow:var(--shadow)}.detail-person{display:flex;align-items:center;gap:10px;margin-bottom:10px}.detail-person h2{margin:0;font-size:var(--fs-title);line-height:1.25;display:flex;flex-direction:column;overflow-wrap:anywhere}.detail-person h2 small{color:var(--muted);font-size:var(--fs-caption);font-weight:600}.fact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0}.fact-grid-wide{grid-template-columns:repeat(auto-fit,minmax(9rem,1fr))}.fact-grid>div{padding:7px 9px;border:1px solid var(--line-soft);border-radius:10px;background:#fffcef99;min-width:0}:root[data-theme=dark] .fact-grid>div{background:#23322b8c}.fact-grid dt{color:var(--muted);font-size:var(--fs-caption);line-height:1.35}.fact-grid dd{margin:2px 0 0;font-size:1rem;font-weight:700;line-height:1.35;overflow-wrap:anywhere}.detail-note{margin:10px 0 0;font-size:var(--fs-body);line-height:1.55;overflow-wrap:anywhere}.detail-bond{margin:6px 0 0;color:var(--muted);font-size:var(--fs-body);line-height:1.5;overflow-wrap:anywhere}.segmented{display:flex;flex-wrap:wrap;gap:4px;margin:4px 0 10px}.segmented button{flex:0 1 auto;min-height:var(--tap);min-width:3.5rem;padding:6px 10px;border:1.5px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);font-size:var(--fs-body);font-weight:700;cursor:pointer;overflow-wrap:anywhere}.segmented button[aria-pressed=true]{border-color:var(--teal);background:var(--teal-soft);color:var(--teal);box-shadow:inset 0 0 0 1px var(--teal)}.work-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(3.5rem,1fr));margin-bottom:12px}.work-pane{display:flex;flex-direction:column;gap:10px}.job-card{padding:11px;border:1.5px solid var(--line);border-radius:var(--radius);background:var(--panel);box-shadow:var(--shadow)}.job-top{display:flex;align-items:flex-start;gap:10px;margin-bottom:6px}.job-icon{width:2.5rem;height:2.5rem;flex:none;display:grid;place-items:center;border-radius:10px;background:var(--teal-soft);color:var(--teal)}.job-card h3{margin:2px 0 0;font-size:var(--fs-heading);line-height:1.35;overflow-wrap:anywhere}.job-card p{margin:4px 0 0;color:var(--muted);font-size:var(--fs-body);line-height:1.5;overflow-wrap:anywhere}.income-value{margin:4px 0 0;font-size:1.625rem;font-weight:800;color:var(--ink);line-height:1.25}.skill-line{margin-top:8px}.skill-line:first-of-type{margin-top:0}.opening-list{display:flex;flex-direction:column;gap:10px}.opening-card{padding:11px;border:1.5px solid var(--line);border-radius:var(--radius);background:var(--panel);box-shadow:var(--shadow)}.opening-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;flex-wrap:wrap}.opening-head h3{margin:3px 0 2px;font-size:var(--fs-heading);line-height:1.35;overflow-wrap:anywhere}.opening-head .muted{font-size:var(--fs-caption)}.opening-pay{font-size:1rem;color:var(--ink);overflow-wrap:anywhere}.opening-card p{margin:6px 0 8px;color:var(--muted);font-size:var(--fs-body);line-height:1.5;overflow-wrap:anywhere}.retire-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(5.5rem,1fr));gap:8px}.retire-grid>div{display:flex;flex-direction:column;gap:2px;padding:9px 10px;border:1px solid var(--line-soft);border-radius:11px;background:var(--panel)}.retire-grid span{font-size:var(--fs-caption)}.retire-grid strong{font-size:1.25rem;line-height:1.3;overflow-wrap:anywhere}.status-line{margin:0;font-size:var(--fs-body);font-weight:700;overflow-wrap:anywhere}.country-now{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:11px;border:1.5px solid var(--teal);border-radius:var(--radius);background:linear-gradient(180deg,var(--teal-soft),var(--panel))}.country-now>div{display:flex;flex-direction:column;gap:2px;min-width:0}.country-now strong{font-size:1.25rem;line-height:1.3;overflow-wrap:anywhere}.country-now .muted{font-size:var(--fs-body);overflow-wrap:anywhere}.badge{flex:none;padding:2px 8px;border-radius:99px;background:var(--teal);color:#fffdf1;font-size:var(--fs-caption);font-weight:800}.country-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin-bottom:6px}.country-head strong{font-size:var(--fs-heading);overflow-wrap:anywhere}.country-head .muted{font-size:var(--fs-caption)}.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(8rem,1fr));gap:8px;margin:8px 0}.stat-grid>div{padding:8px 10px;border:1px solid var(--line-soft);border-radius:10px;background:#fffcef99;min-width:0}:root[data-theme=dark] .stat-grid>div{background:#23322b8c}.stat-grid dt{color:var(--muted);font-size:var(--fs-caption);line-height:1.35}.stat-grid dd{margin:2px 0 0;font-size:1rem;font-weight:700;line-height:1.35;overflow-wrap:anywhere}.card-block>.muted{font-size:var(--fs-body);line-height:1.5;overflow-wrap:anywhere}.chip-row{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0;align-items:center}.chip{min-height:var(--tap);min-width:var(--tap);padding:6px 12px;border:1.5px solid var(--line);border-radius:99px;background:var(--panel);color:var(--ink);font-size:var(--fs-body);font-weight:700;cursor:pointer;overflow-wrap:anywhere}.chip[aria-pressed=true]{border-color:var(--teal);background:var(--teal-soft);color:var(--teal)}.chip.is-static{cursor:default;border-style:dashed}.map-board{position:relative;overflow:hidden;height:180px;border:2px solid #7b6040;border-radius:var(--radius);background:radial-gradient(circle at 70% 20%,rgba(255,244,184,.9) 0 5%,transparent 6%),linear-gradient(160deg,#b8d9a8,#e4ddb3 55%,#c5dba9);box-shadow:var(--shadow)}.map-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(82,111,66,.14) 1px,transparent 1px),linear-gradient(90deg,rgba(82,111,66,.14) 1px,transparent 1px);background-size:22px 22px;transform:rotate(-4deg) scale(1.2)}.map-route{position:absolute;inset:0;width:100%;height:100%}.map-route path{fill:none;stroke:#704f238c;stroke-width:2.5;stroke-dasharray:7 5}.map-pin{position:absolute;width:1.75rem;height:1.75rem;display:grid;place-items:center;border:2px solid #fff9e8;border-radius:50% 50% 50% 7px;transform:translate(-50%,-50%) rotate(-45deg);color:#fff;box-shadow:0 2px 3px #3640204d}.map-pin .icon{transform:rotate(45deg);width:.875rem;height:.875rem}.map-pin-current{width:2.125rem;height:2.125rem;border-color:#fff3bd;box-shadow:0 0 0 4px #fff0a766,0 2px 3px #3640204d}.pin-index{transform:rotate(45deg);color:#fffdf1;font-size:var(--fs-caption);font-weight:800;line-height:1;text-shadow:0 1px 2px rgba(0,0,0,.35)}.map-pin-current .pin-index{color:#fff9e8}.place-list{margin-top:10px;display:flex;flex-direction:column;gap:8px}.place-card{display:flex;justify-content:space-between;gap:10px;padding:9px 10px;border:1.5px solid var(--line);border-radius:11px;background:var(--panel);box-shadow:0 2px #674d2a1a}.place-card.is-current{border-color:var(--teal);background:linear-gradient(180deg,var(--teal-soft),var(--panel))}.place-index{flex:none;width:1.5rem;height:1.5rem;display:grid;place-items:center;border-radius:50%;background:var(--teal-soft);color:var(--teal);font-size:var(--fs-caption);font-weight:800}.place-card>div{min-width:0}.place-card h3{margin:3px 0 2px;font-size:var(--fs-heading);line-height:1.35;overflow-wrap:anywhere}.place-card p{margin:0;color:var(--muted);font-size:var(--fs-body);line-height:1.5;overflow-wrap:anywhere}.distance{flex:none;align-self:flex-start;color:var(--muted);font-size:var(--fs-caption);font-weight:700}.primary-button,.secondary-button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:3rem;padding:10px 14px;border-radius:12px;font-size:1rem;font-weight:800;text-align:center;cursor:pointer;overflow-wrap:anywhere}.primary-button{border:2px solid #1d5148;background:linear-gradient(180deg,#2f7d6f,#1f5d54);color:#fffdf1;box-shadow:0 3px #12302a57}.secondary-button{border:1.5px solid var(--line);background:var(--panel);color:var(--ink);box-shadow:0 2px #674d2a24;flex-direction:column;gap:2px}.primary-button:disabled{background:linear-gradient(180deg,#b7ab94,#9c907b);border-color:#8a7f6c;color:#2f2a24;box-shadow:none;cursor:not-allowed}.button-sub{font-size:var(--fs-caption);font-weight:600;color:var(--muted)}.tone-coral{background-color:var(--red)}.tone-amber{background-color:var(--amber)}.tone-aqua{background-color:var(--aqua)}.tone-violet{background-color:var(--violet)}.tone-gold{background-color:var(--gold)}.tone-blue{background-color:var(--blue)}.tone-green{background-color:var(--green)}.tone-rose{background-color:var(--rose)}.tone-teal{background-color:var(--teal-pin)}.sheet-layer{position:fixed;inset:0;z-index:100;display:flex;align-items:flex-end;justify-content:center}.sheet-backdrop{position:absolute;inset:0;background:#18140c94}.sheet{position:relative;width:min(100%,480px);max-height:92vh;max-height:92dvh;overflow-y:auto;padding:10px 16px calc(16px + var(--safe-bottom));border-radius:22px 22px 0 0;background:var(--panel);box-shadow:0 -10px 34px #1e14084d;animation:sheet-in .22s ease-out}@keyframes sheet-in{0%{transform:translateY(18px);opacity:.6}}.sheet-grip{width:40px;height:4px;margin:0 auto 8px;border-radius:99px;background:var(--line)}.sheet:focus,.sheet:focus-visible{outline:none}.sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:8px}.sheet-head h2{margin:2px 0 0;font-size:var(--fs-title);line-height:1.3;overflow-wrap:anywhere}.sheet-intro{margin:0 0 10px;color:var(--muted);font-size:var(--fs-lead);line-height:1.55;overflow-wrap:anywhere}.sheet-note{margin:10px 0 0;color:var(--muted);font-size:var(--fs-body);line-height:1.5;overflow-wrap:anywhere}.sheet-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.pause-badge{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin-bottom:10px;padding:9px 11px;border:1.5px solid #a87645;border-radius:12px;background:var(--gold-soft)}.pause-badge-icon{width:2rem;height:2rem;flex:none;display:grid;place-items:center;border-radius:50%;background:var(--panel);color:var(--gold-ink)}.pause-badge-copy{display:flex;flex-direction:column;flex:1 1 9rem;min-width:0}.pause-badge-copy strong{font-size:1rem;color:var(--gold-ink);line-height:1.3}.pause-badge-copy span{color:var(--ink);font-size:var(--fs-caption);line-height:1.4;overflow-wrap:anywhere}.pause-badge-time{display:flex;flex-direction:column;align-items:flex-end;flex:none}.pause-badge-time span{color:var(--muted);font-size:var(--fs-caption)}.pause-badge-time strong{font-size:1rem;font-variant-numeric:tabular-nums}.choice-list{display:flex;flex-direction:column;gap:8px}.choice-option{display:flex;align-items:center;gap:10px;width:100%;min-height:var(--tap);padding:10px;text-align:left;border:1.5px solid var(--line);border-radius:12px;background:var(--panel-strong);cursor:pointer}.choice-option.is-selected{border-color:var(--teal);box-shadow:inset 0 0 0 1px var(--teal)}.choice-option.is-confirmed{border-color:var(--teal);background:var(--teal-soft)}.choice-icon{width:2.5rem;height:2.5rem;flex:none;display:grid;place-items:center;border-radius:10px;background:#ffffffb3;color:var(--ink)}:root[data-theme=dark] .choice-icon{background:#ffffff1f}.choice-copy{display:flex;flex-direction:column;gap:2px;flex:1 1 auto;min-width:0}.choice-copy strong{font-size:1.0625rem;line-height:1.35;overflow-wrap:anywhere}.choice-copy span{color:var(--muted);font-size:var(--fs-body);line-height:1.45;overflow-wrap:anywhere}.choice-check{flex:none;width:1.5rem;height:1.5rem;display:grid;place-items:center;border-radius:50%;border:1.5px solid var(--line);color:transparent}.choice-option.is-selected .choice-check,.choice-option.is-confirmed .choice-check{border-color:var(--teal);background:var(--teal);color:#fffdf1}.choice-hint{margin:10px 0;color:var(--muted);font-size:var(--fs-body);overflow-wrap:anywhere}.choice-consequence{margin:0 0 10px;padding:10px 11px;border:1.5px dashed var(--teal);border-radius:12px;background:var(--teal-soft)}.choice-consequence h3{margin:3px 0 4px;font-size:var(--fs-heading);line-height:1.35;overflow-wrap:anywhere}.choice-consequence p{margin:0;font-size:var(--fs-body);line-height:1.55;overflow-wrap:anywhere}.choice-consequence small{display:block;margin-top:6px;color:var(--muted);font-size:var(--fs-caption)}.settings-group{margin-bottom:14px}.settings-group>h3{margin:0 0 8px;font-size:var(--fs-heading);line-height:1.3}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px dashed var(--line-soft);flex-wrap:wrap}.setting-copy{display:flex;flex-direction:column;gap:2px;flex:1 1 10rem;min-width:0}.setting-copy strong{font-size:1rem;line-height:1.35;overflow-wrap:anywhere}.setting-copy span{color:var(--muted);font-size:var(--fs-body);line-height:1.45;overflow-wrap:anywhere}.switch{display:inline-flex;align-items:center;gap:6px;min-height:var(--tap);min-width:4.5rem;padding:4px 6px;border:1.5px solid var(--line);border-radius:99px;background:var(--panel-strong);cursor:pointer;flex:none}.switch-track{width:2.25rem;height:1.35rem;border-radius:99px;background:#b3a691;position:relative;transition:background .15s ease}:root[data-theme=dark] .switch-track{background:#5a5344}.switch-thumb{position:absolute;top:2px;left:2px;width:calc(1.35rem - 4px);height:calc(1.35rem - 4px);border-radius:50%;background:#fffdf4;transition:transform .15s ease}.switch[aria-checked=true] .switch-track{background:var(--teal)}.switch[aria-checked=true] .switch-thumb{transform:translate(.9rem)}.switch-text{font-size:var(--fs-body);font-weight:700;min-width:2em}.save-card{padding:10px 11px;border:1.5px solid var(--line);border-radius:var(--radius);background:var(--panel)}.save-card strong{font-size:1rem;display:block}.save-card p{margin:4px 0 8px;color:var(--muted);font-size:var(--fs-body);line-height:1.5;overflow-wrap:anywhere}.link-row{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:3rem;padding:8px 10px;text-align:left;border:1.5px solid var(--line);border-radius:12px;background:var(--panel);cursor:pointer}.link-copy{display:flex;flex-direction:column;gap:2px;min-width:0}.link-copy strong{font-size:1rem}.link-copy span{color:var(--muted);font-size:var(--fs-caption);overflow-wrap:anywhere}.storage-note{margin:6px 0 12px;color:var(--muted);font-size:var(--fs-body);line-height:1.5;overflow-wrap:anywhere}.migrate-option{display:flex;flex-direction:column;gap:4px;width:100%;min-height:var(--tap);padding:10px;text-align:left;border:1.5px solid var(--line);border-radius:12px;background:var(--panel-strong);cursor:pointer}.migrate-option.is-selected{border-color:var(--teal);background:var(--teal-soft)}.migrate-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap}.migrate-head strong{font-size:1.0625rem;overflow-wrap:anywhere}.migrate-cost{font-size:1rem;font-weight:800;color:var(--ink)}.migrate-option .muted{font-size:var(--fs-body);overflow-wrap:anywhere}.requirement-list{display:flex;flex-wrap:wrap;gap:4px;margin-top:2px}.req-chip{padding:1px 7px;border:1px solid var(--line);border-radius:99px;color:var(--muted);font-size:var(--fs-caption)}.share-card{display:flex;flex-direction:column;gap:4px;margin-bottom:12px;padding:14px;border:2px solid var(--line);border-radius:16px;background:linear-gradient(160deg,#fff7e2,#f2ddb4)}:root[data-theme=dark] .share-card{background:linear-gradient(160deg,#33473d,#263630)}.share-card strong{font-size:1.375rem;line-height:1.25;overflow-wrap:anywhere}.share-card p{margin:0;color:var(--muted);font-size:var(--fs-body);line-height:1.5;overflow-wrap:anywhere}.death-screen{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}.death-top{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:calc(8px + var(--safe-top)) 12px 8px;background:var(--panel);border-bottom:1px solid var(--line-soft)}.death-body{flex:1 1 auto;padding:12px 14px 18px}.death-hero{padding:14px 14px 16px;border:2px solid var(--line);border-radius:18px;background:linear-gradient(160deg,#fff8e6,#f0dcb4);box-shadow:var(--shadow)}:root[data-theme=dark] .death-hero{background:linear-gradient(160deg,#33473d,#263630)}.death-sun{display:inline-grid;place-items:center;width:2.5rem;height:2.5rem;border-radius:50%;background:var(--gold-soft);color:var(--gold-ink)}.death-hero h1{margin:8px 0 6px;font-size:1.75rem;line-height:1.25;letter-spacing:-.01em;overflow-wrap:anywhere}.death-hero p{margin:0;color:var(--muted);font-size:var(--fs-lead);line-height:1.55;overflow-wrap:anywhere}.death-numbers{display:grid;grid-template-columns:repeat(auto-fit,minmax(6.5rem,1fr));gap:8px;margin-top:12px}.death-numbers>div{display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 6px;border:1.5px solid var(--line);border-radius:12px;background:var(--panel);text-align:center}.death-numbers strong{font-size:1.375rem;line-height:1.2;overflow-wrap:anywhere}.death-numbers span{color:var(--muted);font-size:var(--fs-caption);text-align:center}.death-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(8rem,1fr));gap:8px}.death-summary>div{display:flex;flex-direction:column;gap:2px;padding:9px 10px;border:1.5px solid var(--line);border-radius:12px;background:var(--panel)}.death-summary span{color:var(--muted);font-size:var(--fs-caption)}.death-summary strong{font-size:1.0625rem;overflow-wrap:anywhere}.death-people{display:flex;flex-wrap:wrap;gap:8px}.person-chip{display:flex;flex-direction:column;gap:1px;padding:8px 11px;border:1.5px solid var(--line);border-radius:12px;background:var(--panel)}.person-chip strong{font-size:1rem;overflow-wrap:anywhere}.person-chip span{color:var(--muted);font-size:var(--fs-caption)}.death-money{padding:11px;border:1.5px solid var(--line);border-radius:12px;background:var(--panel)}.death-money>strong{font-size:1.5rem;line-height:1.25}.death-map{padding:11px;border:1.5px solid var(--line);border-radius:12px;background:var(--panel)}.curve-svg{display:block;width:100%;height:auto}.curve-axis{stroke:var(--line);stroke-width:1.5}.curve-line{fill:none;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}.curve-money{stroke:var(--aqua)}.curve-happiness{stroke:var(--amber);stroke-dasharray:6 4}.curve-legend{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-top:6px;font-size:var(--fs-caption);color:var(--muted)}.legend-item{display:inline-flex;align-items:center;gap:5px}.legend-dot{width:9px;height:9px;border-radius:50%;display:inline-block}.legend-years{flex:1 1 auto;text-align:right;min-width:0}.death-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));gap:8px}.death-more{margin-top:8px}.death-actions{position:sticky;bottom:0;z-index:30;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px 14px calc(12px + var(--safe-bottom));background:var(--panel);border-top:1px solid var(--line-soft)}blockquote{margin:16px 0 0;padding:12px 14px;border-left:4px solid var(--teal);border-radius:0 12px 12px 0;background:var(--teal-soft);font-size:1rem;line-height:1.6;overflow-wrap:anywhere}.toggle-icon{flex:none}.toast{position:fixed;left:50%;top:calc(var(--safe-top) + 4.5rem);transform:translate(-50%,-6px);z-index:200;max-width:min(92vw,420px);padding:8px 14px;border-radius:99px;background:#202823eb;color:#fffdf1;font-size:var(--fs-body);line-height:1.4;opacity:0;pointer-events:none;transition:opacity .18s ease,transform .18s ease}.toast.is-visible{opacity:1;transform:translate(-50%)}.orientation-guard{display:none}@media(orientation:landscape)and (max-height:520px){.orientation-guard{position:fixed;inset:0;z-index:300;display:grid;place-content:center;justify-items:center;gap:8px;padding:24px;text-align:center;background:var(--page);color:var(--ink)}.orientation-icon{width:3rem;height:3rem;display:grid;place-items:center;border-radius:50%;background:var(--teal-soft);color:var(--teal)}.orientation-guard h2{margin:0;font-size:var(--fs-title)}.orientation-guard p{margin:0;color:var(--muted);font-size:var(--fs-lead);max-width:28ch}}.reduce-motion *,.reduce-motion *:before,.reduce-motion *:after{animation-duration:1ms!important;animation-iteration-count:1!important;transition-duration:1ms!important}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:1ms!important;animation-iteration-count:1!important;transition-duration:1ms!important}}@media(max-width:340px){.panel{padding-left:10px;padding-right:10px}.topbar{padding-left:6px;padding-right:6px}.metric{padding-left:4px;padding-right:4px}.metric[data-metric=year] .metric-value{flex-direction:column;align-items:flex-start;gap:0}}.p3e-shell{box-sizing:border-box;width:100%;max-width:960px;margin:0 auto;padding:16px 14px 40px;color:#111827;background:#f8fafc;font-family:system-ui,-apple-system,Segoe UI,Noto Sans TC,sans-serif;min-height:100vh}.p3e-shell *,.p3e-shell *:before,.p3e-shell *:after{box-sizing:border-box}.p3e-header{display:flex;flex-direction:column;gap:4px;margin-bottom:12px}.p3e-header h1{margin:0;font-size:1.35rem;line-height:1.25}.p3e-status{margin:0;color:#374151;font-size:.92rem}.p3e-mvp-notice{margin:0;padding:.65rem .85rem;border:1px solid rgba(125,84,34,.24);border-radius:.75rem;color:#63451f;background:#fff4d6d1;font-size:.82rem;line-height:1.45}.p3e-alert{margin:8px 0 0;padding:10px 12px;border-radius:8px;background:#fef2f2;color:#991b1b;border:1px solid #fecaca;font-weight:600}.p3e-tabs{display:flex;gap:6px;margin:10px 0 14px;flex-wrap:wrap}.p3e-tab{font:inherit;padding:8px 12px;border-radius:999px;border:1px solid #cbd5e1;background:#fff;color:#1f2937;cursor:pointer}.p3e-tab[aria-current=page]{background:#1d4ed8;border-color:#1d4ed8;color:#fff}.p3e-content{display:block}.p3e-life{display:grid;gap:12px}.p3e-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:12px 14px;min-width:0}.p3e-card h2{margin:0 0 8px;font-size:1rem}.p3e-kv{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:4px 10px;margin:0;font-size:.92rem}.p3e-kv dt{color:#4b5563;overflow-wrap:anywhere}.p3e-kv dd{margin:0;text-align:right;overflow-wrap:anywhere}.p3e-money dd{font-variant-numeric:tabular-nums}.p3e-pending{border-color:#bfdbfe;background:#eff6ff}.p3e-options{display:grid;gap:8px}.p3e-option,.p3e-primary{font:inherit;min-height:44px;padding:10px 14px;border-radius:10px;cursor:pointer}.p3e-option{background:#fff;border:1px solid #93c5fd;color:#1e3a8a;text-align:left}.p3e-primary{background:#1d4ed8;border:1px solid #1d4ed8;color:#fff;font-weight:700;width:100%}.p3e-option:disabled,.p3e-primary:disabled{opacity:.55;cursor:not-allowed}.p3e-option:focus-visible,.p3e-primary:focus-visible,.p3e-tab:focus-visible{outline:3px solid #f59e0b;outline-offset:2px}.p3e-controls{display:grid;gap:8px}.p3e-hint{margin:0;color:#4b5563;font-size:.9rem}.p3e-death{border-color:#fca5a5;background:#fff7f7}.p3e-placeholder{background:#fff;border:1px dashed #94a3b8;border-radius:12px;padding:18px 16px;color:#374151}.p3e-placeholder h2{margin:0 0 6px;font-size:1rem}.p3e-placeholder p{margin:0}.p3e-meta{margin:2px 0 0;color:#4b5563;font-size:.78rem;overflow-wrap:anywhere}@media(min-width:720px){.p3e-life{grid-template-columns:repeat(2,minmax(0,1fr))}.p3e-pending,.p3e-controls,.p3e-meta,.p3e-death{grid-column:1 / -1}}.p3e-shell.p3e-game-shell,.p3e-game-shell{--game-ink: #342719;--game-muted: #705f48;--game-paper: #fff6dc;--game-paper-edge: #8b6b3d;--game-green: #287a51;--game-green-dark: #185439;--game-orange: #f58b13;--game-orange-dark: #a84b05;width:min(100%,455px);min-height:100dvh;margin:0 auto;padding:max(8px,env(safe-area-inset-top)) 8px max(8px,env(safe-area-inset-bottom));overflow-x:hidden;color:var(--game-ink);background:linear-gradient(180deg,#4ab2e147,#ecd89a80),#a8dcec;font-family:Noto Sans TC,PingFang TC,Microsoft JhengHei,system-ui,sans-serif;isolation:isolate}.p3e-game-shell *,.p3e-game-shell *:before,.p3e-game-shell *:after{box-sizing:border-box;min-width:0}.p3e-game-shell button,.p3e-game-shell summary{-webkit-tap-highlight-color:transparent;touch-action:manipulation}.p3e-game-shell .p3e-header{margin:0 0 6px}.p3e-game-shell .p3e-header h1{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.p3e-game-shell .p3e-status,.p3e-game-shell .p3e-mvp-notice{margin:0;border:0;padding:3px 8px;border-radius:6px;color:#60461f;background:#fff7dceb;font-size:.68rem;line-height:1.35;text-align:center}.p3e-game-shell .p3e-alert{position:relative;z-index:20;margin:5px 0}.p3e-hud{position:relative;z-index:5;display:grid;grid-template-columns:1.05fr 1fr 1fr auto;align-items:stretch;gap:0;min-height:58px;margin-bottom:7px;border:3px solid #664d2f;border-radius:13px 13px 10px 10px;padding:5px;background:linear-gradient(180deg,#fff9e7,#f4dfb4);box-shadow:0 4px #49301759,inset 0 0 0 2px #ffffffb8}.p3e-hud-item{display:flex;flex-direction:column;justify-content:center;gap:1px;padding:2px 7px;border-right:1px solid rgba(107,78,39,.25);font-variant-numeric:tabular-nums}.p3e-hud-item:last-of-type{border-right:0}.p3e-hud-item span,.p3e-hud-item small{color:var(--game-muted);font-size:.63rem;font-weight:700;line-height:1.1}.p3e-hud-item strong{overflow:hidden;font-size:clamp(.8rem,3.4vw,1rem);line-height:1.12;text-overflow:ellipsis;white-space:nowrap}.p3e-hud button,.p3e-hud .p3e-menu-button{align-self:center;min-width:44px;min-height:44px;border:2px solid #4d5b67;border-radius:9px;padding:0;color:#fff;background:linear-gradient(#60798d,#394e61);font:inherit;font-weight:900}.p3e-game-shell .p3e-content{display:block}.p3e-game-shell .p3e-life{display:flex;flex-direction:column;gap:7px}.p3e-scene{position:relative;display:flex;flex-direction:column;justify-content:flex-end;min-height:clamp(300px,57dvh,535px);overflow:hidden;border:3px solid #5c583e;border-radius:15px;padding:10px;background-color:#8ed1ed;background-image:linear-gradient(180deg,#6bcdf414,#fff4bb0d 52%,#2b461f3d),url(./life-sim-village-landscape-BpeDvKZf.avif),linear-gradient(180deg,#72c9ef 0 42%,#87ba68 42% 70%,#d6ae61 70%);background-position:center,center,center;background-size:cover,cover,cover;box-shadow:inset 0 0 0 2px #ffffff61,0 3px #36301d38}.p3e-scene:after{content:"";position:absolute;inset:45% 0 0;pointer-events:none;background:linear-gradient(180deg,transparent,rgba(27,34,20,.2))}.p3e-scene-wrap{position:relative;width:100%}.p3e-profile-card{position:absolute;top:8px;left:8px;z-index:4;display:flex;flex-direction:column;gap:3px;width:42%;max-width:43%;padding:7px 9px;border:1px solid rgba(255,255,255,.28);border-radius:10px;background:#141a149e;box-shadow:0 2px 6px #00000059;color:#fff8de;font-family:inherit;pointer-events:none}.p3e-profile-row{display:flex;align-items:baseline;gap:5px;min-width:0}.p3e-profile-key{flex:0 0 auto;font-size:.75rem;font-weight:700;letter-spacing:.02em;color:#ffe9b0;white-space:nowrap}.p3e-profile-val{flex:1 1 auto;min-width:0;font-size:.8125rem;font-weight:800;line-height:1.25;white-space:normal;overflow:visible;word-break:break-word}@media(max-width:360px){.p3e-profile-card{width:47%;max-width:49%;padding:6px 7px}.p3e-profile-key{font-size:.6875rem}.p3e-profile-val{font-size:.75rem}}.p3e-character-stage{position:relative;z-index:1;align-self:flex-end;max-width:52%;margin:0 4px 6px auto;border:2px solid rgba(74,52,29,.7);border-radius:999px;padding:7px 11px;color:#fff8de;background:#313120c7;box-shadow:0 2px #0003;font-size:.74rem;font-weight:800;text-align:center;text-shadow:0 1px 1px #1e1a12}.p3e-scene-copy{position:relative;z-index:2;width:min(84%,325px);max-height:min(48dvh,410px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.p3e-story-card,.p3e-game-shell .p3e-pending,.p3e-game-shell .p3e-card.p3e-death{border:3px solid var(--game-paper-edge);border-radius:12px;padding:0;color:var(--game-ink);background:repeating-linear-gradient(0deg,transparent 0 27px,rgba(122,87,43,.1) 27px 28px),var(--game-paper);box-shadow:0 4px #4c311659,inset 0 0 0 2px #ffffff8a}.p3e-story-card>h2,.p3e-game-shell .p3e-pending>h2,.p3e-game-shell .p3e-death>h2{margin:0;border-radius:7px 7px 0 0;padding:9px 12px;color:#fff;background:linear-gradient(180deg,#3c946a,#26714f);font-size:.95rem;letter-spacing:.04em}.p3e-story-card>:not(h2),.p3e-game-shell .p3e-pending>:not(h2),.p3e-game-shell .p3e-death>:not(h2){margin-right:9px;margin-left:9px}.p3e-story-card p{font-size:.86rem;line-height:1.55}.p3e-choice-list,.p3e-game-shell .p3e-options{display:grid;gap:6px;padding:7px 0 10px}.p3e-choice-list .p3e-option,.p3e-game-shell .p3e-option{min-height:52px;border:2px solid #6d8d6a;border-radius:9px;padding:8px 34px 8px 11px;color:#352a1d;background:#fffceaf5;box-shadow:0 2px #42342233;font-size:.84rem;font-weight:800;line-height:1.3}.p3e-choice-list .p3e-option:after,.p3e-game-shell .p3e-option:after{content:"›";float:right;margin-right:-22px;font-size:1.45rem;line-height:1}.p3e-stat-dock{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;border:3px solid #6d5333;border-radius:11px;padding:5px;background:linear-gradient(#fff9e9,#ecd8ad);box-shadow:0 3px #4c331a4d}.p3e-stat-item{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 4px;min-height:44px;border-right:1px solid rgba(88,64,34,.23);padding:3px 4px;font-size:clamp(.62rem,2.7vw,.75rem);font-weight:800}.p3e-stat-item:last-child{border-right:0}.p3e-stat-item progress,.p3e-stat-item .p3e-stat-bar{grid-column:1 / -1;width:100%;height:8px;overflow:hidden;border:1px solid #70522f;border-radius:999px;background:#d8c9a9;accent-color:#3dbd78}.p3e-time-controls{display:flex;align-items:center;gap:4px;overflow-x:auto;padding:2px 0;scrollbar-width:none}.p3e-time-controls::-webkit-scrollbar{display:none}.p3e-time-controls button{flex:0 0 auto;min-width:44px;min-height:44px;border:2px solid #665033;border-radius:9px;padding:4px 8px;color:#42301d;background:linear-gradient(#fff7dc,#e7c992);font:inherit;font-size:.76rem;font-weight:900}.p3e-time-controls button[aria-pressed=true],.p3e-time-controls button.is-active{color:#fff;background:linear-gradient(#3c946a,#246548)}.p3e-game-shell .p3e-controls{display:grid;grid-template-columns:minmax(0,1fr);gap:6px}.p3e-game-shell .p3e-primary[data-action=advance],.p3e-game-shell .p3e-primary.p3e-next,.p3e-game-shell [data-action=next-decision]{min-height:58px;border:3px solid var(--game-orange-dark);border-radius:12px;padding:8px 16px;color:#fffdf0;background:linear-gradient(180deg,#ffac25,var(--game-orange));box-shadow:0 4px #743c09,inset 0 2px #ffffff73;font-size:1.12rem;font-weight:900;letter-spacing:.08em;text-shadow:0 2px 0 rgba(111,50,5,.7)}.p3e-game-shell .p3e-primary[data-action=advance]:active,.p3e-game-shell .p3e-primary.p3e-next:active,.p3e-game-shell [data-action=next-decision]:active{transform:translateY(2px);box-shadow:0 2px #743c09}.p3e-game-shell .p3e-tabs{position:sticky;z-index:12;bottom:max(0px,env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;order:99;margin:7px 0 0;border:3px solid #5e442a;border-radius:11px;padding:5px;background:#433427f0;box-shadow:0 -2px 12px #2f201238;backdrop-filter:blur(8px)}.p3e-game-shell .p3e-tab{min-height:52px;border:2px solid #263f55;border-radius:8px;padding:5px 2px;color:#f7f0dc;background:linear-gradient(#536b7c,#314658);font-size:.76rem;font-weight:800}.p3e-game-shell .p3e-tab[aria-current=page]{border-color:#a56b1d;color:#4a2f13;background:linear-gradient(#fff0b9,#eecb67)}.p3e-tools{margin:5px 0;border:1px solid rgba(83,62,35,.35);border-radius:9px;background:#fff9e2e6}.p3e-tools summary{min-height:44px;padding:11px 12px;color:#594329;font-size:.78rem;font-weight:800;cursor:pointer}.p3e-tools .p3e-persistence,.p3e-tools .p3e-meta{padding:0 10px 10px}.p3e-tools .p3e-primary{min-height:44px;margin-top:5px;background:#426578;border-color:#304d60;font-size:.78rem}.p3e-game-shell .p3e-placeholder{min-height:55dvh;border:3px solid #7d6038;border-radius:13px;background:#fff7dcf0}.p3e-game-shell button:focus-visible,.p3e-game-shell summary:focus-visible{outline:3px solid #ffe24a;outline-offset:2px}@media(max-width:480px){.p3e-game-shell .p3e-hud{grid-template-columns:minmax(47px,.72fr) minmax(48px,.76fr) minmax(37px,.55fr) minmax(61px,1fr) minmax(61px,1fr) 44px;gap:0;padding:4px}.p3e-game-shell .p3e-game-title{align-self:center;margin:0;padding:0 4px;overflow:hidden;color:#49331c;font-size:clamp(.7rem,2.9vw,.82rem);font-weight:900;line-height:1;letter-spacing:-.04em;text-align:center;text-overflow:clip;white-space:nowrap}.p3e-game-shell .p3e-hud-item{padding-right:4px;padding-left:4px}.p3e-game-shell .p3e-hud-item span,.p3e-game-shell .p3e-hud-item small{font-size:clamp(.52rem,2.15vw,.62rem)}.p3e-game-shell .p3e-hud-item strong{font-size:clamp(.68rem,2.75vw,.88rem)}}@media(max-width:379px),(max-height:700px){.p3e-shell.p3e-game-shell,.p3e-game-shell{padding-right:5px;padding-left:5px}.p3e-hud{min-height:52px}.p3e-hud-item{padding-right:4px;padding-left:4px}.p3e-scene{min-height:270px}.p3e-scene-copy{width:min(90%,315px);max-height:330px}.p3e-stat-dock{padding:3px}.p3e-game-shell .p3e-tab{min-height:48px}}@media(min-width:456px){.p3e-shell.p3e-game-shell,.p3e-game-shell{min-height:calc(100dvh - 24px);margin-top:12px;margin-bottom:12px;border:1px solid rgba(74,54,31,.3);border-radius:18px;box-shadow:0 18px 50px #29302538}}@media(prefers-reduced-motion:reduce){.p3e-game-shell *,.p3e-game-shell *:before,.p3e-game-shell *:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}html:has(:is(.p3e-game-shell,.p3e-birth-screen)),body:has(:is(.p3e-game-shell,.p3e-birth-screen)){width:100%;height:100dvh;min-height:0;max-height:100dvh;overflow:hidden;overscroll-behavior:none}#app:has(>:is(.p3e-game-shell,.p3e-birth-screen)){height:100dvh;min-height:0;max-height:100dvh;overflow:hidden}.p3e-shell.p3e-game-shell,.p3e-game-shell{position:relative;display:flex;flex-direction:column;width:min(100%,455px);height:100dvh;min-height:0;max-height:100dvh;margin:0 auto;padding:max(8px,env(safe-area-inset-top)) 8px max(8px,env(safe-area-inset-bottom));overflow:hidden;overscroll-behavior:contain}@media(min-width:456px){.p3e-shell.p3e-game-shell,.p3e-game-shell{height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);margin-top:12px;margin-bottom:12px;border:1px solid rgba(74,54,31,.3);border-radius:18px;box-shadow:0 18px 50px #29302538}}.p3e-game-shell>.p3e-hud,.p3e-game-shell>.p3e-alert,.p3e-game-shell>.p3e-tabs{flex:0 0 auto}.p3e-game-shell>.p3e-alert[hidden]{display:none}.p3e-game-shell>.p3e-content{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;overflow:hidden;overscroll-behavior:contain}.p3e-game-shell .p3e-life{display:grid;grid-template-rows:clamp(200px,27dvh,246px) minmax(0,1fr) auto auto auto;flex:1 1 auto;gap:5px;min-height:0;overflow:hidden}.p3e-game-shell .p3e-scene{height:100%;min-height:0;max-height:250px;overflow:hidden}.p3e-game-shell .p3e-scene-copy{width:min(84%,325px);max-height:46%;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.p3e-game-shell .p3e-character-stage{margin-bottom:3px}.p3e-game-shell .p3e-story-card{display:flex;flex-direction:column;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.p3e-game-shell .p3e-story-card>h2{position:sticky;z-index:2;top:0;flex:0 0 auto;padding-top:7px;padding-bottom:7px}.p3e-game-shell .p3e-story-card p{margin-top:6px;margin-bottom:6px;font-size:.86rem;line-height:1.4}.p3e-game-shell .p3e-pending,.p3e-game-shell .p3e-death{min-height:0}.p3e-game-shell .p3e-hud{min-height:54px;margin-bottom:5px}.p3e-game-shell .p3e-status{position:absolute;width:1px;height:1px;margin:0;padding:0;overflow:hidden;border:0;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.p3e-game-shell .p3e-hud-item span,.p3e-game-shell .p3e-hud-item small{font-size:clamp(.66rem,2.5vw,.76rem)}.p3e-game-shell .p3e-hud-item strong{font-size:clamp(.78rem,3.2vw,.95rem)}.p3e-game-shell .p3e-hud-menu>summary{display:grid;min-width:44px;min-height:44px;place-items:center;padding:0;cursor:pointer;list-style:none}.p3e-game-shell .p3e-stat-dock{min-height:48px;padding-top:3px;padding-bottom:3px}.p3e-game-shell .p3e-stat-item{min-height:40px;font-size:clamp(.75rem,3.1vw,.86rem)}.p3e-game-shell .p3e-time-controls{min-height:44px;padding:0}.p3e-game-shell .p3e-time-controls button{min-width:44px;min-height:44px;font-size:.78rem}.p3e-game-shell .p3e-controls{min-height:50px}.p3e-game-shell .p3e-primary[data-action=advance],.p3e-game-shell .p3e-primary.p3e-next,.p3e-game-shell [data-action=next-decision]{min-height:50px;padding-top:5px;padding-bottom:5px;font-size:1.05rem}.p3e-game-shell .p3e-tabs{position:static;bottom:auto;z-index:12;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;order:99;margin:5px 0 0;padding:4px}.p3e-game-shell .p3e-tab{min-height:48px;font-size:.8rem}.p3e-game-shell .p3e-placeholder{flex:1 1 auto;min-height:0;height:100%;overflow:hidden}.p3e-birth-screen{display:grid;grid-template-rows:minmax(0,1fr);flex:1 1 auto;height:100%;min-height:0;overflow:hidden;padding:4px}#app>.p3e-birth-screen{height:100dvh;padding:max(8px,env(safe-area-inset-top)) 8px max(8px,env(safe-area-inset-bottom))}.p3e-birth-card{display:flex;flex-direction:column;height:100%;min-height:0;max-height:100%;overflow:hidden;border:3px solid var(--game-paper-edge, #8b6b3d);border-radius:15px;color:var(--game-ink, #342719);background:var(--game-paper, #fff6dc);box-shadow:0 4px #4c311659,inset 0 0 0 2px #ffffff8a}.p3e-game-shell>.p3e-birth-card{flex:1 1 auto;min-height:0}.p3e-birth-hero{display:flex;flex:0 0 auto;flex-direction:column;justify-content:flex-end;min-height:104px;padding:12px 14px;color:#fff;background:linear-gradient(180deg,#12486c1f,#1f462fb8),url(./life-sim-village-landscape-BpeDvKZf.avif) center 88% / cover;text-shadow:0 2px 2px rgba(25,24,17,.75)}.p3e-birth-country{display:flex;align-items:center;gap:9px;margin:0;font-size:clamp(1.15rem,5vw,1.55rem);font-weight:900;line-height:1.2;overflow-wrap:anywhere}.p3e-birth-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px;flex:1 1 auto;min-height:0;margin:9px 12px 0;padding-bottom:6px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.p3e-birth-grid>*{margin:0;overflow-wrap:anywhere}.p3e-birth-grid dt,.p3e-birth-grid small,.p3e-birth-grid .p3e-birth-label,.p3e-birth-grid .p3e-kv dt{color:var(--game-muted, #705f48);font-size:.72rem;font-weight:700;line-height:1.25}.p3e-birth-grid dd,.p3e-birth-grid strong,.p3e-birth-grid .p3e-kv dd{margin:1px 0 0;font-size:.84rem;font-weight:800;line-height:1.3}.p3e-birth-grid .p3e-kv{grid-column:1 / -1}.p3e-birth-story{flex:0 1 auto;min-height:0;max-height:5.1em;margin:5px 12px;overflow-y:auto;overscroll-behavior:contain;color:#594329;font-size:.8rem;line-height:1.4;scrollbar-width:thin}.p3e-birth-actions{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.4fr);gap:7px;flex:0 0 auto;padding:8px 10px 10px;border-top:1px solid rgba(112,82,47,.28);background:#fff6dcfa}.p3e-birth-actions button{min-width:44px;min-height:48px;border:2px solid #665033;border-radius:10px;padding:6px 9px;font:inherit;font-size:.84rem;font-weight:900;cursor:pointer}.p3e-birth-actions [data-action=reroll-birth]{color:#3d3020;background:linear-gradient(#fff7dc,#e7c992)}.p3e-birth-actions [data-action=start-life]{color:#fffdf0;border-color:var(--game-orange-dark, #a84b05);background:linear-gradient(180deg,#ffac25,var(--game-orange, #f58b13))}@media(max-height:700px){.p3e-game-shell .p3e-life{grid-template-rows:clamp(140px,26dvh,175px) minmax(46px,1fr) auto auto auto;gap:3px}.p3e-game-shell .p3e-scene{max-height:180px}.p3e-game-shell .p3e-hud{min-height:50px;margin-bottom:3px}.p3e-game-shell .p3e-story-card>h2{padding-top:5px;padding-bottom:5px}.p3e-game-shell .p3e-story-card p{font-size:.82rem;line-height:1.35}.p3e-game-shell .p3e-option,.p3e-choice-list .p3e-option{min-height:48px}.p3e-game-shell .p3e-stat-dock{min-height:44px}.p3e-game-shell .p3e-stat-item{min-height:36px}.p3e-game-shell .p3e-primary[data-action=advance]{min-height:46px;font-size:1rem}.p3e-game-shell .p3e-tab{min-height:44px}.p3e-birth-hero{min-height:76px;padding:9px 12px}.p3e-birth-country{font-size:1.1rem}.p3e-birth-grid{margin-top:6px;gap:4px 9px}.p3e-birth-story{max-height:3.2em;font-size:.78rem}.p3e-birth-actions{padding-top:5px;padding-bottom:6px}.p3e-birth-actions button{min-height:44px}}@media(max-width:379px){.p3e-shell.p3e-game-shell,.p3e-game-shell{padding-right:5px;padding-left:5px}.p3e-birth-grid{gap:5px 8px}}.p3e-shell.p3e-game-shell .p3e-life,.p3e-game-shell .p3e-life{display:grid;grid-template-columns:minmax(0,1fr)!important;grid-auto-flow:row;grid-template-rows:clamp(200px,27dvh,246px) minmax(0,1fr) auto auto auto;gap:5px;min-height:0;overflow:hidden}.p3e-game-shell .p3e-hud{grid-template-columns:minmax(0,.9fr) minmax(0,.8fr) minmax(0,.7fr) minmax(0,1.1fr) minmax(0,1.1fr) 44px;min-height:54px;margin-bottom:5px;padding:4px}.p3e-game-shell .p3e-hud>.p3e-game-title{align-self:center;margin:0;padding:0 3px;overflow:hidden;color:#49331c;font-size:clamp(.72rem,2.4vw,.86rem);font-weight:900;line-height:1.1;white-space:nowrap}.p3e-game-shell .p3e-hud-item strong{overflow:hidden;font-size:clamp(.82rem,3.2vw,.98rem);text-overflow:ellipsis;white-space:nowrap}.p3e-game-shell .p3e-hud-item span,.p3e-game-shell .p3e-hud-item small{font-size:clamp(.68rem,2.5vw,.78rem)}.p3e-game-shell .p3e-scene{height:100%;min-height:0;max-height:min(250px,30dvh);overflow:hidden}.p3e-game-shell .p3e-story-card{display:flex;flex-direction:column;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scroll-padding-top:44px;scrollbar-width:thin;padding-bottom:4px}.p3e-game-shell .p3e-story-card>h2{position:sticky;z-index:2;top:0;flex:0 0 auto;pointer-events:none;padding-top:7px;padding-bottom:7px}.p3e-game-shell .p3e-story-card p,.p3e-game-shell .p3e-story-card .p3e-death p{margin-top:6px;margin-bottom:6px;font-size:.9rem;line-height:1.45}.p3e-game-shell .p3e-event-name{font-size:1rem}.p3e-game-shell .p3e-hint{margin:0;font-size:.9rem;line-height:1.35}.p3e-game-shell .p3e-story-card>.p3e-pending{flex:0 0 auto;margin:8px 9px 10px;border-width:2px}.p3e-game-shell .p3e-option{font-size:.9rem;scroll-margin-top:44px}.p3e-game-shell .p3e-life:has(.p3e-pending) .p3e-option{min-height:58px;border:3px solid #c07a18;border-radius:11px;padding:9px 34px 9px 12px;color:#3b2810;background:linear-gradient(180deg,#fffdf2,#ffe9b0);box-shadow:0 3px #9b6413,inset 0 1px #fff;font-size:.95rem;font-weight:900}.p3e-game-shell .p3e-life:has(.p3e-pending) .p3e-time-controls{opacity:.82;filter:saturate(.72)}.p3e-game-shell .p3e-stat-dock{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-content:center;min-height:44px;max-height:66px;padding:3px;overflow:hidden}.p3e-game-shell .p3e-stat-item{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto 6px;align-content:center;gap:1px 2px;min-height:44px;padding:2px 3px;font-size:.75rem;line-height:1.2}.p3e-game-shell .p3e-stat-label{overflow:hidden;font-size:.75rem;white-space:nowrap;text-overflow:ellipsis}.p3e-game-shell .p3e-stat-item strong{font-size:.86rem}.p3e-game-shell .p3e-stat-meter{grid-column:1 / -1;display:block;height:6px;overflow:hidden;border:1px solid #70522f;border-radius:999px;background:#d8c9a9}.p3e-game-shell .p3e-stat-meter>i{display:block;height:100%;background:linear-gradient(90deg,#3dbd78,#7cd69b)}.p3e-game-shell .p3e-time-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;min-height:0;padding:0;overflow:visible}.p3e-game-shell .p3e-time-controls button{min-width:0;min-height:44px;padding:2px 1px;overflow:hidden;font-size:.75rem;line-height:1.15;text-align:center;white-space:nowrap}.p3e-game-shell .p3e-time-controls .p3e-jump-button{grid-column:span 2;font-size:.8rem;font-weight:900}.p3e-game-shell .p3e-time-controls button:disabled{opacity:.55;cursor:not-allowed}.p3e-game-shell .p3e-life:has(.p3e-scene-death){grid-template-rows:clamp(180px,26dvh,246px) minmax(0,1fr) auto;gap:6px}.p3e-game-shell .p3e-life:has(.p3e-scene-death) .p3e-stat-dock,.p3e-game-shell .p3e-life:has(.p3e-scene-death) .p3e-time-controls,.p3e-game-shell .p3e-life:has(.p3e-scene-death) .p3e-controls{display:none}.p3e-game-shell .p3e-story-card:has(>.p3e-death){justify-content:safe center;padding:0;border:0;border-radius:0;background:none;box-shadow:none}.p3e-game-shell .p3e-story-card:has(>.p3e-death)>h2{display:none}.p3e-game-shell .p3e-story-card:has(>.p3e-death)>:not(h2):not(.p3e-death){text-align:center}.p3e-game-shell .p3e-story-card>.p3e-death{display:flex;flex:0 0 auto;flex-direction:column;gap:9px;margin:10px 0 12px;padding:12px;border:2px solid #b9863f;border-radius:12px;background:linear-gradient(180deg,#fffdf3,#fff3d6);box-shadow:0 8px 22px #29302538,inset 0 0 0 2px #fff9}.p3e-game-shell .p3e-story-card>.p3e-death>h3{margin:0;color:#7a3d12;font-size:1.05rem;line-height:1.3}.p3e-game-shell .p3e-story-card>.p3e-death>p{margin:0;font-size:.9rem;line-height:1.5}.p3e-game-shell .p3e-story-card>.p3e-death>[data-action=rebirth]{min-height:52px;border:3px solid #a84b05;border-radius:12px;padding:8px 14px;color:#fffdf0;background:linear-gradient(180deg,#ffac25,#f58b13);box-shadow:0 4px #743c09;font-size:1.05rem;font-weight:900}.p3e-game-shell .p3e-life:has(.p3e-pending) .p3e-controls{display:none}@media(max-height:700px){.p3e-shell.p3e-game-shell .p3e-life,.p3e-game-shell .p3e-life{grid-template-rows:clamp(118px,22dvh,160px) minmax(46px,1fr) auto auto auto;gap:3px}.p3e-game-shell .p3e-life:has(.p3e-scene-death){grid-template-rows:clamp(118px,22dvh,160px) minmax(46px,1fr) auto;gap:4px}.p3e-game-shell .p3e-hud{min-height:50px;margin-bottom:3px}.p3e-game-shell .p3e-story-card p,.p3e-game-shell .p3e-story-card .p3e-death p{font-size:.875rem;line-height:1.4}.p3e-game-shell .p3e-story-card>h2{padding-top:5px;padding-bottom:5px}.p3e-game-shell .p3e-tab{min-height:44px}.p3e-game-shell .p3e-primary[data-action=advance],.p3e-game-shell .p3e-primary.p3e-next,.p3e-game-shell [data-action=next-decision]{min-height:46px;font-size:1rem}.p3e-shell.p3e-game-shell .p3e-life:has(.p3e-pending),.p3e-game-shell .p3e-life:has(.p3e-pending){grid-template-rows:clamp(106px,19dvh,140px) minmax(46px,1fr) auto auto auto;gap:3px}.p3e-game-shell .p3e-story-card:has(.p3e-pending)>h2{padding-top:4px;padding-bottom:4px;font-size:.9rem}.p3e-game-shell .p3e-story-card:has(.p3e-pending)>p{margin-top:3px;margin-bottom:3px}.p3e-game-shell .p3e-story-card:has(.p3e-pending)>p,.p3e-game-shell .p3e-story-card:has(.p3e-pending)>.p3e-event-name{display:none}.p3e-game-shell .p3e-story-card:has(.p3e-pending)>.p3e-pending{margin-top:4px;margin-bottom:6px}.p3e-game-shell .p3e-story-card:has(.p3e-pending) .p3e-choice-list{padding-top:4px;padding-bottom:6px}.p3e-game-shell .p3e-life:has(.p3e-pending) .p3e-option{min-height:54px;padding-top:7px;padding-bottom:7px}}.p3e-game-shell .p3e-focus{display:flex;flex:0 0 auto;flex-direction:column;gap:4px;margin:2px 6px 6px;padding:5px 7px 7px;border:2px solid var(--game-green-dark, #185439);border-radius:10px;background:linear-gradient(180deg,#fffdf1,#f3f7de);box-shadow:inset 0 0 0 1px #ffffffbf}.p3e-game-shell .p3e-focus-current{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-height:30px;margin:0;font-size:.94rem;line-height:1.35;color:var(--game-ink, #342719)}.p3e-game-shell .p3e-focus-current strong{color:var(--game-green-dark, #185439);font-size:1.02rem}.p3e-game-shell .p3e-focus-toggle,.p3e-game-shell .p3e-focus-dismiss{min-width:84px;min-height:44px;margin-left:auto;padding:8px 10px;border:2px solid var(--game-green-dark, #185439);border-radius:9px;background:#fff;color:var(--game-green-dark, #185439);font-size:.94rem;font-weight:700;cursor:pointer}.p3e-game-shell .p3e-focus-toggle:disabled,.p3e-game-shell .p3e-focus-option:disabled{opacity:.55;cursor:not-allowed}.p3e-game-shell .p3e-focus-note{margin:0;font-size:.86rem;line-height:1.4;color:var(--game-muted, #705f48)}.p3e-game-shell .p3e-focus-panel{display:flex;flex-direction:column;gap:6px;max-height:min(42dvh,320px);min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-right:2px}.p3e-game-shell .p3e-focus-panel>h3{position:sticky;z-index:1;top:0;margin:0;padding:4px 0 6px;background:#fffdf1;font-size:1rem;line-height:1.3;color:var(--game-ink, #342719)}.p3e-game-shell .p3e-focus-options{display:grid;grid-template-columns:minmax(0,1fr);gap:6px}.p3e-game-shell .p3e-focus-option{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;width:100%;min-height:54px;padding:8px 10px;border:2px solid #b7c9a4;border-radius:10px;background:#fff;color:var(--game-ink, #342719);text-align:left;cursor:pointer}.p3e-game-shell .p3e-focus-option[aria-current=true]{border-color:var(--game-green-dark, #185439);background:#eaf6e6}.p3e-game-shell .p3e-focus-option-title{font-size:1rem;font-weight:700;line-height:1.3}.p3e-game-shell .p3e-focus-option-summary{font-size:.88rem;line-height:1.4;color:var(--game-muted, #705f48)}.p3e-game-shell .p3e-focus-dismiss{width:100%;margin-left:0;border-color:#9a8b6c;color:var(--game-muted, #705f48)}.p3e-game-shell .p3e-story-card:has(>.p3e-death)>.p3e-focus{display:flex;margin-bottom:4px}.p3e-game-shell .p3e-story-card:has(>.p3e-death)>.p3e-focus>.p3e-focus-panel{display:none}@media(max-height:700px){.p3e-game-shell .p3e-focus{margin:1px 5px 4px;padding:3px 6px 5px}.p3e-game-shell .p3e-focus-panel{max-height:min(34dvh,210px)}.p3e-game-shell .p3e-focus-option{min-height:48px;padding-top:6px;padding-bottom:6px}.p3e-game-shell .p3e-focus-option-summary{font-size:.86rem}}.p3e-game-shell .p3e-focus[data-p3e-focus-expanded=true]{position:fixed;z-index:40;top:max(62px,calc(env(safe-area-inset-top) + 58px));left:50%;width:min(calc(100vw - 18px),439px);max-height:min(66dvh,520px);margin:0;padding:9px 11px 11px;transform:translate(-50%);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;border-width:3px;background:linear-gradient(180deg,#fffdf3,#f1f6dc);box-shadow:0 18px 44px #1e180c6b}.p3e-game-shell .p3e-focus[data-p3e-focus-expanded=true] .p3e-focus-panel{max-height:none;overflow-y:visible}.p3e-game-shell .p3e-focus[data-p3e-focus-expanded=true] .p3e-focus-panel>h3{position:static;background:transparent}@media(max-height:700px){.p3e-game-shell .p3e-focus[data-p3e-focus-expanded=true]{max-height:min(62dvh,360px);padding:7px 9px 9px}.p3e-game-shell .p3e-focus[data-p3e-focus-expanded=true] .p3e-focus-option{min-height:46px;padding-top:5px;padding-bottom:5px}.p3e-game-shell .p3e-focus[data-p3e-focus-expanded=true] .p3e-focus-panel>h3{padding-top:2px;padding-bottom:3px}}.p3e-game-shell .p3e-focus[data-p3e-focus-expanded=true]{display:block}.p3e-game-shell .p3e-focus[data-p3e-focus-expanded=true]>.p3e-focus-current{margin-bottom:7px}.p3e-game-shell .p3e-focus[data-p3e-focus-expanded=true]>.p3e-focus-note{margin-bottom:4px}.p3e-game-shell .p3e-sr-only{position:absolute;width:1px;height:1px;margin:0;padding:0;overflow:hidden;border:0;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.p3e-game-shell .p3e-hud{grid-template-columns:minmax(0,.72fr) minmax(0,.72fr) minmax(0,1.18fr) minmax(0,1.28fr) 44px 44px;align-items:center;min-height:54px;margin-bottom:5px;padding:2px}.p3e-game-shell .p3e-hud-item{padding-right:2px;padding-left:2px}.p3e-game-shell .p3e-hud-item span,.p3e-game-shell .p3e-hud-item small{font-size:clamp(.72rem,2.6vw,.82rem)}.p3e-game-shell .p3e-hud-item strong{font-size:clamp(.84rem,3.2vw,.98rem);font-variant-numeric:tabular-nums}.p3e-game-shell .p3e-hud-sound,.p3e-game-shell .p3e-hud-menu>summary{display:grid;width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;place-items:center;margin:0;padding:0;border:2px solid #4d5b67;border-radius:9px;color:#fff;background:linear-gradient(#60798d,#394e61);font-size:1.12rem;font-weight:900;line-height:1;text-align:center;cursor:pointer;list-style:none}.p3e-game-shell .p3e-hud-menu>summary::-webkit-details-marker{display:none}.p3e-game-shell .p3e-hud-sound[aria-pressed=false]{border-color:#776957;background:linear-gradient(#8f8375,#5f554b)}.p3e-game-shell .p3e-hud-menu{position:static}.p3e-game-shell .p3e-hud-menu>.p3e-hud-menu-panel{position:absolute;z-index:60;top:calc(100% + 5px);right:3px;width:min(88vw,340px);max-height:min(68dvh,460px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;border:2px solid #665033;border-radius:11px;padding:8px;background:#fff9e2fa;box-shadow:0 10px 32px #281d1259}.p3e-game-shell .p3e-hud-menu:not([open])>.p3e-hud-menu-panel{display:none}.p3e-game-shell .p3e-menu-note,.p3e-game-shell .p3e-hud-menu-panel .p3e-mvp-notice,.p3e-game-shell .p3e-hud-menu-panel .p3e-meta{margin:0 0 6px;border:0;padding:3px 2px;color:#60461f;background:transparent;font-size:.76rem;line-height:1.4}.p3e-game-shell .p3e-hud-menu-panel .p3e-persistence-line{font-size:.8rem}.p3e-game-shell .p3e-hud-menu-panel .p3e-primary{min-height:44px;margin-top:5px;border-color:#304d60;background:#426578;font-size:.82rem}.p3e-game-shell .p3e-scene{padding:0;background-color:#8ed1ed;background-image:url(./life-sim-village-landscape-BpeDvKZf.avif);background-repeat:no-repeat;background-position:center 96%;background-size:cover}.p3e-game-shell .p3e-scene:after{display:none}.p3e-game-shell .p3e-life-log{flex:0 0 auto;min-height:0;margin:4px 0 8px;padding:0 1px}.p3e-game-shell .p3e-life-log-list{display:grid;gap:4px;margin:0;padding:0;list-style:none}.p3e-game-shell .p3e-life-log-entry{display:flex;align-items:baseline;gap:2px;min-height:30px;padding:5px 8px;border:1px solid rgba(139,107,61,.4);border-radius:8px;background:#ffffff9e;font-size:.86rem;line-height:1.4}.p3e-game-shell .p3e-life-log-entry:first-child{border-color:#389062;background:#e8fae7eb;box-shadow:inset 0 0 0 1px #ffffffb3}.p3e-game-shell .p3e-life-log-when{flex:0 0 auto;color:#6a5334;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}.p3e-game-shell .p3e-life-log-sep{flex:0 0 auto;color:#a1885d}.p3e-game-shell .p3e-life-log-text{min-width:0;overflow-wrap:anywhere}.p3e-game-shell .p3e-life-log-empty{font-size:.86rem}.p3e-game-shell .p3e-story-card:has(>.p3e-death)>.p3e-life-log{text-align:left}@media(max-height:700px){.p3e-game-shell .p3e-hud{min-height:50px;margin-bottom:3px}.p3e-game-shell .p3e-hud-item span,.p3e-game-shell .p3e-hud-item small{font-size:.72rem}.p3e-game-shell .p3e-hud-item strong{font-size:.84rem}.p3e-game-shell .p3e-life-log{margin:2px 0 4px}.p3e-game-shell .p3e-life-log-entry{min-height:28px;padding:3px 6px;font-size:.82rem}}.p3e-game-shell>.p3e-compare-strip{display:grid;flex:0 0 auto;grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:22px 22px;align-items:center;gap:0 4px;margin:0 0 2px;padding:0 3px;border:1px solid rgba(139,107,61,.42);border-radius:8px;background:#fff6dcdb;box-shadow:inset 0 1px #fff9}.p3e-game-shell .p3e-compare-row{display:flex;min-width:0;min-height:22px;gap:5px;font-size:.7rem;line-height:1.25;white-space:nowrap}.p3e-game-shell .p3e-compare-label{flex:0 0 auto;color:#6a5334;font-weight:900}.p3e-game-shell .p3e-compare-text{min-width:0;overflow:hidden;font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap}.p3e-game-shell .p3e-compare-unavailable .p3e-compare-text{color:#7b684a;font-weight:600}.p3e-game-shell .p3e-compare-estimate{grid-column:2;grid-row:1 / span 2;width:44px;min-width:44px;height:44px;min-height:44px;border:1px solid #8b6b3d;border-radius:9px;padding:0;color:#4b371b;background:#f4e3b6;font-size:.7rem;font-weight:900;line-height:1.2;touch-action:manipulation}.p3e-game-shell .p3e-compare-estimate[aria-expanded=true]{background:#e2c98c}.p3e-game-shell .p3e-compare-note{grid-column:1 / -1;margin:2px 0 0;padding:2px 3px;color:#5d4725;font-size:.68rem;line-height:1.35}.p3e-game-shell .p3e-compare-note[hidden]{display:none}.p3e-game-shell .p3e-menu-title{margin:0 0 6px;padding:0 2px 5px;border-bottom:2px solid rgba(102,80,51,.45);color:#3f2d14;font-size:.98rem;font-weight:900;letter-spacing:.02em;line-height:1.25}.p3e-game-shell .p3e-focus.p3e-focus-required>.p3e-focus-panel{border-color:#b35b18;box-shadow:0 8px 26px #783c0a47}.p3e-game-shell .p3e-focus.p3e-focus-required .p3e-focus-current{color:#7c3a0b;font-weight:800}@media(max-height:700px){.p3e-game-shell>.p3e-compare-strip{margin-bottom:2px;padding:1px 3px}.p3e-game-shell .p3e-compare-row{font-size:.68rem;line-height:1.15}.p3e-game-shell .p3e-compare-estimate{width:44px;min-width:44px;height:44px;min-height:44px;font-size:.66rem}}
