#tableCoach { --chalk:#f5ecd8; --brass:#e5c784; color:var(--chalk); grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,1fr); }
#tableCoach .mn-card { box-sizing:border-box; width:min(930px,100%); max-height:100%; min-width:0; display:flex; flex-direction:column; background:#191a1e; color:var(--chalk); }
#tableCoach .mn-head { display:flex; align-items:center; justify-content:space-between; flex:none; padding:16px clamp(16px,3vw,32px); border-bottom:1px solid #625a49; background:#121315; color:var(--chalk); }
#tableCoach .mn-head h2 { margin:0; color:var(--chalk); font:800 clamp(28px,4vw,50px)/1 var(--display); text-transform:uppercase; }
#tableCoach .mn-head small,.coach-kicker,#tableCoach .coach-group small,#tableCoach dt { font:800 .76rem/1.2 var(--display); text-transform:uppercase; letter-spacing:.1em; color:var(--brass); }
#tableCoach .mn-body { min-height:0; overflow:auto; display:grid; grid-template-columns:minmax(140px,25%) minmax(0,1fr); padding:0; background:#191a1e; }
.coach-portrait { min-height:100%; background:linear-gradient(0deg,#101414de,transparent 48%),#263730 url("/static/cast/benny-ocampo.jpg") 50% 18% / cover no-repeat; border-right:2px solid #9c885d; }
.coach-desk { min-width:0; padding:clamp(16px,2.6vw,32px); }
#coachShelf { margin-bottom:16px; color:#d7c6a5; }
#coachShelf > summary { width:fit-content; padding:7px 0; cursor:pointer; font:650 .92rem/1.4 "Be Vietnam Pro",sans-serif; }
#coachShelf[open] > summary { margin-bottom:5px; }
.coach-tools { display:flex; flex-wrap:wrap; gap:8px 14px; margin-bottom:18px; }
.coach-tools label { flex:1; display:grid; gap:3px; min-width:104px; font:700 .78rem/1.2 var(--display); letter-spacing:.07em; text-transform:uppercase; color:#d5c8b1; }
.coach-tools select,#tableCoach .coach-answers button,#tableCoach .coach-more button,.coach-invite,#game #askBenny { appearance:auto; border-radius:0; border:1px solid #827661; color:#f5ecd8; background:#202226; box-shadow:none; transform:none; cursor:pointer; }
.coach-tools select { width:100%; min-height:42px; padding:6px; font:600 1rem/1.2 sans-serif; }
#coachLesson h3 { margin:5px 0 12px; color:var(--chalk); font:800 clamp(24px,3.4vw,39px)/1.05 var(--display); letter-spacing:0; text-transform:uppercase; }
.coach-felt { display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px; padding:12px; background:#19352f; border-block:1px solid #617264; }
.coach-group { display:grid; gap:5px; }
.coach-cards { display:flex; gap:3px; }
#tableCoach .card { --w:clamp(32px,3.5vw,48px); position:relative; flex:none; scale:1; transform:none; }
#tableCoach .card.small .idx:not(.low) { top:9%; font-size:61cqw; line-height:1; }
#tableCoach .card.small .idx svg { width:39cqw; height:39cqw; margin:5cqw auto 0; }
#tableCoach .coach-used { outline:2px solid #f3cb6e; outline-offset:1px; }
.coach-facts { width:100%; display:flex; flex-wrap:wrap; gap:8px 18px; padding-top:6px; margin:0; border-top:1px solid #637266; }
.coach-facts dd { margin:2px 0 0; font:800 1.05rem/1 var(--display); font-variant-numeric:tabular-nums; }
#tableCoach .coach-question,#tableCoach .coach-feedback p { color:var(--chalk); font:550 clamp(15px,1.35vw,19px)/1.42 "Be Vietnam Pro",sans-serif; margin:12px 0; }
.coach-answers,.coach-more { display:flex; flex-wrap:wrap; gap:6px; }
#tableCoach .coach-answers button,#tableCoach .coach-more button,.coach-invite { padding:9px 12px; min-height:44px; font:650 1rem/1.2 "Be Vietnam Pro",sans-serif; text-align:left; }
#tableCoach .coach-answers [data-result="right"] { background:#29483c; border-color:#a9d4ab; }
#tableCoach .coach-answers [data-result="miss"] { border-color:#d59880; }
.coach-feedback:not(:empty) { margin:14px 0; padding-left:12px; border-left:3px solid var(--brass); }
#tableCoach .coach-feedback b { font:750 1rem/1.25 "Be Vietnam Pro",sans-serif; color:var(--brass); }
#tableCoach .coach-feedback p { margin:4px 0; }
.coach-price { display:flex; flex-wrap:wrap; justify-content:space-between; font-size:.82rem; font-variant-numeric:tabular-nums; }
.coach-price::before { content:""; flex-basis:100%; margin:8px 0 4px; height:7px; background:linear-gradient(to right,#e5c784 var(--share),#59756e var(--share)); }
.coach-price span:first-child { color:#efd698; }
.coach-more[hidden] { display:none; }
.coach-reading { margin-top:14px; font-size:.85rem; }
.coach-reading summary { cursor:pointer; color:#d8c8aa; }
.coach-reading a { display:inline-block; margin-top:6px; color:#f4db9b; }
#game #askBenny { min-height:36px; padding:4px 8px; font:800 .84rem/1 var(--display); text-transform:uppercase; border-color:#857756; }
#game #askBenny[hidden] { display:none; }
#tableCoach[data-mode="hand"] { place-items:center end; background:linear-gradient(90deg,#090a0b25,#090a0b45 62%,#090a0b80); }
#tableCoach[data-mode="hand"] .mn-card { width:min(450px,100%); }
#tableCoach[data-mode="hand"] .mn-head { gap:12px; padding:12px 16px; }
#tableCoach[data-mode="hand"] .mn-head h2 { font-size:clamp(25px,3vw,34px); }
#tableCoach[data-mode="hand"] .mn-head::before { content:""; flex:0 0 48px; height:52px; background:#263730 url("/static/cast/benny-ocampo.jpg") center 19% / 165% auto no-repeat; }
#tableCoach[data-mode="hand"] .mn-head > div { flex:1; }
#tableCoach[data-mode="hand"] .mn-body { display:block; }
#tableCoach[data-mode="hand"] .coach-portrait { display:none; }
#tableCoach[data-mode="hand"] .coach-desk { padding:12px 16px 18px; }
#tableCoach[data-mode="hand"] #coachLesson h3 { font-size:clamp(23px,2.6vw,32px); }
#tableCoach[data-mode="hand"] .card { --w:35px; }
#tableCoach[data-mode="hand"] .coach-question { font-size:1rem; }
#tableCoach[data-mode="hand"] #coachShelf { margin:14px 0 0; border-top:1px solid #534e45; }
#tableCoach[data-mode="hand"] #coachShelf > summary { padding:10px 0 4px; }
#coachLine b { margin-right:.35em; color:#e5c784; font:800 .8em/1.2 var(--display); text-transform:uppercase; letter-spacing:.06em; }
@media(max-width:640px),(max-height:560px) {
  #tableCoach { padding:max(9px,env(safe-area-inset-top)) max(9px,env(safe-area-inset-right)) max(9px,env(safe-area-inset-bottom)) max(9px,env(safe-area-inset-left)); }
  #tableCoach .mn-head { padding:9px 12px; gap:10px; }
  #tableCoach .mn-head::before { content:""; flex:0 0 48px; height:52px; background:#263730 url("/static/cast/benny-ocampo.jpg") center 19% / 165% auto no-repeat; }
  #tableCoach .mn-head > div { flex:1; }
  #tableCoach .mn-body { display:block; }
  .coach-portrait { display:none; }
  .coach-desk { padding:12px; }
  .coach-tools { margin-bottom:11px; }
  .coach-felt { gap:6px 10px; padding:9px; }
  #tableCoach .card { --w:clamp(31px,calc((100vw - 100px)/7),40px); }
  #game.phone-table #askBenny { min-height:44px; }
}
@media(max-width:640px) {
  #tableCoach[data-mode="hand"] { place-items:end center; background:linear-gradient(0deg,#090a0b88,#090a0b30 82%); }
  #tableCoach[data-mode="hand"] .mn-card { max-height:min(82dvh,100%); }
  #tableCoach[data-mode="hand"] .mn-head { padding:8px 10px; gap:8px; }
  #tableCoach[data-mode="hand"] .mn-head::before { flex-basis:36px; height:42px; }
  #tableCoach[data-mode="hand"] .coach-desk { padding:8px 12px 14px; }
  #tableCoach[data-mode="hand"] .card { --w:clamp(28px,8.5vw,35px); }
}
