/* Shared page and control skin. Game geometry belongs to table.css. */
@import url('./theme.css');
@import url('./fonts.css');
:root {
  color-scheme: light;
  font-family: var(--club-body-font);
  color: var(--club-ink);
  background: var(--club-page);
}
body {
  background: var(--club-page);
  color: var(--club-ink);
  font-family: var(--club-body-font);
}
h1,
h2,
h3,
.table-wordmark {
  font-family: 'DM Serif Display', 'Noto Sans SC', Georgia, serif;
  font-weight: 400;
  color: var(--club-teal);
}
a {
  color: var(--club-teal);
}
button,
input,
select,
textarea {
  font-family: var(--club-body-font);
}
button,
input,
select,
textarea,
.button,
.entry-primary,
.entry-secondary {
  border-radius: 6px;
}
input,
select,
textarea {
  background: var(--club-paper);
  color: var(--club-ink);
  border: 1px solid var(--club-line);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--club-teal);
  outline-offset: 3px;
}
/* The sound toggle kept the dark table's gold ring; every toggle now sits on a light surface. */
button.sound-toggle:focus-visible {
  outline-color: var(--club-teal);
}
button:disabled {
  opacity: 0.48;
}
/* This heading receives navigation focus for screen readers, not interaction.
   Keep that focus while suppressing Safari's oversized blue heading outline. */
#solo-setup > h1[tabindex='-1']:focus {
  outline: none;
}
.muted,
.fine-print,
.eyebrow {
  color: var(--club-muted);
}
.panel,
.card,
.account-panel,
.lobby,
.room-head,
.lobby-ready,
.session-summary,
.profile-card,
.plan-card {
  background: var(--club-paper);
  color: var(--club-ink);
  border-color: var(--club-line);
  box-shadow: none;
  border-radius: 6px;
}
button.primary,
.primary,
.entry-primary,
.button.primary {
  background: var(--club-teal);
  color: var(--club-paper);
  border-color: var(--club-teal);
}
button.ghost,
.entry-secondary,
.nav button,
.back-link {
  background: var(--club-paper);
  color: var(--club-teal);
  border: 1px solid var(--club-line);
}
/* The wall inspector is a paper dialog, including its remaining/reserved count. */
.wall-middle strong,
.wall-seat-label {
  color: var(--club-teal);
}
.wall-middle span,
.wall-middle small,
.wall-roll {
  color: var(--club-ink);
}
.club-page-header,
.site-header,
.membership-header,
.topbar {
  background: var(--club-page);
  border-color: var(--club-line);
  position: relative;
}
.club-page-header::after,
.topbar::after,
.membership-header::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--club-lattice) 0 12px,
    var(--club-mustard) 12px 24px,
    var(--club-teal) 24px 36px,
    var(--club-paper) 36px 48px
  );
}
.club-page-header .club-brand,
.club-brand {
  color: var(--club-teal);
}
.club-page-header .club-wordmark {
  display: flex;
  padding: 0;
  background: none;
  font:
    400 21px/1.1 'DM Serif Display',
    serif;
}
.club-wordmark > span {
  font: 800 11px/1.4 var(--club-body-font);
  letter-spacing: 0.14em;
  color: var(--club-red);
}
.club-wordmark > strong {
  font-weight: 400;
}
.club-page-header nav a {
  color: var(--club-teal);
  font: 700 14px/1.4 var(--club-body-font);
}
.club-page-header img.brand-logo,
#entry-brand > img.home-brand-logo {
  width: 48px;
  height: 48px;
}
#online-root {
  width: min(1296px, calc(100% - 32px));
  margin: 32px auto;
}
#account-panel,
.lobby {
  border: 1px solid var(--club-line);
  padding: 24px;
}
#account-panel h1,
#play-menu h1 {
  font: var(--club-page-heading);
}
#account-panel p,
.entry-intro {
  color: var(--club-help);
}
#play-menu .play-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
#play-menu .play-choice {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 14px;
  align-content: center;
  text-align: left;
  min-height: 112px;
  padding: 18px;
  background: var(--club-paper);
  color: var(--club-ink);
  border: 1px solid var(--club-line);
  border-radius: 6px;
}
#play-menu .play-choice::before {
  content: attr(data-choice-glyph);
  grid-row: span 2;
  align-self: center;
  display: grid;
  place-items: center;
  width: 40px;
  height: 53px;
  background: var(--club-selection);
  color: var(--club-teal);
  border: 1px solid var(--club-line);
  border-bottom: 4px solid var(--club-lattice);
  border-radius: 4px;
  font:
    700 26px 'Noto Sans SC',
    serif;
}
#play-menu .practice-choice::before {
  background: var(--club-teal);
  color: var(--club-paper);
}
#play-menu .play-choice strong {
  color: var(--club-ink);
  font-size: 18px;
}
#play-menu .play-choice > span {
  color: var(--club-help);
  font-size: 13px;
}
#play-menu .play-choice:hover {
  background: var(--club-selection);
  border-color: var(--club-teal);
}
#play-menu .play-choice a {
  color: inherit;
}
#play-menu .career-choice {
  grid-column: 1 / -1;
  border-color: var(--club-teal);
  border-inline-start-width: 5px;
  background: var(--club-selection);
}
#play-menu .career-choice::before {
  background: var(--club-teal);
  color: var(--club-paper);
}
/* Today's Table's card (dist/today/card.js, behind TODAYS_TABLE_CARD) takes a full row. */
#play-menu .today-choice {
  grid-column: 1 / -1;
}
.continue-playing {
  padding: 16px 18px;
  background: var(--club-selection);
  color: var(--club-ink);
  border: 1px solid var(--club-line);
  border-radius: 6px;
}
.continue-playing button {
  background: var(--club-red);
  color: var(--club-paper);
}
/* online.css gives these buttons the card's own pale green, under this paper text. */
#lobby .continue-playing > button,
#lobby #account-tables > button {
  background: var(--club-red);
  color: var(--club-paper);
  border-color: var(--club-red);
}
#entry-footer,
.membership-footer {
  color: var(--club-muted);
  border-color: var(--club-line);
}
dialog,
#modal,
.table-inspection,
.lesson-inspection {
  color: var(--club-ink);
  background: var(--club-paper);
  border-color: var(--club-line);
}
.dialog-head,
.dialog-content,
.dialog-actions {
  color: var(--club-ink);
}
/* The table dialogs' text was tinted for the old dark theme; on the cream dialog it uses club ink. */
dialog .dialog-content p,
dialog .field,
dialog .check-row,
dialog .seat-input > span,
dialog .stake-table th,
dialog .stake-table td,
dialog .close-btn {
  color: var(--club-help);
}
dialog .dialog-content h3,
dialog summary {
  color: var(--club-teal);
}
/* Home, sign-in and waiting-room disclosures are on cream too, not the old gold for dark felt. */
:is(#lobby, #account-panel, .lobby-details) summary {
  color: var(--club-teal);
}
dialog .field small,
dialog .check-row small {
  color: var(--club-muted);
}
/* Points, tai, dice and hints in the table dialogs were pale tints for the old dark panel. Points use
   the desktop sidebar's pair; the hand result's dark net-change panel keeps its light pair. style.css
   pins .positive, .negative and .rules-note with !important. */
dialog .positive:not(.result-payments *) {
  color: #1f6f66 !important;
}
dialog .negative:not(.result-payments *) {
  color: #a34230 !important;
}
.tai-summary > strong,
.tai-summary small {
  color: var(--club-tai-text);
}
.bonus-detail small {
  color: var(--club-muted);
}
dialog .rules-note {
  color: var(--club-muted) !important;
}
dialog .wall-roll :is(b, i) {
  color: #795a24;
}
.arrange-move > span {
  color: var(--club-help);
}
.table-menu-section,
.mobile-menu-grid > button,
.arrange-options > button {
  background: var(--club-selection);
  color: var(--club-ink);
  border-color: var(--club-line);
}
.sidebar .panel {
  background: var(--club-paper);
}
@media (max-width: 600px) {
  #online-root {
    width: calc(100% - 24px);
    margin: 26px auto;
  }
  #account-panel,
  .lobby {
    padding: 18px;
  }
  #play-menu .play-choices {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  #play-menu .play-choice {
    min-height: 94px;
    padding: 12px;
  }
  .club-page-header {
    width: calc(100% - 24px);
    gap: 8px;
  }
  .club-page-header nav {
    gap: 10px;
  }
}
/* Landing: signed-out visitors get a gentle introduction; signed-in members get
   the four play choices. Visibility follows the existing account controller. */
#account-panel:not(.signed-in) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 12px 48px;
  padding: 40px 0;
  background: none;
  border: 0;
}
#account-panel:not(.signed-in) > :not(.landing-preview) {
  grid-column: 1;
}
#account-panel:not(.signed-in) #welcome-copy {
  grid-row: 1;
}
#account-panel:not(.signed-in) .landing-preview {
  grid-column: 2;
  grid-row: 1 / span 10;
  align-self: start;
  min-width: 0;
  padding-top: 24px;
}
#account-panel:not(.signed-in) #welcome-copy h1 {
  font-size: clamp(38px, 4.45vw, 64px);
  max-width: 650px;
  margin: 12px 0 20px;
  letter-spacing: -0.025em;
}
#welcome-copy .welcome-pitch {
  font-size: 18px;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 0 24px;
}
.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.welcome-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  min-height: 56px;
  text-decoration: none;
  font-weight: 800;
}
#welcome-copy .welcome-trust {
  font-size: 12px;
  color: var(--club-muted);
  margin: 12px 0 24px;
}
.signin-divider {
  border-top: 1px solid var(--club-line);
  padding-top: 20px;
  font-size: 13px;
}
#account-panel:not(.signed-in) #account-status {
  margin: 0;
  font-size: 13px;
}
#account-panel:not(.signed-in) #signup-explanation {
  font-size: 12px;
  margin: 0;
}
#account-panel:not(.signed-in) #guest-practice {
  display: none;
}
#account-panel.signed-in .landing-preview,
.playing .landing-preview {
  display: none;
}
#account-panel.signed-in ~ #landing-story,
.playing #landing-story {
  display: none;
}
.landing-preview > p {
  text-align: center;
  color: var(--club-muted);
  font-size: 12px;
  margin-top: 12px;
}
.welcome-fan {
  display: none;
}
#landing-story {
  padding: 32px 0 64px;
}
.landing-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  border-top: 8px solid var(--club-lattice);
  padding-top: 48px;
}
.landing-benefits article,
.landing-rules aside {
  background: var(--club-paper);
  border: 1px solid var(--club-line);
  padding: 28px;
  border-radius: 6px;
}
.landing-benefits h2 {
  font-size: 27px;
  margin: 18px 0 12px;
}
.landing-benefits p,
.landing-rules p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--club-help);
  margin: 0 0 18px;
}
.landing-benefits a,
.landing-rules a {
  font-weight: 800;
  text-underline-offset: 4px;
}
.story-glyph {
  display: grid;
  place-items: center;
  width: 44px;
  height: 58px;
  border-radius: 4px;
  background: var(--club-selection);
  color: var(--club-teal);
  border: 1px solid var(--club-line);
  border-bottom: 4px solid var(--club-lattice);
  font:
    700 28px 'Noto Sans SC',
    serif;
}
.landing-five {
  padding: 64px 0;
}
.landing-five h2,
.landing-rules h2 {
  font: var(--club-page-heading);
  margin: 12px 0 30px;
}
.landing-five ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  counter-reset: step;
  padding: 0;
  margin: 0 0 28px;
  gap: 24px;
  list-style: none;
}
.landing-five li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  color: var(--club-red);
  font:
    400 30px 'DM Serif Display',
    serif;
  margin-bottom: 12px;
}
.landing-five li strong {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
}
.landing-five li p {
  font-size: 14px;
  color: var(--club-help);
  line-height: 1.5;
}
.landing-five > a {
  padding: 14px 20px;
  display: inline-flex;
  text-decoration: none;
}
.landing-rules {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  padding: 48px 0;
  border-top: 1px solid var(--club-line);
}
.landing-rules h3 {
  font-size: 28px;
  margin: 18px 0;
}
@media (max-width: 800px) {
  #account-panel:not(.signed-in) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 20px 6px;
  }
  #account-panel:not(.signed-in) .landing-preview {
    display: none;
  }
  #account-panel:not(.signed-in) #welcome-copy h1 {
    font-size: 38px;
  }
  #welcome-copy .welcome-pitch {
    font-size: 16px;
  }
  .welcome-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .welcome-actions a {
    text-align: center;
  }
  .welcome-fan {
    display: flex;
    justify-content: center;
    margin: 0 0 24px;
    height: 100px;
  }
  .welcome-fan img {
    width: 60px;
    height: 80px;
    margin: 8px -4px 0;
  }
  .welcome-fan img:first-child {
    transform: rotate(-14deg) translateY(8px);
  }
  .welcome-fan img:last-child {
    transform: rotate(14deg) translateY(8px);
  }
  .landing-benefits,
  .landing-rules {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .landing-five {
    padding: 40px 0;
  }
  .landing-five ol {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .landing-five li {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 12px;
  }
  .landing-five li::before {
    grid-row: span 2;
  }
  .landing-five li strong {
    margin: 0;
  }
  #landing-story {
    padding-top: 16px;
  }
}
body:is(.profile-page, .plans-page, .checkout-page) {
  --paper: var(--club-ink);
}
.reading-page {
  line-height: 1.65;
}
.reading-page .info-page-header {
  width: min(1296px, calc(100% - 32px));
  padding: 16px 0;
  margin: 0 auto;
}
.reading-shell {
  max-width: 1296px;
  margin: 0 auto;
  padding: 64px 48px;
}
.reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(220px, 1fr);
  gap: 80px;
}
/* The contents box comes first in the markup and focus order; wide screens show it beside the article. */
.reading-layout > .reading-content {
  grid-column: 1;
  grid-row: 1;
}
.reading-layout > .reading-toc {
  grid-column: 2;
  grid-row: 1;
}
.reading-content h1 {
  font: var(--club-page-heading);
  margin: 0 0 28px;
}
.reading-content h2 {
  scroll-margin-top: 24px;
  font: var(--club-section-heading);
  margin-top: 40px;
}
.reading-content p,
.reading-content li,
.reading-content th,
.reading-content td {
  color: var(--club-help);
}
.reading-content .button {
  color: var(--club-paper);
  background: var(--club-teal);
}
.reading-content table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
}
.reading-toc {
  align-self: start;
  position: sticky;
  top: 32px;
  padding: 24px;
  background: var(--club-paper);
  border: 1px solid var(--club-line);
  border-radius: 6px;
}
.reading-toc nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 24px;
}
.reading-toc nav a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}
.reading-toc > a {
  display: flex;
  justify-content: center;
  min-height: 44px;
  padding: 10px;
  text-decoration: none;
  font-size: 14px;
  margin-top: 8px;
}
.profile-page main {
  max-width: 1296px;
}
.profile-page #profile-content {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.profile-personal {
  display: grid;
  gap: 16px;
}
.profile-page .player-card {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 24px;
}
.profile-page .player-card > a {
  grid-column: 1 / -1;
}
.profile-page .player-avatar {
  width: 60px;
  height: 80px;
  filter: drop-shadow(0 2px 2px #2b241c22);
}
.profile-page .player-identity h1 {
  font-size: 30px;
}
.profile-page .profile-history {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--club-line);
  border-radius: 6px;
  background: var(--club-paper);
}
.profile-page .membership-strip {
  background: var(--club-selection);
  padding: 20px;
  border: 1px solid var(--club-line);
  border-radius: 6px;
  font-size: 14px;
}
.profile-page .edit-fields {
  grid-template-columns: 1fr;
}
.profile-page input:not([type='radio']),
.profile-page textarea,
.profile-page select {
  background: var(--club-paper);
  color: var(--club-ink);
  border-color: var(--club-line);
}
.profile-page .profile-stats {
  border-radius: 6px;
}
.profile-page .profile-stats > div {
  padding: 12px;
}
.profile-page .profile-stats dd {
  color: var(--club-teal);
  font-size: 23px;
}
.profile-page .game-row {
  border-radius: 6px;
  padding: 16px;
}
.profile-page .account-delete {
  color: var(--club-red);
  border-color: var(--club-red);
}
.plans-page .membership-hero {
  text-align: left;
  max-width: none;
}
.plans-page .membership-hero .intro {
  margin-inline: 0;
  max-width: 640px;
}
.plans-page .plan-card {
  box-shadow: none;
  border-radius: 6px;
}
.plans-page .plan-card h2 {
  min-height: 0;
  margin-bottom: 20px;
  font-size: 30px;
}
.plans-page .plan-price {
  font:
    400 36px/1.3 'DM Serif Display',
    serif;
  color: var(--club-teal);
}
.plans-page .button.primary,
.profile-page .button.primary,
.checkout-page .button.primary {
  color: var(--club-paper);
  background: var(--club-teal);
}
.checkout-steps [aria-current] span {
  color: var(--club-paper);
}
#learn .instruction,
.lesson-list button {
  border-color: var(--club-line);
  background: var(--club-paper);
  border-radius: 6px;
}
#learn .instruction button.primary {
  color: var(--club-paper);
  background: var(--club-teal);
}
#learn .lesson-explanation {
  border-left: 5px solid var(--club-mustard);
}
#learn .lesson-table-heading {
  background: var(--club-tai);
  color: var(--club-ink);
  border: 1px solid var(--club-mustard);
  border-radius: 6px;
}
#learn .lesson-list button .number {
  color: var(--club-teal);
  background: var(--club-selection);
  border: 1px solid var(--club-line);
  border-bottom: 4px solid var(--club-lattice);
  border-radius: 4px;
  width: 40px;
  height: 53px;
  font:
    700 25px 'Noto Sans SC',
    serif;
}
#learn .lesson-list button small {
  color: var(--club-help);
}
#learn .lesson-list button > span:last-child {
  color: var(--club-teal);
}
@media (max-width: 950px) {
  .reading-layout {
    gap: 32px;
  }
  .reading-shell {
    padding: 40px 24px;
  }
  .profile-page #profile-content {
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 20px;
  }
  .profile-page .profile-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 750px) {
  .reading-layout,
  .profile-page #profile-content {
    grid-template-columns: 1fr;
  }
  .reading-layout > .reading-toc {
    position: static;
    grid-column: 1;
    grid-row: 1;
  }
  .reading-layout > .reading-content {
    grid-row: 2;
  }
  .reading-toc nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 16px;
  }
  .reading-toc > a {
    display: none;
  }
  .reading-shell {
    padding: 32px 20px;
  }
  .profile-page .profile-history {
    padding: 18px;
  }
  .reading-content h1 {
    font-size: 36px;
  }
  .profile-page .history-heading {
    align-items: start;
    flex-direction: column;
  }
}
.reading-layout > * {
  min-width: 0;
}
.reading-content {
  overflow-wrap: anywhere;
}
@media (max-width: 750px) {
  .reading-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
.welcome-phone-title {
  display: none;
}
.course-progress {
  margin: 24px 0;
  padding: 22px;
  background: var(--club-selection);
  border: 1px solid var(--club-line);
  border-radius: 6px;
}
.course-progress h2 {
  font: var(--club-section-heading);
  margin: 0 0 16px;
}
.course-bars {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}
.course-bars span {
  flex: 1;
  height: 6px;
  background: var(--club-line);
  border-radius: 3px;
}
.course-bars .done {
  background: var(--club-teal);
}
.course-progress button {
  background: var(--club-teal);
  color: var(--club-paper);
  padding: 12px 18px;
  min-height: 44px;
  font-weight: 800;
}
@media (max-width: 800px) {
  .welcome-desktop-title {
    display: none;
  }
  .welcome-phone-title {
    display: block;
  }
}

#account-panel:not(.signed-in) {
  width: 100%;
  max-width: none;
  text-align: left;
  margin: 24px 0;
}
#account-panel:not(.signed-in) #welcome-copy > p {
  margin-left: 0;
}
#account-panel:not(.signed-in) .account-primary-actions {
  justify-content: flex-start;
}
#online-root {
  max-width: 1296px;
  padding-inline: 24px;
}
@media (max-width: 800px) {
  #online-root {
    padding-inline: 0;
  }
  #account-panel:not(.signed-in) {
    text-align: center;
  }
  #account-panel:not(.signed-in) #welcome-copy > p {
    margin-inline: auto;
  }
  #account-panel:not(.signed-in) .account-primary-actions {
    justify-content: center;
  }
}

.club-page-header nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 950px) {
  .club-page-header .wide-link {
    display: none;
  }
}
.membership-usage {
  display: flex;
  gap: 3px;
  margin: 14px 0;
}
.membership-usage span {
  flex: 1;
  height: 8px;
  background: var(--club-line);
  border-radius: 2px;
}
.membership-usage .used {
  background: var(--club-teal);
}
.profile-page .membership-strip {
  border-left: 5px solid var(--club-mustard);
  background: var(--club-paper);
}
.reading-tiles {
  display: flex;
  gap: 0;
  margin: 24px 0;
}
.reading-tiles img {
  width: 30px;
  height: 40px;
}
.help-topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.help-topics a {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: var(--club-paper);
  border: 1px solid var(--club-line);
  border-radius: 6px;
  text-decoration: none;
}
.help-topics strong {
  font: var(--club-section-heading);
  font-size: 22px;
}
.help-topics span {
  font-size: 13px;
  color: var(--club-help);
}
@media (max-width: 480px) {
  .help-topics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 950px) {
  nav[aria-label='Main navigation'] .wide-link {
    display: none;
  }
  .profile-page #profile-content {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* The lesson header's own Scoring guide link stands in for the wide link on narrow screens only. */
@media (min-width: 951px) {
  .learn-header #learn-guide {
    display: none;
  }
}
.learn-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  max-width: 752px;
  margin: 0 auto;
  padding: 20px 16px 48px;
  border-top: 1px solid var(--club-line);
  color: var(--club-muted);
  font-size: 13px;
}
.learn-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.profile-page #profile-content > * {
  min-width: 0;
}
/* Coaching preview labels kept legacy light-on-dark colours on the cream page. */
.preview-card .eyebrow,
.preview-card .preview-label {
  color: var(--club-muted);
}

/* Solo table settings: who fills the computer seats (dist/cast-settings.js). */
dialog .opponent-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}
dialog .opponent-mode legend {
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--club-help);
}
dialog .opponent-mode label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--club-line);
  border-radius: 10px;
  background: var(--club-selection, #f4ecdb);
  color: var(--club-ink);
  cursor: pointer;
}
dialog .opponent-mode label:has(input:checked) {
  border-color: var(--club-teal);
  box-shadow: inset 0 0 0 1px var(--club-teal);
}
dialog .opponent-mode input {
  accent-color: var(--club-teal);
  margin-top: 3px;
}
dialog .opponent-mode small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--club-muted);
}
dialog .seat-note:empty {
  display: none;
}
dialog .seat-note {
  margin: -2px 0 10px;
  font-size: 13px;
  color: var(--club-red, #b7472f);
}
dialog .cast-guide {
  margin: 4px 0 16px;
}
dialog .cast-list {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}
dialog .cast-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: start;
}
dialog .cast-card img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  object-position: 50% 30%;
  border: 2px solid var(--club-teal);
  border-radius: 50%;
  background: var(--club-paper);
}
dialog .cast-card b {
  color: var(--club-ink);
}
dialog .cast-card small {
  color: var(--club-muted);
}
dialog .cast-card p {
  margin: 3px 0 0;
  font-size: 13px;
  line-height: 1.45;
}
@media (max-width: 520px) {
  dialog .opponent-mode {
    grid-template-columns: 1fr;
  }
}
/* Seat pickers, name boxes and the strategy field are shown or hidden with the hidden
   attribute; their own display rules must not bring them back. */
#settings-form [hidden] {
  display: none !important;
}
/* Under a character picker: the style that character plays, on its own line. */
#settings-form .seat-style {
  grid-column: 2 / -1;
  margin-top: -6px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--club-muted);
}
/* Scoring rows in the hand result and rules dialogs sit on the cream dialog: club ink, not the
   pale tint of the old dark panel. */
dialog .pattern-row {
  color: var(--club-help);
}
dialog .pattern-row b {
  color: var(--club-teal);
  font-weight: 700;
}
/* The hand's net change stays a dark panel inside the cream dialog, so its names and heading are
   light, not the dialog's ink. */
dialog .result-payments {
  color: #e6eee0;
}
dialog .dialog-content .result-payments h3 {
  color: #e0cda0;
}
dialog .result-banner .tai-large {
  color: #8a6020;
}
/* Players dialog: each seat's Inspect button keeps clear of the next seat's heading. */
dialog .table-player-detail {
  margin-bottom: 18px;
}
.table-inspection button.inspection-close {
  background: var(--club-teal);
  color: var(--club-paper);
}
/* The old dark-table button defaults also reach the cream lobby chat. */
.social-dialog button {
  background: var(--club-selection);
  color: var(--club-teal);
  border-color: var(--club-line);
}
.social-dialog button.primary,
.social-dialog .social-tabs [aria-pressed='true'],
.social-dialog .social-play {
  background: var(--club-teal);
  color: var(--club-paper);
}
/* Friends: invitations to a waiting table on home, and the waiting room's invite list. */
.home-invitations {
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid var(--club-line);
  border-left: 4px solid var(--club-red);
  border-radius: 6px;
  background: var(--club-selection);
  color: var(--club-ink);
}
#lobby .home-invitations h2 {
  margin: 0 0 8px;
  font-size: 18px;
}
.home-invitation-list,
.friend-invite-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.home-invitation-list li,
.friend-invite-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--club-line);
}
.home-invitation-list li:first-child,
.friend-invite-list li:first-child {
  border-top: 0;
}
.home-invitation-list small {
  display: block;
  color: var(--club-muted);
  font-size: 13px;
}
.home-invitation-list strong,
.friend-invite-list strong {
  overflow-wrap: anywhere;
}
.home-invitation-list .friend-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.home-invitation-list .entry-primary {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: var(--club-red);
}
.home-invitation-list button,
.friend-invite-list button {
  min-height: 44px;
}
.friend-avatar {
  width: 36px;
  height: 48px;
  object-fit: contain;
}
.friend-invited {
  color: var(--club-green, #1d5a45);
  font-weight: 650;
}
.friends-setup-link a {
  color: var(--gold);
}
/* On the narrowest phones the header would wrap to a third row; friends stay one tap away from
   Play with friends and the invitations strip. */
@media (max-width: 359px) {
  #entry-header .friends-nav {
    display: none;
  }
}
@media (max-width: 520px) {
  .home-invitation-list li {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .home-invitation-list .friend-row-actions {
    grid-column: 2;
  }
}
