/* V14 — full-site depth, cinematic pacing and launch-quality fixes */
:root{--paper:#f1eadf;--paper2:#fffaf2;--line:#d4c8ba;--scene:#ede3d7}
body{background:
  radial-gradient(70rem 38rem at -8% 0%,rgba(221,240,111,.18),transparent 58%),
  radial-gradient(64rem 42rem at 108% 9%,rgba(166,210,231,.20),transparent 62%),
  var(--paper)}
.site-head{background:rgba(249,245,237,.82);border-color:rgba(53,39,61,.08)}
.primary{color:#fff!important}
.footer{background:linear-gradient(155deg,#2b2130,#3a2c3d);padding-top:58px}
.footer:before{content:"";position:absolute;left:-60px;top:-70px;width:240px;height:180px;border-radius:50%;background:rgba(221,240,111,.08);filter:blur(8px)}

/* Home: one character sequence, not two repeated galleries */
.home-intro{background:linear-gradient(180deg,#f2ebdf,#eee4d7);padding-top:120px}
.home-intro h2{max-width:820px}
.mate-highlights{background:#eee4d7;padding-bottom:130px}
.highlight-card{box-shadow:0 35px 85px rgba(53,39,61,.15);border:1px solid rgba(255,255,255,.55)}
.highlight-card:nth-child(3n+2){transform:translateY(18px)}
.highlight-card:nth-child(3n){transform:translateY(-12px)}
.value-story{background:radial-gradient(46rem 46rem at 84% 25%,#493853 0,#29222e 62%)}
.result-tease{background:linear-gradient(180deg,#f8f2e8,#eae1ee)}
.compat-cinematic{background:linear-gradient(180deg,#eae1ee,#e7efcd 55%,#f2eadf)}
.apple-final-cta{position:relative;overflow:hidden;background:linear-gradient(180deg,#f2eadf 0,#e5dfef 100%);padding:80px 0 0}
.home-cta-inner{min-height:720px;align-content:start;padding-top:54px;position:relative;z-index:2}
.home-cta h2{font-size:clamp(54px,7vw,96px)}
.home-cta-button{position:relative;z-index:5}
.final-friends{position:absolute;left:50%;bottom:-25px;width:min(1050px,112vw);height:390px;transform:translateX(-50%);display:flex;align-items:end;justify-content:center;pointer-events:none}
.final-friends img{width:22%;margin:0 -3.1%;filter:drop-shadow(0 28px 28px rgba(53,39,61,.15));transform-origin:50% 100%}
.final-friends img:nth-child(3){width:28%;z-index:3}.final-friends img:nth-child(2),.final-friends img:nth-child(4){z-index:2}

/* Quiz: chapter color, visible companion, fixed but alive answer rhythm */
#quiz{min-height:100dvh;background:
  radial-gradient(55rem 34rem at 100% 0%,var(--quiz-tint,#dfeaf1),transparent 68%),
  radial-gradient(40rem 30rem at 0% 100%,rgba(221,240,111,.10),transparent 65%),var(--paper)}
html[data-quiz-chapter="1"]{--quiz-tint:#f0ddc4}html[data-quiz-chapter="2"]{--quiz-tint:#eadde9}html[data-quiz-chapter="3"]{--quiz-tint:#dceccf}html[data-quiz-chapter="4"]{--quiz-tint:#d7e9f1}html[data-quiz-chapter="5"]{--quiz-tint:#f0dfd7}html[data-quiz-chapter="6"]{--quiz-tint:#e3def1}
.quiz{max-width:920px}.quiz-chapter{max-width:680px;margin:24px auto 0;display:flex;align-items:baseline;justify-content:space-between;gap:16px;color:var(--muted)}
.quiz-chapter span{font-size:9px;font-weight:900;letter-spacing:.16em}.quiz-chapter b{font-size:12px;color:var(--ink)}
.qbody{padding-top:22px}.quiz-mascot{right:-128px;top:8px;width:112px;height:112px;opacity:1!important;z-index:3;filter:drop-shadow(0 18px 18px rgba(53,39,61,.13))}
.qbody.scene{max-width:680px;margin-left:auto;margin-right:auto;padding:22px 0 0}
.qbody h2{height:168px;min-height:168px;padding:8px 0 16px;overflow:visible}
.qbody.is-long h2{font-size:clamp(27px,3.1vw,34px);line-height:1.3}
.qbody.is-very-long h2{font-size:clamp(25px,2.8vw,31px)}
.qbody:before{content:"";position:absolute;right:-148px;top:-8px;width:150px;height:150px;border-radius:48% 52% 62% 38%;background:var(--quiz-tint);filter:blur(1px)}
.qbody:after{right:-100px;top:130px;width:72px}
.answer{min-height:62px;background:rgba(255,253,249,.88);backdrop-filter:blur(8px);border-color:rgba(53,39,61,.11);box-shadow:0 9px 25px rgba(53,39,61,.055);transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease}
.answer:hover{transform:translateX(4px);box-shadow:0 13px 30px rgba(53,39,61,.09)}
.answer.sel{background:var(--purple);border-color:var(--purple);color:#fff;transform:scale(.992)}.answer.sel .answer-mark{background:var(--lime);color:var(--ink)}
.progress{height:5px}.progress i{background:linear-gradient(90deg,var(--purple),#8f759b,var(--lime))}

/* Reveal: anticipation before identification */
.reveal{background:radial-gradient(circle at 50% 42%,var(--reveal-soft),transparent 34rem),#211a25;color:#fff}
.reveal .brand-lockup i{background:var(--lime)}.reveal-small{font-size:clamp(20px,4vw,34px)}
.ghost-stage{width:300px;height:300px}.ghost{width:260px;height:260px;animation:ghostReveal 2.3s cubic-bezier(.2,.75,.2,1) forwards}.ghost-stage:before{inset:18px;animation-duration:2.6s}
.reveal-final{animation:finalReveal .5s 1.7s forwards}.reveal-name{display:block;margin-top:12px;font-family:var(--font-display);font-size:clamp(30px,7vw,54px);opacity:0;transform:translateY(20px);animation:revealName .6s 2s forwards}
@keyframes revealName{to{opacity:1;transform:none}}
@keyframes ghostReveal{0%{transform:scale(.62) rotate(-4deg);filter:blur(22px) grayscale(1);opacity:.04}58%{filter:blur(11px) grayscale(.5);opacity:.3}100%{transform:scale(1.08);filter:none;opacity:1}}

/* Result: a stronger opening and an actual final act */
#result{background:linear-gradient(180deg,var(--charsoft) 0,var(--paper) 38rem)}
.result-poster{min-height:min(720px,78svh);display:flex;flex-direction:column;justify-content:center;overflow:hidden;background:rgba(255,255,255,.36)}
.result-poster:before{height:70%;top:12%;left:10%;right:10%;filter:saturate(1.06)}
.result-img{width:min(62vw,390px)}
.final-share{position:relative;min-height:720px;margin:60px calc(var(--side)*-1) 0!important;padding:72px max(var(--side),6vw) 58px!important;overflow:hidden;display:grid;align-content:center;background:linear-gradient(150deg,#2b2130 0,#4c3651 60%,#6f586f 100%)!important;color:#fff;border-radius:42px 42px 0 0!important;box-shadow:0 -20px 70px rgba(53,39,61,.16)!important}
.final-share-art{position:absolute;right:-2%;bottom:-3%;width:min(52%,520px);height:82%;display:grid;place-items:end;pointer-events:none}.final-share-art:before{content:"";position:absolute;inset:16% -15% 5% 0;border-radius:48% 52% 42% 58%;background:var(--charsoft);opacity:.94}.final-share-art:after{content:"";position:absolute;left:15%;top:8%;width:74px;height:74px;background:url("../assets/icons/result-spark.svg") center/contain no-repeat;filter:brightness(0) invert(1);opacity:.24}.final-share-art img{position:relative;z-index:2;width:100%;max-height:92%;object-fit:contain;filter:drop-shadow(0 28px 34px rgba(0,0,0,.22));animation:characterFloat 4.2s ease-in-out infinite}
.final-share-copy,.final-share .share-preview,.final-share .share-grid,.final-share .save-image,.final-share .retry-action{position:relative;z-index:3;width:min(52%,540px)}
.final-share .section-note{color:var(--lime)}.final-share h3{font-size:clamp(48px,7vw,84px);line-height:1.02;margin:10px 0 16px}.final-share>div p,.final-share-copy p{color:#e8dfe9;font-size:15px;line-height:1.75}.final-share-copy p b{color:#fff}
.share-preview{display:grid;gap:4px;margin:20px 0;padding:16px 18px;border:1px solid rgba(255,255,255,.16);border-radius:20px;background:rgba(255,255,255,.09);backdrop-filter:blur(12px)}.share-preview small{color:#cfc4d1;font-size:9px;font-weight:800;letter-spacing:.12em}.share-preview b{font-size:17px}.share-preview span{color:#dcd2de;font-size:11px}
.final-share .share-choice{background:#fff;color:var(--ink);border:0}.final-share .save-image{background:var(--lime);color:var(--purple);box-shadow:0 6px 0 #b5c84a}.final-share .retry-action{color:#ece5ed;text-align:left}

/* Secondary pages: distinct depth without turning legal pages into a spectacle */
.content-page,.character-archive-hero{position:relative}.content-hero{min-height:620px;display:grid;align-content:center}.content-hero h1,.character-archive-hero h1{font-size:clamp(48px,8vw,86px);max-width:850px}.content-hero .floating-friends{height:220px}.content-hero .floating-friends img{width:140px}
.content-page>.section{margin-inline:calc(var(--side)*-1);padding:72px var(--side)}.content-page>.section:nth-of-type(even){background:rgba(255,255,255,.38);border-radius:32px}
.faq details{transition:background .2s ease,transform .2s ease}.faq details[open]{background:#fff;transform:translateX(5px)}.faq summary{display:flex;justify-content:space-between}.faq summary:after{content:"＋"}.faq details[open] summary:after{content:"−"}
.account-empty{position:relative;overflow:hidden;min-height:280px;padding:38px;background:linear-gradient(145deg,#fffaf2,#e9e2ef)}.account-empty:after{content:"MATE";position:absolute;right:-15px;bottom:-42px;color:rgba(53,39,61,.055);font-size:120px;font-weight:950;letter-spacing:-.08em}.account-empty .inline-cta{position:relative;z-index:2;color:#fff!important}
.character-archive-hero{min-height:470px;display:grid;align-content:center}.character-wall{gap:22px}.character-tile{transition:transform .28s ease,box-shadow .28s ease}.character-tile:hover{transform:translateY(-8px);box-shadow:0 28px 60px rgba(53,39,61,.13)}
.character-detail-hero{min-height:700px;display:flex;flex-direction:column;justify-content:center;overflow:hidden}.character-detail-hero .result-img{width:min(58vw,410px)}.character-detail-hero .detail-blob{inset:15% 12% auto;height:56%;animation:detailBlob 8s ease-in-out infinite}.character-detail-hero .eyebrow{order:-2}.character-detail-hero .result-img{order:-1}.theme-cheetah .character-detail-hero .result-img{animation-duration:2.7s}.theme-guma .character-detail-hero .result-img{animation-duration:6.4s}.theme-kurage .character-detail-hero .result-img{animation-duration:5.8s}.theme-neko .character-detail-hero .result-img{animation-duration:4.9s}
@keyframes detailBlob{50%{transform:rotate(3deg) scale(1.04);border-radius:56% 44% 58% 42%}}
.compat-table-disclosure{margin-top:24px}.compat-table-disclosure>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-radius:16px;background:#fff;font-weight:850}.compat-table-disclosure>summary:after{content:"＋"}.compat-table-disclosure[open]>summary:after{content:"−"}
.contact-form{display:grid;gap:16px;margin-top:28px;padding:28px;border-radius:24px;background:#fffaf2;box-shadow:0 16px 44px rgba(53,39,61,.07)}.contact-form label{display:grid;gap:7px;font-size:12px;font-weight:800}.contact-form input,.contact-form textarea,.contact-form select{width:100%;padding:14px;border:1px solid var(--line);border-radius:13px;background:#fff;font:inherit}.contact-form textarea{min-height:160px;resize:vertical}.contact-note{font-size:11px;color:var(--muted)}
.share-privacy{position:relative;z-index:3;display:block;width:min(52%,540px);margin-top:12px;color:#cfc4d1;font-size:9px;line-height:1.6}
.reveal-on-scroll{opacity:0;transform:translateY(34px);transition:opacity .75s ease,transform .75s cubic-bezier(.2,.8,.2,1)}.reveal-on-scroll.is-visible{opacity:1;transform:none}

@media(max-width:899px){.quiz-mascot{right:10px;top:-75px;width:84px;height:84px}.qbody:before{right:-8px;top:-92px;width:105px;height:105px}.qbody:after{display:none}}
@media(max-width:679px){
  .apple-hero h1 span{background:none;color:#403047}.hero-copy-stack{padding-top:24px}.home-intro{padding-top:84px}
  .highlight-card:nth-child(n){transform:none}.home-cta-inner{min-height:680px;padding-top:30px}.final-friends{height:300px;width:135vw}.final-friends img{width:26%;margin:0 -5%}.final-friends img:nth-child(3){width:34%}
  .quiz-chapter{margin-top:18px;min-height:44px;flex-direction:column;align-items:flex-start;justify-content:center;gap:1px}.quiz-chapter b{font-size:11px}.qbody,.qbody.scene{max-width:680px;margin-left:auto;margin-right:auto;padding:12px 0 0}.qbody h2{height:168px;min-height:168px;padding:8px 0 16px}.qbody.is-long h2{font-size:clamp(24px,6.4vw,30px);line-height:1.34}.qbody.is-very-long h2{font-size:clamp(22px,6vw,28px)}.quiz-mascot{right:8px;top:4px;width:78px;height:78px}.qbody:before{top:-2px}
  .result-poster{min-height:650px}.final-share{min-height:950px;align-content:start;padding-top:58px!important}.final-share-copy,.final-share .share-preview,.final-share .share-grid,.final-share .save-image,.final-share .retry-action,.final-share .share-privacy{width:100%}.final-share-art{right:-15%;bottom:-2%;width:82%;height:42%;opacity:.96}.final-share h3{font-size:52px}.final-share .retry-action{width:max-content;max-width:100%;min-height:44px;margin-top:16px;padding:0 14px;border:1px solid rgba(255,255,255,.26);border-radius:99px;background:rgba(43,33,48,.55);text-align:center;text-decoration:none}
  .content-hero{min-height:520px}.content-hero h1,.character-archive-hero h1{font-size:48px}.content-hero .floating-friends{height:170px}.content-hero .floating-friends img{width:105px}.character-detail-hero{min-height:610px}.character-detail-hero .result-img{width:min(78vw,340px)}
}
@media(prefers-reduced-motion:reduce){.reveal-on-scroll{opacity:1;transform:none}.final-share-art img,.detail-blob{animation:none!important}}
