/* Existing fortune assets own the room, fonts, header and menu. */
body[data-page=fortune-cookie] .cookie-main{max-width:540px;margin:0 auto;padding:30px 22px 24px;text-align:center;min-height:calc(100svh - 110px)}
.cookie-card{padding:8px 0 12px;background:none;border:0;box-shadow:none}
.cookie-card .cookie-tagline{font-family:var(--fortune-display-font);font-size:30px;font-weight:400;line-height:1.4;color:#ffe7bd;margin:0 0 12px}
.cookie-stage{position:relative;isolation:isolate;width:100%;height:310px;margin:0 auto;display:grid;place-items:center}
.cookie-halo{position:absolute;inset:12%;border-radius:50%;background:radial-gradient(ellipse,#efbd6830,transparent 70%)}
.cookie-art{position:absolute;width:300px;max-width:100%;overflow:visible;filter:drop-shadow(0 8px 18px #180b0580)}
.cookie-half{transform-origin:160px 120px;transition:transform .65s cubic-bezier(.2,.7,.25,1)}
.cookie-stage.opening .cookie-left,.cookie-stage.opened .cookie-left{transform:translate(-62px,-48px) rotate(-23deg) scale(.76)}
.cookie-stage.opening .cookie-right,.cookie-stage.opened .cookie-right{transform:translate(62px,-48px) rotate(23deg) scale(.76)}
.cookie-spark{fill:#f3d18c;opacity:.8}.cookie-shadow{opacity:.3}
.cookie-paper{position:relative;z-index:1;top:32px;box-sizing:border-box;width:76%;max-width:280px;padding:24px 20px;border:1px solid #d8bb86;border-radius:2px;background:linear-gradient(95deg,#e8d3a6,#fff3d6 9%,#fff7e4 88%,#e8d3a6);box-shadow:0 5px 14px #180b0545;animation:cookie-paper-unfold .45s ease-out}
.cookie-paper p{font-family:var(--fortune-brush-font);font-size:28px;font-weight:400;line-height:1.45;word-break:keep-all;overflow-wrap:anywhere;color:#50351f;margin:0}
.cookie-paper p:focus-visible{outline:2px solid #81582c;outline-offset:5px}
.cookie-actions{display:flex;flex-direction:column;align-items:center;gap:7px}
.cookie-actions .cookie-primary{max-width:260px;width:100%;min-height:46px}
body[data-page=fortune-cookie] .cookie-main .cookie-actions .cookie-replay{width:auto;min-width:120px;box-shadow:none}
.cookie-main #cookieStatus{font-size:12px;line-height:1.6;color:#f1d398;margin:12px 0 0}.cookie-main #cookieStatus:empty{display:none}
.cookie-back{display:inline-flex;align-items:center;min-height:44px;margin-top:10px;font-size:13px;color:#f0d394;text-decoration:none}.cookie-main [hidden]{display:none!important}
@keyframes cookie-paper-unfold{from{opacity:0;transform:scaleX(.3)}to{opacity:1;transform:scaleX(1)}}
@media(max-width:600px){body[data-page=fortune-cookie] .cookie-main{padding:24px 18px 20px}.cookie-card .cookie-tagline{font-size:28px}.cookie-stage{height:285px}.cookie-paper{padding:22px 16px}.cookie-paper p{font-size:27px}}
@media(max-width:350px){body[data-page=fortune-cookie] .cookie-main{padding-inline:14px}.cookie-stage{height:275px}.cookie-art{width:260px}.cookie-paper{width:78%;padding:20px 14px}.cookie-paper p{font-size:25px}}
@media(prefers-reduced-motion:reduce){.cookie-half{transition:none}.cookie-paper{animation:none}}
