.ath-poker-lab {
  --poker-ink: #12251f;
  --poker-muted: #60736d;
  --poker-line: rgba(18, 37, 31, .12);
  --poker-accent: #d99a42;
  --poker-accent-strong: #b86f1d;
  --poker-felt: #0d5b4e;
  --poker-felt-deep: #063d36;
  --poker-paper: #fffdf8;
  color: var(--poker-ink);
  max-width: 980px;
  margin: 1.25rem auto;
  padding: clamp(1rem, 3vw, 1.6rem);
  border: 1px solid var(--poker-line);
  border-radius: 24px;
  background: linear-gradient(145deg, #fbf8ef, #f5efe1);
  box-shadow: 0 22px 55px rgba(35, 43, 35, .12);
  font-family: inherit;
}

.ath-poker-lab *, .ath-poker-lab *::before, .ath-poker-lab *::after { box-sizing: border-box; }
.ath-poker-lab button, .ath-poker-lab select { font: inherit; }
.ath-poker-lab button { cursor: pointer; }
.ath-poker-lab__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.15rem; }
.ath-poker-lab__eyebrow { display: block; color: var(--poker-accent-strong); font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.ath-poker-lab h5, .ath-poker-lab h6 { margin: .2rem 0 .4rem; color: var(--poker-ink); }
.ath-poker-lab h5 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
.ath-poker-lab h6 { font-size: 1.05rem; }
.ath-poker-lab p { margin: 0; color: var(--poker-muted); line-height: 1.6; }
.ath-poker-lab__badge { flex: 0 0 auto; padding: .45rem .65rem; border: 1px solid rgba(184, 111, 29, .28); border-radius: 999px; color: var(--poker-accent-strong); background: rgba(255, 255, 255, .58); font-size: .72rem; font-weight: 800; white-space: nowrap; }
.ath-poker-lab__orientation { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .85fr); gap: 1rem; margin-bottom: 1rem; padding: 1rem; border: 1px solid var(--poker-line); border-radius: 16px; background: rgba(255,255,255,.5); }
.ath-poker-lab__orientation strong { display: block; margin-bottom: .25rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.ath-poker-lab__legend { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; color: var(--poker-muted); font-size: .88rem; }
.ath-poker-lab__legend b { display: inline-grid; width: 1.55rem; height: 1.55rem; place-items: center; margin-right: .3rem; border-radius: 50%; color: #fff; background: var(--poker-felt); font-size: .76rem; }

.ath-poker-lab__table { position: relative; min-height: 390px; padding: 1.25rem 1rem; }
.ath-poker-lab__table--compact { min-height: 300px; }
.ath-poker-lab__felt { position: relative; z-index: 1; display: grid; min-height: 360px; place-items: center; align-content: center; gap: .55rem; padding: 3.5rem 1rem 1.2rem; overflow: hidden; border: 8px solid #d3a463; border-radius: 48% / 34%; background: radial-gradient(circle at 50% 35%, #15816b, var(--poker-felt) 62%, var(--poker-felt-deep)); box-shadow: inset 0 0 0 2px rgba(255,255,255,.16), inset 0 -22px 45px rgba(0,0,0,.18), 0 12px 30px rgba(18,37,31,.16); }
.ath-poker-lab__felt::after { position: absolute; inset: 10px; border: 1px solid rgba(255,255,255,.14); border-radius: inherit; content: ''; pointer-events: none; }
.ath-poker-lab__seat { position: absolute; z-index: 2; display: grid; gap: .15rem; min-width: 92px; padding: .5rem .6rem; border: 1px solid rgba(18,37,31,.12); border-radius: 12px; color: var(--poker-ink); background: rgba(255,253,248,.92); box-shadow: 0 6px 16px rgba(18,37,31,.12); text-align: center; font-size: .72rem; }
.ath-poker-lab__seat strong { font-size: .75rem; }
.ath-poker-lab__seat span { color: var(--poker-muted); }
.ath-poker-lab__seat--top { top: .2rem; left: 50%; transform: translateX(-50%); }
.ath-poker-lab__seat--left { left: 0; top: 43%; }
.ath-poker-lab__seat--right { right: 0; top: 43%; }
.ath-poker-lab__button { position: absolute; top: 1.3rem; right: 23%; z-index: 2; padding: .28rem .48rem; border-radius: 999px; color: #593811; background: #eac476; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.ath-poker-lab__zone-label { z-index: 2; color: rgba(255,255,255,.72); font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.ath-poker-lab__cards { position: relative; z-index: 2; display: flex; min-height: 92px; justify-content: center; gap: clamp(.28rem, 1vw, .55rem); align-items: center; }
.ath-poker-lab__cards--hole { min-height: 105px; }
.ath-poker-lab__pot { z-index: 2; display: grid; justify-items: center; gap: .1rem; min-width: 106px; padding: .4rem .75rem; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: rgba(255,255,255,.8); background: rgba(0,0,0,.16); font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; }
.ath-poker-lab__pot strong { color: #fff; font-size: 1rem; letter-spacing: 0; }
.ath-poker-lab__pot small { color: rgba(255,255,255,.62); font-size: .6rem; text-transform: none; letter-spacing: 0; }

.ath-poker-card { position: relative; width: clamp(48px, 10vw, 66px); height: clamp(70px, 14vw, 96px); padding: 0; border: 0; border-radius: 9px; background: transparent; perspective: 850px; transform: translateY(0); transition: transform .2s ease, filter .2s ease; }
.ath-poker-card:hover, .ath-poker-card:focus-visible { z-index: 4; transform: translateY(-7px) rotate(-1deg); filter: drop-shadow(0 9px 8px rgba(0,0,0,.24)); }
.ath-poker-card__inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .52s cubic-bezier(.2,.8,.2,1); }
.ath-poker-card.is-flipped .ath-poker-card__inner { transform: rotateY(180deg); }
.ath-poker-card__face { position: absolute; inset: 0; display: grid; backface-visibility: hidden; border: 1px solid rgba(18,37,31,.2); border-radius: 9px; overflow: hidden; box-shadow: 0 6px 12px rgba(0,0,0,.2); }
.ath-poker-card__front { align-content: space-between; padding: .32rem; color: #17251f; background: linear-gradient(145deg, #fff, #f7f0dc); text-align: left; }
.ath-poker-card__front.is-red { color: #a63236; }
.ath-poker-card__corner { display: grid; justify-items: start; line-height: .9; font-weight: 900; font-size: clamp(.72rem, 2vw, .95rem); }
.ath-poker-card__corner--bottom { justify-items: end; transform: rotate(180deg); }
.ath-poker-card__suit { place-self: center; font-size: clamp(1.4rem, 4vw, 2.2rem); line-height: 1; }
.ath-poker-card__back { place-items: center; padding: .28rem; transform: rotateY(180deg); background: #173f4f; }
.ath-poker-card__back::before { width: 72%; height: 82%; border: 2px solid rgba(238,190,106,.78); border-radius: 5px; background: repeating-linear-gradient(45deg, rgba(255,255,255,.1) 0 3px, transparent 3px 7px); content: ''; }
.ath-poker-card.is-dealing { animation: ath-poker-deal .6s ease both; }
@keyframes ath-poker-deal { 0% { opacity: 0; transform: translateY(-18px) rotate(-7deg) scale(.86); } 65% { transform: translateY(4px) rotate(2deg) scale(1.03); } 100% { opacity: 1; transform: translateY(0) rotate(0) scale(1); } }

.ath-poker-lab__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin-top: 1rem; }
.ath-poker-lab__actions--wide { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
.ath-poker-lab__actions button, .ath-poker-lab__quiz-options button { min-height: 42px; padding: .6rem .9rem; border: 1px solid var(--poker-accent-strong); border-radius: 11px; color: #fff; background: var(--poker-accent-strong); font-weight: 800; transition: transform .18s ease, background .18s ease; }
.ath-poker-lab__actions button:hover, .ath-poker-lab__actions button:focus-visible, .ath-poker-lab__quiz-options button:hover, .ath-poker-lab__quiz-options button:focus-visible { background: #8e5018; transform: translateY(-2px); }
.ath-poker-lab__actions button.is-secondary { border-color: var(--poker-line); color: var(--poker-ink); background: rgba(255,255,255,.72); }
.ath-poker-lab__actions button.is-secondary:hover, .ath-poker-lab__actions button.is-secondary:focus-visible { background: #fff; }
.ath-poker-lab__coach, .ath-poker-lab__feedback { margin-top: .85rem; padding: .72rem .85rem; border-left: 3px solid var(--poker-accent); border-radius: 0 10px 10px 0; background: rgba(255,255,255,.56); font-size: .88rem; }
.ath-poker-lab__feedback.is-success { border-left-color: #268466; }
.ath-poker-lab__feedback.is-error { border-left-color: #bd4b48; }
.ath-poker-lab__reset-link { margin-top: .7rem; padding: 0; border: 0; color: var(--poker-accent-strong); background: transparent; font-size: .82rem; font-weight: 800; text-decoration: underline; }
.ath-poker-lab__street-summary { min-height: 2.8rem; margin-bottom: .4rem; color: var(--poker-muted); text-align: center; }
.ath-poker-lab__timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.ath-poker-lab__timeline li { min-height: 56px; padding: .55rem; border: 1px solid var(--poker-line); border-radius: 12px; background: rgba(255,255,255,.55); text-align: center; font-size: .75rem; }
.ath-poker-lab__timeline li strong { display: block; margin-bottom: .2rem; }
.ath-poker-lab__timeline li.is-current { border-color: var(--poker-accent); box-shadow: 0 0 0 2px rgba(217,154,66,.16); }
.ath-poker-lab__timeline li.is-complete { color: #276b58; background: rgba(220,244,232,.7); }
.ath-poker-lab__prompt { margin-top: .9rem; padding: 1rem; border: 1px solid var(--poker-line); border-radius: 14px; background: rgba(255,255,255,.62); }
.ath-poker-lab__prompt strong { display: block; margin-bottom: .3rem; }
.ath-poker-lab__prompt p { font-size: .9rem; }
.ath-poker-lab__quiz { margin-top: 1rem; padding: 1rem; border: 1px solid var(--poker-line); border-radius: 16px; background: rgba(255,255,255,.62); }
.ath-poker-lab__quiz-progress { margin-bottom: .5rem; color: var(--poker-accent-strong); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.ath-poker-lab__quiz-options { display: grid; gap: .5rem; margin-top: .8rem; }
.ath-poker-lab__quiz-options button { color: var(--poker-ink); border-color: var(--poker-line); background: #fff; text-align: left; }
.ath-poker-lab__quiz-options button:hover, .ath-poker-lab__quiz-options button:focus-visible { border-color: var(--poker-accent-strong); color: var(--poker-ink); background: #fff8e9; }
.ath-poker-lab__quiz-options button.is-correct { border-color: #268466; color: #205f4b; background: #e4f5eb; }
.ath-poker-lab__quiz-options button.is-wrong { border-color: #bd4b48; color: #8e3633; background: #fce9e5; }

@media (max-width: 680px) {
  .ath-poker-lab__head, .ath-poker-lab__orientation { grid-template-columns: 1fr; display: grid; }
  .ath-poker-lab__badge { justify-self: start; }
  .ath-poker-lab__table { min-height: 335px; padding-inline: .15rem; }
  .ath-poker-lab__table--compact { min-height: 270px; }
  .ath-poker-lab__felt { min-height: 300px; border-width: 6px; border-radius: 34px; }
  .ath-poker-lab__seat { display: none; }
  .ath-poker-lab__button { top: 1rem; right: 1rem; }
  .ath-poker-lab__actions--wide { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ath-poker-lab__timeline { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .ath-poker-lab *, .ath-poker-lab *::before, .ath-poker-lab *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
