:root{color-scheme:dark;--bg:#0d160f;--panel:#182c20;--gold:#c8aa6d;--light:#ead7aa;--ink:#f4f1e8;--muted:#b6c4b5;--edge:#79643b}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:radial-gradient(ellipse at 50% 0,#263d2b 0,var(--bg) 72%);color:var(--ink);font:16px/1.55 system-ui,-apple-system,Segoe UI,sans-serif;min-height:100vh}.club{width:min(100% - 32px,1050px);margin:auto;padding:20px 0 36px}.club-nav,.footer,.room-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.club-nav{font-size:.85rem;border-bottom:1px solid #ffffff20;padding:0 0 18px}.club-nav span{letter-spacing:.09em;color:var(--muted)}.club-nav b{color:var(--light)}a{color:var(--light);text-decoration:none}a:hover{text-decoration:underline}.hero{display:flex;align-items:center;gap:28px;padding:clamp(22px,5vw,46px);margin:24px 0 16px;border:1px solid var(--edge);border-radius:18px;background:linear-gradient(130deg,#203a2a,#142318);box-shadow:0 18px 52px #0004}.emblem{display:grid;place-items:center;flex:0 0 auto;width:100px;height:100px;border-radius:50%;border:1px solid var(--gold);color:var(--light);font-size:70px;line-height:1;background:#102219;box-shadow:0 0 0 7px #c8aa6d13}.eyebrow{margin:0 0 6px;color:var(--light);font-size:.73rem;font-weight:700;letter-spacing:.18em}h1,h2,h3,p{margin:0}h1{font-size:clamp(1.55rem,4vw,2.55rem);line-height:1.16}h1 span,h2{color:var(--light)}.lead{font-size:1.08rem;margin-top:10px}.muted{color:var(--muted);margin-top:4px}.room{background:var(--panel);border:1px solid var(--edge);border-radius:16px;padding:clamp(16px,3vw,28px);margin:16px 0}.room-head{margin-bottom:20px}h2{font-size:1.5rem}.access{font-size:.78rem;padding:5px 11px;border:1px solid var(--edge);border-radius:100px;color:var(--light)}.primary,.secondary{font:inherit;font-weight:650;display:inline-block;cursor:pointer;border-radius:10px;padding:10px 16px;border:1px solid var(--gold);text-decoration:none!important}.primary{background:linear-gradient(135deg,#ead7aa,#c8aa6d);color:#162219}.secondary{background:transparent;color:var(--light);border-color:#806e4d}.primary:focus-visible,.secondary:focus-visible,a:focus-visible{outline:2px solid #fff;outline-offset:4px}.primary:disabled,.secondary:disabled{opacity:.55;cursor:wait}#locked p{margin-bottom:16px}.stats,.features{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.stats article,.features article{padding:16px;background:#112419;border:1px solid #ffffff16;border-radius:12px}.stats span{display:block;color:var(--muted);font-size:.85rem}.stats strong{font-size:2rem;color:var(--light);font-variant-numeric:tabular-nums}.features{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:14px}.features h3{font-size:1rem;color:var(--light)}.features p,.notice{font-size:.85rem;color:var(--muted);margin-top:6px}.notice{border-top:1px solid #ffffff20;margin-top:18px;padding-top:12px}.status{min-height:1.5em;font-size:.9rem;color:var(--muted)}.footer{color:var(--muted);font-size:.8rem;margin-top:20px}.demo-bar{background:#40351f;color:#f6e3b8;padding:12px 16px;text-align:center;font-size:.9rem}.demo-bar select{font:inherit;color:inherit;background:#1b2d20;border:1px solid var(--gold);padding:6px;border-radius:6px;margin:4px 8px}@media(max-width:600px){.hero{flex-direction:column;align-items:flex-start;gap:18px}.emblem{width:66px;height:66px;font-size:46px}.features{grid-template-columns:1fr}.club-nav span{order:-1;width:100%}.club{width:calc(100% - 24px)}.stats article{padding:10px}}

.club{width:min(calc(100% - 32px),1420px)}.club-nav{justify-content:space-between}.club-nav .club-title{font-weight:700}.club .hero{margin:16px 0;padding:24px}.royal-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(270px,1fr);gap:16px}.royal-grid>*{min-width:0}.panel{border:1px solid #79643b;background:#182c20;border-radius:14px;padding:16px}.panel h3{color:var(--light);margin:0 0 12px}.room-head{margin-bottom:12px}.controls{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:14px 0}.controls label{display:grid;gap:4px;color:var(--muted);font-size:.85rem}select,input,textarea{font:inherit;color:var(--ink);background:#0e2016;border:1px solid #657762;border-radius:8px;padding:8px;min-width:0}.controls label.check{display:flex;align-items:center;gap:6px;align-self:center}.table-list{display:grid;gap:8px;margin:8px 0 18px}.table-card{background:#112419;border:1px solid #ffffff20;border-radius:10px;padding:12px;display:grid;gap:8px}.table-card h4{margin:0;color:var(--light)}.seats{display:flex;gap:6px;flex-wrap:wrap}.seat{font-size:.84rem;border:1px solid #ffffff20;padding:4px 8px;border-radius:6px;max-width:100%;overflow-wrap:anywhere}.actions{display:flex;gap:8px;flex-wrap:wrap}.actions button,.report-btn{padding:6px 10px;font-size:.82rem}.empty{color:var(--muted);font-size:.9rem}.chat-list{height:clamp(180px,34vh,420px);overflow:auto;background:#102219;border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:8px}.chat-line{padding:8px 10px;border-bottom:1px solid #ffffff15;overflow-wrap:anywhere}.chat-line strong{color:var(--light)}.chat-line p{white-space:pre-wrap}.chat-line .report-btn{margin-top:5px}.chat-form{display:flex;gap:8px;margin:10px 0}.chat-form input{flex:1;width:0}.members{display:flex;flex-wrap:wrap;gap:6px;max-height:180px;overflow:auto}.members span{background:#102219;border-radius:6px;padding:5px 9px;overflow-wrap:anywhere}.chat-state{font-size:.82rem;color:var(--muted);min-height:1.4em}.report-dialog{color:var(--ink);background:#182c20;border:1px solid var(--gold);border-radius:14px;max-width:min(430px,90vw);width:100%;padding:20px}.report-dialog::backdrop{background:#0009}.report-dialog label{display:grid;gap:6px;margin:12px 0}.report-dialog p{overflow-wrap:anywhere}.report-dialog textarea{width:100%}button:disabled{opacity:.55;cursor:not-allowed}.status{overflow-wrap:anywhere}@media(max-width:820px){.royal-grid{grid-template-columns:1fr}.club{width:calc(100% - 24px)}.controls{align-items:stretch}.controls .primary{width:100%}}
/* G2: more compact and functional, not final graphic approval. */
.club .panel{padding:14px;border-radius:9px}.table-card{border-radius:7px;padding:9px;gap:5px}.room-head h2{margin:0}.controls{gap:8px}.profile-link{font:inherit;color:var(--light);background:transparent;border:1px solid #ffffff24;border-radius:5px;padding:4px 8px;cursor:pointer;text-align:left;overflow-wrap:anywhere}.profile-link:hover{text-decoration:underline;background:#ffffff0b}.chat-line .profile-link{border:0;padding:0;font-weight:700}.members .member{background:#102219}.incoming{border-bottom:1px solid #ffffff20;margin:0 0 12px}.incoming .table-list{margin-bottom:10px}.report-dialog select{max-width:100%}.report-dialog{max-height:90vh;overflow:auto}

/* Original LIVE R24/R24C modal rules, scoped only to Royal */
body.sb-royal-create #create-table-drawer{--line:rgba(179,200,175,.24);--gold:#eac781;--gold-light:#f4d28a;color:#f9f0db;font: 14px/1.35 system-ui,sans-serif;}
body.sb-royal-create #create-table-drawer .drawer-header{display:flex;justify-content:space-between;gap:20px;}
body.sb-royal-create #create-table-drawer .choice-grid{display:grid;}
body.sb-royal-create #create-table-drawer .choice-card{display:block;}
body.sb-royal-create #create-table-drawer .choice-card input{position:absolute;opacity:0;pointer-events:none;}
body.sb-royal-create #create-table-drawer .switch-row{display:flex;justify-content:space-between;align-items:center;gap:20px;border:1px solid var(--line);border-radius:12px;}
body.sb-royal-create #create-table-drawer .switch-row small{display:block;margin-top:3px;color:var(--muted);}
body.sb-royal-create #create-table-drawer .switch-row input{width:19px;height:19px;accent-color:var(--gold);}
body.sb-royal-create #create-table-drawer .seat-button{border:1px solid var(--line);background:rgba(255,255,255,.025);color:var(--muted);}
body.sb-royal-create #create-table-drawer button{font-family:inherit;cursor:pointer;}
body.sb-royal-create #create-table-drawer button:disabled{cursor:not-allowed;}


    body.sb-royal-create #create-table-form .seat-selector>.sb-inv21-slot{display:grid;align-content:start;gap:2px;min-width:0}
    body.sb-royal-create #create-table-form .seat-selector>.sb-inv21-slot>.seat-button{width:100%;height:28px!important;min-height:0!important;font-size:11px!important}
    body.sb-royal-create #create-table-form .sb-inv21-seat-invite{width:100%;min-height:19px;height:19px;padding:0 1px;
      font-size:10px;font-weight:700;line-height:1.1;font-family:inherit;border:1px solid #ad975b;color:#f7dda4;background:#1d3327;border-radius:5px;cursor:pointer;
      white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    body.sb-royal-create #create-table-form .sb-inv21-own-label{display:block;text-align:center;height:19px;
      color:#e3c78b;font-size:9px;line-height:19px}
    body.sb-royal-create #create-table-form .sb-inv21-open-table{padding:5px 8px;border:1px solid #d4b981;
      border-radius:6px;background:#203f2e;color:#f3d9a0;font:inherit;cursor:pointer}
    body.sb-royal-create #create-table-form .sb-inv21-hint{color:#ddcfae;font-size:10px;line-height:1.25;margin:0}
/* SocialBurraco R24 — UI only. Applied only to /app.html displayed within the R23C shell.
   The underlying Lobby, table/game modules, backend and event handlers stay untouched. */
body.sb-royal-create #create-table-drawer {
  box-sizing:border-box !important;
  width:min(478px, 100vw) !important;
  max-width:100vw !important;
  padding:clamp(14px, 2.6vw, 22px) !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  scrollbar-width:thin;
  scrollbar-color:rgba(232,193,109,.45) transparent;
  overscroll-behavior:contain !important;
  background:
    radial-gradient(ellipse 450px 250px at 80% -20%,rgba(214,178,99,.13),transparent 76%),
    radial-gradient(ellipse 320px 250px at -30% 55%,rgba(64,157,111,.09),transparent 80%),
    linear-gradient(165deg,#12261e 0%,#0e1e17 56%,#0a1712 100%) !important;
  border-left:1px solid rgba(228,192,112,.42) !important;
  box-shadow:-20px 0 65px rgba(0,0,0,.32),inset 1px 0 0 rgba(255,255,255,.045) !important;
}
body.sb-royal-create #create-table-drawer > .drawer-header {
  margin:0 0 20px !important;
  padding:0 0 14px !important;
  align-items:center !important;
  border-bottom:1px solid rgba(232,194,122,.18) !important;
}
body.sb-royal-create #create-table-drawer > .drawer-header .eyebrow {
  font-size:11px !important;
  letter-spacing:.16em !important;
  line-height:1.4 !important;
  font-weight:800 !important;
  color:#d8b875 !important;
}
body.sb-royal-create #create-table-drawer > .drawer-header h2 {
  font-family:Georgia,serif !important;
  font-size:clamp(23px,3.2vw,27px) !important;
  line-height:1.16 !important;
  letter-spacing:-.025em !important;
  color:#fff2d5 !important;
  margin:5px 0 0 !important;
}
body.sb-royal-create #create-table-drawer #close-create-table {
  width:38px !important;height:38px !important;min-width:38px !important;
  border:1px solid rgba(234,211,165,.28) !important;
  border-radius:11px !important;
  font-size:22px !important;
  color:#f0ddbb !important;
  background:rgba(255,255,255,.045) !important;
}
body.sb-royal-create #create-table-drawer #close-create-table:hover,
body.sb-royal-create #create-table-drawer #close-create-table:focus-visible {
  background:rgba(235,199,129,.14) !important;
  outline:2px solid #f3d38b;outline-offset:2px;
}
/* The legacy STEP922 script shrinks the entire form using inline zoom.
   R24 replaces that with natural scrolling, preserving readable typography. */
body.sb-royal-create #create-table-form {
  flex:0 0 auto !important;
  height:auto !important;
  min-height:0 !important;
  justify-content:flex-start !important;
  gap:18px !important;
  overflow:visible !important;
  padding:0 0 12px !important;
  margin:0 !important;
  zoom:1 !important;
  transform:none !important;
}
body.sb-royal-create #create-table-form fieldset {
  margin:0 !important;padding:0 !important;border:0 !important;min-width:0 !important;
}
body.sb-royal-create #create-table-form legend {
  display:block !important;
  font-size:12px !important;
  font-weight:800 !important;
  color:#e6d4b2 !important;
  text-transform:uppercase !important;
  letter-spacing:.11em !important;
  line-height:1.4 !important;
  margin:0 0 9px !important;
}
body.sb-royal-create #create-table-form .choice-grid {gap:9px !important;}
body.sb-royal-create #create-table-form .choice-grid.two {grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
body.sb-royal-create #create-table-form .choice-grid.deals-grid {grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
body.sb-royal-create #create-table-form .choice-card {min-width:0;cursor:pointer;}
body.sb-royal-create #create-table-form .choice-card > span {
  position:relative !important;
  box-sizing:border-box !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  gap:3px !important;
  width:100% !important;
  height:auto !important;
  min-height:67px !important;
  padding:11px 15px !important;
  border:1px solid rgba(179,200,175,.24) !important;
  border-radius:13px !important;
  background:linear-gradient(150deg,rgba(37,62,49,.76),rgba(14,34,25,.82)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045) !important;
  transition:border-color .18s,box-shadow .18s,background .18s,transform .18s !important;
}
body.sb-royal-create #create-table-form .choice-card > span strong {
  font-size:14px !important;
  font-weight:800 !important;
  color:#f9f0db !important;
  line-height:1.27 !important;
  letter-spacing:.005em !important;
}
body.sb-royal-create #create-table-form .choice-card > span small {
  display:block !important;
  font-size:12px !important;
  font-weight:500 !important;
  line-height:1.22 !important;
  color:#cad3c7 !important;
  margin:0 !important;
}
body.sb-royal-create #create-table-form .choice-card:hover > span {
  border-color:rgba(235,203,141,.67) !important;
  background:linear-gradient(155deg,#264532,#173323) !important;
}
body.sb-royal-create #create-table-form .choice-card:has(input:checked) > span {
  padding-right:36px !important;
  border:2px solid #f5d287 !important;
  background:
    radial-gradient(circle at 88% 18%,rgba(255,222,151,.23),transparent 38%),
    linear-gradient(135deg,#344b30,#203d29 80%) !important;
  box-shadow:0 0 0 2px rgba(242,205,129,.2),0 0 24px rgba(246,193,97,.28),inset 0 0 16px rgba(239,200,106,.12) !important;
}
body.sb-royal-create #create-table-form .choice-card:has(input:checked) > span strong,
body.sb-royal-create #create-table-form .choice-card:has(input:checked) > span small {color:#fff1d2 !important;}
body.sb-royal-create #create-table-form .choice-card:has(input:checked) > span::after {
  content:'✓';position:absolute;top:9px;right:9px;
  display:grid;place-items:center;width:20px;height:20px;
  border-radius:50%;background:#eac781;color:#16291e;
  font:900 12px/1 system-ui,sans-serif;
  box-shadow:0 0 12px rgba(239,197,112,.42);
}
body.sb-royal-create #create-table-form .choice-card:has(input:focus-visible) > span {
  outline:3px solid #ffe4ab !important;outline-offset:3px !important;
}
body.sb-royal-create #create-table-form .rules-inline-link {
  margin-top:11px !important;
  font-size:12px !important;
  font-weight:650 !important;
  line-height:1.4 !important;
  color:#e4c991 !important;
  text-decoration-thickness:1px !important;
  text-underline-offset:3px !important;
}
body.sb-royal-create #create-table-form .switch-row {
  min-height:62px !important;
  padding:12px 13px !important;
  gap:12px !important;
  border:1px solid rgba(193,210,183,.22) !important;
  border-radius:13px !important;
  background:linear-gradient(140deg,rgba(27,51,39,.8),rgba(14,32,24,.64)) !important;
}
body.sb-royal-create #create-table-form .switch-row strong {
  font-size:14px !important;line-height:1.3 !important;color:#fff0d9 !important;
}
body.sb-royal-create #create-table-form .switch-row small {
  font-size:12px !important;line-height:1.35 !important;color:#c7d0c6 !important;margin-top:4px !important;
}
body.sb-royal-create #create-table-form #allow-spectators {
  accent-color:#e8c47c !important;min-width:21px !important;min-height:21px !important;
}
/* 4 players: pairs occupy consistent columns: 1+3 on the left, 2+4 on the right. */
body.sb-royal-create #create-table-form .sb-r24-pairs {
  display:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0 0 11px;
}
body.sb-royal-create #create-table-form:has(input[name="maxPlayers"][value="4"]:checked) .sb-r24-pairs {display:grid;}
body.sb-royal-create #create-table-form .sb-r24-pair {
  min-width:0;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:3px 8px;
  border-radius:10px;padding:9px 11px;line-height:1.25;
  border:1px solid rgba(237,202,128,.33);background:rgba(234,195,116,.09);color:#f2d49b;
}
body.sb-royal-create #create-table-form .sb-r24-pair:nth-child(2) {
  border-color:rgba(119,211,168,.35);background:rgba(72,166,120,.10);color:#afe9c9;
}
body.sb-royal-create #create-table-form .sb-r24-pair strong {font-size:12px;font-weight:850;letter-spacing:.02em;}
body.sb-royal-create #create-table-form .sb-r24-pair span {font-size:12px;font-weight:750;white-space:nowrap;}
body.sb-royal-create #create-table-form .sb-r24-duel {
  font-size:12px;line-height:1.4;color:#c7d4c5;margin:0 0 10px;
}
body.sb-royal-create #create-table-form:has(input[name="maxPlayers"][value="4"]:checked) .sb-r24-duel {display:none;}
body.sb-royal-create #create-table-form .seat-selector {
  display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:10px !important;min-width:0 !important;
}
body.sb-royal-create #create-table-form .seat-selector > .sb-inv21-slot {
  display:flex !important;flex-direction:column !important;align-items:stretch !important;
  box-sizing:border-box !important;min-width:0 !important;
  gap:7px !important;padding:10px !important;
  border:1px solid rgba(188,209,185,.26) !important;
  border-radius:13px !important;
  background:linear-gradient(160deg,rgba(37,64,49,.76),rgba(18,37,27,.8)) !important;
  box-shadow:inset 0 1px rgba(255,255,255,.035);
}
body.sb-royal-create #create-table-form .seat-selector > .sb-inv21-slot::before {
  content:'POSTO LIBERO';display:block;min-height:15px;
  font-size:10px;line-height:1.25;font-weight:850;letter-spacing:.1em;color:#b5cbb8;
}
body.sb-royal-create #create-table-form:has(input[name="maxPlayers"][value="4"]:checked) .seat-selector > .sb-inv21-slot:nth-child(odd) {
  border-color:rgba(241,199,117,.52) !important;background:linear-gradient(160deg,rgba(86,69,35,.32),rgba(29,43,29,.87)) !important;
}
body.sb-royal-create #create-table-form:has(input[name="maxPlayers"][value="4"]:checked) .seat-selector > .sb-inv21-slot:nth-child(even) {
  border-color:rgba(104,206,155,.50) !important;background:linear-gradient(160deg,rgba(32,88,60,.38),rgba(15,45,33,.84)) !important;
}
body.sb-royal-create #create-table-form:has(input[name="maxPlayers"][value="4"]:checked) .seat-selector > .sb-inv21-slot:nth-child(odd)::before {content:'● COPPIA ORO';color:#f1cf8a;}
body.sb-royal-create #create-table-form:has(input[name="maxPlayers"][value="4"]:checked) .seat-selector > .sb-inv21-slot:nth-child(even)::before {content:'● COPPIA VERDE';color:#a7edc4;}
body.sb-royal-create #create-table-form .seat-selector > .sb-inv21-slot:has(> .seat-button.selected) {
  outline:2px solid rgba(249,209,129,.82) !important;outline-offset:0 !important;
  box-shadow:0 0 19px rgba(243,199,111,.16),inset 0 1px rgba(255,255,255,.05) !important;
}
body.sb-royal-create #create-table-form .seat-selector > .sb-inv21-slot > .seat-button {
  box-sizing:border-box !important;width:100% !important;min-height:40px !important;height:40px !important;
  padding:6px 8px !important;border-radius:9px !important;font-size:13px !important;
  font-weight:750 !important;white-space:normal !important;
}
body.sb-royal-create #create-table-form .seat-selector > .sb-inv21-slot > .seat-button.selected {
  border:2px solid #f0cd83 !important;background:#ddbc79 !important;color:#12281d !important;
  box-shadow:0 0 17px rgba(234,198,117,.25) !important;
}
body.sb-royal-create #create-table-form .sb-inv21-seat-invite {
  box-sizing:border-box !important;min-height:34px !important;height:auto !important;
  padding:7px 8px !important;border:1px solid rgba(240,205,137,.62) !important;
  border-radius:9px !important;background:rgba(237,198,120,.12) !important;
  font-size:12px !important;font-weight:800 !important;line-height:1.35 !important;
  color:#ffdf9b !important;white-space:normal !important;overflow:visible !important;
  overflow-wrap:anywhere !important;text-overflow:clip !important;
}
body.sb-royal-create #create-table-form .sb-inv21-seat-invite:hover,
body.sb-royal-create #create-table-form .sb-inv21-seat-invite:focus-visible {
  background:rgba(238,204,143,.24) !important;
  border-color:#f9dea1 !important;box-shadow:0 0 12px rgba(238,197,109,.28) !important;
  outline:2px solid #eed08d;outline-offset:2px;
}
body.sb-royal-create #create-table-form .sb-inv21-own-label {
  display:grid !important;place-items:center !important;
  height:auto !important;min-height:34px !important;
  padding:6px 5px !important;
  font-size:12px !important;font-weight:850 !important;line-height:1.35 !important;
  color:#f8da97 !important;background:rgba(238,202,130,.10) !important;
  border-radius:9px !important;
}
body.sb-royal-create #create-table-form .sb-inv21-hint {
  margin:10px 0 0 !important;
  font-size:12px !important;font-weight:550 !important;line-height:1.4 !important;color:#d6d4be !important;
}
body.sb-royal-create #create-table-form .inline-status {
  font-size:12px !important;line-height:1.45 !important;
  overflow-wrap:anywhere !important;
}
body.sb-royal-create #create-table-form > button.primary-button.full {
  flex:0 0 auto !important;box-sizing:border-box !important;
  position:sticky !important;bottom:0 !important;z-index:2 !important;
  width:100% !important;min-height:49px !important;height:auto !important;
  padding:12px 16px !important;margin-top:5px !important;
  font-size:15px !important;font-weight:850 !important;letter-spacing:.01em !important;
  border-radius:12px !important;border:1px solid #f5d48d !important;
  background:linear-gradient(135deg,#f4db9b,#d7ac64) !important;
  color:#17271c !important;box-shadow:0 9px 23px rgba(0,0,0,.32),0 0 15px rgba(240,197,104,.14) !important;
}
body.sb-royal-create #create-table-form > button.primary-button.full:hover,
body.sb-royal-create #create-table-form > button.primary-button.full:focus-visible {
  background:linear-gradient(135deg,#fff0b9,#e9bf7b) !important;
  box-shadow:0 9px 24px rgba(0,0,0,.37),0 0 20px rgba(241,202,115,.35) !important;
  outline:2px solid #ffe8b0;outline-offset:2px;
}
body.sb-royal-create #create-table-form > button.primary-button.full:disabled {opacity:.56 !important;cursor:not-allowed;}
/* Lobby card typography only: do not alter navigation or table controls. */
body.sb-royal-create .premium-table-card .sb892-owner-name strong {font-size:15px !important;line-height:1.35 !important;}
body.sb-royal-create .premium-table-card .sb892-owner-name small {font-size:12px !important;}
/* Adapt to actual viewport widths and heights. Do not shrink fonts to fit. */
@media (max-width:600px) {
  body.sb-royal-create #create-table-drawer {width:100vw !important;padding:13px 14px 20px !important;}
  body.sb-royal-create #create-table-form {gap:15px !important;}
  body.sb-royal-create #create-table-drawer > .drawer-header {margin-bottom:15px !important;}
}
@media (max-width:355px) {
  body.sb-royal-create #create-table-form .choice-card > span {padding:9px 10px !important;min-height:64px !important;}
  body.sb-royal-create #create-table-form .choice-card:has(input:checked) > span {padding-right:32px !important;}
  body.sb-royal-create #create-table-form .choice-card > span strong {font-size:13px !important;}
  body.sb-royal-create #create-table-form .choice-card > span small {font-size:11px !important;}
  body.sb-royal-create #create-table-form .sb-r24-pair {padding:8px !important;}
  body.sb-royal-create #create-table-form .sb-r24-pair strong,
  body.sb-royal-create #create-table-form .sb-r24-pair span {font-size:11px !important;}
  body.sb-royal-create #create-table-form .seat-selector {gap:7px !important;}
  body.sb-royal-create #create-table-form .seat-selector > .sb-inv21-slot {padding:8px !important;}
}
@media (max-height:620px) {
  body.sb-royal-create #create-table-form {gap:14px !important;}
}
@media (prefers-reduced-motion:reduce) {
  body.sb-royal-create #create-table-form .choice-card > span {transition:none !important;}
}
body.sb-royal-create #create-table-form:has(input[name="maxPlayers"][value="2"]:checked) .seat-selector > .sb-inv21-slot:has(> .seat-button.selected)::before {
  content:'● LA TUA POSIZIONE';color:#f4d28a;
}
body.sb-royal-create #create-table-form:has(input[name="maxPlayers"][value="2"]:checked) .seat-selector > .sb-inv21-slot:not(:has(> .seat-button.selected))::before {
  content:'● AVVERSARIO';color:#b7e2ca;
}
/* Wide screens: three short deal rows fit comfortably inside the 478px drawer;
   on phones two columns preserve readable touch targets. */
@media (min-width:900px) and (min-height:720px) {
  body.sb-royal-create #create-table-form .choice-grid.deals-grid {grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
  body.sb-royal-create #create-table-form .choice-grid.deals-grid .choice-card > span {padding:9px 9px !important;min-height:64px !important;}
  body.sb-royal-create #create-table-form .choice-grid.deals-grid .choice-card:has(input:checked) > span {padding-right:25px !important;}
  body.sb-royal-create #create-table-form .choice-grid.deals-grid .choice-card > span strong {font-size:13px !important;}
  body.sb-royal-create #create-table-form {gap:15px !important;}
}

/* R24C - single-panel responsive create-table overlay, scoped only to the Lobby iframe.
   No handler, request, state, or table/game code is changed. */
body.sb-royal-create .sb-r24c-backdrop {
  position:fixed !important; inset:0 !important; z-index:1198 !important;
  background:rgba(2,12,8,.76) !important;
  backdrop-filter:blur(5px) !important;
}
body.sb-royal-create .sb-r24c-backdrop[hidden] {display:none !important;}
body.sb-royal-create #create-table-drawer:not(.open) {
  visibility:hidden !important;pointer-events:none !important;
}
body.sb-royal-create #create-table-drawer.open {
  position:fixed !important;
  top:50% !important;left:50% !important;right:auto !important;bottom:auto !important;
  transform:translate(-50%,-50%) !important;
  box-sizing:border-box !important;
  width:min(875px,calc(100vw - 30px)) !important;
  max-width:calc(100vw - 10px) !important;
  height:min(615px,calc(100dvh - 24px)) !important;
  max-height:calc(100dvh - 12px) !important;
  padding:17px 21px 16px !important;
  margin:0 !important;min-height:0 !important;
  display:flex !important;flex-direction:column !important;
  overflow:hidden !important;scrollbar-width:none !important;
  border:1px solid rgba(229,193,117,.65) !important;
  border-radius:19px !important;
  box-shadow:0 30px 100px rgba(0,0,0,.75),inset 0 1px rgba(255,255,255,.12),0 0 40px rgba(210,165,77,.09) !important;
  background:radial-gradient(ellipse at 75% 0%,rgba(217,178,95,.12),transparent 55%),linear-gradient(155deg,#132a20,#0b1b13 72%) !important;
  z-index:1199 !important;
}
body.sb-royal-create #create-table-drawer > .drawer-header {
  display:flex !important;flex:0 0 auto !important;
  min-height:0 !important;align-items:center !important;
  padding:0 0 10px !important;margin:0 0 12px !important;
  border-bottom:1px solid rgba(228,200,140,.20) !important;
}
body.sb-royal-create #create-table-drawer > .drawer-header h2 {
  margin:2px 0 0 !important;
  font-size:clamp(21px,2.6vw,26px) !important;line-height:1.1 !important;
}
body.sb-royal-create #create-table-drawer #close-create-table {
  width:38px !important;height:38px !important;min-width:38px !important;
}
body.sb-royal-create #create-table-form {
  display:grid !important;
  grid-template-columns:minmax(0,1.03fr) minmax(0,1fr) !important;
  grid-template-rows:auto minmax(0,1fr) auto auto !important;
  column-gap:22px !important;row-gap:10px !important;
  flex:1 1 auto !important;height:auto !important;
  min-height:0 !important;max-height:100% !important;
  box-sizing:border-box !important;
  margin:0 !important;padding:0 !important;
  zoom:1 !important;transform:none !important;
  overflow:hidden !important;align-content:stretch !important;
}
body.sb-royal-create #create-table-form > fieldset {
  box-sizing:border-box !important;min-width:0 !important;min-height:0 !important;
  padding:0 !important;margin:0 !important;border:0 !important;
}
body.sb-royal-create #create-table-form > fieldset:nth-of-type(1) {grid-column:1 !important;grid-row:1 !important;}
body.sb-royal-create #create-table-form > fieldset:nth-of-type(2) {grid-column:1 !important;grid-row:2 !important;}
body.sb-royal-create #create-table-form > fieldset:nth-of-type(3) {grid-column:1 !important;grid-row:3 !important;}
body.sb-royal-create #create-table-form > fieldset:nth-of-type(4) {
  grid-column:2 !important;grid-row:1 / span 3 !important;
  align-self:stretch !important;
  border:1px solid rgba(180,205,173,.20) !important;
  border-radius:14px !important;
  background:linear-gradient(160deg,rgba(38,66,47,.43),rgba(13,35,25,.48)) !important;
  padding:12px !important;
}
body.sb-royal-create #create-table-form legend {
  display:block !important;font-size:12px !important;
  line-height:1.25 !important;letter-spacing:.075em !important;
  font-weight:800 !important;margin:0 0 7px !important;
  color:#e8d4aa !important;
}
body.sb-royal-create #create-table-form .choice-grid {gap:7px !important;}
body.sb-royal-create #create-table-form .choice-grid.two {grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
body.sb-royal-create #create-table-form .choice-grid.deals-grid {grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
body.sb-royal-create #create-table-form .choice-card > span,
body.sb-royal-create #create-table-form .choice-grid.deals-grid .choice-card > span {
  display:flex !important;flex-direction:column !important;justify-content:center !important;
  box-sizing:border-box !important;min-height:55px !important;height:auto !important;
  padding:7px 11px !important;gap:2px !important;
  border-radius:10px !important;
}
body.sb-royal-create #create-table-form .choice-grid.deals-grid .choice-card > span {min-height:52px !important;}
body.sb-royal-create #create-table-form .choice-card > span strong,
body.sb-royal-create #create-table-form .choice-grid.deals-grid .choice-card > span strong {
  font-size:13px !important;line-height:1.2 !important;
}
body.sb-royal-create #create-table-form .choice-card > span small {
  font-size:11px !important;line-height:1.2 !important;
}
body.sb-royal-create #create-table-form .choice-card:has(input:checked) > span,
body.sb-royal-create #create-table-form .choice-grid.deals-grid .choice-card:has(input:checked) > span {
  padding-right:29px !important;
  border:2px solid #ffdd90 !important;
  background:linear-gradient(145deg,rgba(143,110,45,.43),rgba(57,68,38,.7)) !important;
  box-shadow:0 0 0 1px rgba(255,228,164,.13),0 0 22px rgba(239,194,99,.38),inset 0 0 18px rgba(240,193,99,.13) !important;
}
body.sb-royal-create #create-table-form .choice-card:has(input:checked) > span::after {top:7px !important;right:7px !important;}
body.sb-royal-create #create-table-form .rules-inline-link {margin:6px 0 0 !important;font-size:11px !important;}
body.sb-royal-create #create-table-form .switch-row {
  min-height:55px !important;box-sizing:border-box !important;
  padding:8px 11px !important;
}
body.sb-royal-create #create-table-form .switch-row strong {font-size:13px !important;}
body.sb-royal-create #create-table-form .switch-row small {font-size:11px !important;}
body.sb-royal-create #create-table-form .sb-r24-pairs {
  display:none !important;gap:7px !important;margin:0 0 11px !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
}
body.sb-royal-create #create-table-form:has(input[name="maxPlayers"][value="4"]:checked) .sb-r24-pairs {display:grid !important;}
body.sb-royal-create #create-table-form .sb-r24-pair {
  display:flex !important;align-items:flex-start !important;flex-direction:column !important;
  justify-content:center !important;gap:3px !important;
  border-radius:10px !important;padding:8px 10px !important;
}
body.sb-royal-create #create-table-form .sb-r24-pair strong {font-size:12px !important;letter-spacing:.03em !important;}
body.sb-royal-create #create-table-form .sb-r24-pair span {font-size:12px !important;}
body.sb-royal-create #create-table-form .seat-selector {
  display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  grid-auto-rows:auto !important;gap:8px !important;
}
body.sb-royal-create #create-table-form:has(input[name="maxPlayers"][value="4"]:checked) .seat-selector > .sb-inv21-slot:nth-child(1) {grid-column:1;grid-row:1;}
body.sb-royal-create #create-table-form:has(input[name="maxPlayers"][value="4"]:checked) .seat-selector > .sb-inv21-slot:nth-child(2) {grid-column:2;grid-row:1;}
body.sb-royal-create #create-table-form:has(input[name="maxPlayers"][value="4"]:checked) .seat-selector > .sb-inv21-slot:nth-child(3) {grid-column:1;grid-row:2;}
body.sb-royal-create #create-table-form:has(input[name="maxPlayers"][value="4"]:checked) .seat-selector > .sb-inv21-slot:nth-child(4) {grid-column:2;grid-row:2;}
body.sb-royal-create #create-table-form .seat-selector > .sb-inv21-slot {
  box-sizing:border-box !important;display:flex !important;flex-direction:column !important;
  gap:5px !important;padding:9px !important;
  border-radius:11px !important;
}
body.sb-royal-create #create-table-form .seat-selector > .sb-inv21-slot::before {
  content:'POSTO' !important;min-height:12px !important;
  font-size:10px !important;line-height:1.2 !important;
}
body.sb-royal-create #create-table-form:has(input[name="maxPlayers"][value="4"]:checked) .seat-selector > .sb-inv21-slot:nth-child(odd)::before {content:'SQUADRA A' !important;}
body.sb-royal-create #create-table-form:has(input[name="maxPlayers"][value="4"]:checked) .seat-selector > .sb-inv21-slot:nth-child(even)::before {content:'SQUADRA B' !important;}
body.sb-royal-create #create-table-form:has(input[name="maxPlayers"][value="2"]:checked) .seat-selector > .sb-inv21-slot:has(> .seat-button.selected)::before {content:'IL TUO POSTO' !important;}
body.sb-royal-create #create-table-form:has(input[name="maxPlayers"][value="2"]:checked) .seat-selector > .sb-inv21-slot:not(:has(> .seat-button.selected))::before {content:'AVVERSARIO' !important;}
body.sb-royal-create #create-table-form .seat-selector > .sb-inv21-slot > .seat-button {
  height:36px !important;min-height:36px !important;
  padding:6px 8px !important;border-radius:9px !important;
  font-size:13px !important;font-weight:800 !important;
}
body.sb-royal-create #create-table-form .sb-inv21-own-label,
body.sb-royal-create #create-table-form .sb-inv21-seat-invite {
  box-sizing:border-box !important;min-height:30px !important;
  height:30px !important;padding:5px 7px !important;
  border-radius:8px !important;font-size:12px !important;
  font-weight:800 !important;line-height:1.2 !important;
}
body.sb-royal-create #create-table-form .sb-r24-duel {margin:0 0 9px !important;font-size:12px !important;}
body.sb-royal-create #create-table-form .sb-inv21-hint {margin:8px 0 0 !important;font-size:11.5px !important;line-height:1.25 !important;}
body.sb-royal-create #create-table-form #create-table-status {
  grid-column:1 / -1 !important;grid-row:4 !important;
  min-height:0 !important;max-height:46px !important;
  margin:0 !important;padding:0 !important;
  font-size:12px !important;line-height:1.35 !important;
  overflow:hidden !important;
}
body.sb-royal-create #create-table-form #create-table-status:empty {display:none !important;}
body.sb-royal-create #create-table-form > button.primary-button.full {
  position:static !important;grid-column:1 / -1 !important;
  grid-row:5 !important;align-self:end !important;
  width:100% !important;box-sizing:border-box !important;
  margin:0 !important;padding:7px 12px !important;
  height:45px !important;min-height:45px !important;
  border-radius:11px !important;font-size:15px !important;
}
body.sb-royal-create #create-table-form .sb-inv21-open-table {
  grid-column:1 / -1 !important;grid-row:auto !important;
}
/* Short desktops: compact cards but keep a two-column, one-screen form. */
@media(max-height:680px) {
  body.sb-royal-create #create-table-drawer.open {height:calc(100dvh - 16px) !important;padding:10px 15px !important;}
  body.sb-royal-create #create-table-drawer > .drawer-header {margin-bottom:7px !important;padding-bottom:6px !important;}
  body.sb-royal-create #create-table-drawer > .drawer-header h2 {font-size:20px !important;}
  body.sb-royal-create #create-table-form {row-gap:6px !important;column-gap:12px !important;}
  body.sb-royal-create #create-table-form .choice-card > span,
  body.sb-royal-create #create-table-form .choice-grid.deals-grid .choice-card > span {min-height:41px !important;padding:5px 7px !important;}
  body.sb-royal-create #create-table-form .choice-grid.deals-grid .choice-card > span {min-height:39px !important;}
  body.sb-royal-create #create-table-form .choice-card > span strong {font-size:12px !important;}
  body.sb-royal-create #create-table-form .choice-card > span small {font-size:10px !important;}
  body.sb-royal-create #create-table-form .choice-card:has(input:checked) > span {padding-right:25px !important;}
  body.sb-royal-create #create-table-form .switch-row {min-height:45px !important;padding:5px 8px !important;}
  body.sb-royal-create #create-table-form .sb-r24-pairs {margin-bottom:6px !important;}
  body.sb-royal-create #create-table-form .sb-r24-pair {padding:5px 7px !important;gap:1px !important;}
  body.sb-royal-create #create-table-form .sb-r24-pair strong,
  body.sb-royal-create #create-table-form .sb-r24-pair span {font-size:11px !important;}
  body.sb-royal-create #create-table-form .seat-selector {gap:5px !important;}
  body.sb-royal-create #create-table-form .seat-selector > .sb-inv21-slot {padding:6px !important;gap:3px !important;}
  body.sb-royal-create #create-table-form .seat-selector > .sb-inv21-slot > .seat-button {height:31px !important;min-height:31px !important;}
  body.sb-royal-create #create-table-form .sb-inv21-own-label,
  body.sb-royal-create #create-table-form .sb-inv21-seat-invite {height:26px !important;min-height:26px !important;}
  body.sb-royal-create #create-table-form .sb-r24-duel {margin-bottom:5px !important;}
  body.sb-royal-create #create-table-form .sb-inv21-hint {margin-top:5px !important;}
  body.sb-royal-create #create-table-form > button.primary-button.full {height:40px !important;min-height:40px !important;}
}
/* Full-height narrow phones get a single comfortable column. */
@media(max-width:700px) and (min-height:740px) {
  body.sb-royal-create #create-table-drawer.open {width:calc(100vw - 12px) !important;height:calc(100dvh - 10px) !important;padding:12px 13px !important;border-radius:13px !important;}
  body.sb-royal-create #create-table-form {
    display:flex !important;flex-direction:column !important;justify-content:flex-start !important;
    gap:8px !important;
  }
  body.sb-royal-create #create-table-form > fieldset:nth-of-type(4) {padding:8px !important;}
  body.sb-royal-create #create-table-form .sb-r24-pairs {margin-bottom:7px !important;}
  body.sb-royal-create #create-table-form .sb-r24-pair {flex-direction:row !important;align-items:center !important;justify-content:space-between !important;}
  body.sb-royal-create #create-table-form .seat-selector > .sb-inv21-slot {padding:6px !important;gap:3px !important;}
  body.sb-royal-create #create-table-form .seat-selector > .sb-inv21-slot > .seat-button {height:31px !important;min-height:31px !important;}
  body.sb-royal-create #create-table-form .sb-inv21-own-label,
  body.sb-royal-create #create-table-form .sb-inv21-seat-invite {min-height:25px !important;height:25px !important;}
  body.sb-royal-create #create-table-form > button.primary-button.full {margin-top:auto !important;height:43px !important;min-height:43px !important;flex-shrink:0 !important;}
}
/* Phones / very short viewports: keep all fields in one compact two-column screen. */
@media(max-width:700px) and (max-height:739px) {
  body.sb-royal-create #create-table-drawer.open {width:calc(100vw - 8px) !important;height:calc(100dvh - 8px) !important;padding:7px 9px !important;border-radius:11px !important;}
  body.sb-royal-create #create-table-drawer > .drawer-header {margin-bottom:5px !important;padding-bottom:5px !important;}
  body.sb-royal-create #create-table-drawer > .drawer-header h2 {font-size:18px !important;}
  body.sb-royal-create #create-table-drawer #close-create-table {width:29px !important;height:29px !important;min-width:29px !important;}
  body.sb-royal-create #create-table-form {column-gap:7px !important;row-gap:5px !important;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr) !important;}
  body.sb-royal-create #create-table-form legend {font-size:10px !important;margin-bottom:3px !important;}
  body.sb-royal-create #create-table-form .choice-grid {gap:3px !important;}
  body.sb-royal-create #create-table-form .choice-grid.deals-grid {grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
  body.sb-royal-create #create-table-form .choice-card > span,
  body.sb-royal-create #create-table-form .choice-grid.deals-grid .choice-card > span {min-height:35px !important;padding:4px 4px !important;border-radius:7px !important;}
  body.sb-royal-create #create-table-form .choice-card > span strong,
  body.sb-royal-create #create-table-form .choice-grid.deals-grid .choice-card > span strong {font-size:10.5px !important;letter-spacing:-.015em !important;}
  body.sb-royal-create #create-table-form .choice-card > span small {font-size:9.5px !important;}
  body.sb-royal-create #create-table-form .choice-card:has(input:checked) > span {padding-right:4px !important;}
  body.sb-royal-create #create-table-form .choice-card:has(input:checked) > span::after {display:none !important;}
  body.sb-royal-create #create-table-form .rules-inline-link {display:block !important;font-size:9px !important;line-height:1.1 !important;margin-top:3px !important;}
  body.sb-royal-create #create-table-form .switch-row {min-height:40px !important;padding:4px 6px !important;gap:4px !important;}
  body.sb-royal-create #create-table-form .switch-row strong {font-size:10.5px !important;}
  body.sb-royal-create #create-table-form .switch-row small {font-size:9px !important;}
  body.sb-royal-create #create-table-form .switch-row input {transform:scale(.84) !important;}
  body.sb-royal-create #create-table-form > fieldset:nth-of-type(4) {padding:5px !important;border-radius:8px !important;}
  body.sb-royal-create #create-table-form .sb-r24-pairs {grid-template-columns:1fr !important;gap:3px !important;margin-bottom:5px !important;}
  body.sb-royal-create #create-table-form .sb-r24-pair {display:flex !important;flex-direction:row !important;padding:3px 4px !important;}
  body.sb-royal-create #create-table-form .sb-r24-pair strong,
  body.sb-royal-create #create-table-form .sb-r24-pair span {font-size:9.5px !important;}
  body.sb-royal-create #create-table-form .seat-selector {gap:4px !important;}
  body.sb-royal-create #create-table-form .seat-selector > .sb-inv21-slot {padding:4px 3px !important;gap:2px !important;border-radius:7px !important;}
  body.sb-royal-create #create-table-form .seat-selector > .sb-inv21-slot::before {font-size:9px !important;letter-spacing:0 !important;}
  body.sb-royal-create #create-table-form .seat-selector > .sb-inv21-slot > .seat-button {min-height:29px !important;height:29px !important;padding:3px !important;font-size:11px !important;}
  body.sb-royal-create #create-table-form .sb-inv21-own-label,
  body.sb-royal-create #create-table-form .sb-inv21-seat-invite {min-height:25px !important;height:25px !important;padding:3px 2px !important;font-size:10px !important;}
  body.sb-royal-create #create-table-form .sb-inv21-hint {margin-top:4px !important;font-size:9.5px !important;}
  body.sb-royal-create #create-table-form > button.primary-button.full {height:36px !important;min-height:36px !important;font-size:12px !important;}
}
@media (prefers-reduced-motion:reduce) {body.sb-royal-create #create-table-drawer.open{transition:none!important;}}
/* Final balance: no unnecessarily tall desktop modal and readable selected deal title. */
@media(min-width:701px) {
  body.sb-royal-create #create-table-drawer.open {height:min(540px,calc(100dvh - 16px)) !important;}
}
body.sb-royal-create #create-table-form .choice-grid.deals-grid .choice-card:has(input:checked) > span {
  padding-right:8px !important;
}
body.sb-royal-create #create-table-form .choice-grid.deals-grid .choice-card:has(input:checked) > span::after {
  top:auto !important;bottom:4px !important;right:5px !important;
  width:16px !important;height:16px !important;
}
@media(max-width:700px) and (max-height:739px) and (min-height:510px) {
  body.sb-royal-create #create-table-drawer.open {height:min(535px,calc(100dvh - 8px)) !important;}
}
/* Errors must remain readable, never silently clipped by the no-scroll layout. */
body.sb-royal-create #create-table-form #create-table-status:not(:empty) {
  position:absolute !important;
  z-index:10 !important;
  left:19px !important;right:19px !important;
  bottom:69px !important;
  box-sizing:border-box !important;
  width:auto !important;
  max-height:none !important;
  padding:9px 11px !important;
  border:1px solid rgba(255,207,147,.75) !important;
  border-radius:10px !important;
  background:#233227 !important;
  box-shadow:0 8px 28px #0009 !important;
  color:#ffe9c3 !important;
  overflow-wrap:anywhere !important;
  overflow:visible !important;
}
/* Long nicknames remain inside their slot; the existing title attribute reveals full text. */
body.sb-royal-create #create-table-form .sb-inv21-seat-invite {
  white-space:nowrap !important;text-overflow:ellipsis !important;overflow:hidden !important;
}

/* Native modal rather than the legacy shell backdrop. Scrolling on compact screens avoids clipping. */
body.sb-royal-create #create-table-drawer:not([open]){display:none!important;}
body.sb-royal-create #create-table-drawer[open]{position:fixed!important;inset:auto!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;margin:0!important;overflow:auto!important;}
body.sb-royal-create #create-table-drawer::backdrop{background:rgba(2,12,8,.76);backdrop-filter:blur(5px);}
body.sb-royal-create #create-table-form .choice-card input:focus-visible+span{outline:2px solid #ffe4ab;}
@media(max-width:700px),(max-height:540px){body.sb-royal-create #create-table-drawer[open]{height:auto!important;max-height:calc(100dvh - 16px)!important;width:calc(100vw - 16px)!important;}body.sb-royal-create #create-table-form{display:flex!important;flex-direction:column!important;overflow:visible!important;max-height:none!important;gap:10px!important;}body.sb-royal-create #create-table-form #create-table-status:not(:empty){position:static!important;}body.sb-royal-create #create-table-form .choice-card>span{min-height:42px!important;}body.sb-royal-create #create-table-form >fieldset{flex-shrink:0!important;}body.sb-royal-create #create-table-form>button.primary-button.full{flex-shrink:0!important;}}

/* R49G9: sober club, compact native modal, existing emoji picker */
.sb258-emoji-field > .sb258-emoji-button {
  box-sizing: border-box;
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #ead293;
  cursor: pointer;
  font-size: 1.27rem;
  line-height: 1;
}
.sb258-emoji-field > .sb258-emoji-button:hover,
.sb258-emoji-field > .sb258-emoji-button:focus-visible {
  background: rgba(225,195,125,.12);
  outline: 2px solid rgba(225,195,125,.40);
}
/* Picker opens above composer, stays within chat; independently scrollable. */
.sb258-emoji-field > .sb258-emoji-picker {
  box-sizing: border-box;
  position: absolute !important;
  z-index: 1000;
  bottom: calc(100% + 8px);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: min(318px, calc(100vw - 30px));
  max-width: 100%;
  max-height: min(310px, 48dvh);
  padding: 9px;
  border: 1px solid #b8965f;
  border-radius: 12px;
  background: #14281c;
  box-shadow: 0 12px 30px #0009;
  overflow: hidden;
}
.sb258-emoji-field > .sb258-emoji-picker[hidden] {
  display: none !important;
}
.sb258-emoji-search {
  flex: 0 0 auto;
  width: 100%;
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid #788268;
  border-radius: 8px;
  background: #0b1c13;
  color: #f2e8d4;
  font-size: .78rem;
}
.sb258-emoji-scroll {flex: 1 1 auto;min-height: 0;overflow-y: auto;overscroll-behavior: contain;}
.sb258-emoji-section {margin-bottom: 10px;}
.sb258-emoji-heading {color: #e1c489;font-size: .72rem;font-weight: 750;margin: 2px 0 4px;}
.sb258-emoji-grid {display: grid;grid-template-columns: repeat(7,minmax(0,1fr));gap: 2px;}
.sb258-emoji-grid > button {
  width: 100%;
  min-height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  font-size: 1.16rem;
  cursor: pointer;
}
.sb258-emoji-grid > button:hover,
.sb258-emoji-grid > button:focus-visible {background: #37513a;border-color: #b8965f;}

:root{--bg:#111b17;--panel:#1b2822;--gold:#b8a27a;--light:#e0d4bb;--ink:#f0eee8;--muted:#aebbb2;--edge:#414c40}
body{background:var(--bg);font-size:14px}.club{max-width:1280px;padding-top:16px}.club-nav{padding-bottom:12px}.club .hero{background:#1b2822;box-shadow:none;border:1px solid var(--edge);border-radius:8px;padding:23px 25px}.hero h1{font:500 29px/1.2 Georgia,serif;letter-spacing:-.02em}.hero .eyebrow,.room-head .eyebrow{font-size:10px;letter-spacing:.13em;font-weight:600;color:#b8a27a}.room{border-radius:8px;padding:18px}.room-head h2{font:500 25px/1.2 Georgia,serif;color:var(--ink)}.access{border-radius:4px}.club .panel{background:#1b2822;border:1px solid #3c4940;border-radius:8px;padding:14px}.panel h3{font-size:14px;font-weight:600;color:var(--ink)}.primary,.secondary{border-radius:5px;padding:8px 13px;font-weight:600}.primary{background:#c6b18b;color:#17231c;border-color:#c6b18b}.secondary{border-color:#566254;color:var(--light)}.table-card,.chat-list,.members .member{background:#14201a;border-color:#354139;box-shadow:none}.table-card{border-radius:5px}.chat-list{border-radius:5px}.profile-link{color:#d6c5a4}.status:empty{min-height:0}.report-dialog{border-color:#667060;border-radius:8px;background:#1b2822}.chat-form .sb258-emoji-field{position:relative;flex:1;min-width:0}.chat-form .sb258-emoji-field>#message{width:100%;height:41px;padding:8px 44px 8px 9px}.chat-form .sb258-emoji-picker input{width:100%;flex:0 0 auto}.chat-form .sb258-emoji-picker{max-width:none;width:min(300px,calc(100vw - 28px))}
body.sb-royal-create #create-table-drawer.open{width:min(740px,calc(100vw - 24px))!important;height:auto!important;max-height:calc(100dvh - 20px)!important;padding:14px 16px!important;border-radius:10px!important;background:#1b2822!important;box-shadow:0 12px 36px #0007!important;border:1px solid #657060!important;overflow:auto!important;scrollbar-width:thin!important}
body.sb-royal-create #create-table-form{flex:0 0 auto!important;grid-template-rows:auto auto auto auto auto!important;gap:8px 14px!important;overflow:visible!important;max-height:none!important;align-content:start!important}
body.sb-royal-create #create-table-form>fieldset:nth-of-type(4){background:#17241d!important;padding:9px!important;border-radius:7px!important}
body.sb-royal-create #create-table-form .choice-card>span,body.sb-royal-create #create-table-form .choice-grid.deals-grid .choice-card>span{min-height:40px!important;padding:5px 7px!important;border-radius:6px!important}
body.sb-royal-create #create-table-form .choice-card:has(input:checked)>span,body.sb-royal-create #create-table-form .choice-grid.deals-grid .choice-card:has(input:checked)>span{border:1px solid #c6b18b!important;background:#3b4131!important;box-shadow:none!important;padding-right:20px!important}
body.sb-royal-create #create-table-form .choice-grid.deals-grid .choice-card:has(input:checked)>span{padding-right:6px!important}
body.sb-royal-create #create-table-form .switch-row{min-height:43px!important;padding:6px 8px!important}
body.sb-royal-create #create-table-form .sb-r24-pair{padding:5px 8px!important;border-radius:6px!important}
body.sb-royal-create #create-table-form .seat-selector>.sb-inv21-slot{padding:6px!important;gap:4px!important;box-shadow:none!important;border-radius:6px!important}
body.sb-royal-create #create-table-form .seat-selector>.sb-inv21-slot>.seat-button{height:30px!important;min-height:30px!important;border-radius:5px!important;box-shadow:none!important}
body.sb-royal-create #create-table-form .sb-inv21-seat-invite,body.sb-royal-create #create-table-form .sb-inv21-own-label{height:25px!important;min-height:25px!important;border-radius:5px!important;padding:4px 5px!important}
body.sb-royal-create #create-table-form>button.primary-button.full{background:#c6b18b!important;box-shadow:none!important;border-radius:6px!important;height:39px!important;min-height:39px!important}
body.sb-royal-create #create-table-form #create-table-status:not(:empty){position:static!important;overflow:visible!important;max-height:none!important;box-shadow:none!important}
@media(max-width:700px){body.sb-royal-create #create-table-drawer.open{width:calc(100vw - 16px)!important;padding:10px!important}body.sb-royal-create #create-table-form .choice-card>span{min-height:42px!important}}
body.royal-chat-embedded{height:100dvh;min-height:0;overflow:auto;background:#17231d}body.royal-chat-embedded .club{width:100%;padding:5px;min-height:100%;max-width:none}body.royal-chat-embedded .club-nav,body.royal-chat-embedded #hero,body.royal-chat-embedded #royal,body.royal-chat-embedded .footer,body.royal-chat-embedded #overview>.room-head,body.royal-chat-embedded .royal-grid>section:first-child,body.royal-chat-embedded #royal-members-section{display:none!important}body.royal-chat-embedded #overview{height:calc(100dvh - 10px)}body.royal-chat-embedded .royal-grid{display:block;height:100%}body.royal-chat-embedded #royal-chat-panel{display:flex;flex-direction:column;height:100%;padding:8px;background:transparent;border:0}body.royal-chat-embedded #messages{flex:1 1 auto;min-height:65px;height:auto}body.royal-chat-embedded .chat-form{flex-shrink:0;margin:7px 0 0}body.royal-chat-embedded #royal-chat-panel>h3{margin:0 0 3px}

/* R49G10 — Sala Royal, private club visual treatment. Only the full room; no modal/embedded chat selectors. */
body.sb-royal-create:not(.royal-chat-embedded){
 background-color:#071b17;
 background-image:radial-gradient(ellipse at 50% -20%,#295447 0,transparent 65%),repeating-linear-gradient(45deg,transparent 0 22px,#bfa46c08 22px 23px,transparent 23px 45px),repeating-linear-gradient(-45deg,transparent 0 22px,#bfa46c08 22px 23px,transparent 23px 45px);
}
body:not(.royal-chat-embedded) .club{--gold:#d7bb7a;--light:#f4dfae;--muted:#bdcfc3;--ink:#f5f0e2;--edge:#8f754a;max-width:1380px;width:calc(100% - 48px);padding-top:15px}
body:not(.royal-chat-embedded) .club-nav{border-bottom:1px solid #af945a66;padding:10px 0 15px;letter-spacing:.035em}
body:not(.royal-chat-embedded) .club-nav .club-title{letter-spacing:.16em;color:#d2ded3;font-size:11px}
body:not(.royal-chat-embedded) .club-nav b{color:#edcf8a}
body:not(.royal-chat-embedded) .club-nav a{border:1px solid #a98b555c;border-radius:6px;padding:7px 13px;background:#102e26}
body:not(.royal-chat-embedded) .club .hero,body:not(.royal-chat-embedded) .club #overview>.room-head{position:relative;isolation:isolate;overflow:hidden;border:1px solid #b39354;border-radius:15px;background:radial-gradient(ellipse at 80% 20%,#31594a 0,transparent 63%),linear-gradient(115deg,#102f27,#0c211c 75%);box-shadow:inset 0 0 0 5px #0d241d,inset 0 0 0 6px #bb9c593e,0 12px 32px #0005;padding:24px 28px;margin:15px 0 18px;min-height:144px}
body:not(.royal-chat-embedded) .club .hero:after,body:not(.royal-chat-embedded) .club #overview>.room-head:after{content:'♠  ♦  ♣  ♥';font:100px/1 Georgia,serif;letter-spacing:.07em;color:#d9bd7a0b;position:absolute;right:12%;top:50%;transform:translateY(-50%) rotate(-12deg);z-index:-1;pointer-events:none;white-space:nowrap}
body:not(.royal-chat-embedded) .club .royal-heading{display:flex;align-items:center;gap:22px;min-width:0}
body:not(.royal-chat-embedded) .club .royal-crest{width:88px;height:96px;flex:0 0 auto;filter:drop-shadow(0 4px 8px #0007)}
body:not(.royal-chat-embedded) .club .royal-heading .eyebrow{color:#e1c383;font-size:10px;letter-spacing:.23em;margin-bottom:5px}
body:not(.royal-chat-embedded) .club .hero h1,body:not(.royal-chat-embedded) .club #overview>.room-head h2{font:500 clamp(29px,3.4vw,43px)/1.07 Georgia,'Times New Roman',serif;letter-spacing:-.035em;color:#ffedc5;text-shadow:0 2px 5px #0008}
body:not(.royal-chat-embedded) .club .royal-subtitle{font-size:13px;color:#c2d5c8;margin-top:8px}
body:not(.royal-chat-embedded) .club #overview>.room-head #back{align-self:center}
body:not(.royal-chat-embedded) .club .royal-grid{grid-template-columns:minmax(0,1.47fr) minmax(320px,1fr);gap:18px}
body:not(.royal-chat-embedded) .club .panel,body:not(.royal-chat-embedded) .club .room{padding:20px;border:1px solid #a488536f;border-radius:13px;background:linear-gradient(145deg,#1e4034,#122d25 65%,#10261f);box-shadow:inset 0 0 0 3px #0b201b70,0 10px 26px #0004}
body:not(.royal-chat-embedded) .club .panel h3{font-size:14px;font-weight:650;letter-spacing:.015em;color:#efd6a0;margin-bottom:12px}
body:not(.royal-chat-embedded) .club .panel>h3:first-child{font:500 25px/1.2 Georgia,serif;color:#f8e4b6;margin-bottom:14px;padding-bottom:14px;border-bottom:1px solid #b3965459}
body:not(.royal-chat-embedded) .club .panel>h3:first-child:before{content:'♦';font-size:15px;margin-right:9px;color:#d5b36d;vertical-align:3px}
body:not(.royal-chat-embedded) .club .primary{background:linear-gradient(120deg,#f9e4ac 0,#d5af66 54%,#e6cb8b 100%);color:#14271e;border:1px solid #f4d89c;border-radius:7px;box-shadow:0 2px 8px #0004,inset 0 1px #fff6;font-weight:750}
body:not(.royal-chat-embedded) .club .primary:not(:disabled):hover{filter:brightness(1.09)}
body:not(.royal-chat-embedded) .club .secondary{border-color:#b197607d;background:#0d2b23;color:#f0dbaf;border-radius:7px}
body:not(.royal-chat-embedded) .club #open-create-table{padding:10px 21px;font-size:14px}
body:not(.royal-chat-embedded) .club #open-create-table:before{content:'＋';margin-right:8px;font-size:15px}
body:not(.royal-chat-embedded) .club .incoming{border-bottom:1px solid #b2985f4d;margin:15px 0;padding-bottom:3px}
body:not(.royal-chat-embedded) .club .table-card{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(112deg,#214839,#122e25 85%);border:1px solid #a287516e;border-left:3px solid #d0af68;border-radius:9px;padding:13px 14px;gap:7px;box-shadow:0 4px 9px #0003}
body:not(.royal-chat-embedded) .club .table-card:after{content:'♠';position:absolute;right:16px;top:-8px;font:88px/1 Georgia,serif;color:#d8be8010;z-index:-1;pointer-events:none}
body:not(.royal-chat-embedded) .club #active-list .table-card{border-left-color:#88c4a3}
body:not(.royal-chat-embedded) .club .table-card h4{font-size:15px;color:#f4e2b9}
body:not(.royal-chat-embedded) .club .table-card .seats{padding:4px 0;gap:7px}
body:not(.royal-chat-embedded) .club .seat,body:not(.royal-chat-embedded) .club .members .member{background:linear-gradient(140deg,#305343,#18372d);border:1px solid #bda46965;color:#f5e3bc;border-radius:6px;padding:5px 10px}
body:not(.royal-chat-embedded) .club .seat:not(.profile-link){border-style:dashed;background:#0d2b23;color:#b8c9bf}
body:not(.royal-chat-embedded) .club .seat.profile-link:before,body:not(.royal-chat-embedded) .club .members .member:before{content:'●';font-size:9px;color:#9bd7ad;margin-right:7px}
body:not(.royal-chat-embedded) .club .chat-state{color:#bdd8c3;margin:0 0 9px}
body:not(.royal-chat-embedded) .club .chat-list{background:radial-gradient(ellipse at 50% 0,#17392c,#0b241d 80%);border:1px solid #9b825344;border-radius:9px;height:clamp(190px,34vh,420px);box-shadow:inset 0 3px 12px #0004}
body:not(.royal-chat-embedded) .club .chat-line{background:#274a3a;border:1px solid #b3986029;border-radius:8px;padding:9px 12px}
body:not(.royal-chat-embedded) .club .chat-line .profile-link{color:#f1d597;background:transparent}
body:not(.royal-chat-embedded) .club #royal-members-section{margin-top:18px;padding-top:15px;border-top:1px solid #b3965459}
body:not(.royal-chat-embedded) .club .chat-form>#send{min-width:65px}
body:not(.royal-chat-embedded) .club #message{background:#0a251d;border-color:#987e4e;color:#f8f1e0}
body:not(.royal-chat-embedded) .club .footer{border-top:1px solid #b2985f38;padding-top:14px;color:#c4d1c8}
@media(max-width:820px){body:not(.royal-chat-embedded) .club{width:calc(100% - 24px)}body:not(.royal-chat-embedded) .club .royal-grid{grid-template-columns:1fr}body:not(.royal-chat-embedded) .club .royal-crest{width:61px;height:67px}body:not(.royal-chat-embedded) .club #overview>.room-head,body:not(.royal-chat-embedded) .club .hero{padding:18px;min-height:110px}body:not(.royal-chat-embedded) .club .royal-heading{gap:13px}body:not(.royal-chat-embedded) .club .panel{padding:15px}}
@media(max-width:400px){body:not(.royal-chat-embedded) .club .royal-crest{width:47px;height:54px}body:not(.royal-chat-embedded) .club .royal-heading .eyebrow{font-size:9px;letter-spacing:.1em}body:not(.royal-chat-embedded) .club .royal-subtitle{font-size:12px}body:not(.royal-chat-embedded) .club .royal-heading{gap:9px}}
/* Keep the game area prominent on normal desktop viewports. */
@media(min-width:821px){
body:not(.royal-chat-embedded) .club #overview>.room-head{min-height:116px;padding:15px 24px;margin:12px 0 14px}
body:not(.royal-chat-embedded) .club #overview .royal-crest{width:70px;height:77px}
body:not(.royal-chat-embedded) .club .panel{padding:16px 18px}
body:not(.royal-chat-embedded) .club .panel>h3:first-child{margin-bottom:11px;padding-bottom:11px}
body:not(.royal-chat-embedded) .club .table-card{padding:10px 12px;gap:5px}
body:not(.royal-chat-embedded) .club .table-list{margin-bottom:13px}
body:not(.royal-chat-embedded) .club .incoming{margin:11px 0}
body:not(.royal-chat-embedded) .club .controls{margin:10px 0}
}
body:not(.royal-chat-embedded) .club .seat.profile-link:before{content:'♦';color:#d8ba7e}

/* R49G11: chat tabs, scoped to Royal. */
#royal-chat-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;background:#0b241d;border:1px solid #b5985d88;padding:6px;border-radius:9px;margin-bottom:12px;box-shadow:inset 0 1px 5px #0006}
#royal-chat-tabs button{min-width:0;min-height:43px;padding:7px 3px;border:1px solid #aa915c75;border-radius:6px;color:#f3e4bf;background:linear-gradient(145deg,#315143,#142e25);font-size:clamp(10px,1.05vw,13px);font-weight:750;line-height:1.2;white-space:normal;cursor:pointer}
#royal-chat-tabs button[aria-selected="true"]{background:linear-gradient(135deg,#f9e3a8,#cfa65e);color:#14291f;border-color:#f0d18a;box-shadow:0 2px 7px #0005,inset 0 1px #fff8}
#royal-chat-tabs button:disabled{opacity:.48;cursor:default}
#royal-chat-tabs button:focus-visible{outline:2px solid #f9e4b0;outline-offset:2px}
#royal-chat-panel [role=tabpanel][hidden]{display:none!important}
#royal-chat-panel .royal-channel-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 0 8px;padding-bottom:9px;border-bottom:1px solid #c4a76855}
#royal-chat-panel .royal-channel-heading h3{font:500 22px/1.15 Georgia,serif;color:#f8e4b6;margin:0}
#royal-chat-panel .royal-channel-heading span{font-size:9px;letter-spacing:.1em;color:#ebcc88;white-space:nowrap}
#royal-chat-panel .royal-frame-stage{height:clamp(330px,47vh,510px);min-width:0;background:#102b22;border:1px solid #a488536f;border-radius:9px;overflow:hidden}
#royal-chat-panel .royal-frame-stage iframe{width:100%;height:100%;display:block;border:0;background:#102b22}
body.royal-chat-embedded #royal-chat-tabs,body.royal-chat-embedded .royal-channel-heading span{display:none!important}
body.royal-chat-embedded #royal-stage-royal{display:flex;flex-direction:column;flex:1;min-height:0}
body.royal-chat-embedded .royal-channel-heading{padding:0;margin:0 0 4px;border:0}
body.royal-chat-embedded .royal-channel-heading h3{font:inherit;font-weight:700}

/* R49G12: club navigation; modal and chat styles untouched. */
#royal-play-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 15px}
#royal-play-nav button{display:flex;align-items:center;text-align:left;min-width:0;gap:10px;padding:13px 12px;min-height:74px;border:1px solid #ad915d99;border-radius:9px;background:linear-gradient(145deg,#2b4b3c,#0d2c23);box-shadow:inset 0 0 0 3px #102a2266,0 4px 12px #0004;color:#f3dfaf;cursor:pointer;font:inherit}
#royal-play-nav button:hover{border-color:#e7ca8c;background:#294a3b}#royal-play-nav button[aria-pressed=true]{background:linear-gradient(120deg,#f5dfaa,#c8a565);color:#172f25;border-color:#f6d99f;box-shadow:inset 0 0 0 3px #f9e9bd55,0 4px 12px #0005}
#royal-play-nav button:focus-visible{outline:2px solid #fce6b4;outline-offset:2px}#royal-play-nav strong,#royal-play-nav small{display:block;line-height:1.25}#royal-play-nav strong{font-size:clamp(12px,1.16vw,15px)}#royal-play-nav small{font-size:11px;opacity:.85;margin-top:4px}#royal-play-nav b{margin-left:auto;flex:none;font-size:19px;font-variant-numeric:tabular-nums}#royal-play-nav .royal-nav-symbol{font:27px/1 Georgia,serif;flex:none}
.royal-play-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #b3965459;padding-bottom:12px;margin-bottom:12px}.royal-play-heading h3{font:500 25px/1.2 Georgia,serif!important;margin:3px 0 0!important}.royal-play-heading .eyebrow{font-size:9px;letter-spacing:.12em}.royal-play-heading #open-create-table{flex-shrink:0}
.royal-filter{display:grid;grid-template-columns:1fr 1.2fr;gap:10px;margin:12px 0 16px}.royal-filter label{display:grid;min-width:0;gap:4px;color:#dbc594;font-size:11px;font-weight:650}.royal-filter input,.royal-filter select{width:100%;background:#102b22;border-color:#9c8557;color:#f6e9cc}
#royal-own{display:flex;justify-content:space-between;align-items:center;gap:8px;background:#3a4c31;border:1px solid #cfb277;border-radius:8px;padding:8px 12px;color:#f4dfae;font-size:13px}#royal-own button{font-size:12px;padding:7px 10px}
.royal-table-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.royal-table-state{flex:none;font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#eed39b;border:1px solid #c6ab6c66;padding:3px 7px;border-radius:4px}#royal-active .royal-table-state{color:#b5dec3;border-color:#88c4a366}
#royal-play-panel [hidden]{display:none!important}body.royal-chat-embedded #royal-play-nav{display:none!important}
@media(max-width:980px){#royal-play-nav{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:420px){#royal-play-nav button{padding:9px 8px;gap:5px;min-height:62px}#royal-play-nav .royal-nav-symbol{font-size:20px}#royal-play-nav strong{font-size:12px}#royal-play-nav small{font-size:10px}#royal-play-nav b{font-size:15px}.royal-play-heading{flex-wrap:wrap}.royal-filter{grid-template-columns:1fr}.royal-play-heading #open-create-table{width:100%}}
