:root{font-family:"Segoe UI","Noto Sans JP",sans-serif;color:#193c36;background:#f2f6f2;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #d39324;outline-offset:4px}header{max-width:1180px;margin:auto;padding:25px 30px;display:flex;justify-content:space-between;align-items:center}.brand{text-decoration:none;font-weight:750;color:#193c36;letter-spacing:-.5px}.brand span{font-size:.75rem;letter-spacing:2px;margin-left:8px}.tag{font-size:.85rem;color:#63766b}main{max-width:1120px;margin:16px auto 40px;display:grid;grid-template-columns:1.15fr 1fr;gap:55px;padding:0 28px}.play{text-align:center}.eyebrow{font-size:.75rem;letter-spacing:2.5px;color:#7c8d6d;font-weight:700;margin:12px 0}h1{font-size:2.4rem;letter-spacing:.12em;margin:0 0 10px}h2{font-size:1.35rem;margin:0}.intro,.muted{font-size:.9rem;color:#65766e;line-height:1.8}.wheel-frame{position:relative;max-width:440px;margin:38px auto 14px;padding:10px;border-radius:50%;background:linear-gradient(140deg,#c59a53,#f5e0a5 35%,#b88b3f 80%,#fae8bd);box-shadow:0 17px 40px #15352b24,0 2px 0 #95713c;aspect-ratio:1}.hanger{position:absolute;width:25px;height:25px;border:5px solid #bd9651;border-radius:50%;top:-17px;left:calc(50% - 12.5px);z-index:-1}.pointer{position:absolute;top:-6px;left:calc(50% - 14px);width:28px;height:44px;clip-path:polygon(0 0,100% 0,50% 100%);background:#193c36;z-index:3;filter:drop-shadow(0 2px 2px #0005)}#wheel{display:block;position:relative;width:100%;height:100%;padding:0;border:5px solid #233f36;border-radius:50%;overflow:hidden;background:#fff;touch-action:manipulation}canvas{width:100%;height:100%;display:block}.hub{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:49px;height:49px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,#fff4d7,#c29950);border:5px solid #244336;color:#244336;box-shadow:0 3px 8px #0003;font-size:12px;pointer-events:none}.result{min-height:86px;padding:12px 0}.result span{display:block;font-size:.85rem;color:#718177}.result strong{display:block;font-size:1.7rem;margin-top:7px;overflow-wrap:anywhere}.primary{width:min(100%,370px);border:0;border-radius:13px;background:#204c40;color:#fff;padding:17px 20px;font-weight:700;box-shadow:0 5px 0 #13392e;touch-action:manipulation}.primary:hover{background:#2d6052}.primary.stopping{background:#78897f;box-shadow:0 5px 0 #627269}.hint{font-size:.8rem;color:#7e8b80;margin:15px 0}.editor{background:#fff;border:1px solid #dce6db;border-radius:22px;padding:28px;align-self:start;margin-top:15px;box-shadow:0 9px 28px #243e2506}.section-head{display:flex;justify-content:space-between;align-items:center}.count{background:#eef4ec;padding:8px 11px;border-radius:9px;font-size:.85rem;white-space:nowrap}.editor .eyebrow{margin-top:0}fieldset{padding:0;margin:22px 0 0;border:0;min-width:0}#items{display:grid;gap:10px;max-height:460px;overflow:auto;padding:3px}.item{display:flex;gap:10px;align-items:center}.item input[type=color]{width:42px;height:44px;padding:3px;border:1px solid #d9e1d8;border-radius:9px;background:#fff;cursor:pointer;flex:none}.item input[type=text]{width:100%;min-width:0;font:inherit;font-size:1rem;padding:12px;border:1px solid #dce4da;border-radius:9px;background:#fafcf9}.remove{flex:none;width:40px;height:44px;border:0;background:transparent;color:#8a968b;font-size:1.4rem}.remove:hover{background:#fcebe8;color:#a44736;border-radius:8px}.add{width:100%;padding:13px;background:#f3f7ef;border:1px dashed #bbcbb0;border-radius:10px;color:#365c3e;margin:15px 0}.tools{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:.85rem}.tools button{background:none;border:0;color:#758174;padding:10px 0;text-decoration:underline}.tools label{display:flex;align-items:center;gap:5px}.save-note,.notice{font-size:.8rem;color:#788674;line-height:1.7}.notice{color:#a65b35;min-height:1em;margin:8px 0}.save-note{border-top:1px solid #edf1e9;padding-top:15px}details{font-size:.85rem;color:#647560;line-height:1.9;margin-top:18px}summary{cursor:pointer}ol{padding-left:22px}footer{max-width:1120px;margin:0 auto;padding:20px 28px 35px;display:flex;gap:22px;justify-content:center;flex-wrap:wrap;font-size:.8rem;color:#7e8a7b}footer a{color:inherit}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}button:disabled{cursor:default;opacity:.65}@media(max-width:760px){header{padding:20px}.tag{display:none}main{grid-template-columns:1fr;gap:20px;margin-top:0;padding:0 18px}.play h1{font-size:2rem}.wheel-frame{max-width:370px;margin-top:30px}.editor{padding:22px;margin:0}.intro{font-size:.82rem}.result strong{font-size:1.5rem}footer{gap:16px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}

/* Fixed play surface; only the settings dialog scrolls. */
.roulette-page{--wheel-size:min(76vw,calc(100dvh - 330px),460px);height:100vh;height:100dvh;overflow:hidden;overscroll-behavior:none}
.roulette-page header{position:fixed;inset:0 0 auto;max-width:none;margin:0;padding:16px 24px;z-index:2}
.settings-button,.close-button{border:1px solid #cbd8c9;border-radius:10px;background:#fff;color:#244b3d;padding:10px 20px;font-weight:700}
.roulette-page main{display:block;position:fixed;inset:0;max-width:none;margin:0;padding:0;pointer-events:none}
.play{position:absolute;inset:0}.play-heading{position:absolute;bottom:calc(50% + var(--wheel-size)/2 + 20px);left:16px;right:16px}.play-heading .eyebrow{margin:0 0 8px}.play-heading h1{font-size:2rem;margin:0}.play-heading .intro{margin:8px 0 0}
.roulette-page .wheel-frame{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:var(--wheel-size);height:var(--wheel-size);max-width:none;margin:0;pointer-events:auto}
.play-actions{position:absolute;top:calc(50% + var(--wheel-size)/2 + 10px);left:50%;transform:translateX(-50%);width:min(90vw,420px);pointer-events:auto}.result{min-height:70px;padding:5px 0 10px}.result strong{font-size:1.45rem;margin:3px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.primary{padding:13px 20px}.hint{margin:10px 0 0}
.roulette-page footer{position:fixed;inset:auto 12px 0;max-width:none;margin:0;padding:9px 0;gap:16px;font-size:.75rem}
dialog.editor{position:fixed;inset:0;width:min(560px,calc(100vw - 28px));max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);margin:auto;overflow:auto;overscroll-behavior:contain;padding:24px;box-shadow:0 22px 70px #102c3840}dialog.editor:not([open]){display:none}dialog::backdrop{background:#102b296b;backdrop-filter:blur(5px)}.modal-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:24px}.modal-toolbar h2{font-size:1.5rem}.close-button{padding:8px 16px}dialog #items{max-height:none;overflow:visible}
@media(max-width:760px){.roulette-page header{padding:12px 16px}.play-heading h1{font-size:1.8rem}.play-heading .eyebrow{font-size:.65rem}.play-heading .intro{font-size:.78rem}.roulette-page footer{gap:12px;font-size:.65rem}dialog.editor{padding:20px}}
@media(max-height:620px) and (min-width:601px){.roulette-page{--wheel-size:min(42vw,calc(100dvh - 100px),380px)}.play-heading{left:16px;right:auto;bottom:auto;top:50%;transform:translateY(-50%);width:calc((100vw - var(--wheel-size))/2 - 32px)}.play-heading .eyebrow,.play-heading .intro{display:none}.play-heading h1{font-size:1.5rem}.play-actions{left:auto;right:16px;top:50%;transform:translateY(-50%);width:calc((100vw - var(--wheel-size))/2 - 32px)}.play-actions .hint{display:none}.primary{padding:12px 8px}.result strong{font-size:1.1rem}.result span{font-size:.75rem}}
@media(max-height:620px) and (max-width:600px){.roulette-page{--wheel-size:min(68vw,calc(100dvh - 265px))}.play-heading{bottom:calc(50% + var(--wheel-size)/2 + 16px)}.play-heading .eyebrow,.play-heading .intro,.hint{display:none}.play-heading h1{font-size:1.5rem}.result{min-height:60px}.result strong{font-size:1.2rem}.roulette-page footer{font-size:.6rem;gap:9px}}

.header-actions{display:flex;align-items:center;gap:10px}.language-control select{font:inherit;font-size:.85rem;color:#244b3d;background:#fff;border:1px solid #cbd8c9;border-radius:10px;padding:10px 26px 10px 10px;max-width:155px;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%23244b3d' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 9px center;background-size:10px}.privacy-content{line-height:1.9}.privacy-content h1{font-size:clamp(1.5rem,6vw,2.2rem);overflow-wrap:anywhere}.privacy-language{display:flex;justify-content:flex-end}.roulette-page .play-heading h1{font-size:clamp(1.45rem,6vw,2rem)}.play-heading .intro{max-width:95%;margin:8px auto 0}.roulette-page .primary{white-space:normal}.roulette-page .count{flex-shrink:0}.roulette-page footer{flex-wrap:nowrap;align-items:center}.roulette-page footer a{max-width:42%;text-align:center}.roulette-page footer span{white-space:nowrap}@media(max-width:480px){.roulette-page header{padding:12px}.brand{font-size:.8rem}.brand span{display:none}.header-actions{gap:6px}.language-control select{max-width:132px;font-size:.78rem;padding-top:10px;padding-bottom:10px}.settings-button{font-size:.8rem;padding:10px 12px}.play-heading .eyebrow{letter-spacing:1px}.roulette-page footer{font-size:.6rem;gap:10px}.play-actions .result span,.play-actions .hint{font-size:.75rem}.modal-toolbar h2{font-size:1.3rem}.section-head h2{font-size:1.15rem}.tools{flex-wrap:wrap}.roulette-page .play-heading{left:10px;right:10px}}

@media(max-width:360px){.roulette-page header{column-gap:8px}.brand{font-size:.72rem;flex-shrink:0}.header-actions{gap:5px}.language-control select{max-width:112px;font-size:.72rem;padding-left:8px}.settings-button{font-size:.75rem;padding:10px 8px}}

.roulette-page header{justify-content:flex-end}

/* Pale wooden frame and soft felt sectors, matching the sharing image. */
.roulette-page .wheel-frame{padding:clamp(10px,3.5%,17px);background:repeating-radial-gradient(ellipse at 48% 44%,#ba855018 0 1px,#fff0d22b 2px 3px,transparent 4px 7px),linear-gradient(125deg,#f8dfb9 0%,#e3b582 32%,#f3d2a6 58%,#d3a16e 100%);box-shadow:inset 1px 2px 2px #fff3de,inset -2px -3px 3px #a8744440,0 14px 28px #29473522,0 2px 3px #83572f44}
.roulette-page #wheel{border:1px solid #9c704b80;box-shadow:0 0 0 2px #f4d6ae80,inset 0 3px 5px #593d3526}
.roulette-page .hanger{border:4px solid #cea16e;z-index:0;top:-14px;width:22px;height:22px;left:calc(50% - 11px)}
.roulette-page .pointer{top:-9px;left:calc(50% - 20px);width:40px;height:53px;background:linear-gradient(130deg,#fffdf4,#f2e9d5);clip-path:polygon(6% 0,94% 0,100% 10%,61% 91%,50% 100%,39% 91%,0 10%);filter:drop-shadow(0 3px 2px #5d493744)}
.roulette-page .pointer::after{content:'';position:absolute;top:8px;left:14px;width:12px;height:12px;border-radius:50%;background:linear-gradient(145deg,#f3d8aa,#c28f56);box-shadow:0 1px 2px #5c422e66}
.roulette-page .hub{width:clamp(30px,10%,47px);height:clamp(30px,10%,47px);border:1px solid #c08e58;background:repeating-linear-gradient(24deg,transparent 0 3px,#b67e4012 4px,transparent 5px 8px),linear-gradient(130deg,#f9e1ba,#e0b785);color:transparent;box-shadow:inset 1px 1px 2px #fff4d8,0 3px 5px #634a3b40}
