/* App typography stays distinct from the editorial site wordmark. */
body{color:#353238;font-family:"Yu Gothic UI","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;font-size:16px;background:#f3efec}
.roulette-main{max-width:1200px;margin:auto;padding:44px 32px 64px}
.roulette-intro{text-align:left;padding-bottom:28px;margin-bottom:28px;border-bottom:1px solid #d9d0cb}
.roulette-intro .eyebrow{color:#78515f;font-size:12px;letter-spacing:.15em;font-weight:700}
.roulette-intro h1{font-family:inherit;font-weight:750;font-size:clamp(28px,3.7vw,44px);letter-spacing:-.025em;line-height:1.4;margin:12px 0 14px}
.roulette-intro>p:last-child{font-size:16px;line-height:1.85;color:#57515a}
.roulette-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:40px;align-items:start}
.choices-panel{background:#fffdfb;border:1px solid #d9cfca;border-radius:16px;padding:30px;min-width:0;box-shadow:0 8px 30px #372b3110;border-top:4px solid #3f3c43}
fieldset{border:0;padding:0;margin:0;min-width:0}
legend{font-size:13px;letter-spacing:.08em;margin-bottom:24px;color:#80606c;font-weight:700}
legend span{font:700 22px "Yu Gothic UI",Meiryo,sans-serif;letter-spacing:0;color:#353238;margin-left:10px}
label{display:block;font-size:15px;font-weight:650;margin-bottom:12px;line-height:1.7}
textarea{display:block;resize:vertical;min-height:205px;max-height:450px;width:100%;font:500 18px/1.95 "Yu Gothic UI",Meiryo,sans-serif;border:1px solid #bcb1ad;border-radius:10px;padding:15px 18px;color:#302d32;background:#f8f5f2;box-shadow:inset 0 1px 3px #392e3608}
textarea:focus-visible{outline:3px solid #79515f;outline-offset:3px}
.input-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;margin:8px 0;color:#57515a}
#choices-count{font-weight:700}
.input-meta button{border:0;background:transparent;color:#57515a;font-size:13px;text-decoration:underline;cursor:pointer;min-height:44px;padding:6px}
.help,.privacy-note{font-size:13px;line-height:1.85;color:#605861}
.privacy-note{border-top:1px solid #e7deda;text-align:left;margin-top:22px;padding-top:17px}
.error{font-size:14px;font-weight:600;color:#a02e49;min-height:24px;margin-top:10px;overflow-wrap:anywhere}
.spin-button{width:100%;border:1px solid #3d3540;border-radius:10px;background:#403641;color:#fff;min-height:58px;padding:14px 20px;cursor:pointer;font-size:17px;font-weight:700;letter-spacing:.03em;display:flex;align-items:center;justify-content:center;gap:20px;margin-top:12px;box-shadow:0 4px 0 #28212c;transition:background .15s,transform .15s}
.spin-button:hover{background:#665064;transform:translateY(-1px)}
fieldset:disabled .spin-button{background:#746a75;box-shadow:none;cursor:wait;transform:none}fieldset:disabled textarea{opacity:.7}
.wheel-panel{text-align:center;min-width:0;padding-top:10px}
.wheel-frame{width:min(100%,420px);aspect-ratio:1;margin:10px auto 26px;position:relative;border:10px solid #fffdfb;border-radius:50%;outline:2px solid #554752;box-shadow:0 18px 35px #4434401c;isolation:isolate}
canvas{width:100%;height:100%;display:block;border-radius:50%}
.wheel-pointer{position:absolute;top:-24px;left:calc(50% - 15px);width:0;height:0;border-left:15px solid transparent;border-right:15px solid transparent;border-top:35px solid #403641;z-index:2;filter:drop-shadow(0 3px 1px #fff9)}
.wheel-center{position:absolute;left:calc(50% - 32px);top:calc(50% - 32px);width:64px;height:64px;display:grid;place-items:center;border-radius:50%;background:#403641;color:#fff;border:5px solid #fffdfb;font:700 12px "Yu Gothic UI",Meiryo,sans-serif;letter-spacing:.08em;box-shadow:0 3px 12px #44344026;pointer-events:none}
.result-box{background:#fffdfb;border:1px solid #cfc0c6;border-left:5px solid #b38a99;padding:18px 24px;border-radius:10px;margin:auto;text-align:left;max-width:470px;min-height:104px}
#result-label{font-size:13px;font-weight:700;letter-spacing:.04em;color:#66505d}
#result{font-family:inherit;font-weight:750;font-size:25px;margin-top:6px;line-height:1.55;overflow-wrap:anywhere}
.result-box.is-result{background:#f1dfe6;border-color:#9e7587}
.wheel-tip{font-size:13px;color:#605861;margin-top:15px}
.wheel-legend{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 14px;padding:0;margin:20px 0 0;text-align:left}
.wheel-legend li{display:flex;align-items:start;gap:9px;font-size:14px;line-height:1.7;min-width:0;overflow-wrap:anywhere}
.choice-number{flex:0 0 25px;height:25px;display:grid;place-items:center;border:1px solid #75616e33;border-radius:7px;font-size:12px;font-weight:700;color:#332f32}
.how-to{border-top:1px solid #d9d0cb;margin-top:40px;padding-top:24px}.how-to h2{font:700 19px "Yu Gothic UI",Meiryo,sans-serif}.how-to ol{list-style-position:inside;padding:0;display:flex;gap:30px;font-size:14px}.how-to p{font-size:13px;color:#605861;max-width:720px}
@media(max-width:760px){.roulette-main{padding:28px 20px 40px}.roulette-intro{padding-bottom:22px;margin-bottom:24px}.roulette-intro h1{font-size:clamp(25px,5.5vw,36px)}.roulette-intro .eyebrow{font-size:11px}.roulette-intro>p:last-child{font-size:15px}.roulette-layout{grid-template-columns:1fr;gap:30px}.choices-panel{padding:22px}.wheel-frame{width:min(100% - 8px,390px)}.wheel-panel{padding:0}legend span{font-size:21px}.help,.privacy-note{font-size:13px}textarea{min-height:180px}.how-to ol{display:block}.how-to li{margin-top:9px}#result{font-size:23px}.wheel-legend{gap:10px}.wheel-legend li{font-size:14px}}
@media(max-width:360px){.roulette-main{padding-inline:16px}.choices-panel{padding:18px}.roulette-intro h1{font-size:24px}.wheel-legend{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.spin-button{transition:none}}
/* Clear empty state and a compact editorial guide. */
textarea::placeholder{color:#756e77;opacity:1;font-weight:400}
.duplicate-help{font-size:13px;color:#605861;margin-top:12px;line-height:1.8}
.duplicate-help summary{cursor:pointer;text-decoration:underline;text-underline-offset:4px;min-height:32px;padding:4px 0}
.duplicate-help p{padding:12px 14px;margin-top:8px;background:#f3edeb;border-radius:8px;color:#49404b}
.result-box:focus-visible{outline:3px solid #79515f;outline-offset:4px}
.how-to{margin-top:48px;padding-top:30px}
.how-to-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:22px}
.how-to-heading .eyebrow{font-size:11px;color:#78515f}
.how-to .how-to-heading h2{font-size:23px;letter-spacing:-.02em}
.how-to .steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));list-style:none;padding:0;margin:0;gap:16px;max-width:none}
.steps li{display:flex;flex-direction:column;align-items:start;position:relative;padding:22px;background:#fffdfa;border:1px solid #dfd3ce;border-radius:12px;min-width:0;overflow:hidden}
.steps li:nth-child(2){background:#ede7ed}.steps li:nth-child(3){background:#e8ede5}
.step-number{font-size:12px;font-weight:750;letter-spacing:.15em;border-bottom:2px solid #b38a99;padding-bottom:7px;margin-bottom:18px}
.steps h3{font:700 17px "Yu Gothic UI",Meiryo,sans-serif;margin-bottom:10px}
.how-to .steps p{font-size:14px;line-height:1.85;color:#57515a;position:relative;z-index:1}
.step-symbol{position:absolute;right:15px;top:9px;font:400 39px sans-serif;color:#75616e50}
.how-to .display-note{font-size:12px;line-height:1.9;margin-top:18px}
@media(max-width:760px){.how-to-heading{display:block}.how-to .how-to-heading h2{margin-top:7px;font-size:22px}.how-to .steps{grid-template-columns:1fr;gap:12px}.steps li{flex-direction:row;gap:18px;padding:20px;margin-top:0}.step-number{flex:0 0 26px;margin:3px 0 0}.steps h3{margin-bottom:5px}.step-symbol{font-size:28px}.how-to .steps p{padding-right:10px}.how-to .steps br{display:none}}
.example-picker{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.example-caption{font-size:12px;font-weight:600;color:#655d66;margin-right:5px}
.example-picker button{border:1px solid transparent;background:transparent;color:#625a65;border-radius:6px;min-height:44px;padding:7px 12px;font-size:13px;line-height:1.4;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s}
.example-picker button:hover{background:#eee7ea}
.example-picker button[aria-pressed="true"]{background:#eae2e9;border-color:#bca7b8;color:#403641}
.example-picker button:disabled{cursor:wait;opacity:.6}
@media(max-width:360px){.example-picker{gap:3px}.example-picker button{padding-inline:9px}.example-caption{margin-right:1px}}
@media(prefers-reduced-motion:reduce){.example-picker button{transition:none}}
.roulette-intro .app-subtitle{font-size:13px;font-weight:700;letter-spacing:.12em;color:#78515f;margin:-4px 0 15px}
.examples-help{font-size:13px;line-height:1.8;color:#605861;margin:-2px 0 14px;max-width:36em}
/* Result reveal: quiet celebration with a direct way to spin again. */
.result-box{position:relative;max-width:470px;padding:22px 28px 24px;border:1px solid #d4c4cc;border-radius:16px;background:#fffaf9;text-align:center;box-shadow:0 8px 26px #44344008;scroll-margin-block:24px}
.result-kicker{display:flex;align-items:center;gap:10px;font-size:10px;font-weight:700;letter-spacing:.18em;color:#795a6b;text-align:left}
.result-kicker>span:first-child{font-size:17px}.result-rule{height:1px;flex:1;background:#d8c5ce;margin-left:4px}
.result-message{padding:24px 0 26px}
.result-box #result-label{font-size:14px;font-weight:600;color:#6f5866;letter-spacing:.06em}
.result-box #result{font:700 clamp(21px,3vw,30px)/1.65 "Yu Gothic UI",Meiryo,sans-serif;margin:12px 0 0;overflow-wrap:anywhere}
.result-box.is-result{background:linear-gradient(135deg,#fbf1f2,#f0dfe8);border-color:#b794a5;box-shadow:0 12px 35px #79516a15;animation:result-reveal .45s ease-out both}
.result-box.is-result #result{font-size:clamp(28px,4vw,40px);color:#40303f;letter-spacing:.02em}
.result-bottom{border-top:1px solid #d8c5ce;position:relative;padding-top:18px;display:flex;justify-content:center;min-height:28px}
.result-spark{position:absolute;top:-15px;left:calc(50% - 15px);width:30px;background:#fffaf9;color:#926a80;font-size:20px;line-height:28px}
.is-result .result-spark{background:#f5e7ed}
.respin-button{border:1px solid #ac889c;border-radius:30px;padding:11px 23px;background:#fffaf9;color:#503b4e;font-size:14px;font-weight:700;cursor:pointer;min-height:46px;display:inline-flex;align-items:center;gap:16px}
.respin-button[hidden]{display:none}.respin-button:hover{background:#f4e9f0}.respin-button:disabled{opacity:.6;cursor:wait}
@keyframes result-reveal{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:760px){.result-box{padding:20px 22px 23px}.result-message{padding:22px 0}.result-box.is-result #result{font-size:32px}}
@media(prefers-reduced-motion:reduce){.result-box.is-result{animation:none}}

.motion-option{display:flex;align-items:center;gap:10px;margin:16px 0 0;min-height:44px;cursor:pointer;font-size:14px}
.motion-option input{width:20px;height:20px;accent-color:#79515f;flex-shrink:0}
.motion-option input:focus-visible{outline:3px solid #79515f;outline-offset:3px}
#motion-help{margin:4px 0 12px}
