.modal{background:radial-gradient(circle at 18% 16%,#91e7d762,transparent 32%),radial-gradient(circle at 81% 12%,#c5a4ea5c,transparent 34%),radial-gradient(circle at 55% 100%,#287a8066,transparent 45%),#091f35}.card{background:linear-gradient(160deg,#fffae8,#e7f3e8 44%,#fdf4df 100%);border-color:#e6c77d;box-shadow:0 0 0 6px #123b52d9,0 0 50px #7deadd32,0 34px 95px #061927e8}.opening-logo{position:relative}.opening-logo:before{animation:logoStar 3s ease-in-out infinite alternate}.opening-logo img{filter:drop-shadow(0 0 22px #e2c8798a) drop-shadow(0 10px 17px #061724)!important}.opening-logo h1{text-shadow:0 3px 0 #a16e3d,0 7px 24px #fbd78d66,0 12px 25px #031b2c!important}.meadow-scene{height:245px;box-shadow:inset 0 0 65px #072238,0 12px 23px #0b354b45}.scene-aurora{animation:auroraFlow 11s ease-in-out infinite alternate}.scene-portal{animation:portalThrum 3s ease-in-out infinite alternate;transform-origin:575px 137px}.scene-magic{animation:magicSpin 9s ease-in-out infinite alternate;transform-origin:266px 114px}.scene-treasure{filter:drop-shadow(0 0 9px #ffd77b)}.scene-angel{filter:drop-shadow(0 0 12px #f4f9c3)}.scene-caption b{font-size:20px;text-shadow:0 2px 9px #071e30,0 0 14px #f5d9899a}.scene-seal{border-color:#ffe3a4;background:#123c4ccc;box-shadow:0 0 18px #f6cc7d70}
.opening-choice-story{margin:15px 0;padding:16px 18px;border:1px solid #d7b971;border-radius:15px;background:radial-gradient(circle at 100% 0,#fff5c88a,transparent 50%),linear-gradient(120deg,#173c50,#276256);color:#fff4da;box-shadow:0 7px 16px #092d3b46}.opening-choice-story span{display:block;font-size:9px;letter-spacing:2.3px;font-weight:900;color:#f8d47f}.opening-choice-story h2{margin:5px 0 4px;font-size:19px;line-height:1.2;color:#fff6dc}.opening-choice-story p{margin:0!important;color:#dcece3!important;font-size:12px!important;line-height:1.5!important}.choice-chips{margin-top:10px;color:#ffe29c;font-size:10px;font-weight:850;letter-spacing:.4px}.wardrobe{border-color:#d7bc78;background:linear-gradient(150deg,#f5f2dd,#dcece5 60%,#d0e5e2)}.character-card{box-shadow:0 4px 0 #a2baab,0 2px 10px #0d394125}.character-card.selected{transform:translateY(-3px);box-shadow:0 0 0 2px #fff9d7,0 0 18px #f5c864b0,0 5px 0 #a97936}.mode-picker{background:#f3f3e6;border-color:#dfd0a8}
@keyframes logoStar{to{opacity:.3;transform:translateY(-7px) scale(.7)}}@keyframes auroraFlow{to{transform:translateX(15px) translateY(-7px);opacity:.4}}@keyframes portalThrum{to{transform:scale(1.12);opacity:.65}}@keyframes magicSpin{to{transform:rotate(9deg);opacity:.5}}
@media(max-width:600px){.meadow-scene{height:174px!important}.opening-choice-story{padding:12px}.opening-choice-story h2{font-size:16px}.scene-caption b{font-size:14px}}
@media(prefers-reduced-motion:reduce){.opening-logo:before,.scene-aurora,.scene-portal,.scene-magic{animation:none}}
.meadow-scene:before{content:'';position:absolute;z-index:1;inset:-20% auto -20% -45%;width:35%;transform:rotate(18deg);background:linear-gradient(90deg,transparent,#d5fff07a,transparent);animation:gatewaySweep 8s ease-in-out infinite;pointer-events:none;mix-blend-mode:screen}
.scene-rift{position:absolute;z-index:1;left:95.8%;top:65%;width:1px;height:1px;pointer-events:none;filter:drop-shadow(0 0 16px #97f8ec)}
.scene-rift i{position:absolute;left:50%;top:50%;border:2px solid #b5fff0a8;border-radius:50%;width:58px;height:96px;transform:translate(-50%,-50%) rotate(-13deg);box-shadow:0 0 12px #a3ffed, inset 0 0 16px #73e9ff70;animation:riftPulse 3s ease-in-out infinite}
.scene-rift i:nth-child(2){width:77px;height:121px;border-color:#f9e6ad85;animation-delay:-1s}.scene-rift i:nth-child(3){width:98px;height:146px;border-color:#a9b8ff57;animation-delay:-2s}
.scene-spark{position:absolute;z-index:1;color:#ffedaf;text-shadow:0 0 10px #fff,0 0 22px #81e9ee;pointer-events:none;animation:sparkLift 3.2s ease-in-out infinite}
.scene-spark-a{left:12%;top:24%;font-size:24px}.scene-spark-b{left:64%;top:20%;font-size:31px;animation-delay:-1.2s}.scene-spark-c{left:82%;top:58%;font-size:18px;animation-delay:-2.2s}
.scene-caption{background:linear-gradient(90deg,#102b3bbb,transparent);padding:8px 28px 8px 10px;border-left:2px solid #f5d98c;backdrop-filter:blur(2px)}
.go{position:relative;overflow:hidden}.go:after{content:'';position:absolute;inset:-120% auto -120% -40%;width:35%;transform:rotate(19deg);background:linear-gradient(90deg,transparent,#fff8d99c,transparent);animation:gatewaySweep 4.5s ease-in-out infinite;pointer-events:none}
.opening-enter{position:fixed;z-index:300;inset:0;display:grid;place-content:center;gap:4px;text-align:center;color:#fff6d4;background:radial-gradient(circle,#ddf9dfbd 0,#82ded4b3 13%,#225c70db 40%,#071d32f2 85%);pointer-events:none;animation:enterFlash 1s ease-out forwards}
.opening-enter span{font-size:94px;line-height:1;text-shadow:0 0 40px #fff8b6;animation:enterRune 1s ease-out forwards}.opening-enter b{font-size:clamp(19px,5vw,38px);letter-spacing:.17em;text-shadow:0 0 22px #ebda8a}
@keyframes gatewaySweep{0%,18%{left:-45%;opacity:0}43%{opacity:.75}65%,100%{left:125%;opacity:0}}
@keyframes riftPulse{50%{opacity:.5;transform:translate(-50%,-50%) rotate(13deg) scale(1.17)}}
@keyframes sparkLift{50%{opacity:.42;transform:translateY(-13px) scale(.8)}}
@keyframes enterFlash{0%{opacity:0}15%,55%{opacity:1}100%{opacity:0}}
@keyframes enterRune{to{transform:rotate(135deg) scale(1.65);opacity:0}}
@media(prefers-reduced-motion:reduce){.meadow-scene:before,.scene-rift i,.scene-spark,.go:after,.opening-enter,.opening-enter span{animation:none}.opening-enter{display:none}}
