:root{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif;color:#192026;background:#fff;font-synthesis:none;--coral:#ff5961;--coral-soft:#fff1f0;--mint:#36c5a4;--mint-soft:#edfbf6;--green:#006c57;--line:#e8e9eb;--muted:#76797e;--card:#fff;--soft:#f5f5f7;--radius:16px}*{box-sizing:border-box}body{margin:0}button,a,input{font:inherit}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid var(--line);border-radius:12px;background:var(--card);color:inherit;min-height:44px;font-weight:750;padding:9px 12px}button:disabled{cursor:default;opacity:.42}button:focus-visible,a:focus-visible,[tabindex]:focus-visible,input:focus-visible{outline:3px solid #226cce;outline-offset:3px}button:active:not(:disabled){transform:translateY(1px)}h1,h2,h3,p{margin:0}h1{font-size:clamp(38px,9vw,56px);letter-spacing:-.07em;font-weight:950}h2{font-size:19px}small,.note{font-size:11px;line-height:1.6;color:var(--muted)}main{max-width:720px;margin:auto;padding:12px 12px 30px}.top{position:relative;display:flex;align-items:center;justify-content:center;margin:0 0 12px}.icon{width:25px;height:25px;flex-shrink:0;vertical-align:middle}.date-row{border:1px solid var(--line);border-radius:12px;display:flex;align-items:center;gap:8px;padding:10px 12px;margin-bottom:10px;font-variant-numeric:tabular-nums}.date-row time{font-weight:850;font-size:20px;white-space:nowrap}.rule-chip{margin-left:auto;font-size:11px;border-left:1px solid var(--line);padding-left:10px;line-height:1.6}.date-row .icon{color:var(--muted);width:22px}.balances{display:grid;grid-template-columns:1fr 1fr;gap:8px}.panel{border:1px solid var(--line);border-radius:var(--radius);padding:14px;background:var(--card)}.balance-card{background:var(--mint-soft);border-color:#d9f2e9;display:flex;flex-direction:column;justify-content:space-between;min-height:180px}.panel-title{display:flex;gap:8px;align-items:center;font-weight:850;font-size:16px;line-height:1.4}.balance-card .icon{color:var(--green)}.balance-card small{display:block;margin-left:33px;font-size:10px}.money{font-weight:900;letter-spacing:-.055em;font-variant-numeric:tabular-nums}.big-money{color:var(--green);font-size:clamp(31px,9vw,54px);line-height:1.2;margin:16px 0 10px;white-space:nowrap}.big-money .unit{font-size:.45em;letter-spacing:0}.remaining{font-size:10px;color:var(--green)}.payment-card{background:var(--coral-soft);border-color:#ffdcda;padding:12px}.payment-card .icon{color:var(--coral)}.payment-card small{display:block;margin-left:33px;font-size:10px}.drum-help{text-align:center;font-size:9px;color:var(--muted);line-height:1.5;margin-top:6px}.fees-note{font-size:11px;margin-top:8px;color:var(--coral);font-weight:650}.transport{display:flex;gap:6px;margin:10px 0}.transport button{padding:8px 0;flex:1;white-space:nowrap;font-size:15px}.transport .skip{flex:2.1;background:var(--mint);color:#fff;border-color:var(--mint)}.transport .active{background:var(--coral);border-color:var(--coral);color:white}.warning{border:2px solid #ff2937;background:#270b0e;color:#fff;padding:12px;border-radius:12px;font-size:13px;line-height:1.7;margin:10px 0}.warning strong{color:#ff5b67}.warning button{font-size:11px;background:transparent;border-color:#ff5961;color:#fff;margin-top:7px;min-height:34px}.section-title{margin:12px 0 8px;background:var(--coral-soft);border:1px solid #ffdcda;color:#8c242b;border-radius:12px;text-align:center;padding:9px;display:flex;gap:8px;align-items:center;justify-content:center}.section-title .icon{color:var(--coral)}.products{display:grid;grid-template-columns:1fr 1fr;gap:8px}.product{display:grid;grid-template-columns:52px 1fr;gap:8px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:14px;min-width:0}.product-art{width:52px;height:68px;border-radius:10px;display:grid;place-items:center;background:var(--coral-soft);color:#d08773}.product-art .icon{width:43px;height:43px;stroke-width:3}.product:nth-child(2) .product-art{background:#fbf5e8;color:#a88c52}.product:nth-child(3) .product-art{background:#fff0f1;color:#d5999a}.product:nth-child(4) .product-art{background:#eef3fa;color:#788eab}.product:last-child{grid-column:1/-1;grid-template-columns:75px 1fr auto}.product:last-child .product-art{width:75px;height:55px;background:#f2edff;color:#8876b7}.product h3{font-size:14px}.price{font-size:22px;color:var(--coral);font-weight:850;line-height:1.4;letter-spacing:-.04em}.price span{font-size:13px}.buy{background:var(--coral);border-color:var(--coral);color:#fff;padding:4px 12px;min-height:36px;font-size:13px;width:100%}.product:last-child .buy{width:84px}.gauge-card{margin-top:9px;padding:13px 14px}.forecast{color:var(--coral);font-size:clamp(21px,6vw,31px);line-height:1.25;font-weight:900;margin:8px 0}.meter{height:14px;width:100%;border-radius:20px;background:var(--line);overflow:hidden;display:flex}.meter span{display:block;height:100%;min-width:0;background:var(--coral)}.meter .mint{background:var(--mint)}.gauge-meta{display:flex;justify-content:space-between;margin-top:5px;font-size:10px;color:var(--muted)}.split{display:grid;grid-template-columns:1fr 1fr;gap:10px;text-align:center;margin-top:9px}.split>div+div{border-left:1px solid var(--line)}.split p{font-size:11px}.split strong{display:block;font-size:24px;color:var(--coral);letter-spacing:-.04em}.split>div+div strong{color:var(--green)}.footnote{margin:14px 3px 0;line-height:1.8;color:var(--muted);font-size:10px}.toast{padding:9px 12px;margin:8px 0;border-radius:9px;font-size:12px;background:var(--soft);border:1px solid var(--line);line-height:1.6}.toast:empty{display:none}.horror{background:#101010;color:#f7f7f7;--card:#1b1b1b;--soft:#252525;--line:#393939;--muted:#b0afb3;--coral:#ff3645;--coral-soft:#2a1215;--mint:#dc2839;--mint-soft:#1b1b1b;--green:#ff3645}.horror .balance-card,.horror .payment-card,.horror .section-title{border-color:#393939;background:#1b1b1b;color:#fff}.horror .horror .top h1 span{color:var(--coral)}.horror .product-art{background:#242424!important}.horror .transport .skip{background:#dc2839;border-color:#dc2839}.horror .remaining{color:#ccc}.result{padding-top:8px}.result-kicker{text-align:center;letter-spacing:.18em;color:var(--coral);font-size:14px;font-weight:850;margin-top:14px}.result-heading{text-align:center;font-size:clamp(30px,9vw,58px);line-height:1.35;letter-spacing:-.05em;margin:14px 0 20px;font-weight:950}.result-heading em{font-style:normal;color:var(--coral)}.result.clear .result-heading{font-size:clamp(58px,18vw,100px);color:var(--coral);margin:20px 0}.zero-banner{padding:16px;border-radius:50px;background:var(--mint-soft);color:var(--green);text-align:center;font-size:23px;font-weight:850;margin:12px 0 18px}.result .panel{margin-top:12px}.result .panel-title{font-size:18px;color:var(--coral);margin-bottom:10px}.stat{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}.stat:last-child{border-bottom:0}.stat strong{font-size:23px;letter-spacing:-.04em;text-align:right;white-space:nowrap}.stat small{display:block;font-size:10px}.stat.highlight{color:var(--coral)}.comparison-row{display:grid;grid-template-columns:1fr 1.1fr auto;gap:8px;align-items:center;font-size:11px;margin:12px 0}.comparison-row strong{font-size:17px}.comparison-row .meter{height:12px}.result-note{font-size:11px;line-height:1.8;color:var(--muted);margin:8px 0}.primary,.secondary{width:100%;border-radius:30px;min-height:52px;margin-top:12px;font-size:17px}.primary{background:var(--coral);color:#fff;border-color:var(--coral)}.secondary{border:2px solid var(--coral);color:var(--coral);background:transparent}.share-options a{display:block;text-align:center;padding:13px;border:1px solid var(--coral);border-radius:30px;color:var(--coral);font-size:14px;margin-top:10px;text-decoration:none}.share-options p{font-size:11px;line-height:1.7;margin-top:8px;color:var(--muted)}dialog{width:calc(100% - 28px);max-width:520px;max-height:85dvh;border:1px solid var(--line);border-radius:20px;padding:22px;color:inherit;background:var(--card)}dialog::backdrop{background:#0008}dialog h2{margin-bottom:14px}dialog p,dialog li{font-size:12px;line-height:1.9}dialog ul{padding-left:18px}dialog label{display:flex;gap:10px;align-items:center;margin:18px 0;font-size:14px}dialog input{width:20px;height:20px;accent-color:var(--coral)}dialog .close{width:100%;margin-top:15px;background:var(--coral);color:#fff;border-color:var(--coral)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.no-motion *, .no-motion *::before,.no-motion *::after{animation:none!important;transition:none!important}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}@media(min-width:560px){main{padding:20px 22px 40px}.balances{gap:12px}.balance-card{min-height:215px}.panel-title{font-size:19px}.payment-card{padding:17px}.drum-help{font-size:11px}.product{grid-template-columns:85px 1fr;padding:12px}.product-art{width:85px;height:90px}.product-art .icon{width:62px;height:62px}.product h3{font-size:18px}.price{font-size:29px}.buy{min-height:40px}.rule-chip{font-size:13px}.date-row time{font-size:24px}.transport button{min-height:48px}.result .stat{font-size:16px}.result .stat strong{font-size:30px}}@media(max-width:350px){main{padding-left:8px;padding-right:8px}.panel{padding:10px}.panel-title{font-size:14px}.balance-card small,.payment-card small{margin-left:0}.date-row{gap:5px;padding:9px}.date-row time{font-size:17px}.rule-chip{font-size:9px;padding-left:7px}.product{grid-template-columns:38px 1fr;padding:8px;gap:5px}.product-art{width:38px}.product-art .icon{width:33px}.product h3{font-size:13px}.price{font-size:20px}.big-money{font-size:29px}.transport button{font-size:13px}.stat strong{font-size:19px}}
.big-money.exact-money{font-size:clamp(19px,5.6vw,34px);letter-spacing:-.05em}


/* Fixed body layer survives app rerenders: a real-time 1s cycle at every game speed. */
body.warning-active::after{content:"";position:fixed;inset:0;z-index:9999;pointer-events:none;background:#ff3b4a;opacity:.05;animation:warning-screen-pulse 1s ease-in-out infinite}
@keyframes warning-screen-pulse{0%,100%{opacity:.02}50%{opacity:.14}}
@media(prefers-reduced-motion:reduce){body.warning-active::after{animation:none!important;opacity:.05}}
body.no-motion.warning-active::after{animation:none!important;opacity:.05}
.title-screen{min-height:calc(100svh - 118px);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 12px 90px;text-align:center}.title-wordmark{font-size:clamp(64px,15vw,100px);line-height:1.25;letter-spacing:-.07em}.title-copy{font-size:12px;line-height:1.8;color:var(--muted);margin-top:20px}.start-button{max-width:300px;margin-top:34px;font-size:21px}.title-return{display:block;border:0;background:transparent;margin:8px auto 0;color:var(--muted);font-size:13px;text-decoration:underline;text-underline-offset:4px}
.mute-button{position:fixed;top:12px;left:max(12px,calc((100vw - 720px)/2 + 22px));z-index:10001;min-height:36px;font-size:11px;padding:6px 9px;box-shadow:0 1px 4px #00000008}.audio-message{position:fixed;top:52px;left:12px;z-index:10001;width:220px;padding:9px;border:1px solid var(--line);border-radius:10px;background:var(--card);font-size:11px;line-height:1.6}.audio-credits{text-align:center;margin:15px 0 0}.audio-credits button{border:0;min-height:36px;padding:4px;font-size:10px;font-weight:500;color:var(--muted);text-decoration:underline;text-underline-offset:3px}dialog a{color:var(--coral)}.game-heading{font-size:clamp(21px,5.6vw,34px);line-height:1.15;letter-spacing:-.05em}.title-screen{min-height:calc(100svh - 164px);padding:26px 8px 42px}.title-wordmark{line-height:1.3}.title-drip{display:block;position:relative;white-space:nowrap;padding-bottom:8px}.title-drip::after{content:"";position:absolute;left:15%;bottom:1px;width:6px;height:13px;border-radius:0 0 5px 5px;background:currentColor;box-shadow:82px 4px 0 -1px currentColor,139px -3px 0 -1px currentColor,187px 1px 0 -1px currentColor}.title-command{display:block;font-size:clamp(27px,7vw,44px);letter-spacing:-.055em}.title-copy{max-width:330px;font-size:12px;line-height:1.85;margin-top:22px}.title-disclaimer{max-width:300px;font-size:10px;line-height:1.7;color:var(--muted);margin-top:12px}.start-button{margin-top:25px}
.audio-credits button{font-size:12px;min-height:44px}.dialog-mute{display:block;margin:0 0 16px;font-size:12px;min-height:40px}
.title-drip::after{left:13%;bottom:.25em;width:.095em;height:.33em;border-radius:0 0 .08em .08em;box-shadow:.96em .075em 0 -.015em currentColor,1.94em .015em 0 -.015em currentColor,2.77em .045em 0 -.015em currentColor}

/* Start actions stay above the compact settings and six rules. */
.title-screen{min-height:0;padding:38px 8px 28px}.title-copy{margin-top:16px}.start-button{margin-top:22px}.start-options,.title-rules{max-width:560px;margin:0 auto;text-align:left}.start-options{border:0;padding:0 4px 20px;width:100%;min-width:0}.start-options legend,.title-rules h2{font-size:16px;font-weight:850;padding:0;margin-bottom:8px}.start-options label{display:flex;align-items:center;gap:10px;min-height:44px;font-size:13px;cursor:pointer}.start-options input{width:20px;height:20px;accent-color:var(--coral);flex-shrink:0}.start-options .note{margin-top:4px}.title-rules{border-top:1px solid var(--line);padding:18px 4px 4px}.title-rules ol{padding-left:23px;margin:8px 0 0;font-size:13px;line-height:1.85}.title-rules li{padding-left:2px;margin:0 0 10px}.title-rules .title-disclaimer{max-width:none;margin-top:15px;font-size:11px}.top{padding-top:36px}

.title-wordmark{font-size:clamp(72px,18vw,112px)}.game-heading{white-space:nowrap}

.payment-select{display:block;width:100%;min-width:0;min-height:62px;margin-top:18px;padding:10px 8px;font:inherit;font-size:clamp(19px,5.3vw,28px);font-weight:850;letter-spacing:-.04em;border:1px solid #ffd0cd;border-radius:10px;background:#ffe0de;color:#ce333c;cursor:pointer}.payment-select:focus-visible{outline:3px solid #226cce;outline-offset:3px}.payment-select option{font-size:16px;letter-spacing:normal;background:var(--card);color:inherit}.horror .payment-select{background:#5b131c;border-color:#71303a;color:#fff}

.payment-select.long-payment{font-size:clamp(16px,4.6vw,24px)}

.starting-limit{width:100%;max-width:300px;margin-top:18px;text-align:left}.starting-limit label{display:block;font-size:12px;font-weight:750;margin-bottom:6px}.starting-limit select{width:100%;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:inherit;font:inherit;font-size:17px;font-weight:750}.starting-limit p{font-size:10px;line-height:1.6;color:var(--muted);margin-top:5px}.buy-reason{font-size:10px;line-height:1.5;color:var(--muted);margin-top:5px}.credit-meter{height:6px;margin-top:9px}.credit-meter span{background:var(--green)}.limit-usage{font-size:9px;color:var(--green);margin-top:4px}.limit-offer{border:1px solid var(--line);border-radius:14px;padding:14px;margin:10px 0;background:var(--card);font-size:14px;line-height:1.7}.limit-comparison{font-size:15px;font-weight:800;color:var(--coral);margin:8px 0}.limit-actions{display:flex;gap:10px;margin-bottom:8px}.limit-actions button{flex:1;min-height:44px}#limit-yes{background:var(--coral);color:#fff;border-color:var(--coral)}.result-limit{text-align:center;font-size:12px;line-height:1.7;color:var(--muted);margin-bottom:14px}

/* Show why a warning is static, without changing the stored motion preference. */
.warning-motion-status{font-size:11px;line-height:1.6;margin-top:6px;color:#e5c4c7}.motion-setting-off,.motion-device-off{display:none}body.no-motion .motion-enabled{display:none}body.no-motion .motion-setting-off{display:inline}@media(prefers-reduced-motion:reduce){.motion-enabled,.motion-setting-off,body.no-motion .motion-setting-off{display:none}.motion-device-off{display:inline}}

/* Reuse the approved CSS drip wordmark in game and result headers. */
.game-heading{display:inline-flex;align-items:baseline;gap:.12em;font-size:clamp(19px,5.45vw,34px);letter-spacing:-.055em}.game-heading .title-drip{display:inline-block;font-size:1.22em;line-height:1.2;padding-bottom:.4em;margin-bottom:-.1em}.game-command{font-size:.88em}

.age80-projection{border:1px dashed #8d5860;background:#23171b}.projection-label{font-size:11px;letter-spacing:.04em;color:#e5b9bf;margin-bottom:8px}.age80-projection h3{font-size:17px;line-height:1.6}.projection-assumptions{font-size:11px;line-height:1.7;color:var(--muted);margin-top:7px}.projection-fee-label{font-size:13px;line-height:1.6;margin-top:17px}.projection-money{font-size:clamp(25px,7vw,39px);font-weight:900;letter-spacing:-.04em;color:var(--coral);margin:5px 0}.age80-projection .stat{font-size:11px}.age80-projection .stat strong{font-size:clamp(17px,5vw,24px)}

/* Repeated game taps must not trigger double-tap zoom; pan and pinch remain available. */
button{touch-action:manipulation}
