.flower-game{min-height:calc(100vh - 58px);background:radial-gradient(circle at 50% 0,#27221c 0,#141210 38%,#090908 100%);color:#e8dfd0;padding:20px 14px 56px;overflow-x:hidden}.flower-shell{width:min(100%,900px);max-width:900px;margin:0 auto;min-width:0}.flower-head{border-bottom:1px solid #40382e;padding:0 2px 14px;margin-bottom:14px}.flower-head .era{font-size:10px;letter-spacing:.18em;color:#a98d68}.flower-head h1{font-family:inherit;font-size:26px;margin:5px 0 3px;color:#f1e7d7}.flower-head p{margin:0;color:#8e8376;font-size:11px;letter-spacing:.08em}.flower-progress{display:flex;gap:7px;margin-top:10px;padding:7px 0}.flower-progress i{height:7px;flex:1;background:#342f29;border-radius:999px;position:relative}.flower-progress i::after{content:'';position:absolute;inset:-9px 0}.flower-progress i.on{background:#a98d68;box-shadow:0 0 7px #a98d6855}.flower-progress i.unlocked{cursor:pointer}.story-feed{padding:4px 0 18px;min-width:0}.story-image{display:block;width:min(100%,620px);max-width:100%;margin:18px auto 22px;overflow:hidden;border-radius:8px;box-sizing:border-box}.story-image img{display:block;width:100%;max-width:100%;height:auto;max-height:440px;object-fit:cover}.chapter-art{width:min(100%,620px);max-width:100%}.story-line{font-family:inherit;font-size:16px;line-height:1.78;margin:0 0 11px;white-space:pre-wrap;color:#e6ddcf}.story-line.date{font-family:inherit;font-size:10px;letter-spacing:.16em;color:#b9986e;margin:8px 0 14px}.story-line.whisper{color:#d6c09d;font-style:italic}.story-choices{display:grid;gap:8px;opacity:0;pointer-events:none;transition:.18s;min-width:0}.story-choices.show{opacity:1;pointer-events:auto}.story-choice,.flower-next,.flower-select{border:1px solid #665640;background:#1d1915;color:#e9decd;border-radius:8px;padding:13px 14px;font-size:13px;cursor:pointer;max-width:100%}.story-choice{text-align:left}.story-choice:active,.flower-next:active,.flower-select:active{transform:translateY(1px);background:#2b231b}.flower-next{width:100%;margin-top:8px;border-color:#9b7b55;background:#30261c;color:#f3e4ce;font-weight:700}.flower-select{display:block;width:min(240px,75%);margin:12px auto;border-color:#b89464;border-radius:999px;background:linear-gradient(180deg,#4a3828,#2d241b);font-weight:700}.flower-select:disabled,.flower-next:disabled,.story-choice:disabled{opacity:.35}.flower-restart{margin-top:20px;background:none;border:0;color:#746a5f;text-decoration:underline;font-size:11px;cursor:pointer}.doll-work,.stone-game{border:1px solid #44392e;background:#15120f;padding:18px 14px;border-radius:10px;text-align:center;margin:10px 0;max-width:100%;box-sizing:border-box}.doll-preview{display:grid;place-items:center;width:120px;height:130px;margin:auto;background:radial-gradient(circle,#30281f,#17130f);border:1px dashed #665640;border-radius:10px;font-size:30px;line-height:1.15}.doll-preview i{font-style:normal;color:#766959}.doll-work p,.stone-game p{font-size:12px;color:#aa9c8b;line-height:1.6}.material-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.material{padding:12px 8px;border:1px solid #514436;border-radius:7px;background:#191511;color:#ded3c4;font-size:12px;cursor:pointer}.material.used{border-color:#9d805d;background:#30261d;color:#fff}.stone-target{font-size:52px;color:#b69a76;margin:4px}.power-bar{width:min(82%,520px);height:16px;background:#2a241d;border:1px solid #504435;border-radius:999px;position:relative;margin:18px auto}.power-bar .sweet{position:absolute;left:35%;width:30%;height:100%;background:#564b3c;border-radius:999px}.power-bar i{position:absolute;top:-5px;width:4px;height:28px;background:#e8d0a9;border-radius:2px;box-shadow:0 0 8px #e8d0a977}.room-scene{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:16px 0;max-width:100%}.room-scene button{min-width:0;min-height:76px;border:1px solid #4a3e32;background:#181410;color:#e5d7c4;border-radius:8px;font-size:25px;cursor:pointer}.room-scene small{display:block;margin-top:6px;font-size:9px;color:#9d8e7c}.room-scene .found{border-color:#c09a68;background:#34291d}.inspect-text{min-height:48px;padding:11px;border-left:2px solid #78654d;background:#15120f;color:#bbae9d;font-size:12px;line-height:1.65;box-sizing:border-box}.secret-room{margin:14px 0;padding:18px;border:1px solid #68563f;background:linear-gradient(145deg,#211a13,#100e0c);text-align:center;font-family:inherit;animation:reveal .5s ease;box-sizing:border-box;max-width:100%}.secret-room span{display:inline-block;padding:4px 10px;background:#5c472b;color:#f1d8ae;border-radius:50%;font-size:10px}.secret-room b{display:block;margin:14px 0;padding:12px;background:#d1bd99;color:#241b13;letter-spacing:.12em;transform:rotate(-1deg)}.secret-room p{font-size:13px;color:#d4c6b4}.secret-room strong{display:block;margin-top:18px;color:#ead5b4;font-size:17px}.chapter-complete{text-align:center;margin:28px 0 8px;padding:28px 10px;border-top:1px solid #514334;border-bottom:1px solid #514334;background:#15120f}.chapter-complete small{display:block;color:#8f806e;font-size:10px;letter-spacing:.1em}.chapter-complete b{display:block;margin:12px 0 4px;font-size:20px;letter-spacing:.16em;color:#e9d7bc}.chapter-complete p{margin:0;color:#ad9370;font-family:inherit}@keyframes reveal{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@media(max-width:600px){.flower-game{padding:13px 15px 42px}.flower-head h1{font-size:23px}.flower-progress{gap:6px;padding:9px 0}.flower-progress i{height:9px}.flower-progress i::after{inset:-11px 0}.story-line{font-size:15px;line-height:1.72}.story-image{width:100%;margin:12px 0;border-radius:6px}.story-image img{width:100%;height:auto;max-height:58vh;object-fit:cover}.material-grid{grid-template-columns:1fr 1fr}.room-scene{grid-template-columns:repeat(3,minmax(0,1fr))}.room-scene button{min-height:68px}.doll-work,.stone-game{padding:14px 10px}.flower-select{width:min(180px,58%);margin:7px auto;padding:9px 10px;font-size:12px}.flag-pieces{display:grid!important;grid-template-columns:repeat(4,52px);justify-content:center;gap:7px!important;margin:12px 0}.flag-pieces .flower-select{width:52px!important;min-width:52px!important;height:48px;margin:0!important;padding:4px!important;font-size:23px!important}.flag-puzzle{width:min(270px,78vw)!important;margin:15px auto!important}.flag-puzzle .taegeuk{font-size:56px!important}.flag-puzzle button{width:46px!important;height:34px!important;font-size:22px!important}.flag-puzzle button[data-slot="0"]{left:15px!important;top:14px!important}.flag-puzzle button[data-slot="1"]{right:15px!important;top:14px!important}.flag-puzzle button[data-slot="2"]{left:15px!important;bottom:14px!important}.flag-puzzle button[data-slot="3"]{right:15px!important;bottom:14px!important}}
/* Chapter 1 doll reference */
.dallae-reference{max-width:380px;margin:20px auto 22px}.dallae-reference img{display:block;width:100%;height:auto;border-radius:6px}.dallae-reference figcaption{margin-top:7px}@media(max-width:600px){.dallae-reference{max-width:300px;width:88%}}

/* Intro */
.flower-intro{padding:34px 2px 44px;font-family:inherit;color:#e8dfd0}.flower-intro h2{margin:0 0 26px;font-size:28px;color:#f1e7d7}.flower-intro p{margin:0 0 17px;font-size:16px;line-height:1.65}.flower-intro strong{color:#f0dfc5}.flower-intro-note{margin-top:24px!important}.flower-reading-note{margin-top:24px!important;color:#d6c9b7}.flower-intro #flowerIntroStart{display:inline-flex;align-items:center;justify-content:center;min-height:48px;margin-top:2px;padding:12px 22px;border:1px solid #9b7b55;border-radius:8px;background:#30261c;color:#f3e4ce;font:700 14px/1.2 inherit;letter-spacing:.02em;cursor:pointer;box-shadow:inset 0 0 0 1px #9b7b5522;transition:background .16s,border-color .16s,transform .08s}.flower-intro #flowerIntroStart:hover{background:#3b2d21;border-color:#b89464}.flower-intro #flowerIntroStart:active{transform:translateY(1px);background:#241c15}@media(max-width:600px){.flower-intro{padding:26px 2px 36px}.flower-intro h2{font-size:25px;margin-bottom:23px}.flower-intro p{font-size:15px}.flower-intro #flowerIntroStart{width:100%;box-sizing:border-box;margin-top:5px}}

/* Standalone flower page safety */
#flowerGame,#flowerGame *{box-sizing:border-box}#flowerGame .flower-shell,#flowerGame #flowerStory,#flowerGame .story-feed,#flowerGame .story-choices{max-width:100%}#flowerGame figure{padding:0}#flowerGame img{max-width:100%}.c5-story-image{width:min(100%,620px);margin:18px auto 22px;overflow:hidden;border-radius:8px}.c5-story-image img{display:block;width:100%;height:auto;max-height:440px;object-fit:cover}@media(max-width:600px){.c5-story-image{width:100%;margin:12px 0}.c5-story-image img{max-height:58vh}}

/* v34 standalone normalization: flower page must not depend on home styles */
.flower-game{width:100%;margin:0}.flower-shell{box-sizing:border-box}.flower-intro button,.flower-story button{font-family:inherit}.story-image,.chapter-art,.c5-story-image{box-sizing:border-box} @media(min-width:601px){.story-image,.chapter-art,.c5-story-image{width:min(100%,560px)}.story-image img,.c5-story-image img{max-height:380px}}@media(max-width:600px){.flower-game{width:100%;padding-left:15px;padding-right:15px}.flower-shell{width:100%;max-width:100%}.story-image,.chapter-art,.c5-story-image{width:100%;max-width:100%}.story-image img,.c5-story-image img{width:100%;max-width:100%;height:auto;max-height:none;object-fit:contain}}

/* DEV 35: final image containment. Chapter scripts inject their own styles later,
   so these selectors intentionally use higher specificity + !important. */
#flowerGame .story-feed .story-image,
#flowerGame .story-feed .chapter-art,
#flowerGame .story-feed .flower-scene-image,
#flowerGame .story-feed .chapter4-photo,
#flowerGame .story-feed .c5-story-image{display:block!important;width:min(100%,560px)!important;max-width:560px!important;margin:18px auto 22px!important;overflow:hidden!important;border-radius:8px;box-sizing:border-box}
#flowerGame .story-feed .story-image>img,
#flowerGame .story-feed .chapter-art>img,
#flowerGame .story-feed .flower-scene-image>img,
#flowerGame .story-feed .chapter4-photo>img,
#flowerGame .story-feed .c5-story-image>img{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:380px!important;object-fit:contain!important;object-position:center!important}
@media(max-width:600px){
 #flowerGame .story-feed .story-image,
 #flowerGame .story-feed .chapter-art,
 #flowerGame .story-feed .flower-scene-image,
 #flowerGame .story-feed .chapter4-photo,
 #flowerGame .story-feed .c5-story-image{width:100%!important;max-width:100%!important;margin:12px auto 18px!important}
 #flowerGame .story-feed .story-image>img,
 #flowerGame .story-feed .chapter-art>img,
 #flowerGame .story-feed .flower-scene-image>img,
 #flowerGame .story-feed .chapter4-photo>img,
 #flowerGame .story-feed .c5-story-image>img{height:auto!important;max-height:58vh!important;object-fit:contain!important}
}
/* DEV 36: center the complete story column on wide desktop screens */
@media(min-width:901px){#flowerGame.flower-game{padding-left:32px;padding-right:32px}#flowerGame .flower-shell{width:min(900px,100%);max-width:900px;margin-left:auto;margin-right:auto}}

/* DEV 39 · match GAME03 base typography */
#flowerGame,#flowerGame .flower-shell,#flowerGame .flower-story,#flowerGame .flower-intro,#flowerGame button,#flowerGame input{font-family:inherit}
