/* =====================================================================
   FDP Online — estilos (V3.3)
   Reescrito do zero a partir das maquetes. Sem !important.
   Organização: tokens · base · componentes · início · lobby · mesa ·
   sobreposições · admin · página de regras · ajustes por tamanho.
   ===================================================================== */

/* ---------- tokens ---------- */
:root {
  --bg1: #0f2c1d;
  --bg2: #06150d;
  --felt1: #3c9d61;
  --felt2: #1f6e40;
  --felt3: #0e4024;
  --wood1: #7d4b27;
  --wood2: #4f2d16;
  --wood3: #2c180a;
  --brass: #caa34f;
  --gold: #e9c46a;
  --gold-l: #f6d98b;
  --gold-ink: #201705;
  --ink: #f3f7f4;
  --muted: #b9cec3;
  --panel: rgba(7, 22, 15, 0.94);
  --panel-2: #0b1f16;
  --tint: #163e2e; /* fundo de botões redondos e do anel */
  --line: rgba(233, 196, 106, 0.38);
  --hair: rgba(255, 255, 255, 0.08);
  --red: #ff8a8a;
  --green: #8fe3a8;
  --card: #fbf7ee;
  --card-red: #c62828;
  --card-black: #1d1d1d;
  --radius: 14px;
  --shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  --safe-b: env(safe-area-inset-bottom, 0px);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

/* ---------- temas de mesa (escolha do jogador, menu ⋮) ---------- */
body.theme-azul {
  --bg1: #0c1b2e;
  --bg2: #040b15;
  --felt1: #3a7cc0;
  --felt2: #1d5390;
  --felt3: #0b2c56;
  --muted: #b8c8dc;
  --panel: rgba(6, 14, 27, 0.94);
  --panel-2: #0a1626;
  --tint: #15304f;
}
body.theme-vinho {
  --bg1: #26100f;
  --bg2: #0c0505;
  --felt1: #9a3446;
  --felt2: #6d1f2e;
  --felt3: #3c0e17;
  --muted: #d8bfc3;
  --panel: rgba(26, 9, 11, 0.94);
  --panel-2: #1c0b0d;
  --tint: #4a1820;
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
}
body {
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 75% 42% at 50% 36%, rgba(255, 214, 150, 0.12), transparent 70%),
    radial-gradient(ellipse 120% 80% at 50% 40%, var(--bg1) 0%, var(--bg2) 62%, #020403 100%);
  background-attachment: fixed;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url(/brand/naipes.svg) 0 0 / 96px 96px;
  opacity: 0.035;
  pointer-events: none;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
a {
  color: var(--gold);
}
a:hover {
  color: var(--gold-l);
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.hidden,
[hidden] {
  display: none !important; /* única exceção: ocultar sempre vence */
}
.muted {
  color: var(--muted);
}
.center {
  text-align: center;
}
.eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.eyebrow.gold {
  color: var(--gold);
}
svg.stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
svg {
  fill: currentColor;
}
.ic {
  width: 11px;
  height: 11px;
  flex: none;
  color: var(--muted);
}

/* ---------- botões ---------- */
.btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    transform 0.08s,
    background 0.15s;
}
.btn:active:not(:disabled) {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.5;
}
.btn.primary {
  border: 0;
  background: linear-gradient(180deg, var(--gold-l), var(--gold));
  color: var(--gold-ink);
  font-weight: 900;
}
.btn.big {
  min-height: 56px;
  font-size: 17px;
  border-radius: 14px;
  width: 100%;
}
.btn.ghost {
  background: transparent;
}
.btn.dashed {
  width: 100%;
  border: 1.5px dashed var(--line);
  background: transparent;
  color: var(--gold);
}
.btn.danger {
  border: 0;
  background: #b3262e;
  color: #fff;
}
.iconBtn {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.iconBtn.solid {
  border: 0;
  background: var(--gold);
  color: var(--gold-ink);
}
input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.32);
  font-size: 16px;
}
input::placeholder {
  color: rgba(243, 247, 244, 0.45);
}
input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.textLink {
  font-weight: 700;
  font-size: 14px;
}

/* ---------- layout geral ---------- */
.app {
  min-height: 100dvh;
}

/* ---------- início ---------- */
.home {
  min-height: 100dvh;
  max-width: 440px;
  margin: 0 auto;
  padding: 40px 20px calc(24px + var(--safe-b));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.homeLogo {
  width: min(300px, 78vw);
  height: auto;
  margin-top: 4vh;
}
.homeTag {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}
.homeCard {
  width: 100%;
  padding: 18px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fieldLabel {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hair);
}
.join {
  display: flex;
  gap: 8px;
}
.join input {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 800;
  text-align: center;
}
.join .btn {
  min-height: 52px;
}
.homeMsg {
  margin: 0;
  min-height: 1.2em;
  color: var(--gold-l);
  font-size: 14px;
  text-align: center;
}

/* ---------- topo do jogo ---------- */
.game {
  height: 100dvh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 56px;
  flex: none;
  padding: 0 12px 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}
.topLogo {
  width: 40px;
  height: 40px;
}
.topInfo {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  flex: 1;
  min-width: 0;
}
.topInfo b {
  font-size: 14px;
}
.topInfo span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- lobby ---------- */
.lobby {
  flex: 1;
  overflow-y: auto;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 8px 16px calc(20px + var(--safe-b));
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.codeCard {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.codeText {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.codeText b {
  font-size: 30px;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.sectionHead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.sectionHead span {
  font-size: 13px;
  color: var(--muted);
}
.lobbyPlayers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.lobbyTile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  min-width: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hair);
}
.lobbyTile.me {
  border-color: var(--gold);
}
.lobbyAvatar {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: var(--tint);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--gold);
}
.lobbyAvatar .ic {
  width: 18px;
  height: 18px;
  color: var(--gold);
}
.lobbyText {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.lobbyText b {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lobbyText small {
  font-size: 12px;
  color: var(--muted);
}
.crown .ic {
  color: var(--gold);
  width: 13px;
  height: 13px;
  vertical-align: -1px;
}
.removePlayer {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 8px;
  border: 1px solid rgba(255, 155, 155, 0.4);
  background: transparent;
  color: #ffb3b3;
  font-size: 18px;
  line-height: 1;
}
.settingsCard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hair);
}
.setting > span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}
.seg {
  display: grid;
  grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
}
.seg button {
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}
.seg button[aria-pressed="true"] {
  background: var(--gold);
  color: var(--gold-ink);
}
.settingsCard.readonly .seg button:not([aria-pressed="true"]) {
  opacity: 0.45;
}

/* ---------- mesa: palco ---------- */
.tableWrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.spectatorBar {
  margin: 0 12px 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(233, 196, 106, 0.14);
  border: 1px solid var(--line);
  color: var(--gold-l);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.stage {
  position: relative;
  flex: 1;
  min-height: 300px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}
.felt {
  position: absolute;
  border-radius: var(--r, 150px);
  padding: 9px;
  background:
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, var(--wood1) 0%, var(--wood2) 46%, var(--wood3) 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 222, 170, 0.35),
    inset 0 -4px 8px rgba(0, 0, 0, 0.55),
    0 0 0 1px #160c05,
    0 22px 50px rgba(0, 0, 0, 0.6);
}
.feltInner {
  position: absolute;
  inset: 9px;
  border-radius: calc(var(--r, 150px) - 9px);
  overflow: hidden;
  background: radial-gradient(ellipse 78% 58% at 50% 42%, var(--felt1) 0%, var(--felt2) 52%, var(--felt3) 100%);
  box-shadow:
    inset 0 0 0 2px var(--brass),
    inset 0 0 0 3px rgba(0, 0, 0, 0.35),
    inset 0 14px 34px rgba(0, 0, 0, 0.35);
}
.feltInner::before {
  /* costura */
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: calc(var(--r, 150px) - 18px);
  border: 1.5px dashed rgba(255, 255, 255, 0.15);
  pointer-events: none;
}
.feltInner::after {
  /* grão de tecido */
  content: "";
  position: absolute;
  inset: 0;
  background: url(/brand/feltro-grao.svg) 0 0 / 220px 220px;
  mix-blend-mode: overlay;
  opacity: 0.45;
  pointer-events: none;
}
.feltMark,
.zone {
  z-index: 1;
}
.feltMark {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 70px;
  height: 70px;
  transform: translateX(-50%);
  opacity: 0.12;
  pointer-events: none;
}

/* ---------- área central de jogadas ---------- */
.zone {
  position: absolute;
  transform-origin: 0 0;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(217, 184, 102, 0.35);
  padding: 12px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.zTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.zViraCol {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 42px;
}
.zViraCol .eyebrow {
  font-size: 8px;
}
.zMani {
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
}
.zMani b {
  color: var(--gold);
  font-size: 11px;
}
.zWin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.zWinCard {
  position: relative;
}
.zBadge {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  height: 16px;
  padding: 0 6px;
  border-radius: 8px;
  background: var(--gold);
  color: #2a1d00;
  font-size: 9px;
  font-weight: 900;
  display: flex;
  align-items: center;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.zWinName {
  font-size: 11px;
  color: var(--gold);
  max-width: 80px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zEmpty {
  width: 54px;
  height: 78px;
  border-radius: 8px;
  border: 1.5px dashed rgba(255, 255, 255, 0.25);
}
.zCount {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 42px;
  line-height: 1;
}
.zCount b {
  font-size: 20px;
}
.zCount small,
.zBigInfo small {
  font-size: 12px;
  color: var(--muted);
}
.zCount span {
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.zBigInfo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1;
}
.zBigInfo b {
  font-size: 34px;
}
.zSmall {
  font-size: 10px;
  color: var(--muted);
}
.zMid {
  flex: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 6px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.zOthers {
  position: relative;
  height: 66px;
}
.zOther {
  position: absolute;
  top: 0;
}
.zOther span {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
}
.zNone {
  font-size: 10px;
  color: var(--muted);
  align-self: center;
}
.zFoot {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zFoot b {
  color: var(--gold);
}
.zHead {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.zHeadText {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.zHeadText b {
  font-size: 13px;
  color: var(--gold);
}
.zNote {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
}
.zDarkGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px 2px;
  justify-items: center;
}
.zSlot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.zSlot span {
  font-size: 9px;
  color: var(--muted);
}

/* ---------- cartas ---------- */
.card {
  --w: 54px;
  --h: 78px;
  width: var(--w);
  height: var(--h);
  flex: none;
  position: relative;
  border-radius: calc(var(--w) * 0.14);
  background: var(--card);
  color: var(--card-black);
  font-family: Georgia, "Times New Roman", serif;
  box-shadow:
    -3px 0 8px rgba(0, 0, 0, 0.3),
    0 4px 10px rgba(0, 0, 0, 0.3);
  user-select: none;
}
.card.red {
  color: var(--card-red);
}
.card .cv {
  position: absolute;
  left: calc(var(--w) * 0.1);
  top: calc(var(--h) * 0.04);
  font-size: calc(var(--w) * 0.36);
  line-height: 1;
  font-weight: 700;
}
.card .cs {
  position: absolute;
  left: calc(var(--w) * 0.12);
  top: calc(var(--h) * 0.04 + var(--w) * 0.4);
  font-size: calc(var(--w) * 0.25);
  line-height: 1;
}
.card .cbig {
  position: absolute;
  right: calc(var(--w) * 0.1);
  bottom: calc(var(--h) * 0.05);
  font-size: calc(var(--w) * 0.48);
  line-height: 1;
}
.card.mani {
  box-shadow:
    inset 0 0 0 2px #d4a93a,
    -3px 0 8px rgba(0, 0, 0, 0.3),
    0 4px 10px rgba(0, 0, 0, 0.3);
}
.card.lead {
  box-shadow:
    0 0 0 3px var(--gold),
    0 8px 22px rgba(0, 0, 0, 0.45);
}
.card.shine {
  overflow: hidden;
}
.card.shine::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 246, 214, 0.85) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: shine 0.9s ease-out 0.05s 1 forwards;
  pointer-events: none;
}
@keyframes shine {
  to {
    transform: translateX(120%);
  }
}
.card.xs {
  --w: 36px;
  --h: 52px;
}
.card.vira {
  --w: 30px;
  --h: 43px;
}
.card.md {
  --w: 54px;
  --h: 78px;
}
.card.lg {
  --w: 84px;
  --h: 122px;
}
.card.back {
  padding: 4px;
  background: #f3ead5;
}
.card.back .backMark {
  position: absolute;
  inset: 4px;
  border-radius: calc(var(--w) * 0.1);
  background:
    url(/brand/fdp-simbolo.svg) center / 62% no-repeat,
    repeating-linear-gradient(45deg, rgba(233, 196, 106, 0.18) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(-45deg, rgba(233, 196, 106, 0.18) 0 2px, transparent 2px 9px),
    #1b1d21;
  box-shadow: inset 0 0 0 1.5px var(--gold);
}

/* ---------- assentos (caixas compactas) ---------- */
.seats {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.seatBox {
  position: absolute;
  width: 88px;
  min-height: 62px;
  padding: 5px 6px 6px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: auto;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.seatBox.leading {
  border: 2px solid var(--gold);
}
.seatBox.turn {
  border: 2px solid var(--gold);
  box-shadow:
    0 0 0 4px rgba(233, 196, 106, 0.22),
    0 6px 14px rgba(0, 0, 0, 0.4);
}
.seatBox.offline {
  opacity: 0.7;
}
.seatBox.dead {
  opacity: 0.5;
}
.seatName {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
}
.seatName b {
  font-size: 12px;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tag {
  flex: none;
  height: 15px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.03em;
}
.tag.pe {
  background: var(--gold);
  color: #2a1d00;
}
.tag.vez {
  background: rgba(233, 196, 106, 0.2);
  color: var(--gold);
}
.tag.abre {
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink);
}
.seatStats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 3px 0;
}
.st {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 900;
}
.st.ped {
  color: var(--gold);
}
.st.hit,
.chip.hit {
  color: var(--green);
}
.st.over,
.chip.over {
  color: var(--red);
}
.seatTentos {
  display: flex;
  justify-content: center;
}
.seatOut {
  font-size: 10px;
  font-weight: 900;
  color: var(--red);
  letter-spacing: 0.06em;
  text-align: center;
}
.tentos {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tentos .bars {
  display: flex;
  gap: 2px;
}
.tentos i {
  display: block;
  width: 10px;
  height: 5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
}
.tentos i.on {
  background: var(--gold);
}
.tentos b {
  font-size: 10px;
}
.tentos.danger i.on {
  background: var(--red);
}
.tentos.danger b {
  color: var(--red);
}

/* ---------- minha área ---------- */
.myArea {
  position: relative;
  z-index: 2;
  flex: none;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 10px calc(10px + var(--safe-b));
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.statusLine {
  min-height: 22px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.statusLine.mine {
  color: var(--gold);
  font-weight: 800;
}
.statusTimer {
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
}
.statusTimer.urgent {
  color: var(--red);
}
.bidPanel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.bidSummary {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  font-size: 12px;
}
.bidSummary::-webkit-scrollbar {
  display: none;
}
.bidSummary .pill {
  flex: none;
  font-size: 12px;
}
.bidSum {
  flex: none;
  margin-right: 4px;
  color: var(--muted);
  font-weight: 600;
}
.bidSum b {
  color: var(--gold);
}
.bidBar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.bidChips {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.bidChips button {
  min-width: 36px;
  height: 32px;
  padding: 0 6px;
  border-radius: 8px;
  border: 0;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}
.bidChips button[aria-pressed="true"] {
  background: var(--gold);
  color: var(--gold-ink);
}
.bidWarn {
  margin: 0;
  min-height: 0;
  font-size: 12px;
  color: #ffd97a;
  text-align: center;
}
.bidWarn:empty {
  display: none;
}
.bidBtn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--tint);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}
.bidBtn:disabled {
  opacity: 0.35;
}
.bidValue {
  min-width: 44px;
  text-align: center;
  font-size: 34px;
  font-weight: 900;
}
.bidBar .btn.primary {
  min-height: 48px;
}
.handRow {
  display: flex;
  align-items: center;
  gap: 8px;
}
.handTools {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: none;
}
.handTools button {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
}
.handTools button[aria-pressed="true"] {
  background: var(--gold);
  color: var(--gold-ink);
  border-color: var(--gold);
}
.hand {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 60px;
}
.handCard {
  position: absolute;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 10px;
  transition: transform 0.12s ease;
}
.handCard .card {
  --w: var(--cw, 80px);
  --h: var(--ch, 116px);
}
.handCard:not(:disabled):hover,
.handCard.selected {
  transform: translateY(-16px);
}
.handCard.selected .card {
  box-shadow:
    0 0 0 3px var(--gold),
    0 10px 22px rgba(0, 0, 0, 0.5);
}
.handCard:disabled {
  cursor: default;
}
.hand.single {
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.hand.single .handCard {
  position: static;
}
.myBox {
  min-height: 66px;
}
.myInner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 10px;
  border-radius: 16px;
  background: var(--panel);
  border: 2px solid var(--line);
}
.myInner.turn {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(233, 196, 106, 0.14);
}
.ringWrap {
  position: relative;
  width: 48px;
  height: 48px;
  flex: none;
}
.ringWrap svg {
  position: absolute;
  inset: -3px;
  width: 54px;
  height: 54px;
}
.ringBg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 4;
}
.ring {
  fill: none;
  stroke: var(--gold);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 150.8;
  stroke-dashoffset: 150.8;
  transition: stroke-dashoffset 0.2s linear;
}
.myInner.turn .ring {
  stroke-dashoffset: 0;
}
.ring.urgent {
  stroke: var(--red);
}
.ringSecs {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.myInfo {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.myNameRow {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.myNameRow b {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.youTag {
  font-size: 10px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.06em;
}
.myTentos {
  margin-left: auto;
}
.myChips {
  display: flex;
  gap: 6px;
}
.chip {
  height: 24px;
  padding: 0 8px;
  border-radius: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 900;
}
.chip .ic {
  width: 12px;
  height: 12px;
}
.chip.ped {
  color: var(--gold);
  border-color: rgba(233, 196, 106, 0.6);
}
.chip.muted {
  color: var(--muted);
}
.reactBtn {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--tint);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.reactBtn:disabled {
  opacity: 0.4;
}

/* ---------- reações ---------- */
.reactionMenu {
  position: fixed;
  z-index: 60;
  width: min(300px, calc(100vw - 16px));
  max-height: 60vh;
  overflow-y: auto;
  padding: 6px;
  border-radius: 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.reactionMenu button {
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
}
.reactionMenu button:hover,
.reactionMenu button:focus-visible {
  background: rgba(255, 255, 255, 0.07);
}
.reactionBubbles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 55;
}
.quickBubble {
  position: fixed;
  transform: translate(-50%, -100%);
  max-width: 200px;
  padding: 8px 12px;
  border-radius: 14px;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  animation: bubble 3s ease forwards;
}
.quickBubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
}
@keyframes bubble {
  0% {
    opacity: 0;
    transform: translate(-50%, -80%);
  }
  10%,
  85% {
    opacity: 1;
    transform: translate(-50%, -100%);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -110%);
  }
}

/* ---------- avisos ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + var(--safe-b));
  transform: translateX(-50%);
  z-index: 90;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(10, 10, 10, 0.92);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.connBanner {
  position: fixed;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  z-index: 95;
  max-width: min(92vw, 520px);
  padding: 9px 14px;
  border-radius: 12px;
  background: rgba(20, 20, 20, 0.94);
  color: #ffe9a8;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.connBanner button {
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 0;
  background: var(--gold);
  color: #222;
  font-weight: 800;
}

/* ---------- transições ---------- */
.transition {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
}
.transition[data-type="round"] {
  background: rgba(3, 10, 7, 0.7);
  pointer-events: auto;
}
.tCard {
  width: min(380px, 100%);
  padding: 16px;
  border-radius: 20px;
  background: rgba(13, 38, 27, 0.97);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  animation: pop 0.22s ease;
}
.tCard strong {
  font-size: 19px;
}
.tCard small {
  color: var(--muted);
  font-size: 13px;
}
.tCard.small {
  margin-top: -18vh;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 13px;
  font-weight: 600;
}
.pill b {
  color: var(--gold);
  margin-left: 2px;
}
.tCard.round {
  text-align: left;
  padding: 16px 12px 12px;
}
.tCard.round > .eyebrow,
.tCard.round > strong {
  padding: 0 4px;
}
.rHead,
.rRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px 30px 34px 76px;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
}
.rHead {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 4px;
}
.rHead span:not(:first-child),
.rNum {
  text-align: center;
}
.rRow {
  padding: 8px 4px;
  border-top: 1px solid var(--hair);
  font-size: 14px;
}
.rRow.me {
  background: rgba(233, 196, 106, 0.07);
}
.rRow.out {
  background: rgba(255, 107, 107, 0.08);
}
.rName {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.rName b {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.outTag {
  font-style: normal;
  font-size: 9px;
  font-weight: 900;
  color: var(--red);
  letter-spacing: 0.06em;
}
.rPen {
  text-align: center;
  font-weight: 900;
  border-radius: 8px;
  padding: 2px 0;
}
.rPen.good {
  color: var(--green);
  background: rgba(143, 227, 168, 0.14);
}
.rPen.bad {
  color: #ffb3b3;
  background: rgba(255, 155, 155, 0.16);
}
.rTen {
  display: flex;
  justify-content: flex-end;
}
.rFoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 4px 0;
  border-top: 1px solid var(--hair);
  font-size: 13px;
  color: var(--muted);
}
.rFoot b {
  color: var(--ink);
}
.rTimer {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--ink);
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
}

/* ---------- menu ⋮ (folha de baixo) ---------- */
.sheetBackdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(3, 10, 7, 0.62);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet {
  width: min(520px, 100%);
  padding: 10px 8px calc(20px + var(--safe-b));
  border-radius: 24px 24px 0 0;
  background: var(--panel-2);
  border-top: 1px solid var(--line);
  box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.5);
  animation: sheetUp 0.2s ease;
}
@keyframes sheetUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
}
.sheetGrip {
  width: 42px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.25);
  margin: 4px auto 12px;
}
.sheetHead {
  padding: 0 14px 10px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.sheetHead b {
  font-size: 18px;
}
.sheetHead span {
  font-size: 12px;
  color: var(--muted);
}
.menuItem {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border: 0;
  border-top: 1px solid var(--hair);
  background: transparent;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
}
.menuItem:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}
.menuIcon {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.menuText {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.menuText b {
  font-size: 15px;
}
.menuText small {
  font-size: 12px;
  color: var(--muted);
}
.menuItem.danger {
  color: #ffb3b3;
}
.menuItem.danger .menuIcon {
  background: rgba(255, 107, 107, 0.12);
}
.switch {
  width: 46px;
  height: 28px;
  flex: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  position: relative;
  transition: background 0.15s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
}
[aria-checked="true"] .switch {
  background: var(--gold);
}
[aria-checked="true"] .switch::after {
  transform: translateX(18px);
}

.themeRow {
  cursor: default;
}
.swatches {
  display: flex;
  gap: 8px;
  flex: none;
}
.swatches button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.35), transparent 60%), var(--sw);
}
.swatches button[aria-checked="true"] {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(233, 196, 106, 0.3);
}

/* ---------- diálogos ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(3, 10, 7, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modalCard {
  width: min(400px, 100%);
  padding: 20px;
  border-radius: 20px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: pop 0.18s ease;
}
.modalCard h2 {
  margin: 0 0 6px;
  font-size: 20px;
}
.modalCard p {
  margin: 0 0 14px;
}
.modalActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.kickPlayers {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 46vh;
  overflow-y: auto;
}
.kickPlayer {
  min-height: 50px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}
.kickPlayer small {
  color: var(--muted);
}
.kickPlayer.selected {
  border-color: var(--red);
  background: rgba(255, 107, 107, 0.1);
}

/* ---------- vitória ---------- */
.victoryOverlay {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(3, 10, 7, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}
.victoryCard {
  position: relative;
  width: min(380px, 100%);
  padding: 24px 18px 18px;
  border-radius: 24px;
  background: #0d261b;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  animation: pop 0.25s ease;
}
.victoryCard h2 {
  margin: 0;
  font-size: 26px;
}
.victoryCard p {
  margin: 0;
}
.victoryNames {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.victoryWinner {
  padding: 14px 10px;
  border-radius: 16px;
  background: rgba(233, 196, 106, 0.08);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--gold);
}
.victoryWinner strong {
  color: var(--ink);
  font-size: 17px;
}
.victoryActions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.suitConfetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.suitConfetti i {
  position: absolute;
  top: -40px;
  left: var(--x);
  font-style: normal;
  font-size: 22px;
  color: #f3ead5;
  opacity: 0.8;
  animation: fall var(--dur) linear var(--delay) infinite;
}
.suitConfetti i.red {
  color: #e85d5d;
}
@keyframes fall {
  to {
    transform: translate(var(--drift), 110vh) rotate(360deg);
  }
}

/* ---------- admin ---------- */
.adminPage {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px;
}
.adminPage header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.headerBrand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.headerBrand img {
  width: 40px;
  height: 40px;
}
.panel {
  padding: 20px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.panel h1 {
  margin: 0 0 6px;
  font-size: 24px;
}
.leaveBtn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  font-weight: 800;
}
.adminRooms {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.adminRooms article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hair);
}
.adminRooms article div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.adminRooms small {
  color: var(--muted);
}
.adminRooms a {
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 800;
  text-decoration: none;
}
.adminReactions {
  margin-top: 18px;
}
.reactionEditList {
  list-style: none;
  padding: 0;
  margin: 14px 0;
  display: grid;
  gap: 8px;
  counter-reset: r;
}
.reactionEditList li {
  display: flex;
  align-items: center;
  gap: 6px;
  counter-increment: r;
}
.reactionEditList li::before {
  content: counter(r);
  min-width: 22px;
  text-align: right;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}
.reactionEditList input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  font-size: 15px;
}
.reactionEditList .count {
  font-size: 11px;
  color: var(--muted);
  min-width: 38px;
  text-align: right;
}
.reactionEditList button {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
}
.reactionEditList button.del {
  color: #ff9b9b;
  border-color: rgba(255, 155, 155, 0.35);
}
.reactionEditActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.reactionEditActions .secondaryBtn,
.secondaryBtn {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.reactionEditActions .primary,
.primary {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--gold-l), var(--gold));
  color: var(--gold-ink);
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.reactionEditActions .primary {
  margin-left: auto;
}
.reactionEditActions button:disabled {
  opacity: 0.5;
}
@media (max-width: 560px) {
  .reactionEditList li {
    flex-wrap: wrap;
  }
  .reactionEditList input {
    flex-basis: calc(100% - 30px);
  }
  .reactionEditList .count {
    margin-left: 28px;
    flex: 1;
    text-align: left;
  }
  .reactionEditActions .primary {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}
#reactionStatus[data-kind="ok"] {
  color: var(--green);
}
#reactionStatus[data-kind="error"] {
  color: var(--red);
}
#reactionStatus[data-kind="warn"] {
  color: #ffd97a;
}

/* ---------- página de regras ---------- */
.rulesPage {
  padding: 20px 16px 40px;
}
.rulesShell {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.rulesHeader {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.rulesHeader p {
  margin: 0;
  color: var(--muted);
}
.rulesLogo img {
  width: 64px;
  height: 64px;
  display: block;
}
.rulesEyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.rulesHeader h1 {
  margin: 4px 0;
}
.rulesBack {
  margin-left: auto;
}
.quickRules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}
.quickRules article {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--hair);
}
.quickRules article > b {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--gold);
  color: var(--gold-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.quickRules article div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 14px;
}
.quickRules article span {
  color: var(--muted);
}
.rulesContent {
  padding: 4px 20px 20px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--hair);
  line-height: 1.6;
}
.rulesContent h2 {
  margin: 24px 0 6px;
  font-size: 19px;
  color: var(--gold-l);
}
.ruleHighlight {
  margin: 8px 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(233, 196, 106, 0.1);
  color: var(--gold);
  font-weight: 800;
  text-align: center;
}
.rulesTable {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--hair);
  margin: 10px 0;
}
.rulesTable > div {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
}
.rulesTable > div:first-child {
  background: rgba(233, 196, 106, 0.12);
}
.rulesTable b,
.rulesTable span {
  padding: 8px 12px;
  border-top: 1px solid var(--hair);
}
.rulesTable.compact {
  max-width: 420px;
}
.goldenRule {
  margin-top: 20px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--gold);
  background: rgba(233, 196, 106, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.goldenRule span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.rulesFooter {
  display: flex;
  justify-content: center;
}

/* ---------- ajustes por tamanho ---------- */
@media (max-height: 700px) {
  .topbar {
    height: 50px;
  }
  .bidChips,
  .bidSummary .pill {
    display: none;
  }
  .bidPanel {
    gap: 6px;
    padding: 8px;
  }
  .myArea {
    gap: 4px;
  }
  .statusLine {
    font-size: 13px;
    min-height: 18px;
  }
}
@media (min-width: 900px) {
  .topbar {
    height: 64px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
