/* 2026 縁起診断 — 固定の結果カード母版。結果データは fortune.js のみが差し替える。 */
.fortune-result{scroll-margin-top:clamp(12px,3vw,48px);width:100vw;max-width:none;margin:32px calc(50% - 50vw) 0;padding:0;overflow:hidden;background:#f7efe2;color:#07377e}
.fortune-result[hidden]{display:none}
.fortune-result-card{position:relative;isolation:isolate;display:block;width:100%;height:clamp(560px,37.5vw,768px);min-height:560px;overflow:hidden;background:radial-gradient(ellipse 28% 31% at 11% 48%,#fff9ea 0 42%,transparent 72%),radial-gradient(ellipse 25% 27% at 92% 12%,#f4d5ad70 0 18%,transparent 70%),radial-gradient(ellipse 31% 30% at 92% 89%,#f2d3a771 0 19%,transparent 72%),repeating-linear-gradient(18deg,#fffdf8 0 4px,#f3e6d2 4px 5px,#fffaf1 5px 9px);box-shadow:inset 0 0 0 1px #e1c69a}
.fortune-result-card::before{content:"";position:absolute;z-index:0;inset:0;pointer-events:none;opacity:.9;background:radial-gradient(ellipse 30% 10% at 5% 13%,transparent 66%,#d7a54e5b 67% 68%,transparent 69%),radial-gradient(ellipse 44% 16% at 20% 79%,transparent 68%,#d7a54e50 69% 70%,transparent 71%),radial-gradient(ellipse 42% 14% at 88% 6%,transparent 69%,#d7a54e50 70% 71%,transparent 72%),radial-gradient(ellipse 36% 13% at 98% 82%,transparent 69%,#d7a54e4c 70% 71%,transparent 72%),repeating-radial-gradient(ellipse at 0 0,transparent 0 23px,#d7a54e24 24px 25px,transparent 26px 42px),repeating-radial-gradient(ellipse at 100% 100%,transparent 0 26px,#d7a54e22 27px 28px,transparent 29px 49px)}
.fortune-result-card::after{content:"";position:absolute;z-index:1;left:2%;top:22%;width:61%;height:58%;border:2px solid #d8a64f8c;border-left:0;border-bottom:0;border-radius:0 100% 0 0;transform:rotate(-7deg);transform-origin:top left;pointer-events:none}
.fortune-result-header{position:absolute;z-index:5;inset:clamp(28px,3vw,50px) 0 auto;margin:0;padding:0 24px;text-align:center}
.fortune-result-kicker{margin:0;color:#af6c21;font-family:'Fufu Tilt','Tilt Warp',Arial,sans-serif;font-size:clamp(.94rem,1.4vw,1.5rem);font-weight:400;letter-spacing:.16em;line-height:1;text-transform:uppercase}
.fortune-result-kicker::before,.fortune-result-kicker::after{content:"✦";margin:0 .78em;color:#c98227;font-family:Arial,sans-serif;font-size:.8em}
.fortune-result-heading{margin:clamp(9px,.7vw,15px) 0 0;color:#07377e;font-family:'Fufu Noto','Noto Sans JP','Hiragino Kaku Gothic ProN',sans-serif;font-size:clamp(2rem,4.1vw,5.05rem);font-weight:900;line-height:1.13;letter-spacing:.01em;text-shadow:0 2px 0 #fff}
.fortune-result-copy{position:absolute;z-index:5;left:6.25%;top:26.4%;box-sizing:border-box;width:40.5%;margin:0;padding:0;text-align:left}
.fortune-result-choice{display:flex;align-items:center;justify-content:center;width:max-content;max-width:100%;gap:clamp(12px,1.35vw,27px);margin:0 auto clamp(17px,1.45vw,25px)}
.fortune-result-choice span{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;width:clamp(76px,6.15vw,118px);height:clamp(97px,7.5vw,144px);border:2px solid #b98338;border-radius:13px;background:linear-gradient(145deg,#fffefa,#efe1cb);box-shadow:inset 0 0 0 5px #fff8e9,0 5px 9px #87551825;color:#a8661e;font-family:'Fufu Noto','Noto Sans JP','Hiragino Kaku Gothic ProN',sans-serif}
.fortune-result-choice span::before{content:"";position:absolute;top:-9px;width:25px;height:13px;border-radius:999px 999px 4px 4px;background:#c84630;box-shadow:inset 0 0 0 2px #eaa07f}
.fortune-result-choice span b{font-size:clamp(1.6rem,2.5vw,3.05rem);font-weight:900;line-height:1}
.fortune-result-choice span small{margin-top:5px;color:#9c682c;font-family:Arial,sans-serif;font-size:clamp(.64rem,.83vw,.96rem);font-weight:400;line-height:1;text-transform:uppercase}
.fortune-result-times{color:#aa6b25;font-family:Arial,sans-serif;font-size:clamp(1.45rem,2.2vw,2.55rem);font-weight:400}
.fortune-result-copy h3{margin:0;color:#07377e;font-family:'Fufu Noto','Noto Sans JP','Hiragino Kaku Gothic ProN',sans-serif;font-size:clamp(2.65rem,4.25vw,5.05rem);font-weight:900;line-height:1.14;letter-spacing:.025em}
.fortune-result-tags{display:flex;flex-wrap:wrap;align-items:center;gap:clamp(8px,.75vw,14px);margin:clamp(10px,1vw,17px) 0 0}
.fortune-series,.fortune-label{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;margin:0;border-radius:999px;font-family:'Fufu Noto','Noto Sans JP','Hiragino Kaku Gothic ProN',sans-serif;font-size:clamp(.73rem,1.1vw,1.22rem);font-weight:500;letter-spacing:.08em;line-height:1.2}
.fortune-series{min-width:clamp(118px,11vw,212px);padding:clamp(8px,.78vw,13px) clamp(18px,1.8vw,31px);background:var(--result-accent);color:#fff;text-transform:uppercase;box-shadow:inset 0 1px 0 #fff5,0 4px 8px #7c512323}
.fortune-label{padding:clamp(8px,.78vw,13px) clamp(15px,1.55vw,28px);background:var(--result-soft);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--result-accent) 28%,#fff);color:var(--result-accent)}
.fortune-message{max-width:34em;margin:clamp(17px,1.65vw,28px) 0 0;color:#07377e;font-family:'Fufu Noto','Noto Sans JP','Hiragino Kaku Gothic ProN',sans-serif;font-size:clamp(.92rem,1.3vw,1.46rem);font-weight:500;line-height:1.66;letter-spacing:.012em}
.fortune-result-actions{display:flex;flex-wrap:wrap;gap:clamp(12px,1.25vw,24px);margin-top:clamp(48px,4.1vw,81px)}
.fortune-result-actions a{display:inline-flex;align-items:center;justify-content:center;min-width:clamp(186px,17.2vw,354px);min-height:clamp(50px,4vw,74px);box-sizing:border-box;margin:0;padding:clamp(10px,.9vw,15px) clamp(18px,1.5vw,25px);border:2px solid #b98b45;border-radius:999px;background:linear-gradient(135deg,#fffffc,#f6efe5);box-shadow:inset 0 0 0 4px #fff8e8,0 7px 12px #85561f29;color:#07377e;font-family:'Fufu Noto','Noto Sans JP','Hiragino Kaku Gothic ProN',sans-serif;font-size:clamp(.8rem,1.18vw,1.32rem);font-weight:500;letter-spacing:.04em;text-decoration:none;transition:transform .18s ease,filter .18s ease}
.fortune-result-actions a:hover,.fortune-result-actions a:focus-visible{filter:brightness(1.035);transform:translateY(-2px)}
.fortune-result-actions a span{margin-left:.55em;font-family:Arial,sans-serif;font-size:1.25em}
.fortune-result-art{position:absolute;z-index:3;right:2.5%;bottom:0;width:50%;height:79%;overflow:visible;display:flex;align-items:flex-end;justify-content:center;pointer-events:none}
.fortune-result-art::before{content:"";position:absolute;z-index:1;left:7%;right:5%;bottom:0;height:91%;border:clamp(5px,.55vw,10px) solid #e1bb72;border-bottom:0;border-radius:48% 48% 0 0 / 41% 41% 0 0;background:radial-gradient(circle at 55% 20%,#fff8 0 3%,transparent 3.6%),radial-gradient(circle at 65% 36%,var(--result-glow) 0 2%,transparent 31%),linear-gradient(180deg,color-mix(in srgb,var(--result-accent) 61%,#fff) 0%,var(--result-accent) 100%);box-shadow:inset 0 0 0 2px #fff5,0 0 0 15px #e4c07022}
.fortune-result-art::after{content:"";position:absolute;z-index:2;right:-5%;bottom:-16%;width:57%;height:43%;border:clamp(5px,.55vw,10px) solid #e1bb72;border-radius:50%;background:#fff7;box-shadow:inset 0 0 0 2px #fff}
.fortune-result-art img{position:relative;z-index:4;display:block;width:min(70%,540px);max-height:84%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 18px 12px #49310d44)}
.fortune-result-orbit{position:absolute;z-index:1;border:2px solid #dcae5b99;border-radius:50%;pointer-events:none}.orbit-one{width:108%;height:65%;top:4%;right:-10%;transform:rotate(-13deg)}.orbit-two{width:76%;height:91%;bottom:-2%;left:7%;transform:rotate(25deg);border-color:#f6ddad}
.fortune-result-cloud{position:absolute;z-index:5;display:block;width:clamp(90px,11vw,210px);height:clamp(31px,3.8vw,73px);border:clamp(3px,.3vw,6px) solid #e3bd76;border-radius:999px;background:#fffdf2;box-shadow:inset 0 0 0 2px #fff,0 8px 12px #89562018}.fortune-result-cloud::before,.fortune-result-cloud::after{content:"";position:absolute;bottom:-4px;width:50%;height:80%;border:inherit;border-bottom:0;border-radius:100% 100% 0 0;background:inherit}.fortune-result-cloud::before{left:9%}.fortune-result-cloud::after{right:8%}.cloud-one{left:0;top:30%;transform:scale(.82)}.cloud-two{right:-3%;top:55%;transform:scale(.64)}
@media(max-width:1100px){.fortune-result-card{height:650px;min-height:650px}.fortune-result-copy{left:5%;width:44%}.fortune-result-actions{margin-top:42px}.fortune-result-actions a{min-width:clamp(154px,18vw,238px)}.fortune-result-art{right:0;width:53%;height:74%}}
@media(max-width:760px){.fortune-result{margin-top:18px}.fortune-result-card{display:flex;flex-direction:column;min-height:0;padding:27px 0 0}.fortune-result-card::after{left:-22%;top:15%;width:110%;height:31%;transform:rotate(-8deg)}.fortune-result-header{position:relative;inset:auto;order:0;padding:0 18px}.fortune-result-kicker{font-size:.76rem}.fortune-result-heading{font-size:clamp(1.46rem,6.65vw,2.04rem)}.fortune-result-copy{position:relative;left:auto;top:auto;order:1;width:auto;padding:24px clamp(19px,6vw,34px) 31px}.fortune-result-choice{margin-bottom:17px}.fortune-result-choice span{width:68px;height:84px}.fortune-result-choice span b{font-size:1.7rem}.fortune-result-copy h3{font-size:clamp(2.35rem,12vw,3.6rem)}.fortune-series,.fortune-label{font-size:.74rem}.fortune-message{font-size:.9rem;line-height:1.7}.fortune-result-actions{gap:10px;margin-top:42px}.fortune-result-actions a{flex:1 1 100%;min-width:0;min-height:50px;font-size:.88rem}.fortune-result-art{position:relative;right:auto;bottom:auto;order:2;width:100%;height:360px;min-height:360px;margin-top:-7px}.fortune-result-art::before{left:13%;right:13%;height:86%}.fortune-result-art::after{right:5%;width:48%;height:32%}.fortune-result-art img{width:min(75%,335px);max-height:330px}.orbit-one{width:115%;top:3%}.cloud-one{left:3%;top:29%}.cloud-two{right:0;top:52%}}
@media(max-width:390px){.fortune-result-copy{padding-left:18px;padding-right:18px}.fortune-result-choice{gap:10px}.fortune-result-heading{font-size:1.4rem}.fortune-result-copy h3{font-size:2.2rem}.fortune-result-art{height:310px;min-height:310px}.fortune-result-art img{max-height:287px}}
@media(prefers-reduced-motion:reduce){.fortune-result-actions a{transition:none}.fortune-result-actions a:hover,.fortune-result-actions a:focus-visible{transform:none}}


/* Only KOKOROBI diagnosis results use the supplied background. The result template and its content geometry remain unchanged. */
.fortune-result-card.series-atmosphere[data-series="KOKOROBI"]{background:#fbf4e7!important;background-image:none!important;box-shadow:none}
.fortune-result-card.series-atmosphere[data-series="KOKOROBI"]::before{z-index:0;opacity:1;background:url('assets/engi-result-kokorobi-background-supplied.png') center center/cover no-repeat}
.fortune-result-card.series-atmosphere[data-series="KOKOROBI"]::after,.fortune-result-card.series-atmosphere[data-series="KOKOROBI"] .fortune-result-art::before,.fortune-result-card.series-atmosphere[data-series="KOKOROBI"] .fortune-result-art::after,.fortune-result-card.series-atmosphere[data-series="KOKOROBI"] .fortune-result-orbit,.fortune-result-card.series-atmosphere[data-series="KOKOROBI"] .fortune-result-cloud{display:none}
@media(max-width:760px){.fortune-result-card.series-atmosphere[data-series="KOKOROBI"]::before{background-position:65% center;background-size:auto 100%}}

/* KOKOROBI desktop: retain the result master, then place its content on the supplied art's reference coordinates. */
@media(min-width:761px){
  .fortune-result-card.series-atmosphere[data-series="KOKOROBI"] .fortune-result-heading{margin-top:clamp(2px,.25vw,5px)}
  .fortune-result-card.series-atmosphere[data-series="KOKOROBI"] .fortune-result-copy{top:28.7%}
  .fortune-result-card.series-atmosphere[data-series="KOKOROBI"] .fortune-result-choice{margin-bottom:0}
  .fortune-result-card.series-atmosphere[data-series="KOKOROBI"] .fortune-result-copy h3,
  .fortune-result-card.series-atmosphere[data-series="KOKOROBI"] .fortune-result-tags{transform:translateX(10.25vw)}
  .fortune-result-card.series-atmosphere[data-series="KOKOROBI"] .fortune-result-tags{margin-top:clamp(4px,.35vw,7px)}
  .fortune-result-card.series-atmosphere[data-series="KOKOROBI"] .fortune-message{margin-top:clamp(5px,.35vw,7px)}
  .fortune-result-card.series-atmosphere[data-series="KOKOROBI"] .fortune-result-actions{margin-top:clamp(25px,2.25vw,46px)}
}

/* Shared result component: every series centers its editable message in the left diagnosis information area. */
.fortune-message{width:100%;max-width:none;text-align:center;overflow-wrap:anywhere}

/* The supplied OMUSUBI / GOEN images are lossless, unaltered visual masters.
   Existing HTML text, official characters, result mapping and links are retained. */
.fortune-result-card[data-series="OMUSUBI"]{--result-reference:url('assets/engi-result-omusubi-supplied.webp')}
.fortune-result-card[data-series="GOEN"]{--result-reference:url('assets/engi-result-goen-supplied.webp')}
.fortune-result:has(.fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"])){height:auto;overflow:visible;border:0;box-shadow:none}
.fortune-result-card.series-atmosphere:is([data-series="OMUSUBI"],[data-series="GOEN"]){height:auto;min-height:0;aspect-ratio:2042/770;padding:0;overflow:visible;background:none!important;box-shadow:none}
.fortune-result-card.series-atmosphere:is([data-series="OMUSUBI"],[data-series="GOEN"])::before{inset:0;z-index:0;opacity:1;background:var(--result-reference) center/100% 100% no-repeat;pointer-events:none}
.fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"])::after,
.fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-art::before,
.fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-art::after,
.fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-orbit,
.fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-cloud{display:none}
.fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-header{inset:4.5% 0 auto;padding:0 3%}
.fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-copy{position:static;width:auto;padding:0;text-align:left}
.fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-choice{position:absolute;left:19.68%;top:25.7%;width:15.8%;height:19.6%;max-width:none;gap:0;justify-content:space-between;margin:0;z-index:5}
.fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-choice span{width:39.5%;height:100%;padding-top:6%;border:0;border-radius:0;background:none;box-shadow:none}
.fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-choice span::before{display:none}
.fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-copy h3{position:absolute;left:15.45%;top:46.5%;width:32%;margin:0;transform:none;z-index:5}
.fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-tags{position:absolute;left:15.45%;top:61%;width:24.55%;height:6.5%;margin:0;gap:3%;flex-wrap:nowrap;transform:none;z-index:5}
.fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-series,
.fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-label{width:47%;height:100%;min-width:0;margin:0;padding:0;white-space:nowrap;box-shadow:none}
.fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-label{width:50%}
.fortune-result-card[data-series="GOEN"] .fortune-series,.fortune-result-card[data-series="GOEN"] .fortune-label{background:none}
.fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-message{position:absolute;left:6.25%;top:69.6%;width:42.65%;max-width:none;margin:0;text-align:center;z-index:5}
.fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-actions{position:absolute;left:6%;top:79.7%;width:41.5%;height:15.5%;display:flex;gap:2.8%;margin:0;z-index:5}
.fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-actions a{width:48.6%;height:100%;flex:0 0 48.6%;min-width:0;min-height:0;box-sizing:border-box;padding:0 10%;margin:0;border:0;background:none;box-shadow:none;white-space:nowrap;letter-spacing:0;transform:none}
.fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-actions a:hover{background-color:transparent;color:#07377e;transform:none}
.fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-actions a:focus-visible{outline:3px solid #07377e;outline-offset:3px}
.fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-art{right:2.5%;bottom:11.4%;width:50%;height:66.5%;margin:0}
.fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-art img{width:70%;height:100%;max-height:100%;object-fit:contain;object-position:center bottom}
@media(max-width:1000px){
  .fortune-result-card.series-atmosphere:is([data-series="OMUSUBI"],[data-series="GOEN"]){display:flex;flex-direction:column;aspect-ratio:auto;height:auto;min-height:0;padding-top:26px}
  /* Use the left paper area and the right stage from the same supplied image.
     The character and all controls stay intact; no replacement artwork is generated. */
  .fortune-result-card.series-atmosphere:is([data-series="OMUSUBI"],[data-series="GOEN"])::before{background-size:729.2857% auto;background-position:left top}
  .fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-header{position:relative;inset:auto;order:0;padding:0 18px}
  .fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-copy{position:relative;left:auto;top:auto;order:1;width:100%;padding:24px 20px 28px}
  .fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-choice{position:relative;left:auto;top:auto;width:190px;height:99px;margin:0 auto 18px}
  .fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-choice span{width:82px;height:99px;padding-top:12px;background:var(--result-reference) 21.0471% 31.5359%/1546.9697% 487.3418% no-repeat}
  .fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-copy h3{position:static;width:100%;margin:0;font-size:clamp(2.2rem,8vw,3.6rem);overflow-wrap:anywhere;text-align:center}
  .fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-tags{position:static;width:100%;height:auto;margin-top:12px;gap:10px;justify-content:center;flex-wrap:wrap}
  .fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-series,
  .fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-label{width:auto;height:auto;min-width:110px;padding:8px 18px;background:var(--result-accent)}
  .fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-label{background:var(--result-soft)}
  .fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-message{position:static;width:100%;margin-top:20px}
  .fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-actions{position:static;width:100%;height:auto;display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:36px}
  .fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-actions a{width:min(100%,360px);flex:0 1 360px;height:auto;aspect-ratio:426/136;min-height:64px;padding:0 14%;font-size:clamp(.88rem,2.5vw,1.05rem);background:var(--result-reference) 7.1782% 95.2681%/479.3427% 566.1765% no-repeat}
  .fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-actions a:nth-child(2){background-position:34.0347% 95.2681%}
  .fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-art{position:relative;order:2;right:auto;bottom:auto;width:100%;height:auto;min-height:0;aspect-ratio:1042/770;background:var(--result-reference) right center/195.9693% 100% no-repeat}
  .fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-art img{position:absolute;left:15%;bottom:11.4%;width:70%;height:77%;max-height:100%}
}

/* Every result name shares the centre of its series + meaning label group. */
.fortune-result-copy h3{text-align:center;transform:none!important}
.fortune-result-tags{justify-content:center;transform:none!important}
@media(min-width:1001px){.fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-copy h3{left:6.475%;width:42.5%;text-align:center}}

/* Mobile paper texture is a lossless crop of the supplied blank paper, without new artwork. */
.fortune-result-card[data-series="OMUSUBI"]{--result-paper:url('assets/engi-result-omusubi-paper.webp')}
.fortune-result-card[data-series="GOEN"]{--result-paper:url('assets/engi-result-goen-paper.webp')}
@media(max-width:1000px){.fortune-result-card.series-atmosphere:is([data-series="OMUSUBI"],[data-series="GOEN"])::before{background:var(--result-paper) left top/350px 105px repeat}.fortune-result-card:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-choice span{clip-path:polygon(0 25%,20% 13%,28% 13%,28% 0,73% 0,73% 13%,81% 13%,100% 25%,100% 100%,0 100%)}}

/* KOKOROBI: use the exact supplied stage crop. Its baked-in text is outside
   the crop, so the existing editable header, labels and links remain intact. */
.fortune-result-card.series-atmosphere[data-series="KOKOROBI"]::after{content:"";display:block;position:absolute;z-index:1;inset:31.168831% 0 0 auto;width:51.028404%;height:68.831169%;border:0;border-radius:0;transform:none;background:url('assets/engi-result-kokorobi-stage-v167.webp') center bottom/100% 113.207547% no-repeat;pointer-events:none}
.fortune-result-card.series-atmosphere[data-series="KOKOROBI"] .fortune-result-art{bottom:17%}
@media(min-width:761px){.fortune-result-card.series-atmosphere[data-series="KOKOROBI"] .fortune-result-art img{max-height:76%}}
@media(max-width:760px){
  .fortune-result-card.series-atmosphere[data-series="KOKOROBI"]::before{background:url('assets/engi-result-kokorobi-paper-v167.webp') left top/350px 85px repeat}
  .fortune-result-card.series-atmosphere[data-series="KOKOROBI"]::after{display:none}
  .fortune-result-card.series-atmosphere[data-series="KOKOROBI"] .fortune-result-art{height:auto;min-height:0;aspect-ratio:1042/600}
  .fortune-result-card.series-atmosphere[data-series="KOKOROBI"] .fortune-result-art::before{content:"";display:block;position:absolute;z-index:1;inset:0;width:100%;height:100%;border:0;border-radius:0;box-shadow:none;background:url('assets/engi-result-kokorobi-stage-v167.webp') center/100% 100% no-repeat}
  .fortune-result-card.series-atmosphere[data-series="KOKOROBI"] .fortune-result-art img{position:absolute;left:15%;bottom:20%;width:70%;height:78%;max-height:100%;object-fit:contain;object-position:center bottom}
}

/* Mobile result order: explanation, official character/stage, then both original links. Desktop is unchanged. */
@media (max-width:760px){
.fortune-result-card.series-atmosphere{display:flex;flex-direction:column;height:auto;min-height:0;overflow:visible}
.fortune-result-card.series-atmosphere .fortune-result-header{order:0}
.fortune-result-card.series-atmosphere .fortune-result-copy{display:contents}
.fortune-result-card.series-atmosphere .fortune-result-copy>.fortune-result-choice{order:1;position:relative;inset:auto;flex-shrink:0;margin:24px auto 18px}
.fortune-result-card.series-atmosphere .fortune-result-copy>h3{order:2;position:relative;inset:auto;width:calc(100% - 40px);margin:0 auto}
.fortune-result-card.series-atmosphere .fortune-result-copy>.fortune-result-tags{order:3;position:relative;inset:auto;width:calc(100% - 40px);height:auto;margin:12px auto 0}
.fortune-result-card.series-atmosphere .fortune-result-copy>.fortune-message{order:4;position:relative;inset:auto;width:calc(100% - 40px);margin:20px auto 0}
.fortune-result-card.series-atmosphere .fortune-result-art{order:5;position:relative;inset:auto;width:100%;flex-shrink:0;margin:28px 0 0}
.fortune-result-card.series-atmosphere .fortune-result-copy>.fortune-result-actions{order:6;position:relative;inset:auto;width:calc(100% - 40px);height:auto;margin:32px auto 36px}
}
@media (min-width:761px) and (max-width:1000px){
.fortune-result-card.series-atmosphere:is([data-series="OMUSUBI"],[data-series="GOEN"]){display:flex;flex-direction:column;height:auto;min-height:0;overflow:visible}
.fortune-result-card.series-atmosphere:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-header{order:0}
.fortune-result-card.series-atmosphere:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-copy{display:contents}
.fortune-result-card.series-atmosphere:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-copy>.fortune-result-choice{order:1;position:relative;inset:auto;flex-shrink:0;margin:24px auto 18px}
.fortune-result-card.series-atmosphere:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-copy>h3{order:2;position:relative;inset:auto;width:calc(100% - 40px);margin:0 auto}
.fortune-result-card.series-atmosphere:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-copy>.fortune-result-tags{order:3;position:relative;inset:auto;width:calc(100% - 40px);height:auto;margin:12px auto 0}
.fortune-result-card.series-atmosphere:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-copy>.fortune-message{order:4;position:relative;inset:auto;width:calc(100% - 40px);margin:20px auto 0}
.fortune-result-card.series-atmosphere:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-art{order:5;position:relative;inset:auto;width:100%;flex-shrink:0;margin:28px 0 0}
.fortune-result-card.series-atmosphere:is([data-series="OMUSUBI"],[data-series="GOEN"]) .fortune-result-copy>.fortune-result-actions{order:6;position:relative;inset:auto;width:calc(100% - 40px);height:auto;margin:32px auto 36px}
}
