body.page-fortune{background:#f8f3e9;color:#263d4b}
.page-fortune #fortune-room{min-width:0;max-width:100%;padding-bottom:52px}
.page-fortune .fortune-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:40px;align-items:center;padding-block:52px}
.page-fortune .fortune-hero>*{min-width:0}
.page-fortune .fortune-hero h1{font-size:2.2rem;line-height:1.3;letter-spacing:-.035em;margin:16px 0 24px;word-break:normal;overflow-wrap:normal}
.page-fortune .fortune-badge{display:inline-block;padding:9px 16px;border:2px solid #8a5637;border-radius:99px;background:#fff6db;color:#714126;font-size:.9rem!important;font-weight:850;line-height:1.5}
.page-fortune .fortune-hero p{font-size:1rem;line-height:1.75}
.page-fortune .fortune-hero figure{margin:0;border:2px solid #bca27d;border-radius:24px;overflow:hidden;background:#f2e4cb;box-shadow:8px 8px 0 #e5d9c3}
.page-fortune .fortune-hero img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.page-fortune .fortune-back{display:inline-flex;align-items:center;min-height:60px;padding:12px 0;color:#153f78;font-weight:800;max-width:100%;word-break:normal;overflow-wrap:normal}
.page-fortune .fortune-desk{max-width:960px;margin:0 auto 40px;padding:36px;border:2px solid #8c7151;border-radius:26px;background:#fffdf7;box-shadow:0 14px 40px #5942290d;min-width:0}
.page-fortune .fortune-desk h2{font-size:1.6rem;line-height:1.45;letter-spacing:-.025em;margin:14px 0 18px;word-break:normal;overflow-wrap:normal}
.page-fortune #fortune-date{display:block;font-size:1rem;font-weight:800;color:#714126;line-height:1.6;overflow-wrap:normal;word-break:normal}
.page-fortune .fortune-instruction{font-size:1.05rem;font-weight:700;margin:0 0 14px;line-height:1.7}
.page-fortune .fortune-no-details{font-size:.9rem!important;margin:0 0 24px;line-height:1.7}
.page-fortune .fortune-card-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;max-width:720px;margin:24px auto 16px}
.page-fortune .fortune-card{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:14px;min-width:0;width:100%;min-height:240px;padding:18px 10px;border:4px solid #9b693d;border-radius:18px;background:linear-gradient(145deg,#224967,#16374e);color:#fff9dc;font:inherit;cursor:pointer;box-shadow:0 6px 0 #b79a72;touch-action:manipulation}
.page-fortune .fortune-card:before{content:'';position:absolute;inset:9px;border:2px solid #dfc38d;border-radius:10px;pointer-events:none;z-index:-1}
.page-fortune .fortune-card:hover{background:linear-gradient(145deg,#315e7e,#204761)}
.page-fortune .fortune-card[aria-pressed=true]{border-color:#8c381e;outline:4px solid #8c381e;outline-offset:5px;box-shadow:none}
.page-fortune .fortune-card:focus-visible,.page-fortune #fortune-next:focus-visible{outline:4px solid #ad3b1b;outline-offset:6px}
.page-fortune .fortune-card-number{font-size:1.7rem;font-weight:900;line-height:1.2;color:inherit}
.page-fortune .fortune-card-flower{position:relative;display:block;width:58px;height:58px;border:3px solid #dfc38d;transform:rotate(45deg);border-radius:18px;background:#8f4a3f}
.page-fortune .fortune-card-flower:before{content:'';position:absolute;inset:11px;border:2px solid #fff2bf;border-radius:50%;background:#d4a965}
.page-fortune .fortune-chosen{position:absolute;top:12px;right:12px;display:block;font-size:1rem;font-weight:900;line-height:1.2;color:#fff7b8}
.page-fortune .fortune-selected-note{min-height:1.75em;font-size:1rem;font-weight:800;color:#714126;margin:20px 0}
.page-fortune #fortune-empty{padding:24px;border:1px dashed #8c7151;border-radius:16px;background:#faf3e5;text-align:center;font-size:1rem;line-height:1.7}
.page-fortune .fortune-result{padding:30px;border:2px solid #8c7151;border-top:8px solid #8c381e;border-radius:16px;background:#fffaf0;margin-top:24px;min-width:0;overflow-wrap:normal;word-break:normal}
.page-fortune .fortune-result .fortune-result-card{font-size:.95rem!important;font-weight:800;color:#714126;margin:0 0 10px}
.page-fortune .fortune-result h2{font-size:1.75rem;margin:0 0 20px;line-height:1.4}
.page-fortune .fortune-speaker{font-weight:850;margin:0 0 10px;font-size:1rem}
.page-fortune .fortune-quote{font-size:1.15rem!important;line-height:1.8!important;margin:0 0 26px;font-weight:650}
.page-fortune .fortune-result-details{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:18px;margin:0 0 24px}
.page-fortune .fortune-result-details>div{min-width:0;padding:20px;border:1px solid #b8a382;border-radius:14px;background:#fff}
.page-fortune .fortune-result-details dt{font-size:.9rem;font-weight:850;color:#714126;margin-bottom:12px}
.page-fortune .fortune-result-details dd{font-size:1.05rem;font-weight:750;margin:0;line-height:1.7;overflow-wrap:normal;word-break:normal}
.page-fortune #fortune-next{width:100%;min-width:0;min-height:68px;padding:16px 20px;border:2px solid #183f69;border-radius:14px;background:#183f69;color:#fff;font:inherit;font-weight:850;line-height:1.5;white-space:normal;overflow-wrap:normal;word-break:normal;cursor:pointer;touch-action:manipulation}
.page-fortune #fortune-next:hover{background:#0e2d4e}
.page-fortune .fortune-same{font-size:.9rem!important;line-height:1.7;margin:18px 0 0}
.page-fortune .fortune-info{padding-top:24px;margin-top:30px;border-top:1px solid #b8a382}
.page-fortune .fortune-info p{font-size:.9rem!important;line-height:1.75;margin:0 0 16px;word-break:normal;overflow-wrap:normal}
.page-fortune .fortune-report{display:inline-flex;align-items:center;min-height:64px;max-width:100%;padding:12px 0;color:#153f78;font-weight:800;word-break:normal;overflow-wrap:normal}
.page-fortune .fortune-entertainment{max-width:960px;margin:0 auto;padding:28px;border:1px solid #b8a382;border-radius:18px;background:#f0ece2}
.page-fortune .fortune-entertainment h2{font-size:1.25rem;line-height:1.5;margin:0 0 16px;word-break:normal;overflow-wrap:normal}
.page-fortune .fortune-entertainment p{font-size:1rem;line-height:1.75;margin:0}
.page-fortune .fortune-alert{padding:20px;border:3px solid #8c381e;border-radius:12px;background:#fff2dc;margin:20px 0;font-weight:750;overflow-wrap:normal;word-break:normal}
.page-fortune #fortune-error button{font:inherit;min-height:64px;padding:14px;border:2px solid #183f69;border-radius:10px;background:#fff;color:#183f69;font-weight:800;white-space:normal;max-width:100%}
.page-fortune .fortune-live{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
.page-fortune .fortune-card:disabled{cursor:default}
body.page-fortune.high-contrast .fortune-card{border-width:4px!important;box-shadow:none!important}
body.page-fortune.high-contrast .fortune-card[aria-pressed=true]{outline-color:#111!important;border-style:double;border-width:6px!important}
body.page-fortune.high-contrast .fortune-card:before,body.page-fortune.high-contrast .fortune-card-flower,body.page-fortune.high-contrast .fortune-card-flower:before{border-color:#111!important}
body.page-fortune.high-contrast #fortune-next{background:#111!important;color:#fff!important}
body.page-fortune.high-contrast .fortune-card:focus-visible,body.page-fortune.high-contrast #fortune-next:focus-visible{outline-color:#005fcc!important}
@media(max-width:1000px){.page-fortune .fortune-hero{grid-template-columns:minmax(0,1fr);gap:28px}.page-fortune .fortune-hero figure{max-width:800px;width:100%;margin:auto}.page-fortune .fortune-result-details{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){.page-fortune .fortune-hero{padding-block:36px}.page-fortune .fortune-hero h1{font-size:1.7rem}.page-fortune .fortune-desk{padding:24px 18px;border-radius:18px}.page-fortune .fortune-card-row{gap:12px}.page-fortune .fortune-card{min-height:190px;border-radius:14px;padding:16px 8px}.page-fortune .fortune-card-number{font-size:1.5rem}.page-fortune .fortune-card-flower{width:44px;height:44px;border-radius:12px}.page-fortune .fortune-card-flower:before{inset:8px}.page-fortune .fortune-result{padding:22px 18px}.page-fortune .fortune-result h2{font-size:1.5rem}.page-fortune .fortune-entertainment{padding:22px}.page-fortune .fortune-desk h2{font-size:1.4rem}}
@media(max-width:380px){.page-fortune .fortune-desk{padding:22px 12px}.page-fortune .fortune-card-row{gap:10px}.page-fortune .fortune-card{min-height:170px;padding:14px 6px}.page-fortune .fortune-card:before{inset:5px}.page-fortune .fortune-card-flower{width:36px;height:36px;border-width:2px;border-radius:10px}.page-fortune .fortune-card-flower:before{inset:6px}.page-fortune .fortune-card-number{font-size:1.3rem}.page-fortune .fortune-chosen{top:9px;right:8px;font-size:.9rem}.page-fortune .fortune-result{padding:20px 12px}.page-fortune .fortune-result-details>div{padding:16px}.page-fortune .fortune-hero h1{font-size:1.6rem}}
@media(forced-colors:active){.page-fortune .fortune-card{background:ButtonFace;border:4px solid ButtonText;box-shadow:none}.page-fortune .fortune-card[aria-pressed=true]{outline:4px solid Highlight}.page-fortune .fortune-card-flower{border-color:ButtonText}}
@media(prefers-reduced-motion:reduce){.page-fortune *{scroll-behavior:auto}}

/* Keep long English activity words readable at 320px and 32px text. */
body.page-fortune #main :is(p,dd,dt,h1,h2,a,button){overflow-wrap:anywhere;word-break:normal}
