/* Bir Ömür — an illustrated place to live. */
body[data-screen="game"]{background:radial-gradient(ellipse at 82% 8%,#203e3829,transparent 47%),#0b171e;color:#dfe8e3}
body[data-screen="game"] main{max-width:1440px;padding:0 36px}
body[data-screen="game"] header{background:#0b171ec9;border-color:#a7baa515}
body[data-screen="game"] .game-top{margin:26px 0 23px}
body[data-screen="game"] .game-top h1{font-size:28px;font-weight:500;letter-spacing:-.9px}
body[data-screen="game"] .eyebrow{font-size:9px;letter-spacing:2px;color:#c6d6b0}
body[data-screen="game"] .dashboard{grid-template-columns:244px minmax(0,1fr);gap:26px;align-items:start}
body[data-screen="game"] .center-stack{gap:17px!important;min-width:0}
body[data-screen="game"] .left-stack{position:sticky;top:150px;display:grid;gap:18px;min-width:0}
body[data-screen="game"] .card{border:1px solid #a9bdab24;background:#12242ac7;border-radius:16px;box-shadow:0 9px 30px #0000000a}
body[data-screen="game"] .profile{padding:23px 20px 0;overflow:hidden}
body[data-screen="game"] .profile-identity{display:block}
body[data-screen="game"] .profile-identity .avatar{width:83px;height:100px;margin:0 0 20px;border-radius:18px!important;background:radial-gradient(ellipse at 50% 30%,#5e7864,#2c4b45)!important;border:1px solid #9aaf8f55;box-shadow:inset 0 0 25px #10242c33}
.life-character{image-rendering:auto!important;overflow:visible}
body[data-screen="game"] .profile-kicker{font-size:8px;letter-spacing:1.25px;color:#adbfac}
body[data-screen="game"] .profile h2{font-size:25px;font-weight:500;line-height:1.3;margin:10px 0 9px;color:#f0eee0}
body[data-screen="game"] .profile p{font-size:12px;line-height:1.75;color:#b2c3bb}
.atelier-profile-details{margin-top:20px;border-top:1px solid #aec4b21a}
.atelier-profile-details>summary,.atelier-wallet-details>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;font-size:11px;color:#becfc2;padding:15px 0;line-height:1.6}
.atelier-profile-details>summary::-webkit-details-marker,.atelier-wallet-details>summary::-webkit-details-marker,.atelier-life-trace>summary::-webkit-details-marker{display:none}
.atelier-profile-details>summary>span,.atelier-wallet-details>summary>span{font-size:16px;color:#adc49b;transition:transform .2s}
.atelier-profile-details[open]>summary>span,.atelier-wallet-details[open]>summary>span{transform:rotate(180deg)}
body[data-screen="game"] .profile .atelier-profile-details dl{margin:0;padding:2px 0 13px;border:0}
body[data-screen="game"] .profile .atelier-profile-details dl div{font-size:11px;padding:8px 0}
.atelier-chapter{border-top:1px solid #aec4b21a;margin:0 -20px;padding:16px 20px;background:#6e8b6b0b}
.atelier-chapter>span{font-size:9px;letter-spacing:1.3px;color:#bdcf9b;display:block}
.atelier-chapter>b{display:block;font-size:12px;font-weight:500;color:#c9d6c8;margin-top:7px;line-height:1.7}
body[data-screen="game"] .wealth-card{padding:21px 20px}
body[data-screen="game"] .wealth-card .card-heading{font-size:12px;color:#b5c9ba;margin-bottom:15px}
body[data-screen="game"] .wealth-card .card-heading>span{font-size:8px;letter-spacing:.9px;color:#94ad9f;float:right;margin-top:3px}
body[data-screen="game"] .balance-amount{font-size:31px;font-weight:500;color:#e8e9c7;line-height:1.3;margin:0 0 9px;overflow-wrap:anywhere}
body[data-screen="game"] .wealth-card>p{font-size:10px;line-height:1.8;color:#9fb5ab}
.atelier-wallet-details{border-top:1px solid #aec4b21a;margin-top:17px}
body[data-screen="game"] .wealth-card .moneyrows>div{font-size:11px;padding:10px 0;gap:8px}
body[data-screen="game"] .wealth-link{font-size:11px;min-height:43px;padding:12px 13px;border-color:#8ba28355;margin-top:4px;background:#8ca47a08;border-radius:8px}
body[data-screen="game"] .atelier-life-trace{padding:0 20px}
.atelier-life-trace>summary{font-size:12px;cursor:pointer;list-style:none;color:#c6d3c5;padding:18px 0;display:flex;justify-content:space-between}
.atelier-life-trace>summary:after{content:'⌄';color:#adc49b}
.atelier-life-trace[open]>summary:after{transform:rotate(180deg)}
.atelier-life-trace .lifemap-caption{padding:14px 0 20px}
body[data-screen="game"] .atelier-vitals{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;background:#14272b;border-color:#a1b79f29;padding:0;margin:0;border-radius:13px;box-shadow:none;overflow:hidden}
body[data-screen="game"] .atelier-vitals .stat{position:relative;margin:0;padding:15px 15px 13px;min-width:0;border-right:1px solid #a8bdab1a;display:grid;grid-template-columns:18px minmax(0,1fr);gap:9px}
body[data-screen="game"] .atelier-vitals .stat:last-child{border:0;margin:0}
body[data-screen="game"] .atelier-vitals .stat>.vital-icon{display:flex;align-items:center;justify-content:center;margin:0;grid-row:1/3;color:#b5caa6}
.vital-icon svg{width:17px;height:17px}
body[data-screen="game"] .atelier-vitals .stat>div:first-of-type{font-size:11px;display:flex;align-items:center;justify-content:space-between;gap:6px;line-height:1.5;margin:0;color:#bbcfc3}
body[data-screen="game"] .atelier-vitals .stat b{font-size:14px;font-weight:600;color:#eff2df;white-space:nowrap}
body[data-screen="game"] .atelier-vitals .stat b small{display:none}
body[data-screen="game"] .atelier-vitals .bar{grid-column:2;height:3px;background:#78958226;margin:0;border-radius:2px}
body[data-screen="game"] .atelier-vitals .bar i{border-radius:2px;opacity:.85}
body[data-screen="game"] .atelier-vitals [data-vital="stress"]>.vital-icon{color:#c8a7a0}
/* The scene card has its own calm palette, independent of event sentiment. */
body[data-screen="game"] .scene.atelier.living-scene{height:auto!important;border-radius:20px;isolation:isolate;overflow:hidden;border:1px solid #a9bea74a;background:radial-gradient(ellipse at 50% 39%,#36564d8a,transparent 66%),#182f34;box-shadow:0 20px 60px #00000019}
body[data-screen="game"] .scene.atelier:before,body[data-screen="game"] .scene.atelier:after{display:none}
.atelier-heading{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:25px 29px 0}
.atelier-kicker{display:flex;align-items:center;gap:7px;font-size:8px;letter-spacing:1.8px;color:#becfae;font-weight:600}
.atelier-kicker i{width:5px;height:5px;background:#c9dbaa;border-radius:50%;box-shadow:0 0 0 3px #afc99a0c}
.atelier-heading h2{font:500 23px/1.5 'Manrope',Arial,sans-serif;letter-spacing:-.7px;color:#ecebd6;margin:8px 0 0}
.atelier-view{flex-shrink:0;display:flex;align-items:center;gap:8px;color:#b6c9bd;font-size:10px;min-height:38px;padding:10px 11px;border:1px solid #a1b59e33;background:#a4ba9d06;border-radius:9px}
.atelier-view svg{width:15px;height:15px}
.atelier-view:hover{background:#bcd4a717;color:#e2edcf;border-color:#b9cfa577}
.atelier-location{position:absolute;left:29px;top:110px;z-index:2;max-width:42%}
.atelier-location>span{display:block;font-size:12px;color:#d9e3d5;line-height:1.7;font-weight:500}
.atelier-location>small{display:block;font-size:10px;color:#a9beb0;line-height:1.7;margin-top:2px}
.atelier-age{position:absolute;top:111px;right:29px;z-index:2;display:flex;align-items:baseline;gap:5px;color:#d0d8b9}
.atelier-age>b{font:400 35px/1 'Manrope',Arial,sans-serif;letter-spacing:-2px}
.atelier-age>span{font-size:8px;letter-spacing:1.1px;color:#acbfad}
.atelier-canvas{position:relative;width:100%;max-height:425px;overflow:hidden;margin-top:7px;line-height:0}
.atelier-canvas>.atelier-room{display:block;width:100%;height:auto;max-height:425px;margin:0 auto;overflow:visible}
.atelier-room{overflow:visible;image-rendering:auto;user-select:none}
.atelier-room>g{transform-box:view-box}
.atelier-caption{position:relative;z-index:2;padding:14px 25px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #a5ba9e18;background:#0c202526}
.atelier-caption>span{display:flex;align-items:center;gap:8px;font-size:11px;line-height:1.7;color:#d0ddc8;min-width:0}
.atelier-caption>span svg{width:19px;height:19px;flex-shrink:0;color:#b6cc9e}
.atelier-caption>button{display:flex;align-items:center;gap:7px;font-size:10px;white-space:nowrap;color:#adc5b5;min-height:34px}
.atelier-caption>button svg{height:15px;width:15px}
.atelier-caption>button:hover{color:#e9efd1}
.atelier-household{position:relative;background:#12272ec9;border-top:1px solid #acc0a61a;padding:17px 23px 19px}
.atelier-household-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 11px}
.atelier-household-title>b{font-size:11px;font-weight:500;color:#d8e3ce}
.atelier-household-title>span{font-size:9px;color:#96b1a6;line-height:1.5}
.atelier-people{display:flex;align-items:center;gap:9px;overflow-x:auto;padding-bottom:3px;scrollbar-width:thin;scrollbar-color:#5f7c68 transparent}
.atelier-person-chip{flex-shrink:0;display:flex;align-items:center;gap:8px;background:#708b7a0a;border:1px solid #a9c09a1c;border-radius:10px;padding:5px 10px 5px 5px;min-height:50px;text-align:left;min-width:104px;transition:border-color .2s,background .2s}
.atelier-person-chip:hover,.atelier-person-chip:focus-visible{background:#a2b78b14;border-color:#b4cb9470}
.atelier-person-chip.is-self{background:#a6bb7f0a;border-color:#b7c88d40}
.atelier-chip-art{width:31px;height:38px;background:#75978220;border-radius:6px;overflow:hidden;flex-shrink:0}
.atelier-chip-art>.life-character{width:31px;height:41px}
.atelier-person-chip>span:last-child>b{display:block;font-size:11px;font-weight:500;color:#dce5d6;line-height:1.5}
.atelier-person-chip>span:last-child>small{display:block;font-size:9px;color:#9fb7aa;line-height:1.5;margin-top:2px}
.atelier-person-chip.is-self b{color:#d9e5b2!important}
.atelier-pet-chip{display:flex;align-items:center;flex-shrink:0;gap:6px;padding:0 5px;font-size:10px;color:#c2d2bf;white-space:nowrap}
.atelier-pet-chip>svg{height:33px;width:33px;image-rendering:pixelated}
/* A quieter journal directly below the living world. */
body[data-screen="game"] .tabs{gap:5px!important;padding:5px!important;background:#12262b!important;border:1px solid #a5bc9e29!important;border-radius:12px}
body[data-screen="game"] .tabs .tab{display:flex;align-items:center;justify-content:center;gap:9px;min-height:50px;padding:12px 10px!important;font-size:13px!important;font-weight:500;color:#a9c1b7;border-radius:8px}
body[data-screen="game"] .tabs .tab svg{width:16px;height:16px;flex-shrink:0}
body[data-screen="game"] .tabs .tab.active{background:#354a36!important;border-color:#adc58e55!important;color:#e4edc3!important;box-shadow:0 2px 10px #04110a12}
body[data-screen="game"] .flow-tools{gap:10px;margin-top:-5px;margin-bottom:0;align-items:start}
body[data-screen="game"] .focus-compact{border-radius:10px;background:#13272c;border-color:#a8ba9c29}
body[data-screen="game"] .focus-compact>summary{font-size:11px;min-height:44px;padding:11px 14px}
body[data-screen="game"] .focus-compact>summary>b{font-size:11px;color:#d8e3c1;font-weight:500}
body[data-screen="game"] .capsule-mini{border:1px solid #aab3c82e;min-height:44px;border-radius:10px;padding:11px 14px;background:#202a3a54;color:#c7cbd7;font-size:13px}
body[data-screen="game"] .capsule-mini>span{font-size:10px}
.atelier-journal{border:1px solid #9bad9b1c;border-radius:15px;padding:23px 25px 16px;background:#11222869}
.atelier-journal-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 0 20px}
.atelier-journal-heading .section-kicker{font-size:7px;letter-spacing:1.5px;color:#95ad9c}
.atelier-journal-heading h2{font:500 21px/1.5 'Manrope',Arial,sans-serif;letter-spacing:-.5px;margin:8px 0 0;color:#e6e7d4}
.atelier-journal-heading>span{font-size:10px;color:#a2b8a9;white-space:nowrap}
body[data-screen="game"] .atelier-journal .inline-controls{margin:0 0 21px;padding:0 0 16px;border-bottom:1px solid #a5b89e14}
body[data-screen="game"] .atelier-journal .inline-controls button{font-size:10px;color:#a0b6a9;min-height:32px}
body[data-screen="game"] .atelier-journal .log{position:relative;border-left:1px solid #81977833;background:transparent;border-radius:0;margin:0;padding:0 29px 27px 24px;box-shadow:none}
body[data-screen="game"] .atelier-journal .log:before{width:6px;height:6px;top:3px;left:-3.5px;background:#789386;border:2px solid #14272a;box-shadow:none}
body[data-screen="game"] .atelier-journal .log>small{font-size:8px;letter-spacing:1px;color:#94aea0;margin:0 0 9px;display:block}
body[data-screen="game"] .atelier-journal .log h3{font:500 16px/1.6 'Manrope',Arial,sans-serif!important;color:#dce6da;margin:0 0 8px;letter-spacing:-.2px}
body[data-screen="game"] .atelier-journal .log p{font-size:13px!important;line-height:1.95;color:#b4c9bc;margin:0;max-width:720px}
body[data-screen="game"] .atelier-journal .log[data-tone="positive"] h3{color:#bcd49e}
body[data-screen="game"] .atelier-journal .log[data-tone="positive"]:before{background:#a9c788}
body[data-screen="game"] .atelier-journal .log[data-tone="negative"] h3{color:#dda59b}
body[data-screen="game"] .atelier-journal .log[data-tone="negative"]:before{background:#d1958c}
body[data-screen="game"] .atelier-journal .log.atelier-epic{border-radius:0 12px 12px 0;background:linear-gradient(100deg,#bda7750b,transparent 90%);margin-bottom:21px;padding-top:16px;padding-bottom:19px;border-left-color:#c2af726b}
body[data-screen="game"] .atelier-journal .log.atelier-epic:before{top:22px;background:#c9b781}
.atelier-epic-label{display:flex;align-items:center;gap:6px;font-size:7px;letter-spacing:1.5px;color:#c6b886;margin-bottom:11px}
.atelier-epic-label>svg{height:11px;width:11px}
body[data-screen="game"] .atelier-journal .star{right:0;top:0;color:#849d8c;font-size:16px;min-width:28px;min-height:28px}
body[data-screen="game"] .atelier-journal .star.on{color:#d4bb7e}
body[data-screen="game"] .plan-strip{margin-top:-4px;border:1px solid #a9bd9639;border-radius:11px;background:#6b815417}
body[data-screen="game"] .plan-strip>summary{padding:13px 17px;font-size:11px;color:#c6d7b5}
body[data-screen="game"] .unlock-notice{background:#263f2f;border-color:#9fbf7d66;border-radius:11px;margin:0;font-size:11px;padding:14px 16px}
body[data-screen="game"] .unlock-notice b{font-weight:500;font-size:12px;line-height:1.7}
body[data-screen="game"] .unlock-notice>span{font-size:7px;letter-spacing:1px}
body[data-screen="game"] .year-console{border:1px solid #a4bc9a38;background:#102329ee;border-radius:13px;padding:13px 20px;gap:9px 20px;margin-bottom:23px;box-shadow:0 8px 25px #00000018}
body[data-screen="game"] .time-actions button{border-radius:7px;font-size:11px;min-height:40px}
body[data-screen="game"] .time-actions .speed-buttons{border-radius:8px}
body[data-screen="game"] .time-actions .skip-choice{background:#cfdda8;border-color:#cfdda8;color:#253a2e}
body[data-screen="game"] .time-actions .speed-buttons .selected{background:#496047;color:#e0edc9}
body[data-screen="game"] .year-flow{padding-top:9px;border-color:#a0b89e1c}
body[data-screen="game"] .year-flow>div:first-child{margin-bottom:7px}
body[data-screen="game"] .year-progress{height:3px;border:0}
body[data-screen="game"] .year-progress i{background:linear-gradient(90deg,#85b798,#d0d8a2);box-shadow:none}
.atelier-modal-copy h2,.atelier-closeup h2,.atelier-person-card h2{font:500 28px/1.4 'Manrope',Arial,sans-serif!important;color:#e8ead5!important;letter-spacing:-.7px}
.atelier-modal-copy>p,.atelier-closeup>p{font-size:13px!important;line-height:1.9!important;color:#b6cbbd!important}
.atelier-inventory{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:23px 0}
.atelier-inventory article{display:flex;gap:13px;align-items:start;border:1px solid #9fb99a2d;border-radius:12px;padding:17px 14px;background:#91a97e08}
.atelier-inventory article>svg{height:26px;width:26px;flex-shrink:0;color:#b9cda5}
.atelier-inventory article b{font-size:12px;font-weight:500;color:#dce4cf}
.atelier-inventory article p{font-size:11px!important;line-height:1.85!important;color:#aabfac!important;margin:6px 0 0!important}
.atelier-modal-copy .atelier-modal-note{font-size:10px!important;color:#94ac9c!important;margin-top:18px!important}
.atelier-closeup-art{background:radial-gradient(ellipse at center,#4c6a4b35,transparent 70%);margin:5px -15px;overflow:auto}
.atelier-closeup-art>.atelier-room{width:100%;min-width:530px;height:auto;display:block}
.atelier-person-card{text-align:center;padding:10px 10px 0}
.atelier-person-portrait{height:150px;width:125px;border-radius:24px;background:radial-gradient(ellipse at 50% 25%,#60795b66,#284b4766);margin:0 auto 25px;border:1px solid #94b38244}
.atelier-person-portrait svg{height:100%;width:100%}
.atelier-person-card h2{margin-bottom:8px!important}
.atelier-person-card>p{font-size:13px!important;color:#b4c9b8!important}
.atelier-person-fact{font-size:13px;line-height:1.9;color:#c9d6c1;background:#a1b58a0a;border:1px solid #a8bc9327;padding:18px 20px;border-radius:11px;margin:24px 0}
.atelier-person-card>.secondary{border-color:#a4be8d5c;background:#aec48a0d;font-size:12px;border-radius:9px;color:#cfdeba}
.atelier-arrive .atelier-caption>span{animation:atelier-reveal .55s ease-out both}
.atelier-celebration{position:absolute;left:50%;top:37%;width:0;height:0;pointer-events:none}
.atelier-celebration .tiny-confetti{transform:scale(1.6)}
.character-life{transform-origin:0 -10px;animation:atelier-breathe 5s ease-in-out infinite;animation-delay:var(--person-delay,0s)}
.person-eyes{transform-origin:0 -69px;animation:atelier-blink 7s infinite;animation-delay:var(--person-delay,0s)}
.atelier-pet-breathe{transform-origin:center bottom;animation:atelier-breathe 5.8s ease-in-out infinite}
.person-wave{transform-origin:17px -46px;animation:atelier-wave 9s ease-in-out infinite;animation-delay:var(--person-delay,0s)}
.atelier-leaves{transform-origin:0 -25px;animation:atelier-leaves 8s ease-in-out infinite;animation-delay:var(--leaf-delay,0s)}
.atelier-steam{animation:atelier-steam 4s ease-in-out infinite}
.atelier-rain{animation:atelier-rain 2s linear infinite}
.atelier-paused .atelier .character-life,.atelier-paused .atelier .person-eyes,.atelier-paused .atelier .person-wave,.atelier-paused .atelier .atelier-leaves,.atelier-paused .atelier .atelier-steam,.atelier-paused .atelier .atelier-rain,.atelier-paused .atelier .atelier-pet-breathe{animation-play-state:paused}
@keyframes atelier-breathe{0%,100%{transform:translateY(0)}50%{transform:translateY(-1.4px)}}
@keyframes atelier-blink{0%,43%,47%,100%{transform:scaleY(1)}45%{transform:scaleY(.12)}}
@keyframes atelier-wave{0%,75%,100%{transform:rotate(0)}80%,90%{transform:rotate(12deg)}85%,95%{transform:rotate(-6deg)}}
@keyframes atelier-leaves{0%,100%{transform:rotate(-1deg)}50%{transform:rotate(1.4deg)}}
@keyframes atelier-steam{0%,100%{opacity:.25;transform:translateY(1px)}50%{opacity:.8;transform:translateY(-3px)}}
@keyframes atelier-rain{from{transform:translateY(7px)}to{transform:translateY(-7px)}}
@keyframes atelier-reveal{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1500px){body[data-screen="game"] main{max-width:1490px}.atelier-canvas{max-height:455px}.atelier-canvas>.atelier-room{max-height:455px}}
@media(max-width:1100px){body[data-screen="game"] main{padding:0 24px}body[data-screen="game"] .dashboard{grid-template-columns:211px minmax(0,1fr);gap:20px}body[data-screen="game"] .profile{padding:20px 17px 0}.atelier-chapter{margin:0 -17px;padding:14px 17px}body[data-screen="game"] .profile h2{font-size:23px}body[data-screen="game"] .atelier-vitals .stat{padding:13px 9px;gap:6px;grid-template-columns:15px minmax(0,1fr)}body[data-screen="game"] .atelier-vitals .stat>div:first-of-type{font-size:10px}body[data-screen="game"] .atelier-vitals .stat b{font-size:12px}.vital-icon svg{width:14px;height:14px}.atelier-heading{padding:22px 23px 0;gap:10px}.atelier-heading h2{font-size:21px}.atelier-view>span{display:none}.atelier-location{left:23px;top:105px;max-width:39%}.atelier-location>span{font-size:11px}.atelier-location>small{font-size:9px}.atelier-age{right:23px;top:105px}.atelier-canvas{margin-top:32px}.atelier-household{padding:16px 19px}.atelier-people{gap:7px}.atelier-person-chip{min-width:99px;padding-right:8px}.atelier-caption{padding:13px 20px}.atelier-caption>span{font-size:10px}.atelier-caption>button{font-size:9px}body[data-screen="game"] .tabs .tab{gap:6px;font-size:12px!important;padding:10px 7px!important}.atelier-journal{padding:22px 21px 12px}}
@media(max-width:800px){body[data-screen="game"] main{padding:0 20px}body[data-screen="game"] .dashboard{display:flex;flex-direction:column;gap:18px}body[data-screen="game"] .left-stack{position:static;display:grid;width:100%;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}body[data-screen="game"] .left-stack>.profile{grid-row:span 2}body[data-screen="game"] .left-stack>.wealth-card{padding:18px}body[data-screen="game"] .left-stack>.atelier-life-trace{padding:0 18px}body[data-screen="game"] .center-stack{width:100%}body[data-screen="game"] .profile-identity{display:flex;flex-wrap:nowrap;align-items:center;gap:17px}body[data-screen="game"] .profile-identity .avatar{width:64px;height:83px;margin:0}body[data-screen="game"] .profile h2{font-size:23px}body[data-screen="game"] .profile-kicker{font-size:7px}.atelier-profile-details{margin-top:19px}.atelier-vitals .stat{padding:15px 14px!important}.atelier-vitals .stat>div:first-of-type{font-size:11px!important}.atelier-vitals .stat b{font-size:14px!important}.atelier-canvas{margin-top:14px}.atelier-location{max-width:42%}.atelier-heading h2{font-size:23px}.atelier-household{padding:18px 22px}.atelier-caption>span{font-size:11px}.atelier-caption>button{font-size:10px}}
@media(max-width:580px){body[data-screen="game"] main{padding:0 14px}body[data-screen="game"] header{padding:18px 17px}body[data-screen="game"] .brand{font-size:23px}body[data-screen="game"] .game-top{margin:22px 0 17px;align-items:center;gap:10px}body[data-screen="game"] .game-top h1{font-size:23px;line-height:1.4;letter-spacing:-.6px;margin-top:8px}body[data-screen="game"] .game-top .eyebrow{font-size:7px;letter-spacing:1.3px}body[data-screen="game"] .game-top-meta{gap:8px}body[data-screen="game"] .game-top-meta .saved-indicator{display:none}body[data-screen="game"] .game-top-meta>button{font-size:10px;white-space:nowrap}body[data-screen="game"] .year-console{padding:12px 12px 10px;gap:11px;border-radius:11px;margin-bottom:17px;top:0}body[data-screen="game"] .clock-status{min-width:0}body[data-screen="game"] .clock-status b{font-size:11px}body[data-screen="game"] .clock-status small{font-size:9px}body[data-screen="game"] .time-actions{flex-wrap:nowrap;gap:5px;width:100%}body[data-screen="game"] .time-actions button{font-size:10px;min-height:36px;padding:8px 9px}body[data-screen="game"] .time-actions .speed-buttons{gap:1px;padding:2px}body[data-screen="game"] .time-actions .speed-buttons button{padding:5px 8px;min-height:30px}body[data-screen="game"] .time-actions .skip-choice{padding:8px 11px;flex:1}body[data-screen="game"] .skip-choice span{margin-left:7px}body[data-screen="game"] .year-flow{padding-top:9px}body[data-screen="game"] .year-flow span{font-size:8px}body[data-screen="game"] .year-flow b{font-size:7px;letter-spacing:1px}body[data-screen="game"] .left-stack{display:block}body[data-screen="game"] .left-stack>.wealth-card,body[data-screen="game"] .left-stack>.atelier-life-trace{display:none}body[data-screen="game"] .left-stack>.profile{padding:15px 16px;border-radius:12px;position:relative}body[data-screen="game"] .profile-identity .avatar{height:66px;width:53px;border-radius:12px!important}body[data-screen="game"] .profile-identity{gap:13px}body[data-screen="game"] .profile-kicker{font-size:6px;letter-spacing:1.1px}body[data-screen="game"] .profile h2{font-size:21px;margin:6px 0 5px;line-height:1.3}body[data-screen="game"] .profile p{font-size:10px;line-height:1.6;max-width:220px}.atelier-profile-details{margin-top:12px}.atelier-profile-details>summary{font-size:10px;padding:10px 0 0}.atelier-profile-details>summary>span{font-size:14px}.atelier-profile-details[open]>summary{padding-bottom:10px}body[data-screen="game"] .profile .atelier-profile-details dl{padding:0}body[data-screen="game"] .profile .atelier-profile-details dl div{font-size:11px}.atelier-chapter{display:none}body[data-screen="game"] .center-stack{gap:14px!important}body[data-screen="game"] .dashboard{gap:14px}body[data-screen="game"] .atelier-vitals{grid-template-columns:repeat(5,minmax(0,1fr));border-radius:10px}body[data-screen="game"] .atelier-vitals .stat{display:flex;flex-direction:column;align-items:stretch;gap:7px;padding:12px 8px 10px!important;border-right:1px solid #a8bdab1a}body[data-screen="game"] .atelier-vitals .stat>.vital-icon{display:none}body[data-screen="game"] .atelier-vitals .stat>div:first-of-type{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:9px!important;line-height:1.4}body[data-screen="game"] .atelier-vitals .stat b{font-size:17px!important;font-weight:500}.atelier-vitals .bar{height:3px!important;min-height:3px}.atelier-heading{padding:20px 19px 0;gap:9px}.atelier-kicker{font-size:6.5px;letter-spacing:1.5px;gap:6px}.atelier-kicker i{width:4px;height:4px}.atelier-heading h2{font-size:21px;line-height:1.4;letter-spacing:-.7px;margin-top:8px;max-width:250px}.atelier-view{min-height:34px;min-width:34px;padding:8px;border-radius:7px}.atelier-view svg{height:14px;width:14px}.atelier-location{left:19px;top:103px;max-width:60%}.atelier-location>span{font-size:10px}.atelier-location>small{font-size:8px}.atelier-age{right:20px;top:103px;gap:4px}.atelier-age>b{font-size:30px}.atelier-age>span{font-size:7px}.atelier-canvas{margin-top:58px;overflow:hidden}.atelier-canvas>.atelier-room{width:112%;max-width:none;margin-left:-6%;height:auto;min-height:0;max-height:none}.atelier-caption{padding:10px 15px;gap:8px;align-items:center}.atelier-caption>span{font-size:9px;gap:6px;max-width:65%}.atelier-caption>span svg{width:16px;height:16px}.atelier-caption>button{font-size:8px;gap:5px;min-height:34px}.atelier-caption>button svg{width:13px;height:13px}.atelier-household{padding:14px 14px 15px}.atelier-household-title{margin-bottom:10px}.atelier-household-title>b{font-size:10px}.atelier-household-title>span{font-size:8px}.atelier-people{gap:7px}.atelier-person-chip{min-width:96px;min-height:48px;padding:4px 9px 4px 4px;gap:7px;border-radius:8px}.atelier-chip-art{width:29px;height:37px}.atelier-person-chip>span:last-child>b{font-size:10px}.atelier-person-chip>span:last-child>small{font-size:8px}body[data-screen="game"] .tabs{grid-template-columns:repeat(2,minmax(0,1fr));padding:5px!important;gap:4px!important;border-radius:11px}body[data-screen="game"] .tabs .tab{font-size:12px!important;min-height:44px;padding:10px 7px!important;gap:8px}body[data-screen="game"] .tabs .tab svg{width:15px;height:15px}body[data-screen="game"] .flow-tools{gap:8px;margin-top:-2px}body[data-screen="game"] .focus-compact>summary{min-height:41px;font-size:10px;padding:10px 11px}body[data-screen="game"] .focus-compact>summary>b{font-size:10px}body[data-screen="game"] .capsule-mini{min-height:41px;padding:10px 11px}body[data-screen="game"] .capsule-mini>span{font-size:9px}.atelier-journal{padding:20px 17px 10px;border-radius:13px}.atelier-journal-heading{padding-bottom:15px}.atelier-journal-heading .section-kicker{font-size:6px;letter-spacing:1.25px}.atelier-journal-heading h2{font-size:21px;margin-top:8px}.atelier-journal-heading>span{font-size:9px}body[data-screen="game"] .atelier-journal .inline-controls{gap:3px;margin-bottom:19px;padding-bottom:12px}body[data-screen="game"] .atelier-journal .inline-controls button{font-size:9px!important;line-height:1.7;min-height:30px}body[data-screen="game"] .atelier-journal .log{padding:0 20px 25px 18px}body[data-screen="game"] .atelier-journal .log h3{font-size:16px!important;line-height:1.6}body[data-screen="game"] .atelier-journal .log p{font-size:13px!important;line-height:1.95}body[data-screen="game"] .atelier-journal .log>small{font-size:7px;line-height:1.5}body[data-screen="game"] .atelier-journal .star{font-size:15px;right:-5px;top:-5px}.atelier-inventory{grid-template-columns:1fr}.atelier-modal-copy h2,.atelier-closeup h2{font-size:25px!important}.atelier-modal-copy .section-kicker,.atelier-closeup .section-kicker{font-size:7px;line-height:1.8;display:block;max-width:88%}.atelier-closeup-art{margin:10px -10px}.atelier-closeup-art>.atelier-room{min-width:530px}.atelier-person-portrait{height:139px;width:115px}.atelier-person-card h2{font-size:27px!important}.atelier-person-card>p{font-size:12px!important}.atelier-person-fact{font-size:12px;padding:16px}body[data-screen="game"] .unlock-notice{flex-wrap:wrap;gap:6px 10px;padding:12px 14px}body[data-screen="game"] .unlock-notice>b{font-size:11px;flex-basis:75%}body[data-screen="game"] .unlock-notice>span{font-size:6px;flex-basis:100%}body[data-screen="game"] .unlock-notice button{font-size:10px}.game-tab-content{scroll-margin-top:200px}}
@media(max-width:360px){body[data-screen="game"] main{padding:0 10px}body[data-screen="game"] .time-actions button{font-size:9px;padding:8px 7px}body[data-screen="game"] .time-actions .speed-buttons button{padding:5px 6px}body[data-screen="game"] .time-actions .skip-choice{padding:8px 8px}body[data-screen="game"] .game-top h1{font-size:21px}.atelier-heading h2{font-size:19px}.atelier-location{top:98px}.atelier-age{top:99px}.atelier-canvas{margin-top:57px}.atelier-caption>button{font-size:7px}.atelier-journal-heading .section-kicker{letter-spacing:1px}}
@media(prefers-reduced-motion:reduce){.character-life,.person-eyes,.person-wave,.atelier-pet-breathe,.atelier-leaves,.atelier-steam,.atelier-rain,.atelier-arrive .atelier-caption>span{animation:none!important}.atelier-person-chip,.atelier-profile-details>summary>span,.atelier-wallet-details>summary>span{transition:none}.atelier-celebration{display:none}}
/* Resolve legacy small-screen grids so the new layout stays compact. */
body[data-screen="game"] .atelier-vitals .stat:last-child{grid-column:auto!important}
body[data-screen="game"] .profile{display:block!important}
.atelier-menu,.atelier-pocket{display:none}
@media(max-width:580px){
 header{display:flex!important;align-items:center;justify-content:space-between;gap:10px;padding-left:17px!important;padding-right:17px!important}
 header .brand{display:flex;align-items:center;flex-shrink:0;white-space:nowrap}
 header .brand>span:last-child{white-space:nowrap;min-width:0}
 header nav{display:flex!important;align-items:center;gap:7px!important;flex-wrap:nowrap}
 header #guideBtn,header #pastBtn{display:none!important}
 header .header-shop{font-size:9px!important;line-height:1.4;padding:9px 10px;white-space:nowrap;min-height:33px}
 .atelier-menu{display:flex;align-items:center;justify-content:center;width:31px;height:33px;border:1px solid #78927744;border-radius:7px;color:#b8cbb7;background:transparent}
 .atelier-menu svg{height:17px;width:17px}
 body[data-screen="game"] .game-top{display:flex!important;flex-direction:row!important;justify-content:space-between;align-items:center;margin-top:19px}
 body[data-screen="game"] .game-top-meta{display:flex;align-items:center}
 body[data-screen="game"] .time-actions{display:flex!important;grid-template-columns:none!important;flex-wrap:nowrap!important;gap:5px;width:100%}
 body[data-screen="game"] .time-actions #clockPause{font-size:0!important;min-width:36px;width:36px;min-height:36px;padding:7px;flex:0 0 36px}
 body[data-screen="game"] .time-actions #clockPause:after{content:'▷';font-size:14px;line-height:1;color:#d5e4c0}
 body.atelier-running[data-screen="game"] .time-actions #clockPause:after{content:'Ⅱ'}
 body[data-screen="game"] .time-actions .speed-buttons button{padding:5px 7px;min-width:25px;font-size:10px}
 body[data-screen="game"] .time-actions #clockYear{min-width:44px;padding:8px 6px;font-size:9px}
 body[data-screen="game"] .time-actions .skip-choice{padding:8px 9px;font-size:9px;min-width:0;flex:1;white-space:nowrap}
 body[data-screen="game"] .time-actions .skip-choice span{margin-left:4px}
 body[data-screen="game"] .atelier-vitals{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important}
 body[data-screen="game"] .atelier-vitals .stat{grid-column:auto!important;grid-row:auto!important;width:auto!important}
 body[data-screen="game"] .profile-identity{display:flex!important;grid-template-columns:none!important;flex-wrap:nowrap!important}
 body[data-screen="game"] .profile-identity>div:last-child{flex:1;min-width:0}
 body[data-screen="game"] .profile .atelier-profile-details{display:block;grid-column:auto!important}
 body[data-screen="game"] .atelier-pocket{display:flex;align-items:center;justify-content:space-between;gap:9px;border-top:1px solid #a2b79822;padding:12px 0 0;margin-top:12px;width:100%;background:none;text-align:left;color:#bdcdb9;font-size:10px}
 .atelier-pocket b{font-size:13px;color:#dbe4b8;font-weight:500;margin-left:auto}
 .atelier-pocket svg{width:14px;height:14px}
}
.atelier-menu-list{display:grid;gap:10px;margin-top:24px}
.atelier-menu-list button{text-align:left;padding:16px;border:1px solid #9bae8e3d;background:#9eb18808;color:#d4dfc5;border-radius:10px;font-size:13px}
@media(max-width:580px){body[data-screen="game"] .time-actions .speed-buttons{display:flex!important;flex:0 0 94px!important;width:94px!important;max-width:94px;gap:1px;padding:2px}body[data-screen="game"] .time-actions .speed-buttons button{flex:1!important;width:auto!important;min-width:0!important;max-width:none;padding:5px 3px!important}body[data-screen="game"] .time-actions .skip-choice{width:auto!important;overflow:hidden}body[data-screen="game"] .time-actions .skip-choice span{display:inline;white-space:nowrap}}
.atelier-pet-icon,.atelier-pet-chip>svg{image-rendering:auto!important}
.event-dialog .event-symbol{width:174px;height:87px;margin:16px 0 4px;border:0;background:none;box-shadow:none}
.event-dialog .event-symbol>.atelier-event-art{width:174px;height:87px;color:inherit}
.event-dialog .event-symbol>span{display:none}
.event-dialog .event-symbol:before,.event-dialog .event-symbol:after{display:none}
.event-dialog{border-radius:19px!important;border-color:#9db18c55!important;background:radial-gradient(ellipse at 85% 10%,#50705225,transparent 55%),#11242c!important}
.event-dialog .decision-progress{height:3px;background:#728c7430}
.event-dialog .decision-progress i{background:linear-gradient(90deg,#7eae91,#d0d7a1)}
.event-dialog .decision-option{border-radius:12px;border-color:#91ab8c38;background:#8fa78306}
.event-dialog .decision-option:hover{background:#a3b87f12;border-color:#bdce9580}
.event-dialog .decision-option.is-auto-target{border-color:#b9c68f66}
.event-dialog .event-location{color:#9fb7a2}
.event-dialog .decision-current{border-radius:10px;border-color:#829f7e2e;background:#8da17b08}
@media(max-width:580px){.event-dialog .event-symbol{width:151px;height:75px;margin:12px 0 3px}.event-dialog .event-symbol>.atelier-event-art{width:151px;height:75px}}
body[data-screen="game"] .atelier-vitals .stat>div:first-of-type{font-size:12px}
body[data-screen="game"] .atelier-vitals .stat b{font-size:16px}
body[data-screen="game"] .atelier-journal .log h3{font-size:18px!important}
body[data-screen="game"] .atelier-journal .log p{font-size:14px!important}
@media(max-width:1100px){body[data-screen="game"] .atelier-vitals .stat>div:first-of-type{font-size:11px}body[data-screen="game"] .atelier-vitals .stat b{font-size:14px}}
@media(max-width:580px){body[data-screen="game"] .atelier-vitals .stat>div:first-of-type{font-size:10px!important}body[data-screen="game"] .atelier-vitals .stat b{font-size:18px!important}body[data-screen="game"] .atelier-journal .log h3{font-size:17px!important}body[data-screen="game"] .atelier-journal .log p{font-size:14px!important}}
