:root{font-family:"Helvetica Neue",Arial,"Hiragino Kaku Gothic ProN",Meiryo,sans-serif;color:#edece5;background:#101415;font-synthesis:none;color-scheme:dark;--muted:#8e9898;--gold:#d6b47b;--line:#303637}*{box-sizing:border-box}html{touch-action:manipulation}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button,a,input,summary,select{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,select:focus-visible{outline:2px solid var(--gold);outline-offset:5px}button{border:1px solid var(--line);background:transparent;color:inherit;border-radius:5px;transition:background .18s,transform .18s}button:hover:not(:disabled){background:#ffffff0b}button:disabled{opacity:.35;cursor:default}button:active:not(:disabled){transform:translateY(2px)}header{height:85px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 4.5%}.brand{display:flex;align-items:center;gap:14px;color:inherit;text-decoration:none;font-size:18px;font-weight:700;letter-spacing:2px}.brand small{font-size:8px;color:#7e8989;letter-spacing:2px;margin-left:8px}.brand-icon{border:1px solid #bba171;width:30px;height:33px;font:20px Georgia;color:var(--gold);padding:2px 4px;position:relative}.brand-icon span{position:absolute;left:12px;top:9px;font-size:17px}.header-right{display:flex;gap:13px;align-items:center}.header-right button{padding:9px 12px;font-size:11px}.free{font-size:9px;letter-spacing:1.5px;color:#b5c8ba;margin-right:10px}i{display:inline-block;width:5px;height:5px;border-radius:50%;background:#9bbda5;margin-right:7px}main{max-width:1480px;margin:auto;padding:38px 4.5% 0}.heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px}.eyebrow{font-size:9px;letter-spacing:2px;color:var(--gold);font-weight:600}h1{font-size:29px;letter-spacing:2px;font-weight:500;margin:15px 0 10px}.sub{font-size:11px;color:var(--muted);letter-spacing:.5px}.quiet{padding:12px 17px;font-size:11px}.workspace{display:grid;grid-template-columns:220px minmax(340px,1fr) 238px;gap:30px;align-items:start}.sidebar>.eyebrow{display:block;margin:7px 0 18px}.machine-card{display:flex;width:100%;align-items:center;text-align:left;padding:12px 10px;gap:12px;margin:10px 0;border-color:#2e3637;background:#171d1f}.machine-card.selected{border-color:#9c855f;background:#262720;box-shadow:inset 3px 0 #d6b47b}.card-art{width:50px;height:65px;flex-shrink:0;display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;overflow:hidden;border:1px solid #6b8a8c;border-radius:3px;font:31px Georgia,serif;text-shadow:0 0 10px #76d5e8;background:radial-gradient(ellipse at 60% 10%,#64b4ae,#154e62 30%,#101727 80%);color:#e6f1e9}.card-art span{font:5px Arial;letter-spacing:2px;margin-top:4px}
.card-art img{width:100%;height:100%;object-fit:cover;display:block}.seven{font:bold italic 40px Georgia;color:#ffcf9b;border-color:#a3745a;background:radial-gradient(ellipse at 70% 10%,#94452c,#461e1e 50%,#19161a);text-shadow:2px 2px #f05d38}.machine-card small{font-size:7px;letter-spacing:1px;color:#9b9c8e;display:block;margin-bottom:8px}.machine-card strong{font-size:12px;font-weight:500;display:block}.machine-card em{font-size:9px;font-style:normal;color:var(--muted);display:block;margin-top:7px}.machine-card>b{margin-left:auto;font-size:11px;color:#c2ac85}.session-box{margin-top:32px;padding:21px 17px;border:1px solid var(--line);border-radius:5px}.label-row{display:flex;justify-content:space-between;font-size:8px;letter-spacing:1.3px;color:var(--muted)}time{display:block;font-size:33px;font-weight:300;letter-spacing:3px;margin:18px 0}.progress{height:3px;background:#343c3c;border-radius:3px;overflow:hidden}.progress span{display:block;width:0;height:100%;background:var(--gold)}.session-box p{font-size:10px;color:var(--muted);margin:12px 0 20px}.session-box button{width:100%;padding:12px;font-size:11px}.small-note{margin-top:25px;padding-left:3px}.small-note span{font-size:11px;color:#bfc5bb}.small-note p{font-size:10px;line-height:1.9;color:#7e8b8a}.stage{background:radial-gradient(ellipse at 50% 40%,#203438,#151b1d 64%);border:1px solid #323d3e;border-radius:9px;overflow:hidden;position:relative}.stage-top{padding:17px 20px;display:flex;justify-content:space-between;align-items:center;font-size:9px;color:#c5cbc7;border-bottom:1px solid #303b3b}.stage-top>span:last-child{font-size:7px;letter-spacing:1.5px;color:#808e8e}.stage-top b{color:#b5a17d;font-weight:400;margin-left:5px}.cabinet-wrap{width:min(100%,520px);margin:auto;padding:2px 12px 0}canvas{width:100%;height:auto;display:block;aspect-ratio:3/4;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}.canvas-caption{display:flex;justify-content:space-between;font-size:6px;letter-spacing:1.5px;color:#778786;padding:0 14px;margin-top:-5px}.canvas-caption span{color:#98a69c}.machine-controls{display:flex;gap:12px;align-items:center;margin:21px 25px 0;padding-top:18px;border-top:1px solid #ffffff13}.power-label{font-size:10px;min-width:54px;color:#b6c0ba}.power-label output{display:block;font:12px monospace;color:var(--gold);margin-top:5px}input[type=range]{accent-color:var(--gold);min-width:0;width:100%}.primary{background:var(--gold);color:#1b211f;border:1px solid #e6ca9a;padding:14px 20px;font-size:11px;font-weight:600;white-space:nowrap}.primary:hover:not(:disabled){background:#e6ca9a}.status{min-height:17px;font-size:10px;color:#aebbb4;text-align:center;margin:16px 12px 20px}.slot-controls{justify-content:center;gap:25px}.stop-group{display:flex;gap:18px}.stop-group button{width:44px;height:37px;border-radius:50%;background:radial-gradient(ellipse at 40% 25%,#e27c58,#9a332f 65%,#511d21);border:3px solid #9a9d94;box-shadow:0 4px 0 #050809;color:#fff;font-size:11px}.detail{padding:7px 0}.detail-title{display:flex;justify-content:space-between;align-items:center}.detail-title>span:last-child{font:10px monospace;color:#737e7d}h2{font-weight:500;font-size:23px;letter-spacing:1px;margin:23px 0 9px}.model{font-size:8px;letter-spacing:1.4px;color:#7f908e}.description{font-size:11px;line-height:2.1;color:#a4b0a9;margin:25px 0}.stats{border-block:1px solid var(--line);padding:22px 0}.stats span{font-size:10px;color:#a5afa9;display:block}.stats strong{font-size:39px;font-weight:300;letter-spacing:1px;margin:10px 8px 0 0;display:inline-block}.stats small{font-size:7px;letter-spacing:1px;color:var(--gold)}.stat-pair{display:grid;grid-template-columns:1fr 1fr;margin-top:25px}.stat-pair>div+div{border-left:1px solid var(--line);padding-left:22px}.stat-pair b{display:block;font-size:23px;font-weight:400;margin-top:12px}.instructions{margin:28px 0}h3{font-size:8px;letter-spacing:1.7px;color:var(--gold);font-weight:500}ol{padding:0;list-style:none}li{font-size:10px;color:#a8b1ad;margin:18px 0}li b{font-size:8px;font-weight:400;color:#bfa67b;margin-right:9px}details{border-block:1px solid var(--line);padding:15px 0}summary{font-size:9px;color:#aeb5ac;cursor:pointer}details p{font-size:10px;line-height:1.9;color:#87958e}.text-button{border:0;color:#8a9b93;font-size:10px;padding:17px 0}.detail>.text-button{margin-top:10px}footer{display:flex;align-items:center;gap:24px;justify-content:space-between;margin-top:32px;padding:25px 0;border-top:1px solid var(--line)}footer>span{font-size:10px;letter-spacing:1.3px;color:#a7b0aa}footer small{display:block;font-size:9px;margin-top:8px;letter-spacing:0;color:#6f7e77}footer p{font-size:9px;line-height:1.7;color:#7b8a81;max-width:330px}footer button{font-size:10px;padding:12px 16px}dialog{width:450px;max-width:92%;background:#1b2424;color:#e4e7dd;border:1px solid #606f62;border-radius:12px;padding:32px;box-shadow:0 25px 100px #0009}dialog::backdrop{background:#080c0de8;backdrop-filter:blur(6px)}dialog h2{font-size:22px}dialog p{font-size:12px;line-height:1.9;color:#bac4ba}.close{position:absolute;right:14px;top:10px;border:0;font-size:23px;color:#a7b2a8}.dialog-note{font-size:10px!important;color:#93a198!important}dialog label{display:flex;align-items:center;justify-content:space-between;gap:30px;margin:25px 0;font-size:12px}dialog select{background:#2b3833;color:#e3e8dd;border:1px solid #627165;padding:8px}.check{justify-content:flex-start;gap:10px}.breath{font-size:62px;text-align:center;color:#b9cdb7;padding:13px}.dialog-actions{display:flex;gap:12px;margin-top:25px;justify-content:space-between}.history-row{padding:15px 0;border-bottom:1px solid #3e4942;font-size:11px;color:#b1c0b4;line-height:1.9}.history-row strong{display:block;color:#e3e7dd}.empty{padding:30px 0;color:#8f9c91}[hidden]{display:none!important}@media(min-width:1450px){main{padding-top:45px}.cabinet-wrap{max-width:550px}}@media(max-width:1100px){.workspace{grid-template-columns:175px minmax(310px,1fr);gap:22px}.detail{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:0 35px}.detail-title{grid-column:1/-1}.detail .stats{grid-column:2;grid-row:2/6}.detail .description{margin:10px 0}.detail .instructions{margin-top:10px}.brand small{display:none}.machine-card{gap:8px;padding:10px 7px}.machine-card strong{font-size:10px}.card-art{width:40px;height:57px}.detail>details{align-self:start}}@media(max-width:640px){header{height:66px;padding:0 18px}.brand{font-size:13px;gap:8px}.brand-icon{transform:scale(.8)}.header-right{gap:8px}.free{display:none}.header-right button{font-size:10px;padding:8px}.header-right #settings span{display:none}main{padding:23px 16px 0}.heading{margin-bottom:20px;align-items:flex-start}h1{font-size:21px;letter-spacing:0}.sub{font-size:10px;line-height:1.8;max-width:260px}.heading>.quiet{font-size:9px;white-space:nowrap;padding:9px;margin-top:6px}.eyebrow{font-size:7px;letter-spacing:1.4px}.workspace{display:flex;flex-direction:column;gap:18px}.sidebar{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:10px}.sidebar>.eyebrow,.small-note{display:none}.machine-card{margin:0}.machine-card strong{font-size:11px}.session-box{grid-column:1/-1;display:flex;align-items:center;gap:12px;padding:10px 13px;margin:0}.session-box .label-row{font-size:7px}.session-box time{font-size:19px;margin:0}.session-box .progress{display:none}.session-box p{margin:0;font-size:8px}.session-box button{width:auto;margin-left:auto;white-space:nowrap;font-size:9px;padding:9px}.stage{width:100%}.stage-top{padding:12px}.cabinet-wrap{max-width:410px}.machine-controls{margin:18px 16px 0;gap:10px}.primary{padding:13px 16px}.status{font-size:9px}.detail{width:100%;display:block;padding:14px 6px}.detail h2{margin-top:18px}.detail .description{margin:14px 0}.stats{display:flex;justify-content:space-between;align-items:center}.stat-pair{margin:0;gap:15px}.stats strong{font-size:32px}.detail .instructions{margin:25px 0}.instructions li{font-size:11px}.detail-title .eyebrow{font-size:8px}footer{flex-wrap:wrap;gap:15px;margin-top:10px}footer p{order:3;font-size:9px;max-width:100%}footer button{margin-left:auto}dialog{padding:25px}.heading .eyebrow{font-size:6px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.week-box{margin-top:14px;padding:17px;border:1px solid var(--line);border-radius:5px}.week-box strong{display:block;font-size:22px;font-weight:300;letter-spacing:1px;margin:12px 0}.week-box p{font-size:10px;line-height:1.7;color:var(--muted);margin:12px 0 0}.week-box.over{border-color:#6f6a55;background:#1d1f1a}.week-box.over p{color:#d9c79e}.week-box.over .progress span{background:#c9b88f}
.reflection{border:1px solid #3e4942;border-radius:8px;padding:12px 16px 4px;margin:18px 0 0}.reflection legend{font-size:11px;color:#d7dccf;padding:0 6px}.reflection p{margin:6px 0}.urge-scale{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}.urge-scale label{margin:0;justify-content:center;gap:6px;padding:8px 0;border:1px solid #4a5650;border-radius:6px;cursor:pointer}.urge-scale label:has(input:checked){border-color:var(--gold);background:#2a2c24;color:var(--gold)}.urge-scale input{margin:0;accent-color:var(--gold)}.urge-ends{display:flex;justify-content:space-between;font-size:9px;color:#93a198;margin-top:4px}
.memo-label{margin:14px 0 6px!important;font-size:11px!important}.reflection textarea{width:100%;font:inherit;font-size:12px;background:#2b3833;color:#e3e8dd;border:1px solid #627165;border-radius:4px;padding:8px;resize:vertical}.reflection textarea:focus-visible,.urge-scale input:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.history-memo{display:block;color:#93a198;white-space:pre-wrap;overflow-wrap:anywhere}.week-heading{font-size:11px;letter-spacing:1px;color:#c8cfc4;margin:18px 0 4px}#week-summary{list-style:none;margin:0 0 10px;padding:0}#week-summary li{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px solid #2f3934;font-size:11px;color:#a9b7ab}#week-summary b{font-size:11px;font-weight:400;color:#e3e7dd;text-align:right}#week-summary li.over b{color:#d9c79e}
@media(max-width:640px){.week-box{grid-column:1/-1;display:flex;align-items:center;gap:12px;padding:10px 13px;margin:0}.week-box .label-row{font-size:7px}.week-box strong{font-size:15px;margin:0;white-space:nowrap}.week-box .progress{display:none}.week-box p{margin:0;font-size:8px}.reflection{padding:10px 12px 2px}}

/* Large play screen: the cabinet is sized from the window height so the whole machine and its controls fit on one screen, as large as the column allows. */
.workspace{grid-template-columns:200px minmax(340px,1fr) 220px;gap:24px}
.cabinet-wrap,.cabinet-wrap[class]{width:min(100%,max(520px,calc((100vh - 150px)*.75)));width:min(100%,max(520px,calc((100svh - 150px)*.75)));max-width:none;min-width:min(100%,320px);padding:2px 0 0}
.stage-top{padding:10px 16px}
.machine-controls{margin-top:12px;padding-top:12px}
.status{margin:10px 12px 12px}
@media(max-width:1100px){.workspace{grid-template-columns:160px minmax(310px,1fr)}}
@media(max-width:640px){main{padding:16px 8px 0}.stage{border-radius:6px}.stage-top{padding:8px 10px}.cabinet-wrap,.cabinet-wrap[class]{width:100%;min-width:0}.machine-controls{margin:12px 10px 0}}
.app-version{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:22px 0;padding:16px 0;border-top:1px solid #3e4942}.app-version>div{min-width:0}.app-version span{display:block;font-size:12px}.app-version strong{display:block;font-size:11px;font-weight:400;color:#d8ddd2;margin-top:6px}.app-version small{display:block;font-size:10px;line-height:1.7;color:#93a198;margin-top:4px}#update-app{flex:none;padding:10px 12px;font-size:11px}#update-app.ready{background:var(--gold);color:#1b211f;border-color:#e6ca9a;font-weight:600}#update-app:disabled{opacity:.6;cursor:wait}#settings{position:relative}#settings.has-update::after{content:'';position:absolute;top:-3px;right:-3px;width:9px;height:9px;border-radius:50%;background:var(--gold);box-shadow:0 0 0 2px #111516}


/* Open and play: the hero text is only for screen readers and the play-record button lives in the header, so the machine is the first thing on screen. On a phone the machine comes right after the machine tabs, is sized so its controls fit on the first screen, the session and week boxes move below it, and the play time shows on its top bar. */
.heading{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.cabinet-wrap,.cabinet-wrap[class]{width:min(100%,max(420px,calc((100vh - 270px)*.75)));width:min(100%,max(420px,calc((100svh - 270px)*.75)))}
.stage-time{display:none;font-size:9px;letter-spacing:1.5px;color:#808e8e}
.stage-time time{display:inline;font-size:11px;font-weight:400;letter-spacing:1px;margin:0 0 0 6px;color:#d8ddd2;font-variant-numeric:tabular-nums}

@media(max-width:640px){header{height:50px;padding:0 12px}
.brand{font-size:12px;letter-spacing:1.5px;gap:6px}
.header-right{gap:6px}
.header-right button{padding:7px 8px}
.header-right .wide{display:none}
.cabinet-wrap,.cabinet-wrap[class]{width:min(100%,max(220px,calc((100vh - 230px)*.75)));width:min(100%,max(220px,calc((100svh - 230px)*.75)));margin:auto}
main{padding:8px 6px 0}
.workspace{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.sidebar{display:contents}
.machine-card{order:1;padding:5px 8px;gap:8px;min-height:44px}
.card-art{width:24px;height:32px}
.machine-card small{display:none}
.machine-card strong{font-size:12px}
.machine-card em{margin-top:2px}
.stage{order:2;grid-column:1/-1}
.session-box,.week-box{order:3;grid-column:1/-1}
.detail{order:4;grid-column:1/-1}
.stage-top .stage-no{display:none}
.stage-time{display:inline}
.stage-top{padding:7px 10px}
.canvas-caption{display:none}
}

/* スマホで遊んでいる間も持ち玉・クレジットと払出が見えるように、台の上の帯の右に出す（パソコンは右の欄にあるので出さない）。 */
.stage-top>.stage-time{font-size:7px}
.stage-count{display:none;font-size:9px;letter-spacing:.5px;color:#9aa6a4;white-space:nowrap}
.stage-count strong{font-size:12px;font-weight:500;color:#edece5;margin-left:4px;font-variant-numeric:tabular-nums}
.stage-count .sep{color:#4a5657;margin:0 7px}
#stage-win{color:var(--gold)}
@media(max-width:640px){.stage-count{display:inline}}

/* パチスロの操作ボタン。パソコンでは台の絵のボタンだけで操作し、スマホ・タッチ画面では台の下に実機のような操作パネルを出す（台の絵のボタンと同じ動き）。 */
.machine-controls.slot-controls{display:none}
@media(max-width:640px),(pointer:coarse){
/* 実機の操作パネルのような、暗い金属の板1枚。左にレバー、右にMAX BET、下の帯に停止ボタン3つ。 */
.machine-controls.slot-controls{display:grid;grid-template-columns:1.25fr 1fr;grid-template-areas:"lever bet" "stops stops";gap:10px;align-items:stretch;padding:10px;border:1px solid #4a5254;border-radius:12px;background:linear-gradient(180deg,#30373a,#1a1f21 45%,#101415);box-shadow:inset 0 1px #ffffff1f,inset 0 -2px 4px #0009,0 6px 14px #0008}
.slot-controls>button{min-height:60px;border-radius:8px;font-weight:600;letter-spacing:1px}
/* レバー：板の左に、玉のついた短い棒。押すと下に倒れる。 */
#spin{grid-area:lever;position:relative;padding:8px 10px 8px 62px;text-align:left;font-size:12px;color:#d9c79e;border:1px solid #586163;background:radial-gradient(circle at 31px 47px,#030405 0 7px,#5d6669 8px 10px,#22282a 11px 13px,transparent 14px),linear-gradient(180deg,#2c3335,#171b1c);box-shadow:inset 0 1px #ffffff1c,0 3px 0 #050809}
#spin::after{content:'';position:absolute;left:28px;top:19px;width:6px;height:28px;border-radius:3px;background:linear-gradient(90deg,#5f6769,#e6ebe9 45%,#7a8385);transform-origin:50% 100%;transition:transform .14s ease-out}
#spin::before{content:'';position:absolute;z-index:1;left:17px;top:5px;width:28px;height:28px;border-radius:50%;background:radial-gradient(circle at 36% 30%,#8a9396 0 2px,#3a4144 5px,#0b0d0e 68%);box-shadow:0 3px 5px #000b,inset 0 -2px 3px #000;transition:transform .14s ease-out}
#spin.pressed:not(:disabled)::before,#spin:active:not(:disabled)::before{transform:translateY(13px)}
#spin.pressed:not(:disabled)::after,#spin:active:not(:disabled)::after{transform:scaleY(.5)}
#spin:disabled{opacity:1;color:#69716f}
#spin:disabled::before{filter:brightness(.7)}
#spin.pressed:not(:disabled),#spin:active:not(:disabled){transform:none;background:radial-gradient(circle at 31px 47px,#030405 0 7px,#5d6669 8px 10px,#22282a 11px 13px,transparent 14px),linear-gradient(180deg,#262c2e,#121516)}
/* MAX BET：角の面取りをした四角い押しボタン。入れられるときはランプが点く。 */
#maxbet{grid-area:bet;font-size:13px;color:#2a2112;border:1px solid #e9cf98;background:linear-gradient(180deg,#f6e2b3,#d6b47b 55%,#b48f55);box-shadow:inset 0 2px #fff7,inset 0 -3px #8a6b3a,0 0 14px #d6b47b55,0 4px 0 #3a2e1b;text-shadow:0 1px #fff6}
#maxbet:disabled{opacity:1;color:#8a7e66;border-color:#55503f;background:linear-gradient(180deg,#3d392f,#2a2720 60%,#211f1a);box-shadow:inset 0 2px #ffffff12,inset 0 -3px #0007,0 4px 0 #0a0b0a;text-shadow:none}
#maxbet.pressed:not(:disabled),#maxbet:active:not(:disabled){transform:translateY(3px);box-shadow:inset 0 2px 6px #6b5229,0 0 10px #d6b47b44,0 1px 0 #3a2e1b}
/* 停止ボタン：金属の帯に並ぶ丸いボタン。止められるリールは青白く光り、止まると暗くなる。 */
.slot-controls .stop-group{grid-area:stops;display:grid;grid-template-columns:repeat(3,1fr);gap:14px;padding:9px 12px;border-radius:10px;background:linear-gradient(180deg,#0b0e0f,#1b2022 50%,#0c0f10);box-shadow:inset 0 2px 5px #000c,inset 0 -1px #ffffff14}
.slot-controls .stop-group button{width:64px;height:64px;min-height:0;padding:0;justify-self:center;border-radius:50%;border:0;font-size:12px;font-weight:700;letter-spacing:1px;color:#0c2034;text-shadow:0 1px #ffffff80;background:radial-gradient(ellipse 60% 55% at 50% 42%,#f4fbff 0 18%,#9fd3ff 42%,#2f6fb4 78%,#183a66);box-shadow:0 0 0 3px #9aa3a5,0 0 0 4px #2b3133,0 0 14px 3px #74bbff8c,0 4px 0 4px #050809}
.slot-controls .stop-group button:disabled{opacity:1;color:#6c7678;text-shadow:0 -1px #000;background:radial-gradient(ellipse 60% 55% at 50% 42%,#3b4447,#1f2426 70%,#161a1b);box-shadow:0 0 0 3px #7c8486,0 0 0 4px #2b3133,0 4px 0 4px #050809}
.slot-controls .stop-group button.pressed:not(:disabled),.slot-controls .stop-group button:active:not(:disabled){transform:translateY(3px);background:radial-gradient(ellipse 60% 55% at 50% 45%,#d9efff 0 14%,#7fb9ee 40%,#255b97 78%,#132f53);box-shadow:inset 0 3px 8px #000a,0 0 0 3px #8a9294,0 0 0 4px #2b3133,0 0 8px 2px #74bbff66,0 1px 0 4px #050809}
}
/* スマホのパチスロは操作ボタンが増えるぶん台を少し小さくして、レバーと停止ボタンまで最初の画面に収める（パチンコも同じ考え方で、上の 100svh - 230px の式で発射ボタンまで収める）。 */
/* 縦のスマホでは、案内（パチスロの「好きな順で停止ボタンを…」・パチンコの「右打ち…」・ボーナスの知らせ）を台と操作ボタンの間に置き、遊んでいる間も見えるようにする。高さは2行ぶん取っておき、文の長さで停止ボタン・発射ボタンが動かないようにする。パチンコは案内のぶん台を少し小さくして、発射ボタンを最初の画面に残す。 */
@media(max-width:640px) and (orientation:portrait){
.slot-mode .cabinet-wrap[class]{width:min(100%,max(150px,calc((100vh - 380px)*.75)));width:min(100%,max(150px,calc((100svh - 380px)*.75)))}
.stage:not(.slot-mode) .cabinet-wrap[class]{width:min(100%,max(200px,calc((100vh - 272px)*.75)));width:min(100%,max(200px,calc((100svh - 272px)*.75)))}
.stage{display:flex;flex-direction:column}
.stage>.status{order:1;margin:6px 10px 0;height:3em;line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
.stage>.machine-controls{order:2}
.slot-mode>.slot-controls{margin:6px 10px 10px}
.stage>#pachinko-controls{margin:8px 10px 12px}
}
/* 高さの低い縦のスマホ（iPhone SE など）は、案内を1行にし、操作盤のすき間を少し詰める。 */
@media(max-width:640px) and (orientation:portrait) and (max-height:700px){
.slot-mode .cabinet-wrap[class]{width:min(100%,max(150px,calc((100vh - 340px)*.75)));width:min(100%,max(150px,calc((100svh - 340px)*.75)))}
.stage:not(.slot-mode) .cabinet-wrap[class]{width:min(100%,max(200px,calc((100vh - 250px)*.75)));width:min(100%,max(200px,calc((100svh - 250px)*.75)))}
.stage>.status{height:1.5em;-webkit-line-clamp:1;line-clamp:1;margin-top:4px}
.slot-mode>.slot-controls{margin-top:4px;padding:8px;gap:8px}
.slot-mode .slot-controls .stop-group{padding:6px 12px}
}

/* ボタン同士の距離（2026-11-10 の見直し）：隣り合うボタンは 8px 以上あけ、小さいボタンは押せる範囲を 44px 以上にする。 */
/* ダイアログの × は 44px 四方にし、長いダイアログを下まで送っても上に残るようにする。 */
dialog .close{position:sticky;top:-26px;right:auto;float:right;z-index:2;width:44px;height:44px;margin:-26px -26px 0 8px;padding:0;display:flex;align-items:center;justify-content:center;line-height:1;border-radius:50%;background:#1b2424}
/* ふりかえりの 1〜5 は指で押し分けられる高さとすき間にする。 */
.urge-scale{gap:8px}
.urge-scale label{min-height:44px}
@media(max-width:640px){
dialog .close{margin:-19px -19px 0 8px;top:-19px}
/* ヘッダーの「記録」「サウンド」「設定」は 8px あけ、高さ 44px にする（ヘッダーはそのぶん少し高く）。 */
header{height:56px}
.header-right{gap:8px}
.header-right button{min-height:44px;white-space:nowrap}
}
/* 320px 幅の小さいスマホでは、ロゴとヘッダーのボタンが重ならないように詰める。 */
@media(max-width:360px){
header{padding:0 8px}
.brand{font-size:11px;letter-spacing:1px;gap:2px}
.brand-icon{margin:0 -3px}
.header-right button{padding:7px 6px;font-size:9.5px}
}
@media(prefers-reduced-motion:reduce){#spin::before,#spin::after{transition:none}}

/* スマホ・タッチ画面では、文字のボタンをアイコン（見れば分かるもの）か、アイコン＋短い文字にする。元の文字は見えないが読み上げられる形で残す。パソコンは今のまま。 */
.ic,.short{display:none}
@media(max-width:640px),(pointer:coarse){
.icon-only,.icon-short{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px}
.icon-only{min-width:44px;padding-left:10px;padding-right:10px}
.icon-only .lbl,.icon-short .lbl,.header-right #settings .lbl{display:block;position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.ic{display:block;flex:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ic .fill{fill:currentColor;stroke:none}
.short{display:inline;white-space:nowrap}
[aria-pressed=true]>.ic-off,[aria-pressed=false]>.ic-on{display:none}
.header-right .icon-only{padding-top:0;padding-bottom:0}
.session-box #break{width:44px;flex:none;padding:0}
#spin{justify-content:flex-start}
#spin .spin-replay,#spin.is-replay .spin-normal{display:none}
#spin.is-replay .spin-replay{display:inline}
}

/* 小さすぎた文字を読める大きさにする（2026-11-10）。説明の文は 12px 以上、見出し・補足は 10px 以上。パソコンでも今より小さくしない。 */
.eyebrow,.detail-title .eyebrow,.sidebar>.eyebrow{font-size:11px;letter-spacing:1px}
dialog .eyebrow{font-size:10px}
.label-row,.session-box .label-row,.week-box .label-row{font-size:11px;letter-spacing:.5px}
.session-box p,.week-box p{font-size:10px}
.canvas-caption{font-size:10px;letter-spacing:1px;line-height:1;margin-top:-3px}
.machine-card small{font-size:10px}
.machine-card em{font-size:10px}
.brand small{font-size:10px}
.free{font-size:10px}
.stage-top,.stage-top>span:last-child,.stage-top>.stage-time,.stage-top .stage-no{font-size:10px}
.stage-top b{font-size:10px}
.stage-count{font-size:10px}
.model{font-size:10px}
.stats small{font-size:12px;letter-spacing:0}
h3,.instructions h3{font-size:12px;letter-spacing:1px}
li,.instructions li{font-size:12px;line-height:1.6}
li b{font-size:10px}
.description,.detail .description{font-size:12px}
details p{font-size:12px}
summary{font-size:12px}
.status{font-size:12px;line-height:1.5}
.urge-ends{font-size:10px}
footer small{font-size:10px;color:#8e9898}
footer p,footer>p{font-size:12px}
.detail-title>span:last-child{font-size:11px;color:#8e9898}
#week-summary li,#week-summary b{font-size:12px}
.history-row{font-size:12px}
.dialog-note{font-size:12px!important}
@media(max-width:640px){
.label-row,.session-box .label-row,.week-box .label-row{font-size:11px}
.session-box p,.week-box p{font-size:10px}
.heading .eyebrow{font-size:10px}
.instructions li{font-size:12px}
footer p{font-size:12px}
.status{font-size:12px}
}
/* 320px 幅の小さいスマホでは、台の上の帯が2行にならないように字間とすき間を詰める。 */
@media(max-width:360px){.stage-top{padding:7px 8px;gap:6px}.stage-top>span{white-space:nowrap}.stage-top>.stage-time,.stage-count{letter-spacing:0}.stage-time time{margin-left:3px;letter-spacing:0}.stage-count .sep{margin:0 4px}.stage-count strong{margin-left:2px;font-size:11px}.stage-top i{margin-right:4px}}
@media(max-width:360px){.stage-time-label{display:none}.stage-time time{margin-left:0}}

/* 押す場所を 44px 以上にする その2（2026-11-10）：パソコンの見出しのボタン、発射強度・音量のスライダー、設定の中の選ぶ欄。 */
.header-right button,.session-box button,footer button,#update-app{min-height:44px}
/* スライダーは押せる高さを 44px にし、つまみも 44px 四方で受ける（見えるつまみは 26px の丸）。左側は選んだところまで金色に塗る（--fill は app.js が入れる）。 */
input[type=range]{-webkit-appearance:none;appearance:none;height:44px;margin:0;padding:0;background:transparent;cursor:pointer;--fill:50%}
input[type=range]::-webkit-slider-runnable-track{height:6px;border-radius:3px;background:linear-gradient(to right,var(--gold) var(--fill),#4a5552 var(--fill))}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:44px;height:44px;margin-top:-19px;border:0;border-radius:50%;background:radial-gradient(circle,var(--gold) 0 10px,#1b211f 10.5px 13px,transparent 13.5px)}
input[type=range]::-moz-range-track{height:6px;border-radius:3px;background:#4a5552}
input[type=range]::-moz-range-progress{height:6px;border-radius:3px;background:var(--gold)}
input[type=range]::-moz-range-thumb{width:44px;height:44px;border:0;border-radius:50%;background:radial-gradient(circle,var(--gold) 0 10px,#1b211f 10.5px 13px,transparent 13.5px)}
input[type=range]:focus-visible{outline-offset:0}
/* 「抽選とシミュレーションについて」は行の高さ全体で開け閉めできるようにする。 */
.detail>details{padding:0}
.detail>details>summary{padding:14px 0}
.detail>details[open]{padding-bottom:15px}
/* 設定：選ぶ欄とチェックを 44px に。「設定を閉じる」は下に貼り付け、どこまで送っても見えるようにする。 */
dialog select{min-height:44px}
dialog label.check{min-height:44px;margin:16px 0}
dialog label.check input{flex:none;width:20px;height:20px;margin:0}
/* 設定とプレイ記録（2026-11-11）：中身だけを送り、下の帯（設定を閉じる・保存・削除）は送っても動かない。
   中身は帯の上の線で切れるので、欄が帯の下にもぐらず、帯のボタンとは帯の上の余白（12px）より近づかない。
   プレイ記録の一覧は高さを決めず、画面の高さいっぱいまで使う。 */
dialog.has-foot{padding:0;overflow:hidden;max-height:calc(100vh - 2em - 6px);max-height:calc(100dvh - 2em - 6px)}
dialog.has-foot[open]{display:flex;flex-direction:column}
dialog.has-foot>form{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
.dialog-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:32px 32px 8px}
.dialog-foot{flex:none;padding:12px 32px 20px;background:#1b2424;border-top:1px solid #3e4942}
.dialog-foot .primary{display:block;width:100%;min-height:48px}
.dialog-foot .dialog-actions{margin-top:0}
#storage-message{margin:8px 0 0}
#storage-message:empty{display:none}
/* 設定は下の帯にいつも「設定を閉じる」があるので、× は上に残さず中身と一緒に送る（欄の上に重ならない）。 */
#settings-dialog .close{position:static}
@media(max-width:640px){.dialog-body{padding:25px 25px 8px}.dialog-foot{padding:12px 25px 16px}}
/* 台を選ぶカードの右端は「↗」（外のページへ移る記号）をやめ、選んでいる台に チェックの丸、選んでいない台に 空の丸 を出す。 */
.machine-card>b.pick{margin:0 -4px 0 auto;display:flex;flex:none;color:#c2ac85}
.pick svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
[aria-pressed=true]>.pick .pick-off,[aria-pressed=false]>.pick .pick-on{display:none}
[aria-pressed=false]>.pick{color:#6f7b78}
@media(max-width:1100px){.machine-card>b.pick{margin-right:0}}
/* パソコンでも「↗」をやめ、「プレイ記録」「今日はここまで」の前に、スマホと同じアイコンを小さく出す。 */
@media not all and (pointer:coarse){@media(min-width:641px){
#history-button,#end{display:inline-flex;align-items:center;gap:6px}
#history-button .ic,#end .ic{display:block;flex:none;width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
}}
/* 設定の音量スライダーは、見出しの字（「効果音」）を折り返さず、残りの幅いっぱいに伸ばす。 */
dialog label input[type=range]{flex:1 1 0;width:auto}
/* 横向きのスマホなど高さが低い画面では、下の帯を薄くする。 */
@media(max-height:500px){.dialog-foot{padding-bottom:10px}.dialog-foot .primary{min-height:44px}}
/* 横向きのスマホ（高さが低い画面）では、台を左、遊ぶボタンと持ち玉を右に並べ、台・ボタン・持ち玉が1画面に同時に入るようにする。 */
@media(orientation:landscape) and (max-height:500px){
.stage{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto;align-items:start;max-height:100vh;max-height:100svh}
.stage>.stage-top{grid-column:1/-1;grid-row:1;flex-wrap:nowrap}
.stage-top .stage-no{display:none}
.stage-top>.stage-time,.stage-count{display:inline}
.stage .cabinet-wrap[class]{grid-column:1;grid-row:2/-1;width:calc((100vh - 46px)*.75);width:calc((100svh - 46px)*.75);min-width:0;max-width:none;margin:0;padding:4px 0 6px 8px}
.stage .canvas-caption{display:none}
.stage>.machine-controls{grid-column:2;grid-row:2;align-self:end;margin:8px 12px 0}
.stage>.status{grid-column:2;grid-row:3;margin:10px 12px 12px;text-align:left}
#pachinko-controls{flex-wrap:wrap;border-top:0;padding-top:0;gap:10px 12px}
#pachinko-controls .power-label{flex:none}
#pachinko-controls #power{flex:1 1 140px;min-width:0}
#pachinko-controls #launch{flex:1 1 100%;min-height:56px}
}
/* 幅も狭い横向き（iPhone SE など）は、台を選ぶ欄を台の上に2列で置き、台の横に遊ぶボタンの幅を残す。 */
@media(orientation:landscape) and (max-height:500px) and (max-width:760px){
.workspace{display:flex;flex-direction:column;gap:14px}
.sidebar{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.sidebar>.eyebrow,.small-note{display:none}
.machine-card{margin:0}
.stage,.detail{width:100%}
.session-box,.week-box{grid-column:1/-1;margin:0;display:flex;align-items:center;gap:12px;padding:10px 13px}
.session-box time,.week-box strong{margin:0;white-space:nowrap}
.session-box .progress,.week-box .progress{display:none}
.session-box p,.week-box p{margin:0}
.session-box button{width:auto;margin:0 0 0 auto;white-space:nowrap}
}
/* 大当たり中の「右打ち」・終わったあとの「左打ち」：台の右下（ハンドルの下）に出し、1回押すだけで発射強度を変える。 */
.cabinet-wrap{position:relative}
.aim{position:absolute;right:16px;bottom:8px;z-index:2;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;min-width:92px;padding:0 14px;border-radius:999px;border:2px solid #ffd27a;background:#151b1de8;color:#ffe2a6;font-size:14px;font-weight:700;letter-spacing:1px;box-shadow:0 0 0 3px #0009,0 0 16px #ffb84d80;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.aim .aim-ic{display:block;flex:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.aim[data-dir=left]{border-color:#9fc8e8;color:#d6ecff;box-shadow:0 0 0 3px #0009,0 0 14px #6fb3e680}
.aim[data-dir=left] .aim-ic{transform:scaleX(-1)}
.aim[data-dir=right]{animation:aim-glow 1.8s ease-in-out infinite}
@keyframes aim-glow{50%{box-shadow:0 0 0 3px #0009,0 0 26px #ffcf6acc}}
@media(prefers-reduced-motion:reduce){.aim[data-dir=right]{animation:none}}
@media(min-width:641px){.aim{right:20px;bottom:24px}}
@media(orientation:landscape) and (max-height:500px){.aim{right:10px;bottom:10px}}
/* プレイ記録の行：使った玉・メダル、払出、差。数と単位の途中では折り返さず、項目の間で折り返す。 */
.history-tally{display:block;color:#c8d2c9;font-variant-numeric:tabular-nums}
.history-tally>span{white-space:nowrap}
.history-tally>b{font-weight:500;color:#e3e7dd}
/* プレイ記録 その2（2026-11-11）：週ごとの遊技時間は「今週 ◯分 · ◯回」の1行にたたみ、押すと4週分が開く。開いた直後から記録が見えるようにする。 */
#history-dialog .week-fold{border:0;border-bottom:1px solid #2f3934;padding:0;margin:12px 0 2px}
/* 押せる所は字の幅だけにし、右上に残る × の列（送っても上に残る）とは重ならないようにする。 */
.week-fold>summary{display:flex;flex-wrap:wrap;align-items:center;gap:0 14px;width:fit-content;max-width:calc(100% - 36px);min-height:44px;list-style:none;font-size:12px;color:#a9b7ab}
.week-fold>summary::-webkit-details-marker{display:none}
.week-now b{font-weight:500;color:#e3e7dd;font-variant-numeric:tabular-nums}
.week-fold.over .week-now b{color:#d9c79e}
.week-more{display:inline-flex;align-items:center;gap:4px;color:#93a198;white-space:nowrap;font-size:11px}
.week-more .ic{display:block;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.week-fold[open] .week-more .ic{transform:rotate(180deg)}
.week-fold #week-summary{margin:0 0 4px}
.week-fold #week-summary li{margin:0;padding:8px 0}.week-fold #week-summary li:last-child{border-bottom:0}.week-fold #week-summary span{white-space:nowrap}
/* 記録の1件：日時と台・時間を1行目にまとめ、行の上下の余白を詰める（使った数・払出・差の行はそのまま）。 */
.history-row{padding:9px 0;line-height:1.65}
.history-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 10px}
.history-row .history-head strong{display:inline;font-variant-numeric:tabular-nums}
/* 設定 その2（2026-11-11）：スマホの縦向きなど狭い幅では、欄の名前を上、選ぶ欄・スライダーを下の全幅に置く（名前が折れない）。 */
@media(max-width:480px){
#settings-dialog label:not(.check){flex-direction:column;align-items:stretch;gap:2px;margin:16px 0}
#settings-dialog label:not(.check)>select,#settings-dialog label:not(.check)>input[type=range]{flex:none;width:100%}
}
/* 横向きのスマホなど高さが低い画面では、プレイ記録の見出しまわりを詰め、開いた直後から記録が1件以上見えるようにする。 */
@media(max-height:500px){#history-dialog .dialog-body{padding-top:14px}#history-dialog .eyebrow{display:none}#history-dialog h2{margin:0 0 4px}#history-dialog .dialog-body>.dialog-note{margin:0;line-height:1.6}#history-dialog .week-fold{margin-top:4px}}
/* プレイ記録 その3（2026-11-11）：狭い幅で週の欄を開いたとき、「気持ち平均」は時間・回数の下の2行目にそろえて出す（途中で折れない）。 */
@media(max-width:480px){#week-summary .week-urge{display:block;font-size:11px;color:#a9b7ab}#week-summary .week-urge .sep{display:none}#week-summary b{white-space:nowrap}}
/* 設定 その3：狭い幅では「アプリのバージョン」の説明を上、「最新版に更新」を下の全幅に置く（説明が細く折れない）。 */
@media(max-width:480px){.app-version{flex-direction:column;align-items:stretch;gap:12px}.app-version #update-app{width:100%}}
/* 横向きのスマホなど高さが低い画面では、設定の見出しまわりと欄の間を詰め、最初の画面に入る欄を増やす。 */
@media(max-height:500px){#settings-dialog .dialog-body{padding-top:14px}#settings-dialog .eyebrow{display:none}#settings-dialog h2{margin:0 0 4px}#settings-dialog .dialog-body>label{margin:10px 0}#settings-dialog .dialog-body>label.check{margin:8px 0}}
/* 設定 その4（2026-11-11）：下の長い説明を場面ごとに分ける。BGMの説明はBGMのすぐ下、点滅と保存の注意は畳まずに残し、「音が出ないとき」は押すと開く。 */
#settings-dialog .field-note{margin:-14px 0 0;font-size:11px;line-height:1.7;color:#93a198}
#settings-dialog .help-fold{border:0;border-top:1px solid #3e4942;padding:0;margin:8px 0 0}
#settings-dialog .help-fold>summary{display:flex;align-items:center;width:fit-content;min-height:44px;font-size:12px;color:#c8cfc4}
#settings-dialog .help-fold>summary{gap:6px;list-style:none}#settings-dialog .help-fold>summary::-webkit-details-marker{display:none}
#settings-dialog .help-fold .ic{display:block;width:16px;height:16px;fill:none;stroke:#93a198;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}#settings-dialog .help-fold[open] .ic{transform:rotate(180deg)}
#settings-dialog .help-fold>p{margin:0 0 10px}#settings-dialog .help-fold+.app-version{margin-top:8px}
@media(max-width:480px){#settings-dialog .field-note{margin-top:-8px}}
/* プレイ記録 その4：保存のしかたの説明は一覧の下に置き、開いた直後に記録が多く見えるようにする。 */
#history-dialog .history-about{margin:14px 0 0;line-height:1.7}
/* 休憩画面（2026-11-11）：中身だけを送り、「ルームに戻る」「記録して終了」は下の帯にいつも見せる。 */
#pause .dialog-actions{margin-top:0}
#pause .dialog-foot .primary{display:inline-block;width:auto}#pause .dialog-foot button{white-space:nowrap}
/* 小さいスマホ（高さ600px以下）では、英字の小見出しを消し、深呼吸の丸を小さくして、開いた直後から「続けたい気持ち」の1〜5が見えるようにする。 */
@media(max-height:600px){#pause .eyebrow{display:none}#pause .breath{font-size:36px;padding:0 0 4px}#pause h2{margin-top:4px}}
/* 横向きのスマホなど高さが低い画面では、休憩画面を横に広げ、左に見出しと時間、右にふりかえりを並べる。深呼吸の丸は小さくする。 */
@media(max-height:500px){
#pause{width:min(780px,94vw);max-width:94vw}
#pause .dialog-body{display:flex;gap:24px;align-items:flex-start;padding-top:14px}
#pause .pause-lead{flex:1 1 0;min-width:0}
#pause .reflection{flex:1.25 1 0;min-width:0;margin:0}
#pause .eyebrow{display:none}
#pause .breath{font-size:30px;padding:0;text-align:left}
#pause h2{margin:4px 0 6px}
#pause .pause-lead p{margin:6px 0;line-height:1.6}
#pause .reflection{padding-top:6px}#pause .reflection p{margin:4px 0}#pause .memo-label{margin:6px 0 4px!important}#pause .reflection .dialog-note{line-height:1.6}
}
/* 休憩画面 その2（2026-11-11）：下の帯の2つのボタンは、設定・記録の帯と同じく帯の幅いっぱいに並べる。「記録して終了」は金色で広め（主なボタン）、「ルームに戻る」は枠だけで狭め。 */
#pause .dialog-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:12px}
#pause .dialog-foot button{width:100%;min-height:48px;padding-inline:8px}
/* 小さいスマホ（高さ600px以下）では、見出しの下の2行と今回・今週の時間の行間を詰め、開いた直後からメモの欄まで見えるようにする。 */
@media(max-height:600px){
#pause .dialog-body{padding-top:16px}
#pause .breath{font-size:28px;line-height:1;padding:0 0 2px}
#pause h2{margin:2px 0 6px}
#pause .pause-lead p{margin:4px 0;line-height:1.6}
#pause .pause-lead .dialog-note{line-height:1.5}
#pause .reflection{margin-top:10px}
#pause .memo-label{margin:8px 0 4px!important}
}
/* 横向きのスマホなど高さが低い画面では、帯のボタンを右のふりかえりの列の下にそろえる（横に広い休憩画面でボタンが伸びすぎない）。 */
@media(max-height:500px){#pause .dialog-actions{max-width:440px;margin-left:auto}#pause .dialog-foot button{min-height:44px}}
/* プレイ記録 その5（2026-11-11）：下の帯の「JSONで保存」「記録を削除」も、設定・休憩の帯と同じく帯の幅いっぱいに同じ幅で並べる。
   削除は取り消しにくいので文字を残し、金色の主なボタンと見間違えないよう、塗りのない赤みの枠と字にする。 */
#history-dialog .dialog-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
#history-dialog .dialog-foot .dialog-actions button{width:100%;min-height:48px;margin:0;padding:8px;display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;font-size:11px}
#history-dialog #clear-history{border:1px solid #7a4a44;border-radius:5px;color:#e0a69c;background:transparent}
#history-dialog #clear-history:hover{background:#2a1f1e}
@media(max-height:500px){#history-dialog .dialog-foot .dialog-actions button{min-height:44px}}
/* 横向きのスマホなど高さが低い画面では、台の下の案内（サウンドの案内・「発射中」など）を右の列のいちばん上に置き、ページを開いた直後から見えるようにする。 */
@media(orientation:landscape) and (max-height:500px){
.stage>.status{grid-column:2;grid-row:2;align-self:start;margin:12px 12px 0}
}
/* 案内の行を上へ移したぶん、操作盤の下に案内の行と同じ高さ（40px）を残し、操作盤の位置は前と同じにする（最初の画面に入る操作を減らさない）。 */
@media(orientation:landscape) and (max-height:500px){.stage>.machine-controls{margin-bottom:40px}}
/* 記録の削除の確認（2026-11-11）：ブラウザの確認の代わりに、記録の画面の上に小さな確認を出す。「残す」（金色・左・最初に選ばれる）と「削除する」（赤みの枠）を同じ幅で並べる。 */
#clear-confirm{width:360px;max-width:calc(100vw - 32px);padding:24px}
#clear-confirm h2{font-size:18px;margin:0 0 10px;line-height:1.5}
#clear-confirm p{margin:0 0 8px;line-height:1.8}
#clear-confirm p strong{display:block;font-weight:600;color:#f0c2b9}
#clear-confirm .dialog-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin-top:18px}
#clear-confirm .dialog-actions button{width:100%;min-height:48px;padding:8px;white-space:nowrap;font-size:12px}
#confirm-clear{border:1px solid #7a4a44;color:#e0a69c;background:transparent}
#confirm-clear:hover{background:#2a1f1e}
@media(max-height:500px){#clear-confirm{padding:18px 24px}#clear-confirm .dialog-actions{margin-top:12px}#clear-confirm .dialog-actions button{min-height:44px}}
/* 横向き その2（2026-11-11）：開いた直後から発射ボタン・停止ボタンまで見えるようにする。
   上の帯と上の余白を詰め、右の列は「案内の行」と「操作盤」をひとまとめにして下に置き、その下に余白を残して画面の下端より上に収める。台の大きさは今のまま。 */
@media(orientation:landscape) and (max-height:500px){
header{height:56px}
main{padding-top:12px}
.stage>.status{grid-column:2;grid-row:2;align-self:end;margin:0 12px 10px}
.stage>.machine-controls{grid-column:2;grid-row:3;align-self:end;margin:0 12px 68px}
}
/* 幅も狭い横向き（667×375 など）は、台を先に、台を選ぶ欄と今回のプレイ・今週の欄を台の下に置く（開いた直後から台・案内・発射ボタンが見える）。 */
@media(orientation:landscape) and (max-height:500px) and (max-width:760px){
.workspace>.stage{order:-1}
}
/* 幅も狭い横向き（667×375 など）は「今回のプレイ」の欄が台の下に行くので、台の上の帯に「◯分で休憩」と一時停止ボタンを出し、遊んでいる間も見えるようにする。
   帯に収まるよう、持ち玉・払出の字と間を詰める。ほかの画面では出さない。 */
.stage-limit,.stage-break{display:none}
@media(orientation:landscape) and (max-height:500px) and (max-width:760px){
.stage>.stage-top{gap:10px;padding:2px 4px 2px 12px;align-items:center}
.stage-top>.stage-time{display:inline-flex;align-items:baseline;gap:0;white-space:nowrap}
.stage-limit{display:inline;margin-left:8px;padding-left:8px;border-left:1px solid #3e4942;font-size:10px;letter-spacing:0;color:#c8b48c;white-space:nowrap}
.stage-count{letter-spacing:0}
.stage-count strong{margin-left:3px}
.stage-count .sep{margin:0 5px}
.stage-top>.stage-count{margin-left:auto}
.stage-break{display:inline-flex;flex:none;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;margin-left:0}
}
@media(orientation:landscape) and (max-height:500px) and (max-width:760px){
.stage-break .ic{display:block;flex:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.stage-break .lbl{display:block;position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
}
/* 帯が一時停止ボタンのぶん（12px）高くなるので、操作盤の下の余白を同じだけ足し、操作盤の位置を前より下げない。 */
@media(orientation:landscape) and (max-height:500px) and (max-width:760px){.stage>.machine-controls{margin-bottom:80px}}
/* 横向き その3（2026-11-11）：幅のある横向き（844×390 など）では、台の名前・時間・持ち玉の帯を右の列の上に移し、台を枠の上端から置く。
   台の大きさは変えずに枠の高さが帯のぶん低くなるので、台まで送ったときの操作盤の下の空きが減る（操作盤の位置は前より下げない）。 */
@media(orientation:landscape) and (max-height:500px) and (min-width:761px){
.stage{grid-template-rows:auto minmax(0,1fr) auto auto}
.stage>.stage-top{grid-column:2;grid-row:1;display:grid;grid-template-columns:auto 1fr;gap:6px 10px;align-items:baseline;padding:12px 12px 10px;border-bottom:1px solid #303b3b;margin:0 0 0 0}
.stage>.stage-top>.stage-time{justify-self:end}
.stage>.stage-top>.stage-count{grid-column:1/-1}
.stage .cabinet-wrap[class]{grid-row:1/-1}
.stage>.machine-controls{margin-bottom:32px}
}
/* 見た目の整え（2026-11-11）：
   1) 休憩画面の「今回の遊技時間」は時間の文と「発射とリールは停止しています。」を2行に分け、文の途中や最後の1〜2字だけが次の行に落ちないようにする。ダイアログの説明文も、行末に1字だけ残らない折り返しにする（対応するブラウザのみ）。 */
#pause-summary{white-space:pre-line}
dialog p,#settings-dialog .field-note{text-wrap:pretty}
/* 2) 設定は、幅のある画面では欄の名前の列をそろえ、選ぶ欄とスライダーを同じ位置から同じ幅で並べる（選ぶ欄の幅が中身でばらばらにならない）。 */
@media(min-width:481px){
#settings-dialog .dialog-body>label:not(.check){display:grid;grid-template-columns:7.5em minmax(0,1fr);gap:0 16px;align-items:center}
#settings-dialog .dialog-body>label:not(.check)>select,#settings-dialog .dialog-body>label:not(.check)>input[type=range]{width:100%}
}
/* 3) 記録の下の帯の知らせ（保存・削除のあと）は、説明文と同じ小さめの字にし、ファイル名は2行目に分ける（長い名前が途中で折れて3行にならない）。 */
#storage-message{font-size:11px;line-height:1.6;color:#a9b7ab;white-space:pre-line;overflow-wrap:anywhere}
/* プレイ記録 その6（2026-11-11）：ふりかえり（気持ち・メモ）のない記録も3行目に「ふりかえりなし」を薄く出し、行の高さをそろえる。 */
.history-memo.none{color:#6f7d76}
/* 幅のある横向き（844×390 など）でも、右の列の上の帯に「◯分で休憩」と一時停止ボタンを出し、遊んでいる間も休憩の仕組みが見えるようにする。
   帯は「台の名前」「時間｜◯分で休憩」「持ち玉・払出」の3行にし、一時停止ボタン（44px）は右に縦に通して置く。 */
@media(orientation:landscape) and (max-height:500px) and (min-width:761px){
.stage>.stage-top{grid-template-columns:auto minmax(0,1fr) auto;gap:4px 0;align-items:center;padding:8px 8px 8px 12px}
.stage>.stage-top>span:first-child{grid-column:1/3;grid-row:1}
.stage>.stage-top>.stage-time{grid-column:1;grid-row:2;justify-self:start;display:inline-flex;align-items:baseline;white-space:nowrap}
.stage>.stage-top>.stage-count{grid-column:1/3;grid-row:3}
.stage>.stage-top>.stage-limit{grid-column:2;grid-row:2;justify-self:start}
.stage-limit{display:inline;margin-left:8px;padding-left:8px;border-left:1px solid #3e4942;font-size:10px;letter-spacing:0;color:#c8b48c;white-space:nowrap}
.stage-break{display:inline-flex;grid-column:3;grid-row:1/4;margin-left:10px;align-self:center;flex:none;width:44px;min-width:44px;height:44px;min-height:44px;padding:0}
.stage-break .ic{display:block;flex:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.stage-break .lbl{display:block;position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
}
/* 休憩画面 その3（2026-11-11）：深呼吸の丸は字（◯）ではなく線で描き、端末の字の形で大きさや上下の余白が変わらないようにする。
   丸の下の余白はどの画面でも12px（見出しの字までの見た目の間は約17px）にそろえる。 */
#pause .breath{box-sizing:border-box;width:76px;height:76px;margin:8px auto 12px;padding:0;border:5px solid #b9cdb7;border-radius:50%;font-size:0;line-height:0;color:transparent}
#pause h2{margin-top:0}
@media(max-height:600px){#pause .breath{width:36px;height:36px;border-width:3px;margin:0 auto 12px}}
@media(max-height:500px){#pause .breath{margin:0 0 12px}}
/* プレイ記録 その7（2026-11-11）：メモのある行は2行で畳み、収まらないときだけ右に「開く」ボタン（44px・下向きの矢印）を出す。押すと全部見え、もう一度押すと畳む。 */
/* 読み上げでは「メモの全文 → 開くボタン」の順にする（ボタンは文のあと）。ボタンは文の右の同じ場所に置いたままにし、開いても動かない（続けてもう一度押せば畳める）。
   ボタンは週の欄と同じ枠のない矢印にし（押せる所は44px）、右上に残る × の列（一覧の右端から25px）とは8px以上離す（右に33px空ける）。 */
.history-reflect{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start}
.history-memo.clamp{grid-column:1;grid-row:1;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
.history-memo.clamp.open{display:block;-webkit-line-clamp:unset;line-clamp:none;overflow:visible}
.memo-more{grid-column:2;grid-row:1;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;margin:-4px 33px -4px 4px;padding:0;border:0;background:transparent;color:#a9b7ab}
.memo-more:hover{color:#e3e7dd}
.memo-more .ic{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.memo-more[aria-expanded=true] .ic{transform:rotate(180deg)}
/* 幅のある横向き（844×390 など）では、台の上の帯に一時停止ボタンと「◯分で休憩」があるので、左の「今回のプレイ」の欄は時間と休憩までの時間だけの小さい形にし、ボタンを二重に出さない。 */
@media(orientation:landscape) and (max-height:500px) and (min-width:761px){
.session-box{margin-top:10px;padding:8px 12px}
.session-box time{font-size:20px;letter-spacing:2px;margin:4px 0 0}
.session-box .progress{margin:5px 0 0}
.session-box p{margin:4px 0 0;font-size:10px;line-height:1.5}
.session-box #break{display:none}
.week-box{margin-top:10px;padding:10px 12px}
.week-box strong{margin:6px 0 2px}
.week-box p{margin:6px 0 0}
}
/* 横向きの休憩画面では、右の「ふりかえり」の枠の上端を左の丸の上端にそろえる。 */
@media(max-height:500px){#pause .reflection{margin-top:0}}
/* 幅の狭い横向き（667×375 など）も、台の帯に一時停止ボタンがあるので、台の下の「今回のプレイ」の欄の一時停止ボタンは出さない（1画面に1つ）。 */
@media(orientation:landscape) and (max-height:500px) and (max-width:760px){.session-box #break{display:none}}
/* 横向きの休憩画面では、見出し（「少し、台から離れて。」）を少し小さくして、幅の狭い横向き（667×375）でも最後の「て。」だけが次の行に落ちないようにする。折り返すときは行の長さをそろえる。 */
dialog h2{text-wrap:balance}
@media(max-height:500px){#pause h2{font-size:20px;letter-spacing:.5px}}
/* 見た目の整え（2026-11-12）：
   1) 遊び方の各行は、最後の1〜2字だけが次の行に落ちない折り返しにする（対応するブラウザのみ。PC の「…大入賞口へ」は言葉のまとまりでも折り返す）。 */
.instructions li{text-wrap:pretty}
.instructions .nw{display:inline-block}
/* 2) 狭いスマホ（幅360px以下）の「今回のプレイ」の欄：見出しを1行に収め、案内（10分で自動休憩）も1行に。入りきらない端末でも「10分で／自動休憩」の区切りで折り返す。今週の欄の案内も言葉の区切りで折り返す。 */
.session-box .label-row span{white-space:nowrap}
#limit-label,#week-label{word-break:keep-all}
@media(max-width:360px){.session-box,.week-box{gap:8px;padding-left:10px;padding-right:10px}.session-box time{letter-spacing:2px}}
/* 3) 台を選ぶカードが細い幅（タブレット・幅のある横向き）では、「01 / PACHINKO」の番号を省いて1行に収める（番号は台の情報の欄に出ている）。 */
.machine-card small{white-space:nowrap}
@media(min-width:641px) and (max-width:1100px){.machine-card .card-no{display:none}}
@media(orientation:landscape) and (max-height:500px) and (max-width:760px){.machine-card .card-no{display:inline}}
/* 4) スマホ：ページ下の線と文を、台の情報の欄（区切り線・リセット）と同じ左右の位置にそろえる。 */
@media(max-width:640px){footer{margin-left:6px;margin-right:6px}}
/* 遊び方の2行目以降は、番号の下ではなく文の始まりにそろえる。 */
.instructions li{padding-left:26px;text-indent:-26px}
.instructions li b{display:inline-block;width:22px;margin-right:0;text-indent:0}
.instructions li .nw{text-indent:0}
footer p .nw{display:inline-block}
