:root{font-family:system-ui,-apple-system,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;color:#fff4f7;background:#24132d;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(circle at 10% 12%,#63304d 0,transparent 32%),radial-gradient(circle at 96% 83%,#513c70 0,transparent 32%),#24132d;min-height:100vh}button{font:inherit;cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:inherit}.shell{width:min(100%,1080px);margin:auto;min-height:100vh;padding:0 20px;display:flex;flex-direction:column}.topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:23px 0;color:#dab7cc;font-size:12px;letter-spacing:.14em}.home-link{text-decoration:none}.home-link:hover{text-decoration:underline}main{flex:1}footer{text-align:center;color:#b98da6;font-size:12px;padding:28px 0 36px}.eyebrow{color:#ffb1ca;font-size:12px;font-weight:800;letter-spacing:.24em;text-transform:uppercase}.title{font-size:clamp(42px,8vw,90px);line-height:1.04;letter-spacing:-.07em;margin:16px 0 18px;text-wrap:balance}.title span{color:#ff7aa5}.lead{color:#ead0df;font-size:clamp(15px,2vw,19px);line-height:1.8}.hero{min-height:620px;display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:28px}.hero-art{position:relative;aspect-ratio:1;border-radius:42px;background:linear-gradient(145deg,#f9a1bc,#fa608f 48%,#8a3e82);box-shadow:0 25px 90px #0e071260;overflow:hidden;display:grid;place-items:center}.hero-art:before{content:"";position:absolute;width:72%;aspect-ratio:1;border:2px solid #fff7;border-radius:50%;box-shadow:0 0 0 36px #fff1,0 0 0 75px #fff1}.hero-heart{font-size:clamp(150px,24vw,290px);filter:drop-shadow(0 18px 10px #9f265077);transform:rotate(-13deg);animation:beat 1.8s infinite}.hero-art .floating{position:absolute;font-size:52px;right:10%;top:9%;transform:rotate(18deg)}@keyframes beat{50%{transform:rotate(-13deg) scale(1.08)}}.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}.btn{border:1px solid #ffffff38;border-radius:16px;background:#ffffff12;color:#fff;padding:14px 20px;font-weight:800;transition:transform .15s,background .15s}.btn:hover{transform:translateY(-2px);background:#ffffff26}.btn:focus-visible{outline:3px solid #ffacc9;outline-offset:2px}.btn.primary{color:#37162d;background:#ff9fc0;border-color:#ff9fc0;box-shadow:0 8px 26px #ff5c9240}.btn.primary:hover{background:#ffc0d4}.btn.small{padding:9px 14px;font-size:13px}.switches{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px;color:#dcbfd0}.switches label{display:flex;align-items:center;gap:7px;font-size:13px}.switches input{accent-color:#ff94b7}.section-head{padding:38px 0 22px}.section-head h1{font-size:clamp(32px,5vw,56px);margin:8px 0}.section-head p{color:#dcc0d0;line-height:1.7;margin:0}.character-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.character-card,.panel{border:1px solid #ffffff24;background:#ffffff0d;box-shadow:0 10px 35px #10091836;border-radius:24px}.character-card{padding:18px;text-align:left;color:inherit;transition:transform .2s,border-color .2s}.character-card:hover{transform:translateY(-4px);border-color:#ff91b6}.portrait{height:220px;border-radius:17px;display:grid;place-items:center;font-size:94px;position:relative;overflow:hidden;background:linear-gradient(145deg,var(--c1),var(--c2))}.portrait:before{content:"";position:absolute;inset:20px;border:2px solid #ffffff50;border-radius:50%}.portrait span{z-index:1;filter:drop-shadow(0 9px 4px #39203345)}.portrait em{position:absolute;right:12px;top:10px;color:#fff;font-size:12px;font-style:normal;background:#24132d77;border-radius:99px;padding:5px 10px}.character-card h2{font-size:25px;margin:16px 0 5px}.character-card p{font-size:13px;color:#dec3d0;line-height:1.65;margin:6px 0}.character-card strong{display:block;color:#ffb9d0;font-size:13px;margin-top:12px}.game-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:20px;padding-top:25px}.scene{padding:16px}.scene .portrait{height:350px;font-size:120px}.speech{margin-top:13px;background:#fff;color:#46273e;border-radius:16px;padding:17px 18px;min-height:76px;line-height:1.6;font-weight:700}.speech:before{content:"“";color:#ed7ba5;font-size:25px}.dashboard{display:flex;flex-direction:column;gap:15px}.panel{padding:20px}.turnline{display:flex;justify-content:space-between;color:#eed6e3;font-weight:800}.turnline b{color:#ff9cbe}.meter{height:12px;background:#ffffff21;border-radius:50px;overflow:hidden;margin-top:11px}.meter i{display:block;height:100%;border-radius:50px;background:linear-gradient(90deg,#ff688f,#ffc2d7);transition:width .4s}.rate{display:flex;justify-content:space-between;align-items:end;margin-top:22px}.rate small{color:#d9b4c8;font-size:13px}.rate strong{font-size:55px;line-height:1;color:#ffadc7;letter-spacing:-.07em}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:18px}.stat{padding:12px 7px;text-align:center;background:#ffffff0c;border-radius:12px}.stat span{display:block;color:#d9b5c8;font-size:11px}.stat b{font-size:22px}.calc-title{display:flex;justify-content:space-between;align-items:center;gap:10px}.calc-title h2{margin:0;font-size:20px}.calculator{margin-top:13px;border-radius:15px;padding:16px;background:#130e22;box-shadow:inset 0 2px 8px #0008}.calculator .formula{color:#988eac;font:12px ui-monospace,monospace;line-height:1.5}.calculator .screen{font:700 clamp(27px,4vw,43px) ui-monospace,monospace;color:#c0ffdd;text-align:right;word-break:break-word;margin-top:8px;min-height:50px}.calculator.flash{animation:flash .45s}@keyframes flash{50%{background:#a02e58;transform:rotate(-1deg)}}.action-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:14px}.action-grid button{min-height:80px;padding:9px}.action-grid button span{display:block;font-size:25px}.action-grid button small{display:block;color:#ecc9d7;font-size:11px;margin-top:5px}.log{max-height:160px;overflow:auto;margin:12px 0 0;padding-left:22px;color:#d8bacb;font-size:12px;line-height:1.6}.log li{margin:5px 0}.confess{width:100%;font-size:22px;padding:20px;margin-top:14px}.result-card{max-width:750px;margin:30px auto 0;text-align:center;padding:30px}.result-icon{font-size:83px}.result-card h1{font-size:clamp(35px,6vw,64px);line-height:1.2;margin:5px 0;color:#ffb0cb}.result-card .comment{font-size:18px;line-height:1.7;color:#f5dce7}.result-score{display:inline-block;background:#140d22;border-radius:20px;padding:16px 26px;margin:12px 0}.result-score strong{display:block;color:#c0ffdd;font-size:44px}.history{text-align:left;margin:22px auto;max-width:530px}.history h2{font-size:16px}.history ol{font-size:13px;color:#d7bccb;line-height:1.8}.book-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;max-width:850px}.book-item{padding:17px}.book-item b{color:#ffb0cb}.book-item p{margin:8px 0 0;color:#d5b8c9;font-size:13px}.locked{opacity:.48}.note{font-size:12px;color:#bd9db2;line-height:1.6}.hidden{display:none!important}@media(max-width:700px){.shell{padding:0 14px}.hero{display:flex;flex-direction:column-reverse;min-height:0;gap:20px;padding-top:15px}.hero-art{width:min(100%,350px);border-radius:30px}.hero-copy{width:100%}.hero .title{font-size:clamp(41px,12vw,64px)}.character-grid{grid-template-columns:1fr}.character-card{display:grid;grid-template-columns:110px 1fr;gap:12px;align-items:center}.character-card .portrait{height:130px;font-size:57px;grid-row:span 3}.character-card h2{margin:0}.character-card p{margin:0}.character-card strong{margin:0}.game-grid{grid-template-columns:1fr;padding-top:10px;gap:12px}.scene{display:grid;grid-template-columns:105px 1fr;gap:10px;padding:10px}.scene .portrait{height:120px;font-size:55px}.scene .speech{margin:0;min-height:120px;display:flex;align-items:center;font-size:14px}.panel{padding:15px}.stats{gap:5px}.stat b{font-size:19px}.action-grid{gap:5px}.action-grid button{font-size:12px}.book-grid{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
.no-motion *, .no-motion *:before, .no-motion *:after{animation-duration:.01ms!important;transition-duration:.01ms!important}
.portrait img{position:relative;z-index:1;width:100%;height:100%;object-fit:cover;object-position:center 18%;filter:drop-shadow(0 10px 12px #39203355)}
.portrait:before{z-index:0}
.portrait em{z-index:2}
.hero-art{isolation:isolate;background:linear-gradient(145deg,#f3a8c0,#a967a9 55%,#463876)}
.hero-art:after{content:"";position:absolute;inset:auto 0 0;height:32%;background:linear-gradient(transparent,#351a51a0);z-index:4;pointer-events:none}
.hero-character{position:absolute;bottom:-12%;width:73%;height:110%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 14px 10px #3d1d5259)}
.hero-character--rei{left:-19%;z-index:1;transform:rotate(-8deg) scale(.89);transform-origin:center bottom}
.hero-character--luna{right:-19%;z-index:2;transform:rotate(8deg) scale(.89);transform-origin:center bottom}
.hero-character--momo{left:13%;z-index:3}
.hero-art .floating{z-index:5;text-shadow:0 2px 12px #a82772}
.receipt-head,.item-line{display:flex;justify-content:space-between;align-items:center;gap:12px}
.receipt-head{color:#dcbccc;font-size:12px;border-bottom:1px dashed #ffffff40;padding-bottom:12px}
.item-line{font-size:23px;font-weight:800;padding:17px 0;border-bottom:1px dashed #ffffff40}
.item-line strong{white-space:nowrap;color:#c6ffdd}
.choice-instruction{font-weight:800;color:#ffd2e1;margin:18px 0 12px}
.pay-options{display:grid;gap:9px}
.pay-option{width:100%;border:1px solid #ffffff32;background:#ffffff10;color:#fff;border-radius:16px;display:grid;grid-template-columns:135px 1fr 65px;align-items:center;text-align:left;gap:10px;padding:11px 13px;transition:transform .15s,background .15s,border-color .15s}
.pay-option:hover,.pay-option:focus-visible{background:#ffffff24;border-color:#ffabc9;transform:translateY(-2px)}
.pay-option:focus-visible{outline:3px solid #ffc3d8;outline-offset:2px}
.pay-main b,.pay-main small{display:block}.pay-main b{font-size:16px}.pay-main small{font-size:11px;color:#d9b7cb;margin-top:3px}
.pay-coins{display:flex;gap:3px;flex-wrap:wrap;align-items:center;min-height:33px}
.coin{width:27px;height:27px;display:grid;place-items:center;border-radius:50%;border:2px solid #fff9;box-shadow:inset 0 0 0 2px #ffffff35,0 2px 5px #10081a88;background:#babcc9;color:#303047;font-size:9px;font-weight:900}
.coin--500,.coin--5{background:#f7d68c;color:#62481c}.coin--10{background:#c6855a;color:#4e2513}
.coin-count{text-align:right;font-weight:900;color:#ffc0d5;white-space:nowrap}.no-coins{font-size:12px;font-weight:800;color:#c6ffdd}
.payment-feedback{text-align:center;border-radius:20px;padding:18px;margin:17px 0;background:#ffffff13;border:1px solid #ffffff30}
.payment-feedback.great{background:#ffb1cb1f;border-color:#ffc1d6}.payment-feedback.oops{background:#c5a98318}
.payment-feedback h2{font-size:27px;margin:5px 0}.payment-feedback p{margin:7px 0;color:#f5dbe6}
.feedback-icon{font-size:54px}.heart-gain{font-size:40px;color:#ffadc9}.feedback-line{font-weight:700}
.next-round{width:100%;padding:17px;font-size:18px}
@media(max-width:700px){.pay-option{grid-template-columns:102px 1fr 52px;padding:10px 8px;gap:4px}.pay-main b{font-size:13px}.pay-main small{font-size:10px}.coin{width:23px;height:23px;font-size:8px}.coin-count{font-size:12px}.item-line{font-size:19px}}
.pay-option{grid-template-columns:36px 1fr 25px;min-height:64px}
.pay-number{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:#ffacc9;color:#3a1832;font-weight:900}
.pay-main b{font-size:20px}.pay-arrow{color:#ffb6cf;font-size:22px;font-weight:900}
.change-review{margin:16px 0 18px;background:#160f25;border-radius:16px;padding:13px}
.change-review h3{font-size:14px;color:#dcb9cd;margin:0 0 8px}
.change-row{display:flex;justify-content:space-between;gap:8px;padding:8px 9px;border-radius:9px;color:#d9c1cf;font-size:13px}
.change-row b{white-space:nowrap;color:#c6ffdd}.change-row.selected{background:#ffafca2b;color:#fff}
@media(max-width:700px){.pay-option{grid-template-columns:36px 1fr 25px}.pay-main b{font-size:18px}.change-row{font-size:11px}}
.game-grid .scene{align-self:start}
.game-grid .scene .portrait{height:clamp(440px,63vh,560px)}
.game-grid .scene .portrait img{object-position:center 12%}
@media(max-width:700px){
  .game-grid .scene{display:block;padding:10px}
  .game-grid .scene .portrait{height:clamp(240px,68vw,330px)}
  .game-grid .scene .speech{position:relative;z-index:3;margin:-28px 7px 0;min-height:68px;padding:12px 14px}
}
.stamp-track{position:relative;height:104px;margin:12px 0 8px;border:2px dashed #ee9cbb;border-radius:18px;background:linear-gradient(90deg,#fff5fa,#ffe3ef,#fff5fa);overflow:hidden;flex:1;min-height:72px;max-height:130px}
.stamp-zone{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:30%;height:76%;display:grid;place-items:center;border:2px solid #f27eac;border-radius:16px;color:#dc5a91;font-size:clamp(28px,7vh,60px);opacity:.8}
.stamp-marker{position:absolute;left:0;top:50%;transform:translate(-50%,-50%);font-size:clamp(26px,6vh,50px);animation:stamp-slide 1.5s linear infinite alternate;filter:drop-shadow(0 3px 4px #a94b7470)}
@keyframes stamp-slide{from{left:5%}to{left:95%}}
.stamp-button{width:100%;flex:0 0 48px}.stamp-review{flex:1;display:grid;place-items:center;text-align:center;color:#9b3a6c;font-weight:700}
.no-motion .stamp-marker{animation:none;left:50%}
@media(prefers-reduced-motion:reduce){.stamp-marker{animation:none!important;left:50%}}
.talk-options{grid-template-rows:repeat(2,minmax(0,1fr))}
.pay-options.two-options{grid-template-rows:repeat(2,minmax(0,1fr))}
.talk-prompt{font-weight:700;color:#ffe1ec}
.talk-option .pay-main b{white-space:normal;line-height:1.3}
.result-card{position:relative;isolation:isolate}
.result-character{position:absolute;right:0;top:0;width:45%;height:100%;object-fit:cover;object-position:center top;opacity:.4;pointer-events:none;mask-image:linear-gradient(90deg,transparent 0%,#000 40%)}
.result-card>:not(.result-character){position:relative;z-index:1}
.result-card .comment{max-width:580px;margin-inline:auto;font-weight:700;text-shadow:0 2px 10px #24132d}
@media(max-width:700px){.result-character{width:65%;height:55%;opacity:.28;mask-image:linear-gradient(180deg,#000,transparent)}.result-card .comment{max-width:100%}}
@media(max-width:700px){.stamp-track{margin:5px 0;min-height:55px;max-height:none}.stamp-button{flex-basis:44px}.stamp-review{font-size:13px}}
@media(max-height:440px) and (orientation:landscape){.stamp-track{min-height:35px;margin:3px 0}.stamp-zone{font-size:22px}.stamp-marker{font-size:24px}.stamp-button{flex-basis:30px;padding:3px;font-size:11px}.stamp-review{font-size:10px}}
/* Smartphone screens stay within the visual viewport. */
@media(max-width:700px){
  html,body{height:100%;overflow:hidden}
  body{min-width:320px}
  .shell{height:100vh;height:100dvh;min-height:0;padding:env(safe-area-inset-top) 8px env(safe-area-inset-bottom)}
  .topbar{height:26px;flex:0 0 26px;padding:3px 2px;font-size:10px}
  .topbar span,footer{display:none}
  main{flex:1;min-height:0;overflow:hidden}
  .hero{height:100%;display:grid;grid-template-rows:35% minmax(0,1fr);gap:6px;padding:0}
  .hero-art{grid-row:1;width:100%;height:100%;aspect-ratio:auto;border-radius:18px}
  .hero-copy{grid-row:2;min-height:0}
  .hero .eyebrow{font-size:10px}
  .hero .title{font-size:clamp(34px,9vw,52px);margin:5px 0 8px}
  .hero .lead{font-size:12px;line-height:1.45;margin:0}
  .hero .actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:10px}
  .hero .btn{padding:9px 5px;font-size:12px;border-radius:10px}
  .hero .switches{margin-top:8px}
  .hero .note{margin:6px 0;font-size:10px}
  .section-head{padding:5px 2px 9px}
  .section-head h1{font-size:25px;margin:2px 0}
  .section-head p{font-size:11px;line-height:1.3}
  main:has(.character-grid),main:has(.book-grid){display:flex;flex-direction:column}
  .character-grid{flex:1;min-height:0;grid-template-columns:1fr;grid-template-rows:repeat(3,minmax(0,1fr));gap:5px}
  .character-card{min-height:0;padding:5px;grid-template-columns:min(27vw,100px) 1fr;gap:7px;border-radius:13px}
  .character-card .portrait{height:100%;min-height:0;grid-row:span 3}
  .character-card h2{font-size:17px}
  .character-card p,.character-card strong{font-size:10px}
  main:has(.character-grid)>.actions,main:has(.book-grid)>.actions{flex:0 0 38px;margin:5px 0 0}
  main:has(.character-grid)>.actions .btn,main:has(.book-grid)>.actions .btn{padding:6px 12px;font-size:12px}
  .book-grid{flex:1;min-height:0;grid-template-columns:1fr;grid-template-rows:repeat(5,minmax(0,1fr));gap:5px}
  .book-item{min-height:0;padding:5px 9px;border-radius:11px;overflow:hidden}
  .book-item b{font-size:12px}.book-item p{font-size:10px;line-height:1.3;margin:2px 0}
  .result-card{height:100%;margin:0;overflow:hidden;padding:10px;display:flex;flex-direction:column;justify-content:center}
  .result-card .eyebrow{font-size:10px}
  .result-icon{font-size:clamp(38px,8vh,60px);line-height:1.1}
  .result-card h1{font-size:clamp(23px,6vw,34px);margin:2px 0}
  .result-card .comment{font-size:12px;line-height:1.35;margin:3px 0}
  .result-score{padding:6px 12px;margin:5px auto;font-size:11px}
  .result-score strong{font-size:29px}
  .result-card .history{display:none}
  .result-card>.note{font-size:10px;margin:4px 0}
  .result-card .actions{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:6px}
  .result-card .actions .btn{padding:8px 4px;font-size:11px;border-radius:9px}
  body:has(.game-grid) .topbar{display:none}
  .game-grid{height:100%;padding:0;gap:5px;grid-template-columns:1fr;grid-template-rows:minmax(0,32%) minmax(0,1fr);overflow:hidden}
  .game-grid .scene{height:100%;min-height:0;position:relative;padding:0;overflow:hidden;border-radius:15px}
  .game-grid .scene .portrait{height:100%;border-radius:15px}
  .game-grid .scene .speech{position:absolute;left:6px;right:6px;bottom:6px;margin:0;min-height:0;padding:5px 9px;font-size:11px;line-height:1.25;border-radius:9px}
  .game-grid .scene .speech:before{font-size:14px}
  .game-grid .scene .portrait em{font-size:9px;padding:3px 7px}
  .dashboard{height:100%;min-height:0;gap:5px}
  .dashboard>.panel{padding:7px 9px;border-radius:13px}
  .dashboard>.panel:first-child{flex:0 0 auto}
  .dashboard>.panel:nth-child(2){flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
  .turnline{font-size:11px}
  .meter{height:5px;margin-top:5px}
  .rate{margin-top:4px;align-items:center}
  .rate small{font-size:10px}.rate strong{font-size:22px}
  .receipt-head{padding-bottom:4px;font-size:9px}
  .receipt-head .eyebrow{font-size:9px}
  .item-line{padding:6px 0;font-size:16px}
  .choice-instruction{margin:6px 0 5px;font-size:11px}
  .pay-options{flex:1;min-height:0;grid-template-rows:repeat(3,minmax(0,1fr));gap:4px}
  .pay-option{min-height:0;padding:4px 7px;border-radius:9px;grid-template-columns:28px 1fr 18px}
  .pay-number{width:24px;height:24px;font-size:12px}
  .pay-main b{font-size:16px}.pay-arrow{font-size:16px}
  .dashboard .note{display:none}
  .payment-feedback{flex:0 0 auto;margin:5px 0;padding:5px;border-radius:10px}
  .feedback-icon{font-size:20px;line-height:1}
  .payment-feedback h2{font-size:16px;margin:1px 0}
  .payment-feedback p{font-size:10px;margin:2px 0;line-height:1.2}
  .payment-feedback .feedback-line{display:none}
  .heart-gain{font-size:19px;line-height:1}
  .change-review{flex:1;min-height:0;margin:3px 0;padding:4px 6px;border-radius:9px;display:flex;flex-direction:column;justify-content:center}
  .change-review h3{font-size:10px;margin:0 0 2px}
  .change-row{font-size:10px;padding:3px 4px}
  .next-round{flex:0 0 35px;padding:5px;font-size:13px;border-radius:9px}
}
@media(max-width:700px) and (max-height:550px){
  .hero{grid-template-rows:28% minmax(0,1fr)}
  .game-grid{grid-template-rows:minmax(0,25%) minmax(0,1fr)}
  .payment-feedback{padding:3px;margin:3px 0}
  .feedback-icon{display:none}
  .change-row{padding:2px 4px}
}
@media(pointer:coarse) and (orientation:landscape) and (max-height:500px){
  html,body{height:100%;overflow:hidden}
  .shell{height:100vh;height:100dvh;min-height:0;padding:2px 8px}
  .topbar,footer{display:none}
  main{flex:1;min-height:0;overflow:hidden}
  .hero{height:100%;min-height:0;display:grid;grid-template-columns:1.1fr .9fr;grid-template-rows:1fr;gap:10px;padding:0}
  .hero-copy{grid-column:1;grid-row:1;align-self:center}
  .hero-art{grid-column:2;grid-row:1;width:100%;height:100%;aspect-ratio:auto}
  .hero .title{font-size:clamp(28px,5vw,48px);margin:4px 0}
  .hero .lead{font-size:11px;line-height:1.3}
  .hero .actions{margin-top:8px}.hero .switches{margin-top:5px}.hero .note{margin:3px 0;font-size:9px}
  .section-head{padding:3px 0 5px}.section-head h1{font-size:22px;margin:0}.section-head p{font-size:10px}
  main:has(.character-grid),main:has(.book-grid){display:flex;flex-direction:column}
  .character-grid{flex:1;min-height:0;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:1fr;gap:5px}
  .character-card{display:block;min-height:0;padding:5px;overflow:hidden}
  .character-card .portrait{height:70%}.character-card h2{font-size:15px;margin:2px 0}.character-card p,.character-card strong{font-size:9px}
  main:has(.character-grid)>.actions,main:has(.book-grid)>.actions{margin:3px 0;flex:0 0 30px}
  main:has(.character-grid)>.actions .btn,main:has(.book-grid)>.actions .btn{padding:4px 10px;font-size:10px}
  .book-grid{flex:1;min-height:0;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(2,minmax(0,1fr));gap:5px}
  .book-item{padding:5px;overflow:hidden}.book-item b{font-size:11px}.book-item p{font-size:9px}
  .game-grid{height:100%;padding:0;gap:5px;grid-template-columns:32% minmax(0,1fr);grid-template-rows:1fr;overflow:hidden}
  .game-grid .scene{height:100%;min-height:0;position:relative;padding:0;overflow:hidden}
  .game-grid .scene .portrait{height:100%}
  .game-grid .scene .speech{position:absolute;left:5px;right:5px;bottom:5px;margin:0;min-height:0;padding:5px;font-size:10px;line-height:1.2}
  .dashboard{height:100%;min-height:0;gap:4px}
  .dashboard>.panel{padding:5px 8px}.dashboard>.panel:first-child{flex:0 0 auto}
  .dashboard>.panel:nth-child(2){flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
  .turnline{font-size:10px}.meter{height:4px;margin-top:3px}.rate{margin-top:2px}.rate small{font-size:9px}.rate strong{font-size:19px}
  .receipt-head{padding-bottom:3px;font-size:9px}.item-line{font-size:15px;padding:4px 0}
  .choice-instruction{margin:4px 0;font-size:10px}
  .pay-options{flex:1;min-height:0;grid-template-rows:repeat(3,minmax(0,1fr));gap:3px}
  .pay-option{min-height:0;padding:3px 7px;grid-template-columns:26px 1fr 18px}
  .pay-main b{font-size:14px}.pay-number{width:22px;height:22px;font-size:11px}
  .dashboard .note{display:none}
  .payment-feedback{margin:3px 0;padding:3px}.feedback-icon{display:none}
  .payment-feedback h2{font-size:14px;margin:0}.payment-feedback p{font-size:9px;margin:1px}.payment-feedback .feedback-line{display:none}.heart-gain{font-size:17px}
  .change-review{flex:1;min-height:0;margin:2px 0;padding:3px 5px;display:flex;flex-direction:column;justify-content:center}
  .change-review h3{font-size:9px;margin:0}.change-row{font-size:9px;padding:2px 4px}
  .next-round{flex:0 0 30px;padding:3px;font-size:12px}
  .result-card{height:100%;margin:0;padding:5px;overflow:hidden;display:flex;flex-direction:column;justify-content:center}
  .result-card .eyebrow{font-size:9px}.result-icon{font-size:35px;line-height:1}
  .result-card h1{font-size:24px;margin:1px}.result-card .comment{font-size:11px;margin:1px}
  .result-score{padding:4px 10px;margin:3px auto;font-size:10px}.result-score strong{font-size:24px}
  .result-card .history{display:none}.result-card>.note{font-size:9px;margin:2px}
  .result-card .actions{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin:3px 0}
  .result-card .actions .btn{padding:5px;font-size:10px}
}

/* Full-screen character stage: controls float over the complete illustration. */
body:has(.game-grid){height:100%;overflow:hidden}
body:has(.game-grid) .shell{width:100%;max-width:none;height:100vh;height:100dvh;min-height:0;padding:0}
body:has(.game-grid) .topbar,body:has(.game-grid) footer{display:none}
body:has(.game-grid) main{height:100%;min-height:0;overflow:hidden}
.game-grid{display:block;position:relative;width:100%;height:100%;min-height:0;padding:0;overflow:hidden;border-radius:0;background:#35203d}
.game-grid .scene{position:absolute;inset:0;z-index:0;width:100%;height:100%;padding:0;border:0;border-radius:0;background:none;box-shadow:none;pointer-events:none}
.game-grid .scene .portrait{position:absolute;inset:0;width:100%;height:100%!important;border-radius:0;background:radial-gradient(circle at 36% 32%,var(--c1),var(--c2) 70%,#24132d)}
.game-grid .scene .portrait:before,.game-grid .scene .portrait em{display:none}
.game-grid .scene .portrait img{width:100%;height:100%;object-fit:contain;object-position:25% center;filter:drop-shadow(0 12px 25px #24132d88)}
.game-grid .scene .speech{position:absolute;top:30%;left:3%;right:auto;bottom:auto;z-index:2;width:min(34vw,380px);min-height:0;margin:0;padding:12px 15px;border:1px solid #ffffff88;border-radius:18px;background:#24132d82;backdrop-filter:blur(6px);box-shadow:0 8px 24px #1b0b2450;color:#fff;font-size:clamp(14px,1.5vw,20px);line-height:1.4}
.game-grid .dashboard{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:flex-end;gap:8px;width:100%;height:100%;padding:clamp(10px,2vw,24px);pointer-events:none}
.game-grid .dashboard>.panel{width:min(450px,40vw);min-height:0;padding:12px 15px;border:1px solid #ffffff73;border-radius:18px;background:#24132d8c;backdrop-filter:blur(8px);box-shadow:0 12px 30px #16071b50;pointer-events:auto}
.game-grid .dashboard>.panel:first-child{flex:0 0 auto}
.game-grid .dashboard>.panel:nth-child(2){display:flex;flex:0 1 auto;flex-direction:column;height:min(58%,510px);max-height:calc(100% - 80px);margin-top:auto;overflow:hidden}
.game-grid .pay-option,.game-grid .stamp-button,.game-grid .next-round{background:#ffffff2c;border:1px solid #ffffffa3;backdrop-filter:blur(3px);box-shadow:0 4px 12px #210d2840;color:#fff}
.game-grid .pay-option:hover,.game-grid .pay-option:focus-visible,.game-grid .stamp-button:hover,.game-grid .next-round:hover{background:#ffb1cd75}
.game-grid .stamp-button.btn.primary,.game-grid .next-round.btn.primary{background:#ed79a574;color:#fff;border-color:#ffe2ee}
.game-grid .change-review{background:#160f258c}
@media(max-width:700px) and (orientation:portrait){
  .hero{grid-template-columns:minmax(0,1fr)}
  .game-grid .scene .portrait img{object-position:center top}
  .game-grid .scene .speech{top:26%;left:8px;right:8px;width:auto;padding:7px 10px;border-radius:12px;font-size:12px;line-height:1.3}
  .game-grid .dashboard{align-items:center;gap:5px;padding:env(safe-area-inset-top) 8px env(safe-area-inset-bottom)}
  .game-grid .dashboard>.panel{width:100%;padding:7px 9px;border-radius:13px}
  .game-grid .dashboard>.panel:nth-child(2){height:50%;max-height:calc(100% - 68px)}
}
@media(max-width:700px) and (orientation:portrait) and (max-height:550px){
  .game-grid .scene .portrait img{position:absolute;top:18px;left:0;height:calc(100% - 18px)}
  .game-grid .scene .speech{top:34%;font-size:10px;padding:5px 8px}
  .game-grid .dashboard>.panel:first-child{padding:3px 7px}
  .game-grid .dashboard>.panel:first-child .turnline{font-size:10px}
  .game-grid .dashboard>.panel:first-child .meter{height:3px;margin-top:2px}
  .game-grid .dashboard>.panel:first-child .rate{margin-top:1px}
  .game-grid .dashboard>.panel:first-child .rate small{font-size:9px}
  .game-grid .dashboard>.panel:first-child .rate strong{font-size:16px}
  .game-grid .dashboard>.panel:nth-child(2){height:57%}
}
@media(orientation:landscape) and (max-height:500px){
  .game-grid .scene .portrait img{object-position:16% center}
  .game-grid .scene .speech{top:auto;bottom:6px;left:6px;right:auto;width:38%;padding:5px 7px;font-size:10px}
  .game-grid .dashboard{padding:4px 6px;gap:4px}
  .game-grid .dashboard>.panel{width:55%;padding:5px 8px}
  .game-grid .dashboard>.panel:nth-child(2){height:auto;max-height:none;flex:1 1 auto;margin-top:0}
}
.hero .title{font-size:clamp(36px,5.5vw,72px);letter-spacing:-.06em;margin:12px 0 6px}
.hero .subtitle{margin:0 0 12px;color:#ffd2e4;font-size:clamp(18px,2.4vw,28px);font-weight:800;letter-spacing:.05em}
@media(max-width:700px) and (orientation:portrait){
  .hero .title{font-size:clamp(27px,7.3vw,50px);margin:4px 0 1px}
  .hero .subtitle{font-size:clamp(14px,4vw,19px);margin:0 0 5px}
  .hero .lead{font-size:11px}
}
