/* The 2020 club: editorial portraits, green baize, charcoal and warm yellow. */
html[data-visual-style=classy][data-appearance=light]{--cream:#f1f0ed;--paper:#fffefa;--ink:#2a2832;--muted:#6b6875;--green:#f3cf59;--deep:#24613e;--line:#d8d5dd;--orange:#d67e84;--shadow:0 4px 0 #25222c13;background:var(--cream);color:var(--ink)}
html[data-visual-style=classy][data-appearance=dark]{--cream:#211f29;--paper:#2d2a37;--ink:#f6f1e8;--muted:#bbb5c7;--green:#f3cf59;--deep:#a5d6af;--line:#504b5e;--orange:#db9c9c;--shadow:0 4px 0 #0003;background:var(--cream);color:var(--ink)}
html[data-visual-style=classy][data-appearance] body{background:var(--cream);color:var(--ink);font-family:'DM Sans',Arial,sans-serif}
html[data-visual-style=classy][data-appearance] :is(h1,h2,h3,h4,.brand){font-family:'DM Sans',Arial,sans-serif;font-weight:700;letter-spacing:-.035em}
html[data-visual-style=classy][data-appearance] .brand{color:var(--ink)}
html[data-visual-style=classy][data-appearance] .brand-mark{filter:none}
html[data-visual-style=classy][data-appearance] :is(.hero h1 em,.club-welcome-copy h1 em){color:var(--deep);font-style:normal}
html[data-visual-style=classy][data-appearance] :is(.hero-sub,.muted,.role-label,.opponent-card p,.feature p,.eyebrow,.section-label){color:var(--muted)}
html[data-visual-style=classy][data-appearance] :is(.welcome-card,.panel,.room-card,.sidebar-panel,.controls,.mode-picker,dialog,.opponent-card){background:var(--paper);color:var(--ink);border-color:var(--line);box-shadow:var(--shadow)}
html[data-visual-style=classy][data-appearance] :is(.button,.entry-button){background:#f3cf59;color:#302b25;border-color:#d4af3d;box-shadow:0 3px 0 #b79940}
html[data-visual-style=classy][data-appearance] :is(.button.soft,.entry-button.secondary){background:var(--paper);color:var(--ink);border-color:var(--line);box-shadow:var(--shadow)}
html[data-visual-style=classy][data-appearance] :is(.style-switch,.input-wrap,input:not([type=range]):not([type=checkbox]),select,.counter,.mode-tabs,.sng-options){background:var(--paper);color:var(--ink);border-color:var(--line)}
html[data-visual-style=classy][data-appearance] :is(.opponent-card h3,.hero-preview strong){color:var(--ink)}
html[data-visual-style=classy][data-appearance] .opponent-card[aria-pressed=true]{background:color-mix(in srgb,var(--paper) 88%,#eac74d);border-color:#b39231;box-shadow:0 0 0 1px #b39231}
html[data-visual-style=classy][data-appearance] .style-switch button{color:var(--muted)}
html[data-visual-style=classy][data-appearance] .style-switch button[aria-pressed=true]{background:#f3cf59;color:#302b25}
html[data-visual-style=classy][data-appearance] :is(.counter button[aria-pressed=true],.mode-tabs button[aria-pressed=true],.sng-formats button[aria-pressed=true]){background:#f3cf59;color:#302b25;border-color:#b39231}
html[data-visual-style=classy][data-appearance] .felt{background:radial-gradient(ellipse at center,#317648,#1c5c34);border-color:#333039;box-shadow:0 0 0 2px #777078,inset 0 0 0 2px #6d986a,0 5px 0 #19171e}
html[data-visual-style=classy][data-appearance=light] .felt{background:radial-gradient(ellipse at center,#9ac4a0,#80ad89)}
html[data-visual-style=classy][data-appearance] .table-wrap{background:var(--cream);border-color:var(--line)}
html[data-visual-style=classy][data-appearance] :is(.pot-label,.street-label){color:#dfebd4}
html[data-visual-style=classy][data-appearance] .pot-number{color:#fff6d9}
html[data-visual-style=classy][data-appearance] .pot-result-detail{color:#e6efd9}
html[data-visual-style=classy][data-appearance] .table-wordmark{color:#c3d3ad}
html[data-visual-style=classy][data-appearance=light] :is(.pot-label,.street-label,.pot-number,.pot-result-detail){color:#263c2d}
html[data-visual-style=classy][data-appearance=light] .table-wordmark{color:#385f41}
html[data-visual-style=classy][data-appearance] .hero-seat{background:var(--paper);color:var(--ink);border-color:#bba050;box-shadow:var(--shadow)}
html[data-visual-style=classy][data-appearance] :is(.seat-avatar,.seat-stack,.seat-action,.table-bet strong){background:var(--paper);color:var(--ink);border-color:var(--line)}
html[data-visual-style=classy][data-appearance] .seat-name{color:var(--ink)}
.legacy-avatar{flex-shrink:0;overflow:hidden;border-radius:50%}
.legacy-hero-scene{width:100%;height:auto;max-height:360px;display:block}
html[data-visual-style=classy] .hero-art{width:100%;max-width:560px;margin:8px auto 0}
html[data-visual-style=classy] .club-welcome-art .legacy-hero-scene{max-height:320px}
@media(max-width:760px){html[data-layout=phone][data-visual-style=classy] .hero-art svg.legacy-hero-scene{width:100%;height:clamp(140px,calc(var(--app-height,700px) * .25),220px)}}
@media(max-width:760px) and (max-height:620px){html[data-layout=phone][data-visual-style=classy] .hero-art svg.legacy-hero-scene{height:clamp(90px,calc(var(--app-height,600px) * .18),125px)}}
.cast-profile{align-items:flex-start}.cast-profile>.classy-avatar{width:54px;height:54px;margin-top:3px}
.cast-story{display:block;line-height:1.5;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}
/* Classy table option B: a full portrait with an always-visible floating balance pill.
   Keep the outer wrapper open; the SVG clips the portrait while the pill crosses its rim. */
html[data-layout][data-visual-style=classy][data-appearance] .game-shell .table-wrap .seat .seat-avatar.soft-avatar{padding:0!important;background:transparent!important;border:1px solid #356447;overflow:visible;border-radius:50%}
html[data-visual-style=classy][data-appearance] :is(.game-shell .table-wrap,.tournament-layout) .seat .classy-seat-portrait{position:absolute;inset:0;display:block;overflow:visible;border-radius:50%;isolation:auto;line-height:1}
html[data-visual-style=classy][data-appearance] :is(.game-shell .table-wrap,.tournament-layout) .seat .classy-seat-portrait>svg{position:absolute;inset:0;display:block;width:100%!important;height:100%!important;max-width:none;transform:none!important;border-radius:50%}
html[data-visual-style=classy][data-appearance] :is(.game-shell .table-wrap,.tournament-layout) .seat .classy-seat-portrait>.avatar-balance{position:absolute;inset:auto auto 0 50%;transform:translate(-50%,50%)!important;box-sizing:border-box;width:max-content;min-width:68%;max-width:110%;height:auto;min-height:clamp(15px,calc(var(--table-badge-size,54px) * .28),24px);display:flex;align-items:center;justify-content:center;padding:2px 8%;margin:0;border:1px solid #e9f0e1b3;border-radius:999px;box-shadow:0 2px 4px #0003;background:rgba(14,59,42,.82);color:#fff!important;font-family:'DM Sans',Arial,sans-serif;font-size:clamp(9px,calc(var(--table-badge-size,54px) * var(--stack-font-ratio,.23)),17px);font-weight:800;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-.02em;text-shadow:0 1px 1px #0004;white-space:nowrap;z-index:4;pointer-events:none}
html[data-layout][data-visual-style=classy] .game-shell .table-wrap .avatar-timer:not([data-banking=true]):not([data-urgent=true]){--timer-color:#efc857}
html[data-layout][data-visual-style=classy] .game-shell .table-wrap .avatar-timer>.timer-track{border-width:3px}
html[data-layout][data-visual-style=classy] .game-shell .hero-folded .classy-seat-portrait>svg{opacity:.65}
/* Three short choices share the existing control; no extra row of settings. */
.style-switch{max-width:100%}.style-switch button{white-space:nowrap}
@media(max-width:600px){
 .topbar .top-right,.club-header .header-tools{gap:4px}
 .topbar .style-switch button,.club-header .style-switch button{font-size:10px!important;padding:5px 7px!important;min-height:32px}
 .topbar .brand{font-size:21px!important;gap:4px}.topbar .brand-mark{width:24px!important;height:28px!important}
 .club-header{gap:6px}.club-header .brand{font-size:20px}.club-header .brand img{width:23px}.club-header .brand>.club-brand-suffix{display:none}
}
@media(max-width:360px){
 .topbar .brand,.club-header .brand{font-size:18px!important;letter-spacing:-1px}
 .topbar .style-switch button,.club-header .style-switch button{padding:5px!important;font-size:9px!important}
 .topbar .brand-mark{width:21px!important}.topbar .top-right{gap:3px}
 .topbar .brand-domain,.club-header .brand-domain{display:none}
}

/* Club MTT seats share the same Classy portrait treatment. */
html[data-visual-style=classy] .tournament-layout .classy-mtt-avatar{position:relative;display:block;width:54px;height:54px;margin:0 auto;border:1px solid #356447;border-radius:50%;box-sizing:border-box}
html[data-visual-style=classy] :is(.game-shell .table-wrap,.tournament-layout) .seat.folded{opacity:1}
html[data-visual-style=classy] .game-shell .table-wrap .seat.folded .soft-avatar{opacity:1}
html[data-visual-style=classy] :is(.game-shell .table-wrap,.tournament-layout) .seat.folded .classy-seat-portrait>svg{opacity:.45;filter:grayscale(.75)}
html[data-visual-style=classy] :is(.game-shell .table-wrap,.tournament-layout) .seat.folded :is(.seat-name,strong){opacity:.55}

/* Reserve room for the lower half of the pill before the name. */
html[data-layout][data-visual-style=classy] .game-shell .table-wrap .hero-seat[data-seat-player]{height:calc(var(--hand-card-height) + 35px)}
html[data-visual-style=classy] .tournament-layout .classy-mtt-avatar{margin-bottom:10px}

/* Classy crew picker: portraits lead; descriptions remain in the cast sheet. */
html[data-visual-style=classy] body[data-screen=setup] .opponent-card :is(p,.tags){display:none}
html[data-visual-style=classy] body[data-screen=setup] .opponent-card{box-sizing:border-box;min-width:0;border-width:2px}
html[data-visual-style=classy] body[data-screen=setup] .opponent-card:hover{transform:none}
html[data-layout=phone][data-visual-style=classy] body[data-screen=setup] .opponent-grid{gap:5px;padding:2px;grid-template-rows:repeat(3,minmax(102px,1fr));overflow-y:auto;overflow-x:hidden}
html[data-layout=phone][data-visual-style=classy] body[data-screen=setup] .opponent-card{grid-template-rows:minmax(36px,1fr) minmax(14px,auto) 16px 10px;gap:2px;padding:5px 3px;min-height:102px;align-content:stretch}
html[data-layout=phone][data-visual-style=classy] body[data-screen=setup] .opponent-card>svg{width:min(80px,88%);height:100%;max-height:80px;min-height:0;margin:0;align-self:center}
html[data-layout=phone][data-visual-style=classy] body[data-screen=setup] .opponent-card h3{white-space:normal;overflow-wrap:anywhere;font-size:10.5px;line-height:13px;max-width:100%;margin:0}
html[data-layout=phone][data-visual-style=classy] body[data-screen=setup] .opponent-card :is(.difficulty,.role-label){margin:0}
/* Desktop uses compact portrait-and-name cards instead of long biography cards. */
@media(min-width:761px){
 html:not([data-layout=phone])[data-visual-style=classy] body[data-screen=setup] .shell{max-width:1240px;padding-inline:28px}
 html:not([data-layout=phone])[data-visual-style=classy] body[data-screen=setup] .topbar{height:80px}
 html:not([data-layout=phone])[data-visual-style=classy] body[data-screen=setup] .topbar .brand-logo{width:72px;height:72px}
 html:not([data-layout=phone])[data-visual-style=classy] body[data-screen=setup] .page-head{padding:14px 0 12px;align-items:center}
 html:not([data-layout=phone])[data-visual-style=classy] body[data-screen=setup] .page-head>div{display:flex;align-items:center;gap:16px}
 html:not([data-layout=phone])[data-visual-style=classy] body[data-screen=setup] .page-head h1{font-size:30px;line-height:1.15}
 html:not([data-layout=phone])[data-visual-style=classy] body[data-screen=setup] .page-head :is(p,.pill){display:none}
 html:not([data-layout=phone])[data-visual-style=classy] body[data-screen=setup] .back-link{margin:0;white-space:nowrap}
 html:not([data-layout=phone])[data-visual-style=classy] body[data-screen=setup] .opponents-head{gap:8px;margin-bottom:10px;flex-wrap:wrap}
 html:not([data-layout=phone])[data-visual-style=classy] body[data-screen=setup] .character-guide{display:inline-flex;font-size:12px;margin-left:auto}
 html:not([data-layout=phone])[data-visual-style=classy] body[data-screen=setup] .section-label{font-size:10px;letter-spacing:.5px}
 html:not([data-layout=phone])[data-visual-style=classy] body[data-screen=setup] .step-dot{display:none}
 html:not([data-layout=phone])[data-visual-style=classy] body[data-screen=setup] .counter{order:3;margin-left:auto}
 html:not([data-layout=phone])[data-visual-style=classy] body[data-screen=setup] .opponent-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
 html:not([data-layout=phone])[data-visual-style=classy] body[data-screen=setup] .opponent-card{display:grid;grid-template-columns:minmax(64px,38%) minmax(0,1fr);grid-template-rows:minmax(28px,auto) 20px 14px;column-gap:8px;row-gap:3px;align-items:center;align-content:center;text-align:left;padding:12px 10px;min-height:122px;border-radius:14px}
 html:not([data-layout=phone])[data-visual-style=classy] body[data-screen=setup] .opponent-card>svg{grid-column:1;grid-row:1/4;width:100%;height:auto;max-height:100px;aspect-ratio:1;margin:0}
 html:not([data-layout=phone])[data-visual-style=classy] body[data-screen=setup] .opponent-card h3{grid-column:2;grid-row:1;font-size:14px;line-height:16px;margin:0;overflow-wrap:anywhere}
 html:not([data-layout=phone])[data-visual-style=classy] body[data-screen=setup] .opponent-card .difficulty{grid-column:2;grid-row:2;justify-self:start;margin:0;font-size:8px}
 html:not([data-layout=phone])[data-visual-style=classy] body[data-screen=setup] .opponent-card .role-label{grid-column:2;grid-row:3;font-size:8px;line-height:12px;letter-spacing:0;margin:0}
 html:not([data-layout=phone])[data-visual-style=classy] body[data-screen=setup] .opponent-card .selected-tick{width:16px;height:16px;right:5px;top:5px;font-size:10px}
 html:not([data-layout=phone])[data-visual-style=classy] body[data-screen=setup] .setup-bottom{padding:12px 0 16px;justify-content:flex-end}
 html:not([data-layout=phone])[data-visual-style=classy] body[data-screen=setup] .setup-bottom>p,html:not([data-layout=phone])[data-visual-style=classy] body[data-screen=setup] .footer{display:none}
 html:not([data-layout=phone])[data-visual-style=classy] body[data-screen=setup] .setup-bottom .button{min-width:260px;min-height:48px;padding:12px 22px}
 html:not([data-layout=phone])[data-visual-style=classy] body[data-screen=setup] .mode-picker{margin-bottom:14px;padding:10px}
}
@media(min-width:1100px){
 html:not([data-layout=phone])[data-visual-style=classy] body[data-screen=setup] main{display:grid;grid-template-columns:240px minmax(0,1fr);gap:0 22px;align-items:start}
 html:not([data-layout=phone])[data-visual-style=classy] body[data-screen=setup] .page-head{grid-column:1/-1}
 html:not([data-layout=phone])[data-visual-style=classy] body[data-screen=setup] .mode-picker{grid-column:1;grid-row:2;display:flex;flex-direction:column;align-items:stretch;gap:12px;margin:0}
 html:not([data-layout=phone])[data-visual-style=classy] body[data-screen=setup] .mode-tabs{width:100%;grid-template-columns:1fr}
 html:not([data-layout=phone])[data-visual-style=classy] body[data-screen=setup] .sng-formats{grid-template-columns:1fr}
 html:not([data-layout=phone])[data-visual-style=classy] body[data-screen=setup] .bot-setup-grid{grid-column:2;grid-row:2;display:block;min-width:0}
 html:not([data-layout=phone])[data-visual-style=classy] body[data-screen=setup] .setup-bottom{grid-column:2;grid-row:3}
}
