:root{--gold:#ffc531;--gold2:#ffe58a;--bg:#02070d;--panel:#071522;--line:#28415a;--cyan:#3ad6ff;--red:#ff5b62;--muted:#9eb0c2}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:radial-gradient(circle at 50% 0,#112941 0,#06111d 32%,#02070d 72%);color:#eef5fb;font-family:Pretendard,"Noto Sans KR","Malgun Gothic",sans-serif}button,select{font:inherit}
.topbar{height:64px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 18px;border-bottom:1px solid rgba(255,255,255,.08);background:rgba(2,8,14,.9);position:sticky;top:0;z-index:20;backdrop-filter:blur(10px)}.home-link{color:#cad7e3;text-decoration:none;font-weight:800}.ai-brand{text-align:center}.ai-brand strong{display:block;color:var(--gold);font-size:24px;line-height:1}.ai-brand span{font-size:12px;color:#b9c6d3;letter-spacing:.06em}.ghost-btn{justify-self:end;border:1px solid #44586b;background:#0a1723;color:#dce7f0;padding:9px 13px;border-radius:10px;cursor:pointer}
.practice-shell{width:min(1260px,100%);margin:0 auto;padding:20px;display:grid;grid-template-columns:minmax(0,820px) minmax(300px,380px);gap:20px}.game-panel,.coach-panel{border:1px solid rgba(255,197,49,.22);background:linear-gradient(180deg,rgba(9,23,37,.97),rgba(4,13,22,.98));border-radius:20px;box-shadow:0 18px 55px rgba(0,0,0,.35)}.game-panel{padding:16px}.coach-panel{padding:22px;height:max-content;position:sticky;top:84px}
.score-row{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center}.player-card{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;border:1px solid #32485b;border-radius:14px;padding:9px 11px;background:#07111b}.player-card.white{text-align:left}.player-card.active{border-color:var(--gold);box-shadow:0 0 0 1px rgba(255,197,49,.25),0 0 22px rgba(255,197,49,.1)}.player-card b{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.player-card small{display:block;color:#9fb0bf;margin-top:2px}.stone-mini{width:28px;height:28px;border-radius:50%}.black-stone{background:radial-gradient(circle at 34% 30%,#68717a 0,#171b20 28%,#020304 78%);border:1px solid #67717a}.white-stone{background:radial-gradient(circle at 34% 28%,#fff 0,#eef2f5 42%,#a7afb5 100%);border:1px solid #fff}.turn-badge{display:none;background:var(--gold);color:#241b08;font-size:11px;font-weight:900;border-radius:999px;padding:4px 7px}.player-card.active .turn-badge{display:inline}.center-status{text-align:center;color:var(--gold);font-weight:900;font-size:20px}.center-status small{display:block;color:#7890a5;font-size:10px;font-weight:700}
.notice-wrap{height:56px;display:flex;align-items:center;gap:8px}.notice{flex:1;min-width:0;width:auto;padding:10px 12px;border-radius:10px;background:#03101a;border-left:3px solid var(--gold);color:#dce8f2;font-weight:750;font-size:14px}.notice.good{border-color:#51e58b;color:#bfffd3}.notice.warn{border-color:#ffb13b;color:#ffe2ad}.notice.danger{border-color:#ff646b;color:#ffd0d2}.notice.scan{border-color:var(--cyan);color:#c6f4ff}
.board-wrap{position:relative;width:min(100%,760px);aspect-ratio:1/1;margin:0 auto;border-radius:16px;padding:26px;background:linear-gradient(135deg,#dca934,#f3cf66 55%,#c99022);box-shadow:inset 0 0 0 2px #4b3513,inset 0 0 35px rgba(62,37,2,.35),0 16px 34px rgba(0,0,0,.36);overflow:hidden}.board{
  width:100%;
  height:100%;
  position:relative;
  overflow:visible;
  isolation:isolate;
}
.board-grid{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:0;
  overflow:visible;
  shape-rendering:geometricPrecision;
}
.board-grid line{
  stroke:#60410f;
  stroke-width:2;
  vector-effect:non-scaling-stroke;
  opacity:.84;
}
.board-grid circle{
  fill:#60410f;
  opacity:.9;
}
.cell{
  --x:0;
  --y:0;
  position:absolute;
  left:calc(var(--x) * 100% / 14);
  top:calc(var(--y) * 100% / 14);
  width:calc(100% / 14);
  height:calc(100% / 14);
  transform:translate(-50%,-50%);
  z-index:1;
  border:0;
  background:transparent;
  cursor:pointer;
  padding:0;
  min-width:0;
  min-height:0;
  touch-action:manipulation;
}
.cell::after{
  content:"";
  position:absolute;
  width:12%;
  height:12%;
  left:44%;
  top:44%;
  border-radius:50%;
  background:#61400b;
  opacity:0;
  transition:.12s;
}
.cell:hover::after{opacity:.42}
.cell.center-ban::after{
  opacity:.28;
  background:#8c1f1f;
  width:22%;
  height:22%;
  left:39%;
  top:39%;
}
.stone{position:absolute;left:8%;top:8%;width:84%;height:84%;border-radius:50%;z-index:3;box-shadow:0 3px 6px rgba(0,0,0,.45)}.stone.B{background:radial-gradient(circle at 32% 26%,#717981 0,#20252b 25%,#030405 76%);border:1px solid #69747c}.stone.W{background:radial-gradient(circle at 32% 25%,#fff 0,#f7f9fa 40%,#b0b7bc 100%);border:1px solid #fff}.stone.hidden-own{opacity:.52;border:2px dashed var(--cyan);box-shadow:0 0 18px rgba(58,214,255,.55)}.stone.hidden-own::after,.stone.hidden-public::after,.stone.scan-show::after{content:"H";position:absolute;inset:0;display:grid;place-items:center;font-weight:1000;font-size:clamp(10px,2vw,23px)}.stone.hidden-own::after{color:#e8fbff;text-shadow:0 1px 3px #003d4d}.stone.hidden-public::after{color:var(--gold);text-shadow:0 1px 2px #000}.stone.scan-show{opacity:.48;border:2px dashed #5ce7ff;animation:blink .38s infinite alternate}.stone.last{outline:3px solid #ff6d37;outline-offset:-4px}.scan-target{position:absolute;inset:14%;border:2px solid var(--cyan);border-radius:50%;box-shadow:0 0 14px var(--cyan);z-index:5;animation:pulse .6s infinite alternate}@keyframes blink{to{opacity:.8}}@keyframes pulse{to{transform:scale(1.18);opacity:.48}}.scan-pulse{pointer-events:none;position:absolute;width:26px;height:26px;border:2px solid var(--cyan);border-radius:50%;opacity:0;z-index:10}.scan-pulse.on{animation:scanring .9s ease-out}@keyframes scanring{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(16)}}
.action-row{display:flex;gap:9px;justify-content:center;flex-wrap:wrap;margin-top:14px}.scan-btn,.secondary-btn,.gold-btn{border-radius:12px;padding:12px 16px;font-weight:900;cursor:pointer}.scan-btn{border:1px solid #36cdeb;background:linear-gradient(#0d4a5d,#073243);color:#bdf5ff;box-shadow:0 0 18px rgba(58,214,255,.12)}.scan-btn.active{background:#0b7892;color:#fff;box-shadow:0 0 22px rgba(58,214,255,.42)}.scan-btn:disabled{opacity:.35;cursor:not-allowed}.secondary-btn{border:1px solid #445b70;background:#0a1825;color:#d7e4ee}.gold-btn{width:100%;border:0;color:#1c1405;background:linear-gradient(#ffe479,#ffb91f);box-shadow:0 8px 20px rgba(255,185,31,.23)}
.dojo-head{display:flex;align-items:center;gap:13px}.dojo-avatar{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;font-family:serif;font-size:28px;font-weight:900;color:#301f02;background:radial-gradient(circle at 35% 30%,#fff4ac,#ffc332 55%,#b87709);border:2px solid #ffe99a;box-shadow:0 0 24px rgba(255,196,50,.24)}.dojo-head span{font-size:10px;letter-spacing:.18em;color:var(--gold)}.dojo-head h1{margin:2px 0 0;font-size:27px}.dojo-copy{color:#b9c8d4;line-height:1.65}.setting-box,.lesson-box,.practice-note{margin-top:17px;border:1px solid #263d51;border-radius:14px;background:#05111c;padding:14px}.setting-box label{display:block;font-size:12px;color:#91a5b7;margin-bottom:6px}.setting-box select{width:100%;padding:11px;border-radius:10px;border:1px solid #395067;background:#081927;color:#eef6fb;margin-bottom:10px}.lesson-box h2{font-size:15px;margin:0 0 10px;color:#f6d878}.lesson-box ul{margin:0;padding-left:18px;color:#b8c8d4;line-height:1.75;font-size:13px}.lesson-box b{color:#fff}.practice-note strong{color:#f5cf67}.practice-note p{font-size:12px;color:#8fa3b5;line-height:1.6;margin:6px 0 0}
.modal{display:none;position:fixed;inset:0;z-index:50;place-items:center;padding:18px}.modal.open{display:grid}.modal-bg{position:absolute;inset:0;background:rgba(0,0,0,.78);backdrop-filter:blur(7px)}.help-card{position:relative;width:min(560px,95vw);background:#081827;border:1px solid rgba(255,197,49,.55);border-radius:18px;padding:24px;box-shadow:0 25px 80px #000}.help-card h2{color:var(--gold);margin-top:0}.help-card p{color:#c7d4df;line-height:1.6}.x-btn{position:absolute;right:12px;top:10px;border:0;background:transparent;color:#fff;font-size:29px;cursor:pointer}

.ai-touch-settings-btn{
  display:none;flex:0 0 42px;width:42px;height:42px;border-radius:11px;
  border:1px solid rgba(255,197,49,.55);background:#101a24;color:#ffd45b;
  font-size:20px;font-weight:900;cursor:pointer;align-items:center;justify-content:center;
}
.touch-settings-card{
  position:relative;width:min(460px,94vw);background:#081827;
  border:1px solid rgba(255,197,49,.65);border-radius:18px;padding:24px;
  box-shadow:0 25px 80px #000;color:#d9e5ee;
}
.touch-settings-card h2{margin:0 38px 10px 0;color:var(--gold);font-size:22px}
.touch-settings-card p{margin:0 0 16px;color:#bfcfda;line-height:1.55}
.touch-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.touch-choice{
  min-height:88px;border-radius:14px;border:1px solid #41576b;background:#0a1520;
  color:#d9e8f2;padding:12px;display:flex;flex-direction:column;gap:7px;
  align-items:center;justify-content:center;cursor:pointer;font-weight:900
}
.touch-choice small{font-size:11px;color:#8fa5b6;font-weight:700}
.touch-choice.on{border-color:#ffd34f;background:#342706;color:#fff4bf;box-shadow:0 0 18px rgba(255,211,79,.18)}
.touch-status{display:block;margin-top:12px;text-align:center;color:#ffd875;font-weight:900}

@media(max-width:900px){.ai-touch-settings-btn{display:flex}.practice-shell{grid-template-columns:1fr;padding:10px}.coach-panel{position:static;order:-1}.coach-panel .lesson-box,.coach-panel .practice-note{display:none}.dojo-copy{margin-bottom:8px}.setting-box{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:end}.setting-box label{grid-column:1/-1;margin:0}.setting-box select,.setting-box .gold-btn{margin:0}.topbar{grid-template-columns:auto 1fr auto}.ai-brand span{display:none}}
@media(max-width:560px){.topbar{height:56px;padding:0 10px}.ai-brand strong{font-size:20px}.ghost-btn{font-size:12px;padding:7px 9px}.practice-shell{padding:6px}.game-panel{padding:8px;border-radius:14px}.coach-panel{padding:12px;border-radius:14px}.dojo-head{display:none}.dojo-copy{font-size:12px;margin:0 0 8px}.setting-box{margin-top:6px;padding:9px}.score-row{gap:4px}.player-card{padding:6px;grid-template-columns:auto 1fr}.turn-badge{display:none!important}.stone-mini{width:21px;height:21px}.player-card b{font-size:12px}.player-card small{font-size:10px}.center-status{font-size:16px}.notice-wrap{height:48px}.notice{font-size:12px;padding:8px}.ai-touch-settings-btn{display:flex;flex-basis:38px;width:38px;height:38px;font-size:18px}.touch-settings-card{padding:18px}.touch-choice-grid{grid-template-columns:1fr}.touch-choice{min-height:68px}.board-wrap{padding:17px;border-radius:10px}.action-row{margin-top:8px;gap:5px}.scan-btn,.secondary-btn{padding:9px 10px;font-size:12px}.secondary-btn#helpBtn{display:none}}

.sound-btn[aria-pressed="false"]{opacity:.62}

.player-info{min-width:0}
.item-status{display:flex;gap:5px;flex-wrap:wrap;margin-top:5px}
.item-chip{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:20px;padding:2px 7px;border-radius:999px;
  font-size:10px;font-weight:900;letter-spacing:.02em;
  border:1px solid #46596b;color:#7f93a5;background:#0a131d;
}
.item-chip.available.hidden-chip{
  color:#ffe7a0;border-color:#e7ad28;background:#4b3306;
  box-shadow:0 0 12px rgba(255,190,40,.16)
}
.item-chip.available.scan-chip{
  color:#bff7ff;border-color:#34cfe9;background:#073a4a;
  box-shadow:0 0 12px rgba(58,214,255,.16)
}
.item-chip.placed{color:#e8d17f;border-color:#776127;background:#1a170b}
.item-chip.revealed{color:#c8d4dc;border-color:#566572;background:#121b22}
.item-chip.used{opacity:.45;filter:saturate(.35)}

.hidden-btn,.scan-btn,.secondary-btn,.gold-btn{
  border-radius:12px;padding:12px 16px;font-weight:900;cursor:pointer
}
.hidden-btn{
  border:1px solid #e7ad28;
  background:linear-gradient(#65490c,#3b2a08);
  color:#ffe7a0;
  box-shadow:0 0 18px rgba(255,190,40,.12)
}
.hidden-btn.ready{
  background:linear-gradient(#8a620e,#543906);
  box-shadow:0 0 24px rgba(255,190,40,.35);
  animation:hiddenReady .9s ease-in-out infinite alternate
}
@keyframes hiddenReady{to{transform:translateY(-1px);box-shadow:0 0 30px rgba(255,190,40,.55)}}
.hidden-btn:disabled{
  opacity:.38;cursor:not-allowed;animation:none;transform:none
}
/* SCAN stays visually available while 1 remains, even during opponent turn.
   It only turns gray after actual consumption. */
.scan-btn.available{
  opacity:1;
  border-color:#36cdeb;
  background:linear-gradient(#0d4a5d,#073243);
  color:#bdf5ff;
}
.scan-btn.waiting{
  cursor:not-allowed;
  filter:saturate(.72);
}
.scan-btn.spent{
  opacity:.34;
  cursor:not-allowed;
  filter:saturate(.25);
}

.scan-btn:disabled.available{opacity:1}
.scan-btn:disabled.waiting{opacity:.72}
.scan-btn:disabled.spent{opacity:.34}
@media(max-width:560px){
  .item-status{gap:3px;margin-top:3px}
  .item-chip{font-size:8px;padding:1px 5px;min-height:17px}
  .hidden-btn,.scan-btn,.secondary-btn{padding:9px 10px;font-size:12px}
}


/* ===== v1.4 : 실전형 대형 HIDDEN / SCAN ===== */
.item-actions{
  gap:12px;
  align-items:stretch;
}
.item-action{
  min-width:174px;
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:9px 16px;
  border-radius:16px;
  font-weight:1000;
  position:relative;
  overflow:hidden;
}
.item-icon{
  flex:0 0 54px;
  width:54px;
  height:54px;
  display:grid;
  place-items:center;
  position:relative;
}
.item-copy{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  line-height:1.05;
}
.item-copy strong{
  font-size:18px;
  letter-spacing:.025em;
}
.item-copy small{
  margin-top:7px;
  font-size:12px;
  font-weight:900;
  opacity:.92;
}
.item-copy b{font-size:14px}

/* HIDDEN : 점선 원 안의 H — 실전 UI에서 한눈에 보이게 */
.hidden-btn{
  border:1px solid #e7ad28;
  background:
    radial-gradient(circle at 18% 20%,rgba(255,222,105,.12),transparent 42%),
    linear-gradient(#5f4309,#2e2106);
  color:#ffe39a;
  box-shadow:0 0 20px rgba(255,190,40,.16);
}
.hidden-icon{
  border:3px dashed #ffd85d;
  border-radius:50%;
  box-shadow:0 0 15px rgba(255,200,65,.30),inset 0 0 12px rgba(255,220,105,.12);
}
.hidden-icon::before{
  content:"";
  position:absolute;
  inset:7px;
  border:2px solid rgba(255,239,186,.72);
  border-radius:50%;
}
.hidden-icon span{
  position:relative;
  z-index:2;
  font-size:25px;
  color:#fff4c7;
  text-shadow:0 1px 2px #2d1b00;
}
.hidden-btn.ready{
  border-color:#ffd85d;
  background:
    radial-gradient(circle at 18% 20%,rgba(255,234,139,.22),transparent 44%),
    linear-gradient(#805b0b,#4a3307);
  box-shadow:0 0 30px rgba(255,190,40,.42);
  animation:hiddenReadyV14 .85s ease-in-out infinite alternate;
}
@keyframes hiddenReadyV14{
  to{box-shadow:0 0 38px rgba(255,190,40,.62);transform:translateY(-1px)}
}

/* SCAN : 레이더 아이콘 */
.scan-btn{
  border:1px solid #3bdcf7;
  background:
    radial-gradient(circle at 18% 20%,rgba(80,230,255,.13),transparent 42%),
    linear-gradient(#0b5267,#073343);
  color:#c8f8ff;
  box-shadow:0 0 20px rgba(58,214,255,.18);
}
.scan-icon{
  border:2px solid #72ecff;
  border-radius:50%;
  background:
    radial-gradient(circle,#51e7ff 0 4%,transparent 5% 17%,rgba(92,231,255,.55) 18% 20%,transparent 21% 35%,rgba(92,231,255,.45) 36% 38%,transparent 39%),
    conic-gradient(from -35deg,rgba(85,236,255,.78) 0 12deg,transparent 13deg 360deg);
  box-shadow:0 0 16px rgba(58,214,255,.38),inset 0 0 14px rgba(58,214,255,.12);
}
.scan-icon::before,.scan-icon::after{
  content:"";
  position:absolute;
  background:rgba(102,236,255,.62);
}
.scan-icon::before{width:2px;height:100%;left:50%;top:0}
.scan-icon::after{height:2px;width:100%;top:50%;left:0}
.scan-dot{
  width:8px;height:8px;border-radius:50%;
  background:#d7fbff;
  box-shadow:0 0 10px #55e8ff;
  z-index:3;
}
.scan-btn.active{
  background:linear-gradient(#0d7995,#075069);
  color:#fff;
  box-shadow:0 0 32px rgba(58,214,255,.58);
}
.scan-btn.available:not(:disabled){
  animation:scanReadyV14 .9s ease-in-out infinite alternate;
}
@keyframes scanReadyV14{
  to{box-shadow:0 0 34px rgba(58,214,255,.52);transform:translateY(-1px)}
}

/* 남아 있으면 아이콘은 항상 선명하게, 사용 완료시에만 확실히 회색 */
.item-action:disabled{
  transform:none;
}
.hidden-btn:disabled,
.scan-btn:disabled{
  cursor:not-allowed;
}
.hidden-btn:disabled:not(.ready){
  opacity:.48;
  filter:saturate(.48);
  animation:none;
}
.scan-btn:disabled.available{
  opacity:.78;
  filter:saturate(.82);
  animation:none;
}
.scan-btn.spent{
  opacity:.34 !important;
  filter:grayscale(.65) saturate(.2);
  animation:none !important;
}
.item-action.spent .item-icon{
  box-shadow:none;
}

/* 플레이어 카드의 보유상태도 기존보다 크게 */
.item-chip{
  min-height:24px !important;
  padding:3px 9px !important;
  font-size:11px !important;
}
.item-chip.available.hidden-chip{
  box-shadow:0 0 14px rgba(255,190,40,.22) !important;
}
.item-chip.available.scan-chip{
  box-shadow:0 0 14px rgba(58,214,255,.22) !important;
}

@media(max-width:560px){
  .item-actions{gap:7px}
  .item-action{
    min-width:0;
    width:calc(50% - 4px);
    min-height:64px;
    padding:7px 9px;
    gap:7px;
  }
  .item-icon{flex-basis:44px;width:44px;height:44px}
  .item-copy strong{font-size:14px}
  .item-copy small{font-size:10px;margin-top:5px}
  .hidden-icon span{font-size:20px}
  .item-chip{font-size:9px !important;padding:2px 6px !important;min-height:20px !important}
}


/* ===== v1.5 : 점수 / 현재 수 / 도움말 가독성 강화 ===== */
.player-card small{
  font-size:15px !important;
  font-weight:800;
  line-height:1.15;
}
#scoreB,#scoreW{
  display:inline-block;
  margin-left:5px;
  font-size:27px;
  line-height:1;
  font-weight:1000;
  color:#ffd34f;
  text-shadow:0 0 12px rgba(255,202,55,.22);
  vertical-align:-2px;
}
.center-status{
  min-width:74px;
  font-size:36px !important;
  line-height:.95;
  font-weight:1000 !important;
}
.center-status small{
  margin-top:6px;
  font-size:13px !important;
  line-height:1;
}
.turn-badge{
  font-size:14px !important;
  padding:6px 9px !important;
}

/* 도움말 팝업 — PC에서 훨씬 크게 */
.help-card{
  width:min(830px,94vw) !important;
  max-height:min(82vh,760px);
  overflow:auto;
  padding:34px 38px !important;
  border-radius:22px !important;
}
.help-card h2{
  font-size:29px;
  margin:0 48px 22px 0 !important;
}
.help-card p{
  font-size:17px;
  line-height:1.8 !important;
  margin:13px 0;
}
.help-card .x-btn{
  right:18px !important;
  top:14px !important;
  font-size:36px !important;
}

/* 알림도 조금 더 또렷하게 */
.notice{
  font-size:15px !important;
  line-height:1.35;
}

@media(max-width:560px){
  .player-card small{font-size:11px !important}
  #scoreB,#scoreW{font-size:20px}
  .center-status{font-size:27px !important;min-width:50px}
  .center-status small{font-size:10px !important}
  .help-card{
    width:95vw !important;
    max-height:84vh;
    padding:24px 20px !important;
  }
  .help-card h2{font-size:23px}
  .help-card p{font-size:15px;line-height:1.65 !important}
}


/* ===== 오투도사 테스트 버전 7 : 대국 시작 대형 안내 ===== */
.start-overlay{
  position:fixed;
  inset:0;
  z-index:5000;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(2,8,15,.74);
  backdrop-filter:blur(4px);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .16s ease,visibility .16s ease;
}
.start-overlay.show{
  opacity:1;
  visibility:visible;
}
.start-announcement{
  width:min(720px,88vw);
  padding:42px 34px 38px;
  text-align:center;
  border:2px solid #ffc83d;
  border-radius:28px;
  background:
    radial-gradient(circle at 50% 0%,rgba(255,205,72,.18),transparent 46%),
    linear-gradient(180deg,#0c1a28,#07111b);
  box-shadow:
    0 0 55px rgba(255,190,50,.30),
    inset 0 0 30px rgba(255,209,90,.06);
  transform:scale(.88);
}
.start-overlay.show .start-announcement{
  animation:startPop 1.85s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes startPop{
  0%{transform:scale(.72);opacity:0}
  18%{transform:scale(1.05);opacity:1}
  32%{transform:scale(1)}
  82%{transform:scale(1);opacity:1}
  100%{transform:scale(.98);opacity:.96}
}
.start-brand{
  color:#ffc83d;
  font-size:18px;
  font-weight:1000;
  letter-spacing:.18em;
}
.start-title{
  margin-top:10px;
  color:#fff;
  font-size:64px;
  line-height:1;
  font-weight:1000;
  text-shadow:0 0 25px rgba(255,255,255,.16);
}
.start-sub{
  margin-top:18px;
  color:#ffd45c;
  font-size:30px;
  line-height:1.2;
  font-weight:1000;
}
@media(max-width:560px){
  .start-announcement{padding:32px 18px 30px;border-radius:22px}
  .start-brand{font-size:13px}
  .start-title{font-size:46px}
  .start-sub{font-size:22px}
}

/* ===== 오투도사 테스트 버전 8 : 실전 랜덤점수 / 종료 결과창 ===== */
.bonus-marker{
  position:absolute;
  inset:16%;
  z-index:2;
  display:grid;
  place-items:center;
  border-radius:50%;
  font-size:clamp(9px,1.8vw,18px);
  font-weight:1000;
  line-height:1;
  pointer-events:none;
  text-shadow:0 1px 2px rgba(0,0,0,.55);
  box-shadow:0 0 13px rgba(255,255,255,.18), inset 0 0 10px rgba(255,255,255,.12);
}
.bonus-marker.plus{
  color:#efffe9;
  background:radial-gradient(circle at 35% 28%,#8bff79,#20a94c 58%,#0f6d31);
  border:2px solid #d9ffd4;
}
.bonus-marker.minus{
  color:#fff1f1;
  background:radial-gradient(circle at 35% 28%,#ff938f,#df3c49 58%,#8b1623);
  border:2px solid #ffd1d1;
}
.cell.bonus-plus::before,.cell.bonus-minus::before{
  content:"";
  position:absolute;
  inset:10%;
  border-radius:50%;
  z-index:1;
  opacity:.28;
  animation:bonusGlow 1.1s ease-in-out infinite alternate;
}
.cell.bonus-plus::before{box-shadow:0 0 18px 5px #55e570}
.cell.bonus-minus::before{box-shadow:0 0 18px 5px #ff5965}
@keyframes bonusGlow{to{opacity:.56;transform:scale(1.06)}}

.result-overlay{
  position:absolute;
  inset:0;
  z-index:100;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(3,8,14,.74);
  backdrop-filter:blur(3px);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .18s ease,visibility .18s ease;
}
.result-overlay.show{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
.result-card{
  width:min(520px,88%);
  padding:30px 26px 26px;
  text-align:center;
  border:2px solid #ffc83d;
  border-radius:24px;
  background:radial-gradient(circle at 50% 0,rgba(255,202,61,.18),transparent 45%),linear-gradient(180deg,#0c1b2a,#07111b);
  box-shadow:0 0 48px rgba(255,190,50,.30),0 20px 55px rgba(0,0,0,.55);
  animation:resultPop .28s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes resultPop{from{transform:scale(.84);opacity:0}to{transform:scale(1);opacity:1}}
.result-brand{color:#ffc83d;font-size:13px;font-weight:1000;letter-spacing:.16em}
.result-title{margin-top:8px;font-size:42px;line-height:1.05;font-weight:1000;color:#fff}
.result-reason{margin-top:13px;font-size:22px;line-height:1.35;font-weight:900;color:#ffd86d}
.result-score{margin-top:13px;font-size:19px;font-weight:900;color:#d9e8f3}
.rematch-btn{
  width:100%;
  margin-top:22px;
  padding:15px 18px;
  border:0;
  border-radius:14px;
  font-size:19px;
  font-weight:1000;
  cursor:pointer;
  color:#251903;
  background:linear-gradient(#ffe783,#ffb91f);
  box-shadow:0 9px 22px rgba(255,185,31,.28);
}
.rematch-btn:hover{filter:brightness(1.06);transform:translateY(-1px)}
@media(max-width:560px){
  .result-overlay{padding:14px}
  .result-card{width:92%;padding:24px 18px 20px;border-radius:20px}
  .result-title{font-size:34px}
  .result-reason{font-size:18px}
  .result-score{font-size:16px}
  .rematch-btn{font-size:17px;padding:13px}
}


/* ===== 오투도사 테스트 버전 9 : 모든 주요 이슈 대형 팝업 + MAX 사운드 ===== */
.event-overlay{
  position:absolute;
  inset:0;
  z-index:80;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(2,8,14,.34);
  backdrop-filter:blur(1.5px);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .10s ease,visibility .10s ease;
}
.event-overlay.show{opacity:1;visibility:visible}
.event-card{
  width:min(610px,88%);
  padding:31px 27px 27px;
  text-align:center;
  border:3px solid #ffc83d;
  border-radius:26px;
  background:radial-gradient(circle at 50% 0,rgba(255,205,72,.22),transparent 48%),linear-gradient(180deg,rgba(9,25,39,.98),rgba(3,11,19,.98));
  box-shadow:0 0 65px rgba(255,196,49,.42),0 22px 58px rgba(0,0,0,.56),inset 0 0 32px rgba(255,255,255,.04);
}
.event-overlay.show .event-card{animation:eventMegaPop .42s cubic-bezier(.16,.9,.2,1) both}
@keyframes eventMegaPop{
  0%{transform:scale(.68);opacity:0;filter:brightness(1.5)}
  62%{transform:scale(1.08);opacity:1}
  100%{transform:scale(1);opacity:1;filter:brightness(1)}
}
.event-kicker{font-size:14px;font-weight:1000;letter-spacing:.17em;color:#ffd767}
.event-title{margin-top:8px;font-size:50px;line-height:1.04;font-weight:1000;color:#fff;text-shadow:0 0 24px rgba(255,255,255,.22)}
.event-detail{margin-top:13px;font-size:21px;line-height:1.42;font-weight:900;color:#e7f1f8}
.event-card.hidden{border-color:#ffca3d;box-shadow:0 0 75px rgba(255,197,49,.58),0 22px 58px rgba(0,0,0,.56)}
.event-card.reveal{border-color:#fff08c;box-shadow:0 0 85px rgba(255,224,87,.72),0 22px 58px rgba(0,0,0,.56)}
.event-card.scan{border-color:#43dcff;box-shadow:0 0 75px rgba(58,214,255,.60),0 22px 58px rgba(0,0,0,.56)}
.event-card.scan-hit{border-color:#70f7d2;box-shadow:0 0 88px rgba(76,242,199,.68),0 22px 58px rgba(0,0,0,.56)}
.event-card.scan-miss{border-color:#ff7279;box-shadow:0 0 88px rgba(255,76,88,.65),0 22px 58px rgba(0,0,0,.56)}
.event-card.plus{border-color:#77ff8d;box-shadow:0 0 80px rgba(81,229,139,.64),0 22px 58px rgba(0,0,0,.56)}
.event-card.minus{border-color:#ff6a72;box-shadow:0 0 80px rgba(255,78,91,.66),0 22px 58px rgba(0,0,0,.56)}
.event-card.foul{border-color:#ff4f59;box-shadow:0 0 90px rgba(255,52,65,.75),0 22px 58px rgba(0,0,0,.56)}
.event-card.pattern{border-color:#b8a1ff;box-shadow:0 0 76px rgba(150,118,255,.56),0 22px 58px rgba(0,0,0,.56)}
.event-card.scan .event-kicker,.event-card.scan .event-title{color:#c9f8ff}
.event-card.scan-hit .event-kicker,.event-card.scan-hit .event-title{color:#caffed}
.event-card.scan-miss .event-kicker,.event-card.scan-miss .event-title{color:#ffd2d4}
.event-card.plus .event-kicker,.event-card.plus .event-title{color:#d5ffdc}
.event-card.minus .event-kicker,.event-card.minus .event-title,.event-card.foul .event-title{color:#ffd5d7}
@media(max-width:560px){
  .event-overlay{padding:13px}
  .event-card{width:94%;padding:24px 16px 21px;border-radius:20px}
  .event-kicker{font-size:11px}
  .event-title{font-size:35px}
  .event-detail{font-size:16px}
}


/* ===== 오투도사 테스트 버전 11 =====
   - HIDDEN / SCAN 조작을 내 유저 박스 안으로 이동
   - 연습실의 골드/시안/그린/레드 이벤트 팔레트를 실전 UI 기준으로 유지 */
.score-row{align-items:stretch}
.player-card{align-self:stretch}
.player-item-controls{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  width:100%;
  margin-top:4px;
}
.player-item-controls .item-action{
  min-width:0;
  min-height:45px;
  padding:5px 8px;
  gap:7px;
  border-radius:11px;
}
.player-item-controls .item-icon{
  flex:0 0 31px;
  width:31px;
  height:31px;
}
.player-item-controls .item-copy strong{font-size:12px;letter-spacing:.02em}
.player-item-controls .item-copy small{margin-top:3px;font-size:9px}
.player-item-controls .item-copy b{font-size:10px}
.player-item-controls .hidden-icon{border-width:2px}
.player-item-controls .hidden-icon::before{inset:4px;border-width:1px}
.player-item-controls .hidden-icon span{font-size:15px}
.player-item-controls .scan-dot{width:5px;height:5px}
.utility-actions{margin-top:12px}

/* 종료 결과창을 제외한 주요 이벤트 팝업은 약 3초로 통일하며, 표시 중 착수 입력/AI 진행을 잠시 잠근다. */
.event-overlay.show{background:rgba(2,8,14,.40)}

@media(max-width:560px){
  .player-card{grid-template-columns:auto minmax(0,1fr)}
  .player-item-controls{gap:4px;margin-top:3px}
  .player-item-controls .item-action{min-height:38px;padding:4px 5px;gap:5px}
  .player-item-controls .item-icon{flex-basis:26px;width:26px;height:26px}
  .player-item-controls .item-copy strong{font-size:10px}
  .player-item-controls .item-copy small{font-size:8px;margin-top:2px}
  .player-item-controls .hidden-icon span{font-size:12px}
}

/* ===== 오투도사 테스트 버전 12 : 실전형 알림 내역 ===== */
.notice-wrap{
  position:relative;
  z-index:80;
}
button.notice{
  appearance:none;
  border-top:0;
  border-right:0;
  border-bottom:0;
  text-align:left;
  cursor:pointer;
  font:inherit;
  position:relative;
  padding-right:42px !important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
button.notice::after{
  content:'▾';
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  color:#8da6b9;
  font-size:16px;
  transition:transform .16s ease,color .16s ease;
}
button.notice[aria-expanded="true"]::after{transform:translateY(-50%) rotate(180deg);color:#ffc531}
.notice-history{
  position:absolute;
  left:0;
  right:0;
  top:calc(100% - 3px);
  z-index:90;
  border:1px solid #355066;
  border-top:1px solid rgba(255,197,49,.45);
  border-radius:0 0 14px 14px;
  background:rgba(3,16,26,.98);
  box-shadow:0 22px 46px rgba(0,0,0,.46),0 0 0 1px rgba(255,197,49,.06) inset;
  opacity:0;
  visibility:hidden;
  transform:translateY(-5px);
  transition:opacity .14s ease,transform .14s ease,visibility .14s ease;
  overflow:hidden;
}
.notice-history.open{opacity:1;visibility:visible;transform:translateY(0)}
.notice-history-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  padding:11px 13px 9px;
  border-bottom:1px solid #203647;
  color:#ffc531;
}
.notice-history-head strong{font-size:13px;letter-spacing:.02em}
.notice-history-head span{font-size:10px;color:#8198aa;font-weight:700}
.notice-history-list{max-height:260px;overflow-y:auto;overscroll-behavior:contain;padding:5px 7px 8px;scrollbar-width:thin}
.notice-history-item{padding:9px 9px 10px;border-bottom:1px solid rgba(96,128,151,.14);border-left:3px solid #607d91;border-radius:6px;color:#d9e7f0;background:rgba(255,255,255,.018)}
.notice-history-item+ .notice-history-item{margin-top:3px}
.notice-history-item.good{border-left-color:#51e58b}.notice-history-item.warn{border-left-color:#ffb13b}.notice-history-item.danger{border-left-color:#ff646b}.notice-history-item.scan{border-left-color:#43dcff}
.notice-history-meta{font-size:10px;color:#7890a5;font-weight:800;margin-bottom:3px}
.notice-history-text{font-size:12px;line-height:1.4;font-weight:750;word-break:keep-all}
.notice-history-empty{padding:18px;text-align:center;color:#7890a5;font-size:12px}
@media(max-width:560px){
  .notice-history-head{align-items:flex-start;flex-direction:column;gap:2px}
  .notice-history-list{max-height:220px}
  .notice-history-text{font-size:11px}
}


/* ===== 오투도사 테스트 버전 13 =====
   HIDDEN 생존 점등 / AI 아이템 상태 동일 UI / lighter item state */
.hidden-btn.live,
.item-chip.live.hidden-chip{
  opacity:1 !important;
  filter:none !important;
  border-color:#ffd85d !important;
  color:#fff0aa !important;
  background:radial-gradient(circle at 18% 20%,rgba(255,234,139,.22),transparent 44%),linear-gradient(#76540b,#3d2b07) !important;
  box-shadow:0 0 26px rgba(255,190,40,.42) !important;
}
.hidden-btn:disabled.live{opacity:1 !important;filter:none !important}
.hidden-btn.spent{opacity:.34 !important;filter:grayscale(.65) saturate(.2) !important;box-shadow:none !important}
.status-only{cursor:default !important;pointer-events:none;user-select:none}
.ai-item-controls .item-action{opacity:1}
.ai-item-controls .item-action.spent{opacity:.34 !important;filter:grayscale(.65) saturate(.2)}
.ai-item-controls .scan-btn.available{box-shadow:0 0 24px rgba(58,214,255,.34)}
.ai-item-controls .scan-btn.available .item-icon{filter:none}


/* ===== oOTOo v0.1.83 : 교사방 복구 / 화면 맞춤 ===== */
.teacher-photo{
  width:92px;height:112px;flex:0 0 92px;border-radius:16px;
  background:
    linear-gradient(180deg,rgba(0,0,0,0),rgba(3,10,16,.18)),
    url('/assets/v0153/ai-teacher.webp?v=0153') center 32% / cover no-repeat;
  border:1px solid rgba(255,197,49,.55);
  box-shadow:0 0 24px rgba(255,196,50,.18);
  color:transparent;
}

/* 데스크톱에서도 한 화면 안에 오투판과 하단 버튼이 보이도록 세로 높이를 기준으로 제한 */
@media (min-width:901px){
  .practice-shell{padding-top:12px;padding-bottom:12px;gap:16px}
  .game-panel{padding:12px}
  .coach-panel{padding:18px;top:76px}
  .notice-wrap{height:50px}
  .board-wrap{width:min(100%,620px,calc(100vh - 315px));min-width:480px}
  .utility-actions{margin-top:9px}
  .dojo-head{align-items:center}
}
@media (min-width:901px) and (max-height:900px){
  .practice-shell{padding-top:8px;padding-bottom:8px}
  .game-panel{padding:10px}
  .coach-panel{padding:15px;top:72px}
  .notice-wrap{height:44px}
  .notice{padding-top:8px;padding-bottom:8px;font-size:13px}
  .board-wrap{width:min(100%,570px,calc(100vh - 300px));min-width:440px;padding:22px}
  .utility-actions{margin-top:7px}
  .teacher-photo{width:78px;height:94px;flex-basis:78px}
  .dojo-copy{font-size:13px;line-height:1.5}
  .setting-box,.lesson-box,.practice-note{margin-top:12px;padding:12px}
}
@media (max-width:900px){
  .teacher-photo{width:72px;height:86px;flex-basis:72px}
  .board-wrap{min-width:0}
}


/* ===== oOTOo v0.1.84 : 랜덤 선후공 뺑뺑이 + 우측 보조버튼 ===== */
.coach-utility-actions{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
  margin-top:10px;
}
.coach-utility-actions .secondary-btn{
  min-width:0;
  padding:9px 7px;
  font-size:11px;
  white-space:nowrap;
}
.side-roulette-overlay{
  display:none;
  position:fixed;
  inset:0;
  z-index:95;
  place-items:center;
  padding:18px;
  background:rgba(1,6,11,.82);
  backdrop-filter:blur(8px);
}
.side-roulette-overlay.show{display:grid}
.side-roulette-card{
  width:min(430px,92vw);
  padding:26px 24px 24px;
  text-align:center;
  border:1px solid rgba(255,197,49,.65);
  border-radius:22px;
  background:linear-gradient(180deg,#0b1c2b,#04101a);
  box-shadow:0 28px 90px rgba(0,0,0,.65),0 0 36px rgba(255,197,49,.11);
}
.side-roulette-brand{font-size:11px;font-weight:900;letter-spacing:.2em;color:var(--gold)}
.side-roulette-title{margin-top:5px;font-size:27px;font-weight:1000;color:#f7fbff}
.roulette-disc{
  width:176px;
  height:176px;
  margin:20px auto 17px;
  border-radius:50%;
  display:grid;
  place-items:center;
  position:relative;
  background:conic-gradient(#101820 0 50%,#f6f7f8 50% 100%);
  border:7px solid #e8b52b;
  box-shadow:inset 0 0 0 5px #08111a,0 0 30px rgba(255,197,49,.25);
}
.roulette-disc::after{
  content:"";
  position:absolute;
  top:-19px;
  left:50%;
  transform:translateX(-50%);
  width:0;height:0;
  border-left:12px solid transparent;
  border-right:12px solid transparent;
  border-top:22px solid #ffcf48;
  filter:drop-shadow(0 2px 3px #000);
}
.roulette-disc span{
  display:grid;
  place-items:center;
  width:82px;height:82px;
  border-radius:50%;
  background:#07131e;
  border:2px solid #ffcd44;
  color:#ffcf49;
  font-size:13px;
  font-weight:1000;
  letter-spacing:.08em;
}
.roulette-disc.spinning{animation:sideRouletteSpin .62s linear infinite}
.roulette-disc.result-black{background:#101820;box-shadow:inset 0 0 0 5px #08111a,0 0 38px rgba(255,197,49,.38)}
.roulette-disc.result-white{background:#f6f7f8;box-shadow:inset 0 0 0 5px #cfd6dc,0 0 38px rgba(255,197,49,.38)}
@keyframes sideRouletteSpin{to{transform:rotate(360deg)}}
.roulette-result{font-size:20px;font-weight:1000;color:#ffe180;min-height:30px}
.roulette-guide{margin-top:4px;font-size:11px;color:#8fa5b8}
@media(max-width:900px){
  .coach-utility-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
  .coach-utility-actions .secondary-btn{display:block!important;font-size:10px;padding:8px 5px}
}

/* ===== oOTOo v0.1.85 : LOCKED v0.1.84 위 UI/복기/라운지/말풍선 확장 ===== */
:root{--v85-gold:#ffc531;--v85-cyan:#3ad6ff;--v85-orange:#ff9c43;--v85-purple:#b88cff}
html,body{min-height:100%;height:100%;overflow:hidden}
body{background:radial-gradient(circle at 55% 0,#12263a 0,#06111b 34%,#02070d 74%)}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.topbar{display:none!important}
.v0185-shell{width:min(1720px,100%);height:100vh;margin:0 auto;padding:10px;display:grid;grid-template-columns:255px minmax(720px,1fr) 350px;gap:10px;align-items:stretch}
.game-panel,.coach-panel,.left-rail{min-height:0}
.game-panel{padding:10px;border-radius:18px;display:flex;flex-direction:column;overflow:hidden}
.coach-panel{position:static!important;top:auto!important;height:100%;padding:14px;border-radius:18px;display:flex;flex-direction:column;overflow:visible}
.left-rail{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:9px;border:1px solid rgba(255,197,49,.34);border-radius:18px;padding:10px;background:linear-gradient(180deg,rgba(8,21,33,.98),rgba(3,11,18,.99));box-shadow:0 18px 55px rgba(0,0,0,.32);overflow:hidden}
.left-logo-card{height:112px;border:1px solid rgba(255,197,49,.25);border-radius:14px;background:radial-gradient(circle at 50% 20%,rgba(255,197,49,.08),transparent 65%);display:grid;place-items:center;overflow:hidden}
.left-logo-card img{width:92%;height:92%;object-fit:contain;display:block;filter:drop-shadow(0 0 14px rgba(255,197,49,.18))}
.warrior-stage{position:relative;min-height:0;border:1px solid rgba(255,197,49,.25);border-radius:14px;overflow:hidden;background:radial-gradient(circle at 50% 34%,#172536 0,#07111b 58%,#02070d 100%)}
.warrior-stage::after{content:"";position:absolute;inset:auto 0 0;height:42%;background:linear-gradient(transparent,rgba(0,0,0,.62));pointer-events:none}
.warrior-stage::before{content:"오순이 응원석";position:absolute;left:12px;top:12px;z-index:4;padding:6px 10px;border-radius:999px;border:1px solid rgba(255,211,92,.6);background:rgba(4,13,22,.82);color:#ffe08b;font-size:11px;font-weight:900;letter-spacing:.03em;box-shadow:0 8px 24px rgba(0,0,0,.28)}

.warrior-stage img{width:100%;height:100%;object-fit:cover;object-position:center 55%;display:block;transition:opacity .35s ease,transform .7s ease;transform:scale(1.015)}
.warrior-stage.swap img{opacity:.2;transform:scale(1.04)}
.warrior-bubble{position:absolute;z-index:4;left:12px;right:12px;bottom:14px;min-height:58px;padding:10px 12px 11px;border:1px solid rgba(255,211,92,.75);border-radius:15px;background:rgba(3,12,20,.92);box-shadow:0 8px 26px rgba(0,0,0,.46),0 0 22px rgba(255,197,49,.10);color:#f6f8fb;font-size:13px;font-weight:850;line-height:1.35;word-break:keep-all}
.warrior-bubble::before{content:"";position:absolute;left:30px;top:-10px;border-left:10px solid transparent;border-right:10px solid transparent;border-bottom:10px solid rgba(255,211,92,.75)}
.warrior-bubble::after{content:"";position:absolute;left:31px;top:-8px;border-left:9px solid transparent;border-right:9px solid transparent;border-bottom:9px solid #07131e}
.lounge-card{border:1px solid rgba(255,197,49,.38);border-radius:14px;padding:10px;background:linear-gradient(180deg,#0b1722,#050b11);box-shadow:inset 0 1px rgba(255,255,255,.03)}
.lounge-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.lounge-head b{color:#f3c754;font-size:13px}.lounge-head small{font-size:8px;color:#8296a6}.lounge-track{margin-top:5px;height:28px;overflow:hidden;color:#dce7ee;font-size:10px;line-height:1.35;font-weight:750}
.lounge-controls{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:7px}.lounge-controls button{height:31px;border:1px solid #3c4f61;border-radius:9px;background:#101c27;color:#e9f0f5;font-weight:900;cursor:pointer}.lounge-controls button:hover{border-color:#d8ae39;color:#ffd866}
.lounge-progress-row,.lounge-volume-row{display:grid;align-items:center;gap:6px;margin-top:7px}.lounge-progress-row{grid-template-columns:auto 1fr auto}.lounge-volume-row{grid-template-columns:auto 1fr auto}.lounge-progress-row span,.lounge-volume-row b{font-size:8px;color:#8fa0ae}.lounge-card input[type="range"]{width:100%;accent-color:#e4b53b;cursor:pointer}

.score-row{display:grid!important;grid-template-columns:minmax(0,1fr) 74px minmax(0,1fr)!important;gap:8px!important;align-items:stretch!important;flex:0 0 auto}
.player-card{position:relative;display:grid!important;grid-template-columns:52px minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;gap:5px 10px!important;align-items:center!important;min-height:130px;padding:10px 12px!important;border-radius:14px!important;text-align:left!important}
.player-avatar{grid-column:1;grid-row:1;width:48px;height:48px;border-radius:50%;object-fit:cover;object-position:center 30%;border:1px solid rgba(255,208,77,.55);background:#07121b;box-shadow:0 0 16px rgba(255,197,49,.10)}
.player-info{grid-column:2;grid-row:1;align-self:center}.player-info b{font-size:17px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.score-stat{grid-column:3;grid-row:1;display:flex;align-items:baseline;gap:6px;justify-self:end;white-space:nowrap}.score-stat small{font-size:11px;color:#9fb0bf}.score-stat strong{font-size:26px;color:#ffd34d;line-height:1}
.turn-badge{position:absolute;right:10px;top:10px;z-index:4}
.player-card.active .score-stat{margin-right:54px}
.player-item-controls{grid-column:1/-1!important;grid-row:2!important;margin-top:0!important;gap:6px!important}
.player-item-controls .item-action{min-height:43px!important;height:43px!important;padding:4px 8px!important;gap:7px!important;border-radius:10px!important}
.player-item-controls .item-icon{width:29px!important;height:29px!important;flex-basis:29px!important}.player-item-controls .hidden-icon span{font-size:14px!important}.player-item-controls .item-copy strong{font-size:12px!important}.player-item-controls .item-copy small{display:none!important}
.center-status{align-self:center;font-size:28px!important}.center-status small{font-size:10px!important;margin-top:4px}

.notice-wrap{height:42px!important;flex:0 0 42px!important;margin-top:6px!important}.notice{height:40px!important;padding:8px 40px 8px 12px!important;border-left:3px solid #ffd14e!important;border-top:1px solid rgba(255,207,68,.65)!important;border-right:1px solid rgba(255,207,68,.35)!important;border-bottom:1px solid rgba(255,207,68,.35)!important;box-shadow:0 0 0 1px rgba(255,197,49,.05) inset,0 0 17px rgba(255,197,49,.11);animation:noticeGlowV85 2.1s ease-in-out infinite alternate}
.notice.good{border-color:#51e58b!important;box-shadow:0 0 18px rgba(81,229,139,.12)}.notice.warn{border-color:#ffb13b!important;box-shadow:0 0 18px rgba(255,177,59,.13)}.notice.danger{border-color:#ff646b!important;box-shadow:0 0 20px rgba(255,100,107,.16)}.notice.scan{border-color:#43dcff!important;box-shadow:0 0 20px rgba(67,220,255,.14)}
@keyframes noticeGlowV85{to{filter:brightness(1.08);box-shadow:0 0 0 1px rgba(255,197,49,.07) inset,0 0 24px rgba(255,197,49,.17)}}

.board-wrap{flex:1 1 auto!important;width:min(100%,680px,calc(100vh - 196px))!important;min-width:0!important;max-width:none!important;aspect-ratio:1/1;margin:5px auto 0!important;padding:20px!important;border-radius:14px!important}
.replay-controls{display:none;grid-template-columns:repeat(5,minmax(0,1fr)) auto;gap:6px;align-items:center;flex:0 0 auto;margin:7px auto 0;width:min(100%,760px);padding:7px;border:1px solid rgba(255,197,49,.35);border-radius:12px;background:#07131e}
.replay-controls.show{display:grid}.replay-controls button{min-width:0;height:34px;border:1px solid #40566b;border-radius:8px;background:#0c1a26;color:#e8f0f5;font-size:10px;font-weight:900;cursor:pointer}.replay-controls button:hover{border-color:#e2b33e;color:#ffd45c}.replay-controls .replay-close{border-color:#805245;color:#ffd8cb}.replay-status{grid-column:1/-1;text-align:center;font-size:10px;color:#91a6b7}
body.replay-mode .board-wrap{width:min(100%,620px,calc(100vh - 260px))!important}

.teacher-photo{width:78px!important;height:96px!important;flex-basis:78px!important;background:url('assets/warrior-white-scan.png?v=0196') center 22% / cover no-repeat!important}
.dojo-head{gap:12px!important}.dojo-head h1{font-size:27px!important}.dojo-copy{margin:10px 0 0!important;font-size:13px!important;line-height:1.5!important;color:#c8d5df}.gold-text{color:#ffd04d}.cyan-text{color:#5eeaff}
.setting-box{margin-top:12px!important;padding:11px!important}.setting-box select{padding:9px!important;margin-bottom:8px!important}.setting-box .gold-btn{padding:11px!important}
.real-game-info{margin-top:10px;padding:11px;border:1px solid #2b4256;border-radius:13px;background:#05111c}.real-game-info h2{margin:0;color:#f5ce62;font-size:15px}.real-game-info p{margin:5px 0 8px;color:#8fa4b5;font-size:10px;line-height:1.4}
.feature-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}.feature-chip{position:relative;border:1px solid #455b70;border-radius:9px;padding:8px 5px;background:#0a1722;color:#eef4f8;font-size:10px;font-weight:900;cursor:help}.feature-chip.time{color:#ffd66c;border-color:#80651e}.feature-chip.bet{color:#63ddff;border-color:#1f6b82}.feature-chip.cheer{color:#ff9e74;border-color:#7a4732}.feature-chip.hidden-find{color:#c7a9ff;border-color:#5b467a}
.feature-chip::after{content:attr(data-tip);position:absolute;z-index:120;left:50%;bottom:calc(100% + 9px);transform:translateX(-50%) translateY(4px);width:230px;padding:9px 10px;border:1px solid rgba(255,197,49,.45);border-radius:9px;background:#030c14;color:#e8f0f5;font-size:10px;font-weight:700;line-height:1.45;text-align:left;box-shadow:0 12px 32px rgba(0,0,0,.55);opacity:0;visibility:hidden;pointer-events:none;transition:.14s}.feature-chip:hover::after,.feature-chip:focus-visible::after{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0)}
.goldball-info{margin-top:8px;padding:9px 10px;border:1px solid #6c5221;border-radius:10px;background:linear-gradient(135deg,rgba(126,83,4,.18),rgba(6,17,27,.94));display:grid;gap:3px}.goldball-info b{color:#ffd459;font-size:13px}.goldball-info span{color:#f6ead0;font-size:10px;font-weight:850}.goldball-info small{color:#e9bd4d;font-size:9px;line-height:1.35}
.coach-spacer{flex:1 1 auto;min-height:6px}.compact-rules{display:grid;gap:5px;margin-top:7px}.compact-rules>div{display:grid;grid-template-columns:90px 1fr;gap:7px;align-items:center;min-height:36px;padding:6px 8px;border:1px solid #263d51;border-radius:9px;background:#06131e}.compact-rules b{font-size:10px;color:#f4ca5a}.compact-rules span{font-size:9px;line-height:1.28;color:#a7b7c4}.compact-rules>div:nth-child(2) b{color:#5ce8ff}.compact-rules>div:nth-child(3) b{color:#ffb36a}
.coach-bottom-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:7px}.coach-bottom-actions .secondary-btn{min-width:0;padding:9px 4px!important;font-size:10px!important;white-space:nowrap}

.result-card{padding-top:30px!important}.result-close{position:absolute;right:11px;top:8px;width:30px;height:30px;border:0;border-radius:50%;background:#14212c;color:#e8f0f4;font-size:20px;cursor:pointer}.result-actions{display:grid;grid-template-columns:1fr 1.3fr 1fr;gap:7px;margin-top:18px}.result-actions button{min-height:49px;border:1px solid #445c70;border-radius:11px;background:#0c1a27;color:#e8f0f5;font-weight:1000;cursor:pointer}.result-actions .rematch-btn{width:auto!important;margin:0!important;border:0!important;background:linear-gradient(#ffe479,#ffb91f)!important;color:#1c1405!important}.result-actions #quitBtn{border-color:#77504a;color:#ffd4cc}

@media(max-width:1450px){.v0185-shell{grid-template-columns:220px minmax(650px,1fr) 320px}.left-logo-card{height:96px}.warrior-bubble{font-size:11px}.board-wrap{width:min(100%,620px,calc(100vh - 196px))!important}.coach-panel{padding:11px}.teacher-photo{width:68px!important;height:82px!important;flex-basis:68px!important}.dojo-head h1{font-size:23px!important}.real-game-info{padding:9px}.compact-rules>div{grid-template-columns:78px 1fr}.compact-rules span{font-size:8px}}
@media(max-height:850px) and (min-width:901px){.v0185-shell{padding:6px}.left-logo-card{height:88px}.lounge-card{padding:8px}.lounge-track{height:23px}.warrior-bubble{min-height:48px;font-size:10px}.player-card{min-height:116px;padding:8px 10px!important}.player-item-controls .item-action{height:38px!important;min-height:38px!important}.board-wrap{width:min(100%,610px,calc(100vh - 180px))!important;padding:17px!important}.notice-wrap{height:38px!important;flex-basis:38px!important}.notice{height:36px!important}.coach-panel{padding:10px}.dojo-copy{font-size:11px!important}.setting-box{margin-top:8px!important;padding:8px!important}.real-game-info{margin-top:7px;padding:8px}.real-game-info p{display:none}.goldball-info{padding:7px}.compact-rules>div{min-height:31px;padding:5px 7px}.coach-bottom-actions{margin-top:5px}}
@media(max-width:1100px){html,body{height:auto;overflow:auto}.v0185-shell{height:auto;grid-template-columns:1fr;padding:8px}.left-rail{grid-template-columns:150px 1fr 240px;grid-template-rows:170px;height:auto}.left-logo-card{height:100%}.warrior-stage{height:170px}.lounge-card{height:170px}.coach-panel{height:auto}.board-wrap{width:min(100%,720px)!important}.feature-chip::after{display:none}}

/* ===== oOTOo v0.1.87 : DEMO OPEN polish ===== */
@media(min-width:1451px){
  .v0185-shell{grid-template-columns:300px minmax(720px,1fr) 410px!important;gap:10px!important}
}
@media(min-width:1101px) and (max-width:1450px){
  .v0185-shell{grid-template-columns:250px minmax(650px,1fr) 360px!important;gap:8px!important}
}

/* 좌측 큰 캐릭터: 다양한 흑/백 전사 공통 크롭 + 큰 말풍선 */
.warrior-stage img{object-fit:cover!important;object-position:center 45%!important}
.warrior-bubble{
  left:auto!important;right:10px!important;bottom:13%!important;width:calc(100% - 20px)!important;
  min-height:78px!important;padding:13px 14px!important;font-size:15px!important;line-height:1.45!important;
  border-width:2px!important;box-shadow:0 10px 30px rgba(0,0,0,.55),0 0 24px rgba(255,197,49,.20)!important
}
.warrior-bubble::before{left:auto!important;right:34px!important;top:-12px!important}
.warrior-bubble::after{left:auto!important;right:35px!important;top:-9px!important}

/* 우측 오투 교사: 캐릭터 안 잘리게 + 공백 대신 글씨 가독성 강화 */
.teacher-photo{width:92px!important;height:110px!important;flex-basis:92px!important;background-size:contain!important;background-repeat:no-repeat!important;background-position:center top!important;background-color:#07131e!important}
.dojo-head h1{font-size:31px!important}.dojo-head>div:last-child>span{font-size:12px!important;letter-spacing:.16em}
.dojo-copy{font-size:15px!important;line-height:1.6!important}
.setting-box label{font-size:12px!important}.setting-box select{font-size:15px!important}.setting-box .gold-btn{font-size:15px!important}
.real-game-info{padding:14px!important}.real-game-info h2{font-size:18px!important}.real-game-info p{font-size:12px!important;line-height:1.55!important;display:block!important}
.feature-chip{padding:10px 6px!important;font-size:12px!important}.feature-chip::after{width:270px!important;padding:12px!important;font-size:12px!important;line-height:1.55!important}
.goldball-info{padding:11px 12px!important;gap:5px!important}.goldball-info b{font-size:16px!important}.goldball-info span{font-size:12px!important}.goldball-info small{font-size:11px!important;line-height:1.5!important}
.compact-rules{gap:7px!important}.compact-rules>div{grid-template-columns:102px 1fr!important;min-height:42px!important;padding:8px 9px!important}.compact-rules b{font-size:12px!important}.compact-rules span{font-size:11px!important;line-height:1.35!important}
.coach-bottom-actions .secondary-btn{font-size:12px!important;min-height:38px!important}

/* 선수 박스는 중앙에서 약간 더 단단하게, 정보는 크게 */
.player-card{min-width:0!important}.player-info b{font-size:18px!important}.score-stat small{font-size:12px!important}.score-stat strong{font-size:29px!important}

/* 8칸 흑/백 뺑뺑이 */
.roulette-disc{background:repeating-conic-gradient(#101820 0deg 45deg,#f7f8f9 45deg 90deg)!important;box-shadow:inset 0 0 0 5px #08111a,0 0 34px rgba(255,197,49,.28)!important}
.roulette-disc::before{content:"";position:absolute;inset:8px;border-radius:50%;background:repeating-conic-gradient(transparent 0deg 44deg,rgba(255,197,49,.72) 44deg 45deg);pointer-events:none}
.roulette-disc.result-black{background:#101820!important}.roulette-disc.result-white{background:#f6f7f8!important}
.roulette-result{font-size:23px!important}.roulette-guide{font-size:13px!important}

/* 종료 팝업/복기 가독성 */
.result-card{width:min(560px,92vw)!important;padding:24px 24px 22px!important}
.result-victory-image{display:block;width:150px;height:205px;object-fit:cover;object-position:center 32%;margin:0 auto 8px;border:1px solid rgba(255,197,49,.55);border-radius:13px;box-shadow:0 12px 32px rgba(0,0,0,.5)}
.result-victory-image[hidden]{display:none!important}
.result-title{font-size:42px!important}.result-reason{font-size:22px!important}.result-score{font-size:18px!important}.result-actions button{font-size:17px!important;min-height:56px!important}
.result-close{width:36px!important;height:36px!important;font-size:24px!important}
.replay-controls button{font-size:12px!important;height:38px!important}.replay-status{font-size:12px!important}

@media(max-height:850px) and (min-width:901px){
  .warrior-bubble{min-height:62px!important;font-size:12px!important;padding:10px!important;bottom:9%!important}
  .teacher-photo{width:76px!important;height:88px!important;flex-basis:76px!important}
  .dojo-copy{font-size:12px!important}.real-game-info h2{font-size:15px!important}.real-game-info p{font-size:10px!important}
  .feature-chip{font-size:10px!important;padding:7px 5px!important}.goldball-info b{font-size:13px!important}.goldball-info span{font-size:10px!important}.goldball-info small{font-size:9px!important}
  .compact-rules>div{min-height:32px!important;padding:5px 7px!important}.compact-rules b{font-size:10px!important}.compact-rules span{font-size:9px!important}
  .result-victory-image{width:110px;height:142px}.result-title{font-size:34px!important}.result-reason{font-size:17px!important}.result-score{font-size:15px!important}
}


/* ===== v0.1.88 HOTFIX : 오순이 연습실 글씨 확대 ===== */
@media(min-width:1101px){
  .warrior-stage::before{font-size:13px!important;padding:7px 11px!important}
  .warrior-bubble{font-size:17px!important;line-height:1.5!important}

  .lounge-head b{font-size:15px!important}
  .lounge-head small{font-size:10px!important}
  .lounge-track{font-size:11px!important;line-height:1.45!important}
  .lounge-progress-row span,.lounge-volume-row b{font-size:10px!important}

  .player-info b{font-size:21px!important}
  .score-stat small{font-size:14px!important}
  .score-stat strong{font-size:34px!important}
  .player-item-controls .item-copy strong{font-size:14px!important}
  .center-status{font-size:32px!important}
  .center-status small{font-size:12px!important}
  .notice{font-size:15px!important;font-weight:850!important}

  .dojo-head h1{font-size:34px!important}
  .dojo-head>div:last-child>span{font-size:13px!important}
  .dojo-copy{font-size:16px!important;line-height:1.65!important}

  .setting-box label{font-size:14px!important}
  .setting-box select{font-size:17px!important}
  .setting-box .gold-btn{font-size:17px!important}

  .real-game-info h2{font-size:20px!important}
  .real-game-info p{font-size:13px!important;line-height:1.6!important}
  .feature-chip{font-size:13px!important}
  .feature-chip::after{font-size:13px!important}

  .goldball-info b{font-size:18px!important}
  .goldball-info span{font-size:13px!important}
  .goldball-info small{font-size:12px!important;line-height:1.55!important}

  .compact-rules>div{grid-template-columns:112px 1fr!important}
  .compact-rules b{font-size:13px!important}
  .compact-rules span{font-size:12px!important;line-height:1.45!important}
  .coach-bottom-actions .secondary-btn{font-size:13px!important}
}

/* 낮은 높이 모니터에서도 너무 작아지지 않도록 v0.1.87 축소 규칙 보정 */
@media(max-height:850px) and (min-width:1101px){
  .warrior-bubble{font-size:14px!important}
  .player-info b{font-size:19px!important}
  .score-stat strong{font-size:30px!important}
  .notice{font-size:13px!important}
  .dojo-head h1{font-size:28px!important}
  .dojo-copy{font-size:13px!important}
  .setting-box label{font-size:12px!important}
  .setting-box select,.setting-box .gold-btn{font-size:14px!important}
  .real-game-info h2{font-size:16px!important}
  .real-game-info p{font-size:11px!important}
  .feature-chip{font-size:11px!important}
  .goldball-info b{font-size:14px!important}
  .goldball-info span{font-size:11px!important}
  .goldball-info small{font-size:10px!important}
  .compact-rules b{font-size:11px!important}
  .compact-rules span{font-size:10px!important}
}


/* ===== v0.1.88 MOBILE AI LAYOUT FIX ===== */
.mobile-coach-extras{display:none}
.feature-tip-box{display:none;margin-top:8px;padding:9px 10px;border:1px solid #3b6579;border-radius:9px;background:#071927;color:#dff7ff;font-size:11px;line-height:1.5}
.feature-tip-box.show{display:block}.feature-chip.tip-open{box-shadow:0 0 0 2px rgba(255,197,49,.22),0 0 18px rgba(255,197,49,.12)!important;filter:brightness(1.12)}

@media(max-width:700px){
  html,body{height:auto!important;min-height:100%!important;overflow-x:hidden!important;overflow-y:auto!important}
  .v0185-shell{width:100%!important;height:auto!important;display:grid!important;grid-template-columns:1fr!important;gap:7px!important;padding:6px!important;align-items:start!important}
  .coach-panel{order:1!important;height:auto!important;min-width:0!important;width:100%!important;max-width:100%!important;padding:10px!important;overflow:visible!important;border-radius:14px!important}
  .game-panel{order:2!important;height:auto!important;min-width:0!important;width:100%!important;max-width:100%!important;overflow:visible!important;padding:6px!important;border-radius:14px!important}
  .left-rail{order:3!important;height:auto!important;min-width:0!important;width:100%!important;max-width:100%!important;display:grid!important;grid-template-columns:1fr!important;grid-template-rows:minmax(360px,62vh) auto!important;gap:7px!important;padding:6px!important;overflow:visible!important}
  .mobile-coach-extras{order:4!important;display:block!important;min-width:0!important;width:100%!important;max-width:100%!important;padding:0 0 8px!important}
  .coach-panel>*,.game-panel>*,.left-rail>*,.mobile-coach-extras>*{min-width:0!important;max-width:100%!important}
  .mobile-coach-extras[hidden]{display:none!important}

  /* 시작 선택은 맨 위에 간단히, 그 다음 바로 오투판 */
  .dojo-head{display:flex!important;gap:9px!important;align-items:center!important}.teacher-photo{width:54px!important;height:64px!important;flex-basis:54px!important}.dojo-head h1{font-size:24px!important}.dojo-head>div:last-child>span{font-size:9px!important}
  .dojo-copy{font-size:13px!important;line-height:1.5!important;margin:7px 0 0!important}.setting-box{margin-top:8px!important;padding:8px!important;display:grid!important;grid-template-columns:1fr 1.1fr!important;gap:7px!important;align-items:end!important}.setting-box label{grid-column:1/-1!important;font-size:11px!important;margin:0!important}.setting-box select{margin:0!important;min-width:0!important;height:45px!important;padding:7px!important;font-size:14px!important}.setting-box .gold-btn{margin:0!important;min-height:45px!important;padding:8px!important;font-size:14px!important}.coach-spacer{display:none!important}

  /* 선수 박스: 좁은 화면에서 이름/점수/HIDDEN/SCAN이 겹치지 않게 3단 배치 */
  .score-row{display:grid!important;grid-template-columns:minmax(0,1fr) 46px minmax(0,1fr)!important;gap:4px!important;align-items:stretch!important}
  .player-card{display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;grid-template-rows:auto auto auto!important;gap:4px 6px!important;min-width:0!important;min-height:132px!important;padding:7px!important;overflow:hidden!important}
  .player-avatar{grid-column:1!important;grid-row:1!important;width:36px!important;height:36px!important}
  .player-info{grid-column:2!important;grid-row:1!important;min-width:0!important}.player-info b{font-size:12px!important;line-height:1.25!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .score-stat{grid-column:1/-1!important;grid-row:2!important;justify-self:start!important;display:flex!important;align-items:baseline!important;gap:5px!important;margin:0!important}.score-stat small{font-size:9px!important}.score-stat strong{font-size:23px!important}
  .player-card.active .score-stat{margin-right:0!important}.turn-badge{display:none!important}
  .player-item-controls{grid-column:1/-1!important;grid-row:3!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:4px!important;min-width:0!important}
  .player-item-controls .item-action{width:100%!important;min-width:0!important;height:38px!important;min-height:38px!important;padding:3px 4px!important;gap:3px!important;justify-content:center!important;overflow:hidden!important}
  .player-item-controls .item-icon{width:24px!important;height:24px!important;flex-basis:24px!important}.player-item-controls .hidden-icon span{font-size:11px!important}.player-item-controls .item-copy{min-width:0!important}.player-item-controls .item-copy strong{font-size:8.5px!important;letter-spacing:-.02em!important}.player-item-controls .item-copy small{display:none!important}
  .center-status{align-self:center!important;font-size:21px!important;line-height:1!important}.center-status small{font-size:8px!important;margin-top:4px!important}

  .notice-wrap{height:auto!important;min-height:42px!important;flex-basis:auto!important;margin-top:5px!important}.notice{height:auto!important;min-height:40px!important;font-size:12px!important;line-height:1.4!important;padding:8px 28px 8px 10px!important}
  .board-wrap{width:100%!important;max-width:100%!important;height:auto!important;aspect-ratio:1/1!important;margin:5px auto 0!important;padding:10px!important;border-radius:12px!important;flex:none!important}

  /* 큰 캐릭터가 모바일에서도 사라지지 않도록 세로 카드로 표시 */
  .left-logo-card{display:none!important}.warrior-stage{display:block!important;width:100%!important;height:min(62vh,500px)!important;min-height:360px!important;border-radius:14px!important}.warrior-stage img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important}.warrior-stage::before{font-size:11px!important;padding:6px 9px!important}.warrior-bubble{width:calc(100% - 20px)!important;left:10px!important;right:10px!important;bottom:12px!important;min-height:58px!important;padding:10px!important;font-size:13px!important;line-height:1.45!important}
  .lounge-card{height:auto!important;min-height:0!important;padding:9px!important}.lounge-head b{font-size:13px!important}.lounge-track{font-size:10px!important;height:auto!important;min-height:28px!important}

  /* 실전 기능은 오투판 아래로 이동하고, 터치하면 설명 박스가 열린다. */
  .mobile-coach-extras .real-game-info,.mobile-coach-extras .compact-rules,.mobile-coach-extras .coach-bottom-actions{display:block!important;margin:7px 0 0!important}
  .mobile-coach-extras .real-game-info{padding:12px!important}.mobile-coach-extras .real-game-info h2{font-size:18px!important}.mobile-coach-extras .real-game-info p{display:block!important;font-size:12px!important;line-height:1.5!important}.mobile-coach-extras .feature-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important}.mobile-coach-extras .feature-chip{min-height:44px!important;padding:8px!important;font-size:12px!important;cursor:pointer!important}.feature-chip::after{display:none!important}.feature-tip-box{font-size:12px!important}
  .mobile-coach-extras .goldball-info{padding:10px!important}.mobile-coach-extras .goldball-info b{font-size:15px!important}.mobile-coach-extras .goldball-info span{font-size:11px!important}.mobile-coach-extras .goldball-info small{font-size:10px!important}
  .mobile-coach-extras .compact-rules{display:grid!important;gap:6px!important}.mobile-coach-extras .compact-rules>div{grid-template-columns:92px 1fr!important;min-height:43px!important;padding:8px!important}.mobile-coach-extras .compact-rules b{font-size:11px!important}.mobile-coach-extras .compact-rules span{font-size:10px!important;line-height:1.35!important}
  .mobile-coach-extras .coach-bottom-actions{display:grid!important;grid-template-columns:1fr 1fr 1fr!important;gap:6px!important}.mobile-coach-extras .coach-bottom-actions .secondary-btn{display:block!important;min-height:42px!important;font-size:11px!important}

  .result-card{width:94vw!important;max-width:94vw!important}.result-victory-image{width:105px!important;height:145px!important}.result-title{font-size:30px!important}.result-reason{font-size:15px!important}.result-score{font-size:13px!important}.result-actions button{font-size:12px!important;min-height:46px!important}
}


/* ===== v0.1.88 추가수정 : 모바일 대국 종료창 버튼 잘림 방지 ===== */
@media(max-width:680px){
  /* 결과창을 게임 영역 absolute가 아니라 휴대폰 화면 기준으로 띄움 */
  .result-overlay{
    position:fixed!important;
    inset:0!important;
    z-index:99999!important;
    align-items:flex-start!important;
    justify-content:center!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    padding:
      max(8px,env(safe-area-inset-top))
      8px
      max(12px,env(safe-area-inset-bottom))!important;
  }

  /* 한 화면 안에 핵심 결과 + 버튼이 들어오도록 높이 제한 */
  .result-card{
    position:relative!important;
    width:min(94vw,520px)!important;
    max-width:94vw!important;
    max-height:calc(100dvh - 20px)!important;
    margin:auto 0!important;
    padding:18px 12px 10px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    border-radius:17px!important;
    -webkit-overflow-scrolling:touch!important;
  }

  .result-close{
    position:sticky!important;
    float:right!important;
    top:0!important;
    z-index:4!important;
    width:34px!important;
    height:34px!important;
  }

  .result-brand{font-size:10px!important}
  .result-victory-image{
    width:88px!important;
    height:112px!important;
    margin:0 auto 5px!important;
    border-radius:10px!important;
  }
  .result-title{
    margin-top:4px!important;
    font-size:28px!important;
    line-height:1.02!important;
  }
  .result-reason{
    margin-top:7px!important;
    font-size:15px!important;
    line-height:1.25!important;
  }
  .result-score{
    margin-top:7px!important;
    font-size:13px!important;
    line-height:1.3!important;
  }

  /* 가장 중요한 버튼은 결과창 하단에 항상 보이게 고정 */
  .result-actions{
    position:sticky!important;
    bottom:0!important;
    z-index:5!important;
    display:grid!important;
    grid-template-columns:.9fr 1.25fr .9fr!important;
    gap:6px!important;
    margin-top:10px!important;
    padding:8px 0 2px!important;
    background:linear-gradient(180deg,rgba(7,17,27,.08),#07111b 28%)!important;
  }
  .result-actions button{
    min-width:0!important;
    min-height:44px!important;
    padding:7px 4px!important;
    font-size:12px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
  }
}

/* 세로가 아주 짧은 휴대폰에서도 버튼 우선 */
@media(max-width:680px) and (max-height:700px){
  .result-victory-image{width:70px!important;height:88px!important}
  .result-title{font-size:24px!important}
  .result-reason{font-size:13px!important}
  .result-score{font-size:11px!important}
  .result-actions button{min-height:40px!important;font-size:11px!important}
}


/* ===== v0.1.88 추가수정 : 현재 착수 턴 선수박스 외곽선 강화 ===== */
.player-card.active{
  box-sizing:border-box!important;
  border:3px solid var(--gold)!important;
  box-shadow:
    0 0 0 1px rgba(255,197,49,.42),
    0 0 26px rgba(255,197,49,.26),
    inset 0 0 15px rgba(255,197,49,.07)!important;
}
@media(max-width:680px){
  .player-card.active{
    border-width:3px!important;
    box-shadow:
      0 0 0 1px rgba(255,197,49,.45),
      0 0 18px rgba(255,197,49,.22),
      inset 0 0 10px rgba(255,197,49,.06)!important;
  }
}


/* v0.1.95 모바일 터치 확인 */
@media(max-width:700px){.notice{line-height:1.45}.board-wrap::after{content:"모바일은 같은 칸 두 번 터치하면 착수/SCAN돼요~";display:block;margin-top:8px;font-size:11px;color:#9fb2c1;text-align:center}}

/* v0.1.95 우측 기능툴팁: 화면 바깥으로 잘리지 않도록 안쪽으로 노출 */
@media(min-width:1101px){.feature-grid .feature-chip:nth-child(odd)::after{left:0!important;right:auto!important;transform:translateY(4px)!important}.feature-grid .feature-chip:nth-child(even)::after{left:auto!important;right:0!important;transform:translateY(4px)!important}.feature-grid .feature-chip:nth-child(odd):hover::after,.feature-grid .feature-chip:nth-child(odd):focus-visible::after,.feature-grid .feature-chip:nth-child(even):hover::after,.feature-grid .feature-chip:nth-child(even):focus-visible::after{transform:translateY(0)!important}}

/* v0.1.97 모바일 2터치 첫 선택 흔적: 교차점 중심의 완전한 원형 */
.mobile-pick,.mobilePick{outline:4px solid #ffd84d!important;box-shadow:0 0 0 3px #111b,0 0 20px #ffd84d!important}
.cell.touch-candidate{z-index:20!important;overflow:visible!important;outline:none!important;box-shadow:none!important}
.cell.touch-candidate::after{content:''!important;position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;width:30px!important;height:30px!important;aspect-ratio:auto!important;box-sizing:border-box!important;border:4px solid #ffd84d!important;border-radius:50%!important;background:rgba(255,216,77,.15)!important;box-shadow:0 0 0 3px rgba(0,0,0,.7),0 0 18px #ffd84d!important;pointer-events:none!important}
@media(max-width:560px){.cell.touch-candidate::after{width:28px!important;height:28px!important;border-width:3px!important}}


/* v0.1.96 final readability lock: HIDDEN/SCAN/black-forbidden guide */
.compact-rules>div{min-height:45px!important;padding:8px 10px!important}
.compact-rules b{font-size:14px!important;line-height:1.2!important}
.compact-rules span{font-size:13px!important;line-height:1.5!important}
@media(max-width:700px){
  .mobile-coach-extras .compact-rules>div{grid-template-columns:94px 1fr!important;min-height:46px!important;padding:8px 9px!important}
  .mobile-coach-extras .compact-rules b{font-size:13px!important;line-height:1.25!important}
  .mobile-coach-extras .compact-rules span{font-size:12px!important;line-height:1.45!important}
}


/* ===== v0.2.00 안정화 ===== */
.score-row{min-width:0}
.player-card{min-width:0;overflow:hidden}
.player-info,.player-item-controls{min-width:0}
@media(max-width:560px){
  .score-row{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;align-items:stretch!important}
  .player-card{min-width:0!important;padding:5px!important}
  .player-item-controls{gap:3px!important;flex-wrap:nowrap!important}
  .item-action{min-width:0!important;width:auto!important;min-height:48px!important;padding:5px 6px!important;gap:4px!important}
  .item-icon{width:30px!important;height:30px!important;flex-basis:30px!important}.item-copy strong{font-size:11px!important}.item-copy small{font-size:8px!important;margin-top:3px!important}
}
