.sg-lobby{max-width:1240px;margin:0 auto;padding:24px 4px 48px;color:#f5eedb}.sg-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:30px}.sg-eyebrow{font-size:11px;letter-spacing:.18em;color:#ddbd65;font-weight:700}.sg-heading h1{font-size:clamp(25px,3vw,40px);line-height:1.2;margin:12px 0}.sg-heading p:not(.sg-eyebrow){color:#abc2b7;font-size:15px}.sg-train{white-space:nowrap;background:#153f33!important}.sg-tabs{display:flex;gap:8px;border-bottom:1px solid #466044;padding-bottom:12px;margin-bottom:24px}.sg-tabs button{background:transparent;border:0;border-radius:8px;padding:12px 20px;color:#b3c6bc;font-weight:600}.sg-tabs [aria-selected=true]{background:#ddbd65;color:#142e26}.sg-tabs small{font-size:10px;margin-left:6px;opacity:.8}.sg-filters{display:grid;grid-template-columns:2fr 1fr 1fr;gap:16px}.sg-filters label,.sg-invite label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#abc2b7}.sg-filters select,.sg-invite input{width:100%;min-width:0;background:#102e27;border:1px solid #38564b;color:#f5eedb;border-radius:8px;padding:12px;font:inherit;font-size:14px}.sg-hint{font-size:12px;color:#a9c0b5;margin:16px 0 24px}.sg-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.sg-card{background:linear-gradient(140deg,#183e32,#0b251f);border:1px solid #3a5140;border-radius:16px;padding:22px;display:flex;flex-direction:column;gap:12px;box-shadow:0 8px 22px #0002;min-width:0}.sg-card:hover{border-color:#ab9655}.sg-card-top{display:flex;justify-content:space-between;align-items:center}.sg-suit{font-size:32px;color:#e3c775;line-height:1}.sg-card[data-game=cacheta] .sg-suit,.sg-card[data-game=buraco] .sg-suit{color:#d7a091}.sg-badge{font-size:10px;letter-spacing:.1em;color:#c5d5b3;background:#314b35;padding:5px 8px;border-radius:5px}.sg-card h2{font-size:18px;margin:0}.sg-card p{font-size:13px;color:#a5bcb0;margin:0}.sg-card-info{display:flex;align-items:baseline;gap:8px;padding:10px 0;border-bottom:1px solid #ffffff12}.sg-card-info strong{font-size:27px;color:#f0d583}.sg-card small{font-size:12px;color:#a9c0b5}.sg-seat-dots{display:flex;gap:5px}.sg-seat-dots i{height:7px;flex:1;border-radius:4px;background:#395348}.sg-seat-dots i.filled{background:#e6c775}.sg-card button{width:100%;margin-top:6px;min-height:42px}.sg-card button:disabled{opacity:.5;cursor:default}.sg-room{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:16px;margin-bottom:16px;background:#254b38;border:1px solid #b39c54;border-radius:12px}.sg-room button{margin-left:auto}.sg-invite{padding:20px;border:1px solid #426247;border-radius:12px;margin-bottom:20px;display:flex;gap:16px;flex-wrap:wrap;align-items:end}.sg-invite p{width:100%;font-size:13px}.sg-invite .sg-private{width:auto}.sg-tournaments{text-align:center;padding:64px 20px;background:radial-gradient(ellipse at top,#294939,#0b241e);border:1px solid #4a5b40;border-radius:16px}.sg-tournaments>span{font-size:64px;color:#dec575}.sg-tournaments p{max-width:580px;margin:16px auto 28px;color:#afc2b6;line-height:1.6}.sg-tournaments strong{color:#e1c678}.sg-status:empty{display:none}.sg-training-back{display:none;margin-bottom:16px}#lobby.sg-active>.games-section,#lobby.sg-active>.layout,#lobby.sg-active>.lobby-heading{display:none!important}.sg-lobby[hidden],.sg-lobby [hidden]{display:none!important}.sg-training .sg-lobby{display:none}.sg-training .sg-training-back{display:block}@media(max-width:900px){.sg-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sg-heading{align-items:start;flex-direction:column;gap:6px}}@media(max-width:540px){.sg-lobby{padding:16px 0 28px}.sg-grid{grid-template-columns:1fr}.sg-filters{grid-template-columns:1fr 1fr;gap:10px}.sg-filters label:first-child{grid-column:1/-1}.sg-tabs{gap:2px}.sg-tabs button{padding:10px;font-size:13px;flex:1}.sg-tabs small{display:block;margin:3px 0 0}.sg-card{padding:18px}.sg-heading h1{font-size:27px}.sg-invite{padding:14px}.sg-invite>label{width:100%}}

/* Public presentation and compact Naipeon lobby. */
#lobby.sg-active>.hero{max-width:none;width:100%;margin:8px auto 18px}#lobby.sg-active>.sg-own-rooms:empty{display:none}.sg-own-rooms .sg-room{border-left:4px solid #e0c473;margin-bottom:12px}
.sg-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}.sg-card{position:relative;overflow:hidden;padding:16px;gap:8px;background:radial-gradient(ellipse at top right,#254b3a88,transparent 65%),#09271f;border:1px solid #8e7948;border-radius:14px;box-shadow:inset 0 0 0 3px #061d1780,0 4px 12px #0002}.sg-card::after{content:'♠';position:absolute;right:10px;top:48px;font-size:100px;line-height:1;color:#d5b96908;pointer-events:none}.sg-card h2{font-size:17px;color:#f0d997}.sg-card p{font-size:12px}.sg-card-top{margin:0}.sg-suit{font-size:25px}.sg-card-info{padding:5px 0}.sg-card-info strong{font-size:22px}.sg-card button{min-height:40px;padding:8px 10px;font-size:14px}.sg-card .sg-badge{font-size:9px;letter-spacing:.08em}.sg-heading h1{font-size:clamp(24px,3vw,32px)}.sg-heading{margin-bottom:16px}.sg-lobby{padding-top:8px}.sg-card small{font-size:11px}
@media(max-width:540px){.sg-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.sg-card{padding:12px;gap:7px}.sg-card h2{font-size:15px}.sg-card-info{flex-wrap:wrap;gap:3px}.sg-card-info strong{font-size:20px}.sg-card-top{gap:3px}.sg-card button{min-height:44px;font-size:13px}.public-home p{font-size:15px}.public-brand{margin-top:0}.sg-heading p{font-size:13px}.sg-lobby{padding-top:6px}}
@media(max-width:350px){.sg-grid{grid-template-columns:1fr}}

.sg-card h2{min-height:2.4em;line-height:1.2}.sg-card button{margin-top:auto}.sg-card>p{margin:0!important;line-height:1.35}.sg-filters label{gap:6px}.sg-filters select{margin-top:0}.sg-heading>div>p{margin:8px 0;line-height:1.4}#lobby>.hero .carousel-slide:not([data-slide-id="home"])::after{content:'Publicidade';position:absolute;top:6px;left:8px;padding:3px 7px;background:#041c19e8;color:#f4e7bf;border-radius:4px;font-size:11px}

/* Group the existing free queues by game, without changing the header or banner. */
.sg-lobby .sg-grid{display:flex;flex-direction:column;gap:26px}
.sg-modality{min-width:0}
.sg-modality-heading{display:flex;align-items:center;gap:14px;margin-bottom:12px}
.sg-modality-heading img{width:84px;height:64px;object-fit:contain}
.sg-modality-heading h2{font-size:22px;color:#efd48a;margin:0}
.sg-modality-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
.sg-tabs{flex-wrap:wrap}
@media(max-width:540px){
 .sg-modality-heading img{width:70px;height:54px}
 .sg-modality-heading h2{font-size:20px}
 .sg-modality-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .sg-tabs button{flex:1 1 auto}
}
@media(max-width:350px){.sg-modality-cards{grid-template-columns:1fr}}
.quick-game-options .quick-family-row{display:grid;grid-template-columns:100px minmax(0,1fr);gap:10px;padding:10px 0;border-bottom:1px solid #b79b4933;align-items:center;width:100%}
.quick-family-row>strong{display:flex;flex-direction:column;align-items:center;font-size:13px}
.quick-family-row>strong img{width:48px;height:40px;object-fit:contain}
.quick-family-variants{display:flex;gap:6px;flex-wrap:wrap;min-width:0}
.quick-game-options .quick-family-variants button{flex:1 1 100px;min-width:0;display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;font-size:13px;padding:7px}
.quick-family-variants button img{width:28px;height:28px;object-fit:contain}
.quick-game-choice .quick-game-options{display:flex;flex-direction:column}
@media(max-width:400px){.quick-game-options .quick-family-row{grid-template-columns:68px minmax(0,1fr);gap:5px}.quick-game-options .quick-family-variants button{flex-basis:65px;font-size:12px;flex-direction:column}}

/* Discovery controls and enrolled tables. Header and campaign banner stay untouched. */
#lobby.sg-training>.layout{display:none!important}
.sg-lobby .sg-hint{font-size:clamp(20px,2.1vw,26px);font-weight:600;line-height:1.4;color:#f2dfac;margin:8px 0 24px}
.sg-lobby .sg-filter-title{font-size:20px;margin:0 0 14px;color:#ecd28b}
.sg-lobby .sg-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:16px;padding:18px;border:1px solid #8e79484d;border-radius:14px;background:#0c2a2380}
.sg-lobby .sg-filters>label{flex:1 1 180px;font-size:16px;font-weight:600;min-width:0}
.sg-lobby .sg-filters select{height:46px;font-size:15px}
.sg-game-filter{flex:1 0 100%;border:0;padding:0;margin:0;min-width:0;display:flex;flex-wrap:wrap;gap:8px}
.sg-game-filter legend{font-size:17px;font-weight:600;color:#e6dbc1;padding:0;margin-bottom:10px}
.sg-game-filter button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:48px;padding:8px 12px;font-size:14px;border:1px solid #64775a;background:#0b2923}
.sg-game-filter button img{width:36px;height:30px;object-fit:contain}
.sg-game-filter button[aria-pressed=true]{border-color:#edcf76;background:#dec16a;color:#102c25}
.sg-room-own{border:2px solid #e6c66c;border-left-width:6px;background:linear-gradient(110deg,#244c39,#0d3028);box-shadow:0 0 18px #d7b84e18}
.sg-room-own strong{color:#ffe6a1}
.sg-rooms{margin-top:22px}
.sg-empty{padding:24px;border:1px dashed #587364;border-radius:12px;color:#c8d6cd}
@media(max-width:540px){.sg-lobby .sg-filters{padding:12px;gap:12px}.sg-lobby .sg-filters>label{flex-basis:140px}.sg-game-filter button{flex:1 1 100px;font-size:13px;padding:7px}.sg-lobby .sg-hint{font-size:21px;margin-bottom:18px}}
.sg-lobby .sg-invite>label:has(.sg-private){flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;min-height:44px}
.sg-lobby .sg-invite input.sg-private{width:20px;height:20px;min-width:20px;min-height:20px;margin:0;padding:0;flex:none;accent-color:#dec16a}
@media(max-width:540px){.sg-lobby .sg-filters>label{flex-basis:100%}.sg-lobby .sg-invite{gap:10px}.sg-lobby .sg-invite p{margin:0}}

/* Five visible tables per game, with lateral browsing for the remaining tables. */
.sg-lobby .sg-modality-cards{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:calc((100% - 48px)/5);gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:4px 2px 14px;scrollbar-width:thin;scrollbar-color:#b79b54 #09271f}
.sg-modality-cards>.sg-card{scroll-snap-align:start}
.sg-scroll-controls{display:flex;gap:8px;margin-left:auto}.sg-scroll-controls button{width:44px;height:44px;padding:0;font-size:28px;line-height:1;border:1px solid #8e7948;background:#10372e;color:#efcf78}
@media(max-width:1000px){.sg-lobby .sg-modality-cards{grid-auto-columns:calc((100% - 24px)/3)}}
@media(max-width:650px){.sg-lobby .sg-modality-cards{grid-auto-columns:78%;gap:12px}.sg-scroll-controls{gap:5px}.sg-modality-heading{gap:8px}}
.sg-modality-heading{flex-wrap:wrap;gap:12px}.sg-value-filters{display:flex;align-items:center;gap:18px;flex:1;justify-content:flex-end}.sg-value-filters label{font-size:14px}.sg-value-filters select{font-size:14px;padding:8px;min-height:40px}.sg-value-range{display:grid;grid-template-columns:1fr 1fr;gap:4px 10px;border:0;padding:0;min-width:220px}.sg-value-range legend{font-size:14px}.sg-value-range output{grid-column:1/-1;font-size:14px;color:#f0d997}.sg-value-range input{width:100%;min-width:0;accent-color:#dfbf64;padding:0;min-height:28px}.sg-only-funds{display:flex;align-items:center;gap:8px;max-width:250px}.sg-only-funds input{width:20px;height:20px;min-height:20px;accent-color:#dfbf64}.sg-only-funds strong{color:#e8cd81}.sg-card-unavailable{opacity:.58;filter:saturate(.35)}.sg-card-unavailable button{background:#244039!important;color:#d3d8d4!important;cursor:not-allowed;box-shadow:none}
@media(max-width:800px){.sg-value-filters{flex-basis:100%;justify-content:flex-start;flex-wrap:wrap;gap:12px}.sg-value-range{flex:1}.sg-only-funds{max-width:none}.sg-modality-heading .sg-scroll-controls{margin-left:auto}}
.sg-sort-buttons{display:flex;gap:4px;align-items:center}.sg-sort-buttons button{padding:8px!important;min-width:48px}.sg-sort-buttons button[aria-pressed=true]{background:#dcbf64;color:#08251e}.sg-value-filters .sg-value-range{min-width:130px;max-width:180px}.sg-value-range input[type=range]{width:100%!important}.sg-value-filters>label{min-width:100px}.sg-lobby .sg-modality-cards{grid-auto-columns:minmax(170px,calc((100% - 48px)/5))}.sg-card{padding:14px!important}.sg-card h3{font-size:17px!important}
@media(max-width:1000px){.sg-lobby .sg-modality-cards{grid-auto-columns:205px}}
@media(max-width:650px){.sg-lobby .sg-modality-cards{grid-auto-columns:220px}.sg-value-filters{gap:10px!important;display:flex!important;flex-wrap:wrap!important}}

.poker-entry-dialog{width:min(680px,94vw);padding:28px}.poker-entry-dialog form{display:grid;gap:16px}.poker-entry-dialog .payment-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.poker-entry-dialog h2{font-size:25px;line-height:1.3;margin:0}.poker-entry-dialog .poker-entry-close{flex:0 0 44px;width:44px;height:44px;padding:0;font-size:28px;line-height:1;border-radius:12px}.poker-entry-dialog p{margin:0;font-size:16px}.poker-entry-info,.poker-entry-presets{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.poker-entry-info{color:#efd184}.poker-entry-dialog label{display:grid;gap:8px}.poker-entry-dialog input[type=number],.poker-entry-dialog select{width:100%;min-height:52px;font-size:18px}.poker-entry-dialog input[type=range]{width:100%;accent-color:#dfbc5b;min-height:28px}.poker-entry-presets button{flex:1;min-height:44px}.poker-entry-dialog .poker-entry-summary{font-size:14px;color:#bfd1c5}.poker-entry-dialog button[type=submit]{width:100%;min-height:52px;margin:0}@media(max-width:600px){.poker-entry-dialog{padding:20px}.poker-entry-dialog h2{font-size:21px}.poker-entry-presets button{font-size:13px}.poker-entry-info{font-size:14px}}
.poker-entry-dialog form{gap:12px}.poker-entry-dialog .payment-heading{margin:0}.poker-entry-dialog form>label{margin:0;gap:6px}.poker-entry-dialog input,.poker-entry-dialog select,.poker-entry-dialog button{margin:0}.poker-entry-dialog input[type=range]{padding:0}.poker-entry-dialog .poker-entry-presets{gap:10px}
/* Game first, then its available tables; no combined all-games listing. */
.sg-lobby .sg-filters{display:flex;flex-direction:column;gap:16px;padding:18px}
.sg-lobby .sg-game-filter{width:100%;margin:0}
.sg-lobby .sg-table-choices{display:flex;flex-wrap:wrap;gap:8px;width:100%;padding-top:14px;border-top:1px solid #516547}
.sg-table-choices button{min-height:40px;padding:9px 18px;background:#10372e;border:1px solid #637c68;border-radius:9px;color:#e4eddf;font-size:14px}
.sg-table-choices button[aria-pressed=true]{background:#d8bc68;border-color:#f1d68a;color:#112f26;font-weight:700}
.sg-lobby .sg-scroll-controls[hidden]{display:none!important}
.sg-lobby .sg-scroll-controls button{display:grid;place-items:center;padding:0;line-height:1;flex:none;width:40px;height:40px}
.sg-lobby .sg-scroll-controls button svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.sg-lobby .sg-scroll-controls button:disabled{opacity:.3;cursor:default;box-shadow:none}
.sg-group-rules{font-size:13px;color:#adc4b6;margin:-2px 0 16px}
.sg-lobby .sg-card{display:flex;flex-direction:column;gap:12px;min-height:240px;padding:18px!important}
.sg-lobby .sg-card h2{font-size:19px;line-height:1.3;margin:0;min-height:2.6em}
.sg-lobby .sg-card .sg-prize-policy{font-size:12px;color:#e1ce95}
.sg-lobby .sg-card-info{padding:4px 0 10px}
.sg-lobby .sg-card button{margin-top:auto;min-height:44px;font-size:14px;line-height:1.25}
.sg-lobby .sg-card strong{line-height:1.4}
.sg-lobby .sg-modality{margin-top:24px}
@media(max-width:650px){.sg-lobby .sg-filters{padding:12px}.sg-lobby .sg-table-choices{gap:6px}.sg-table-choices button{flex:1 1 auto;padding:9px 12px}.sg-lobby .sg-modality-heading h2{font-size:19px}.sg-lobby .sg-modality-heading img{width:60px;height:46px}.sg-lobby .sg-scroll-controls button{width:34px;height:34px}}
/* Fixed visible card count: implicit grid percentage tracks can shrink to fit all cards. */
.sg-lobby .sg-modality-cards{display:flex;min-width:0}
.sg-lobby .sg-modality-cards>.sg-card{flex:0 0 calc((100% - 48px)/5);min-width:170px;box-sizing:border-box}
@media(max-width:1000px){.sg-lobby .sg-modality-cards>.sg-card{flex-basis:205px}}
@media(max-width:650px){.sg-lobby .sg-modality-cards>.sg-card{flex-basis:220px}}
