/* Euchre HD on the web: the Android app's look (ui/theme/Color.kt and the felt components). */
:root {
  --gold: #EDC95C;
  /* Gold buttons: deeper than the Android #ECCD6C, which looks washed out flat in a browser next to iOS's glass. */
  --gold-button: #D6AA3E;
  --gold-rim: #F5D46A;
  --gold-text-shadow: 0 1px 1px rgba(70, 45, 0, .4);
  --felt-center: #33904F;
  --felt-mid: #216E3B;
  --felt-edge: #124D29;
  --felt-panel: rgba(18, 56, 31, .878);
  --dark-felt: #0F331C;
  --team-them: #9EC2EB;
  --glass-stroke: rgba(255, 255, 255, .2);
  --muted: rgba(255, 255, 255, .8);
  --alert-red: #FF5A52;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--felt-edge);
  color: #fff;
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}
body.at-table { overflow: hidden; overscroll-behavior: none; }
[hidden] { display: none !important; }
a { color: #fff; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.felt, .table-screen {
  background: radial-gradient(ellipse 85% 85% at 50% 42%, var(--felt-center), var(--felt-mid) 55%, var(--felt-edge));
  background-attachment: fixed;
}
.screen { min-height: 100vh; min-height: 100dvh; }

/* Glass icon buttons (Android `GlassIconButton`) */
.glass {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--glass-stroke); background: rgba(18, 56, 31, .81);
  color: #fff; cursor: pointer; padding: 0;
}
.glass:hover { background: rgba(30, 80, 45, .9); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* --- home --- */

.home { position: relative; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.corner { position: absolute; top: calc(12px + env(safe-area-inset-top)); }
.corner.left { left: calc(12px + env(safe-area-inset-left)); }
.corner.right { right: calc(12px + env(safe-area-inset-right)); }
.corner-row { display: flex; gap: 10px; }
a.glass { text-decoration: none; }
.home-column {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center;
  padding: 56px 28px 16px;
}
.spacer { min-height: 12px; }
.spacer.s16 { flex: .16; }
.spacer.s10 { flex: .1; }
.spacer.s20 { flex: .2; }
h1.title { margin: 0; display: flex; flex-direction: column; align-items: center; }
h1.title > span:first-child {
  font-size: min(19vw, 72px, 9dvh); font-weight: 900; letter-spacing: .08em; line-height: 1.05;
  text-shadow: 0 6px 16px rgba(0, 0, 0, .25);
  padding-left: .08em; /* the letter spacing after the last letter */
}
h1.title .friends { color: var(--gold); font-size: 14px; font-weight: 700; letter-spacing: 6px; margin-top: 4px; padding-left: 6px; }

.brand, .actions { display: flex; flex-direction: column; align-items: center; width: 100%; }
/* The fan scales with the height too, so short screens keep room between the cards and the buttons */
.fan {
  --fan-w: min(85vw, 300px, 36dvh);
  position: relative; border: 0; background: none; cursor: pointer;
  width: var(--fan-w); height: calc(var(--fan-w) * .52); margin: 20px 0 calc(var(--fan-w) * .1);
  --fan-card: calc(var(--fan-w) * .37);
}
.fan .card {
  position: absolute; left: 50%; bottom: 0; width: var(--fan-card);
  margin-left: calc(var(--fan-card) / -2 - 8px); margin-bottom: 6px;
  transform-origin: 50% 100%;
  border-radius: 6%; box-shadow: 0 3px 10px rgba(0, 0, 0, .35);
}

.menu-list { width: min(300px, 100%); display: flex; flex-direction: column; gap: 12px; }
.menu-pair { display: grid; grid-template-columns: .8fr 1.2fr; gap: 12px; }
.menu {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; padding: 14px 16px; border-radius: 26px; cursor: pointer;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22);
  color: #fff; text-decoration: none; text-align: center;
}
.menu.prominent { background: var(--gold-button); border: 1.5px solid var(--gold-rim); text-shadow: var(--gold-text-shadow); }
.menu.compact { padding: 10px; }
.menu.small { padding: 10px 16px; width: auto; display: inline-flex; margin-top: 8px; }
.menu:hover:not(:disabled) { filter: brightness(1.07); }
.menu:disabled { opacity: .45; cursor: default; }
.menu-row { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; white-space: nowrap; max-width: 100%; }
.menu-title { overflow: hidden; text-overflow: ellipsis; }
.menu.compact .menu-row { font-size: 15px; }
.menu.compact .menu-row svg { width: 16px; height: 16px; }
.menu-sub { font-size: 13px; font-weight: 600; }
.menu:disabled .menu-sub { font-weight: 500; opacity: .9; }
/* "Signed in as", small and across the width at the bottom (no studio credit, Tod 2026-11-23) */
.who { color: var(--muted); font-size: 13px; text-align: center; max-width: min(520px, 100%); margin: 16px 0 6px; }
.footer { display: flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .6); font-size: 13px; font-weight: 500; }
.footer img { width: 20px; height: 20px; }
.note { color: rgba(255, 255, 255, .45); font-size: 11px; margin: 6px 0 0; }
.note.center { text-align: center; }
.note.privacy { color: rgba(255, 255, 255, .6); font-size: 12px; text-align: center; margin-top: 10px; }
.note.privacy a { color: rgba(255, 255, 255, .85); }

/* Wide screens (desktop, a phone or tablet on its side): two columns, the title and cards beside the menu,
   as the apps lay out home on a wide screen */
@media (min-width: 720px) and (min-aspect-ratio: 5/4) {
  .home-column {
    /* The title and menu centered in the space above; Five Lakes Studio, the privacy line and the release at the bottom */
    display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto auto auto auto; justify-items: center;
    column-gap: 32px; padding: 48px 40px 16px; max-width: 980px; margin: 0 auto;
  }
  .home-column > .spacer { display: none; }
  .brand { grid-column: 1; grid-row: 1; align-self: center; }
  .actions { grid-column: 2; grid-row: 1; align-self: center; }
  .actions .menu-list { width: min(340px, 100%); }
  .fan { --fan-w: min(36vw, 320px, 46dvh); }
  h1.title > span:first-child { font-size: min(9vw, 72px, 15dvh); }
  .who { grid-column: 1 / -1; grid-row: 2; margin-top: 28px; }
  .footer { grid-column: 1 / -1; grid-row: 3; margin-top: 8px; }
  .who:empty + .footer { margin-top: 28px; }
  .note.privacy { grid-column: 1 / -1; grid-row: 4; }
  #note { grid-column: 1 / -1; grid-row: 5; }
}
/* Short phones (iPhone SE): tighter */
@media (max-aspect-ratio: 5/4) and (max-height: 720px) {
  .home-column { padding-top: 48px; }
  .menu-list { gap: 9px; }
  .menu { padding: 10px 16px; }
  .menu.compact { padding: 8px; }
  .who { margin-top: 10px; font-size: 13px; }
  .fan { margin-top: 12px; }
}
/* Phones on their side are short: tighter, and clear of the corner buttons */
@media (min-aspect-ratio: 5/4) and (max-height: 500px) {
  .home-column { padding: 20px 64px 12px; }
  .menu-list { gap: 8px; }
  .menu { padding: 9px 14px; }
  .who { margin-top: 8px; font-size: 12px; }
  .footer { margin-top: 12px; }
}

/* --- Options, How to Play --- */

.page { padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.topbar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; max-width: 640px; margin: 0 auto; }
.topbar h2 { margin: 0; font-size: 20px; }
.page-body { max-width: 640px; margin: 0 auto; padding: 4px 16px 32px; display: flex; flex-direction: column; gap: 14px; }
.panel-card {
  background: var(--felt-panel); border: 1px solid var(--glass-stroke); border-radius: 18px; padding: 14px 16px;
}
.panel-card h3 { margin: 4px 0 10px; font-size: 17px; color: var(--gold); }
.panel-card h3 + h3, .panel-card .hint + h3 { margin-top: 18px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); cursor: pointer; }
.switch-row:last-of-type { border-bottom: 0; }
.switch-row input { appearance: none; width: 46px; height: 28px; border-radius: 14px; background: rgba(255, 255, 255, .25); position: relative; cursor: pointer; flex: none; margin: 0; transition: background .2s; }
.switch-row input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch-row input:checked { background: var(--gold); }
.switch-row input:checked::after { transform: translateX(18px); }
.hint, .status { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.row-hint { display: block; margin: 2px 0 0; font-size: 13px; font-weight: 400; }
.status:empty { display: none; }
.who-line { margin: 0 0 8px; font-weight: 600; }
.field-label { display: block; font-weight: 600; margin: 10px 0 6px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
select { font: inherit; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--glass-stroke); background: rgba(255, 255, 255, .12); color: #fff; max-width: 100%; }
select option { color: #000; }
.smallbtn { padding: 8px 14px; border-radius: 12px; border: 1px solid var(--gold-rim); background: var(--gold-button); color: #fff; text-shadow: var(--gold-text-shadow); font-weight: 700; cursor: pointer; }
.smallbtn:disabled { opacity: .5; cursor: default; }
.link { display: inline-block; margin-top: 12px; color: var(--gold); text-decoration: none; font-weight: 600; }
.avatars { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.avatar { padding: 0; border: 2px solid transparent; border-radius: 12px; background: none; cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 10px; }
.avatar.chosen { border-color: var(--gold); box-shadow: 0 0 10px rgba(237, 201, 92, .5); }
.choice-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-weight: 600; }
.segmented { display: inline-flex; border: 1px solid rgba(255, 255, 255, .25); border-radius: 12px; overflow: hidden; }
.segmented button { padding: 7px 12px; border: 0; background: rgba(255, 255, 255, .06); cursor: pointer; font-weight: 600; font-size: 14px; }
.segmented button + button { border-left: 1px solid rgba(255, 255, 255, .25); }
.segmented button.chosen { background: var(--gold-button); text-shadow: var(--gold-text-shadow); }
.cardsets { display: flex; gap: 12px; flex-wrap: wrap; }
.cardset { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 14px; border: 2px solid transparent; background: rgba(255, 255, 255, .06); cursor: pointer; font-weight: 600; }
.cardset.chosen { border-color: var(--gold); background: rgba(237, 201, 92, .12); }
.cardset-cards { display: flex; }
.cardset-cards .card { width: 54px; border-radius: 6%; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.cardset-cards .card + .card { margin-left: -26px; }
.howto p, .howto li { line-height: 1.5; }
.howto ul { padding-left: 20px; margin: 6px 0; }
.howto li::marker { color: var(--gold); }
.red { color: #E85A5A; }

/* An alert (Material AlertDialog on the felt) */
.modal { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; padding: 24px; }
.alert { background: #1d3a27; border-radius: 24px; padding: 22px 22px 10px; max-width: 340px; width: 100%; box-shadow: 0 16px 48px rgba(0, 0, 0, .5); }
.alert h3 { margin: 0 0 12px; font-size: 22px; font-weight: 600; }
.alert p { margin: 0 0 16px; color: var(--muted); }
.alert-buttons { display: flex; justify-content: flex-end; gap: 4px; }
.textbtn { background: none; border: 0; color: var(--gold); font-weight: 600; padding: 10px 12px; border-radius: 20px; cursor: pointer; }
.textbtn:hover { background: rgba(237, 201, 92, .12); }

/* --- the table --- */

.table-screen { position: fixed; inset: 0; overflow: hidden; overflow: clip; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.stage {
  position: absolute;
  inset: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  overflow: hidden;
  overflow: clip;   /* a fanned hand runs off the bottom: focusing a card mustn't scroll the table */
}
.table-screen.short .stage { bottom: 0; }   /* see fitStandalone in table.js */
.stage > * { position: absolute; }
.card {
  display: block; border-radius: 5px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
  -webkit-user-drag: none; user-select: none;
}
.stage img.card { object-fit: fill; }
.moves { transition: left .32s ease, top .32s ease, transform .32s ease; }
.moves.instant { transition: none; }
.ghost { z-index: 90; pointer-events: none; }
.card.played { z-index: 20; }
.card.played.winning { box-shadow: 0 0 10px 3px rgba(237, 201, 92, .7), inset 0 0 0 2.5px var(--gold); outline: 2.5px solid var(--gold); outline-offset: -2.5px; }
.upcard { z-index: 15; }

.handcard { padding: 0; border: 0; background: none; cursor: default; border-radius: 6px; }
.handcard .card { width: 100%; height: 100%; }
.handcard.can { cursor: pointer; }
.handcard.can:hover { transform: translateY(-8px); }
.handcard.dim .card { filter: brightness(.55); }

/* Name capsules (Android `PlayerCapsule`) */
.capsule {
  z-index: 1;   /* under every card, as the apps draw them (backs 2+, up card 15, played 20+, your hand 40+) */ display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 10px; border-radius: 20px;
  background: var(--felt-panel); border: 1px solid var(--glass-stroke);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  white-space: nowrap; transform-origin: 50% 50%;
  transition: border-color .25s, box-shadow .25s;
}
/* The name's glow (iOS EUPlayerCapsuleView): pulsing in the team's color for whose action it is; pulsing red when an
   online game has waited on them a while; a steady red outline when the computer is playing their seat for them */
.capsule { --glow: 237, 201, 92; }
.capsule.them { --glow: 158, 194, 235; }
.capsule.active { border: 1.5px solid rgba(var(--glow), .95); animation: capsuleGlow .9s ease-in-out infinite alternate; }
.capsule.standin { border: 1.5px solid rgba(232, 84, 72, .95); box-shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 0 12px rgba(232, 84, 72, .6); }
@keyframes capsuleGlow {
  from { box-shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 0 12px rgba(var(--glow), .3); }
  to { box-shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 0 14px 2px rgba(var(--glow), .9); }
}
@media (prefers-reduced-motion: reduce) { .capsule.active { animation: none; box-shadow: 0 0 12px rgba(var(--glow), .7); } }
.capsule .pic { flex: none; width: 22px; height: 22px; border-radius: 6px; overflow: hidden; background: #fff; border: 1px solid var(--gold); display: inline-block; }
.capsule .pic.them { border-color: var(--team-them); }
.capsule .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.capsule .nm { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.capsule .dchip { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); color: var(--dark-felt); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.capsule .tchip { flex: none; width: 18px; height: 18px; }
.capsule .alone { flex: none; font-weight: 700; font-size: 14px; white-space: nowrap; }
.capsule .alone[hidden] { display: none; }
.capsule .alonepill { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 2px; border-radius: 999px; background: #fff; color: var(--dark-felt); }
.capsule .alonepill .alone { font-size: 11px; font-weight: 800; letter-spacing: .06em; line-height: 1; text-box: trim-both cap alphabetic; }   /* the capitals on the centre line */
.capsule .alonepill:has(.alone[hidden]) { padding-right: 2px; }
/* A plate short of room (placePlate): everything a little smaller and closer, as on a small iPhone */
.capsule .outpill { flex: none; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
  color: rgba(255, 255, 255, .85); font-size: 10px; font-weight: 800; letter-spacing: .06em; line-height: 1; text-box: trim-both cap alphabetic; padding: 4px 7px; }
.capsule.tight { gap: 4px; padding: 0 7px; }
.capsule.tight .pic { width: 20px; height: 20px; }
.capsule.tight .nm { font-size: 13px; }
.capsule.tight .dchip, .capsule.tight .tchip { width: 16px; height: 16px; font-size: 10px; }
.capsule.tight .alonepill { gap: 3px; padding-right: 6px; }
.capsule.tight .alonepill .alone { font-size: 9.5px; letter-spacing: .03em; }
.die { z-index: 49; background-size: 100% 100%; background-repeat: no-repeat; }
.die.rolling { background-size: 1000% 100%; animation-name: die-roll; animation-timing-function: steps(9); animation-fill-mode: forwards; }
@keyframes die-roll { from { background-position: 0 0; } to { background-position: 100% 0; } }

/* Scoreboard (Android `Scoreboard`) */
.scoreboard {
  z-index: 55; padding: 8px 12px; border-radius: 10px;
  background: var(--felt-panel); border: 1px solid var(--glass-stroke); box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
.scoreboard .row { display: flex; align-items: center; justify-content: space-between; height: 26px; flex-wrap: nowrap; }
.scoreboard .label { font-size: 13px; font-weight: 700; letter-spacing: .5px; }
.scoreboard .label.us { color: var(--gold); }
.scoreboard .label.them { color: var(--team-them); }
.scoreboard .value { font-size: 18px; font-weight: 500; }
.scoreboard .suit { width: 20px; height: 20px; }
.scoreboard .rule { height: 1px; margin: 4px 0; background: rgba(255, 255, 255, .18); }

/* Callout pill (Android `CalloutPill`) and prompts (`WaitingPill`) */
.callout {
  left: 50%; transform: translateX(-50%); z-index: 95;
  display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 22px;
  background: rgba(20, 30, 24, .9); border: 1px solid rgba(237, 201, 92, .6); box-shadow: 0 6px 16px rgba(0, 0, 0, .45);
  font-size: 17px; font-weight: 700; white-space: pre; max-width: calc(100% - 16px);
}
.callout .suit { width: 24px; height: 24px; }
.callout .robot { width: 28px; height: 28px; border-radius: 7px; margin-right: 8px; }
.callout .gold { color: var(--gold); }
.callout .blue { color: var(--team-them); }
.callout .small { font-size: 14px; font-weight: 600; opacity: .75; }
.prompt {
  left: 50%; transform: translateX(-50%); z-index: 65;
  padding: 8px 16px; border-radius: 18px; white-space: nowrap; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis;
  background: var(--felt-panel); border: 1px solid var(--glass-stroke); box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
  font-size: 15px; font-weight: 600;
}

/* A line with buttons over your hand (Android `LayDownBar`): your partner's loner */
.linebar {
  left: 50%; transform: translateX(-50%); z-index: 90; width: min(360px, calc(100% - 24px));
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 10px 14px; border-radius: 22px; font-size: 15px; font-weight: 600;
  background: rgba(15, 51, 28, .92); border: 1px solid rgba(237, 201, 92, .6); box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.ghostbtn { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .22); }
.linebuttons { display: flex; gap: 10px; width: 100%; }
.linebuttons .smallbtn { flex: 1; }
.shade { position: absolute; inset: 0; z-index: 95; background: rgba(0, 0, 0, .35); }
.callout { cursor: pointer; }

/* More Info (Android `LayDownInfo`) */
.panel.info {
  position: absolute; z-index: 96; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(360px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow: auto;
  padding: 16px 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
}
.infotitle { color: var(--gold); font-size: 22px; font-weight: 700; }
.infowhy { color: rgba(255, 255, 255, .85); font-size: 15px; }
.inforesult { font-size: 20px; font-weight: 700; }
.infotally { color: rgba(255, 255, 255, .75); font-size: 13px; font-weight: 500; }
.panel.info .section { margin-top: 6px; }
.inforow { display: flex; align-items: center; gap: 8px; width: 100%; }
.infoname { width: 90px; flex: none; text-align: left; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.infocards { display: flex; gap: 4px; min-width: 0; }
.infocards .card { width: 40px; border-radius: 6%; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.panel.info .smallbtn { margin-top: 6px; min-width: 120px; }

/* Panels (Android `DialogPanel`): dark glass with a faint gold edge */
.panel {
  border-radius: 24px; background: rgba(15, 51, 28, .92); border: 1px solid rgba(237, 201, 92, .35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
}
.panel .abs { position: absolute; }
.trump-panel, .dialog-wrap { z-index: 70; transform-origin: 50% 50%; }
.dialog-wrap .panel.big { position: absolute; }
.panel .title { font-size: 18px; font-weight: 700; text-align: center; }
.panel .title.big { font-size: 20px; }
.panel .title.huge { font-size: 22px; font-weight: 900; display: flex; align-items: center; justify-content: center; gap: 8px; }
.panel .title.huge.gold { color: var(--gold); font-size: 24px; }
.panel .sub { font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .7); text-align: center; }
.panel .rules { font-size: 13px; font-weight: 700; color: var(--gold); text-align: center; }
.panel .goldtext { font-size: 15px; font-weight: 600; color: var(--gold); text-align: center; }
.panel .section { font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: 1.5px; text-transform: uppercase; text-align: center; }
.panel .goldline { background: rgba(237, 201, 92, .6); }
.panel .colhead { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .9); text-align: center; }
.panel .dealer-label { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .9); line-height: 18px; }
.panel .dealer-arrow svg { display: block; }
.combined {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border-radius: 18px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22);
  font-size: 14px; font-weight: 700; cursor: pointer; padding: 0;
}
.combined.prominent { background: var(--gold); border-color: rgba(255, 255, 255, .45); color: var(--dark-felt); }
.combined:hover, .suittile:hover, .passbtn:hover { filter: brightness(1.1); }
.suittile { border-radius: 12px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); padding: 8px; cursor: pointer; }
.suittile img { width: 100%; height: 100%; display: block; }
.passbtn { border-radius: 20px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); font-size: 16px; font-weight: 600; cursor: pointer; }

/* Players on the Game Starting and Game Over panels (Android `DialogPlayerTile`) */
.tile { display: flex; align-items: center; gap: 8px; padding: 0 8px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.tilepic { position: relative; flex: none; width: 54px; height: 54px; }
.tilepic img { width: 54px; height: 54px; border-radius: 11px; object-fit: cover; border: 1px solid rgba(255, 255, 255, .25); display: block; background: rgba(255, 255, 255, .9); }
.tilepic .crown { position: absolute; left: 40px; top: -8px; animation: crown .5s .25s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes crown { from { transform: scale(.1); opacity: 0; } }
.tiletext { min-width: 0; }
.tilename { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tilestyle { display: flex; align-items: center; gap: 3px; color: var(--gold); font-size: 14px; font-weight: 700; }
.tilenote { font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, .62); line-height: 1.25; }
.dialog-buttons { position: absolute; display: flex; gap: 12px; justify-content: center; }
.dialog-buttons .menu { width: auto; min-width: 140px; padding: 12px 20px; }

.panel.achievements { z-index: 75; padding: 14px 16px; }
.panel.achievements .title { margin-bottom: 8px; }
.achrow { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.achrow img { width: 40px; height: 40px; flex: none; }

@media (prefers-reduced-motion: reduce) {
  .moves { transition: none; }
}

/* --- Stats (Android `StatsScreen`) --- */

.topbar.wide, .page-body.wide { max-width: 980px; }
.stat-columns { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 680px) { .stat-columns { grid-template-columns: 1fr 1fr; align-items: start; } }
.stat-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.stat-panel h3 { margin-top: 0; }
.stat-you { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.stat-you img { width: 56px; height: 56px; border-radius: 14px; }
.stat-name { font-size: 24px; font-weight: 700; }
.stat-sub { color: var(--gold); font-size: 15px; font-weight: 600; }
.stat-tiles { display: flex; gap: 10px; }
.stat-tile { flex: 1; text-align: center; padding: 10px 4px; border-radius: 14px; background: rgba(255, 255, 255, .06); }
.stat-value { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-caption { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.stat-barbox { margin-top: 12px; }
.stat-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, .08); gap: 2px; }
.stat-bar span { display: block; min-width: 3px; }
.stat-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, .8); }
.stat-legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.stat-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0 0; font-size: 16px; color: rgba(255, 255, 255, .85); }
.num { font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; }
.subhead { display: flex; justify-content: space-between; margin: 10px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.game-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.game-line { display: flex; align-items: center; gap: 8px; }
.game-result { font-weight: 700; }
.game-result.won { color: #73D980; }
.game-result.lost { color: #FF7F7A; }
.game-tag { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: rgba(237, 201, 92, .18); color: var(--gold); }
.game-who { font-size: 13px; color: rgba(255, 255, 255, .6); margin-top: 2px; }
.game-date { font-size: 13px; color: rgba(255, 255, 255, .6); white-space: nowrap; }
.hint.center { text-align: center; }

/* --- Achievements (Android `AchievementsScreen`) --- */

.ach-count { margin: 0; color: var(--gold); font-weight: 600; text-align: center; }
.ach-list { display: flex; flex-direction: column; gap: 10px; }
.ach-row { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 14px; background: rgba(0, 0, 0, .32); }
.ach-row.locked { opacity: .6; }
.ach-row.locked img { filter: grayscale(1); }
.ach-row img { width: 56px; height: 56px; flex: none; }
.ach-name { font-size: 16px; font-weight: 600; }
.ach-detail { font-size: 13px; color: rgba(255, 255, 255, .7); }
.ach-meta { font-size: 12px; color: var(--gold); margin-top: 2px; }

/* --- Computer Players (Android `ComputerPlayersScreen`) and the seat sheet --- */

.lead { margin: 0; color: rgba(255, 255, 255, .85); font-size: 16px; }
.link-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.link-row > span:first-child { display: flex; flex-direction: column; }
.link-row > span.lr-lead:first-child { display: flex; flex-direction: row; align-items: center; gap: 12px; }   /* beats the column above */
.link-row .lr-lead > span { display: flex; flex-direction: column; }
.link-row .lr-picture { width: 40px; height: 40px; object-fit: contain; flex: none; }
.lr-title { font-weight: 600; }
.lr-detail { font-size: 13px; color: var(--muted); }
.chev { font-size: 20px; font-weight: 700; color: rgba(255, 255, 255, .6); }
.style-cards { display: flex; flex-direction: column; gap: 10px; }
.style-card { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 12px; border-radius: 14px; cursor: pointer;
  border: 2px solid transparent; background: rgba(255, 255, 255, .06); }
.style-card.chosen { border-color: var(--gold); background: rgba(237, 201, 92, .12); }
.style-card img { width: 52px; height: 52px; border-radius: 12px; flex: none; }
.style-title { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.style-title .check { font-size: 12px; background: var(--gold); color: var(--dark-felt); border-radius: 50%; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; }
.style-summary { font-size: 14px; color: rgba(255, 255, 255, .85); margin-top: 2px; }
.style-good { font-size: 13px; color: var(--gold); margin-top: 4px; }
.meters { display: flex; gap: 4px 18px; margin-top: 8px; flex-wrap: wrap; }
.meter { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: rgba(255, 255, 255, .6); }
.meter .dots { display: inline-flex; gap: 3px; }
.meter .dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.meter .dots span.on { background: var(--gold); }
.habit-title { font-weight: 600; margin: 4px 0 8px; }
.capsule.tappable { cursor: pointer; }
.panel.sheet {
  position: absolute; z-index: 121; background: rgba(15, 51, 28, .98); left: 50%; bottom: 12px; transform: translateX(-50%);
  width: min(420px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow: auto;
  padding: 16px; display: flex; flex-direction: column; gap: 6px;
}
.panel.sheet h3 { margin: 0; font-size: 20px; }
.sheet-message { margin: 4px 0 8px; font-size: 14px; color: rgba(255, 255, 255, .85); }
.sheet-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .06); cursor: pointer; text-align: left; }
.sheet-row:hover { background: rgba(255, 255, 255, .1); }
.sheet-row.chosen .sheet-title { font-weight: 700; }
.sheet-row img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.sheet-icon { width: 40px; flex: none; text-align: center; color: var(--gold); font-weight: 700; }
.sheet-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.sheet-title { font-weight: 600; }
.sheet-detail { font-size: 13px; color: rgba(255, 255, 255, .7); }
.sheet-close { align-self: center; margin-top: 6px; min-width: 120px; }

/* --- Game Summary (Android `GameSummaryScreen`) --- */

.summary-view { position: absolute; inset: 0; z-index: 130; overflow: auto; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.summary-view .topbar { flex-wrap: wrap; }
.summary-view .topbar h2 { flex: 1; }
.sum-tabs button { min-width: 92px; }
.sum-headline { font-size: 24px; font-weight: 700; text-align: center; }
.sum-headline.gold { color: var(--gold); }
.sum-detail { color: var(--gold); font-size: 14px; text-align: center; margin-top: 4px; }
.sum-teams { color: rgba(255, 255, 255, .7); font-size: 15px; font-weight: 500; text-align: center; margin-top: 4px; }
.sum-players { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sum-team { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; text-align: center; margin-bottom: 8px; }
.sum-people { display: flex; justify-content: center; gap: 10px; }
.sum-person { display: flex; flex-direction: column; align-items: center; width: 80px; text-align: center; }
.sum-person img { width: 54px; height: 54px; border-radius: 12px; }
.sum-name { font-size: 14px; font-weight: 700; margin-top: 4px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sum-small { font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, .6); }
.sum-small.center { text-align: center; }
.sum-chart { width: 100%; height: auto; display: block; }
.sum-chart .axis { fill: rgba(255, 255, 255, .55); font-size: 11px; font-weight: 500; font-family: ui-monospace, monospace; }
.sum-key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.sum-key.dashed { width: 14px; height: 2px; border-radius: 0; vertical-align: middle; }
.stat-legend .item { display: inline-flex; align-items: center; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 9px; background: rgba(255, 255, 255, .1); }
.sum-roundhead { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }
.gold { color: var(--gold); }
.sum-call { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 15px; font-weight: 500; }
.sum-call img { width: 46px; border-radius: 4px; }
.sum-trump { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.sum-suit { font-size: 17px; font-weight: 700; }
.sum-suit.red { color: #FF5C5C; }
.panel-card .rule { height: 1px; background: rgba(255, 255, 255, .12); margin: 12px 0; }
.sum-outcome { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sum-outcome > div:first-child { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.sum-result { font-size: 16px; font-weight: 700; }
.sum-score { text-align: center; }
.sum-score .num { font-size: 24px; }
.sum-score .num.us { color: var(--gold); }
.sum-score .num.them { color: #9EC2EB; }
.sum-score .dash { font-size: 20px; font-weight: 700; color: rgba(255, 255, 255, .6); margin: 0 6px; }
.textlink { border: 0; background: none; color: var(--gold); padding: 8px 0 0; cursor: pointer; font-size: 14px; }
.sum-tricks { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.sum-trick { display: flex; align-items: center; gap: 8px; }
.sum-n { width: 16px; text-align: center; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .6); }
.sum-plays { display: flex; gap: 4px; flex: 1; }
.sum-play { width: 48px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; color: rgba(255, 255, 255, .6); text-align: center; }
.sum-play span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sum-play img { width: 40px; border-radius: 4px; border: 2px solid transparent; }
.sum-play.win img { border-color: var(--gold); }
.sum-play.win span { color: var(--gold); font-weight: 700; }
.sum-who { display: flex; flex-direction: column; align-items: center; gap: 2px; }

/* Online at the table: waiting on someone (Android NamePlate alert and timer chip) */
.capsule.waiting { --glow: 232, 84, 72; border: 2px solid rgba(232, 84, 72, .95); animation: capsuleGlow .9s ease-in-out infinite alternate; }
/* The timer chip, in the name plate after the name as the apps show it (it sat outside the plate, 2026-11-24) */
.capsule .wchip { flex: none; font-size: 12px; font-weight: 800; line-height: 18px; padding: 0 7px; border-radius: 9px; background: rgba(232, 84, 72, .95); color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.capsule .wchip { display: inline-flex; align-items: center; gap: 3px; height: 18px; }
.capsule .wchip .wicon { display: inline-flex; align-items: center; justify-content: center; width: 13px; height: 13px; }
.capsule .wchip .wtime:empty { display: none; }   /* away, the countdown run out: just the icon, a circle like D */
.capsule .wchip:has(.wtime:empty) { padding: 0 3px; }
.panel .sub.gold { color: var(--gold); font-weight: 600; }

/* Multi-Player (Android PlayOnlineScreen) */
.two-col { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 680px) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; } }
.two-col .col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.panel-card .menu { width: 100%; margin-top: 12px; }
.button-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.button-pair .menu { margin-top: 12px; }
.panel-card.gold-panel { border: 1.5px solid rgba(237, 201, 92, .7); }
.status-pill { align-self: center; padding: 8px 16px; border-radius: 18px; background: rgba(0, 0, 0, .3); font-size: 14px; text-align: center; }
.status-pill.error { background: rgba(176, 48, 40, .75); }
/* Waiting room: the host's countdown when every seat is taken, and the nudge to start */
.countdown { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px; border-radius: 16px; background: rgba(0, 0, 0, .25); }
.countdown-number { font-size: 56px; font-weight: 800; line-height: 1.1; color: #f4c95d; font-variant-numeric: tabular-nums; animation: countdown-pop 1s ease-out infinite; }
.countdown-label { font-size: 15px; opacity: .85; }
@keyframes countdown-pop { 0% { transform: scale(1.25); opacity: .6; } 30% { transform: scale(1); opacity: 1; } }
.menu.nudge { animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(244, 201, 93, .0); } 50% { box-shadow: 0 0 0 6px rgba(244, 201, 93, .55); } }
.hint.remind { color: #f4c95d; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .countdown-number, .menu.nudge { animation: none; } }
.code-row { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.code-row .menu { width: 110px; margin-top: 0; flex: none; }
.code-box {
  flex: 1; min-width: 0; font: 700 22px/1.2 ui-monospace, Menlo, monospace; letter-spacing: 4px; text-transform: uppercase; text-align: center;
  padding: 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(0, 0, 0, .2); color: #fff;
}
.code-box:focus { border-color: var(--gold); outline: none; }
.code-box::placeholder { color: rgba(255, 255, 255, .3); }
.code-label { text-align: center; font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: 1px; }
.code-big { text-align: center; font: 700 40px/1.2 ui-monospace, Menlo, monospace; letter-spacing: 8px; margin: 6px 0 2px; user-select: all; }
.player-row { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.player-row.tappable { cursor: pointer; border-radius: 8px; }
.player-row.tappable:hover { background: rgba(255, 255, 255, .06); }
.player-row.away .player-name { opacity: .6; }
.player-row.open { color: rgba(255, 255, 255, .5); font-size: 15px; }
.player-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.player-dot.on { background: #5fd07a; }
.name-block { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.player-name { font-weight: 600; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-sub { font-size: 13px; opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-tag { flex: none; font-size: 12px; font-weight: 700; color: var(--gold); border: 1px solid rgba(237, 201, 92, .6); border-radius: 10px; padding: 2px 8px; }
.player-pic { flex: none; width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--team-them); background: #fff; object-fit: cover; }
.player-pic.us { border-color: var(--gold); }
.player-plus { flex: none; width: 40px; height: 40px; border-radius: 10px; border: 1.5px dashed rgba(255, 255, 255, .25); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; color: rgba(255, 255, 255, .35); }
.player-open { flex: 1; }
.alert.seat-form { max-width: 400px; }
.seat-form .sheet-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.seat-form .sheet-row { color: #fff; width: 100%; min-height: 68px; padding: 8px; border-radius: 16px; border: 1.5px solid rgba(255, 255, 255, .12); }
.seat-form .sheet-row.chosen { background: rgba(237, 201, 92, .16); border-color: var(--gold); }
.seat-form .sheet-row.chosen .sheet-icon { color: var(--gold); }
.seat-form .sheet-row:not(.chosen) .sheet-icon { color: rgba(255, 255, 255, .35); }
.seat-form .seat-pic { flex: none; width: 52px; height: 52px; border-radius: 12px; background: #fff; object-fit: cover; }
.team-line { font-size: 16px; font-weight: 600; margin: 4px 0; }
.team-line span:first-child { font-size: 12px; font-weight: 900; margin-right: 10px; }
.team-us { color: var(--gold); }
.team-them { color: var(--team-them); }
.seat-form .button-pair { margin-bottom: 12px; }
.alert-buttons.stacked { flex-direction: column; align-items: stretch; gap: 10px; padding-bottom: 12px; }
.alert-buttons.stacked .menu { width: 100%; padding: 12px 16px; font-size: 16px; font-weight: 700; }
.menu.danger { color: #ffb4a9; border-color: rgba(255, 140, 125, .45); }
.tilename.center { text-align: center; }
.replaced-pic { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; background: rgba(255, 255, 255, .9); border: 1px solid rgba(255, 255, 255, .25); }
.panel .sub.replaced-text { font-size: 13px; color: rgba(255, 255, 255, .85); line-height: 1.35; }
.panel.replaced { position: absolute; z-index: 70; transform-origin: 50% 50%; }
.sheet-row.danger .sheet-title { color: #ff8a80; }
.sheet-buttons { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.dangerbtn { background: rgba(200, 60, 50, .85); border-color: rgba(255, 140, 125, .6); }

/* The table's control bar (Android GlassControlBar) and replay controls (ReplayControls) */
.controlbar { position: absolute; z-index: 60; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 22px; background: rgba(15, 51, 28, .92); border: 1px solid var(--glass-stroke); }
.controlbar .glass.flat { position: static; width: 36px; height: 36px; background: transparent; border: 0; box-shadow: none; }
.controlbar .glass.flat:hover { background: rgba(255, 255, 255, .1); }
.replay { position: absolute; z-index: 62; border-radius: 20px; background: rgba(20, 30, 24, .9); border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.replay-line { position: absolute; left: 56px; right: 56px; top: 6px; text-align: center; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.replay-step { position: absolute; top: 18px; width: 44px; height: 44px; border: 0; border-radius: 22px; background: transparent; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.replay-step:hover { background: rgba(255, 255, 255, .1); }
.replay-step:first-of-type { left: 6px; }
.replay-step:last-of-type { right: 6px; }
.replay-slider { position: absolute; left: 56px; right: 56px; top: 30px; margin: 0; accent-color: var(--gold); }
/* The scrubber drawn here (2026-11-23), so its thumb is the same size everywhere and the chapter marks line up */
.replay-slider { -webkit-appearance: none; appearance: none; height: 22px; background: transparent; cursor: pointer; --pct: 0%; }
.replay-slider::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--gold) var(--pct), rgba(255, 255, 255, .25) var(--pct)); }
.replay-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); }
.replay-slider::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .25); }
.replay-slider::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--gold); }
.replay-slider::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); }
.replay-slider:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 11px; }
.replay-marks { position: absolute; left: 56px; right: 56px; top: 30px; height: 22px; pointer-events: none; }
.replay-marks span { position: absolute; top: 50%; width: 2px; border-radius: 1px; transform: translate(-1px, -50%); }
.replay-marks .trick { height: 10px; width: 1.5px; background: rgba(255, 255, 255, .35); }
.replay-marks .hand { height: 18px; width: 3px; background: var(--gold); transform: translate(-1.5px, -50%); }
.alert p { white-space: pre-line; }
.textbtn.danger { color: #ff8a80; }
.menu.danger { color: #ffb4a9; border-color: rgba(255, 140, 125, .45); }
.nick-box { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .25); color: #fff; font-size: 17px; margin-bottom: 8px; }
.nick-box:focus { outline: none; border-color: var(--gold); }
.error-text { color: #ff8a80; min-height: 1em; }
.nick-row { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.nick-open { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 4px; background: none; border: 0; color: #fff; text-align: left; cursor: pointer; }
.nick-trash { flex: none; width: 40px; height: 40px; border: 0; border-radius: 20px; background: none; color: #ff8a80; cursor: pointer; font-size: 16px; }
.nick-trash:hover, .nick-open:hover { background: rgba(255, 255, 255, .06); }
.options-sections { display: flex; flex-direction: column; gap: 14px; }

/* Past Games (Android PastGamesScreen) */
.topbar-tools { margin-left: auto; display: flex; gap: 4px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip { padding: 6px 14px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .15); color: #fff; font-weight: 600; cursor: pointer; }
.chip.chosen { background: var(--gold-button); border-color: var(--gold-rim); }
.chips-count { margin-left: auto; color: var(--muted); font-size: 13px; }
.month-head { margin: 14px 0 4px; font-size: 13px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .5px; }
button.game-row { width: 100%; text-align: left; font: inherit; color: inherit; background: none; border: 0; border-top: 1px solid rgba(255, 255, 255, .08); cursor: pointer; }
.game-main, .game-who, .game-line { display: flex; }
.game-main { flex-direction: column; min-width: 0; }
button.game-row:hover { filter: brightness(1.15); }
.select-row { display: flex; align-items: center; gap: 10px; border-radius: 12px; cursor: pointer; }
.select-row.chosen { background: rgba(237, 201, 92, .15); }
.select-row input { width: 20px; height: 20px; accent-color: var(--gold); flex: none; margin-left: 6px; }
.select-row .game-row { flex: 1; }
.textbtn.all-games { display: block; margin: 6px auto 0; }
.textbtn:disabled { opacity: .45; cursor: default; }
.game-ach-empty { white-space: pre-line; margin-top: 40px; }

/* A Past Game's replay held in the account site's game page (?embed=replay): no way out of the table */
body.embedded .glass.back { display: none; }

/* "Signed in as Tod Lake" with the player name smaller under it */
.two-line { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.two-line .who-sub { font-size: .82em; opacity: .7; }
.who-line.two-line { align-items: flex-start; }

/* Your Seat: your account */
.seat-account { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 4px 0 12px; font-size: 14px; }
.seat-account dt { opacity: .65; }
.seat-account dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
/* Your Seat (Tod, 2026-11-23): the account in its own card, then Your Seat Shows */
.seat-label { margin: 14px 0 6px 4px; font-size: 12px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: var(--gold); }
.seat-card { margin: 0; border-radius: 14px; background: rgba(0, 0, 0, .18); border: 1px solid rgba(255, 255, 255, .12); }
.seat-card > div { padding: 9px 14px; }
.seat-card > div + div { border-top: 1px solid rgba(255, 255, 255, .09); }
.seat-card dt { font-size: 13px; color: rgba(255, 255, 255, .65); }
.seat-card dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.seat-id { margin-left: 8px; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .6); }
.seat-shows-box { margin-bottom: 10px; }
/* Your Seat Shows: the real names, so it wraps when they don't fit on one line */
.segmented.seat-shows { flex-wrap: wrap; max-width: 100%; }
.segmented.seat-shows button { flex: 1 1 auto; overflow-wrap: anywhere; }
.seat-shows-box .segmented { display: flex; }
.seat-shows-box .segmented button { padding: 9px 8px; font-size: 15px; }
.your-seat .sheet-row, #nicknamesBody .sheet-row { width: 100%; color: #fff; }
#nicknamesBody .choice-row + .sheet-row { margin-top: 12px; }
.account-nick { margin: 10px 0 6px; }
.signed-in-row { display: flex; width: 100%; color: #fff; text-decoration: none; }
.signed-in-row .sheet-icon { font-size: 20px; }
.account-nick .sheet-row { width: 100%; color: #fff; }

/* Past Games: search and Show More (2026-11-23) */
.games-search { padding: 6px 10px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-size: 14px; min-width: 160px; }
.more-games { display: flex; justify-content: center; margin: 12px 0; }
.game-result.unfinished { color: var(--muted); }

/* A live watch link (2026-11-23): LIVE, or Back to Live after stepping back */
.live-badge { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 14px;
  border: 0; background: rgba(0, 0, 0, .55); color: #fff; font: 700 12px/28px system-ui, sans-serif; letter-spacing: .08em; z-index: 6; }
.live-badge.behind { cursor: pointer; letter-spacing: .02em; background: rgba(229, 72, 77, .9); }
.live-badge:disabled { cursor: default; opacity: 1; }
.live-badge .live-dot { width: 8px; height: 8px; border-radius: 50%; background: #e5484d; animation: livePulse 1.6s ease-in-out infinite; }
.live-badge.behind .live-dot { background: #fff; animation: none; }
@keyframes livePulse { 50% { opacity: .35; } }
/* Share This Game */
.share-sheet .share-url { width: 100%; box-sizing: border-box; margin: 10px 0; padding: 8px 10px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(0, 0, 0, .25); color: #fff; font: 13px ui-monospace, monospace; }
.share-sheet .button-pair { display: flex; gap: 8px; justify-content: center; margin-bottom: 8px; }
.share-sheet .danger-text { color: #ff6b66; display: block; margin: 0 auto; }
.share-sheet .share-status:empty { display: none; }

/* Lay Down (2026-11-23): the button by your hand, and the row in Your Seat (grayed out until you can) */
.laydown-btn { position: absolute; z-index: 66; height: 34px; padding: 0 16px; border-radius: 17px; border: 0; cursor: pointer;
  background: var(--gold); color: #1d2a1f; font-weight: 800; font-size: 14px; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); white-space: nowrap; }
.laydown-btn:hover { filter: brightness(1.06); }
.laydown-row { width: 100%; color: #fff; margin-bottom: 10px; }
.laydown-row:disabled { opacity: .45; cursor: default; }
.laydown-row:disabled:hover { background: rgba(255, 255, 255, .06); }

/* A table in a frame that lost its stream: Reconnecting…, or the game isn't available (never the home screen) */
.embed-notice { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 140; padding: 12px 20px;
  border-radius: 16px; background: rgba(15, 51, 28, .94); border: 1px solid var(--glass-stroke); color: #fff; font-weight: 700; font-size: 16px; }
.embed-notice[hidden] { display: none; }
.embed-notice.gone { font-size: 18px; }

/* A win's confetti, over the whole table (table.js confetti) */
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 150; pointer-events: none; }

/* Game Ended Early (a watch link's game that stopped before anyone won) */
.ended-panel { z-index: 70; padding: 16px 18px; box-sizing: border-box; border: 1.5px solid rgba(232, 84, 72, .7); background: rgba(15, 51, 28, .97); }
.ended-panel .ended-body { margin: 6px 0 12px; text-align: center; font-size: 14px; opacity: .85; }
.ended-panel .section { text-align: center; }
.ended-panel .ended-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 2px; font-size: 15px; }
.ended-panel .ended-row.us span { color: var(--gold); }
.ended-panel .ended-row.them span { color: var(--team-them); }

/* A live watch link waiting on a player: how long, counting up (not red: nothing's wrong yet) */

/* "2 watching" on a player's table (watch links), under the scoreboard */
.watching-pill { position: absolute; z-index: 55; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 12px;
  background: rgba(15, 51, 28, .9); border: 1px solid var(--glass-stroke); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.watching-pill[hidden] { display: none; }
