/* 2026 drill layout for /open-range.html. Loaded last; scoped to body.drill-2026 and ids so the older layers lose. */
html body.drill-2026{
 --d-bg:#f6f5f1;--d-card:#fff;--d-ink:#15181b;--d-muted:#6a7077;--d-line:#e3e1db;--d-soft:#efede8;
 --d-good:#1f9d6b;--d-good-bg:#e7f6ef;--d-warn:#d9822b;--d-warn-bg:#fdf1e4;
 --d-open:#c8414e;--d-fold:#41698c;--d-jam:#7445c4;--d-limp:#2e8a5f;--d-mix:#9a7426;
 --d-rail:#1d2326;--d-felt-a:#2a7a5d;--d-felt-b:#13453a;--d-seat:#161b1e;
 background:var(--d-bg);color:var(--d-ink)
}
html[data-pg-theme=dark] body.drill-2026{
 --d-bg:#0c0d12;--d-card:#15171d;--d-ink:#eef0f2;--d-muted:#98a0a8;--d-line:#262a32;--d-soft:#1b1e25;
 --d-good:#3ccf8e;--d-good-bg:#12271f;--d-warn:#f0a43a;--d-warn-bg:#2a2013;
 --d-rail:#0a0d0f;--d-seat:#0f1315
}
html body.drill-2026 .range-shell{max-width:760px;margin:0 auto;padding:12px 16px 48px;box-sizing:border-box}

/* Header */
html body.drill-2026 .range-shell>header{display:flex;align-items:center;gap:14px;margin:0 0 10px;padding:4px 0;min-height:44px}
html body.drill-2026 .range-shell>header a{color:var(--d-muted);font-size:15px;text-decoration:none}
html body.drill-2026 .range-shell>header strong{font-size:19px;font-weight:800;letter-spacing:-.02em}
html body.drill-2026 #practiceSettingsOpen{margin-left:auto;height:36px;min-width:0;padding:0 14px;border:1px solid var(--d-line);border-radius:999px;background:var(--d-card);color:var(--d-ink);font-size:14px;font-weight:600;box-shadow:none}
html body.drill-2026 #rangeSync{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* Mission bar: one card instead of three stacked progress rows */
html body.drill-2026 #rangeDrill{display:block}
html body.drill-2026 #rangeDrill[hidden]{display:none}
html body.drill-2026 .drill-top{display:flex;align-items:center;justify-content:space-between;margin:0;padding:12px 14px 0;border:1px solid var(--d-line);border-bottom:0;border-radius:16px 16px 0 0;background:var(--d-card)}
html body.drill-2026 #rangeEdit{height:30px;padding:0 12px;border:1px solid var(--d-line);border-radius:999px;background:transparent;color:var(--d-muted);font-size:13px;font-weight:600;box-shadow:none}
html body.drill-2026 #drillCounter{font-size:15px;font-weight:800;font-variant-numeric:tabular-nums;color:var(--d-ink)}
html body.drill-2026 #missionHud{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 12px;margin:0;padding:8px 14px 0;border:1px solid var(--d-line);border-top:0;border-bottom:0;background:var(--d-card)}
html body.drill-2026 #missionHud>span{font-size:12px;font-weight:800;letter-spacing:.08em;color:var(--d-good)}
html body.drill-2026 #missionHud>strong{font-size:13px;font-weight:700;color:var(--d-ink)}
html body.drill-2026 #missionHud>progress{display:none}
html body.drill-2026 #missionHud>small{font-size:12px;color:var(--d-muted);margin:0}
html body.drill-2026 #missionHud>small:last-of-type{text-align:right}
html body.drill-2026 .drill-session-hud{display:none}
html body.drill-2026 #drillTrack{display:flex;gap:3px;margin:0 0 6px;padding:10px 14px 14px;border:1px solid var(--d-line);border-top:0;border-radius:0 0 16px 16px;background:var(--d-card);height:auto}
html body.drill-2026 #drillTrack i{flex:1;height:6px;border:0;border-radius:3px;background:var(--d-soft);box-shadow:none;outline:0}
html body.drill-2026 #drillTrack i.is-match{background:var(--d-good)}
html body.drill-2026 #drillTrack i.is-review{background:var(--d-warn)}
html body.drill-2026 #drillTrack i.is-current{background:var(--d-ink);opacity:.55}
html body.drill-2026 .training-bridge:empty{display:none}

/* Table */
html body.drill-2026 #drillTable{position:relative;display:block;box-sizing:border-box;width:calc(100% - 64px);max-width:640px;height:auto;aspect-ratio:1.85;min-height:0;margin:40px auto 44px;padding:0;border:12px solid var(--d-rail);border-radius:999px;background:radial-gradient(ellipse at 50% 40%,var(--d-felt-a),var(--d-felt-b) 75%);box-shadow:0 0 0 1px #ffffff14 inset,0 0 0 1px #0006,0 14px 30px #0003;color:#e9f3ee;gap:0;overflow:visible}
html body.drill-2026 #drillTable::before{content:"";position:absolute;inset:10px;border:1px solid #ffffff1c;border-radius:999px;pointer-events:none;background:none}
html body.drill-2026 #drillTable::after{display:none}
html body.drill-2026 #drillSpot{position:absolute;left:50%;top:17%;transform:translateX(-50%);inset:auto;top:17%;left:50%;margin:0;font-size:12px;font-weight:700;letter-spacing:.12em;color:#ffffffa6;white-space:nowrap}
html body.drill-2026 .drill-pot{position:absolute;inset:auto;left:50%;top:31%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:4px;margin:0;padding:0;background:none;box-shadow:none;border:0}
html body.drill-2026 .drill-pot .lobby-chips{display:none}
html body.drill-2026 #drillPotText{padding:6px 16px;border-radius:999px;background:#0008;color:#fff;font-size:18px;font-weight:800;letter-spacing:-.01em;font-variant-numeric:tabular-nums;white-space:nowrap}
html body.drill-2026 #drillAnte{font-size:11px;color:#ffffffa0;white-space:nowrap}
html body.drill-2026 #drillTable>small,html body.drill-2026 .drill-rival{display:none}
/* Seats sit on the rail */
html body.drill-2026 #drillSeats{position:absolute;inset:-4px -2px;pointer-events:none}
html body.drill-2026 #drillSeats .drill-seat{position:absolute;inset:auto;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;box-sizing:border-box;min-width:64px;height:auto;margin:0;padding:6px 10px;border:1px solid #ffffff22;border-radius:12px;background:var(--d-seat);color:#fff;box-shadow:0 6px 14px #0005;opacity:1;filter:none;z-index:2}
html body.drill-2026 #drillSeats .drill-seat strong{font-size:12px;font-weight:800;letter-spacing:.02em;line-height:1.15;color:#fff;white-space:nowrap}
html body.drill-2026 #drillSeats .drill-seat small{font-size:11px;line-height:1.2;color:#ffffffb0;font-variant-numeric:tabular-nums;white-space:nowrap}
html body.drill-2026 #drillSeats .drill-seat.is-folded{background:#20272a;border-color:#ffffff10;box-shadow:none;opacity:.55}
html body.drill-2026 #drillSeats .drill-seat.is-folded small{letter-spacing:.06em}
html body.drill-2026 #drillSeats .drill-seat.is-hero{min-width:84px;padding:7px 12px;border:2px solid var(--d-good);background:#0e1c17;box-shadow:0 0 0 4px #3ccf8e2e,0 8px 18px #0006;z-index:4}
html body.drill-2026 #drillSeats .drill-seat.is-hero strong{color:#7ff0bd}
html body.drill-2026 #drillSeats .seat-backs{position:absolute;left:50%;bottom:calc(100% + 3px);transform:translateX(-50%);display:flex;gap:2px;margin:0}
html body.drill-2026 #drillSeats .seat-backs>*{width:16px!important;height:23px!important;min-width:0!important;margin:0!important;border-radius:3px!important;font-size:0!important;box-shadow:0 1px 3px #0006!important}
html body.drill-2026 #rangeDealer{z-index:5;width:22px;height:22px;font-size:11px}
/* Hero hand sits just above the hero seat */
html body.drill-2026 #drillCards{position:absolute;inset:auto;left:50%;bottom:16%;top:auto;transform:translateX(-50%);display:flex;gap:6px;margin:0;z-index:3}
html body.drill-2026 #drillHand{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
/* Blinds and hero bet chips */
html body.drill-2026 #drillPostings{position:absolute;inset:0;pointer-events:none}
html body.drill-2026 #drillPostings .posted-bet{position:absolute;transform:translate(-9px,-50%);display:flex;align-items:center;gap:4px;margin:0;z-index:2}
html body.drill-2026 #drillPostings .posted-bet.is-left{flex-direction:row-reverse;transform:translate(calc(-100% + 9px),-50%)}
html body.drill-2026 #drillPostings .posted-bet.is-hero{left:calc(50% + 62px)!important;top:auto!important;bottom:calc(16% + 24px);transform:none}
html body.drill-2026 #drillPostings .posted-bet.is-hero-left{left:auto!important;right:calc(50% + 62px);flex-direction:row-reverse}
html body.drill-2026 #drillPostings .posted-bet b,html body.drill-2026 #drillBet strong{padding:2px 7px;border-radius:999px;background:#000a;color:#fff;font-size:11px;font-weight:700;white-space:nowrap}
html body.drill-2026 #drillBet{position:absolute;inset:auto;left:calc(50% + 62px);top:auto;bottom:calc(16% + 24px);transform:none;display:flex;align-items:center;gap:4px;z-index:3}
html body.drill-2026 #drillBet[hidden]{display:none}

/* Actions */
html body.drill-2026 #drillActions{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:10px;margin:0 0 14px;padding:0;position:static;background:none;border:0;box-shadow:none}
html body.drill-2026 #drillActions[hidden]{display:none}
html body.drill-2026 #drillActions button{position:relative;height:60px;min-height:0;margin:0;padding:0 10px;border:0;border-radius:14px;color:#fff!important;-webkit-text-fill-color:#fff;font-size:17px;font-weight:800;letter-spacing:-.01em;box-shadow:0 3px 0 #0003;opacity:1;filter:none;transition:transform .12s,opacity .2s,box-shadow .2s}
html body.drill-2026 #drillActions button[hidden]{display:none}
html body.drill-2026 #drillActions button *{color:inherit!important}
html body.drill-2026 #drillActions button:not(:disabled):active{transform:translateY(2px);box-shadow:0 1px 0 #0003}
html body.drill-2026 #drillFold{background:var(--d-fold)}
html body.drill-2026 #drillOpen{background:var(--d-open)}
html body.drill-2026 #drillJam{background:var(--d-jam)}
html body.drill-2026 #drillLimp{background:var(--d-limp)}
html body.drill-2026 #drillMix{background:var(--d-mix)}
html body.drill-2026 #drillActions button:disabled{opacity:.28;cursor:default;color:#fff}
html body.drill-2026 #drillActions button:disabled[data-result=correct],html body.drill-2026 #drillActions button:disabled[data-result=wrong],html body.drill-2026 #drillActions button:disabled[data-result=expected]{opacity:1}
html body.drill-2026 #drillActions button[data-result=correct]{box-shadow:0 0 0 3px var(--d-bg),0 0 0 6px var(--d-good)}
html body.drill-2026 #drillActions button[data-result=wrong]{box-shadow:0 0 0 3px var(--d-bg),0 0 0 6px var(--d-warn)}
html body.drill-2026 #drillActions button[data-result=expected]{outline:3px dashed var(--d-good);outline-offset:3px}
html body.drill-2026 #drillActions button[data-result=correct]::after,html body.drill-2026 #drillActions button[data-result=wrong]::after,html body.drill-2026 #drillActions button[data-result=expected]::after{position:absolute;top:-10px;right:10px;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:800;line-height:1.5;color:#fff}
html body.drill-2026 #drillActions button[data-result=correct]::after{content:"✓ 내 선택";background:var(--d-good)}
html body.drill-2026 #drillActions button[data-result=wrong]::after{content:"내 선택";background:var(--d-warn)}
html body.drill-2026 #drillActions button[data-result=expected]::after{content:"정답";background:var(--d-good)}

/* Feedback */
html body.drill-2026 #drillFeedback{margin:0 0 12px!important;padding:0;border:0;background:none;box-shadow:none;min-height:0}
html body.drill-2026 #drillFeedback:empty{display:none}
html body.drill-2026 #drillFeedback[data-match]{padding:14px 16px!important;border:1px solid var(--d-line)!important;border-left:4px solid var(--d-good)!important;border-radius:14px!important;background:var(--d-card)!important;box-shadow:none!important}
html body.drill-2026 #drillFeedback[data-match=false]{border-left-color:var(--d-warn)!important}
html body.drill-2026 #drillFeedback .coach-result{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;margin:0;padding:0;background:none;border:0;box-shadow:none}
html body.drill-2026 #drillFeedback .coach-symbol{display:grid;place-items:center;width:30px;height:30px;margin:0;border-radius:50%;background:var(--d-good);color:#fff;font-size:16px;font-weight:900;box-shadow:none}
html body.drill-2026 #drillFeedback .is-review .coach-symbol{background:var(--d-warn)}
html body.drill-2026 #drillFeedback .coach-result strong{font-size:19px;font-weight:800;color:var(--d-ink);margin:0}
html body.drill-2026 #drillFeedback .coach-growth{font-size:12px;color:var(--d-muted);white-space:nowrap}
html body.drill-2026 #drillFeedback .coach-answer{margin:8px 0 0;font-size:15px;font-weight:700;color:var(--d-ink)}
html body.drill-2026 .coach-freq{display:flex;height:8px;margin:10px 0 6px;border-radius:4px;overflow:hidden;gap:2px;background:var(--d-soft)}
html body.drill-2026 .coach-freq i{display:block;min-width:3px}
html body.drill-2026 .coach-freq-legend{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:12px;font-weight:600;color:var(--d-muted)}
html body.drill-2026 .coach-freq-legend span::before{content:"";display:inline-block;width:8px;height:8px;margin-right:5px;border-radius:2px;vertical-align:0;background:currentColor}
html body.drill-2026 .coach-freq .is-open,html body.drill-2026 .coach-freq-legend .is-open::before{background:var(--d-open)}
html body.drill-2026 .coach-freq .is-fold,html body.drill-2026 .coach-freq-legend .is-fold::before{background:var(--d-fold)}
html body.drill-2026 .coach-freq .is-jam,html body.drill-2026 .coach-freq-legend .is-jam::before{background:var(--d-jam)}
html body.drill-2026 .coach-freq .is-limp,html body.drill-2026 .coach-freq-legend .is-limp::before{background:var(--d-limp)}

/* Next / retry */
html body.drill-2026 #drillNext,html body.drill-2026 #drillRetryCurrent,html body.drill-2026 #drillAgain{display:block;width:100%;height:54px;margin:0 0 10px;border-radius:14px;font-size:16px;font-weight:800;box-shadow:none;position:static}
html body.drill-2026 #drillNext:not([hidden]),html body.drill-2026 #drillAgain{border:0!important;border-radius:14px!important;background:var(--d-ink)!important;color:var(--d-bg)!important}
html body.drill-2026 #drillRetryCurrent{border:1px solid var(--d-line);background:var(--d-card);color:var(--d-ink)}
html body.drill-2026 #drillNext[hidden],html body.drill-2026 #drillRetryCurrent[hidden],html body.drill-2026 #drillAgain[hidden]{display:none}

/* Secondary panels */
html body.drill-2026 #rangeDrill>details{margin:0 0 8px!important;padding:0 14px!important;box-shadow:none!important;border:1px solid var(--d-line);border-radius:14px;background:var(--d-card)}
html body.drill-2026 #rangeDrill>details[hidden]{display:none}
html body.drill-2026 #rangeDrill>details>summary{margin:0!important;padding:14px 0!important;line-height:1.3;font-size:14px;font-weight:700;color:var(--d-ink);cursor:pointer}
html body.drill-2026 #rangeDrill>details.drill-settings>summary{font-weight:600;color:var(--d-muted)}

/* Game toasts: top of screen here so they never cover the action buttons */
html body.drill-2026 .pgx-toast{top:calc(12px + env(safe-area-inset-top));bottom:auto}

@media(max-width:600px){
 html body.drill-2026 .range-shell{padding:8px 12px 40px}
 html body.drill-2026 #drillTable{width:calc(100% - 52px);aspect-ratio:1.18;margin:36px auto 40px;border-width:9px}
 html body.drill-2026 #drillTable::before{inset:7px}
 html body.drill-2026 #drillSpot{top:13%;font-size:10px;letter-spacing:.08em}
 html body.drill-2026 .drill-pot{top:27%}
 html body.drill-2026 #drillPotText{font-size:16px;padding:5px 12px}
 html body.drill-2026 #drillSeats .drill-seat{min-width:52px;padding:4px 7px;border-radius:10px}
 html body.drill-2026 #drillSeats .drill-seat strong{font-size:11px}
 html body.drill-2026 #drillSeats .drill-seat small{font-size:10px}
 html body.drill-2026 #drillSeats .drill-seat.is-hero{min-width:70px;padding:5px 9px}
 html body.drill-2026 #drillCards{bottom:14%}
 html body.drill-2026 #drillBet,html body.drill-2026 #drillPostings .posted-bet.is-hero{left:calc(50% + 50px)!important;bottom:calc(14% + 18px)}
 html body.drill-2026 #drillPostings .posted-bet.is-hero-left{left:auto!important;right:calc(50% + 50px)}
 html body.drill-2026 #drillSpot{top:11%;max-width:58%;white-space:normal;text-align:center;line-height:1.35}
 html body.drill-2026 #drillActions button{line-height:1.15;font-size:15px}
 html body.drill-2026 #missionHud>small{font-size:11px}
}
