/* A shared, flat deck and small poker replays. Catalog only; gameplay is unaffected. */
html body.ac-training.training-game .browse-unit{border:0!important;border-radius:16px;box-shadow:0 0 0 1px var(--game-line)}
html body.ac-training.training-game .browse-unit .curr-unit-copy{border:0;padding:12px 16px}
html body.ac-training.training-game .browse-unit .toc-number{display:none}
html body.ac-training.training-game .browse-unit .curr-unit-copy strong{font-size:19px;margin:0 0 6px;line-height:1.35}
html body.ac-training.training-game .browse-unit .practice-unit-description{display:none;min-height:0;font-size:12px;line-height:1.55;color:var(--game-text);opacity:.85;word-break:keep-all;letter-spacing:-.25px}
html body.ac-training.training-game .browse-unit .toc-state{font-size:10px;margin:5px 0 0;min-height:22px}
html body.ac-training.training-game .browse-unit .toc-state:after{font-size:10px;background:var(--game-text);color:var(--game-panel);border-radius:7px;padding:4px 7px}
html body.ac-training.training-game .browse-unit.is-started:not(.is-done) .toc-state:after{content:'이어서 →'}
html body.ac-training.training-game .browse-unit.is-done .toc-state:after{content:'복습 →'}
html body.ac-training.training-game .browse-unit .curr-progress{height:3px}

html body.ac-training.training-game .browse-unit .lobby-v3{--replay-time:7.2s;--hand-w:51px;--hand-h:73px;--hand-overlap:-17px;position:relative;height:232px;aspect-ratio:auto;overflow:hidden;isolation:isolate;background:radial-gradient(ellipse at 50% 75%,#e4e8e3,transparent 72%),#f5f6f5!important}
html body.ac-training.training-game .browse-unit .lobby-v3 .lobby-felt{inset:49px 13px 35px;border:6px solid #283c33;border-radius:999px;background:radial-gradient(ellipse at 50% 20%,#376d54,#214e39);box-shadow:inset 0 0 0 1px #d2edcf32,0 2px 0 #1a2d23,0 7px 12px #1d332524}
html body.ac-training.training-game .browse-unit .lobby-v3 .lobby-felt:before{inset:5px;border:1px solid #d3e6c52c;border-radius:999px}
html body.ac-training.training-game .browse-unit .lobby-v3 .lobby-felt:after{content:'GRINDERS';position:absolute;inset:23% 0 auto;text-align:center;font:600 8px/1 Arial;letter-spacing:3px;color:#e0eddc38;pointer-events:none}

/* Both cards use exactly the same SVG canvas, dimensions, border and suit layout. */
html body.ac-training.training-game .browse-unit .lobby-v3 .lobby-cards{display:flex;align-items:center;justify-content:center;gap:0;perspective:none;isolation:isolate}
html body.ac-training.training-game .browse-unit .lobby-v3 .lobby-playing-card{box-sizing:border-box;position:relative;flex:none;width:var(--hand-w);height:var(--hand-h);min-width:0;max-width:none;padding:0;margin:0;border:0!important;border-radius:4px;background:transparent!important;box-shadow:0 2px 5px #10261e26;transform:none!important;translate:none!important;rotate:-8deg;transform-origin:50% 70%;z-index:1;transition:none}
html body.ac-training.training-game .browse-unit .lobby-v3 .lobby-playing-card+.lobby-playing-card{margin-left:var(--hand-overlap);rotate:8deg;z-index:2;box-shadow:-2px 1px 4px #12241c24,0 2px 4px #12241c21}
html body.ac-training.training-game .browse-unit .lobby-v3 .lobby-card-face{display:block;position:absolute;inset:0;width:100%;height:100%;max-width:none;border-radius:4px;object-fit:fill;box-shadow:none;transform:none}
html body.ac-training.training-game .browse-unit .lobby-v3 .lobby-playing-card :is(.game-card-rank,.game-card-suit){display:none!important}
html body.ac-training.training-game .browse-unit .lobby-v3 .lobby-playing-card.is-back{border:1px solid #e5e9e1!important;background:repeating-linear-gradient(45deg,#214a37 0 2px,#2b5843 2px 4px)!important;box-shadow:0 2px 4px #12241c22}
html body.ac-training.training-game .browse-unit .lobby-v3 .lobby-playing-card.is-back:after{inset:3px;border:1px solid #c4d5c284;background:none!important;border-radius:2px}

.lobby-v3 .lobby-opponents{position:absolute;inset:12px 0 auto;display:flex;align-items:flex-start;justify-content:center;gap:32%;z-index:3}
.lobby-v3 .lobby-opponent{--hand-w:30px;--hand-h:43px;--hand-overlap:-9px;display:flex;flex-direction:column;align-items:center;gap:6px}
.lobby-v3 .lobby-position{display:block;min-width:25px;padding:3px 6px;border-radius:4px;text-align:center;background:#172e22;color:#f5f7f2;font:700 9px/1 Arial;letter-spacing:.2px;white-space:nowrap}
html body.ac-training.training-game .browse-unit .lobby-v3 .lobby-hero{position:absolute;left:50%;bottom:7px;transform:translateX(-50%);display:flex;align-items:center;flex-direction:column;gap:7px;z-index:4}
.lobby-v3 .lobby-hero .lobby-position{padding:3px 8px;background:#fffefb;color:#293a2f;box-shadow:0 1px 3px #15271e1a}
.lobby-v3 .lobby-hero .lobby-cards{transition:transform .25s ease-out}

.lobby-v3 .lobby-action-line{position:absolute;left:10px;right:10px;top:89px;height:23px;z-index:5}
.lobby-v3 .lobby-action-step{position:absolute;left:50%;top:0;display:flex;align-items:center;gap:7px;width:max-content;max-width:100%;transform:translateX(-50%);border-radius:5px;padding:5px 8px;background:#142c21e8;color:#f7faf6;box-shadow:0 1px 3px #10261e16;font:600 11px/1.1 system-ui,sans-serif;white-space:nowrap;opacity:0}
.lobby-v3 .lobby-action-step b{font-weight:650}.lobby-v3 .lobby-action-step>span{color:#d3e4d2;font:600 10px/1 Arial}.lobby-v3 .lobby-action-step>span:empty{display:none}
.lobby-v3 .lobby-action-step.is-final{opacity:1}
.lobby-v3 .lobby-moving-chips{position:absolute;left:50%;top:117px;display:flex;align-items:center;padding:0;z-index:3;opacity:0;--from-x:0px;--from-y:-55px;--land-x:-15px;--land-y:0px;transform:translate(var(--land-x),var(--land-y))}
.lobby-v3 .lobby-moving-chips.is-final{opacity:1}
.lobby-v3 .lobby-moving-chips.from-hero{--from-x:48px;--from-y:45px;--land-x:-1px}
.lobby-v3.is-multiway .lobby-moving-chips.from-opener{--from-x:-65px;--land-x:-28px}
.lobby-v3.is-multiway .lobby-moving-chips.from-caller{--from-x:65px;--land-x:3px}
.lobby-v3.is-multiway .lobby-moving-chips.from-hero{--land-x:-10px;--land-y:6px}
.lobby-v3 .lobby-chips i{box-sizing:border-box;display:block;width:17px;height:9px;margin-left:-5px;border:2px dashed #f5eddb;border-radius:50%;background:#c3514e;box-shadow:0 2px #923b36,0 4px #bd5149;translate:0 0}
.lobby-v3 .lobby-chips i:nth-child(2){background:#4c789b;box-shadow:0 2px #35556c,0 4px #5d8ba7;translate:0 -2px}
.lobby-v3 .lobby-chips i:nth-child(3){background:#d5b16f;box-shadow:0 2px #947540;translate:0 0}
.lobby-v3 .lobby-moving-chips.from-hero i{box-shadow:0 2px #923b36,0 4px #bd5149,0 6px #923b36}
.lobby-v3 .lobby-moving-chips.from-hero i:nth-child(2){box-shadow:0 2px #35556c,0 4px #5d8ba7,0 6px #35556c,0 8px #5d8ba7}
.lobby-v3 .lobby-moving-chips.from-hero i:nth-child(3){box-shadow:0 2px #947540,0 4px #d5b16f,0 6px #947540}
html body.ac-training.training-game .browse-unit .lobby-v3 .lobby-board{--hand-w:27px;--hand-h:39px;position:absolute;top:72px;left:50%;transform:translateX(-50%);display:flex;gap:4px;z-index:2}
html body.ac-training.training-game .browse-unit .lobby-v3 .lobby-board .lobby-playing-card{margin:0;rotate:0deg;box-shadow:0 1px 3px #10261e2a}
.lobby-v3.has-board .lobby-action-line{top:117px}.lobby-v3.has-board .lobby-moving-chips{top:111px;left:74%}
html body.ac-training.training-game .browse-unit .lobby-v3.has-board .lobby-hero{--hand-w:43px;--hand-h:61px;--hand-overlap:-13px;bottom:6px}
.lobby-v3 .lobby-squeeze-pressure{position:absolute;top:101px;left:50%;width:122px;height:45px;transform:translateX(-50%);display:flex;justify-content:space-between;pointer-events:none;z-index:1;opacity:0}
.lobby-v3 .lobby-squeeze-pressure i{display:block;width:24px;height:40px;border:1px solid #d5eadc85;border-radius:50%;border-right-color:transparent}
.lobby-v3 .lobby-squeeze-pressure i+i{border-right-color:#d5eadc85;border-left-color:transparent}

/* One shared timeline gives OPEN → CALL → SQUEEZE a visible order. */
html[data-training-motion=on] .lobby-v3 .timeline{animation-duration:var(--replay-time);animation-iteration-count:infinite;animation-timing-function:linear;animation-play-state:paused;animation-fill-mode:both}
html[data-training-motion=on] .lobby-v3.is-visible .timeline{animation-play-state:running}
html[data-lobby-paused=true] .lobby-v3 .timeline{animation-play-state:paused!important}
html[data-training-motion=on] .lobby-v3 .lobby-action-step.phase-0{animation-name:chapter-action-first}
html[data-training-motion=on] .lobby-v3 .lobby-action-step.phase-1{animation-name:chapter-action-middle}
html[data-training-motion=on] .lobby-v3 .lobby-action-step.phase-2{animation-name:chapter-action-last}
html[data-training-motion=on] .lobby-v3[data-steps='2'] .lobby-action-step.phase-1{animation-name:chapter-action-second-final}
html[data-training-motion=on] .lobby-v3[data-steps='1'] .lobby-action-step.phase-0{animation-name:chapter-action-only}
html[data-training-motion=on] .lobby-v3 .lobby-moving-chips.phase-0{animation-name:chapter-chips-first}
html[data-training-motion=on] .lobby-v3 .lobby-moving-chips.phase-1{animation-name:chapter-chips-second}
html[data-training-motion=on] .lobby-v3 .lobby-moving-chips.phase-2{animation-name:chapter-chips-third}
html[data-training-motion=on] .lobby-v3 .lobby-squeeze-pressure{animation-name:chapter-squeeze}
@keyframes chapter-action-first{0%,32%{opacity:1}32.01%,100%{opacity:0}}
@keyframes chapter-action-middle{0%,32%{opacity:0}32.01%,56%{opacity:1}56.01%,100%{opacity:0}}
@keyframes chapter-action-last{0%,56%{opacity:0}56.01%,100%{opacity:1}}
@keyframes chapter-action-second-final{0%,32%{opacity:0}32.01%,100%{opacity:1}}
@keyframes chapter-action-only{0%,100%{opacity:1}}
@keyframes chapter-chips-first{0%,8%{opacity:0;transform:translate(var(--from-x),var(--from-y))}10%{opacity:1;transform:translate(var(--from-x),var(--from-y))}21%,88%{opacity:1;transform:translate(var(--land-x),var(--land-y))}95%,100%{opacity:0;transform:translate(var(--land-x),var(--land-y))}}
@keyframes chapter-chips-second{0%,33%{opacity:0;transform:translate(var(--from-x),var(--from-y))}35%{opacity:1;transform:translate(var(--from-x),var(--from-y))}46%,88%{opacity:1;transform:translate(var(--land-x),var(--land-y))}95%,100%{opacity:0;transform:translate(var(--land-x),var(--land-y))}}
@keyframes chapter-chips-third{0%,57%{opacity:0;transform:translate(var(--from-x),var(--from-y))}59%{opacity:1;transform:translate(var(--from-x),var(--from-y))}70%,88%{opacity:1;transform:translate(var(--land-x),var(--land-y))}95%,100%{opacity:0;transform:translate(var(--land-x),var(--land-y))}}
@keyframes chapter-squeeze{0%,58%{opacity:0;width:140px}64%{opacity:.6;width:118px}72%{opacity:0;width:83px}100%{opacity:0;width:83px}}
@media(hover:hover){html body.ac-training.training-game .browse-unit:hover .lobby-v3 .lobby-hero .lobby-cards{transform:translateY(-3px)}}
html[data-pg-theme=dark] body.ac-training.training-game .browse-unit .lobby-v3{background:radial-gradient(ellipse at 50% 75%,#26382d,transparent 78%),#1b201d!important}
html[data-pg-theme=dark] body.ac-training.training-game .browse-unit .lobby-v3 .lobby-felt{border-color:#182b20;box-shadow:inset 0 0 0 1px #c5ddba30,0 2px 0 #102219,0 7px 15px #0003}

@media(max-width:600px){
 html body.ac-training.training-game .browse-unit .lobby-v3{--hand-w:43px;--hand-h:61px;--hand-overlap:-14px;height:200px}
 html body.ac-training.training-game .browse-unit .lobby-v3 .lobby-felt{inset:45px 7px 36px;border-width:5px}
 html body.ac-training.training-game .browse-unit .lobby-v3 .lobby-felt:before{inset:4px}
 .lobby-v3 .lobby-opponents{top:9px;gap:25%}.lobby-v3 .lobby-opponent{--hand-w:25px;--hand-h:36px;--hand-overlap:-8px;gap:5px}
 .lobby-v3 .lobby-position{font-size:8px;padding:3px 5px;min-width:22px}
 html body.ac-training.training-game .browse-unit .lobby-v3 .lobby-hero{bottom:6px;gap:6px}
 .lobby-v3 .lobby-action-line{top:72px;left:4px;right:4px;height:22px}
 .lobby-v3 .lobby-action-step{font-size:10px;gap:5px;padding:5px 6px}.lobby-v3 .lobby-action-step>span{font-size:9px}
 .lobby-v3 .lobby-moving-chips{top:99px;--from-y:-53px}.lobby-v3 .lobby-moving-chips.from-hero{--from-x:42px;--from-y:32px}
 .lobby-v3.is-multiway .lobby-moving-chips.from-opener{--from-x:-43px}.lobby-v3.is-multiway .lobby-moving-chips.from-caller{--from-x:43px}
 .lobby-v3 .lobby-chips i{width:14px;height:8px;border-width:2px;margin-left:-5px}
 html body.ac-training.training-game .browse-unit .lobby-v3 .lobby-board{--hand-w:23px;--hand-h:33px;top:61px;gap:3px}
 .lobby-v3.has-board .lobby-action-line{top:99px}.lobby-v3.has-board .lobby-moving-chips{top:93px;left:76%}
 html body.ac-training.training-game .browse-unit .lobby-v3.has-board .lobby-hero{--hand-w:36px;--hand-h:51px;--hand-overlap:-11px;bottom:5px}
 .lobby-v3 .lobby-squeeze-pressure{top:86px;height:37px}.lobby-v3 .lobby-squeeze-pressure i{height:32px;width:20px}
 html body.ac-training.training-game .browse-unit .curr-unit-copy{padding:9px 12px 10px;min-height:61px;box-sizing:border-box}
 html body.ac-training.training-game .browse-unit .curr-unit-copy strong{font-size:15px;letter-spacing:-.4px;margin:0;line-height:20px}
 html body.ac-training.training-game .browse-unit .practice-unit-description{display:none}
 html body.ac-training.training-game .browse-unit .toc-state{font-size:9px;margin:3px 0 0;min-height:18px;gap:4px}
 html body.ac-training.training-game .browse-unit .toc-state:after{font-size:9px;padding:3px 5px}
 html body.ac-training.training-game .practice-browse .curr-path{gap:15px 12px}
}
@media(max-width:360px){
 html body.ac-training.training-game .browse-unit .lobby-v3{--hand-w:39px;--hand-h:56px;--hand-overlap:-12px}
 html body.ac-training.training-game .browse-unit .curr-unit-copy{padding:8px 9px 9px;min-height:57px}
 html body.ac-training.training-game .browse-unit .curr-unit-copy strong{font-size:14px}
 html body.ac-training.training-game .browse-unit .practice-unit-description{font-size:10px}
 .lobby-v3 .lobby-action-step{font-size:9px;gap:4px}.lobby-v3 .lobby-action-step>span{font-size:8px}
 .lobby-v3 .lobby-opponent{--hand-w:23px;--hand-h:33px}
}
/* Reduced motion keeps the last informative frame, never an empty thumbnail. */
html[data-training-motion=off] .lobby-v3 .timeline{animation:none!important}
@media(prefers-reduced-motion:reduce){.lobby-v3 .timeline{animation:none!important}html body.ac-training.training-game .browse-unit,html body.ac-training.training-game .browse-unit .lobby-v3 .lobby-cards{transition:none!important;transform:none}.lobby-v3 .lobby-action-step,.lobby-v3 .lobby-moving-chips{opacity:0}.lobby-v3 .is-final{opacity:1}}

/* A saved hand is visible on return without taking space for a new learner. */
html body.ac-training.training-game #practiceTopics>.practice-resume[hidden]{display:none}
html body.ac-training.training-game #practiceTopics>.practice-resume{margin:0 0 16px}
html body.ac-training.training-game #practiceTopics>.practice-resume a{padding:12px 14px;border-radius:12px;background:var(--game-panel);border:1px solid var(--game-line)}

/* Keep the mobile chooser focused on four immediately visible chapters. */
@media(max-width:600px){
 html body.ac-training.training-game:not(.table-focus) .training-page{padding-top:4px!important}
 html body.ac-training.training-game .practice-intro{margin-bottom:8px}
 html body.ac-training.training-game .practice-stage-nav{margin-bottom:0}
 html body.ac-training.training-game .browse-unit .practice-matchup{display:inline;font-size:11px;line-height:20px;margin:0;white-space:nowrap}
 html body.ac-training.training-game .browse-unit .curr-progress{margin-top:5px}
 html body.ac-training.training-game .browse-unit:not(.is-started):not(.is-done) .curr-progress{display:none}
}

@media(max-width:600px){
 html body.ac-training.training-game:not(.table-focus)>.pg-site-header{height:56px;min-height:56px}
 html body.ac-training.training-game .practice-intro .practice-stage-nav{height:42px;padding:3px;box-sizing:border-box}
 html body.ac-training.training-game .practice-intro .practice-stage-nav button{min-height:34px}
 html body.ac-training.training-game .browse-unit .practice-matchup:before{content:' · '}
}
@media(max-width:360px){html body.ac-training.training-game .browse-unit .practice-matchup{font-size:9px}}

/* The whole chapter tile opens practice; a second Start button is unnecessary. */
html body.ac-training.training-game .browse-unit{position:relative}
html body.ac-training.training-game .browse-unit .curr-unit-copy{position:static;min-height:46px;padding:11px 12px;box-sizing:border-box}
html body.ac-training.training-game .browse-unit .curr-unit-copy strong{margin:0;line-height:24px}
html body.ac-training.training-game .browse-unit .toc-state{position:absolute;width:1px;height:1px;min-height:0;margin:0;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
html body.ac-training.training-game .browse-unit .toc-state:after{display:none}
html body.ac-training.training-game .browse-unit:not(.is-started):not(.is-done) .toc-state{display:none}
html body.ac-training.training-game .browse-unit .curr-progress{position:absolute;inset:auto 0 0;width:100%;max-width:none;margin:0;height:2px}
html body.ac-training.training-game .browse-unit:not(.is-started):not(.is-done) .curr-progress{display:none}
@media(max-width:360px){html body.ac-training.training-game .browse-unit .curr-unit-copy{padding-inline:9px}}
