@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700;800;900&display=swap');
:root{--ink:#25372e;--green:#287452;--lime:#e5efad;--paper:#faf8f1;--muted:#7b8279;--line:#e3e5d9;--purple:#ece8fa;--red:#a7433f}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;background:var(--paper);color:var(--ink);font-family:'Noto Sans JP',system-ui,sans-serif;font-size:15px;line-height:1.8}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{min-height:48px;border:1px solid var(--line);background:white;color:var(--ink);border-radius:12px;padding:12px 22px;cursor:pointer;font-weight:700;transition:transform .15s,background .15s}button:hover{background:#f2f5e8;transform:translateY(-2px)}button:disabled{opacity:.45;cursor:wait;transform:none}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #937bd3;outline-offset:4px}button.primary{background:var(--green);border-color:var(--green);color:#fff}button.primary:hover{background:#1c5e41}header{max-width:1200px;margin:auto;padding:27px 40px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.brand{font-weight:900;text-decoration:none;color:var(--ink);font-size:18px;letter-spacing:.02em}.brand-icon{color:var(--green);font-size:28px;vertical-align:middle;margin-right:8px}.header-note{font-size:12px;color:var(--muted)}main{max-width:1080px;margin:auto;padding:0 36px}.hero{display:grid;grid-template-columns:1.4fr 1fr;align-items:center;min-height:420px;padding:38px 0 48px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.18em;color:var(--green)}h1{font-size:clamp(38px,5.4vw,62px);line-height:1.4;letter-spacing:-.045em;margin:16px 0 18px;font-weight:900}h1 span{color:var(--green)}.hero p{font-size:14px;color:#657063;line-height:2}.journey{display:flex;align-items:center;gap:15px;margin-top:28px;font-size:11px;font-weight:700}.journey span{background:#eeeee4;border-radius:20px;padding:5px 12px}.journey b{color:#b3baaa}.hero-art{height:310px;position:relative;display:grid;place-items:center}.large-coin{width:165px;height:165px;border-radius:50%;background:#f3c95f;border:8px solid #f9df8c;box-shadow:9px 12px 0 #d7a644,12px 19px 25px #9b9f8125,inset 0 0 0 2px #e1b954;display:grid;place-items:center;font-size:85px;color:#9b7226;font-weight:900;transform:rotate(-17deg)}.orbit{position:absolute;border:1px dashed #d7deca;border-radius:50%;width:300px;height:300px}.orbit-two{width:245px;height:245px}.spark{position:absolute;color:var(--green);font-size:30px}.s1{top:28px;right:40px}.s2{bottom:48px;left:38px}.coin-caption{position:absolute;right:0;bottom:8px;transform:rotate(-8deg);background:white;border:1px solid var(--line);padding:10px 21px;border-radius:10px;font-size:12px;font-weight:700}.game-nav{display:flex;border-bottom:1px solid var(--line);gap:36px;margin-bottom:46px}.game-nav a{padding:17px 0;text-decoration:none;color:#8a8d83;font-size:14px;font-weight:700}.game-nav a.active{border-bottom:3px solid var(--green);color:var(--green)}.game-nav a span{font-size:11px;margin-right:10px}.game-nav small{margin-left:6px}.section-head{display:flex;justify-content:space-between;align-items:center}h2{font-size:30px;margin:8px 0;letter-spacing:-.035em}h3{font-size:21px;line-height:1.65;margin:13px 0}.tag{border:1px solid #d6dec1;color:var(--green);border-radius:30px;padding:5px 14px;font-size:11px;font-weight:700}.tag.purple{background:var(--purple);border-color:var(--purple)}.intro{color:#6d766c;margin:8px 0 25px}.rules{background:#eff1e3;border:1px solid #e5e9d6;padding:22px 26px;border-radius:15px;display:flex;align-items:center;gap:20px;margin-bottom:26px}.rules strong{font-size:14px}.rules p{font-size:12px;color:#737c69;margin:4px 0 0}.rule-coin{width:45px;height:45px;border:3px solid #ead182;background:#f8e5a0;border-radius:50%;display:grid;place-items:center;flex-shrink:0;font-weight:800;color:#987a34}.card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:32px;margin:22px 0;box-shadow:0 4px 0 #263e2b02}.step{font-size:11px;letter-spacing:.12em;font-weight:800;color:var(--green)}.muted{color:var(--muted);font-size:13px}.choices{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:24px 0}.choices button{font-size:25px;padding:20px 10px}.choices span{font-size:12px;margin-left:5px}.choices button.selected,.decision.selected{background:#edf4d5;border:2px solid var(--green);color:var(--green)}.input-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0}.input-row label{font-size:13px;font-weight:600}.input-row input{border:1px solid #d8ddcf;border-radius:9px;min-height:46px;padding:8px 13px;width:200px;max-width:100%;background:#fbfcf8}.footnote{display:block;color:#8b9185;font-size:11px;margin-top:14px}.error{color:var(--red);font-size:13px}.button-row{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.play-layout{display:grid;grid-template-columns:1fr 1.3fr;gap:35px;margin:25px 0}.coin-stage{min-height:240px;background:#f7f8ef;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:25px}.play-coin{height:100px;width:100px;background:#f8d878;border:7px solid #f7e3a6;box-shadow:4px 6px 0 #d0ac4c;border-radius:50%;display:grid;place-items:center;font-weight:900;font-size:36px;color:#886923}.play-coin.flip{animation:flip .4s ease}.small{height:66px;width:66px;font-size:23px;flex-shrink:0}.tosses{display:flex;gap:7px;flex-wrap:wrap;justify-content:center;font-size:12px;margin-top:25px;max-height:100px;overflow:auto}.tosses span{background:white;border-radius:5px;padding:2px 6px}.result{font-size:23px;font-weight:800;line-height:1.65;margin:8px 0 15px}.receipt{margin:15px 0;line-height:2.2;font-size:14px}.receipt div{display:flex;justify-content:space-between;border-bottom:1px dashed var(--line)}.receipt strong{font-size:19px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:22px 0}.stat{padding:15px;background:#f6f7f1;border-radius:12px;min-width:0}.stat span{font-size:11px;color:#778170;display:block}.stat strong{font-size:23px;line-height:1.7;overflow-wrap:anywhere}.stat small{font-size:11px}.prediction-note{border-left:3px solid #b4ce7b;padding-left:14px;font-size:14px}.chart-title{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px}.chart-title span{font-size:11px;color:var(--muted)}canvas{display:block;width:100%;height:270px;margin:15px 0}#crowd{height:340px}.progress{height:4px;background:#f0f3e8;border-radius:10px;overflow:hidden}.progress div{height:100%;width:0;background:var(--green);transition:width .15s}.jackpot{color:#9a681c;font-size:18px;font-weight:800;min-height:34px}.jackpot.pop{animation:pop .6s ease}.reveal-card{background:#f2f5e2}.equations{display:flex;gap:12px;flex-wrap:wrap;margin:26px 0}.equations span{padding:14px 20px;background:white;border-radius:10px;font-family:system-ui;font-size:22px}.equations b{color:var(--green)}.infinity{font-size:30px;letter-spacing:3px}.infinity strong{font-size:52px;color:var(--green)}.martingale-stage{display:flex;align-items:center;gap:26px;margin:30px 0}.history{display:flex;flex-wrap:wrap;gap:6px;min-height:38px}.history span{font-size:12px;padding:4px 10px;border-radius:7px;background:#e8f0d9}.history .loss{background:#f9e6dc;color:#974c32}.failure{background:#f9e6dc;color:#974436;border-radius:12px;padding:20px;font-weight:700}.text-button{background:transparent}.legend{display:flex;flex-wrap:wrap;gap:18px;font-size:12px}.legend i{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px}.positive{background:#398165}.neutral{background:#c6ccb9}.negative{background:#e9b35f}.broke{background:#9062a6}.crowd-stats{grid-template-columns:repeat(3,1fr)}#game2{margin-top:65px}#summary{padding:70px 0 30px;text-align:center}#summary h2{font-size:clamp(27px,4vw,42px);line-height:1.65}em{font-style:normal;color:var(--green)}.summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;text-align:left}.summary-grid .card:nth-child(2){background:#f1eef8}.summary-grid p{font-size:14px}.learn{text-align:left;margin:40px 0;background:white;border:1px solid var(--line);border-radius:20px;padding:24px 32px}details{border-top:1px solid var(--line);padding:18px 0}summary{cursor:pointer;font-weight:700;min-height:32px}details p{font-size:14px;color:#657063}code{display:block;background:#f4f5ed;padding:16px;border-radius:10px;white-space:normal;overflow-wrap:anywhere;font-size:15px}footer{max-width:1080px;margin:50px auto 0;padding:25px 36px;border-top:1px solid var(--line);display:flex;justify-content:space-between;color:#8c9385;font-size:11px}[hidden]{display:none!important}@keyframes flip{50%{transform:rotateY(90deg) translateY(-10px)}}@keyframes pop{50%{transform:scale(1.03)}}@media(max-width:700px){header{padding:18px 20px}.header-note{display:none}main{padding:0 20px}.hero{grid-template-columns:1fr .6fr;min-height:340px;gap:10px}.hero h1{font-size:37px}.hero p{font-size:12px}.hero-art{height:200px}.large-coin{width:105px;height:105px;font-size:54px;border-width:5px}.orbit{width:160px;height:160px}.orbit-two{width:125px;height:125px}.coin-caption{font-size:9px;padding:7px;right:-6px;bottom:-8px}.s1{right:8px;top:4px}.s2{left:0;bottom:15px}.journey{gap:7px;font-size:9px}.journey span{padding:4px 8px}.game-nav{gap:20px;margin-bottom:28px}.game-nav a{font-size:11px;flex:1}.game-nav a span{margin-right:3px}.game-nav small{display:none}h2{font-size:25px}.tag{display:none}.intro{font-size:13px}.rules{padding:18px;gap:14px}.card{padding:22px 18px;border-radius:16px}h3{font-size:19px}.choices{gap:7px}.choices button{font-size:19px;padding:17px 3px}.choices span{font-size:10px;margin-left:2px}.play-layout{grid-template-columns:1fr;gap:18px}.coin-stage{min-height:190px}.stats{grid-template-columns:repeat(2,1fr)}.stat strong{font-size:22px}.button-row button{flex:1;padding:12px;white-space:nowrap}.martingale-stage{gap:17px}.result{font-size:20px}.summary-grid{grid-template-columns:1fr;gap:0}.learn{padding:20px}.equations{gap:8px}.equations span{font-size:17px;padding:10px}.infinity{font-size:21px}footer{padding:20px;gap:15px;flex-direction:column}.hero-art .spark{font-size:20px}#crowd{height:430px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}html{scroll-behavior:auto}}

@media(max-width:420px){.choices button{font-size:16px;white-space:nowrap}.hero{grid-template-columns:1fr}.hero-art{display:none}.hero h1{font-size:clamp(30px,9vw,37px)}.hero{min-height:340px}.input-row input{width:170px}}
