:root{
  --ink:#12203a;--muted:#68758a;--navy:#071a46;--blue:#0d55c8;--cyan:#20b7ff;
  --orange:#ff8a19;--orange2:#ffbf38;--lime:#9bdc28;--lime2:#d5ef65;
  --red:#ef4967;--paper:#fffdf8;--line:#dfe6ef;--shadow:0 15px 36px rgba(18,32,58,.15)
}
*{box-sizing:border-box}html{background:#061537}body{margin:0;font-family:system-ui,-apple-system,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;color:var(--ink);background:#061537}
button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,a:focus-visible{outline:4px solid #ffe04d;outline-offset:2px}
.gesture-app{width:min(720px,100%);margin:0 auto;min-height:100vh;padding:10px 10px 38px;background:linear-gradient(160deg,#eef7ff,#fff9ed 56%,#fff4dc)}
.top-nav{display:flex;justify-content:space-between;gap:8px;margin-bottom:10px}.nav-pill{border:1px solid #d6dfeb;background:#fff;color:var(--ink);border-radius:999px;padding:9px 13px;font-size:13px;font-weight:950;box-shadow:0 4px 12px rgba(15,35,65,.08)}
.title-card{position:relative;overflow:hidden;min-height:calc(100vh - 74px);border-radius:29px;padding:24px 17px;display:grid;align-content:center;text-align:center;background:linear-gradient(to bottom,rgba(6,20,55,.08),rgba(6,20,55,.15) 44%,rgba(6,20,55,.66) 100%),url("../../gesture_battle_background.png") center 50%/cover no-repeat;color:#fff;box-shadow:var(--shadow)}
.title-card>*{position:relative;z-index:1}.title-logo{display:block;width:min(630px,100%);max-height:250px;object-fit:contain;margin:0 auto 8px;filter:drop-shadow(0 10px 18px rgba(0,0,0,.3))}
.title-copy{margin:5px auto 20px;max-width:490px;padding:9px 13px;border-radius:16px;background:rgba(5,22,60,.55);font-weight:900;line-height:1.55;text-shadow:0 2px 7px rgba(0,0,0,.45);backdrop-filter:blur(2px)}
.stack{display:grid;gap:9px}.btn{border:0;border-radius:16px;min-height:52px;padding:13px 15px;background:linear-gradient(180deg,#269aff,#0c60cc);color:#fff;font-weight:1000;box-shadow:0 5px 0 #06438f;touch-action:manipulation}.btn:active{transform:translateY(3px);box-shadow:0 2px 0 #06438f}.btn.yellow{background:linear-gradient(#ffe16a,#ffae24);color:#31260f;box-shadow:0 5px 0 #bd6d0a}.btn.orange{background:linear-gradient(#ffb23d,#ff791c);box-shadow:0 5px 0 #b44608}.btn.lime{background:linear-gradient(#d9f56d,#8fd62c);color:#22320c;box-shadow:0 5px 0 #5b9d16}.btn.secondary{background:#edf2f7;color:#263550;box-shadow:0 4px 0 #c5ceda}.btn.danger{background:linear-gradient(#ff7288,#e94160);box-shadow:0 5px 0 #ac263f}.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}.screen-heading h1{margin:0 0 5px;font-size:clamp(27px,7.5vw,38px);line-height:1.15}.screen-heading p{margin:0;color:var(--muted);font-weight:800;line-height:1.5}
.card{background:rgba(255,255,255,.97);border:1px solid var(--line);border-radius:22px;padding:16px;box-shadow:var(--shadow);margin-bottom:12px}.card h2{margin:0 0 6px}.card p{margin:0;color:var(--muted);font-weight:760;line-height:1.55}
.section-row{display:flex;justify-content:space-between;align-items:center;gap:8px}.small-btn{border:1px solid #d5deea;background:#fff;border-radius:11px;padding:7px 10px;color:#506079;font-weight:950}
.member-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.member-chip{padding:7px 9px;border:1px solid #dce4ee;border-radius:999px;background:#fff;font-size:12px;font-weight:900}
.mode-grid{display:grid;gap:12px}.mode-card{position:relative;overflow:hidden;text-align:left;border:2px solid #dde5ef;border-radius:22px;background:#fff;padding:18px 16px;min-height:145px;color:var(--ink);box-shadow:0 10px 26px rgba(20,40,70,.1)}.mode-card::after{content:"›";position:absolute;right:16px;top:50%;transform:translateY(-50%);font-size:42px;font-weight:1000;color:#b3bfce}.mode-card strong{display:block;font-size:24px;margin-bottom:7px}.mode-card span{display:block;max-width:82%;color:var(--muted);font-weight:800;line-height:1.5}.mode-card.free{background:linear-gradient(145deg,#f4fbff,#fff)}.mode-card.team{background:linear-gradient(145deg,#fff6e8,#f7ffe9);border-color:#f0dfb4}
.mode-badge{display:inline-flex!important;width:max-content;margin-bottom:8px;padding:5px 9px;border-radius:999px;background:#e9f5ff;color:#1266b0;font-size:10px!important;font-weight:1000!important}.mode-card.team .mode-badge{background:#fff0cf;color:#9a5a06}
.count-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:10px}.choice-btn{min-height:44px;border:2px solid #dce4ed;border-radius:13px;background:#fff;color:#526077;font-weight:1000}.choice-btn.selected{background:#e8f4ff;border-color:#2f97ef;color:#0d62ae}
.member-edit-list{display:grid;gap:10px}.member-edit-card{display:grid;grid-template-columns:62px minmax(0,1fr);gap:11px;padding:11px;border:1px solid #e0e6ed;border-radius:17px;background:#fff;min-width:0;overflow:hidden}.member-avatar-btn{width:58px;height:58px;border:2px solid #dce4ed;border-radius:17px;background:#f7f9fc;font-size:32px}.member-edit-main{min-width:0;overflow:hidden}.member-edit-main label{display:grid;gap:4px;color:#667388;font-size:11px;font-weight:950;min-width:0}.member-edit-main input{width:100%;min-width:0;border:2px solid #dce4ed;border-radius:12px;padding:10px 11px;font-size:16px;font-weight:850;color:var(--ink)}.member-icon-picker{display:none;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-top:8px;width:100%;min-width:0}.member-icon-picker.open{display:grid}.member-icon-choice{width:100%;min-width:0;min-height:40px;padding:0;border:2px solid #dfe5ed;border-radius:11px;background:#fff;font-size:21px;display:grid;place-items:center}.member-icon-choice.selected{border-color:#2490eb;background:#eaf5ff}
.team-board{display:grid;grid-template-columns:1fr 1fr;gap:10px}.team-column{border-radius:20px;padding:12px;min-width:0}.team-column.orange{background:#fff3df;border:2px solid #ffc96a}.team-column.lime{background:#f3fbdf;border:2px solid #b9df5d}.team-column h2{font-size:16px;text-align:center;margin:0 0 9px}.team-list{display:grid;gap:7px}.team-member{width:100%;min-width:0;border:1px solid #d9e1e9;border-radius:13px;background:#fff;padding:9px 8px;text-align:left;font-weight:900;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.team-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.team-note{margin:10px 2px 0!important;font-size:12px}.fairness-note{padding:10px 11px;border-radius:13px;background:#fff6d9;color:#765a12;font-size:12px;font-weight:850;line-height:1.55;margin-bottom:12px}
.setting-row{display:grid;gap:8px;margin-top:10px}.segmented{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.seg-btn{min-height:46px;border:2px solid #dce4ed;border-radius:13px;background:#fff;color:#526077;font-weight:1000}.seg-btn.selected{background:#eaf5ff;border-color:#2994ea;color:#0c62ae}
.category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.category-btn{min-height:44px;border:2px solid #dce4ed;border-radius:13px;background:#fff;color:#526077;font-weight:950}.category-btn.selected{background:#fff4d8;border-color:#ffc65a;color:#8a5500}
.rules-list{display:grid;gap:10px}.rule-step{display:grid;grid-template-columns:38px 1fr;gap:10px;align-items:start;padding:12px;border:1px solid #e0e6ed;border-radius:16px;background:#fff}.rule-step b{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#eaf5ff;color:#0e66b2}.rule-step strong{display:block;margin-bottom:3px}.rule-step span{color:#68758a;font-size:13px;font-weight:800;line-height:1.5}.rule-ban{padding:12px;border-radius:16px;background:#fff0f1;color:#8d3044;font-weight:850;line-height:1.6}
.turn-status{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;margin:4px 0 10px}.turn-status strong{font-size:12px}.turn-status span{font-size:11px;color:#6e798b;font-weight:850}
.score-strip{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;margin-bottom:10px}.score-strip::-webkit-scrollbar{display:none}.score-chip{flex:0 0 auto;padding:7px 10px;border-radius:999px;background:#fff;border:1px solid #dfe5ed;font-size:11px;font-weight:950}.score-chip.orange{background:#fff2dd;border-color:#ffc86a;color:#9b5700}.score-chip.lime{background:#f1fbdc;border-color:#b8df59;color:#4c7710}
.handoff-card{min-height:calc(100vh - 110px);display:grid;align-content:center;justify-items:center;text-align:center;gap:12px;background:linear-gradient(160deg,#071a46,#0a2c67);color:#fff;border-radius:26px;padding:25px 18px;box-shadow:var(--shadow)}.big-avatar{width:92px;height:92px;border-radius:27px;display:grid;place-items:center;background:#ffffff17;border:2px solid #ffffff2a;font-size:50px}.handoff-card h1{margin:0;font-size:clamp(27px,7vw,38px)}.handoff-card p{margin:0;color:#d5dfef;font-weight:800;line-height:1.6}.team-label{display:inline-flex;padding:6px 10px;border-radius:999px;font-size:11px;font-weight:1000}.team-label.orange{background:#ff9b24;color:#fff}.team-label.lime{background:#b9e447;color:#1f3600}
.ready-topic-card{min-height:calc(100vh - 110px);display:grid;align-content:center;justify-items:center;text-align:center;gap:13px;border-radius:26px;padding:24px 18px;background:linear-gradient(145deg,#fff,#edf8ff);box-shadow:var(--shadow)}.ready-topic-card .topic-preview{width:100%;padding:22px 13px;border:3px solid #173f78;border-radius:20px;background:#fff}.ready-topic-card small{display:block;color:#6a7587;font-weight:900;margin-bottom:6px}.ready-topic-card strong{display:block;font-size:clamp(34px,10vw,58px);line-height:1.2}.ready-tip{font-size:12px!important;color:#68758a!important}
.play-screen{position:relative;min-height:calc(100vh - 20px);border-radius:27px;padding:15px;display:grid;grid-template-rows:auto auto 1fr auto;gap:11px;background:linear-gradient(to bottom,rgba(6,20,55,.25),rgba(6,20,55,.76)),url("../../gesture_battle_background.png") center 52%/cover no-repeat;color:#fff;overflow:hidden}.play-top{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;align-items:center}.play-top .left{text-align:left}.play-top .right{text-align:right}.play-top span{font-size:11px;font-weight:900}.play-top strong{display:block;font-size:18px}.timer-wrap{text-align:center}.timer{display:block;font-size:clamp(38px,12vw,62px);line-height:1;font-weight:1000;font-variant-numeric:tabular-nums;text-shadow:0 4px 12px rgba(0,0,0,.3)}.timer.danger{color:#ffd35c;animation:pulse .55s infinite alternate}@keyframes pulse{to{transform:scale(1.05)}}.prompt-stage{display:grid;align-content:center;justify-items:center;text-align:center;min-height:230px;padding:16px;border-radius:24px;background:rgba(255,255,255,.96);color:var(--ink);box-shadow:0 14px 32px rgba(0,0,0,.2)}.prompt-stage small{color:#6d7889;font-weight:900;margin-bottom:8px}.prompt-word{font-size:clamp(40px,12vw,68px);line-height:1.15;font-weight:1000;word-break:keep-all}.prompt-category{margin-top:12px;padding:5px 9px;border-radius:999px;background:#eef4fa;color:#526178;font-size:10px;font-weight:1000}.play-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:9px}.play-btn{min-height:82px;border:0;border-radius:20px;color:#fff;font-weight:1000;font-size:clamp(21px,6vw,28px);box-shadow:0 6px 0 rgba(0,0,0,.25);touch-action:manipulation}.play-btn.pass{background:linear-gradient(#7e8ca1,#536174)}.play-btn.correct{background:linear-gradient(#58c96a,#1d9a48)}.play-btn:active{transform:translateY(4px);box-shadow:0 2px 0 rgba(0,0,0,.25)}
.countdown-overlay{position:absolute;inset:0;z-index:10;background:rgba(5,15,38,.83);display:grid;place-items:center;text-align:center}.countdown-number{font-size:clamp(100px,36vw,190px);font-weight:1000;color:#fff;text-shadow:0 8px 0 #0d55c8,0 14px 34px rgba(0,0,0,.4)}
.result-card{min-height:calc(100vh - 110px);display:grid;align-content:center;justify-items:center;text-align:center;gap:10px;border-radius:26px;padding:24px 18px;background:linear-gradient(145deg,#f7fbff,#fff7df);box-shadow:var(--shadow)}.result-card h1{margin:0;font-size:clamp(30px,8vw,43px)}.turn-score{font-size:clamp(72px,24vw,118px);font-weight:1000;line-height:.95;color:#0c68c7}.turn-score small{font-size:20px;color:#68758a}.result-card p{margin:0;color:#68758a;font-weight:800;line-height:1.6}.score-change{padding:9px 13px;border-radius:999px;background:#e9f8ee;color:#218248;font-weight:1000}
.final-wrap{display:grid;gap:12px}.winner-card{text-align:center;padding:22px 16px;border-radius:25px;background:linear-gradient(145deg,#fff7dc,#fff);border:1px solid #eadfba;box-shadow:var(--shadow)}.winner-crown{font-size:50px}.winner-card h1{margin:2px 0 8px;font-size:clamp(31px,8vw,42px)}.team-total-board{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.team-total{padding:14px 8px;border-radius:17px}.team-total.orange{background:#fff0d7}.team-total.lime{background:#eef9d5}.team-total span{display:block;font-size:11px;font-weight:900}.team-total strong{display:block;font-size:42px;line-height:1.05}.ranking{display:grid;gap:7px}.rank-row{display:grid;grid-template-columns:35px minmax(0,1fr) auto;gap:8px;align-items:center;padding:10px 11px;border:1px solid #e0e6ed;border-radius:14px;background:#fff}.rank-row b{color:#0d68c0}.rank-row span{text-align:left;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rank-row strong{font-size:18px}.total-highlight{text-align:center;padding:18px;border-radius:22px;background:linear-gradient(145deg,#eaf7ff,#fff6dc);box-shadow:var(--shadow)}.total-highlight span{display:block;font-size:12px;font-weight:900;color:#637084}.total-highlight strong{display:block;font-size:clamp(60px,19vw,92px);line-height:1;color:#0c68c7}
.recheck-backdrop{position:fixed;inset:0;z-index:1000;background:rgba(10,20,40,.68);display:grid;place-items:center;padding:17px}.recheck-modal{width:min(430px,100%);background:#fff;border-radius:24px;padding:21px 17px;text-align:center;box-shadow:0 24px 70px rgba(0,0,0,.34)}.recheck-modal h2{margin:6px 0 8px;font-size:25px}.recheck-modal p{margin:0 0 16px;color:#68758a;font-weight:800;line-height:1.6}.recheck-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.warning{display:inline-flex;padding:6px 10px;border-radius:999px;background:#fff1d7;color:#955700;font-size:11px;font-weight:1000}
@media(max-width:520px){
  .gesture-app{padding:8px 8px 30px}.card{padding:14px}.title-card{padding:20px 13px}.title-logo{max-height:215px}
  .team-board{gap:7px}.team-column{padding:9px}.team-member{font-size:12px;padding:8px 6px}.play-screen{padding:11px}.prompt-stage{min-height:210px}
  .play-actions{gap:7px}.play-btn{min-height:76px}.count-grid{grid-template-columns:repeat(4,1fr)}
}
@media(max-height:680px){
  .title-card{align-content:start;padding-top:12px}.title-logo{max-height:175px}.title-copy{margin-bottom:10px}.btn{min-height:47px}
  .handoff-card,.ready-topic-card,.result-card{min-height:calc(100vh - 88px)}.prompt-stage{min-height:180px}.play-btn{min-height:70px}
}
@media(prefers-reduced-motion:reduce){.timer.danger{animation:none}}

.mode-badge-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.mode-badge-row .mode-badge{margin-bottom:0}
.mode-players{display:inline-flex!important;width:max-content;padding:5px 9px;border-radius:999px;background:#f1f4f8;color:#526078;font-size:10px!important;font-weight:1000!important}
.mode-card.team .mode-players{background:#eef8d9;color:#517412}


/* Two-step settings layout */
.settings-progress{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  width:min(220px,62%);
  margin:0 auto 13px;
}
.settings-progress span{
  height:6px;
  border-radius:999px;
  background:#d9e2ec;
}
.settings-progress span.active{
  background:linear-gradient(90deg,#2d9bf0,#0d63c4);
}
.settings-bottom-actions{
  display:grid;
  grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);
  gap:9px;
  align-items:stretch;
}
.settings-bottom-actions .btn{
  width:100%;
}
.screen-settings1 .card,
.screen-settings2 .card{
  margin-bottom:12px;
}
.screen-settings1 .member-chips{
  margin-top:12px;
}
@media(max-width:380px){
  .settings-bottom-actions{
    grid-template-columns:1fr;
  }
}


/* Settings 2 compact single-screen layout 2026-10-09 */
.screen-settings2{
  padding-bottom:max(10px,env(safe-area-inset-bottom));
}
.screen-settings2 .screen-heading{
  margin:4px 0 8px;
}
.screen-settings2 .screen-heading h1{
  font-size:clamp(27px,7vw,32px);
  line-height:1.05;
  margin-bottom:3px;
}
.screen-settings2 .screen-heading p{
  font-size:12px;
  line-height:1.2;
}
.screen-settings2 .settings-progress{
  width:min(180px,56%);
  margin:4px auto 9px;
  gap:6px;
}
.screen-settings2 .settings-progress span{
  height:5px;
}
.screen-settings2 .card{
  padding:12px 12px 10px;
  margin-bottom:8px;
  border-radius:21px;
}
.screen-settings2 .card h2{
  font-size:clamp(22px,6vw,25px);
  line-height:1.1;
  margin-bottom:6px;
}
.screen-settings2 .section-row{
  margin-bottom:5px;
  align-items:center;
}
.screen-settings2 .section-row p,
.screen-settings2 [data-pool-count]{
  font-size:11px;
  line-height:1.2;
}
.screen-settings2 .setting-row{
  margin-top:6px;
}
.screen-settings2 .segmented{
  gap:7px;
}
.screen-settings2 .seg-btn{
  min-height:58px;
  padding:7px 5px;
  font-size:16px;
  line-height:1.05;
  border-radius:15px;
}
.screen-settings2 .small-btn{
  min-height:44px;
  padding:0 12px;
  font-size:16px;
  border-radius:14px;
}
.screen-settings2 .category-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
  margin-top:7px!important;
}
.screen-settings2 .category-btn{
  min-height:50px;
  padding:5px 3px;
  font-size:13px;
  line-height:1.05;
  border-radius:14px;
}
.screen-settings2 .settings-bottom-actions{
  grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);
  gap:8px;
  margin-top:3px;
}
.screen-settings2 .settings-bottom-actions .btn{
  min-height:56px;
  font-size:17px;
  border-radius:18px;
}
@media(max-height:760px){
  .screen-settings2 .screen-heading{
    margin-top:2px;
    margin-bottom:6px;
  }
  .screen-settings2 .screen-heading h1{
    font-size:25px;
  }
  .screen-settings2 .card{
    padding:10px;
    margin-bottom:7px;
  }
  .screen-settings2 .card h2{
    font-size:20px;
  }
  .screen-settings2 .seg-btn{
    min-height:52px;
    font-size:15px;
  }
  .screen-settings2 .category-btn{
    min-height:44px;
    font-size:12px;
  }
  .screen-settings2 .settings-bottom-actions .btn{
    min-height:52px;
    font-size:16px;
  }
}
@media(max-width:380px){
  .screen-settings2 .category-grid{
    gap:6px;
  }
  .screen-settings2 .category-btn{
    font-size:12px;
  }
}


.prompt-stage.prompt-concealed > *{
  visibility:hidden;
}


/* Play screen fit + giant timer 2026-10-09 */
.screen-play{
  height:100dvh;
  min-height:0;
  overflow:hidden;
  padding-bottom:max(8px,env(safe-area-inset-bottom));
}
.screen-play .top-nav{
  margin-bottom:6px;
}
.screen-play .nav-pill{
  min-height:42px;
  padding:7px 12px;
  font-size:12px;
}
.screen-play .play-screen{
  min-height:0;
  height:calc(100dvh - 72px - env(safe-area-inset-bottom));
  grid-template-rows:minmax(150px,29%) auto minmax(0,1fr) auto;
  gap:8px;
  padding:10px;
  border-radius:24px;
}
.screen-play .play-top{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(140px,1.35fr) minmax(0,1fr);
  align-items:start;
  gap:6px;
  min-height:0;
}
.screen-play .play-top .left,
.screen-play .play-top .right{
  padding-top:8px;
  min-width:0;
}
.screen-play .play-top .left strong,
.screen-play .play-top .right strong{
  font-size:16px;
  line-height:1.15;
}
.screen-play .play-top .left span,
.screen-play .play-top .right span{
  font-size:10px;
}
.screen-play .timer-wrap{
  height:100%;
  min-height:140px;
  display:grid;
  place-items:center;
  align-content:center;
  text-align:center;
  line-height:1;
}
.screen-play .timer-wrap small{
  display:block;
  margin-bottom:-4px;
  font-size:12px;
  font-weight:1000;
  letter-spacing:.12em;
  color:#dce9ff;
}
.screen-play .timer{
  display:block;
  font-size:clamp(96px,30vw,176px);
  line-height:.78;
  font-weight:1000;
  letter-spacing:-.06em;
  font-variant-numeric:tabular-nums;
  text-shadow:0 7px 20px rgba(0,0,0,.34);
}
.screen-play .score-strip{
  margin:0;
  min-height:34px;
}
.screen-play .score-chip{
  padding:6px 9px;
  font-size:10px;
  color:var(--ink);
}
.screen-play .prompt-stage{
  width:100%;
  min-width:0;
  min-height:0;
  height:100%;
  max-height:none;
  overflow:hidden;
  padding:12px 10px;
  border-radius:21px;
}
.screen-play .prompt-stage small{
  flex:0 0 auto;
  margin-bottom:6px;
  font-size:11px;
}
.screen-play .prompt-word{
  width:100%;
  max-width:100%;
  min-width:0;
  font-size:clamp(34px,10vw,60px);
  line-height:1.08;
  font-weight:1000;
  word-break:normal;
  overflow-wrap:anywhere;
  white-space:normal;
  text-wrap:balance;
}
.screen-play .prompt-word.long{
  font-size:clamp(28px,8.2vw,48px);
}
.screen-play .prompt-word.very-long{
  font-size:clamp(23px,6.8vw,40px);
  line-height:1.1;
}
.screen-play .prompt-category{
  margin-top:8px;
  flex:0 0 auto;
}
.screen-play .play-actions{
  gap:7px;
}
.screen-play .play-btn{
  min-height:68px;
  max-height:76px;
  font-size:clamp(19px,5.2vw,25px);
  border-radius:18px;
}
.screen-play .countdown-overlay{
  border-radius:24px;
}
@media(max-height:760px){
  .screen-play .play-screen{
    height:calc(100dvh - 66px - env(safe-area-inset-bottom));
    grid-template-rows:minmax(130px,27%) auto minmax(0,1fr) auto;
    gap:6px;
    padding:8px;
  }
  .screen-play .timer-wrap{
    min-height:124px;
  }
  .screen-play .timer{
    font-size:clamp(86px,28vw,150px);
  }
  .screen-play .prompt-word{
    font-size:clamp(30px,9vw,52px);
  }
  .screen-play .prompt-word.long{
    font-size:clamp(25px,7.4vw,43px);
  }
  .screen-play .prompt-word.very-long{
    font-size:clamp(21px,6vw,35px);
  }
  .screen-play .play-btn{
    min-height:60px;
    max-height:66px;
  }
}
@media(max-width:380px){
  .screen-play .play-top{
    grid-template-columns:minmax(0,.9fr) minmax(125px,1.2fr) minmax(0,.9fr);
  }
  .screen-play .timer{
    font-size:clamp(84px,29vw,138px);
  }
  .screen-play .prompt-word{
    font-size:clamp(28px,9.4vw,48px);
  }
  .screen-play .prompt-word.long{
    font-size:clamp(24px,7.5vw,39px);
  }
  .screen-play .prompt-word.very-long{
    font-size:clamp(20px,6.3vw,32px);
  }
}


/* Gesture layout fixes 2026-10-09 */
/* チーム名を1行に固定 */
.team-board{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.team-column{min-width:0}
.team-column h2{
  margin:0 0 9px;
  font-size:clamp(12px,3.3vw,16px);
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:clip;
}

/* プレイ画面：タイマーをさらに大きく、少し下げる */
.screen-play .play-screen{
  grid-template-rows:minmax(205px,33%) auto minmax(180px,34%) auto;
}
.screen-play .play-top{
  align-items:start;
}
.screen-play .timer-wrap{
  min-height:195px;
  padding-top:18px;
  align-content:start;
}
.screen-play .timer-wrap small{
  margin:0 0 12px;
  font-size:13px;
  line-height:1;
}
.screen-play .timer{
  margin-top:4px;
  font-size:clamp(126px,38vw,220px);
  line-height:.72;
  letter-spacing:-.07em;
}
.screen-play .prompt-stage{
  align-self:stretch;
  min-height:180px;
  max-height:285px;
  padding:10px 9px;
}
.screen-play .prompt-word{
  font-size:clamp(32px,9vw,54px);
}
.screen-play .prompt-word.long{
  font-size:clamp(27px,7.5vw,44px);
}
.screen-play .prompt-word.very-long{
  font-size:clamp(22px,6.2vw,36px);
}
.screen-play .play-btn{
  min-height:64px;
  max-height:70px;
}

@media(max-height:760px){
  .screen-play .play-screen{
    grid-template-rows:minmax(175px,31%) auto minmax(160px,33%) auto;
  }
  .screen-play .timer-wrap{
    min-height:165px;
    padding-top:14px;
  }
  .screen-play .timer-wrap small{
    margin-bottom:10px;
  }
  .screen-play .timer{
    font-size:clamp(110px,35vw,190px);
  }
  .screen-play .prompt-stage{
    min-height:155px;
    max-height:235px;
  }
}


/* Play HUD final layout 2026-10-09 */
.screen-play .play-screen{
  grid-template-rows:auto minmax(150px,24%) auto minmax(150px,1fr) auto;
  gap:7px;
}
.screen-play .play-status-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  min-width:0;
}
.screen-play .play-player,
.screen-play .play-correct{
  min-width:0;
  color:#fff;
}
.screen-play .play-player{
  text-align:left;
}
.screen-play .play-correct{
  text-align:right;
}
.screen-play .play-player span,
.screen-play .play-correct span{
  display:block;
  font-size:clamp(12px,3.4vw,15px);
  line-height:1.1;
  font-weight:950;
  opacity:.96;
}
.screen-play .play-player strong,
.screen-play .play-correct strong{
  display:block;
  margin-top:3px;
  font-size:clamp(20px,5.5vw,28px);
  line-height:1.05;
  font-weight:1000;
}
.screen-play .timer-wrap{
  min-height:0;
  height:auto;
  padding-top:18px;
  display:grid;
  place-items:center;
  align-content:center;
}
.screen-play .timer-wrap small{
  margin:0 0 14px;
  font-size:14px;
  line-height:1;
}
.screen-play .timer{
  margin-top:8px;
  font-size:clamp(138px,41vw,232px);
  line-height:.68;
}
.screen-play .score-strip{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  width:100%;
  overflow:visible;
  min-height:0;
}
.screen-play .score-chip{
  width:100%;
  min-width:0;
  padding:10px 12px;
  border-radius:16px;
  text-align:center;
  font-size:clamp(13px,3.7vw,17px);
  font-weight:1000;
  white-space:nowrap;
}
.screen-play .score-chip b{
  font-size:1.15em;
}
.screen-play .score-chip.orange{
  justify-self:stretch;
}
.screen-play .score-chip.lime{
  justify-self:stretch;
}
.screen-play .prompt-stage{
  min-height:150px;
  max-height:235px;
  padding:10px 10px;
  border-radius:20px;
}
.screen-play .play-actions{
  gap:8px;
}
.screen-play .play-btn{
  min-height:60px;
  max-height:66px;
}
.screen-play .countdown-number.start-text{
  font-size:clamp(54px,15vw,88px);
  line-height:1;
  letter-spacing:0;
}
@media(max-height:760px){
  .screen-play .play-screen{
    grid-template-rows:auto minmax(135px,22%) auto minmax(135px,1fr) auto;
    gap:6px;
  }
  .screen-play .timer-wrap{
    padding-top:14px;
  }
  .screen-play .timer-wrap small{
    margin-bottom:11px;
  }
  .screen-play .timer{
    font-size:clamp(122px,38vw,205px);
  }
  .screen-play .prompt-stage{
    min-height:135px;
    max-height:205px;
  }
  .screen-play .score-chip{
    padding:8px 9px;
    border-radius:14px;
    font-size:13px;
  }
  .screen-play .play-btn{
    min-height:56px;
    max-height:60px;
  }
}


/* Correct count balance fix 2026-10-09 */
.screen-play .play-status-row{
  grid-template-columns:minmax(0,1fr) minmax(112px,auto);
  gap:12px;
}
.screen-play .play-correct{
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  gap:8px;
  white-space:nowrap;
  min-width:112px;
}
.screen-play .play-correct .play-correct-label{
  display:block;
  flex:0 0 auto;
  margin-bottom:5px;
  font-size:clamp(14px,3.8vw,18px);
  line-height:1;
  font-weight:1000;
}
.screen-play .play-correct strong{
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  gap:3px;
  margin:0;
  line-height:.9;
  white-space:nowrap;
}
.screen-play .play-correct strong b{
  display:block;
  font-size:clamp(40px,11vw,60px);
  line-height:.82;
  font-weight:1000;
  letter-spacing:-.04em;
}
.screen-play .play-correct strong em{
  display:block;
  margin-bottom:3px;
  font-size:clamp(18px,5vw,25px);
  line-height:1;
  font-style:normal;
  font-weight:1000;
}
.screen-play .play-player span{
  font-size:clamp(13px,3.5vw,16px);
}
.screen-play .play-player strong{
  font-size:clamp(22px,5.8vw,30px);
}
@media(max-width:380px){
  .screen-play .play-status-row{
    grid-template-columns:minmax(0,1fr) minmax(102px,auto);
    gap:8px;
  }
  .screen-play .play-correct{
    min-width:102px;
    gap:6px;
  }
  .screen-play .play-correct strong b{
    font-size:clamp(36px,10.5vw,52px);
  }
  .screen-play .play-correct strong em{
    font-size:17px;
  }
}
