.domino-shell {
  --bg: #0B1014;
  --panel: #14181E;
  --elev: #1A1F26;
  --line: rgba(246,237,216,.14);
  --cream: #F6EDD8;
  --ink: #140C0E;
  --muted: #8F988F;
  --action: #FF2D6A;
  --action-ink: #FFF5F8;
  --felt: #163834;
  --felt-mid: #1B4541;
  --felt-deep: #0E221F;
  --status: #3CB86A;
  --tile: #F6EDD8;
  --tile-hi: #FFF8E8;
  --tile-lo: #E8DCC0;
  --clip: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  --clip-sm: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  --display: "Paytone One", "Lalezar", sans-serif;
  --ui: "Readex Pro", sans-serif;
  --hand-h: 132px;
  --tile-w: 56px;
  --tile-h: 28px;
  --hud-h: 52px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }

.domino-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  background:
    radial-gradient(ellipse at 50% 40%, #12181C 0%, #0B1014 62%, #07090B 100%);
}
.status {
  display: none;
  height: 22px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 14px 2px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.film {
  height: 14px;
  background: #07090B;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-shrink: 0;
}
.film i {
  width: 12px;
  height: 8px;
  background: var(--bg);
  border-radius: 1px;
  box-shadow: inset 0 0 0 1px rgba(246,237,216,.1);
}
.hud {
  height: var(--hud-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  flex-shrink: 0;
}
.hud img { width: 28px; height: 28px; display: block; flex-shrink: 0; }
.word { display: flex; flex-direction: column; line-height: 1; }
.word b { font-family: var(--display); font-size: 18px; font-weight: 400; }
.word i { font-family: "Lalezar", sans-serif; font-style: normal; font-size: 11px; color: var(--muted); margin-top: 1px; }
.crumb { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.crumb strong { color: var(--cream); }
.pills { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.hud .match-score { display: none; }
.pill {
  background: var(--elev);
  border: 1px solid var(--line);
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  clip-path: var(--clip-sm);
  white-space: nowrap;
}
.pill span { color: var(--muted); font-weight: 500; margin-left: 5px; }
.lang {
  display: flex;
  border: 1px solid var(--line);
  background: var(--elev);
  clip-path: var(--clip-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.lang button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-family: var(--ui);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .06em;
  padding: 5px 8px;
}
.lang button.on { background: var(--cream); color: var(--ink); }

.stage {
  position: relative;
  flex: 1;
  min-height: 0;
}
.felt {
  position: absolute;
  inset: 8px 14px 8px 14px;
  background: radial-gradient(ellipse at 50% 45%, var(--felt-mid) 0%, var(--felt) 48%, var(--felt-deep) 100%);
  border-radius: 18px;
  box-shadow:
    0 0 0 2px var(--cream),
    0 0 0 7px #07090B,
    0 0 0 8px rgba(246,237,216,.22),
    0 18px 40px rgba(0,0,0,.45);
  overflow: hidden;
}
.felt-logo {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 132px;
  height: 132px;
  transform: translate(-50%, -50%);
  opacity: .16;
  pointer-events: none;
  z-index: 1;
}
.felt-logo svg { width: 100%; height: 100%; display: block; }

/* ---- tiles ---- */
.tile {
  position: relative;
  display: flex;
  background: linear-gradient(180deg, var(--tile-hi) 0%, var(--tile) 55%, var(--tile-lo) 100%);
  color: var(--ink);
  border: 1px solid rgba(20,12,14,.2);
  box-shadow: 0 1px 0 #C9B896, 0 4px 10px rgba(0,0,0,.35);
  flex-shrink: 0;
  clip-path: polygon(3px 0, 100% 0, 100% calc(100% - 3px), calc(100% - 3px) 100%, 0 100%, 0 3px);
}
.tile.h { width: var(--tile-w); height: var(--tile-h); flex-direction: row; }
.tile.v { width: var(--tile-h); height: var(--tile-w); flex-direction: column; }
.spine {
  background: rgba(20,12,14,.28);
  flex-shrink: 0;
  position: relative;
}
.tile.h .spine { width: 1.5px; height: 100%; }
.tile.v .spine { height: 1.5px; width: 100%; }
.spine::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(20,12,14,.4);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px rgba(246,237,216,.35);
}
.half {
  flex: 1;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  padding: 12%;
  place-items: center;
}
.half i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
}
.chain .half i {
  width: max(2px, calc(var(--tile-h) * 0.18));
  height: max(2px, calc(var(--tile-h) * 0.18));
}
.half[data-n="1"] .p5,
.half[data-n="2"] .p1, .half[data-n="2"] .p9,
.half[data-n="3"] .p1, .half[data-n="3"] .p5, .half[data-n="3"] .p9,
.half[data-n="4"] .p1, .half[data-n="4"] .p3, .half[data-n="4"] .p7, .half[data-n="4"] .p9,
.half[data-n="5"] .p1, .half[data-n="5"] .p3, .half[data-n="5"] .p5, .half[data-n="5"] .p7, .half[data-n="5"] .p9,
.half[data-n="6"] .p1, .half[data-n="6"] .p3, .half[data-n="6"] .p4, .half[data-n="6"] .p6, .half[data-n="6"] .p7, .half[data-n="6"] .p9 {
  background: var(--ink);
}

.tile.back {
  background:
    repeating-linear-gradient(135deg, #1A2A28 0 5px, #142220 5px 10px);
  border: 1px solid rgba(246,237,216,.18);
  box-shadow: 0 3px 8px rgba(0,0,0,.35);
  align-items: center;
  justify-content: center;
  color: var(--cream);
}
.tile.back .backmark {
  font-family: "Lalezar", sans-serif;
  font-size: 11px;
  color: rgba(246,237,216,.5);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

/* ---- chain ---- */
.chain {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.chain .row {
  display: flex;
  align-items: center;
}
.chain .row.bot {
  flex-direction: row-reverse;
}
.end-hit {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--action);
  box-shadow: 0 0 0 4px rgba(255,45,106,.28), 0 0 16px rgba(255,45,106,.55);
  background: rgba(255,45,106,.15);
  flex-shrink: 0;
  margin: 0 3px;
  z-index: 3;
}

/* ---- seats & chrome on the stage ---- */
.seat {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 6px;
}
.seat.north { top: 8px; left: 50%; transform: translateX(-50%); flex-direction: column; }
.seat.south { bottom: 6px; left: 50%; transform: translateX(-50%); flex-direction: column-reverse; display: none; }
.seat.west { left: 10px; top: 52%; transform: translateY(-50%); }
.seat.east { right: 10px; top: 52%; transform: translateY(-50%); flex-direction: row-reverse; }
.av {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--panel);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  clip-path: var(--clip-sm);
  position: relative;
}
.seat.you .av, .seat.south .av { border-color: var(--cream); }
.who { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.nm {
  background: rgba(7,9,11,.72);
  border: 1px solid var(--line);
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 92px;
  clip-path: var(--clip-sm);
}
.seat { overflow: hidden; }
.seat.west, .seat.east { max-width: 96px; }
.seat.north .nm { max-width: 160px; }
.mini { display: flex; gap: 2px; margin-top: 2px; }
.mini .tile.back { width: 14px; height: 22px; }
.mini.vert { flex-direction: column; }
.seat .count {
  display: none;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: rgba(7,9,11,.78);
  border: 1px solid var(--line);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  line-height: 16px;
  clip-path: var(--clip-sm);
}
.domino-shell.compact-seats .seat .mini { display: none; }
.domino-shell.compact-seats .seat .count { display: block; }
.domino-shell.compact-seats .seat.north .nm { display: block; }
.scores {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  background: rgba(7,9,11,.78);
  border: 1px solid var(--line);
  padding: 8px 10px;
  min-width: 132px;
  clip-path: var(--clip-sm);
}
.scores h3 {
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 4px;
}
.scores table { width: 100%; border-collapse: collapse; }
.scores th, .scores td { text-align: right; padding: 2px 0 2px 8px; font-size: 16px; font-weight: 700; }
.scores th { font-size: 9px; letter-spacing: .1em; color: var(--muted); font-weight: 700; text-align: right; }
.scores td.who, .scores th.who { text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); padding-left: 0; padding-right: 12px; }
.scores tr.us td { color: var(--cream); }
.scores tr.us td.who { color: var(--cream); font-weight: 700; }
.yard {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(7,9,11,.78);
  border: 1px solid var(--line);
  padding: 7px 10px;
  clip-path: var(--clip-sm);
  overflow: visible;
  max-width: none;
  white-space: nowrap;
}
.yard-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.yard-label {
  font-size: 10px;
  letter-spacing: 0;
  color: #8F988F;
  font-weight: 700;
  white-space: nowrap;
  overflow: visible;
}
.yard-count { font-weight: 700; font-size: 16px; }
.yard-stack { position: relative; width: 28px; height: 44px; }
.yard-stack .tile.back { position: absolute; width: 22px; height: 40px; }
.yard-stack .tile.back:nth-child(1) { left: 0; top: 0; }
.yard-stack .tile.back:nth-child(2) { left: 3px; top: 2px; }
.yard-stack .tile.back:nth-child(3) { left: 6px; top: 4px; }
.yard b { display: block; font-size: 11px; font-weight: 700; }
.yard span { font-size: 10px; color: var(--muted); font-weight: 600; }
.turn {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  background: var(--action);
  color: var(--action-ink);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 400;
  padding: 7px 16px 6px;
  clip-path: var(--clip-sm);
  box-shadow: 3px 4px 0 rgba(0,0,0,.5);
  white-space: nowrap;
  max-width: calc(100% - 16px);
}
button.turn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--display);
  color: var(--action-ink);
}
.hint-sub {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  font-size: 11px;
  font-weight: 600;
  color: var(--cream);
  background: rgba(7,9,11,.65);
  border: 1px solid var(--line);
  padding: 3px 8px;
  clip-path: var(--clip-sm);
  white-space: nowrap;
}

/* ---- hand rack ---- */
.dock {
  height: var(--hand-h);
  flex-shrink: 0;
  background: #07090B;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 12px 10px;
  z-index: 8;
}
.dock .hint {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
  text-align: center;
  min-height: 16px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.dock .hint strong { color: var(--cream); }
.dock-cta {
  height: 40px;
  min-height: 40px;
  width: min(320px, 100%);
  margin: 0 0 8px;
  background: var(--action);
  color: var(--action-ink);
  border: 0;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 400;
  clip-path: var(--clip-sm);
  box-shadow: 3px 4px 0 rgba(0,0,0,.55);
  flex-shrink: 0;
}
.rack {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  min-height: 44px;
  padding: 14px 8px 0;
  flex: 1;
}
.rack .tile.v { width: 48px; height: 88px; cursor: default; }
.rack .tile.playable {
  transform: translateY(-6px);
  box-shadow: 0 0 0 3px var(--action), 0 8px 18px rgba(255,45,106,.28), 0 4px 10px rgba(0,0,0,.35);
}
.rack .tile.sel {
  transform: translateY(-12px);
  box-shadow: 0 0 0 3px var(--action), 0 12px 22px rgba(255,45,106,.4), 0 4px 10px rgba(0,0,0,.4);
}
.rack .half i { width: 6px; height: 6px; }

/* ---- overlay (blocked / round end) ---- */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 9;
  background: rgba(7,9,11,.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.sheet {
  width: min(560px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  clip-path: var(--clip);
  padding: 16px 18px 18px;
  box-shadow: 6px 8px 0 rgba(0,0,0,.55);
}
.sheet h2 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}
.sheet h2 small {
  display: block;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 4px;
}
.sheet p.lead { font-size: 13px; font-weight: 600; color: var(--muted); margin: 8px 0 12px; }
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.team {
  background: var(--elev);
  border: 1px solid var(--line);
  padding: 10px;
  clip-path: var(--clip-sm);
}
.team.win { border-color: var(--cream); }
.team h4 { font-size: 11px; font-weight: 700; margin-bottom: 6px; }
.team h4 em { font-style: normal; color: var(--muted); font-weight: 600; margin-left: 6px; }
.hand-line { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.hand-line .nm { background: transparent; border: 0; padding: 0; flex: 0 0 auto; min-width: 64px; }
.hand-line .pips { margin-left: auto; font-weight: 700; font-size: 14px; }
.hand-line .tile.h { width: 36px; height: 18px; }
.hand-line .tile.v { width: 18px; height: 36px; }
.hand-line .half i { width: 3px; height: 3px; }
@media (min-width: 701px) {
  .dock-cta { display: none; }
  body.has-cta { --hand-h: 132px; }
}

.award {
  margin-top: 12px;
  width: 100%;
  height: 48px;
  min-height: 44px;
  background: var(--action);
  color: var(--action-ink);
  border: 0;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 400;
  clip-path: var(--clip);
  box-shadow: 4px 5px 0 rgba(0,0,0,.55);
}
.num { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---- portrait (Duo folded / open portrait, 382x580, 385x571, 669x867) ---- */
@media (max-width: 700px) and (min-height: 500px) {
  .domino-shell { --hand-h: 148px; --tile-w: 40px; --tile-h: 20px; --hud-h: 44px; }
  .status { display: flex; }
  .felt { inset: 8px 8px 8px 8px; }
  .felt-logo { width: 72px; height: 72px; }
  .av { width: 28px; height: 28px; min-width: 28px; font-size: 12px; }
  .nm { font-size: 9px; padding: 1px 5px; }
  .seat .count { height: 16px; min-width: 16px; line-height: 14px; font-size: 9px; }
  .who { gap: 2px; }
  .seat.west, .seat.east { top: 46%; }
  .seat.north { top: 4px; flex-direction: row; align-items: center; gap: 4px; }
  .seat.north .who { flex-direction: row; align-items: center; gap: 4px; }
  .felt > .felt-scores { display: none; }
  .hud .match-score { display: flex; }
  .scores { top: 8px; right: 8px; bottom: auto; min-width: 0; padding: 5px 7px; }
  .scores h3, .scores thead { display: none; }
  .scores td { font-size: 13px; padding: 1px 0 1px 8px; }
  .seat.north { left: 50%; }
  .domino-shell { /* seats compact via .compact-seats in JSX on narrow felt */ }
  .seat.west .mini, .seat.east .mini, .seat.north .mini { display: none; }
  .seat .count { display: block; }
  .yard { top: 8px; left: 8px; bottom: auto; }
  .domino-shell[data-la3ib-domino-mode="1v1"] .seat.north {
    left: auto;
    right: 8px;
    transform: none;
  }
  .pills .pill { display: none; }
  .pills .pill.match-score { display: flex; }
  .crumb { font-size: 11px; max-width: 42vw; overflow: hidden; text-overflow: ellipsis; }
  .word b { font-size: 15px; }
  .hud { gap: 6px; padding: 0 8px; }
  .hud img { width: 22px; height: 22px; }
  .turn { font-size: 15px; padding: 6px 12px 5px; bottom: 10px; }
  .hint-sub { bottom: 46px; font-size: 10px; }
  button.turn { font-size: 15px; }
  .rack { gap: 5px; padding-top: 10px; }
  .rack .tile.v { width: 44px; height: 80px; }
  .av { width: 34px; height: 34px; min-width: 34px; }
  .nm { font-size: 9px; }
  .chain { transform: translate(-50%, -42%) scale(.86); }
  .sheet { padding: 12px 12px 14px; }
  .sheet h2 { font-size: 22px; }
  .teams { grid-template-columns: 1fr; gap: 8px; }
  .overlay { align-items: stretch; padding: 6px; }
  .hand-line .nm { min-width: 58px; font-size: 10px; }
  .overlay .sheet { display: flex; flex-direction: column; }
  body.has-cta { --hand-h: 186px; }
}

/* very tall open portrait: give the felt more room, keep the hand dock */
@media (max-width: 700px) and (min-height: 800px) {
  .domino-shell { --hand-h: 148px; --tile-w: 48px; --tile-h: 24px; }
  .chain { transform: translate(-50%, -50%) scale(1.15); }
  .rack .tile.v { width: 52px; height: 96px; }
}

/* ---- folded landscape (594x368) and other short wide frames ---- */
@media (max-height: 420px) {
  .domino-shell { --hand-h: 78px; --tile-w: 34px; --tile-h: 17px; --hud-h: 34px; }
  .status { display: none !important; }
  .film { height: 8px; }
  .film i { width: 8px; height: 5px; }
  .word i { display: none; }
  .word b { font-size: 14px; }
  .hud { padding: 0 8px; }
  .hud img { width: 20px; height: 20px; }
  .pill { padding: 3px 7px; font-size: 10px; }
  .felt { inset: 4px 8px 4px 8px; }
  .felt-logo { width: 48px; height: 48px; top: 50%; }
  .dock { padding: 2px 8px 4px; }
  .dock .hint { display: none; }
  .dock-cta { display: none !important; }
  .rack { gap: 4px; padding-top: 4px; }
  .rack .tile.v { width: 34px; height: 60px; }
  .rack .half i { width: 4px; height: 4px; }
  body.has-cta { --hand-h: 78px; }
  .seat.north { left: 50%; }
  .seat .mini { display: none; }
  .seat .count { display: block; }
  .seat.north .nm { display: block; }
  .scores h3, .scores thead { display: none; }
  .scores { min-width: 0; padding: 4px 6px; }
  .scores td { font-size: 12px; }
  .hint-sub { display: none; }
  .turn { font-size: 14px; padding: 4px 10px 3px; bottom: 6px; }
  .av { width: 28px; height: 28px; min-width: 28px; font-size: 12px; }
  .nm { font-size: 9px; padding: 1px 5px; }
  .chain { transform: none; }
  .sheet h2 { font-size: 18px; }
  .award { height: 40px; font-size: 18px; }
  .overlay { padding: 6px; }
}

.domino-shell, .domino-shell * { box-sizing: border-box; }
.domino-shell {
  width: 100%;
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--ui);
  display: flex;
  flex-direction: column;
}
.domino-lobby { overflow: auto; }
.tile.playable { box-shadow: 0 0 0 2px #FF2D6A, 0 0 12px rgba(255,45,106,.45), 0 1px 0 #C9B896, 0 4px 10px rgba(0,0,0,.35); cursor: pointer; }
.tile.sel { outline: none; transform: translateY(-6px); }
.dock-cta, .felt-cta {
  appearance: none; border: 0; cursor: pointer;
  background: #FF2D6A; color: #FFF5F8;
  font-family: var(--ui); font-weight: 700; font-size: 13px;
  padding: 8px 16px; clip-path: var(--clip-sm);
}
.overlay-end {
  position: absolute; inset: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  background: rgba(7,9,11,.55);
}
.overlay-card {
  background: #14181E; border: 1px solid rgba(246,237,216,.18);
  padding: 18px 20px; min-width: 220px; max-width: 92%;
  clip-path: var(--clip);
  text-align: center;
}
.overlay-card h2 { font-family: var(--display); font-weight: 400; font-size: 22px; margin-bottom: 8px; }
.overlay-card p { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.domino-lobby {
  height: 100%; display: flex; flex-direction: column;
  padding: 12px 16px; gap: 12px; background: var(--bg);
}
.domino-lobby h2 { font-family: var(--display); font-weight: 400; font-size: 22px; }
.domino-lobby .row { display: flex; flex-wrap: wrap; gap: 8px; }
.domino-lobby button.opt, .domino-lobby button.back {
  appearance: none; border: 1px solid rgba(246,237,216,.18);
  background: #1A1F26; color: #F6EDD8; font-family: var(--ui);
  font-weight: 600; font-size: 13px; padding: 10px 14px;
  clip-path: var(--clip-sm); cursor: pointer;
}
.domino-lobby button.opt.on { background: #F6EDD8; color: #140C0E; }
.domino-lobby button.cta { background: #FF2D6A; color: #FFF5F8; border: 0; }
.domino-lobby input.code {
  background: #1A1F26; color: #F6EDD8; border: 1px solid rgba(246,237,216,.18);
  padding: 10px 12px; font-size: 16px; font-family: var(--ui); min-width: 140px;
}

.felt .felt-cta { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 6; }
.felt .hint-sub, .hint-sub { pointer-events: none; }
.end-hit { appearance: none; padding: 0; }

.yard { letter-spacing: 0; }
.yard div { letter-spacing: 0; }

@media (max-height: 420px) {
  .seat.north .mini, .seat.east .mini, .seat.west .mini { display: none; }
  .seat .count { display: block; }
  .seat.north .nm { display: block; }
  .seat.north { top: 4px; }
  .felt-logo { top: 50%; width: 48px; height: 48px; }
}
@media (max-height: 620px) and (min-width: 680px) {
  .seat.north .mini { display: none; }
  .seat.north .count { display: block; }
  .felt-logo { top: 50%; width: 72px; height: 72px; }
}
@media (max-width: 700px) {
  .seat.west, .seat.east { max-width: 80px; overflow: hidden; }
  .seat.west .who, .seat.east .who { align-items: center; max-width: 100%; overflow: hidden; }
  .seat.west .nm, .seat.east .nm { max-width: 76px; }
  .seat.north .nm { max-width: 36vw; }
}

.end-mark, .end-hit {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  box-sizing: border-box;
  background: #FF2D6A;
  color: #FFF5F8;
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  border: 0;
  clip-path: var(--clip-sm);
  pointer-events: auto;
}

/* Leave a right-edge gutter so the felt score cannot sit on the east seat (long names + minis). */
@media (min-width: 800px) and (min-height: 500px) {
  .felt > .felt-scores { right: 72px; } /* score-east-gutter */
}
