body{--table-mid:#276453;--table-deep:#103d34;--table-ink:#f2ead3;--table-muted:#c5d4c3;--table-rail:#3c2e26;--table-gold:#bba16c}body[data-design=midnight]{--table-mid:#314b73;--table-deep:#142746;--table-rail:#202634}body[data-design=bordeaux]{--table-mid:#763548;--table-deep:#401b2b;--table-rail:#30232a}body[data-design=petrol]{--table-mid:#286775;--table-deep:#103c45;--table-rail:#1c3035}body[data-design=slate]{--table-mid:#4b555e;--table-deep:#242e37;--table-rail:#131d26}body[data-design=ivory]{--table-mid:#e8d9b9;--table-deep:#c9b389;--table-ink:#29251f;--table-muted:#403b30;--table-rail:#66533d;--table-gold:#6f4d1e}
.felt{background:radial-gradient(ellipse at 50% 35%,var(--table-mid),var(--table-deep) 75%);border-color:var(--table-rail);color:var(--table-ink)}.felt .pot,.felt .street-pills .selected{color:var(--table-ink)}.felt .pot small,.felt .street-pills{color:var(--table-muted)}.felt .felt-brand{color:var(--table-muted);opacity:.7}.felt .chip-icon{color:var(--table-gold);text-shadow:none}.felt .card-slot{color:var(--table-muted);border-color:var(--table-muted);opacity:.28}.drill-felt{background:radial-gradient(ellipse,var(--table-mid),var(--table-deep));border-color:var(--table-rail)}.drill-felt .meta{color:var(--table-muted)}
body[data-suits=four] .playing-card[data-suit='♦']{color:#165ba3}body[data-suits=four] .playing-card[data-suit='♣']{color:#176b48}body[data-suits=four] .playing-card[data-suit='♥']{color:#a72e3c}body[data-suits=four] .playing-card[data-suit='♠']{color:#102334}
body[data-back=plain] .casino-room .playing-card.back{background:#21344b}body[data-back=diamond] .casino-room .playing-card.back{background-color:#21344b;background-image:repeating-linear-gradient(45deg,transparent 0 7px,#cbb98838 7px 8px),repeating-linear-gradient(-45deg,transparent 0 7px,#cbb98838 7px 8px)}body[data-motion=reduced] .casino-room .playing-card{animation:none!important;transition:none!important}body[data-log=hide] .hand-log-panel{display:none}body[data-reading=large] .reading p,body[data-reading=large] .reading li,body[data-reading=large] .time-body p,body[data-reading=large] .drill-panel p{font-size:1.25rem;line-height:1.8}
.table-preferences{border:1px solid #aa95654d;border-radius:5px;background:#15232c;margin-bottom:18px;padding:16px}.table-preferences>summary{cursor:pointer;min-height:28px;font-size:16px;color:#ebd3a0}.table-preferences>summary span{color:#aabcc8;font-size:14px;margin-left:16px}.table-preferences[open]>summary{margin-bottom:24px}.preferences-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.preference-field{display:flex;flex-direction:column;gap:9px;min-width:0;margin:0}.preference-field>span{font-size:16px;font-weight:600;color:#e4e6de}.preference-field>select{width:100%;min-height:46px;font-size:16px}.preference-field>small{font-size:14px;color:#b4c3ca;line-height:1.5}.preferences-layout{display:grid;grid-template-columns:1fr 1fr;gap:20px}.preferences-layout .preferences-grid{grid-template-columns:1fr}.preferences-layout~.panel,.preferences-layout{margin-top:24px}.design-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.design-choice{display:flex;flex-direction:column;gap:9px;align-items:flex-start;border:1px solid #65727a;background:#14232d;color:#f1eadc;border-radius:5px;padding:12px;font:inherit;text-align:left;cursor:pointer;min-width:0}.design-choice.selected{border:2px solid #e0bf7c;padding:11px;background:#26323a}.design-choice>span:last-child{font-size:14px;color:#b9c7ce}.design-swatch{display:grid;place-items:center;width:100%;height:90px;border-radius:40%;border:5px solid #514331;color:#e6d3a2;font-size:34px;background:radial-gradient(ellipse,#276453,#103d34)}.swatch-midnight{background:radial-gradient(ellipse,#314b73,#142746)}.swatch-bordeaux{background:radial-gradient(ellipse,#763548,#401b2b)}.swatch-petrol{background:radial-gradient(ellipse,#286775,#103c45)}.swatch-slate{background:radial-gradient(ellipse,#4b555e,#242e37)}.swatch-ivory{background:radial-gradient(ellipse,#e8d9b9,#c9b389);color:#403b30}.override-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 0;border-bottom:1px solid #ffffff15}.override-row small{display:block;color:#bac6cb;font-size:14px;margin-top:7px}.table-preferences .btns{margin:24px 0 14px}.profile-settings{font-size:14px}.button,button.answer,.course-index button{min-height:44px}#content{padding-bottom:max(30px,env(safe-area-inset-bottom))}
body[data-card-size=large] .casino-room .board .playing-card,body[data-card-size=large] .card-slot{width:62px;height:88px;font-size:28px}body[data-card-size=large] .casino-room .hero-seat .playing-card{width:59px;height:85px;font-size:28px}body[data-card-size=large] .casino-room .hero-seat:has(.playing-card:nth-child(4)) .playing-card{width:51px;height:76px;font-size:25px}
body[data-compact=true] .casino-room{height:550px}body[data-compact=true] .felt{top:122px;height:285px;padding-top:43px}body[data-compact=true] .hero-seat{bottom:12px}body[data-compact=true] .table-heading h1{font-size:1.7rem}body[data-compact=true] .table-heading{margin-bottom:18px}
@media(max-width:1100px){.sidebar{position:static!important;width:auto!important;min-height:0;padding:16px 18px 0}.sidebar .brand{margin:0 0 12px}.sidebar .side-label,.sidebar .side-bottom{display:none}.sidebar nav{display:flex!important;gap:4px;overflow-x:auto;max-width:100%;padding-bottom:5px;scrollbar-width:thin}.sidebar nav a{flex:0 0 auto;min-height:46px;padding:12px 15px;font-size:14px;white-space:nowrap}.sidebar nav .icon{display:none}.shell{margin-left:0!important}.topbar{padding:14px 24px}.topbar .eyebrow{display:none}.prototype{padding:12px 24px}main{padding:25px 24px}.preferences-layout{grid-template-columns:1fr 1fr}.table-coach{grid-template-columns:1fr 1fr}.casino-room{max-width:850px;margin-inline:auto}.casino-layout{grid-template-columns:1fr}body[data-card-size=large] .casino-room .board .playing-card,body[data-card-size=large] .card-slot{width:55px;height:80px}.action-dock{margin-inline:auto}.table-preferences{scroll-margin-top:20px}}
@media(max-width:650px){.sidebar .brand{font-size:22px}.sidebar nav a{padding:12px}.topbar{padding:12px 18px}.prototype{padding:12px 18px}main{padding:22px 18px}.design-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.preferences-layout,.preferences-grid{grid-template-columns:1fr}.design-swatch{height:74px}.design-choice strong{font-size:15px}.override-row{display:block}.override-row .button{margin-top:14px}.table-preferences{padding:15px}.table-preferences summary span{display:block;margin:8px 0 0 16px}.table-preferences .btns{align-items:stretch;flex-direction:column}.table-coach{grid-template-columns:1fr}.felt{left:12px;right:12px;padding-inline:5px}.casino-room .board{gap:4px}.casino-room .board .playing-card,.card-slot{width:39px;height:59px;font-size:22px}.casino-room .board .playing-card small{font-size:24px}body[data-card-size=large] .casino-room .board .playing-card,body[data-card-size=large] .card-slot{width:clamp(39px,11vw,47px);height:70px;font-size:25px}body[data-card-size=large] .casino-room .hero-seat .playing-card{width:53px;height:77px;font-size:25px}body[data-card-size=large] .casino-room .hero-seat:has(.playing-card:nth-child(4)) .playing-card{width:45px;height:70px;font-size:24px}.seat{min-width:165px}.casino-room .opponent .playing-card{width:35px;height:51px}.casino-room .hero-seat{padding:8px 17px}body[data-compact=true] .felt{height:273px;padding-top:40px}body[data-compact=true] .casino-room{height:540px}.table-settings{padding:12px}.hand-log{max-height:210px}}
@media(orientation:landscape) and (max-height:600px) and (min-width:640px) and (max-width:1100px){.sidebar{padding-top:10px}.sidebar .brand{display:none}.topbar{display:none}body[data-compact=true] .casino-room{height:365px}body[data-compact=true] .felt{top:38px;left:5%;right:5%;height:280px;padding:35px 18% 15px}body[data-compact=true] .opponent{left:12%;top:99px;min-width:120px}body[data-compact=true] .hero-seat{left:87%;top:90px;bottom:auto;min-width:130px;padding:8px}body[data-compact=true] .casino-room .hero-seat .playing-card{width:39px;height:60px;font-size:23px}body[data-compact=true] .casino-room .hero-seat:has(.playing-card:nth-child(4)) .playing-card{width:29px;height:48px;font-size:19px}body[data-compact=true] .casino-room .opponent .playing-card{width:27px;height:43px}body[data-compact=true] .casino-room .seat .cards{gap:3px}body[data-compact=true] .casino-room .board .playing-card,body[data-compact=true] .card-slot{width:42px;height:65px;font-size:24px}.table-heading{display:flex}.table-heading>div:last-child{margin-top:0}.table-coach{grid-template-columns:1fr 1fr}}
@media(prefers-reduced-motion:reduce){.casino-room .playing-card{animation:none!important;transition:none!important}}
@media print{.sidebar,.topbar,.prototype,.table-preferences{display:none}.shell{margin:0}}
body[data-card-size=large] .casino-room{height:675px}body[data-card-size=large][data-compact=true] .casino-room{height:600px}@media(max-width:1100px){body[data-card-size=large] .casino-room{height:640px}body[data-card-size=large][data-compact=true] .casino-room{height:600px}}@media(max-width:650px){body[data-card-size=large] .casino-room{height:640px}body[data-card-size=large][data-compact=true] .casino-room{height:590px}}@media(orientation:landscape) and (max-height:600px) and (min-width:640px) and (max-width:1100px){body[data-card-size=large][data-compact=true] .casino-room{height:380px}}
.opponent>small{display:inline-block;background:#13232e;color:#d6e0e5;padding:3px 7px;border-radius:4px}@media(orientation:landscape) and (max-height:600px) and (min-width:640px) and (max-width:1100px){body[data-compact=true] .opponent{background:#13232eef;border:1px solid #aa956555;border-radius:6px;padding:8px 5px}}
/* Browser-owned safe areas: no iPhone model detection or fixed notch dimensions. */
:root{--safe-top:env(safe-area-inset-top,0px);--safe-right:env(safe-area-inset-right,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px)}
@media(max-width:1100px){
 body{padding:var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left)}
 html{scroll-padding-top:calc(var(--safe-top) + 12px);scroll-padding-bottom:calc(var(--safe-bottom) + 16px)}
 #content{padding-bottom:30px}
 .skip:focus{top:calc(var(--safe-top) + 10px);left:calc(var(--safe-left) + 10px);max-width:calc(100vw - var(--safe-left) - var(--safe-right) - 20px)}
 .action-dock,.table-preferences,.profile-settings,input,select,button{scroll-margin-top:calc(var(--safe-top) + 12px);scroll-margin-bottom:calc(var(--safe-bottom) + 16px)}
 .casino-room{container-type:inline-size}
}
@media(orientation:landscape) and (max-height:600px) and (min-width:640px) and (max-width:1100px){
 body[data-compact=true] .casino-room .board{gap:4px}
 body[data-compact=true] .casino-room .board .playing-card,body[data-compact=true] .card-slot{width:clamp(32px,5.2cqw,42px);height:60px;font-size:23px}
 body[data-compact=true] .hero-seat{left:86%;min-width:118px}
 body[data-compact=true] .opponent{left:14%;min-width:112px}
 body[data-compact=true] .casino-room .hero-seat:has(.playing-card:nth-child(4)) .playing-card{width:clamp(24px,4.1cqw,29px);height:48px}
}
