/* gcp:css/chrome.css v0.635 */
html, body, #app {
  height: 100%;
  height: 100dvh;
  height: var(--app-vh, 100dvh);
  min-height: var(--app-vh, 100dvh);
}
html, body {
  overflow-x: hidden;
}
html.dragging-hand,
html.dragging-hand body,
html.dragging-lobby,
html.dragging-lobby body {
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
}
#app {
  margin: 0 auto;
  min-height: 100dvh;
  min-height: var(--app-vh, 100dvh);
  display: flex;
  flex-direction: column;
  max-width: 1800px;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
}
#app.narrow { max-width: 48rem; overflow: auto; -webkit-overflow-scrolling: touch; }
#app.lobby-page {
  max-width: 1280px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
#app.table-view {
  overflow: hidden;
  height: 100%;
  height: var(--app-vh, 100dvh);
  min-height: 0;
}

.header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px 16px; border-bottom: 0;
  background: var(--bg-mid);
  flex-shrink: 0;
}
.header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 10px;
  background-color: var(--accent);
  -webkit-mask: var(--gulf-wave) repeat-x center / 88px 11px;
  mask: var(--gulf-wave) repeat-x center / 88px 11px;
  opacity: 0.8;
  pointer-events: none;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; cursor: pointer; background: none; border: 0; padding: 0; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center;
  overflow: hidden;
  background: none; border: 0; padding: 0;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--fg) 14%, transparent);
}
.brand-mark svg { width: 40px; height: 40px; display: block; }
.brand h1 { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.2; }
.brand .sub { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); font-weight: 600; }
.ver-chip { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); }
.header-actions { display: flex; gap: 6px; position: relative; }

.btn, .btn-icon {
  border: 1px solid var(--border); background: var(--surface); color: var(--fg);
  border-radius: 10px; font-weight: 700; min-height: 40px;
}
.btn { padding: 8px 14px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.btn-icon { width: 40px; height: 40px; min-width: 40px; padding: 0; display: grid; place-items: center; font-size: 16px; }
.btn-icon.auto-on {
  background: color-mix(in srgb, var(--warn) 28%, var(--surface));
  border-color: color-mix(in srgb, var(--warn) 65%, transparent);
  color: var(--warn);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--warn) 22%, transparent);
}
.btn.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.btn.ghost { background: transparent; }
.btn.bid { min-width: 48px; justify-content: center; position: relative; overflow: visible; }
.btn.pass { color: var(--danger); position: relative; overflow: visible; }
.btn.suggested-1 { outline: 2px solid var(--success); outline-offset: 1px; }
.btn.suggested-2 { outline: 2px solid #22d3ee; outline-offset: 1px; }
.btn.suggested-3 { outline: 2px solid #a78bfa; outline-offset: 1px; }
.btn .think-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  z-index: 24; min-width: 2.4em; font-size: 11px; font-weight: 800;
  background: #155e75; color: #cffafe; border-radius: 999px; padding: 2px 6px;
  pointer-events: none; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.4);
}
.btn.suggested-2 .think-badge { background: #155e75; }
.btn.suggested-3 .think-badge { background: #5b21b6; color: #ede9fe; }
.btn:disabled { opacity: 0.4; }

.lobby { padding: 16px 14px; flex: 1; }
@media (min-width: 860px) {
  .lobby { padding: 22px 28px 40px; }
  .lobby h2 { font-size: 28px; }
  .lobby .blurb { font-size: 15px; max-width: 46em; }
}
.lobby h2 { margin: 0 0 6px; font-size: 22px; }
.lobby .blurb { margin: 0 0 16px; font-size: 13px; color: var(--muted); line-height: 1.5; }

.lobby.deal .lobby-mast { display: none; }
.lobby.deal .blurb { margin: 0 0 14px; max-width: none; }
.lobby.deal .lobby-drag-hint { margin: 16px 0 0; text-align: center; }
.lobby.deal .gulf-wave { display: none; }

.deal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
  justify-content: center;
  user-select: none;
}
.deal-grid .game-card,
.deal-grid .game-card.live,
.deal-grid .game-card.soon,
.deal-grid .game-card.featured {
  background: none; border: 0; box-shadow: none; outline: none;
  padding: 0; border-radius: 0; text-align: start;
  min-width: 0; overflow: visible;
}
.deal-grid .game-card::after { display: none; }
.deal-face {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 7.1;
  border-radius: 0;
  background: none;
  color: #1c1408;
  box-shadow: none;
  padding: 12px 12px 14px;
  display: flex; flex-direction: column;
  overflow: visible;
  transform: rotate(var(--deal-rot, 0deg)) scale(var(--deal-scale, 1)) translateY(var(--deal-y, 0px));
  transform-origin: 50% 52%;
  transition: transform var(--motion-fast, 200ms) ease;
}
.deal-paper {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  border-radius: var(--deal-rad, 14px);
  clip-path: var(--deal-clip, none);
  background-color: color-mix(in srgb, var(--accent) 14%, #d2c19a);
  background-image:
    radial-gradient(circle at var(--stain-x, 20%) var(--stain-y, 18%), rgba(90, 50, 18, .2), transparent 42%),
    radial-gradient(circle at var(--stain-x2, 78%) var(--stain-y2, 82%), rgba(60, 36, 12, .16), transparent 38%),
    url("../brand/card-paper.svg");
  background-size: auto, auto, 140% 140%;
  background-position: 0 0, 0 0, var(--paper-x, 40%) var(--paper-y, 30%);
  background-blend-mode: multiply, multiply, multiply;
  filter: drop-shadow(0 12px 16px rgba(0,0,0,.34));
}
.deal-paper::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 28px rgba(90, 50, 18, .16), inset 0 0 0 1px rgba(80, 50, 20, .2);
  pointer-events: none;
}
.deal-face > :not(.deal-paper) { position: relative; z-index: 1; }
.deal-mid {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 18px 8px 8px; gap: 5px; min-width: 0;
}
.deal-mark {
  width: 54px; height: 54px; flex-shrink: 0; color: #1c1408; display: block;
  margin-bottom: 2px;
}
.deal-title {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  min-width: 0; max-width: 100%;
}
.deal-title h3 { min-width: 0; }
.deal-flag {
  width: 18px; height: 12px; display: block; flex-shrink: 0;
  border-radius: 2px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(28,20,8,.28);
}
.deal-grid .game-card h3 {
  margin: 0; font-size: 17px; font-weight: 800; color: #120c04; padding: 0; line-height: 1.2;
  white-space: normal;
  text-shadow: 0 1px 0 rgba(255,248,230,.45);
}
.deal-grid .game-card .en {
  font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: none; color: #2a1c0c;
  line-height: 1.25; white-space: normal;
}
.deal-desc {
  margin: 2px 0 0; font-size: 11px; font-weight: 700; line-height: 1.35;
  color: #4a3a24; max-width: 18em;
}
.deal-grid .game-card .seats {
  position: absolute; top: 8px; inset-inline-start: 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  margin: 0; font-size: 13px; font-weight: 800; letter-spacing: 0;
  color: #3f2e18; z-index: 2;
}
.deal-grid .seats b { font-size: 15px; font-variant-numeric: tabular-nums; }
.deal-grid .seats .ico { width: 18px; height: 18px; stroke-width: 1.9; }
.deal-grid .pills {
  position: static; transform: none; inset: auto;
  max-width: none; justify-content: center; margin-top: auto; padding-bottom: 2px;
}
.deal-grid .pill { font-size: 10px; padding: 3px 8px; font-weight: 800; }
.deal-grid .pill.exp { background: #9a3412; color: #fff7ed; }
.deal-grid .pill.live { background: #166534; color: #ecfdf5; }
.deal-grid .pill.soon { background: #44403c; color: #f5f5f4; }
.deal-grid .deal-opts {
  position: absolute;
  inset-inline-end: 0;
  top: 0;
  z-index: 4;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #3f2e18;
  background: transparent;
  box-shadow: none;
  display: grid;
  place-items: center;
}
.deal-grid .deal-opts .ico { width: 20px; height: 20px; stroke-width: 2; }
.deal-grid .deal-opts:hover,
.deal-grid .deal-opts:focus-visible {
  background: transparent;
  color: #1c1408;
}
.opts-game-head {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 12px;
}
.deal-grid .game-card-actions {
  justify-content: center; margin-top: 6px; gap: 6px;
}
.deal-grid .play-chip {
  margin: 0; padding: 5px 9px; font-size: 10px; border-radius: 8px;
  background: #1c1408; color: #e8dcc4;
}
.deal-grid .play-chip.ghost {
  background: #fff; color: #1c1408; border: 1px solid #1c1408;
}
.deal-grid .game-card.live .deal-face { box-shadow: none; }
.deal-grid .game-card.dragging {
  opacity: 1;
}
.deal-grid .game-card.dragging .deal-face {
  visibility: hidden;
}
.deal-grid .game-card:hover .deal-face,
.deal-grid .game-card:focus-within .deal-face {
  transform: rotate(var(--deal-rot, 0deg)) scale(calc(var(--deal-scale, 1) * 1.03)) translateY(-8px);
  z-index: 2;
}
.deal-grid .game-card:hover .deal-paper,
.deal-grid .game-card:focus-within .deal-paper {
  filter: drop-shadow(0 18px 22px rgba(0,0,0,.42));
}
@media (max-width: 639px) {
  .deal-grid .game-card h3 { font-size: 16px; }
}
@media (min-width: 640px) {
  .deal-grid { grid-template-columns: repeat(3, minmax(0, 188px)); gap: 16px 14px; }
  .deal-grid .game-card h3 { font-size: 18px; }
}
@media (min-width: 860px) {
  .deal-grid { grid-template-columns: repeat(5, minmax(0, 210px)); gap: 20px 16px; }
  .deal-face { padding: 14px; }
  .deal-grid .game-card h3 { font-size: 20px; }
  .deal-desc { font-size: 12px; }
}
@media (min-width: 1100px) {
  .deal-grid { grid-template-columns: repeat(5, minmax(0, 220px)); }
}

/* Desktop + tablet: one-screen lobby, cards scale to the leftover height */
@media (min-width: 640px) {
  #app.lobby-page {
    overflow: hidden;
    height: 100%;
    max-height: var(--app-vh, 100dvh);
  }
  #app.lobby-page .lobby.deal {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: 10px 20px 8px;
  }
  #app.lobby-page .lobby.deal .blurb {
    margin: 0 0 8px;
    flex-shrink: 0;
    font-size: clamp(12px, 1.5vh, 15px);
  }
  #app.lobby-page .deal-grid {
    flex: 1 1 0;
    min-height: 0;
    width: min(100%, 960px);
    margin-inline: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: clamp(6px, 1.2vh, 16px) clamp(8px, 1vw, 16px);
    align-content: stretch;
    justify-items: center;
  }
  #app.lobby-page .deal-grid .game-card {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    container-type: size;
  }
  #app.lobby-page .deal-face {
    width: min(100%, calc(100cqh * 5 / 7.1));
    height: min(100%, calc(100cqi * 7.1 / 5));
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 5 / 7.1;
    padding: clamp(6px, 1.1cqh, 14px) clamp(6px, 4cqi, 14px);
  }
  #app.lobby-page .deal-mark {
    width: clamp(28px, 26cqi, 54px);
    height: clamp(28px, 26cqi, 54px);
  }
  #app.lobby-page .deal-grid .game-card h3 {
    font-size: clamp(12px, 8.4cqi, 20px);
  }
  #app.lobby-page .deal-grid .game-card .en {
    font-size: clamp(10px, 5.6cqi, 13px);
  }
  #app.lobby-page .deal-desc {
    font-size: clamp(9px, 5cqi, 12px);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  #app.lobby-page .lobby-drag-hint {
    flex-shrink: 0;
    margin: 6px 0 0;
    font-size: 12px;
  }
  #app.lobby-page .site-legal {
    flex-shrink: 0;
    margin: 4px 0 0;
  }
}
@media (min-width: 860px) {
  #app.lobby-page .deal-grid {
    width: min(100%, 1240px);
    grid-template-columns: repeat(10, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
  #app.lobby-page .deal-grid .game-card {
    grid-column: span 2;
  }
  #app.lobby-page .deal-grid .game-card:nth-child(6) {
    grid-column: 2 / span 2;
  }
}
@media (min-width: 640px) and (max-height: 700px) {
  #app.lobby-page .lobby.deal .blurb { display: none; }
  #app.lobby-page .deal-desc { display: none; }
}

html[data-theme="white"] .deal-paper {
  background-color: color-mix(in srgb, var(--accent) 12%, #d2c19a);
}
html[data-theme="white"] .deal-grid .game-card.live .deal-face {
  box-shadow: none;
}
}
.gulf-wave {
  display: block;
  height: 10px;
  width: 100%;
  background-color: var(--accent);
  -webkit-mask: var(--gulf-wave) repeat-x center / 96px 12px;
  mask: var(--gulf-wave) repeat-x center / 96px 12px;
  opacity: 0.7;
  pointer-events: none;
}
.gulf-wave-short {
  width: 112px;
  max-width: 40%;
  margin: 0 0 12px;
  opacity: 0.85;
}
.ico {
  width: 18px; height: 18px; display: block;
}
.btn-icon .ico { width: 18px; height: 18px; }
.header-actions .btn-icon .ico { width: 18px; height: 18px; }
.lang-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0; line-height: 1;
}
.lang-btn .ico { width: 16px; height: 16px; }
.lang-btn .lang-code {
  font-size: 8px; font-weight: 800; letter-spacing: 0.04em; line-height: 1;
  color: var(--accent);
}
.lang-pop {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  z-index: 40;
  display: flex; flex-direction: column; gap: 4px;
  min-width: 148px;
  padding: 8px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
}
.lang-pop .chip { width: 100%; justify-content: flex-start; }

.featured-slot { margin: 0 0 14px; }
.game-grid { display: grid; gap: 12px; user-select: none; }
.game-card.featured {
  padding: 18px 16px 16px;
  padding-inline-start: 52px;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
}
.game-card.featured h3 { font-size: 22px; padding-inline-end: 8px; }
.game-card.featured .pill {
  background: color-mix(in srgb, var(--accent) 28%, transparent);
  color: var(--accent);
}
@media (min-width: 640px) { .game-grid:not(.deal-grid) { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) {
  .game-grid:not(.deal-grid) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .game-card.featured { grid-column: span 2; min-height: 168px; }
}
@media (min-width: 1100px) {
  .game-grid:not(.deal-grid) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 640px) { .game-grid:not(.deal-grid) { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) {
  .game-grid:not(.deal-grid) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .game-card.featured { grid-column: span 2; min-height: 160px; }
}
@media (min-width: 1100px) {
  .game-grid:not(.deal-grid) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .game-card.featured { grid-column: span 2; }
}

.seat-diagram {
  display: flex; flex-direction: column; gap: 8px;
  margin: 12px 0 16px; padding: 12px;
  border: 1px solid var(--border); border-radius: 14px;
  background: color-mix(in srgb, var(--felt, #143) 18%, var(--surface));
}
.sd-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; justify-items: center; }
.seat-diagram span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 64px; padding: 6px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 800;
}
.seat-diagram .us { background: color-mix(in srgb, var(--team-us) 22%, transparent); color: var(--team-us); }
.seat-diagram .them { background: color-mix(in srgb, var(--team-them) 22%, transparent); color: var(--team-them); }
.seat-diagram .you { box-shadow: 0 0 0 2px var(--team-us); }
.sd-felt { color: var(--muted) !important; background: transparent !important; font-weight: 600 !important; }
.sd-gap { visibility: hidden; }

.last-trick { display: flex; flex-direction: column; gap: 12px; }
.lt-win { font-size: 16px; font-weight: 800; text-align: center; }
.lt-win.team-us { color: var(--team-us); }
.lt-win.team-them { color: var(--team-them); }
.lt-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.lt-seat { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; }
.lt-seat.win { color: var(--warn); }

.bk-stats { display: flex; flex-direction: column; gap: 8px; }
.st-head, .st-row {
  display: grid; grid-template-columns: 1fr 64px 64px; gap: 8px; align-items: center;
  font-size: 13px; font-weight: 700;
}
.st-row.wide { grid-template-columns: 1fr auto; }
.st-head { color: var(--muted); font-size: 11px; }
.st-row { border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.st-row b { text-align: center; font-variant-numeric: tabular-nums; }
.pin-btn { display: none; }
.drag-handle {
  position: absolute; inset-inline-start: 4px; top: 8px;
  width: 40px; height: 44px; border: 0; padding: 0; margin: 0;
  display: grid; place-items: center;
  color: var(--muted); opacity: 0.7; z-index: 3;
  cursor: grab; touch-action: none; background: transparent;
  border-radius: 10px;
}
.drag-handle .ico { width: 16px; height: 20px; pointer-events: none; }
.game-card:hover .drag-handle, .game-card.dragging .drag-handle { opacity: 1; background: color-mix(in srgb, var(--fg) 8%, transparent); }
.game-card.dragging { opacity: 0.38; cursor: grabbing; }
.drag-ghost {
  position: fixed; z-index: 80; pointer-events: none !important;
  opacity: 0.95 !important; transform: rotate(2deg) scale(1.03);
  box-shadow: 0 18px 40px rgba(0,0,0,.38);
  margin: 0; right: auto;
}
.lobby-drag-layer {
  position: fixed; inset: 0; z-index: 80; pointer-events: none;
  overflow: hidden; direction: ltr;
}
.lobby-drag-layer .deal-face { visibility: visible !important; }
.lobby-drag-hint {
  margin: -6px 0 14px; font-size: 12px; font-weight: 600; color: var(--muted);
}
.game-card {
  position: relative; border-radius: 16px; border: 1px solid var(--border);
  background: var(--surface); padding: 14px; padding-inline-start: 48px; text-align: start;
  box-shadow: 0 8px 24px rgba(0,0,0,.18); cursor: pointer; color: inherit;
}
.game-card.soon { opacity: 0.7; cursor: default; }
.game-card h3 { margin: 0; font-size: 18px; padding-inline-end: 4px; }
.game-card .en { font-size: 12px; font-weight: 600; color: var(--muted); }
.game-card .seats { margin-top: 10px; font-size: 12px; color: var(--muted); }
.pills {
  position: absolute; inset-inline-end: 10px; top: 10px;
  display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end;
  max-width: 46%; pointer-events: none; z-index: 2;
}
.pill {
  border-radius: 999px; padding: 2px 8px; font-size: 10px; font-weight: 800;
  background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent);
  white-space: nowrap;
}
.pill.soon { background: color-mix(in srgb, var(--muted) 20%, transparent); color: var(--muted); }
.play-chip {
  display: inline-flex; margin-top: 12px; border-radius: 10px;
  padding: 8px 12px; font-size: 13px; font-weight: 800;
  background: var(--accent); color: var(--accent-fg);
}
.play-chip.ghost {
  background: var(--surface-2); color: var(--fg);
  border: 1px solid var(--border);
  cursor: pointer;
}
.game-card.soon .play-chip { background: var(--surface-2); color: var(--muted); }
.game-card.live {
  box-shadow: 0 8px 24px rgba(0,0,0,.18), 0 0 0 1px color-mix(in srgb, var(--success) 45%, transparent);
}
.deal-grid .game-card,
.deal-grid .game-card.live,
.deal-grid .game-card.soon,
.deal-grid .game-card.dragging {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none;
  opacity: 1;
}
.pill.exp {
  background: color-mix(in srgb, var(--warn) 22%, transparent);
  color: var(--warn);
}
.pill.live {
  background: color-mix(in srgb, var(--success) 22%, transparent);
  color: var(--success);
}
.game-card-actions {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center;
}
.game-card-actions .play-chip { margin-top: 0; }
.game-card::after {
  content: "";
  display: block;
  height: 8px;
  margin-top: 12px;
  background-color: var(--accent);
  -webkit-mask: var(--gulf-wave) repeat-x center / 72px 10px;
  mask: var(--gulf-wave) repeat-x center / 72px 10px;
  opacity: 0.42;
  pointer-events: none;
}

.brand-entry { margin: -8px 0 16px; }
.brand-page { padding: 8px 14px 40px; max-width: 720px; }
.brand-kicker {
  margin: 0 0 4px; font-size: 11px; font-weight: 800; letter-spacing: 0.18em;
  color: var(--accent); text-transform: uppercase;
}
.brand-kicker::after {
  content: "";
  display: block;
  width: 96px;
  height: 8px;
  margin-top: 8px;
  background-color: var(--accent);
  -webkit-mask: var(--gulf-wave) no-repeat center / 96px 10px;
  mask: var(--gulf-wave) no-repeat center / 96px 10px;
  opacity: 0.85;
}
.brand-page h2 { margin: 0 0 8px; font-size: 22px; }
.brand-verdict {
  border: 1px solid var(--border); background: var(--surface); border-radius: 14px;
  padding: 12px 14px; margin: 0 0 18px;
}
.brand-verdict h3 { margin: 0 0 8px; font-size: 13px; color: var(--accent); }
.brand-verdict ul { margin: 0; padding-inline-start: 18px; }
.brand-verdict li { font-size: 13px; line-height: 1.5; margin: 0 0 6px; }
.logo-grid { display: grid; gap: 16px; }
.logo-card {
  border: 1px solid var(--border); background: var(--surface); border-radius: 16px;
  padding: 12px; overflow: hidden;
}
.logo-card.rec { outline: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.logo-card header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; position: relative; }
.logo-card h3 { margin: 0; font-size: 15px; }
.logo-n {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px;
  border-radius: 999px; background: var(--accent); color: var(--accent-fg);
  font-size: 11px; font-weight: 800;
}
.logo-note { margin: 0 0 10px; font-size: 12px; color: var(--muted); line-height: 1.45; }
.logo-row { display: grid; gap: 8px; }
.logo-row.wide { grid-template-columns: 1fr; }
.logo-row.icons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 640px) {
  .logo-row.wide { grid-template-columns: 1fr 1fr; }
  .logo-row.wide .logo-stage:nth-child(3) { grid-column: 1 / -1; }
}
.logo-stage {
  border-radius: 12px; padding: 18px 16px; min-height: 108px;
  display: grid; place-items: center;
  direction: ltr; unicode-bidi: isolate;
}
.logo-stage svg { width: 100%; height: 80px; max-height: none; display: block; direction: ltr; unicode-bidi: isolate; }
.logo-row.icons .logo-stage svg { width: 72px; height: 72px; max-height: 72px; }
.brand-foot { margin: 18px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }

.modal-bg {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.55); padding: 16px;
}
.modal {
  width: min(480px, 100%); max-height: min(88dvh, 720px); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.4);
  display: flex; flex-direction: column; min-height: 0;
}
.modal-wide { width: min(640px, 100%); max-height: min(90dvh, 820px); }
.modal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-shrink: 0; }
.modal-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.modal .changelog { max-height: none; overflow: visible; }
.modal-h h2 { margin: 0; font-size: 18px; }
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.theme-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 2px solid color-mix(in srgb, var(--tb-accent) 50%, transparent);
  border-radius: 14px; padding: 12px 8px 10px;
  background: var(--tb-bg, var(--surface));
  color: var(--tb-fg, #fff);
  font-size: 12px; font-weight: 800; text-align: center;
  min-height: 78px;
}
.theme-btn.on {
  box-shadow: 0 0 0 2px var(--tb-accent);
  border-color: var(--tb-accent);
}
.theme-dot {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--tb-fg) 35%, transparent);
}
.theme-lab { line-height: 1.2; }
.theme-btn.light { color: #0f172a; }
.theme-btn.light .theme-dot { border-color: rgba(15, 23, 42, 0.25); }
.opt-col { display: flex; flex-direction: column; gap: 8px; }
.opt-col .chip { text-align: start; justify-content: flex-start; white-space: normal; line-height: 1.35; padding: 10px 12px; }
.lang-row, .opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2);
  color: var(--fg); padding: 8px 12px; font-size: 13px; font-weight: 700;
}
.chip.on { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.chip.sk { min-width: 72px; justify-content: center; display: inline-flex; align-items: center; }
.chip.sk[data-skill="1"].on { background: var(--surface-2); color: var(--muted); border-color: var(--border); }
.chip.sk[data-skill="2"].on { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); color: var(--accent); border-color: var(--accent); }
.chip.sk[data-skill="3"].on { background: color-mix(in srgb, var(--warn) 22%, var(--surface)); color: var(--warn); border-color: var(--warn); }
.chip.sk[data-skill="4"].on { background: color-mix(in srgb, var(--danger) 22%, var(--surface)); color: var(--danger); border-color: var(--danger); }
.chip.sk[data-skill="5"].on { background: #1e1b4b; color: #c4b5fd; border-color: #8b5cf6; }
.skill-chip {
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--accent); font-size: 11px; font-weight: 800; padding: 6px 10px; min-height: 36px;
}
.skill-chip[data-skill="1"] { color: var(--muted); }
.skill-chip[data-skill="2"] { border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); }
.skill-chip[data-skill="3"] { border-color: color-mix(in srgb, var(--warn) 65%, transparent); color: var(--warn); }
.skill-chip[data-skill="4"] { border-color: color-mix(in srgb, var(--danger) 55%, transparent); color: var(--danger); }
.skill-chip[data-skill="5"] {
  border-color: #8b5cf6; color: #c4b5fd;
  background: color-mix(in srgb, #5b21b6 35%, var(--surface));
}
.name-row { display: flex; gap: 8px; align-items: center; }
.name-row input, .name-field {
  flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-deep); color: var(--fg);
  font-size: 15px; font-family: inherit; text-align: center;
}
.name-row input:focus, .name-field:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.name-overlay {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.78); padding: 20px;
}
.name-overlay.hidden { display: none; }
.name-card {
  width: min(340px, 100%);
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  border-radius: 20px; padding: 28px 24px; text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.name-card h2 { margin: 0 0 8px; font-size: 22px; }
.name-card p { margin: 0 0 16px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.name-card .name-field { width: 100%; margin-bottom: 12px; }
.hint { font-size: 11px; color: var(--muted); margin: 0 0 8px; line-height: 1.4; }
.opt-note { font-size: 11px; color: var(--muted); margin: 0 0 12px; line-height: 1.4; }
#card-preload {
  position: fixed; left: 0; top: 0; width: 0; height: 0;
  overflow: hidden; pointer-events: none; opacity: 0;
  clip-path: inset(50%);
}
#card-preload img { width: 0; height: 0; }

.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; border-bottom: 1px solid var(--border);
  flex-shrink: 0; flex-wrap: wrap;
  position: relative;
}
.toolbar-tools { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }
.scores { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; align-items: center; }
.score-chip {
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  padding: 4px 10px; font-size: 12px; font-weight: 800;
}
.scores .hand-open-chip {
  padding: 4px 10px;
  font-size: 12px;
  box-shadow: none;
}
.score-chip {
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  padding: 4px 10px; font-size: 12px; font-weight: 800;
}
.score-chip.us { color: var(--team-us); }
.score-chip.them { color: var(--team-them); }
.score-chip.warn { color: var(--warn); }
.iframe-wrap { flex: 1; min-height: 0; }
.iframe-wrap iframe { width: 100%; height: 100%; border: 0; background: var(--bg); min-height: 70dvh; }

@media (max-width: 859px) {
  .desk-only { display: none !important; }
}
@media (min-width: 860px) {
  .phone-only { display: none !important; }
}
html[data-layout="tablet-land"] #app.table-view .header { display: none; }
html[data-layout="tablet-land"] .phone-only { display: grid !important; }
html[data-layout="tablet-land"] .header { padding: 6px 10px 12px; }
html[data-layout="tablet-land"] .brand-mark,
html[data-layout="tablet-land"] .brand-mark svg { width: 32px; height: 32px; }
html[data-layout="tablet-land"] .btn-icon { width: 36px; height: 36px; min-width: 36px; min-height: 36px; }
html[data-layout="tablet-land"] .table-stage.view-baloot .phone-only[data-act="show-tracker"] { display: none !important; }

.gcp-toast {
  position: fixed; left: 50%; bottom: 88px; z-index: 80;
  transform: translateX(-50%) translateY(12px);
  background: var(--surface); color: var(--fg);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 16px; font-size: 13px; font-weight: 700;
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
  max-width: min(420px, calc(100vw - 24px));
  text-align: center; opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.gcp-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

.score-hist-empty { text-align: center; color: var(--muted); margin: 20px 0; }
.score-hist-scroll { overflow-x: auto; }
.score-hist-table {
  width: 100%; border-collapse: collapse; font-size: 13px; text-align: center;
}
.score-hist-table th, .score-hist-table td {
  border-bottom: 1px solid var(--border); padding: 8px 6px; vertical-align: middle;
}
.score-hist-table th { color: var(--muted); font-weight: 600; font-size: 12px; }
.score-hist-start td { color: var(--muted); font-style: italic; }
.score-now { font-weight: 700; color: var(--fg); }
.score-delta { font-size: 11px; color: var(--muted); }
.score-delta.delta-down { color: var(--success); }
.score-delta.delta-up { color: var(--danger); }
.score-hist-table small { color: var(--muted); font-size: 10px; }

.bk-score { display: flex; flex-direction: column; gap: 12px; }
.bk-score-tot {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.bk-tot {
  border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 12px; display: flex; align-items: baseline; justify-content: space-between;
}
.bk-tot span { font-size: 12px; font-weight: 800; color: var(--muted); }
.bk-tot b { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.bk-tot.us { border-color: color-mix(in srgb, var(--team-us) 45%, var(--border)); }
.bk-tot.us b, .bk-score-s .us { color: var(--team-us); }
.bk-tot.them { border-color: color-mix(in srgb, var(--team-them) 45%, var(--border)); }
.bk-tot.them b, .bk-score-s .them { color: var(--team-them); }
.bk-score-meta { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; }
.bk-book-wrap { overflow: auto; max-height: min(52vh, 440px); }
.bk-book-wrap.slim { overflow-x: hidden; max-height: none; }
.bk-book {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.bk-book.slim { font-size: 11px; table-layout: fixed; }
.bk-book.slim th, .bk-book.slim td { padding: 4px 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-book.slim td.got { overflow: visible; text-overflow: clip; }
.bk-book .bk-res { font-size: 10px; color: var(--muted); font-weight: 700; max-width: 9em; white-space: normal; }
.bk-book {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.bk-book th, .bk-book td {
  padding: 6px 7px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.bk-book th { font-size: 11px; font-weight: 800; color: var(--muted); position: sticky; top: 0; background: var(--surface); }
.bk-book td.us { color: var(--team-us); font-weight: 800; }
.bk-book td.them { color: var(--team-them); font-weight: 800; }
.bk-book tr.made td.got { color: var(--success); font-weight: 800; }
.bk-book tr.fell td.got { color: var(--danger); font-weight: 800; }
.bk-book tr.kout { background: color-mix(in srgb, var(--warn) 10%, transparent); }
.bk-book .kout-flag { font-size: 10px; padding: 1px 6px; }
.kout-flag {
  background: color-mix(in srgb, var(--warn) 22%, transparent);
  color: var(--warn); border-radius: 999px; padding: 1px 8px;
}

.help-article { text-align: start; font-size: 13.5px; line-height: 1.55; color: var(--fg); }
.help-article h3 {
  margin: 16px 0 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.04em;
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  padding-bottom: 5px;
}
.help-article h3:first-child { margin-top: 0; }
.help-article p { margin: 0 0 8px; }
.help-article ul { margin: 0 0 10px; padding-inline-start: 1.25em; }
.help-article li { margin: 0 0 5px; }
.help-tip, .help-warn {
  margin: 8px 0 0; padding: 8px 12px; border-radius: 10px;
  font-size: 12.5px; line-height: 1.45;
}
.help-tip {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}
.help-warn {
  background: color-mix(in srgb, var(--warn) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
}
.help-ver { font-size: 11px; color: var(--muted); margin: 16px 0 0; }

.ex-sum-row {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin: 10px 0; flex-wrap: wrap; font-size: 14px;
}
.ex-sum-row .muted { color: var(--muted); font-size: 13px; }
.ex-card { font-weight: 800; font-size: 18px; }
.ex-card.red { color: var(--danger); }

.victory-overlay {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(0, 0, 0, 0.78);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  animation: victoryFadeIn 0.35s ease-out;
}
@keyframes victoryFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.victory-card {
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg) 100%);
  border: 2px solid var(--accent);
  border-radius: 24px;
  padding: 28px 22px 22px;
  text-align: center;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 35%, transparent), 0 20px 40px rgba(0,0,0,0.5);
  animation: victoryPop 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
  position: relative;
}
.victory-card.you-win {
  border-color: var(--warn);
  box-shadow: 0 0 70px color-mix(in srgb, var(--warn) 40%, transparent), 0 20px 40px rgba(0, 0, 0, 0.5);
}
.victory-card.you-lose {
  border-color: color-mix(in srgb, var(--danger) 55%, var(--muted));
  background: linear-gradient(165deg, color-mix(in srgb, var(--surface) 72%, #1a2234) 0%, var(--bg) 100%);
  box-shadow: 0 0 56px color-mix(in srgb, var(--danger) 22%, transparent), 0 20px 40px rgba(0, 0, 0, 0.55);
}
.victory-card.you-tie {
  border-color: var(--muted);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.45);
}
.victory-card.you-lose .victory-title { color: color-mix(in srgb, var(--danger) 55%, var(--muted)); }
.victory-card.you-lose .victory-detail { color: var(--danger); }
.victory-card.you-tie .victory-title { color: var(--muted); }
.vic-art {
  position: relative;
  height: 108px;
  margin: 0 0 6px;
  overflow: hidden;
  color: var(--warn);
}
.vic-art.lose { color: color-mix(in srgb, var(--muted) 70%, var(--danger)); }
.vic-art.tie { color: var(--muted); }
.vic-svg { width: 168px; height: 108px; display: block; margin: 0 auto; }
.vic-suits text {
  font-size: 28px;
  font-weight: 800;
  fill: currentColor;
}
.vic-suits .red { fill: var(--danger); }
.vic-confetti, .vic-rain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.vic-confetti i, .vic-rain i {
  position: absolute;
  display: block;
  left: calc(6% + var(--i) * 7.4%);
  top: -12px;
  animation: vicFall 1.7s ease-in infinite;
  animation-delay: calc(var(--i) * -0.13s);
}
.vic-confetti i {
  width: 7px;
  height: 11px;
  border-radius: 1px;
  background: var(--warn);
}
.vic-confetti i:nth-child(3n) { background: var(--success); width: 6px; height: 6px; border-radius: 50%; }
.vic-confetti i:nth-child(3n+1) { background: var(--accent); transform: rotate(18deg); }
.vic-rain i {
  width: 1.5px;
  height: 16px;
  border-radius: 1px;
  background: color-mix(in srgb, var(--muted) 65%, transparent);
  animation-name: vicRain;
  animation-duration: 1.15s;
  animation-timing-function: linear;
  opacity: 0.7;
}
@keyframes vicFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translateY(108px) rotate(140deg); opacity: 0; }
}
@keyframes vicRain {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 0.7; }
  100% { transform: translateY(120px); opacity: 0; }
}
.kout-celeb-mask.lose, .victory-overlay.lose {
  background: rgba(6, 10, 18, 0.86);
}
@media (prefers-reduced-motion: reduce) {
  .vic-confetti i, .vic-rain i { animation: none; opacity: 0.35; }
}
.victory-confetti {
  position: absolute;
  inset: 10px 12px auto;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  font-size: 22px;
  line-height: 1;
}
.victory-confetti span { animation: victoryBounce 0.9s ease infinite alternate; }
.victory-confetti span:nth-child(2) { animation-delay: 120ms; }
.victory-confetti span:nth-child(3) { animation-delay: 240ms; }
.victory-confetti span:nth-child(4) { animation-delay: 360ms; }
@keyframes victoryPop {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.victory-burst { font-size: 48px; line-height: 1; margin-bottom: 8px; animation: victoryBounce 0.8s ease infinite alternate; }
@keyframes victoryBounce {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}
.victory-title {
  font-size: 13px; font-weight: 800; letter-spacing: 0.18em;
  color: var(--warn); margin-bottom: 6px; text-transform: uppercase;
}
.victory-name {
  font-size: 30px; font-weight: 800; color: var(--fg);
  margin-bottom: 8px; line-height: 1.15; word-break: break-word;
}
.victory-detail { font-size: 20px; font-weight: 800; color: var(--success); margin-bottom: 4px; }
.victory-sub { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.victory-standings {
  background: color-mix(in srgb, var(--fg) 6%, transparent);
  border-radius: 12px; padding: 12px; font-size: 14px; color: var(--fg);
  line-height: 1.7; margin-bottom: 18px; text-align: start;
}
.victory-standings.tx-ranks {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  line-height: 1.3;
}
.vic-row {
  display: grid;
  grid-template-columns: 1.6em 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 10px;
}
.vic-row.win {
  background: color-mix(in srgb, var(--success) 18%, transparent);
}
.vic-rank {
  font-weight: 900;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.vic-row.win .vic-rank { color: var(--success); }
.vic-who {
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: start;
}
.vic-pts {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 16px;
}
.vic-pts.up { color: var(--success); }
.vic-pts.down { color: var(--danger); }
.victory-actions { display: flex; flex-direction: column; gap: 8px; }
.victory-actions .btn { width: 100%; min-height: 44px; justify-content: center; }
@media (prefers-reduced-motion: reduce) {
  .victory-burst, .victory-card, .victory-overlay { animation: none; }
}
@media (max-width: 639px) {
  .header { padding: 8px 8px 14px; gap: 6px; }
  .brand h1 { font-size: 15px; }
  .toolbar { padding: 6px 6px; gap: 4px; }
  .toolbar .btn { padding: 6px 10px; font-size: 12px; min-height: 36px; }
  .modal { width: 100%; max-height: min(92dvh, 720px); padding: 12px; }
  .victory-card { padding: 22px 16px 16px; }
  .victory-name { font-size: 26px; }
}

.logo-row.tall .logo-stage { min-height: 168px; padding: 22px 18px; }
.logo-row.tall .logo-stage svg { height: 136px; }
.header-mock-wrap { margin: 0 0 10px; }
.header-mock {
  display: flex; align-items: center; gap: 12px;
  background: #0f172a; color: #f8fafc;
  border-radius: 14px; padding: 12px 14px;
  border: 1px solid #334155;
}
.header-mock .hm-icon { width: 44px; height: 44px; flex-shrink: 0; }
.header-mock .hm-icon svg { width: 44px; height: 44px; display: block; }
.header-mock .hm-names { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.header-mock .hm-names strong { font-size: 18px; font-weight: 800; line-height: 1.15; }
.header-mock .hm-names em { font-style: normal; font-size: 12px; color: #7dd3fc; font-weight: 600; }
.brand-split {
  margin: 22px 0 10px; font-size: 11px; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.arba-mock {
  display: block; cursor: pointer; text-align: inherit;
  width: 100%; border: 1px solid var(--border); background: var(--surface);
  color: inherit; font: inherit;
  border-radius: 16px; padding: 14px 14px 10px; margin: 0 0 18px;
  outline: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.arba-mock .arba-mock-h {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.arba-mock .arba-mock-h h3 { margin: 0; font-size: 15px; }
.arba-mock .arba-stage {
  border-radius: 12px; padding: 16px 12px 8px; background: #0f172a;
  direction: ltr; unicode-bidi: isolate;
}
.arba-mock .arba-stage svg { width: 100%; height: 120px; display: block; }
.arba-mock .arba-hint { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.lobby-brand { margin: 18px 0 0; text-align: center; }
.lobby-brand button {
  background: none; border: 0; color: var(--muted); font: inherit; font-size: 12px;
  font-weight: 600; cursor: pointer; padding: 8px; text-decoration: underline;
  text-underline-offset: 3px;
}
.lobby-brand button:hover { color: var(--accent); }

.site-legal {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 16px; margin: 18px 0 8px; font-size: 12px; color: var(--muted);
}
.site-legal .legal-contact {
  background: none; border: 0; padding: 0; font: inherit; font-size: 12px;
  font-weight: 700; color: var(--accent); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.site-legal .legal-contact:hover { color: var(--fg); }
#gcp-modal .site-legal { margin: 16px 0 0; justify-content: flex-start; }
.contact-addr {
  margin: 12px 0 0; font-size: 14px; font-weight: 700; word-break: break-all;
  color: var(--fg);
}

.consent-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.consent-bar p {
  margin: 0;
  flex: 1 1 220px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.consent-actions .btn {
  min-height: 44px;
  min-width: 44px;
  padding: 10px 14px;
}

