/* Publication layout: Pokemas Lab's existing cream/lavender tool theme. */
:root{--teal:var(--theme-purple,#56388d);background:var(--paper,#fff8e9);color:var(--ink,#3d3153)}
.gacha-page{margin:0;font-family:"Hiragino Maru Gothic ProN","Hiragino Sans","Noto Sans JP",system-ui,sans-serif}
.gacha-page a{color:var(--theme-purple)}
.gacha-page>.site-header{max-width:1120px;margin:auto;padding:20px 28px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:18px;border-bottom:1px solid var(--line)}
.detail-brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-size:21px;line-height:1.35;white-space:nowrap}
.detail-brand img{width:44px;height:44px;object-fit:contain;flex-shrink:0}
.site-links{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px 20px}
.site-links a{font-size:13px;text-decoration:none}
.site-links a:hover{text-decoration:underline}
.site-links .language{float:none;margin:0;padding:5px 12px;background:var(--theme-soft);border:1px solid var(--line);border-radius:999px}
.gacha-main{max-width:960px;margin:auto;padding:24px 28px 12px}
.gacha-intro{padding:4px 0 22px}
.gacha-intro h1{font-size:clamp(1.9rem,5vw,2.85rem);letter-spacing:-.025em;margin:0 0 10px;line-height:1.4}
.gacha-intro p{margin:0;color:var(--muted)}
.gacha-page section,.gacha-main>details{border-color:var(--line);border-radius:20px;box-shadow:var(--theme-shadow)}
.gacha-page button{background:var(--theme-purple);color:#fff}
.gacha-page button:hover:not(:disabled){background:#704fa6;color:#fff}
.gacha-page .mode-switch button{background:white;border-color:#d5c4e2;color:var(--theme-purple);border-radius:12px}
.gacha-page .mode-switch button[aria-pressed=true]{background:var(--theme-purple);color:#fff}
.gacha-page .mode-switch button[aria-pressed=false]{background:#fff;color:var(--theme-purple)}
.gacha-page .secondary,.gacha-page .scenario-button{background:#fff;color:var(--theme-purple);border:1px solid #d5c4e2}
.gacha-page .secondary:hover:not(:disabled),.gacha-page .scenario-button:hover:not(:disabled),.gacha-page .mode-switch button[aria-pressed=false]:hover{background:#f4edf9;color:var(--theme-purple)}
.gacha-page .choice:hover,.gacha-page .choice:has(input:checked),.gacha-page .scenario-button[aria-pressed=true]{border-color:#b495cf;background:#f4edf9}
.gacha-page .choice:has(input:checked){border-color:var(--theme-purple)}
.gacha-page progress,.gacha-page progress::-webkit-progress-bar{background:#e9dfef}
.gacha-page .question-hint,.gacha-page .small,.gacha-page .target-summary,.gacha-page .facts th,.gacha-page .result-highlights dt{color:var(--muted)}
.gacha-page .result-highlights>div,.gacha-page .input-preview,.gacha-page .decision-note,.gacha-page .limitations{background:#f4edf9}
.gacha-page .result-highlights dd,.gacha-page .target-probabilities caption{color:var(--theme-purple)}
.gacha-page .saving-option{background:#f6f0fb;border-color:#d9c8e8}
.gacha-page .tier-saving{background:#f2f5ed;border-color:#d4dfc7}
.gacha-page #data-calculation-details{margin-top:28px;background:#fcf9ff;box-shadow:none}
.gacha-page>.site-disclaimer{max-width:960px;margin:16px auto 0;padding:28px 28px 36px;border-top:1px solid var(--line);font-size:12px;line-height:1.9;color:var(--muted)}
.site-disclaimer p{margin:0 0 10px}
.site-disclaimer .footer-brand{font-size:17px;font-weight:800;color:var(--theme-purple)}
.site-disclaimer nav{display:flex;gap:8px 18px;flex-wrap:wrap;margin:12px 0 18px}
.site-disclaimer .copyright{margin-top:16px}
.gacha-page .analytics-settings{display:inline;width:auto;min-height:32px;padding:3px 7px;background:transparent;border:1px solid #d5c4e2;color:var(--theme-purple);font-size:12px;font-weight:500}
.gacha-page .analytics-consent{position:fixed;bottom:16px;left:16px;right:16px;max-width:600px;margin:auto;z-index:100;background:white;padding:16px;border:1px solid var(--line);border-radius:18px;box-shadow:0 6px 25px #56388d1c;font-size:13px;line-height:1.8}
.analytics-consent p{margin:0 0 12px}
.analytics-consent>div{display:flex;justify-content:flex-end;gap:12px}
.gacha-page .analytics-consent button{width:auto;min-height:40px;padding:8px 16px}
.gacha-page .analytics-consent [data-choice=denied]{background:white;color:var(--theme-purple);border:1px solid #d5c4e2}
.skip-link{position:absolute;top:-100px;left:12px;z-index:200;background:white;padding:12px}
.skip-link:focus{top:12px}
@media(max-width:640px){.gacha-page>.site-header{padding:14px 18px;gap:12px}.detail-brand{font-size:19px}.detail-brand img{width:38px;height:38px}.site-links{width:100%;justify-content:flex-start;gap:8px 16px}.site-links a{font-size:12px}.site-links .language{margin-left:auto;padding:3px 10px}.gacha-main{padding:20px 16px 8px}.gacha-intro{padding:0 2px 18px}.gacha-intro h1{font-size:1.95rem}.gacha-intro p{font-size:.95rem}.gacha-page section,.gacha-main>details{border-radius:17px}.gacha-page>.site-disclaimer{padding:24px 18px 32px}.gacha-page .analytics-consent{bottom:10px;left:10px;right:10px}}
