/* Wide layout — desktop browser and iPad landscape (≥1024px), from Sidepot Desktop.dc.html.
   Builds on styles.css; every rule here is scoped to d-* classes or body.wide. */

@keyframes dScIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes dDeal { from { opacity: 0; transform: translateY(-54px) rotate(-10deg) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes dChipUp { from { opacity: 0; transform: translateY(14px) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes dGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(232, 197, 120, 0.4), 0 0 18px rgba(232, 197, 120, 0.1); }
  50% { box-shadow: 0 0 0 1px rgba(232, 197, 120, 0.9), 0 0 30px rgba(232, 197, 120, 0.28); }
}
@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ---------- shell ---------- */
body.wide, body.wide .stage { background: #0c0908; }
body.wide ::selection { background: #c9a227; color: #241a10; }

body.wide .app {
  max-width: none;
  box-shadow: none;
  --table-w: 820px;
  --table-h: 480px;
  --rail-w: 320px;
}

/* iPad landscape sizing */
@media (max-width: 1299px) {
  body.wide .app { --table-w: 700px; --table-h: 440px; --rail-w: 280px; }
}

.d-screen { position: absolute; inset: 0; }
.d-page {
  top: 74px;
  overflow: auto;
  background: radial-gradient(80% 60% at 50% 0%, #2a1e18 0%, #1b1513 55%, #120e0c 100%);
}
.d-page.mount { animation: dScIn 0.34s ease both; }
.d-page--quick.mount { animation-duration: 0.32s; }
.d-page--center { display: flex; padding: 40px; }
.d-page--center > .d-wrap { margin: auto; }

.d-wrap { margin: 0 auto; display: flex; flex-direction: column; }
.d-eyebrow { font-size: 11px; }
.d-field { display: flex; flex-direction: column; gap: 11px; }
.d-step { display: flex; align-items: center; gap: 16px; }
.d-lede { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.d-lede--sm { font-size: 14.5px; }
.d-display-lg { font-size: 46px; line-height: 1.1; }
.d-display-md { font-size: 38px; }

/* ---------- top chrome ---------- */
.d-chrome {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 74px;
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #2c211b;
  background: rgba(12, 9, 8, 0.55);
  z-index: 3;
}
.d-chrome__left { display: flex; align-items: center; gap: 26px; min-width: 0; }
.d-brand {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.24em;
  color: var(--gold-head);
}
.d-chrome__room { display: flex; align-items: center; gap: 12px; }
.d-chrome__div { width: 1px; height: 22px; background: var(--line); }
.d-chrome__title { font-size: 13.5px; color: var(--muted-3); }
.d-chrome__right { display: flex; align-items: center; gap: 16px; }
.d-chrome__stack { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--cream-3); font-variant-numeric: tabular-nums; }
.d-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 5px 13px 5px 5px;
  background: rgba(255, 255, 255, 0.03);
}
.d-pill:hover { border-color: var(--gold-deep); }
.d-pill__av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 700;
}
.d-pill__name { font-size: 13px; color: var(--cream-2); }

/* ---------- sign in ---------- */
.d-signin { display: flex; }
.d-signin.mount { animation: fade 0.4s ease both; }
.d-signin__hero {
  flex: 1.15;
  background: radial-gradient(90% 70% at 30% 20%, #3d2c21 0%, #241a14 50%, #120e0c 100%);
  padding: 64px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.d-wordmark-xl { font-size: 17px; letter-spacing: 0.28em; }
.d-signin__copy { display: flex; flex-direction: column; gap: 20px; max-width: 460px; }
.d-display-hero { font-size: 56px; line-height: 1.08; text-wrap: pretty; }
.d-signin__lede { margin: 0; font-size: 16px; line-height: 1.65; color: var(--muted); }
.d-stats { display: flex; gap: 36px; }
.d-stat { display: flex; flex-direction: column; gap: 5px; }
.d-stat b { font-family: var(--serif); font-weight: 400; font-size: 23px; color: var(--gold); }
.d-stat span { font-family: var(--narrow); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }

.d-signin__panel {
  flex: 1;
  background: linear-gradient(#1c1513, #151110);
  border-left: 1px solid #2c211b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 56px;
  gap: 34px;
}
.d-felt-mini {
  width: 240px;
  height: 150px;
  border-radius: 80px / 62px;
  background: radial-gradient(60% 65% at 50% 38%, #1d7454, #14543c 55%, #0c3626);
  box-shadow: inset 0 0 0 5px #2b1a12, inset 0 0 0 6px var(--gold-deep), inset 0 0 40px rgba(0, 0, 0, 0.55), 0 18px 36px rgba(0, 0, 0, 0.5);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.d-felt-mini__mark {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: rgba(201, 162, 39, 0.3);
}
.d-card-mini { width: 44px; height: 62px; }
.d-card-mini .card__s { font-size: 18px; }
.d-card-mini--l { transform: rotate(-7deg); }
.d-card-mini--r { transform: rotate(6deg); }
.d-deal { animation: dDeal 0.6s 0.2s ease both; }
.d-deal--2 { animation-delay: 0.38s; }

.d-signin__ask { display: flex; flex-direction: column; gap: 9px; align-items: center; text-align: center; }
.d-signin__title { font-family: var(--serif); font-size: 26px; color: var(--cream); }
.d-signin__sub { font-size: 13.5px; line-height: 1.6; color: var(--muted-2); max-width: 280px; }
.d-google {
  width: 100%;
  max-width: 330px;
  height: 56px;
  border-radius: 11px;
  font-size: 15px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45), inset 0 1px 0 #fff;
}
.d-signin__fine { font-size: 12px; color: #6f6156; text-align: center; line-height: 1.5; max-width: 290px; }

/* ---------- modals ---------- */
.d-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 5, 0.68);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.d-overlay.mount { animation: fade 0.22s ease both; }
.d-overlay--profile { background: rgba(8, 6, 5, 0.62); z-index: 6; }
.d-overlay--profile.mount { animation-duration: 0.2s; }

.d-modal { display: flex; flex-direction: column; max-width: calc(100% - 48px); }
.d-modal.mount { animation: pop 0.3s cubic-bezier(0.22, 0.8, 0.3, 1) both; }
.d-modal--light {
  width: 420px;
  background: #f7f2e8;
  border-radius: 16px;
  padding: 26px 26px 22px;
  gap: 16px;
  color: var(--ink-2);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}
.d-modal__title { display: flex; flex-direction: column; gap: 4px; }
.d-modal__title b { font-size: 19px; font-weight: 600; }
.d-modal__title span { font-size: 13.5px; color: #6b6257; }
.d-acct { padding: 14px 15px; gap: 14px; }
.d-acct__av { width: 40px; height: 40px; font-size: 13.5px; }
.acct__av--new.d-acct__av { font-size: 18px; }
.d-acct .acct__who b { font-size: 15px; }
.d-acct .acct__who span { font-size: 13px; }
.d-acct__label { font-size: 15px; }
.d-modal__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 2px; }
.d-modal__foot span { font-size: 11.5px; color: #8b8175; line-height: 1.5; max-width: 250px; }
.d-cancel { align-self: auto; margin: 0; font-size: 13.5px; font-weight: 600; }

.d-modal--dark {
  width: 540px;
  background: linear-gradient(#241a15, #191311);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 30px;
  gap: 26px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}
.d-profile__id { gap: 16px; }
.d-profile__av { width: 60px; height: 60px; font-size: 19px; }
.d-profile__who { display: flex; flex-direction: column; gap: 4px; }
.d-profile__name { font-size: 22px; }
.d-profile__mail { font-size: 13px; }
.d-close { margin-left: auto; background: none; border: none; cursor: pointer; font-size: 20px; color: var(--muted-2); }
.d-swatch { width: 46px; height: 46px; font-size: 12.5px; }
.d-profile__row { display: flex; gap: 20px; flex-wrap: wrap; }
.d-field--grow { flex: 1; min-width: 220px; }
.d-toggle { height: 50px; padding: 0 4px; white-space: nowrap; }
.d-modal__save { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.d-modal__save span { font-size: 12px; color: #6f6156; line-height: 1.5; max-width: 280px; }
.d-save { height: 50px; padding: 0 30px; border-radius: 10px; font-size: 15px; }

/* ---------- home ---------- */
.d-wrap--home { max-width: 1020px; padding: 56px 40px; gap: 38px; }
.d-greet { display: flex; flex-direction: column; gap: 12px; }
.d-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.d-grid--rooms { gap: 14px; }
.d-grid--games { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.d-action {
  cursor: pointer;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 28px 26px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.d-action:hover { border-color: var(--gold-deep); }
.d-action--gold { border-color: var(--line-3); background: linear-gradient(rgba(232, 197, 120, 0.16), rgba(232, 197, 120, 0.04)); }
.d-action--gold:hover { border-color: var(--gold-deep); background: linear-gradient(rgba(232, 197, 120, 0.24), rgba(232, 197, 120, 0.06)); }
.d-action__top { display: flex; justify-content: space-between; align-items: center; }
.d-action__title { font-family: var(--serif); font-size: 26px; color: var(--cream); }
.d-action__arrow { font-size: 19px; color: var(--muted-2); }
.d-action--gold .d-action__arrow { color: var(--gold); }
.d-action__body { font-size: 14px; line-height: 1.6; color: var(--muted); }
.d-action--gold .d-action__body { color: var(--muted-3); }

.d-rooms { display: flex; flex-direction: column; gap: 14px; }
.d-rooms__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.d-rooms__note { font-size: 12.5px; color: #6f6156; }
.d-room {
  cursor: pointer;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.d-room:hover { border-color: var(--line-3); background: rgba(232, 197, 120, 0.06); }
.d-room__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.d-room__who { display: flex; flex-direction: column; gap: 5px; }
.d-room__name { font-family: var(--serif); font-size: 19px; color: var(--cream); }
.d-room__meta { font-size: 12.5px; color: var(--muted); }
.d-room__foot { display: flex; align-items: center; gap: 8px; }
.d-face {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--line);
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #e3d2b6;
  margin-right: -8px;
}
.d-room__status { margin-left: 14px; font-size: 12px; }

/* ---------- game picker ---------- */
.d-wrap--game { max-width: 940px; padding: 52px 40px; gap: 30px; }
.d-game {
  cursor: pointer;
  text-align: left;
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.d-game__top { display: flex; justify-content: space-between; align-items: center; }
.d-game__name { font-family: var(--serif); font-size: 29px; color: var(--cream); }
.d-game__tag { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.d-game__cards { display: flex; gap: 7px; }
.d-card-tiny {
  width: 40px;
  height: 56px;
  border-radius: 5px;
  background: linear-gradient(#fdfaf1, #f0e8d6);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.45);
}
.d-card-tiny .card__r { left: 5px; top: 4px; font-size: 13px; }
.d-card-tiny .card__s { right: 5px; bottom: 5px; font-size: 15px; }
.d-game__blurb { font-size: 14px; line-height: 1.6; color: var(--muted); }
.d-game__detail { font-size: 12.5px; color: var(--muted-2); }
.d-continue {
  align-self: flex-start;
  height: 56px;
  padding: 0 42px;
  border-radius: 11px;
  font-size: 15.5px;
  box-shadow: 0 12px 26px rgba(201, 162, 39, 0.2);
}
.d-continue:hover { filter: brightness(1.06); }

/* ---------- join by code ---------- */
.d-wrap--code { width: 100%; max-width: 620px; gap: 26px; }
.d-code__head { display: flex; flex-direction: column; gap: 11px; }
.d-code__entry { position: relative; }
.d-slots { display: flex; gap: 10px; }
.d-slot {
  flex: 1;
  height: 96px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 40px;
  color: var(--cream);
}
.d-caret { width: 2px; height: 40px; background: var(--gold); animation: caret 1.1s step-end infinite; }
.d-code__input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
  border: none;
  background: none;
  color: transparent;
  font-size: 16px;
}
.d-joining { display: flex; align-items: center; gap: 12px; animation: fade 0.2s ease both; }
.d-joining .spinner { width: 17px; height: 17px; }
.d-joining span:last-child { font-size: 14px; color: var(--gold); }
.d-keypad { margin: 0; padding: 6px 0 0; }
.d-key { height: 54px; border-radius: 10px; }
.d-code__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.d-join { height: 54px; padding: 0 34px; border-radius: 11px; font-size: 15px; }
.d-paste {
  height: 54px;
  padding: 0 22px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
  color: var(--muted-3);
}
.d-paste:hover { border-color: var(--gold-deep); }
.d-code__note { font-size: 12.5px; color: #6f6156; }

/* ---------- room ---------- */
.d-wrap--room { max-width: 1120px; padding: 40px 40px 44px; gap: 26px; }
.d-banner {
  position: relative;
  border: 1px solid var(--line-3);
  border-radius: 16px;
  background: linear-gradient(rgba(201, 162, 39, 0.16), rgba(201, 162, 39, 0.03));
  padding: 26px 30px;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.d-banner__code { display: flex; flex-direction: column; gap: 9px; }
.d-banner__value {
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1;
  letter-spacing: 0.2em;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}
.d-banner__meta { display: flex; flex-direction: column; gap: 7px; }
.d-banner__title { font-size: 14px; color: var(--muted-3); }
.d-banner__role { font-size: 12.5px; color: var(--muted-2); }
.d-banner__actions { margin-left: auto; display: flex; gap: 10px; }
.d-copy { height: 48px; padding: 0 22px; border-radius: 10px; font-size: 14px; }
.d-copy:hover { filter: brightness(1.06); }
.d-copy-link {
  height: 48px;
  padding: 0 22px;
  cursor: pointer;
  border: 1px solid var(--line-3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  color: var(--cream-3);
}
.d-copy-link:hover { border-color: var(--gold-deep); }
.d-toast { right: 30px; bottom: -14px; font-size: 12px; padding: 5px 11px; animation-duration: 1.7s; }

.d-lobby__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.d-settings {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.d-settings__head { display: flex; justify-content: space-between; align-items: baseline; }
.d-settings__title { font-family: var(--serif); font-size: 20px; color: var(--cream); }
.d-setting { gap: 10px; }
.d-setting .setting__opts { gap: 8px; }
.d-opt { height: 46px; border-radius: 9px; font-size: 13.5px; }

.d-lobby__side { display: flex; flex-direction: column; gap: 18px; }
.d-seat-you { gap: 15px; border-radius: 14px; background: linear-gradient(rgba(201, 162, 39, 0.13), rgba(201, 162, 39, 0.03)); padding: 18px 20px; }
.d-seat-you__av { width: 48px; height: 48px; font-size: 15px; }
.d-seat-you .seat-you__who { gap: 4px; }
.d-seat-you__name { font-size: 19px; }
.d-badge { font-size: 11px; border-radius: 6px; padding: 6px 11px; }
.d-player { gap: 14px; border-radius: 13px; padding: 14px 16px; }
.d-player .player__av { width: 38px; height: 38px; font-size: 12.5px; }
.d-player .player__who { gap: 3px; }
.d-player .player__name { font-size: 15px; }
.d-player .player__state { font-size: 12px; }
.d-player.enter { animation: dScIn 0.3s ease both; }

.d-lobby__foot { border-top: 1px solid #2c211b; padding-top: 22px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.d-foot-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.d-start { height: 58px; padding: 0 46px; border-radius: 11px; font-size: 16px; box-shadow: 0 12px 28px rgba(201, 162, 39, 0.22); }
.d-start:hover { filter: brightness(1.06); }
.d-foot-note { font-size: 12.5px; color: var(--muted-2); }
.d-waiting { width: auto; gap: 12px; padding: 18px 26px; animation: dGlow 2.2s ease-in-out infinite; }
.d-waiting > span:first-child { font-size: 15px; }
.d-waiting .dots { gap: 5px; }
.d-waiting .dots span { width: 6px; height: 6px; }

/* ---------- table ---------- */
.d-table {
  top: 74px;
  display: flex;
  background: radial-gradient(90% 60% at 50% 0%, #2e211a 0%, #1b1412 52%, #100c0b 100%);
}
.d-table.mount { animation: fade 0.5s ease both; }
.d-table__main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 26px 26px 0; overflow-y: auto; }
.d-table__stage { flex: 1; min-height: calc(var(--table-h) + 20px); display: flex; align-items: center; justify-content: center; }

.d-felt {
  position: relative;
  flex: none;
  width: min(var(--table-w), 100%);
  height: var(--table-h);
  border-radius: 280px;
  background: linear-gradient(#6a2731, #46161d 60%, #340f15);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.08);
}
.d-felt__rail { position: absolute; inset: 16px; border-radius: 266px; background: #2b1a12; box-shadow: inset 0 0 0 2px var(--gold-deep); }
.d-felt__cloth {
  position: absolute;
  inset: 22px;
  border-radius: 260px;
  background: radial-gradient(58% 62% at 50% 36%, #1d7454, #14543c 55%, #0c3626);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.5), inset 0 0 70px rgba(0, 0, 0, 0.6);
}
.d-felt__mark {
  position: absolute;
  left: 0;
  right: 0;
  top: 58%;
  text-align: center;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.46em;
  color: rgba(201, 162, 39, 0.24);
}

.d-seats-top { position: absolute; left: 0; right: 0; top: 44px; display: flex; justify-content: center; gap: 54px; }
.d-seat { width: 120px; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.d-seat__art { position: relative; width: 60px; height: 58px; display: flex; align-items: flex-end; justify-content: center; }
.d-seat__card {
  position: absolute;
  top: 0;
  width: 17px;
  height: 24px;
  border-radius: 3px;
  background: repeating-linear-gradient(135deg, #5c1a22 0 3px, #43121a 3px 6px);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.4);
}
.d-seat__card--l { left: 8px; transform: rotate(-14deg); }
.d-seat__card--r { right: 8px; transform: rotate(12deg); }
.d-ring { width: 46px; height: 46px; border-radius: 50%; padding: 3px; display: flex; flex: none; }
.d-ring > span {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #2e2118;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #f0e3c8;
}
.d-seat__name { font-size: 13.5px; font-weight: 500; color: var(--cream-2); }
.d-seat__stack {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(12, 9, 8, 0.6);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 4px 11px 4px 6px;
}
.d-seat__stack .chip-dot { width: 14px; height: 14px; background: repeating-conic-gradient(#c9a227 0 14deg, #f9f1dc 14deg 28deg); }
.d-seat__stack span:last-child { font-size: 12px; color: var(--cream-3); font-variant-numeric: tabular-nums; }
.d-seat__act { font-family: var(--narrow); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }

/* Centred like the design (50% − 52px), but never above 188px: at the iPad table
   height the design's own offset puts the pot on top of the seat labels. */
.d-middle { position: absolute; left: 0; right: 0; top: max(calc(50% - 52px), 188px); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.d-pot { gap: 11px; }
.d-pot.mount { animation: dChipUp 0.45s ease both; }
.d-pot .chip { width: 34px; height: 34px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.55); }
.d-pot .chip > span { width: 23px; height: 23px; }
.d-pot .chip-stack .chip:not(:first-child) { margin-bottom: -27px; }
.d-pot__label { display: flex; flex-direction: column; gap: 3px; padding-bottom: 3px; }
.d-pot__eyebrow { font-family: var(--narrow); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); }
.d-pot__value { font-family: var(--serif); font-size: 32px; line-height: 1; color: var(--cream); font-variant-numeric: tabular-nums; }

.d-board { display: flex; gap: 8px; }
.d-card-board {
  width: 56px;
  height: 78px;
  border-radius: 6px;
  background: linear-gradient(#fdfaf1, #f0e8d6);
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.5);
}
.d-card-board .card__r { left: 7px; top: 5px; font-size: 18px; }
.d-card-board .card__s { right: 7px; bottom: 6px; font-size: 21px; }
.d-deal-board { animation: dDeal 0.4s ease both; }
.d-card-slot { width: 56px; height: 78px; border-radius: 6px; border: 1px dashed rgba(201, 162, 39, 0.28); }

.d-seats-bottom { position: absolute; left: 0; right: 0; bottom: 34px; display: flex; justify-content: center; gap: 120px; }
.d-seat-pill {
  display: flex;
  align-items: center;
  gap: 11px;
  background: linear-gradient(rgba(18, 13, 11, 0.9), rgba(12, 9, 8, 0.9));
  border: 1px solid var(--line-2);
  border-radius: 26px;
  padding: 6px 15px 6px 6px;
}
.d-seat-pill .d-ring { width: 40px; height: 40px; }
.d-seat-pill .d-ring > span { font-size: 12px; }
.d-seat-pill__who { display: flex; flex-direction: column; gap: 2px; }
.d-seat-pill__name { font-size: 13px; font-weight: 500; color: var(--cream-2); }
.d-seat-pill__stack { font-size: 11.5px; color: var(--cream-3); font-variant-numeric: tabular-nums; }
.d-seat-pill__act { font-family: var(--narrow); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; padding-left: 4px; }

.d-hand { padding: 18px 4px 22px; display: flex; align-items: center; gap: 22px; border-top: 1px solid #2c211b; flex-wrap: wrap; }
.d-hand__mine { display: flex; align-items: center; gap: 16px; }
.d-hole { display: flex; gap: 7px; }
.d-card-hole {
  width: 60px;
  height: 84px;
  border-radius: 7px;
  background: linear-gradient(#fdfaf1, #f0e8d6);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
}
.d-card-hole .card__r { left: 8px; top: 6px; font-size: 20px; }
.d-card-hole .card__s { right: 8px; bottom: 7px; font-size: 23px; }
.d-card-hole:first-child { transform: rotate(-5deg); }
.d-card-hole:last-child { transform: rotate(4deg); }
.d-deal-hole { animation: dDeal 0.5s 0.1s ease both; }
.d-deal-hole.d-deal--2 { animation-delay: 0.22s; }
.d-hand__read { display: flex; flex-direction: column; gap: 6px; }
.d-hand__name { font-family: var(--serif); font-size: 20px; color: var(--cream); }
.d-hand__stack { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--cream-3); font-variant-numeric: tabular-nums; }
.d-hand__stack .chip-dot { width: 16px; height: 16px; }
.d-hand__controls { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.d-turn { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-right: 6px; }
.d-turn .turn-label { font-size: 10.5px; }
.d-turn .turn-clock { width: 110px; }
.d-hand__buttons { display: flex; flex-direction: column; gap: 8px; }
.d-bets { display: flex; gap: 7px; }
.d-bets .bet { flex: none; height: 32px; padding: 0 13px; }
.d-acts { display: flex; gap: 9px; }
.d-acts .act { flex: none; height: 54px; padding: 0 30px; border-radius: 10px; font-size: 15px; }
.d-acts .act--raise { padding: 0 34px; box-shadow: 0 8px 20px rgba(201, 162, 39, 0.24); }

/* Below the iPad design width the hand bar would wrap and push Fold/Call/Raise
   under the fold; stack the turn clock over the buttons instead. */
@media (max-width: 1179px) {
  .d-hand__controls { flex-direction: column; align-items: flex-end; gap: 10px; }
  .d-turn { flex-direction: row; align-items: center; gap: 10px; padding-right: 0; }
}

.d-rail {
  width: var(--rail-w);
  flex: none;
  border-left: 1px solid #2c211b;
  background: rgba(10, 8, 7, 0.55);
  display: flex;
  flex-direction: column;
}
.d-rail__head { padding: 20px 22px 16px; display: flex; flex-direction: column; gap: 5px; border-bottom: 1px solid #2c211b; }
.d-rail__title { font-family: var(--serif); font-size: 18px; color: var(--cream); }
.d-rail__meta { font-size: 12px; color: var(--muted-2); }
.d-rail .tab { padding: 14px 0; font-size: 11px; }
.d-rail .feed { padding: 16px 22px; gap: 11px; }
.d-rail .feed__row { font-size: 13px; }
.d-rail .feed__row.enter { animation: dScIn 0.24s ease both; }
.d-rail .chat-bar { padding: 0 22px 20px; }
.d-rail .chat-bar .input { height: 44px; min-width: 0; }
.d-rail .btn--send { width: 68px; height: 44px; }
.d-leave-wrap { padding: 0 22px 20px; display: flex; }
.d-leave {
  flex: 1;
  height: 44px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  color: var(--muted-3);
}
.d-leave:hover { border-color: var(--gold-deep); }

/* ---------- live play (wide) ---------- */
.d-loading { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--muted); font-size: 14px; background: #161110; }
.d-page.d-loading { background: radial-gradient(80% 60% at 50% 0%, #2a1e18 0%, #1b1513 55%, #120e0c 100%); }
.d-signin-form { width: 100%; max-width: 330px; }
.d-signout { margin: 0; align-self: center; }
.d-modal__save span { flex: 1; }
.d-code__error { font-size: 13.5px; line-height: 1.5; color: #eab7ba; }

.d-seat__shown { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; z-index: 1; }
.d-seat__name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-seat__act { min-height: 13px; white-space: nowrap; }
.d-seat--compact { width: 96px; }
.d-seats-top--compact { gap: 22px; }
.d-seat-pill { position: relative; }
.d-seat-pill__cards { display: flex; gap: 2px; }
.d-seat-pill__act:empty { display: none; }
.d-seat-pill--compact { gap: 8px; padding: 4px 10px 4px 4px; }
.d-seat-pill--compact .d-ring { width: 34px; height: 34px; }
.d-seats-bottom--compact { gap: 40px; }
.teen-info--wide span { font-size: 12px; }
.table-note--wide { font-size: 20px; }

.d-slider { display: flex; align-items: center; width: 150px; margin-left: 4px; }
.d-sit { margin: 0; min-height: 0; min-width: 360px; padding: 12px 16px; flex-direction: row; }
.d-deal-hole.d-deal--3 { animation-delay: 0.34s; }
.d-hand__buttons .reply-prompt { min-width: 380px; }
