:root{
  --ink:#f7f3e8;--muted:#c7ced8;--gold:#d8b36b;--gold2:#f1d48f;--navy:#071522;--deep:#03101a;
  --paper:rgba(7,21,34,.78);--line:rgba(236,215,165,.32);--shadow:0 18px 42px rgba(0,0,0,.28)
}
*{box-sizing:border-box}
html{background:#06111c}
body{margin:0;font-family:system-ui,-apple-system,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;background:#06111c;color:var(--ink)}
button,input{font:inherit}
button{cursor:pointer;touch-action:manipulation}
button:focus-visible,input:focus-visible,a:focus-visible{outline:4px solid #f5d77e;outline-offset:2px}
.pitadome-app{
  width:min(720px,100%);margin:0 auto;min-height:100vh;padding:10px 10px 38px;
  background:
    linear-gradient(to bottom,rgba(2,10,18,.08),rgba(2,10,18,.32)),
    url("../../pitadome_challenge_background.png") center 42%/cover fixed no-repeat;
}
.top-nav{display:flex;justify-content:space-between;gap:8px;margin-bottom:10px}
.nav-pill{
  border:1px solid rgba(230,219,189,.35);background:rgba(255,255,255,.94);color:#142033;border-radius:999px;
  padding:9px 13px;font-size:13px;font-weight:950;box-shadow:0 4px 12px rgba(0,0,0,.13)
}
.title-card{
  min-height:calc(100vh - 74px);border-radius:30px;padding:24px 17px;display:grid;align-content:center;text-align:center;
  background:linear-gradient(to bottom,rgba(2,11,19,.10),rgba(2,11,19,.30) 48%,rgba(2,11,19,.74) 100%);
  border:1px solid rgba(236,215,165,.25);box-shadow:var(--shadow);overflow:hidden
}
.title-logo{display:block;width:min(680px,100%);max-height:250px;object-fit:contain;margin:0 auto 10px;filter:drop-shadow(0 10px 18px rgba(0,0,0,.45))}
.title-copy{margin:0 auto 20px;max-width:520px;padding:10px 14px;border-radius:16px;background:rgba(4,15,25,.62);font-weight:900;line-height:1.6;color:#fff}
.stack{display:grid;gap:9px}
.btn{
  border:0;border-radius:17px;min-height:54px;padding:13px 15px;
  background:linear-gradient(180deg,#d9ba76,#a87a32);color:#15110b;font-weight:1000;
  box-shadow:0 5px 0 #6e491c
}
.btn:active{transform:translateY(3px);box-shadow:0 2px 0 #6e491c}
.btn.secondary{background:rgba(239,242,246,.96);color:#203047;box-shadow:0 4px 0 #b8c0ca}
.btn.full{width:100%}
.btn:disabled{opacity:.42;cursor:not-allowed;transform:none;box-shadow:none}
.screen-heading{text-align:center;margin:8px 0 14px;text-shadow:0 3px 12px rgba(0,0,0,.45)}
.screen-heading h1{margin:0 0 5px;font-size:clamp(27px,7.5vw,38px);line-height:1.15}
.screen-heading p{margin:0;color:#e3e7ec;font-weight:800;line-height:1.5}
.card{
  background:rgba(6,19,31,.86);border:1px solid var(--line);border-radius:22px;padding:16px;
  box-shadow:var(--shadow);margin-bottom:12px;backdrop-filter:blur(5px)
}
.card h2{margin:0 0 6px;color:#fff}
.card p{margin:0;color:#d7dde4;font-weight:760;line-height:1.55}
.mode-grid{display:grid;gap:12px}
.mode-card{
  position:relative;text-align:left;border:1px solid rgba(236,215,165,.38);border-radius:22px;background:rgba(4,16,27,.88);
  padding:18px 16px;min-height:145px;color:#fff;box-shadow:var(--shadow)
}
.mode-card strong{display:block;font-size:24px;margin-bottom:7px}
.mode-card>span{display:block;max-width:86%;color:#d6dde6;font-weight:800;line-height:1.5}
.mode-card::after{content:"›";position:absolute;right:16px;top:50%;transform:translateY(-50%);font-size:42px;font-weight:1000;color:#ddc27b}
.mode-badges{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:9px}
.mode-badge{padding:5px 9px;border-radius:999px;background:rgba(224,194,124,.16);border:1px solid rgba(224,194,124,.36);color:#f3da98;font-size:10px;font-weight:1000}
.player-card{display:flex;align-items:center;justify-content:space-between;gap:10px}
.player-main{display:flex;align-items:center;gap:10px;min-width:0}
.player-avatar{width:52px;height:52px;border-radius:16px;background:rgba(255,255,255,.10);display:grid;place-items:center;font-size:30px;border:1px solid rgba(255,255,255,.14)}
.player-main strong{font-size:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.small-btn{border:1px solid rgba(236,215,165,.38);background:rgba(255,255,255,.10);color:#fff;border-radius:12px;padding:8px 11px;font-weight:950}
.solo-list{display:grid;gap:8px}
.solo-choice{display:flex;align-items:center;gap:10px;width:100%;border:1px solid rgba(236,215,165,.28);background:rgba(255,255,255,.06);color:#fff;border-radius:16px;padding:11px 12px;text-align:left}
.solo-choice.selected{background:rgba(218,185,108,.17);border-color:#d8b36b}
.solo-choice span{font-size:28px}.solo-choice strong{font-size:17px}
.rules-list{display:grid;gap:10px}
.rule-step{display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px;align-items:start;padding:13px;border-radius:17px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.09)}
.rule-step b{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(180deg,#e4c47e,#ad7b34);color:#17120a;font-size:20px}
.rule-step strong{display:block;font-size:17px;margin-bottom:4px}.rule-step span{color:#d5dce4;font-weight:780;line-height:1.5}
.mode-help{display:grid;gap:8px;margin-top:12px}.mode-help div{padding:12px;border-radius:14px;background:rgba(255,255,255,.06)}
.rules-bottom-back{margin-top:12px}
.hud{display:grid;grid-template-columns:1fr auto;gap:8px;margin-bottom:10px}
.hud-chip{padding:8px 11px;border-radius:14px;background:rgba(4,17,28,.84);border:1px solid rgba(236,215,165,.28);font-weight:1000;box-shadow:0 6px 16px rgba(0,0,0,.20)}
.hud-right{text-align:right}
.life-row{letter-spacing:.1em;color:#f2cf72}
.play-panel{
  border-radius:28px;padding:14px 14px 18px;background:rgba(4,16,27,.82);border:1px solid rgba(236,215,165,.28);
  box-shadow:var(--shadow);min-height:calc(100vh - 86px);display:grid;grid-template-rows:auto auto minmax(220px,1fr) auto;gap:12px
}
.target-wrap{text-align:center}
.target-label{font-size:14px;color:#d3dbe5;font-weight:900;letter-spacing:.08em}
.target-number{font-size:clamp(64px,19vw,108px);line-height:.9;font-weight:1000;color:#fff;text-shadow:0 6px 24px rgba(0,0,0,.38)}
.target-number small{font-size:.24em;color:#f0d58f;margin-left:6px}
.meter-zone{display:grid;align-content:center;gap:10px}
.meter-line-wrap{position:relative;padding:24px 12px 18px}
.meter-line{height:14px;border-radius:999px;background:linear-gradient(90deg,#c7d7e7,#f2d58f,#c7d7e7);box-shadow:inset 0 0 0 2px rgba(255,255,255,.30),0 4px 14px rgba(0,0,0,.25)}
.meter-cursor{position:absolute;top:8px;left:12px;width:6px;height:46px;border-radius:999px;background:#fff6c7;box-shadow:0 0 16px #fff3aa,0 0 28px rgba(244,203,102,.65);transform:translateX(-50%)}
.meter-labels{display:flex;justify-content:space-between;color:#eef3f8;font-weight:950;font-size:14px;padding:0 5px}
.stop-btn{
  width:100%;min-height:96px;border:2px solid #f0d188;border-radius:24px;background:linear-gradient(180deg,#e5c477,#a8732f);
  color:#17110a;font-size:clamp(34px,10vw,54px);font-weight:1000;letter-spacing:.04em;box-shadow:0 8px 0 #66451c,0 16px 34px rgba(0,0,0,.28)
}
.stop-btn:active{transform:translateY(5px);box-shadow:0 3px 0 #66451c,0 8px 20px rgba(0,0,0,.26)}
.countdown-overlay{position:absolute;inset:0;z-index:20;display:grid;place-items:center;background:rgba(2,10,17,.78);border-radius:28px}
.countdown-number{font-size:clamp(110px,34vw,190px);font-weight:1000;color:#fff;text-shadow:0 8px 28px rgba(0,0,0,.5)}
.countdown-number.start-text{font-size:clamp(52px,16vw,90px)}
.play-wrap{position:relative}
.result-card{text-align:center}
.result-kicker{font-size:13px;letter-spacing:.12em;color:#e1c77f;font-weight:1000}
.result-main{font-size:clamp(58px,18vw,96px);line-height:1;font-weight:1000;margin:8px 0;color:#fff}
.result-main.perfect{color:#ffe18f;text-shadow:0 0 20px rgba(255,222,125,.42)}
.result-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}
.result-stat{padding:12px;border-radius:15px;background:rgba(255,255,255,.07)}
.result-stat small{display:block;color:#cbd3dd;font-weight:800}.result-stat strong{display:block;font-size:22px;margin-top:3px}
.result-comment{font-size:20px;font-weight:1000;color:#fff;margin:8px 0 16px}
.final-card{text-align:center}
.final-score{font-size:clamp(64px,20vw,110px);line-height:.9;font-weight:1000;color:#fff;margin:10px 0}
.new-record{display:inline-block;padding:7px 12px;border-radius:999px;background:#d9b35f;color:#1b1408;font-weight:1000;margin-bottom:10px}
.record-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0}
.record-box{padding:12px;border-radius:15px;background:rgba(255,255,255,.07)}
.record-box small{display:block;color:#cbd4df;font-weight:800}.record-box strong{display:block;font-size:21px;margin-top:4px}
.note{padding:10px 12px;border-radius:14px;background:rgba(230,194,112,.10);border:1px solid rgba(230,194,112,.24);color:#f1dfb4;font-size:12px;font-weight:850;line-height:1.55}
@media(max-width:390px){
  .pitadome-app{padding-left:8px;padding-right:8px}
  .nav-pill{padding:8px 10px;font-size:12px}
  .title-card{padding-left:13px;padding-right:13px}
  .play-panel{padding:12px}
  .stop-btn{min-height:88px}
}
@media(prefers-reduced-motion:reduce){
  .meter-cursor{transition:none!important}
}


/* Pitadome expansion: rankings, gimmicks, combo and hit effects */
.sub-hud{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;margin-top:-4px}
.combo-chip{white-space:nowrap}.combo-chip b{font-size:19px;color:#f6d37d}.combo-chip small{font-size:11px;color:#f2dfaa}
.player-mini{text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.quiet-row{display:grid;grid-template-columns:auto minmax(80px,1fr) auto;align-items:center;gap:8px;padding:8px 10px;border-radius:14px;background:rgba(3,14,24,.72);border:1px solid rgba(230,201,132,.24)}
.quiet-copy{display:flex;gap:6px;align-items:baseline;white-space:nowrap}.quiet-copy span{font-size:11px;font-weight:950;color:#d7dde5}.quiet-copy strong{font-size:13px;color:#f3d78f}
.quiet-track{height:9px;border-radius:999px;background:rgba(255,255,255,.10);overflow:hidden;box-shadow:inset 0 0 0 1px rgba(255,255,255,.09)}
.quiet-track i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#92733b,#f4dd96,#fff4c6);box-shadow:0 0 12px rgba(244,221,150,.45);transition:width .25s ease}
.mushin-badge{padding:5px 7px;border-radius:999px;background:#f1d78d;color:#171106;font-size:10px;font-weight:1000;white-space:nowrap}
.stage-banner{text-align:center;padding:7px 10px;border-top:1px solid rgba(238,211,142,.25);border-bottom:1px solid rgba(238,211,142,.25);background:linear-gradient(90deg,transparent,rgba(219,181,96,.13),transparent)}
.stage-banner small{display:block;font-size:9px;letter-spacing:.22em;color:#e8d3a0;font-weight:1000}.stage-banner strong{display:block;font-size:20px;letter-spacing:.12em;color:#fff3ca}
.gimmick-row{display:flex;justify-content:center;gap:5px;flex-wrap:wrap;margin-top:9px}
.gimmick-row span{padding:4px 7px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(237,213,153,.22);color:#e9dcb7;font-size:10px;font-weight:900}
.meter-zone{justify-items:center;width:100%}
.meter-shell{max-width:100%;min-width:52%;transition:width .25s ease}
.meter-track{position:relative;height:58px;width:100%}
.meter-track .meter-line{position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);height:14px}
.meter-track .meter-cursor{top:6px;left:0;height:46px;transform:translateX(-50%);transition:opacity .08s ease}
.meter-track .meter-cursor.blind{opacity:0}
.blind-zone{position:absolute;top:18px;height:22px;z-index:2;border-radius:10px;background:linear-gradient(90deg,rgba(1,6,10,.72),rgba(1,6,10,.96),rgba(1,6,10,.72));box-shadow:0 0 15px rgba(0,0,0,.45),inset 0 0 0 1px rgba(230,213,171,.08);pointer-events:none}
.meter-labels{position:relative;height:25px;padding:0;margin-top:-1px}
.meter-labels span{position:absolute;top:0;transform:translateX(-50%);font-size:13px;font-weight:1000;color:#f0f4f7}
.meter-labels span:first-child{transform:none}.meter-labels span:last-child{transform:translateX(-100%)}
.result-card{position:relative;overflow:hidden;isolation:isolate}
.result-card>*{position:relative;z-index:3}
.hit-word{margin:7px 0 1px;font-size:clamp(32px,10vw,56px);line-height:1;font-weight:1000;letter-spacing:.03em;color:#fff;text-shadow:0 5px 18px rgba(0,0,0,.35)}
.tier-perfect .hit-word{font-size:clamp(42px,13vw,70px);color:#fff0ae;text-shadow:0 0 9px #fff7cd,0 0 28px rgba(247,199,86,.85),0 5px 20px rgba(0,0,0,.4);animation:perfectPop .62s cubic-bezier(.2,1.6,.35,1)}
.tier-excellent .hit-word{color:#ffe39b;animation:hitPop .48s ease-out}
.tier-great .hit-word{color:#f4d997;animation:hitPop .4s ease-out}
.tier-perfect::before,.tier-excellent::before,.tier-great::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none}
.tier-perfect::before{background:radial-gradient(circle at 50% 35%,rgba(255,240,170,.42),transparent 34%),linear-gradient(120deg,transparent 30%,rgba(255,239,170,.17),transparent 67%);animation:screenFlash .75s ease-out}
.tier-excellent::before{background:radial-gradient(circle at 50% 35%,rgba(255,221,130,.25),transparent 38%);animation:screenFlash .58s ease-out}
.tier-great::before{background:radial-gradient(circle at 50% 35%,rgba(239,199,105,.16),transparent 43%)}
.hit-fx{position:absolute!important;z-index:1!important;inset:0;pointer-events:none}
.hit-ring{position:absolute;left:50%;top:39%;width:70px;height:70px;border:4px solid rgba(255,235,164,.9);border-radius:50%;transform:translate(-50%,-50%) scale(.25);opacity:0;animation:ringBurst .72s ease-out}
.spark-burst{position:absolute;left:50%;top:39%;width:1px;height:1px}
.spark-burst i{--angle:calc(var(--i) * 30deg);position:absolute;width:7px;height:22px;border-radius:999px;background:linear-gradient(#fff8cf,#dbab4e);transform-origin:3px 3px;transform:rotate(var(--angle)) translateY(-24px) scale(.5);opacity:0;animation:sparkFly .75s ease-out both;animation-delay:calc(var(--i) * 8ms)}
.combo-result{display:inline-flex;align-items:center;gap:8px;margin:9px auto 1px;padding:7px 12px;border-radius:999px;background:linear-gradient(90deg,rgba(166,119,45,.22),rgba(242,209,129,.22));border:1px solid rgba(244,215,144,.42);font-size:18px;font-weight:1000;color:#fff}
.combo-result span{color:#f5d47e}
.result-main small{font-size:.28em}
.bonus-line{margin:-1px 0 10px;color:#dbc993;font-size:12px;font-weight:900}
.bonus-notice{margin:9px 0 0;padding:10px;border-radius:14px;background:rgba(231,193,102,.13);border:1px solid rgba(241,211,139,.34);color:#fff0c2;font-weight:950}
.mushin-notice{background:rgba(232,217,166,.18);box-shadow:inset 0 0 18px rgba(255,242,195,.06)}
.charm-notice{background:rgba(135,184,210,.13);border-color:rgba(177,220,239,.28);color:#e6f6ff}
.rank-tabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:11px}
.rank-tabs button{min-height:48px;border:1px solid rgba(236,215,165,.32);border-radius:14px;background:rgba(4,16,27,.82);color:#d7dfe8;font-weight:1000}
.rank-tabs button.selected{background:linear-gradient(180deg,#e0c47d,#a77a36);color:#18120a;border-color:#e5cb88}
.ranking-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.ranking-head>strong{font-size:18px}
.ranking-list{display:grid;gap:7px}
.ranking-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto auto;gap:8px;align-items:center;padding:9px;border-radius:14px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.07)}
.ranking-row.top{background:linear-gradient(90deg,rgba(216,179,107,.18),rgba(255,255,255,.05));border-color:rgba(226,198,132,.24)}
.rank-no{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.09);font-weight:1000}.top-1 .rank-no{background:#e5c36e;color:#161109}.top-2 .rank-no{background:#c8d0d8;color:#17202b}.top-3 .rank-no{background:#b98554;color:#1d1208}
.rank-player{display:grid;grid-template-columns:32px minmax(0,1fr);gap:6px;align-items:center;min-width:0}.rank-player span{font-size:25px}.rank-player strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rank-score{text-align:right;white-space:nowrap}.rank-score strong{display:block;font-size:21px;color:#fff1c1}.rank-score small{display:block;color:#c9d1db;font-size:9px;font-weight:900}
.rank-delete{min-height:38px;border:1px solid rgba(255,145,145,.38);border-radius:10px;background:rgba(160,38,53,.18);color:#ffd7dc;font-size:11px;font-weight:1000;padding:6px 8px}
.ranking-empty{text-align:center;padding:30px 10px;color:#d4dbe3;font-weight:850;line-height:1.7}
.rank-clear{margin-bottom:9px;color:#7a2430!important}
@keyframes perfectPop{0%{transform:scale(.55);opacity:0}55%{transform:scale(1.13);opacity:1}100%{transform:scale(1)}}
@keyframes hitPop{0%{transform:scale(.72);opacity:.2}70%{transform:scale(1.08)}100%{transform:scale(1);opacity:1}}
@keyframes screenFlash{0%{opacity:0}18%{opacity:1}100%{opacity:.25}}
@keyframes ringBurst{0%{opacity:1;transform:translate(-50%,-50%) scale(.2)}100%{opacity:0;transform:translate(-50%,-50%) scale(5)}}
@keyframes sparkFly{0%{opacity:1;transform:rotate(var(--angle)) translateY(-18px) scale(.3)}70%{opacity:1}100%{opacity:0;transform:rotate(var(--angle)) translateY(-118px) scale(1)}}
@media(max-width:390px){
  .sub-hud{grid-template-columns:auto minmax(0,1fr)}
  .hud-chip{font-size:12px;padding:7px 8px}
  .life-row{font-size:11px;letter-spacing:.04em}
  .quiet-row{grid-template-columns:auto minmax(60px,1fr);gap:6px}.mushin-badge{grid-column:1/-1;justify-self:center}
  .ranking-row{grid-template-columns:32px minmax(0,1fr) auto}.ranking-row .rank-delete{grid-column:2/-1;width:100%}
  .rank-player{grid-template-columns:28px minmax(0,1fr)}.rank-player span{font-size:22px}.rank-score strong{font-size:19px}
}
@media(prefers-reduced-motion:reduce){
  .tier-perfect .hit-word,.tier-excellent .hit-word,.tier-great .hit-word,.tier-perfect::before,.tier-excellent::before,.hit-ring,.spark-burst i{animation:none!important}
  .quiet-track i,.meter-shell{transition:none!important}
}


/* Play screen: single viewport fit 2026-10-09 */
.pitadome-app.screen-play{
  height:100vh;
  height:100dvh;
  min-height:0;
  overflow:hidden;
  padding:6px 8px max(6px,env(safe-area-inset-bottom));
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
}
.screen-play .top-nav{
  margin-bottom:5px;
  gap:6px;
}
.screen-play .nav-pill{
  min-height:34px;
  padding:6px 10px;
  font-size:11px;
}
.screen-play .play-wrap{
  min-height:0;
  height:100%;
  overflow:hidden;
}
.screen-play .play-panel{
  height:100%;
  min-height:0;
  overflow:hidden;
  padding:8px 10px 10px;
  border-radius:22px;
  display:flex;
  flex-direction:column;
  gap:5px;
}
.screen-play .hud{
  margin:0;
  gap:6px;
  flex:0 0 auto;
}
.screen-play .sub-hud{
  margin:0;
  gap:6px;
  flex:0 0 auto;
}
.screen-play .hud-chip{
  padding:5px 8px;
  border-radius:11px;
  font-size:11px;
  line-height:1.15;
}
.screen-play .combo-chip b{font-size:16px}
.screen-play .combo-chip small{font-size:9px}
.screen-play .life-row{
  font-size:10px;
  letter-spacing:.03em;
}
.screen-play .player-mini{font-size:10px}
.screen-play .quiet-row{
  flex:0 0 auto;
  padding:5px 7px;
  gap:6px;
  border-radius:11px;
}
.screen-play .quiet-copy span{font-size:9px}
.screen-play .quiet-copy strong{font-size:11px}
.screen-play .quiet-track{height:7px}
.screen-play .mushin-badge{
  padding:3px 6px;
  font-size:9px;
}
.screen-play .stage-banner{
  flex:0 0 auto;
  padding:3px 8px;
}
.screen-play .stage-banner small{font-size:8px}
.screen-play .stage-banner strong{
  font-size:15px;
  line-height:1.1;
}
.screen-play .target-wrap{
  flex:0 0 auto;
  margin-top:1px;
}
.screen-play .target-label{
  font-size:10px;
  line-height:1.1;
}
.screen-play .target-number{
  font-size:clamp(48px,14vw,72px);
  line-height:.88;
}
.screen-play .target-number small{
  font-size:.21em;
  margin-left:4px;
}
.screen-play .gimmick-row{
  gap:3px;
  margin-top:4px;
  min-height:18px;
}
.screen-play .gimmick-row span{
  padding:3px 6px;
  font-size:8px;
  line-height:1;
}
.screen-play .meter-zone{
  flex:1 1 auto;
  min-height:78px;
  align-content:center;
  gap:3px;
}
.screen-play .meter-shell{
  min-width:52%;
  max-width:100%;
}
.screen-play .meter-track{
  height:46px;
}
.screen-play .meter-track .meter-line{
  height:11px;
}
.screen-play .meter-track .meter-cursor{
  top:5px;
  height:36px;
  width:5px;
}
.screen-play .blind-zone{
  top:14px;
  height:18px;
}
.screen-play .meter-labels{
  height:18px;
  margin-top:-2px;
}
.screen-play .meter-labels span{
  font-size:10px;
  line-height:1;
}
.screen-play .stop-btn{
  flex:0 0 auto;
  min-height:68px;
  height:clamp(68px,10dvh,82px);
  border-radius:19px;
  font-size:clamp(29px,8vw,42px);
  box-shadow:0 6px 0 #66451c,0 11px 24px rgba(0,0,0,.26);
}
.screen-play .countdown-overlay{
  border-radius:22px;
}

@media(max-height:700px){
  .pitadome-app.screen-play{padding-top:4px;padding-bottom:4px}
  .screen-play .top-nav{margin-bottom:3px}
  .screen-play .nav-pill{min-height:30px;padding:4px 8px;font-size:10px}
  .screen-play .play-panel{padding:6px 8px 8px;gap:3px}
  .screen-play .hud-chip{padding:4px 6px;font-size:10px}
  .screen-play .quiet-row{padding:4px 6px}
  .screen-play .stage-banner{padding:2px 6px}
  .screen-play .stage-banner strong{font-size:13px}
  .screen-play .target-label{font-size:9px}
  .screen-play .target-number{font-size:clamp(42px,12vw,58px)}
  .screen-play .gimmick-row{margin-top:2px;min-height:15px}
  .screen-play .gimmick-row span{padding:2px 5px;font-size:7px}
  .screen-play .meter-zone{min-height:66px}
  .screen-play .meter-track{height:39px}
  .screen-play .meter-track .meter-cursor{height:31px;top:4px}
  .screen-play .blind-zone{top:12px;height:15px}
  .screen-play .meter-labels{height:15px}
  .screen-play .stop-btn{
    min-height:58px;
    height:58px;
    font-size:29px;
    border-radius:16px;
  }
}


/* Result/final screens: one viewport + stronger primary actions 2026-10-10 */
.pitadome-app.screen-roundResult,
.pitadome-app.screen-final{
  height:100vh;
  height:100dvh;
  min-height:0;
  overflow:hidden;
  padding:5px 8px max(6px,env(safe-area-inset-bottom));
  display:grid;
  grid-template-rows:auto auto minmax(0,1fr) auto;
  gap:5px;
}
.screen-roundResult .top-nav,
.screen-final .top-nav{
  margin:0;
  gap:6px;
}
.screen-roundResult .nav-pill,
.screen-final .nav-pill{
  min-height:34px;
  padding:6px 10px;
  font-size:11px;
}
.screen-roundResult .screen-heading,
.screen-final .screen-heading{
  margin:0;
}
.screen-roundResult .screen-heading h1,
.screen-final .screen-heading h1{
  margin:0 0 2px;
  font-size:clamp(25px,7vw,34px);
  line-height:1.05;
}
.screen-roundResult .screen-heading p,
.screen-final .screen-heading p{
  font-size:11px;
  line-height:1.2;
}
.screen-roundResult .result-card,
.screen-final .final-card{
  min-height:0;
  height:100%;
  overflow:hidden;
  margin:0;
  padding:10px 11px;
  border-radius:20px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.screen-roundResult .result-kicker,
.screen-final .result-kicker{
  font-size:10px;
  line-height:1;
}
.screen-roundResult .hit-word{
  margin:4px 0 0;
  font-size:clamp(30px,9vw,46px);
  line-height:.95;
}
.screen-roundResult .tier-perfect .hit-word{
  font-size:clamp(36px,11vw,54px);
}
.screen-roundResult .combo-result{
  margin:5px auto 0;
  padding:4px 8px;
  font-size:13px;
}
.screen-roundResult .result-main{
  margin:4px 0 2px;
  font-size:clamp(45px,13vw,65px);
  line-height:.92;
}
.screen-roundResult .bonus-line{
  margin:0 0 4px;
  font-size:9px;
}
.screen-roundResult .result-stats{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:5px;
  margin:6px 0 0;
}
.screen-roundResult .result-stat{
  min-width:0;
  padding:7px 3px;
  border-radius:11px;
}
.screen-roundResult .result-stat small{
  font-size:9px;
}
.screen-roundResult .result-stat strong{
  margin-top:1px;
  font-size:17px;
}
.screen-roundResult .bonus-notice,
.screen-roundResult .note{
  margin:4px 0 0;
  padding:5px 7px;
  border-radius:9px;
  font-size:9px;
  line-height:1.2;
}
.screen-roundResult > .btn,
.screen-final [data-replay]{
  min-height:52px;
  padding:9px 12px;
  border-radius:16px;
  background:linear-gradient(180deg,#ffe873,#ffb31f);
  color:#241800;
  box-shadow:0 5px 0 #b86d08,0 9px 18px rgba(0,0,0,.20);
  font-size:18px;
}
.screen-roundResult > .btn:disabled{
  opacity:.78;
  background:linear-gradient(180deg,#ffe873,#ffb31f);
  color:#3a2600;
  box-shadow:0 4px 0 #b86d08,0 7px 15px rgba(0,0,0,.16);
}
.screen-final .new-record{
  margin-bottom:4px;
  padding:4px 8px;
  font-size:10px;
}
.screen-final .final-score{
  margin:4px 0 6px;
  font-size:clamp(52px,15vw,76px);
  line-height:.9;
}
.screen-final .record-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:5px;
  margin:6px 0 0;
}
.screen-final .record-box{
  min-width:0;
  padding:7px 3px;
  border-radius:11px;
}
.screen-final .record-box small{
  font-size:8px;
  line-height:1.05;
}
.screen-final .record-box strong{
  margin-top:2px;
  font-size:15px;
  line-height:1.05;
}
.screen-final > .stack{
  grid-template-columns:1fr 1fr;
  gap:6px;
}
.screen-final > .stack .btn{
  min-height:43px;
  padding:7px 9px;
  border-radius:13px;
  font-size:13px;
}
.screen-final > .stack [data-replay]{
  grid-column:1/-1;
  min-height:50px;
  font-size:17px;
}
.screen-final > .stack [data-home]{
  grid-column:1/-1;
}
@media(max-height:700px){
  .pitadome-app.screen-roundResult,
  .pitadome-app.screen-final{
    padding-top:3px;
    padding-bottom:3px;
    gap:3px;
  }
  .screen-roundResult .nav-pill,
  .screen-final .nav-pill{
    min-height:30px;
    padding:4px 8px;
    font-size:10px;
  }
  .screen-roundResult .screen-heading h1,
  .screen-final .screen-heading h1{
    font-size:23px;
  }
  .screen-roundResult .screen-heading p,
  .screen-final .screen-heading p{
    font-size:9px;
  }
  .screen-roundResult .result-card,
  .screen-final .final-card{
    padding:7px 8px;
  }
  .screen-roundResult .hit-word{
    font-size:29px;
  }
  .screen-roundResult .result-main{
    font-size:43px;
  }
  .screen-roundResult .result-stat{
    padding:5px 2px;
  }
  .screen-roundResult .bonus-notice,
  .screen-roundResult .note{
    padding:4px 5px;
    font-size:8px;
  }
  .screen-roundResult > .btn{
    min-height:46px;
    font-size:16px;
  }
  .screen-final .final-score{
    font-size:48px;
    margin:2px 0 4px;
  }
  .screen-final .record-box{
    padding:5px 2px;
  }
  .screen-final > .stack{
    gap:4px;
  }
  .screen-final > .stack .btn{
    min-height:38px;
    padding:5px 7px;
    font-size:12px;
  }
  .screen-final > .stack [data-replay]{
    min-height:44px;
    font-size:15px;
  }
}


/* Primary action buttons: bright yellow 2026-10-10 */
.pitadome-app [data-start-title],
.pitadome-app [data-next-round],
.pitadome-app [data-replay]{
  background:linear-gradient(180deg,#fff58a 0%,#ffd84f 46%,#ffbd1f 100%) !important;
  color:#241700 !important;
  border:1px solid rgba(255,245,170,.95) !important;
  box-shadow:0 5px 0 #c97908,0 9px 20px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.75) !important;
  text-shadow:0 1px 0 rgba(255,255,255,.35);
}
.pitadome-app [data-start-title]:active,
.pitadome-app [data-next-round]:active,
.pitadome-app [data-replay]:active{
  transform:translateY(3px);
  background:linear-gradient(180deg,#ffe96d 0%,#ffc935 52%,#f6a900 100%) !important;
  box-shadow:0 2px 0 #b96d05,0 5px 12px rgba(0,0,0,.18) !important;
}
.pitadome-app [data-next-round]:disabled{
  opacity:.96 !important;
  background:linear-gradient(180deg,#fff1a0 0%,#ffdc67 50%,#ffc33a 100%) !important;
  color:#3a2700 !important;
  box-shadow:0 4px 0 #ca850f,0 7px 16px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.65) !important;
}


/* Large-number emphasis while keeping one-screen layout 2026-10-10 */
/* プレイ中：余白は残しつつ、狙う数字を主役に戻す */
.screen-play .target-number{
  font-size:clamp(72px,20vw,104px);
  line-height:.84;
  letter-spacing:-.025em;
}
.screen-play .target-number small{
  font-size:.18em;
  margin-left:5px;
}
.screen-play .target-label{
  font-size:12px;
}
.screen-play .meter-labels span{
  font-size:13px;
}
.screen-play .combo-chip b{
  font-size:19px;
}
.screen-play .quiet-copy strong{
  font-size:13px;
}

/* ラウンド結果：以前の迫力を戻す */
.screen-roundResult .hit-word{
  margin:4px 0 1px;
  font-size:clamp(42px,11vw,62px);
  line-height:.92;
}
.screen-roundResult .tier-perfect .hit-word{
  font-size:clamp(50px,13vw,72px);
}
.screen-roundResult .result-main{
  margin:5px 0 4px;
  font-size:clamp(68px,18vw,96px);
  line-height:.86;
}
.screen-roundResult .result-main small{
  font-size:.24em;
}
.screen-roundResult .result-kicker{
  font-size:12px;
}
.screen-roundResult .result-stats{
  margin-top:9px;
}
.screen-roundResult .result-stat{
  padding:9px 4px;
}
.screen-roundResult .result-stat small{
  font-size:10px;
}
.screen-roundResult .result-stat strong{
  margin-top:2px;
  font-size:clamp(20px,5.8vw,28px);
}
.screen-roundResult .combo-result{
  font-size:15px;
  padding:5px 10px;
}

/* 最終結果：TOTAL SCOREをしっかり大きく */
.screen-final .result-kicker{
  font-size:13px;
}
.screen-final .final-score{
  margin:6px 0 10px;
  font-size:clamp(84px,23vw,120px);
  line-height:.82;
  letter-spacing:-.035em;
}
.screen-final .record-grid{
  margin-top:10px;
  gap:6px;
}
.screen-final .record-box{
  padding:9px 4px;
}
.screen-final .record-box small{
  font-size:9px;
}
.screen-final .record-box strong{
  margin-top:3px;
  font-size:clamp(18px,5vw,24px);
}

/* 小さい画面でも数字を縮めすぎない。代わりに周辺余白を削る */
@media(max-height:700px){
  .screen-play .target-number{
    font-size:clamp(62px,18vw,82px);
  }
  .screen-play .target-label{
    font-size:10px;
  }
  .screen-play .meter-labels span{
    font-size:11px;
  }
  .screen-roundResult .result-card,
  .screen-final .final-card{
    padding-top:5px;
    padding-bottom:5px;
  }
  .screen-roundResult .hit-word{
    font-size:38px;
  }
  .screen-roundResult .tier-perfect .hit-word{
    font-size:46px;
  }
  .screen-roundResult .result-main{
    font-size:60px;
  }
  .screen-roundResult .result-stat strong{
    font-size:18px;
  }
  .screen-final .final-score{
    font-size:72px;
    margin:3px 0 6px;
  }
  .screen-final .record-box{
    padding-top:5px;
    padding-bottom:5px;
  }
  .screen-final .record-box strong{
    font-size:17px;
  }
}


/*爽快ヒット演出 2026-10-10 */
.pitadome-app.screen-roundResult{
  position:relative;
  isolation:isolate;
}
.pitadome-app.screen-roundResult> *{
  position:relative;
  z-index:2;
}
.pitadome-app.screen-roundResult::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  opacity:0;
}
.pitadome-app.screen-roundResult.tier-screen-perfect::before{
  background:
    radial-gradient(circle at 50% 43%,rgba(255,255,235,.96) 0 7%,rgba(255,225,120,.70) 17%,rgba(255,187,45,.20) 38%,transparent 63%),
    linear-gradient(110deg,transparent 32%,rgba(255,255,220,.50) 49%,transparent 65%);
  animation:fullPerfectFlash .92s ease-out;
}
.pitadome-app.screen-roundResult.tier-screen-excellent::before{
  background:radial-gradient(circle at 50% 43%,rgba(255,244,190,.72),rgba(255,189,55,.18) 35%,transparent 62%);
  animation:fullExcellentFlash .72s ease-out;
}
.pitadome-app.screen-roundResult.tier-screen-great::before{
  background:radial-gradient(circle at 50% 43%,rgba(255,225,150,.40),transparent 55%);
  animation:fullGreatFlash .58s ease-out;
}
.tier-screen-perfect .result-card{
  animation:impactShakeStrong .52s cubic-bezier(.22,.9,.26,1);
  box-shadow:0 0 0 2px rgba(255,226,139,.42),0 0 42px rgba(255,190,55,.34),var(--shadow);
}
.tier-screen-excellent .result-card{
  animation:impactShake .42s ease-out;
  box-shadow:0 0 32px rgba(255,191,62,.24),var(--shadow);
}
.tier-screen-great .result-card{
  animation:impactNudge .36s ease-out;
}
.hit-fx{
  overflow:hidden;
}
.impact-rays,
.spark-burst,
.petal-burst{
  position:absolute;
  left:50%;
  top:39%;
  width:1px;
  height:1px;
}
.impact-ray{
  --angle:calc(var(--i) * 20deg);
  position:absolute;
  left:0;
  top:0;
  width:4px;
  height:105px;
  border-radius:999px;
  background:linear-gradient(to top,rgba(255,255,255,0),rgba(255,244,190,.95),rgba(255,190,48,0));
  transform-origin:2px 4px;
  opacity:0;
  animation:rayBurst .62s ease-out both;
  animation-delay:calc(var(--i) * 4ms);
}
.tier-excellent .impact-ray{height:80px;opacity:.75}
.tier-great .impact-ray{height:62px}
.hit-ring{
  position:absolute;
  left:50%;
  top:39%;
  border:4px solid rgba(255,239,172,.92);
  border-radius:50%;
  opacity:0;
  pointer-events:none;
}
.ring-a{
  width:70px;
  height:70px;
  animation:ringBurstA .72s ease-out;
}
.ring-b{
  width:44px;
  height:44px;
  border-width:2px;
  border-color:rgba(255,255,235,.88);
  animation:ringBurstB .82s .06s ease-out;
}
.spark-piece{
  --angle:calc(var(--i) * 20deg);
  position:absolute;
  width:8px;
  height:28px;
  border-radius:999px;
  background:linear-gradient(#fffbd8,#ffc43d 58%,#d7820b);
  box-shadow:0 0 10px rgba(255,216,90,.70);
  transform-origin:4px 3px;
  opacity:0;
  animation:sparkBlast .82s ease-out both;
  animation-delay:calc(var(--i) * 6ms);
}
.petal-piece{
  --angle:calc(var(--i) * 17deg);
  position:absolute;
  width:10px;
  height:6px;
  border-radius:80% 20% 70% 30%;
  background:linear-gradient(135deg,#fff0ef,#f4a8bb);
  box-shadow:0 0 7px rgba(255,209,219,.55);
  opacity:0;
  animation:petalBlast 1.05s ease-out both;
  animation-delay:calc(var(--i) * 9ms);
}
.tier-excellent .petal-piece:nth-child(n+13),
.tier-great .petal-piece:nth-child(n+9){
  display:none;
}
.score-slam{
  transform-origin:center;
  animation:scoreSlam .55s .06s cubic-bezier(.18,1.6,.35,1) both;
}
.tier-perfect .score-slam{
  text-shadow:0 0 14px rgba(255,255,220,.92),0 0 34px rgba(255,201,78,.70),0 5px 18px rgba(0,0,0,.35);
}
.combo-result.combo-hot{
  animation:comboPulse .58s ease-out;
  box-shadow:0 0 18px rgba(255,203,76,.24);
}
.combo-result.combo-fever{
  color:#fff4bf;
  border-color:rgba(255,226,115,.82);
  background:linear-gradient(90deg,rgba(141,83,14,.62),rgba(255,201,57,.34),rgba(141,83,14,.62));
  box-shadow:0 0 26px rgba(255,197,48,.42);
  animation:comboBurst .78s cubic-bezier(.2,1.45,.3,1);
}
.combo-result.combo-fever b{
  color:#ffd64c;
  letter-spacing:.05em;
}
.final-new-record .final-card{
  position:relative;
  overflow:hidden;
  box-shadow:0 0 0 2px rgba(255,223,120,.35),0 0 38px rgba(255,190,50,.28),var(--shadow);
}
.final-new-record .final-card::before{
  content:"";
  position:absolute;
  inset:-30%;
  background:linear-gradient(115deg,transparent 38%,rgba(255,255,220,.38) 49%,transparent 60%);
  transform:translateX(-65%);
  animation:recordSweep 1.05s .12s ease-out both;
  pointer-events:none;
}
.final-new-record .final-score{
  animation:recordScorePop .72s cubic-bezier(.16,1.5,.32,1);
  text-shadow:0 0 18px rgba(255,224,119,.52),0 5px 18px rgba(0,0,0,.30);
}
@keyframes fullPerfectFlash{
  0%{opacity:0}
  8%{opacity:1}
  22%{opacity:.18}
  34%{opacity:.82}
  100%{opacity:0}
}
@keyframes fullExcellentFlash{
  0%{opacity:0}
  14%{opacity:.82}
  100%{opacity:0}
}
@keyframes fullGreatFlash{
  0%{opacity:0}
  18%{opacity:.52}
  100%{opacity:0}
}
@keyframes impactShakeStrong{
  0%{transform:translate3d(0,0,0) scale(.985)}
  18%{transform:translate3d(-5px,2px,0) scale(1.012)}
  34%{transform:translate3d(5px,-2px,0) scale(1.006)}
  50%{transform:translate3d(-3px,1px,0)}
  68%{transform:translate3d(2px,-1px,0)}
  100%{transform:translate3d(0,0,0) scale(1)}
}
@keyframes impactShake{
  0%{transform:translateX(0)}
  28%{transform:translateX(-3px)}
  52%{transform:translateX(3px)}
  76%{transform:translateX(-1px)}
  100%{transform:translateX(0)}
}
@keyframes impactNudge{
  0%{transform:scale(.99)}
  45%{transform:scale(1.008)}
  100%{transform:scale(1)}
}
@keyframes rayBurst{
  0%{opacity:0;transform:rotate(var(--angle)) translateY(-14px) scaleY(.15)}
  18%{opacity:1}
  100%{opacity:0;transform:rotate(var(--angle)) translateY(-96px) scaleY(1.35)}
}
@keyframes ringBurstA{
  0%{opacity:1;transform:translate(-50%,-50%) scale(.18)}
  100%{opacity:0;transform:translate(-50%,-50%) scale(6.2)}
}
@keyframes ringBurstB{
  0%{opacity:.95;transform:translate(-50%,-50%) scale(.2)}
  100%{opacity:0;transform:translate(-50%,-50%) scale(8)}
}
@keyframes sparkBlast{
  0%{opacity:1;transform:rotate(var(--angle)) translateY(-16px) scale(.35)}
  55%{opacity:1}
  100%{opacity:0;transform:rotate(var(--angle)) translateY(-145px) scale(1.05)}
}
@keyframes petalBlast{
  0%{opacity:0;transform:rotate(var(--angle)) translateY(-18px) rotate(0deg) scale(.4)}
  16%{opacity:1}
  100%{opacity:0;transform:rotate(var(--angle)) translateY(-160px) rotate(270deg) scale(1)}
}
@keyframes scoreSlam{
  0%{opacity:0;transform:scale(1.65)}
  55%{opacity:1;transform:scale(.92)}
  78%{transform:scale(1.08)}
  100%{opacity:1;transform:scale(1)}
}
@keyframes comboPulse{
  0%{transform:scale(.82);opacity:.45}
  65%{transform:scale(1.08);opacity:1}
  100%{transform:scale(1)}
}
@keyframes comboBurst{
  0%{transform:scale(.68);opacity:0}
  48%{transform:scale(1.14);opacity:1}
  70%{transform:scale(.97)}
  100%{transform:scale(1)}
}
@keyframes recordSweep{
  0%{transform:translateX(-70%)}
  100%{transform:translateX(70%)}
}
@keyframes recordScorePop{
  0%{opacity:.2;transform:scale(.68)}
  62%{opacity:1;transform:scale(1.09)}
  100%{transform:scale(1)}
}
@media(prefers-reduced-motion:reduce){
  .pitadome-app.screen-roundResult::before,
  .tier-screen-perfect .result-card,
  .tier-screen-excellent .result-card,
  .tier-screen-great .result-card,
  .impact-ray,.ring-a,.ring-b,.spark-piece,.petal-piece,
  .score-slam,.combo-result.combo-hot,.combo-result.combo-fever,
  .final-new-record .final-card::before,.final-new-record .final-score{
    animation:none!important;
  }
}


/* Numbers-first layout 2026-10-10 */
/* プレイ中：目標数字を最優先で大きく */
.screen-play .target-number{
  font-size:clamp(88px,24vw,128px);
  line-height:.78;
  margin-top:3px;
  letter-spacing:-.04em;
}
.screen-play .target-number small{
  font-size:.16em;
  margin-left:6px;
}
.screen-play .target-label{
  font-size:13px;
  margin-bottom:2px;
}
.screen-play .meter-labels span{
  font-size:15px;
}

/* ラウンド結果：獲得点数を主役に、4項目は2×2 */
.screen-roundResult .result-card{
  justify-content:center;
  padding:9px 12px 10px;
}
.screen-roundResult .hit-word{
  font-size:clamp(46px,12vw,68px);
  margin:3px 0 1px;
}
.screen-roundResult .tier-perfect .hit-word{
  font-size:clamp(56px,14vw,80px);
}
.screen-roundResult .result-main{
  font-size:clamp(92px,25vw,138px);
  line-height:.78;
  margin:7px 0 5px;
  letter-spacing:-.045em;
}
.screen-roundResult .result-main small{
  font-size:.19em;
  margin-left:5px;
}
.screen-roundResult .result-stats{
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:repeat(2,minmax(0,1fr));
  gap:8px;
  margin:10px 0 0;
}
.screen-roundResult .result-stat{
  min-height:82px;
  padding:9px 6px;
  border-radius:16px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.screen-roundResult .result-stat small{
  font-size:13px;
  line-height:1;
}
.screen-roundResult .result-stat strong{
  margin-top:5px;
  font-size:clamp(30px,8vw,44px);
  line-height:.95;
}
.screen-roundResult .result-kicker{
  font-size:13px;
}
.screen-roundResult .combo-result{
  margin-top:5px;
}

/* 最終結果：TOTAL SCOREを最大、4項目を2×2 */
.screen-final .final-card{
  justify-content:center;
  padding:10px 12px;
}
.screen-final .result-kicker{
  font-size:15px;
  margin-bottom:3px;
}
.screen-final .final-score{
  font-size:clamp(112px,30vw,170px);
  line-height:.74;
  margin:8px 0 12px;
  letter-spacing:-.055em;
}
.screen-final .record-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:repeat(2,minmax(0,1fr));
  gap:8px;
  margin:8px 0 0;
}
.screen-final .record-box{
  min-height:78px;
  padding:8px 6px;
  border-radius:16px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.screen-final .record-box small{
  font-size:12px;
  line-height:1;
}
.screen-final .record-box strong{
  margin-top:5px;
  font-size:clamp(26px,7vw,40px);
  line-height:.95;
}

/* 1画面に収めるため、周辺UIだけを圧縮 */
.screen-roundResult .screen-heading,
.screen-final .screen-heading{
  margin:0;
}
.screen-roundResult .screen-heading h1,
.screen-final .screen-heading h1{
  font-size:clamp(22px,6vw,30px);
}
.screen-roundResult .screen-heading p,
.screen-final .screen-heading p{
  font-size:10px;
}
.screen-final > .stack{
  gap:5px;
}
.screen-final > .stack .btn{
  min-height:39px;
  padding:6px 8px;
  font-size:12px;
}
.screen-final > .stack [data-replay]{
  min-height:47px;
  font-size:16px;
}
.screen-roundResult > .btn{
  min-height:49px;
  font-size:17px;
}

@media(max-height:760px){
  .screen-play .target-number{
    font-size:clamp(78px,22vw,108px);
  }
  .screen-roundResult .hit-word{
    font-size:40px;
  }
  .screen-roundResult .tier-perfect .hit-word{
    font-size:48px;
  }
  .screen-roundResult .result-main{
    font-size:clamp(80px,22vw,112px);
  }
  .screen-roundResult .result-stat{
    min-height:68px;
    padding:7px 4px;
  }
  .screen-roundResult .result-stat small{
    font-size:11px;
  }
  .screen-roundResult .result-stat strong{
    font-size:clamp(27px,7vw,36px);
  }
  .screen-final .final-score{
    font-size:clamp(98px,27vw,138px);
    margin:5px 0 8px;
  }
  .screen-final .record-box{
    min-height:64px;
    padding:6px 4px;
  }
  .screen-final .record-box small{
    font-size:10px;
  }
  .screen-final .record-box strong{
    font-size:clamp(23px,6.5vw,32px);
  }
}

@media(max-height:680px){
  .screen-roundResult .result-main{
    font-size:74px;
  }
  .screen-roundResult .result-stat{
    min-height:58px;
  }
  .screen-final .final-score{
    font-size:88px;
  }
  .screen-final .record-box{
    min-height:56px;
  }
}


/* Easy mode UI 2026-10-10 */
.easy-mode-card{
  border-color:rgba(255,226,116,.62);
  background:linear-gradient(180deg,rgba(64,51,18,.88),rgba(8,22,34,.90));
}
.easy-mode-card strong{
  color:#fff0a9;
}
.easy-mode-card .mode-badge{
  background:rgba(255,222,105,.18);
  border-color:rgba(255,226,116,.48);
  color:#fff0b1;
}
.easy-badge{
  background:linear-gradient(180deg,#fff7a8,#ffd95b)!important;
  border-color:#ffe887!important;
  color:#2c2000!important;
}
.easy-meter-labels{
  height:22px;
}
.easy-meter-labels span{
  font-size:9px;
  color:#fff4bf;
  text-shadow:0 1px 3px rgba(0,0,0,.7);
  transform:translateX(-50%)!important;
}
.easy-meter-labels span:last-child{
  transform:translateX(-100%)!important;
}
.easy-meter-labels span::before{
  content:"";
  position:absolute;
  left:50%;
  top:-9px;
  width:1px;
  height:6px;
  background:rgba(255,240,178,.55);
}
.difficulty-tabs{
  margin-top:-3px;
}
@media(max-width:390px){
  .easy-meter-labels span{
    font-size:8px;
  }
}
@media(max-height:700px){
  .screen-play .easy-meter-labels{
    height:16px;
  }
  .screen-play .easy-meter-labels span{
    font-size:7px;
  }
}


/* Pitadome stability fixes 2026-10-10 */
/* 中断確認はどの画面でも必ず全画面を覆う */
.leave-confirm{
  position:fixed!important;
  inset:0!important;
  width:100vw;
  height:100vh;
  height:100dvh;
  border-radius:0!important;
  z-index:9999!important;
  padding:16px;
  background:rgba(2,10,17,.84)!important;
}

/* 新しい火花演出が旧 .spark-burst i より確実に優先されるようにする */
.spark-burst .spark-piece{
  --angle:calc(var(--i) * 20deg);
  position:absolute;
  width:8px;
  height:28px;
  border-radius:999px;
  background:linear-gradient(#fffbd8,#ffc43d 58%,#d7820b);
  box-shadow:0 0 10px rgba(255,216,90,.70);
  transform-origin:4px 3px;
  opacity:0;
  animation:sparkBlast .82s ease-out both;
  animation-delay:calc(var(--i) * 6ms);
}

/* かんたんモードの10刻み目盛りは小画面でも潰れにくくする */
.screen-play .easy-meter-labels{
  width:100%;
}
@media(max-width:360px){
  .screen-play .easy-meter-labels span{
    font-size:7px;
  }
  .screen-play .easy-meter-labels span::before{
    height:5px;
  }
}

/* 結果画面で複数ボーナスが重なっても1画面内に残す */
@media(max-height:760px){
  .screen-roundResult .bonus-notice,
  .screen-roundResult .note{
    padding:4px 6px;
    margin-top:3px;
    font-size:8px;
    line-height:1.1;
  }
}


/* Action position + unified yellow buttons 2026-10-10 */
/* STOP / 次のラウンドへ / もう一度 / スタートを同じ明るい黄色に統一 */
.pitadome-app [data-stop],
.pitadome-app [data-start-title],
.pitadome-app [data-next-round],
.pitadome-app [data-replay]{
  background:linear-gradient(180deg,#fff78f 0%,#ffe04d 42%,#ffc21f 76%,#f2a400 100%) !important;
  color:#211500 !important;
  border:2px solid #fff0a8 !important;
  box-shadow:
    0 7px 0 #b86d05,
    0 12px 24px rgba(0,0,0,.24),
    inset 0 2px 0 rgba(255,255,255,.78) !important;
  text-shadow:0 1px 0 rgba(255,255,255,.38);
}
.pitadome-app [data-stop]:active,
.pitadome-app [data-start-title]:active,
.pitadome-app [data-next-round]:active,
.pitadome-app [data-replay]:active{
  transform:translateY(4px);
  background:linear-gradient(180deg,#ffed69 0%,#ffd02d 50%,#f5aa00 100%) !important;
  box-shadow:
    0 3px 0 #a85f03,
    0 7px 16px rgba(0,0,0,.20) !important;
}
.pitadome-app [data-stop]:disabled,
.pitadome-app [data-next-round]:disabled{
  opacity:.96 !important;
  background:linear-gradient(180deg,#fff7a4 0%,#ffe36a 50%,#ffc83d 100%) !important;
  color:#2d1d00 !important;
  border-color:#fff0ad !important;
}

/* プレイ画面：ゲージ下の空白をボタンの下へ回し、STOPを大きく上へ */
.screen-play .meter-zone{
  flex:0 0 auto;
  min-height:0;
  margin-top:auto;
  margin-bottom:0;
  padding-top:clamp(24px,4dvh,46px);
}
.screen-play .stop-btn{
  flex:0 0 auto;
  width:100%;
  min-height:82px;
  height:clamp(82px,10dvh,96px);
  margin-top:clamp(54px,8dvh,92px);
  margin-bottom:auto;
  border-radius:24px;
  font-size:clamp(38px,10vw,54px);
}

/* 結果画面：カードを必要以上に縦へ伸ばさず、次ボタンを上へ */
.pitadome-app.screen-roundResult{
  grid-template-rows:auto auto auto auto;
  align-content:start;
}
.screen-roundResult .result-card{
  height:auto;
  max-height:none;
  min-height:0;
  justify-content:center;
}
.screen-roundResult > [data-next-round]{
  width:100%;
  min-height:68px;
  margin-top:14px;
  margin-bottom:auto;
  border-radius:20px;
  font-size:clamp(20px,5.5vw,28px);
}

/* 低い画面でも位置を下げすぎない */
@media(max-height:760px){
  .screen-play .meter-zone{
    padding-top:18px;
  }
  .screen-play .stop-btn{
    min-height:72px;
    height:72px;
    margin-top:42px;
    font-size:36px;
  }
  .screen-roundResult > [data-next-round]{
    min-height:58px;
    margin-top:10px;
    font-size:18px;
  }
}
@media(max-height:680px){
  .screen-play .stop-btn{
    min-height:64px;
    height:64px;
    margin-top:30px;
    font-size:32px;
  }
  .screen-roundResult > [data-next-round]{
    min-height:52px;
    margin-top:8px;
    font-size:17px;
  }
}


/* Unified play/result geometry 2026-10-10 */
.pitadome-app{
  --pita-action-h:84px;
  --pita-meter-track-h:54px;
  --pita-meter-line-h:12px;
  --pita-meter-label-h:26px;
}

/* 10ラウンド / エンドレス / かんたん / 通常でプレイ画面の縦位置を完全共通化 */
.screen-play .play-panel{
  display:grid;
  grid-template-rows:
    auto
    auto
    auto
    38px
    178px
    118px
    var(--pita-action-h)
    minmax(0,1fr);
  gap:4px;
  align-content:stretch;
}
.screen-play .hud,
.screen-play .sub-hud,
.screen-play .quiet-row{
  margin:0;
}
.screen-play .stage-banner{
  box-sizing:border-box;
  height:38px;
  min-height:38px;
  padding:3px 8px;
  display:grid;
  align-content:center;
  overflow:hidden;
}
.screen-play .stage-banner.is-placeholder{
  visibility:hidden;
}
.screen-play .stage-banner small{
  line-height:1;
}
.screen-play .stage-banner strong{
  line-height:1.05;
}
.screen-play .target-wrap{
  height:178px;
  min-height:178px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  align-items:center;
  overflow:visible;
  padding-top:5px;
}
.screen-play .target-label{
  flex:0 0 auto;
}
.screen-play .target-number{
  flex:0 0 auto;
}
.screen-play .gimmick-row{
  flex:0 0 22px;
  min-height:22px;
  margin-top:5px;
  align-items:center;
}
.screen-play .meter-zone{
  box-sizing:border-box;
  height:118px;
  min-height:118px;
  margin:0;
  padding:12px 0 0;
  display:grid;
  place-items:start center;
  align-content:start;
  overflow:visible;
}
.screen-play .meter-shell{
  box-sizing:border-box;
  height:calc(var(--pita-meter-track-h) + var(--pita-meter-label-h));
  min-height:calc(var(--pita-meter-track-h) + var(--pita-meter-label-h));
}
.screen-play .meter-track{
  height:var(--pita-meter-track-h);
  min-height:var(--pita-meter-track-h);
}
.screen-play .meter-track .meter-line{
  height:var(--pita-meter-line-h);
}
.screen-play .meter-track .meter-cursor{
  top:3px;
  height:48px;
  width:6px;
}
.screen-play .blind-zone{
  top:16px;
  height:22px;
}
.screen-play .meter-labels,
.screen-play .easy-meter-labels{
  height:var(--pita-meter-label-h)!important;
  min-height:var(--pita-meter-label-h)!important;
  margin-top:0;
}
.screen-play .meter-labels span{
  font-size:13px;
  line-height:1;
}
.screen-play .easy-meter-labels span{
  font-size:9px;
}
.screen-play .stop-btn{
  box-sizing:border-box;
  width:100%;
  height:var(--pita-action-h)!important;
  min-height:var(--pita-action-h)!important;
  max-height:var(--pita-action-h)!important;
  margin:0!important;
  align-self:start;
  border-radius:24px;
  font-size:clamp(38px,10vw,54px);
}

/* ラウンド結果も全モードで同じカード位置・同じ主ボタン高さ */
.pitadome-app.screen-roundResult{
  --pita-result-card-h:min(57dvh,470px);
  grid-template-rows:auto auto var(--pita-result-card-h) var(--pita-action-h) minmax(0,1fr);
  gap:6px;
  align-content:stretch;
}
.screen-roundResult .result-card{
  box-sizing:border-box;
  width:100%;
  height:var(--pita-result-card-h)!important;
  min-height:var(--pita-result-card-h)!important;
  max-height:var(--pita-result-card-h)!important;
  margin:0;
  overflow:hidden;
}
.screen-roundResult > [data-next-round]{
  box-sizing:border-box;
  width:100%;
  height:var(--pita-action-h)!important;
  min-height:var(--pita-action-h)!important;
  max-height:var(--pita-action-h)!important;
  margin:0!important;
  border-radius:24px;
  font-size:clamp(21px,5.8vw,29px);
}

/* 「もう一度！」も同じ主ボタン規格 */
.screen-final > .stack [data-replay],
.pitadome-app [data-start-title]{
  box-sizing:border-box;
  height:var(--pita-action-h)!important;
  min-height:var(--pita-action-h)!important;
  max-height:var(--pita-action-h)!important;
}

/* 主ボタンはすべて同一の黄色 */
.pitadome-app [data-stop],
.pitadome-app [data-start-title],
.pitadome-app [data-next-round],
.pitadome-app [data-replay]{
  background:linear-gradient(180deg,#fff98f 0%,#ffe34d 40%,#ffc31f 74%,#f3a300 100%)!important;
  border:2px solid #fff2ad!important;
  color:#201400!important;
  box-shadow:
    0 7px 0 #b96c04,
    0 11px 22px rgba(0,0,0,.24),
    inset 0 2px 0 rgba(255,255,255,.82)!important;
}
.pitadome-app [data-stop]:disabled,
.pitadome-app [data-next-round]:disabled{
  opacity:.97!important;
  background:linear-gradient(180deg,#fff9a2 0%,#ffe66b 48%,#ffc63c 100%)!important;
}

/* 低いスマホでも全モード同じ比率で縮小し、スクロールさせない */
@media(max-height:760px){
  .pitadome-app{
    --pita-action-h:72px;
    --pita-meter-track-h:50px;
    --pita-meter-label-h:24px;
  }
  .screen-play .play-panel{
    grid-template-rows:auto auto auto 32px 150px 104px var(--pita-action-h) minmax(0,1fr);
    gap:3px;
  }
  .screen-play .stage-banner{
    height:32px;
    min-height:32px;
    padding:2px 6px;
  }
  .screen-play .target-wrap{
    height:150px;
    min-height:150px;
    padding-top:2px;
  }
  .screen-play .meter-zone{
    height:104px;
    min-height:104px;
    padding-top:8px;
  }
  .screen-play .meter-track .meter-cursor{
    height:44px;
    top:3px;
  }
  .screen-play .blind-zone{
    top:15px;
    height:20px;
  }
  .screen-play .meter-labels span{
    font-size:11px;
  }
  .screen-play .easy-meter-labels span{
    font-size:8px;
  }
  .screen-play .stop-btn{
    font-size:36px;
  }
  .pitadome-app.screen-roundResult{
    --pita-result-card-h:min(56dvh,410px);
  }
  .screen-roundResult > [data-next-round]{
    font-size:19px;
  }
}
@media(max-height:680px){
  .pitadome-app{
    --pita-action-h:64px;
    --pita-meter-track-h:46px;
    --pita-meter-label-h:22px;
  }
  .screen-play .play-panel{
    grid-template-rows:auto auto auto 28px 128px 92px var(--pita-action-h) minmax(0,1fr);
  }
  .screen-play .stage-banner{
    height:28px;
    min-height:28px;
  }
  .screen-play .target-wrap{
    height:128px;
    min-height:128px;
  }
  .screen-play .meter-zone{
    height:92px;
    min-height:92px;
    padding-top:6px;
  }
  .screen-play .meter-track .meter-cursor{
    height:40px;
  }
  .screen-play .stop-btn{
    font-size:32px;
  }
  .pitadome-app.screen-roundResult{
    --pita-result-card-h:min(55dvh,360px);
  }
  .screen-roundResult > [data-next-round]{
    font-size:17px;
  }
}


/* Main action fixed-height position sync 2026-10-10 */
/*
  STOP → 次のラウンドへ を押し進めても主ボタンの位置が跳ねないよう、
  画面基準の同じY座標・同じ高さを使う。
  「次のラウンドへ」の現在位置を基準にSTOPを合わせる。
*/
.pitadome-app{
  --pita-main-action-top:68dvh;
}

/* プレイ中とラウンド結果で主ボタンの位置・高さ・幅を完全共通化 */
.screen-play [data-stop],
.screen-roundResult > [data-next-round]{
  position:fixed!important;
  top:var(--pita-main-action-top)!important;
  left:18px!important;
  right:18px!important;
  bottom:auto!important;
  width:auto!important;
  height:var(--pita-action-h)!important;
  min-height:var(--pita-action-h)!important;
  max-height:var(--pita-action-h)!important;
  margin:0!important;
  box-sizing:border-box!important;
  z-index:40;
  border-radius:24px!important;
}

/* STOPだけ文字が大きくてもボタン外形は変えない */
.screen-play [data-stop]{
  font-size:clamp(36px,9vw,48px)!important;
  line-height:1!important;
  padding:0 18px!important;
}
.screen-roundResult > [data-next-round]{
  font-size:clamp(20px,5.5vw,27px)!important;
  line-height:1!important;
  padding:0 18px!important;
}

/* 固定した主ボタンに下の内容が潜り込まないよう、操作領域だけ予約 */
.screen-play .play-panel{
  padding-bottom:calc(var(--pita-action-h) + 12px)!important;
}
.screen-roundResult{
  padding-bottom:calc(var(--pita-action-h) + 12px)!important;
}

/* 低い画面でも座標は同じ比率。ボタンだけ既存の共通高さ変数で縮小 */
@media(max-height:760px){
  .pitadome-app{
    --pita-main-action-top:68dvh;
  }
}
@media(max-height:680px){
  .pitadome-app{
    --pita-main-action-top:67dvh;
  }
}


/* Final ranking feedback 2026-10-10 */
.screen-final .final-rank-banner{
  display:grid;
  gap:2px;
  place-items:center;
  text-align:center;
  padding:10px 14px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:18px;
  background:rgba(5,22,36,.82);
  box-shadow:0 10px 24px rgba(0,0,0,.16);
}
.screen-final .final-rank-banner small{
  font-size:10px;
  font-weight:1000;
  letter-spacing:.16em;
  color:#a9bfd1;
}
.screen-final .final-rank-banner strong{
  font-size:clamp(25px,7vw,38px);
  line-height:1;
  color:#fff;
}
.screen-final .final-rank-banner span{
  font-size:12px;
  font-weight:900;
  color:#cfdeea;
}
.screen-final .final-rank-banner.is-ranked{
  border-color:rgba(255,224,91,.6);
  background:linear-gradient(180deg,rgba(89,67,13,.92),rgba(21,29,35,.93));
  box-shadow:0 0 0 1px rgba(255,244,176,.2),0 12px 28px rgba(0,0,0,.22);
}
.screen-final .final-rank-banner.is-ranked small,
.screen-final .final-rank-banner.is-ranked strong{
  color:#fff19a;
}
.screen-final .final-rank-banner.is-mode-best{
  animation:recordBannerPop .72s cubic-bezier(.2,.8,.2,1) both;
}
.screen-final .final-next-goal{
  margin-top:8px;
  padding:7px 10px;
  border-radius:12px;
  background:rgba(255,255,255,.07);
  text-align:center;
  color:#dbe8f1;
  font-size:11px;
  font-weight:900;
}
.ranking-row.current-run{
  position:relative;
  outline:2px solid #ffe36a;
  box-shadow:0 0 0 3px rgba(255,227,106,.15),0 8px 18px rgba(0,0,0,.12);
  animation:currentRankPulse 1s ease-out 1;
}
.current-run-badge{
  display:inline-block;
  margin-left:6px;
  padding:2px 5px;
  border-radius:999px;
  background:#ffe36a;
  color:#2b1d00;
  font-style:normal;
  font-size:8px;
  font-weight:1000;
  vertical-align:middle;
}
@keyframes recordBannerPop{
  0%{opacity:0;transform:scale(.84)}
  60%{opacity:1;transform:scale(1.05)}
  100%{transform:scale(1)}
}
@keyframes currentRankPulse{
  0%{transform:scale(.97);filter:brightness(1.4)}
  60%{transform:scale(1.015)}
  100%{transform:scale(1);filter:none}
}
@media(max-height:760px){
  .screen-final .final-rank-banner{padding:7px 10px}
  .screen-final .final-rank-banner strong{font-size:24px}
  .screen-final .final-rank-banner span{font-size:10px}
  .screen-final .final-next-goal{margin-top:5px;padding:5px 8px;font-size:9px}
}
@media(max-height:680px){
  .screen-final .final-rank-banner{padding:5px 8px}
  .screen-final .final-rank-banner strong{font-size:21px}
  .screen-final .final-rank-banner span{font-size:9px}
}


/* Final result five-row layout fix 2026-10-10 */
/* nav / heading / rank banner / result card / actions の5段構成 */
.pitadome-app.screen-final{
  grid-template-rows:auto auto auto minmax(0,1fr) auto;
}
.screen-final .final-rank-banner{
  min-height:0;
  margin:0;
}
@media(max-height:760px){
  .screen-final .record-box{
    min-height:58px;
  }
}
@media(max-height:680px){
  .screen-final .record-box{
    min-height:48px;
  }
  .screen-final .final-score{
    font-size:76px;
    margin:3px 0 5px;
  }
}


/* Quit dialog rebalance 2026-10-10 */
.leave-confirm{
  padding:16px!important;
}
.leave-confirm-card{
  width:min(360px,calc(100vw - 32px))!important;
  max-width:360px!important;
  margin:0 auto!important;
  padding:22px 18px 20px!important;
  border-radius:24px!important;
  text-align:center!important;
}
.leave-confirm-card h2{
  margin:0 0 9px!important;
  font-size:clamp(24px,7vw,31px)!important;
  line-height:1.25!important;
}
.leave-confirm-card p{
  margin:0 0 17px!important;
  font-size:clamp(13px,3.7vw,15px)!important;
  line-height:1.55!important;
  color:#d9e3ec!important;
  font-weight:800!important;
}
.leave-confirm-card .stack{
  gap:9px!important;
}
.leave-confirm-card .btn{
  min-height:52px!important;
  padding:10px 14px!important;
  border-radius:15px!important;
  font-size:17px!important;
}
@media(max-height:700px){
  .leave-confirm-card{
    padding:18px 16px 17px!important;
    border-radius:21px!important;
  }
  .leave-confirm-card h2{
    font-size:24px!important;
  }
  .leave-confirm-card p{
    margin-bottom:13px!important;
    font-size:12px!important;
  }
  .leave-confirm-card .btn{
    min-height:46px!important;
    font-size:15px!important;
  }
}


/* Solo player registry UI shared with Link Burst */
.solo-current-card{
  display:grid;
  gap:12px;
  padding:18px 16px;
  border-color:rgba(240,204,125,.55);
}
.solo-current-caption{
  color:#e2ca96;
  font-size:12px;
  font-weight:900;
}
.solo-current-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.solo-current-person{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.solo-current-icon{font-size:40px;line-height:1.15}
.solo-current-person strong{
  min-width:0;
  overflow-wrap:anywhere;
  color:#fff;
  font-size:clamp(19px,5vw,25px);
  line-height:1.3;
}
.solo-change-btn{
  flex:0 0 auto;
  min-width:76px;
  min-height:44px;
  border:1px solid rgba(240,204,125,.65);
  border-radius:13px;
  background:rgba(240,204,125,.14);
  color:#fff0c6;
  font:inherit;
  font-weight:1000;
}
.solo-list{padding:12px}
.solo-choice{min-height:56px;font:inherit;font-weight:900}
.solo-choice strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.solo-choice small{
  margin-left:auto;
  color:#ffe2a4;
  font-size:11px;
  flex-shrink:0;
}
.solo-select-actions{margin-top:11px}
.solo-hint{
  margin:0;color:#e0d7c8;
  text-align:center;
  font-size:12px;
  font-weight:800;
}
.solo-register{
  display:grid;
  gap:12px;
  padding:17px;
}
.solo-register-label{
  font-size:14px;
  font-weight:1000;
  color:#fff1d4;
}
.solo-register input{
  width:100%;
  min-height:50px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.4);
  border-radius:13px;
  background:#fff;
  color:#1e2b43;
  font:inherit;
  font-size:17px;
}
.solo-register-icons{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
}
.solo-icon-choice{
  display:grid;
  place-items:center;
  min-width:0;
  min-height:50px;
  border:1px solid rgba(255,255,255,.24);
  border-radius:12px;
  background:rgba(255,255,255,.08);
  color:#fff;
  font:inherit;
  font-size:25px;
}
.solo-icon-choice.selected{
  border:2px solid #f6ce72;
  background:rgba(245,199,102,.19);
}
.solo-register-error{
  margin:0;
  color:#ffbfc6;
  font-size:12px;
  font-weight:850;
}
.solo-register-error:empty{display:none}


/* Desktop action width containment 2026-10-11 */
@media (min-width: 768px) {
  /* These controls are position:fixed; center them inside the game area,
     instead of stretching across the entire browser viewport. */
  .screen-play [data-stop],
  .screen-roundResult > [data-next-round] {
    left: max(18px, calc((100vw - 600px) / 2)) !important;
    right: max(18px, calc((100vw - 600px) / 2)) !important;
  }
}


/* Ranking record edit: fixed two-line labels in every mode */
.screen-ranking .rank-edit-toggle{
  flex:0 0 92px;
  width:92px;
  min-width:92px;
  min-height:61px;
  padding:6px 7px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  font-size:14px;
  line-height:1.2;
  text-align:center;
}
.screen-ranking .rank-edit-toggle span{
  display:block;
  white-space:nowrap;
  overflow-wrap:normal;
  word-break:keep-all;
}
@media(max-width:390px){
  .screen-ranking .ranking-head>strong{min-width:0;font-size:clamp(15px,4vw,18px)}
}


/* Solo & KO entry navigation: first choose number of players, then solo mode. */
.mode-type-grid .mode-card{min-height:165px}
.rules-mode-group{margin-bottom:15px}
.rules-mode-group h2{font-size:clamp(21px,5.5vw,27px);color:#ffe5a5;margin:0 0 9px}
.rules-mode-group>p{margin:0 0 13px}
.rules-mode-group .rule-step{background:rgba(255,255,255,.055)}
.rules-mode-group .mode-help{margin-top:10px}
.rules-mode-group .mode-help>div{border:1px solid rgba(236,215,165,.1)}
#common-rules,#solo-rules,#versus-rules{scroll-margin-top:15px}
@media(max-width:480px){
 .mode-type-grid .mode-card{min-height:151px}
 .rules-mode-group{padding:13px}
 .rules-mode-group .rule-step{padding:10px}
}


/* Large touch-friendly rule tabs; only the selected mode's content is visible. */
.rules-tabs{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
 gap:6px;margin:12px 0 13px;padding:5px;
 background:rgba(5,18,31,.90);border:1px solid rgba(236,215,165,.36);
 border-radius:18px;
}
.rules-tab{
 min-width:0;min-height:57px;border-radius:14px;
 border:1px solid rgba(236,215,165,.30);
 background:rgba(255,255,255,.085);color:#e7edf2;
 font-size:clamp(13px,3.6vw,18px);font-weight:1000;
 padding:9px 5px;
}
.rules-tab.selected{
 background:linear-gradient(180deg,#fff29c,#f8cc69);
 color:#231a08;border-color:#fff1b6;
 box-shadow:0 3px 0 rgba(117,78,27,.64);
}
.rules-tab:focus-visible{outline:3px solid #ffe8a1;outline-offset:3px}
.rules-mode-group[hidden]{display:none!important}
@media(max-width:390px){
 .rules-tabs{gap:6px;padding:5px}
 .rules-tab{font-size:13px;min-height:53px}
}
