:root {
  color-scheme: dark;
  --bg: #0c1110;
  --panel: #151d1a;
  --line: #2b3933;
  --text: #f3f0e8;
  --muted: #a9b6af;
  --accent: #d8b45b;
  --good: #7cd4a5;
  --bad: #ff9b91;
  font:
    16px/1.55 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: radial-gradient(circle at 70% 0, #18241f 0, var(--bg) 48%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
a {
  color: #e4c978;
  text-underline-offset: 3px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #f5d77f;
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--text);
  color: var(--bg);
  padding: 10px;
  z-index: 10;
}
.skip-link:focus {
  left: 8px;
}
body > header {
  min-height: 72px;
  padding: 15px max(24px, calc((100vw - 1120px) / 2));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
body > header > nav {
  justify-self: center;
}
.brand {
  font:
    700 21px Georgia,
    serif;
  color: var(--text);
  text-decoration: none;
}
nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
nav a,
.link {
  color: var(--muted);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
}
nav a:hover,
.link:hover {
  color: var(--text);
}
nav form {
  margin: 0;
}
.locale-switcher {
  position: relative;
  justify-self: end;
}
.locale-switcher summary {
  list-style: none;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.locale-switcher summary::-webkit-details-marker {
  display: none;
}
.locale-switcher summary::after {
  content: "▾";
  color: var(--muted);
  font-size: 12px;
}
.locale-switcher[open] summary::after {
  content: "▴";
}
.locale-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 9px);
  right: 0;
  min-width: 220px;
  padding: 8px;
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #111916;
  box-shadow: 0 16px 38px rgb(0 0 0 / 38%);
}
.locale-menu a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--text);
}
.locale-menu a:hover,
.locale-menu a[aria-current="page"] {
  background: #22312b;
}
.locale-menu a[aria-current="page"]::after {
  content: "✓";
  margin-left: auto;
  color: var(--accent);
}
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 24px;
}
.hero {
  max-width: 820px;
  padding: 64px 0;
}
.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: clamp(32px, 6vw, 76px);
  margin-bottom: 28px;
}
.home-hero-grid .hero {
  max-width: none;
}
.hero h1 {
  font:
    700 clamp(42px, 7vw, 78px)/1.02 Georgia,
    serif;
  margin: 12px 0 24px;
  letter-spacing: -0.03em;
}
.hero p {
  font-size: 19px;
  color: var(--muted);
  max-width: 700px;
}
.hero-proof {
  width: fit-content;
  margin-top: 24px;
  padding: 7px 11px;
  border: 1px solid color-mix(in srgb, var(--good) 35%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--good) 8%, transparent);
  color: var(--text) !important;
  font-size: 13px !important;
  font-weight: 700;
}
.hero-proof span {
  color: var(--good);
  margin-right: 4px;
}
.actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}
.panel {
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  min-width: 0;
  overflow-wrap: anywhere;
  box-shadow: 0 14px 36px rgb(0 0 0 / 10%);
}
.featured-room {
  position: relative;
  overflow: hidden;
  padding: 30px;
  background:
    radial-gradient(circle at 100% 0, rgb(216 180 91 / 16%), transparent 44%),
    color-mix(in srgb, var(--panel) 96%, transparent);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}
.featured-room::after {
  content: "";
  position: absolute;
  inset: auto -40px -54px auto;
  width: 150px;
  height: 150px;
  border: 1px solid rgb(216 180 91 / 16%);
  border-radius: 50%;
  pointer-events: none;
}
.featured-room h2 {
  margin: 8px 0 12px;
  font: 700 30px/1.1 Georgia, serif;
}
.featured-room h2 a {
  color: var(--text);
  text-decoration: none;
}
.featured-room p:not(.eyebrow) {
  color: var(--muted);
}
.featured-room dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 12px;
  margin: 22px 0;
  font-size: 14px;
}
.featured-room dt {
  color: var(--muted);
}
.featured-room dd {
  margin: 0;
  color: var(--text);
}
.featured-action {
  position: relative;
  z-index: 1;
}
.room-monogram {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, var(--line));
  border-radius: 14px;
  background: linear-gradient(145deg, #2c342e, #161e1b);
  color: var(--accent);
  font: 700 25px/1 Georgia, serif;
  box-shadow: inset 0 1px rgb(255 255 255 / 7%);
}
.narrow {
  max-width: 520px;
}
.beginner-path {
  margin: 10px 0 64px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgb(216 180 91 / 9%), transparent 42%),
    color-mix(in srgb, var(--panel) 96%, transparent);
  box-shadow: 0 22px 58px rgb(0 0 0 / 13%);
}
.beginner-path .section-heading {
  align-items: flex-start;
  margin-bottom: 30px;
}
.beginner-path h2 {
  max-width: 650px;
  margin: 8px 0 10px;
  font: 700 clamp(27px, 4vw, 40px)/1.08 Georgia, serif;
  letter-spacing: -0.02em;
}
.beginner-path .section-heading > div > p:last-child {
  color: var(--muted);
  font-size: 17px;
}
.beginner-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid var(--line);
}
.beginner-step {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 24px 22px 4px;
  border-right: 1px solid var(--line);
}
.beginner-step:first-child {
  padding-left: 0;
}
.beginner-step:last-child {
  padding-right: 0;
  border-right: 0;
}
.beginner-step .step-number {
  color: var(--accent);
  font: 700 13px/1 Georgia, serif;
  letter-spacing: 0.12em;
}
.step-top {
  min-height: 92px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.beginner-visual {
  min-width: 112px;
  min-height: 78px;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.beginner-visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgb(0 0 0 / 30%));
}
.beginner-visual.is-large {
  width: min(100%, 300px);
  min-height: 178px;
  padding: 0;
}
.beginner-visual.is-large img { max-height: 220px; }
.beginner-step h3 {
  margin: 12px 0 8px;
  font-size: 18px;
}
.beginner-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.beginner-step .card-action {
  margin-top: auto;
  padding-top: 20px;
  font-size: 14px;
}
.beginner-journey {
  margin: 0 0 32px;
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  background: linear-gradient(145deg, rgb(216 180 91 / 8%), transparent 48%), var(--panel);
}
.beginner-journey h2 {
  margin: 6px 0 8px;
}
.beginner-journey > p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
}
.beginner-journey ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.beginner-journey li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.beginner-journey li span {
  color: var(--accent);
  font: 700 12px/1.5 Georgia, serif;
}
.beginner-journey li a {
  color: var(--text);
  font-weight: 700;
}
.beginner-journey li.is-current {
  border-color: var(--accent);
  background: rgb(216 180 91 / 8%);
}
.beginner-session-promo {
  display: grid;
  grid-template-columns: minmax(190px, .48fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 5vw, 62px);
  margin: -28px 0 56px;
  background: linear-gradient(130deg, #10271e, #0d1814 68%);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
}
.beginner-session-promo .tool-illustration { margin-bottom: 0; }
.beginner-session-promo h2 { margin: 7px 0 10px; font: 700 clamp(27px, 4vw, 38px)/1.08 Georgia, serif; }
.beginner-session-promo p:not(.eyebrow) { max-width: 620px; color: var(--muted); }
.guide-head-grid {
  max-width: 980px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, .42fr);
  align-items: center;
  gap: clamp(24px, 6vw, 70px);
}
.guide-head-grid > div:first-child > p:not(.eyebrow, .reviewed) { color: var(--muted); font-size: 18px; }
.beginner-next-step {
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 34px auto 22px;
  border-color: color-mix(in srgb, var(--accent) 46%, var(--line));
  background: linear-gradient(135deg, rgb(216 180 91 / 10%), transparent 54%), var(--panel);
}
.beginner-next-step h2 { margin: 6px 0 7px; }
.beginner-next-step p:not(.eyebrow) { margin: 0; color: var(--muted); }
.beginner-next-step .button { flex: 0 0 auto; }
.guide-card.is-visual {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
}
.guide-card.is-visual .beginner-visual {
  width: 100%;
  min-height: 132px;
  margin-bottom: 18px;
}
.guide-card.is-visual h2 { margin-top: 0; }
.guide-card.is-visual small { margin-top: auto; padding-top: 14px; color: var(--muted); }
.grid,
.card-grid,
.fact-grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.trust-grid {
  margin: 0 0 56px;
}
.trust-grid article {
  border-top: 2px solid var(--accent);
  padding-top: 18px;
}
.page-head {
  max-width: 780px;
  margin-bottom: 42px;
}
.page-head > p:not(.eyebrow) {
  font-size: 18px;
  color: var(--muted);
}
h1 {
  font:
    700 clamp(36px, 6vw, 54px)/1.08 Georgia,
    serif;
  margin: 8px 0 24px;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 20px;
}
h3 {
  font-size: 16px;
}
p {
  max-width: 72ch;
}
.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.text-link {
  font-weight: 700;
}
.calm {
  margin-top: 48px;
}
.room-card h2,
.card-grid h2 {
  margin-top: 4px;
}
.room-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 15px;
}
.room-card dt {
  color: var(--muted);
}
.room-card dd {
  margin: 0;
}
.card-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}
.card-action span {
  color: var(--accent);
  transition: transform 160ms ease;
}
.card-action:hover span {
  transform: translateX(3px);
}
.empty-state {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 30px;
  color: var(--muted);
  grid-column: 1/-1;
}
.breadcrumbs {
  font-size: 14px;
  margin-bottom: 30px;
}
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 28px;
}
.profile-layout > *,
.fact-grid > * {
  min-width: 0;
}
.room-profile-head {
  max-width: 900px;
}
.room-profile-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
.room-profile-title h1,
.room-profile-title .eyebrow {
  margin: 0;
}
.room-profile-title .eyebrow {
  margin-bottom: 5px;
}
.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.profile-summary {
  align-self: start;
}
.fact-list,
.market-list,
.reason-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.fact-list li,
.market-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.market-list li span,
.muted,
.reviewed {
  color: var(--muted);
}
.unknown {
  color: var(--muted);
  font-weight: 400;
}
.comparison th:first-child {
  min-width: 180px;
}
.finder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  align-items: end;
  margin-bottom: 48px;
}
.finder label {
  margin: 0;
}
.finder button,
.finder .text-link {
  margin-bottom: 1px;
}
.results {
  display: grid;
  gap: 16px;
}
.result-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 1fr);
  gap: 28px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.article {
  max-width: 780px;
  margin: auto;
}
.prose {
  font-size: 18px;
  line-height: 1.7;
}
.prose h2 {
  margin-top: 38px;
}
.related-links,
.affiliate-cta {
  margin-top: 32px;
}
.affiliate-cta {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
}
.affiliate-cta p:last-child {
  margin-bottom: 0;
}
.comparison-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
label {
  display: grid;
  gap: 7px;
  margin: 18px 0;
  color: var(--muted);
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: #0d1412;
  color: var(--text);
  font: inherit;
}
textarea {
  min-height: 140px;
}
button,
.button {
  display: inline-block;
  border: 0;
  border-radius: 8px;
  padding: 11px 16px;
  background: var(--accent);
  color: #17140b;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}
button:hover,
.button:hover {
  transform: translateY(-1px);
}
.notice {
  padding: 12px;
  border-radius: 8px;
}
.error {
  background: #3a201e;
  color: var(--bad);
}
.status.good {
  color: var(--good);
  font-weight: 700;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--muted);
  font-size: 13px;
}
.table-wrap {
  overflow: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}
footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 24px;
  color: #84938c;
  font-size: 13px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 28px;
}
footer nav {
  justify-content: flex-end;
}
@media (max-width: 800px) {
  body > header {
    height: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 16px;
  }
  body > header > nav {
    grid-column: 1 / -1;
    justify-self: start;
    width: 100%;
    gap: 12px;
    font-size: 14px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    white-space: nowrap;
  }
  body > header > nav::-webkit-scrollbar {
    display: none;
  }
  .locale-switcher {
    grid-column: 2;
    grid-row: 1;
  }
  .locale-switcher summary {
    max-width: 178px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .locale-menu {
    width: min(280px, calc(100vw - 48px));
  }
  main {
    padding: 40px 20px 56px;
  }
  .home-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 48px;
  }
  .home-hero-grid .hero {
    padding: 28px 0 22px;
  }
  .featured-room {
    padding: 24px;
  }
  .beginner-path {
    margin-top: 0;
    padding: 26px 22px;
  }
  .beginner-path .section-heading {
    display: grid;
  }
  .beginner-steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .beginner-step,
  .beginner-step:first-child,
  .beginner-step:last-child {
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .beginner-step:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .step-top {
    min-height: 82px;
  }
  .beginner-session-promo,
  .guide-head-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .beginner-session-promo {
    margin-top: -30px;
  }
  .beginner-session-promo > div:first-child {
    display: none;
  }
  .guide-head-grid .beginner-visual {
    order: -1;
  }
  .beginner-next-step,
  .session-context {
    align-items: stretch;
    flex-direction: column;
  }
  .beginner-next-step .button,
  .session-context .button {
    width: 100%;
    text-align: center;
  }
  .card-grid,
  .fact-grid,
  .trust-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .actions .button:first-child {
    grid-column: 1 / -1;
    text-align: center;
  }
  .profile-layout,
  .result-card {
    grid-template-columns: 1fr;
  }
  .section-heading,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .fact-list li,
  .market-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .profile-layout,
  .profile-layout > div,
  .profile-layout section,
  .market-list,
  .fact-grid {
    min-width: 0;
    max-width: 100%;
  }
  .room-profile-title {
    align-items: flex-start;
  }
  .table-wrap > table {
    width: max-content;
    min-width: 100%;
  }
  .table-wrap th,
  .table-wrap td {
    min-width: 8rem;
    overflow-wrap: normal;
    word-break: normal;
  }
  .table-wrap th:first-child,
  .table-wrap td:first-child {
    min-width: 15rem;
    max-width: 22rem;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 390px) {
  body > header {
    padding-inline: 18px;
  }
  .brand {
    font-size: 19px;
  }
  .locale-switcher summary {
    max-width: 150px;
  }
  .hero h1 {
    font-size: 39px;
  }
  .panel {
    padding: 22px;
  }
}

/* Crawlable learning tools */
.tool-promo {
  margin: 36px 0;
}
.tool-hub .tool-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.tool-card .card-action {
  margin-top: auto;
}
.tool-head {
  max-width: 960px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.48fr);
  align-items: center;
  gap: clamp(26px, 6vw, 72px);
}
.tool-head h1 {
  margin-bottom: 18px;
}
.tool-illustration {
  width: 100%;
  max-width: 290px;
  margin: 0 auto 22px;
  color: var(--accent);
}
.tool-card .tool-illustration {
  width: min(100%, 210px);
  margin: -10px auto 16px;
}
.tool-illustration img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgb(0 0 0 / 32%));
}
.poker-trainer,
.tool-calculator,
.printable-chart,
.ranking-reference {
  max-width: 900px;
  margin: 0 auto 28px;
}
.tool-progress,
.print-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.hand-choice-grid,
.tool-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.hand-choice {
  min-height: 148px;
  padding: 22px;
  color: var(--text);
  background: #0d1814;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
}
.hand-choice > span:first-child {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.playing-hand {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 9px);
  max-width: 100%;
}
.hand-choice .playing-hand {
  display: flex;
}
.hand-render {
  display: block;
}
.playing-card {
  width: clamp(42px, 7.4vw, 62px);
  aspect-ratio: 0.71;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 7px 6px;
  color: #17201d;
  background: linear-gradient(145deg, #fffdfa, #ece4d5);
  border: 1px solid #d9ceb8;
  border-radius: 8px;
  box-shadow: 0 7px 13px rgb(0 0 0 / 25%);
  font: 800 clamp(15px, 2.8vw, 21px)/1 Georgia, serif;
}
.playing-card > span:last-child {
  align-self: flex-end;
  font-size: 1.22em;
}
.playing-card.is-red {
  color: #a52f35;
}
.playing-hand.is-compact {
  gap: 3px;
  margin-top: 8px;
}
.playing-hand.is-compact .playing-card {
  width: 34px;
  padding: 4px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgb(0 0 0 / 18%);
  font-size: 12px;
}
.hand-choice.is-correct {
  border-color: var(--good);
  box-shadow: inset 0 0 0 1px var(--good);
}
.hand-choice.is-wrong {
  border-color: var(--bad);
  box-shadow: inset 0 0 0 1px var(--bad);
}
.hand-choice:disabled {
  cursor: default;
  opacity: 0.82;
}
.tool-feedback {
  min-height: 58px;
  margin: 18px 0 8px;
  font-weight: 700;
}
.tool-next {
  margin-top: 8px;
}
.tool-input-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 22px 0;
}
.tool-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 30px;
}
.tool-results div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d1814;
}
.tool-results dt {
  color: var(--muted);
  font-size: 13px;
}
.tool-results dd {
  margin: 8px 0 0;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 700;
}
.cost-visual {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, #0c1713, #13231d);
}
.poker-chip-stack {
  width: 58px;
  height: 54px;
  position: relative;
}
.poker-chip-stack i {
  position: absolute;
  left: 0;
  width: 58px;
  height: 22px;
  border: 4px dashed #f2d48a;
  border-radius: 50%;
  background: #a73e3f;
  box-shadow: 0 3px 0 #642224;
}
.poker-chip-stack i:nth-child(1) { bottom: 0; }
.poker-chip-stack i:nth-child(2) { bottom: 13px; }
.poker-chip-stack i:nth-child(3) { bottom: 26px; }
.cost-bar {
  min-height: 24px;
  display: flex;
  overflow: hidden;
  border: 1px solid #476357;
  border-radius: 999px;
  background: #0a100e;
}
.cost-bar-net {
  width: calc(100% - var(--rake-share));
  background: linear-gradient(90deg, #3b8d69, #75c99c);
  transition: width 220ms ease;
}
.cost-bar-rake {
  width: var(--rake-share);
  min-width: 3px;
  background: linear-gradient(90deg, #d8b45b, #f2d48a);
  transition: width 220ms ease;
}
.ranking-reference ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
  padding-left: 24px;
}
.ranking-reference li {
  padding: 8px 0;
}
.ranking-reference li > .playing-hand {
  margin-top: 5px;
}
.printable-chart table th:first-child,
.printable-chart table td:first-child {
  width: 52px;
  min-width: 52px;
  white-space: nowrap;
}
.tool-safety {
  max-width: 900px;
  margin: 26px auto;
}
.session-checklist,
.session-context {
  max-width: 900px;
  margin: 0 auto 28px;
}
.session-progress {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.session-progress p { margin: 0 0 5px; }
.session-progress strong { color: var(--accent); font: 700 28px/1 Georgia, serif; }
.session-progress-track {
  height: 13px;
  overflow: hidden;
  border: 1px solid #49665a;
  border-radius: 999px;
  background: #0a110e;
}
.session-progress-track span {
  width: var(--session-progress, 0%);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #d8b45b, #f3d98c);
  transition: width 220ms ease;
}
.session-checklist ol {
  display: grid;
  gap: 11px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  counter-reset: session-step;
}
.session-checklist li { counter-increment: session-step; }
.session-checklist label {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0d1814;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.session-checklist label:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); transform: translateY(-1px); }
.session-checklist input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
.session-checkmark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 2px solid #547064;
  border-radius: 9px;
  color: #102018;
  background: transparent;
}
.session-checkmark::before { content: counter(session-step); color: var(--muted); font-size: 12px; font-weight: 800; }
.session-checklist input:focus-visible + .session-checkmark { outline: 3px solid rgb(216 180 91 / 35%); outline-offset: 3px; }
.session-checklist input:checked + .session-checkmark { border-color: var(--accent); background: var(--accent); }
.session-checklist input:checked + .session-checkmark::before { content: "✓"; color: #112019; font-size: 19px; }
.session-checklist input:checked ~ span strong { color: var(--accent); }
.session-checklist label strong,
.session-checklist label small { display: block; }
.session-checklist label strong { margin-bottom: 4px; font-size: 16px; }
.session-checklist label small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.session-finish {
  display: none;
  margin: 0 0 20px;
  padding: 17px;
  border: 1px solid color-mix(in srgb, var(--good) 65%, var(--line));
  border-radius: 12px;
  background: rgb(61 153 110 / 10%);
}
.session-finish.is-visible { display: block; }
.session-finish p { margin: 5px 0 0; color: var(--muted); }
.session-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.session-context h2 { margin: 5px 0 8px; }
.session-context p:not(.eyebrow) { margin: 0; color: var(--muted); }

/* Private play-money table and first-night atmosphere */
.poker-night-plan,
.friend-how {
  max-width: 1000px;
  margin: 0 auto 28px;
}
.poker-night-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.poker-night-grid article {
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, #0c1713, #14261f);
}
.poker-night-grid article > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid #7c6937;
  border-radius: 50%;
  color: var(--accent);
  font: 800 15px/1 Georgia, serif;
}
.poker-night-grid h3 { margin: 0 0 8px; }
.poker-night-grid p { margin: 0; color: var(--muted); font-size: 14px; }
.friends-session-promo {
  max-width: 900px;
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: minmax(210px, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 32px;
  overflow: hidden;
  background: radial-gradient(circle at 15% 50%, rgb(216 180 91 / 11%), transparent 42%), #101e19;
}
.friends-session-promo .tool-illustration { margin: 0; }
.friend-avatar-art circle { fill: #d8b45b; stroke: #f2d48a; stroke-width: 3; }
.friend-create-card,
.friend-join-card {
  max-width: 1080px;
  margin: 0 auto 30px;
  padding: clamp(26px, 4vw, 42px);
  background: radial-gradient(circle at 88% 10%, rgb(216 180 91 / 10%), transparent 33%), #101e19;
}
.friend-create-card form,
.friend-join-card form {
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 14px;
  margin-top: 22px;
}
.friend-create-card label,
.friend-join-card label,
.friend-invite label { margin: 0; }
.friend-mode-picker {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
}
.friend-mode-picker legend { margin-bottom: 9px; color: var(--text); font-weight: 800; }
.friend-mode-picker label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b1712;
  cursor: pointer;
}
.friend-mode-picker input { width: auto; margin: 3px 0 0; accent-color: var(--accent); }
.friend-mode-picker strong,
.friend-mode-picker small { display: block; }
.friend-mode-picker small { margin-top: 5px; color: var(--muted); line-height: 1.45; }
.friend-avatar-picker {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
}
.friend-avatar-picker legend { color: var(--text); font-weight: 800; }
.friend-avatar-picker > p { margin: 5px 0 12px; color: var(--muted); font-size: 13px; }
.friend-avatar-picker > div { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; }
.friend-avatar-option {
  min-width: 0;
  position: relative;
  display: grid;
  place-items: center;
  gap: 7px;
  padding: 11px 6px 9px;
  border: 1px solid #31463c;
  border-radius: 16px;
  background: linear-gradient(155deg, #12261e, #08130f 72%);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.friend-avatar-option:hover { border-color: #9d834a; transform: translateY(-2px); }
.friend-avatar-option input { position: absolute; opacity: 0; pointer-events: none; }
.friend-avatar-option:has(input:checked) { border-color: var(--accent); background: linear-gradient(155deg, rgb(216 180 91 / 16%), #0b1813 74%); box-shadow: 0 0 0 2px rgb(216 180 91 / 15%), 0 12px 24px rgb(0 0 0 / 22%); }
.friend-avatar-option input:focus-visible + .friend-avatar { outline: 3px solid #f0d07a; outline-offset: 3px; }
.friend-avatar-option small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.friend-avatar {
  width: 78px;
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: end center;
  flex: 0 0 auto;
  overflow: hidden;
  isolation: isolate;
  border: 2px solid #d4b35f;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #315f4c, #11271e 60%, #07110d 100%);
  box-shadow: inset 0 0 0 3px rgb(5 16 12 / 54%), 0 8px 22px rgb(0 0 0 / 35%);
}
.friend-avatar::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 40% 22%, rgb(255 255 255 / 17%), transparent 24%), linear-gradient(to top, rgb(2 8 5 / 23%), transparent 35%);
  box-shadow: inset 0 0 0 1px rgb(255 238 185 / 20%);
  pointer-events: none;
}
.friend-avatar::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 4px;
  border: 1px solid rgb(255 231 163 / 20%);
  border-radius: inherit;
  pointer-events: none;
}
.friend-avatar img {
  width: 108%;
  height: 108%;
  position: relative;
  z-index: 1;
  display: block;
  max-width: none;
  object-fit: contain;
  object-position: center bottom;
  filter: saturate(.96) contrast(1.03);
  transform: translateY(4%);
}
.privacy-note { color: var(--muted); font-size: 13px; }
.friend-how h2 { text-align: center; }
.friend-how ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
}
.friend-how li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 18px 10px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.friend-how li strong {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #112019;
  background: var(--accent);
  font-family: Georgia, serif;
}
.friend-boundaries {
  max-width: 1000px;
  margin: 8px auto 34px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}
.friend-boundaries h2 { margin: 0 0 7px; font-size: 19px; }
.friend-boundaries p { max-width: 760px; margin: 0; color: var(--muted); }
.friend-room-page { max-width: 1240px; margin: 0 auto; }
.friend-room-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: end;
  margin-bottom: 22px;
}
.friend-room-header h1 { margin: 4px 0 8px; }
.friend-room-header h1 span { color: var(--accent); white-space: nowrap; }
.friend-invite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 9px;
}
.friend-invite > span { grid-column: 1 / -1; min-height: 18px; color: var(--good); font-size: 13px; }
.friend-status { min-height: 24px; margin-bottom: 8px; color: #f3bf73; font-weight: 700; }
.friend-room-page.is-busy { cursor: progress; }
.friend-room-page.is-busy .friend-actions { opacity: .7; pointer-events: none; }
.friend-table {
  height: clamp(540px, 55vw, 650px);
  min-height: 0;
  position: relative;
  margin: 18px 0 28px;
  box-sizing: border-box;
  isolation: isolate;
  border: 18px solid transparent;
  border-radius: 50% / 44%;
  background:
    radial-gradient(ellipse at 50% 43%, rgb(83 166 126 / 24%) 0 4%, transparent 47%),
    repeating-radial-gradient(ellipse at center, transparent 0 8px, rgb(255 255 255 / 1.4%) 9px 10px),
    radial-gradient(ellipse at center, #14543a 0 45%, #0e3c2b 68%, #08241a 100%) padding-box,
    linear-gradient(145deg, #3d1e12 0%, #9b5f2d 17%, #3a1d12 35%, #d09a4f 49%, #4a2817 67%, #a66d35 84%, #2a140d 100%) border-box;
  box-shadow:
    inset 0 0 0 3px #c69b4f,
    inset 0 0 0 8px #160d09,
    inset 0 24px 55px rgb(255 255 255 / 5%),
    inset 0 -35px 70px rgb(0 0 0 / 35%),
    0 0 0 2px #130b08,
    0 34px 78px rgb(0 0 0 / 48%);
  overflow: visible;
}
.friend-table::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 7px;
  pointer-events: none;
  border: 1px solid rgb(244 210 132 / 38%);
  border-radius: 50% / 43%;
  box-shadow: inset 0 0 42px rgb(0 0 0 / 34%), 0 0 0 5px rgb(5 14 10 / 38%);
}
.friend-table::after {
  content: "POKERSIGNUP  ·  PRIVATE TABLE";
  position: absolute;
  z-index: 0;
  top: 65%;
  left: 50%;
  translate: -50% -50%;
  color: rgb(232 218 175 / 15%);
  font: 700 clamp(17px, 2.45vw, 31px)/1 Georgia, serif;
  letter-spacing: .18em;
  text-shadow: 0 1px 0 rgb(255 255 255 / 6%), 0 -2px 0 rgb(0 0 0 / 27%);
  white-space: nowrap;
  pointer-events: none;
}
.friend-board {
  width: min(54%, 500px);
  position: absolute;
  z-index: 3;
  inset: 49% auto auto 50%;
  translate: -50% -50%;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.friend-board-meta { display: flex; gap: 14px; align-items: center; }
.friend-board-meta strong { color: #f0cf74; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; text-shadow: 0 2px 8px #00170e; }
.friend-board-meta > span:not(.friend-clock) { padding: 0; border: 0; color: #f6efe0; background: transparent; box-shadow: none; text-shadow: 0 2px 8px #00170e; }
.friend-clock {
  width: 38px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff7dc;
  background: radial-gradient(circle at center, #0b2118 58%, transparent 60%), conic-gradient(#e4bc58 var(--clock-progress, 360deg), rgb(255 255 255 / 13%) 0);
  box-shadow: 0 5px 15px rgb(0 0 0 / 30%);
  font-weight: 900;
  font-size: 12px;
}
.friend-community,
.friend-hole-cards { display: flex; gap: 5px; justify-content: center; }
.friend-card {
  width: clamp(40px, 5vw, 58px);
  aspect-ratio: .71;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 7px 6px;
  border: 1px solid #e4d8c1;
  border-radius: 7px;
  color: #17201d;
  background: linear-gradient(145deg, #fffefb 0 50%, #eee5d5 100%);
  box-shadow: 0 2px 0 rgb(255 255 255 / 55%) inset, 0 9px 17px rgb(0 0 0 / 30%);
  font: 800 17px/1 Georgia, serif;
}
.friend-card i { align-self: flex-end; font-style: normal; font-size: 1.3em; }
.friend-card.is-red { color: #a52f35; }
.friend-card.is-back {
  border-color: #d0aa55;
  background:
    linear-gradient(135deg, transparent 42%, rgb(218 180 91 / 85%) 43% 47%, transparent 48%) 0 0 / 12px 12px,
    linear-gradient(45deg, transparent 42%, rgb(218 180 91 / 70%) 43% 47%, transparent 48%) 0 0 / 12px 12px,
    #14382d;
  box-shadow: inset 0 0 0 4px #0c241c, inset 0 0 0 5px #bc974c, 0 8px 16px rgb(0 0 0 / 30%);
}
.friend-seat {
  width: min(22%, 184px);
  min-height: 0;
  position: absolute;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "identity identity" "stack cards" "flag cards";
  align-content: center;
  gap: 0 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
  transition: border-color 180ms ease, transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}
.friend-seat.is-turn { transform: translateY(-3px) scale(1.035); }
.friend-seat.is-turn .friend-avatar { border-color: #ffe08a; box-shadow: 0 0 0 4px rgb(230 190 85 / 24%), 0 0 24px rgb(230 190 85 / 35%); }
.friend-seat.is-folded { opacity: .48; filter: saturate(.55); }
.friend-seat-identity { grid-area: identity; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px; align-items: center; text-align: left; }
.friend-seat .friend-avatar { width: 58px; margin: 0; border-width: 2px; box-shadow: inset 0 0 0 2px rgb(5 16 12 / 54%), 0 7px 16px rgb(0 0 0 / 38%); }
.friend-seat-name { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.friend-seat-name > strong { max-width: 100%; overflow: hidden; color: #fff9e9; font-size: 14px; text-overflow: ellipsis; text-shadow: 0 2px 6px #00150d, 0 0 3px #00150d; white-space: nowrap; }
.friend-seat-name > span { display: flex; gap: 4px; }
.friend-seat-name small { padding: 2px 5px; border: 0; border-radius: 999px; color: #251b08; background: #e5bd5c; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.friend-seat .friend-hole-cards { grid-area: cards; align-self: end; }
.friend-seat .friend-card { width: 28px; padding: 3px; border-radius: 4px; font-size: 10px; }
.friend-seat p { grid-area: stack; margin: 3px 0 0 65px; color: #e0e8e3; font-size: 10px; text-align: left; text-shadow: 0 2px 6px #00150d; }
.friend-seat em { grid-area: flag; display: block; min-height: 12px; margin-left: 65px; color: #edbd6d; font-size: 9px; text-align: left; text-shadow: 0 2px 6px #00150d; }
.friend-seat.seat-1 { left: 50%; bottom: 1%; translate: -50% 0; }
.friend-seat.seat-2 { left: 2%; bottom: 22%; }
.friend-seat.seat-3 { left: 2%; top: 20%; }
.friend-seat.seat-4 { left: 50%; top: 1%; translate: -50% 0; }
.friend-seat.seat-5 { right: 2%; top: 20%; }
.friend-seat.seat-6 { right: 2%; bottom: 22%; }
.friend-actions { max-width: 900px; margin: 0 auto 22px; }
.friend-learning {
  max-width: 900px;
  margin: 0 0 12px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgb(216 180 91 / 18%);
  background: transparent;
}
.friend-learning-heading { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; margin-bottom: 13px; }
.friend-learning-heading strong { color: var(--accent); font: 700 22px/1.2 Georgia, serif; }
.friend-learning-heading small { max-width: 580px; color: var(--muted); text-align: right; }
.friend-equity-meter { min-height: 48px; position: relative; display: flex; align-items: center; padding: 0 15px; overflow: hidden; border: 1px solid #79683e; border-radius: 10px; background: #09130f; }
.friend-equity-meter::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--equity); background: linear-gradient(90deg, #39634d, #6d7e4e); opacity: .72; }
.friend-equity-meter b { position: relative; z-index: 1; }
.friend-learning > p { margin: 11px 0 0; color: #c9d5cf; }
.friend-action-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 15px; }
.friend-action-heading strong { color: var(--accent); font: 700 23px/1.1 Georgia, serif; }
.friend-action-heading span { color: var(--muted); }
.friend-action-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.friend-action-row label { width: 150px; margin: 0; }
.friend-action-row input { margin-top: 5px; }
.friend-room-rules { max-width: 900px; margin: 0 auto; }
.friend-room-rules p { margin: 6px 0 0; color: var(--muted); }

@media (min-width: 900px) {
  .friend-room-page.is-in-game,
  .friend-room-page.is-showdown {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    gap: 22px;
    align-items: center;
  }
  .friend-room-page.is-in-game .friend-room-header,
  .friend-room-page.is-showdown .friend-room-header,
  .friend-room-page.is-in-game .friend-status,
  .friend-room-page.is-showdown .friend-status,
  .friend-room-page.is-in-game .friend-room-rules,
  .friend-room-page.is-showdown .friend-room-rules { display: none; }
  .friend-room-page.is-in-game .friend-table,
  .friend-room-page.is-showdown .friend-table {
    height: min(720px, calc(100svh - 130px));
    min-height: 560px;
    margin: 0;
  }
  .friend-room-page.is-in-game .friend-actions,
  .friend-room-page.is-showdown .friend-actions {
    width: 100%;
    max-height: calc(100svh - 150px);
    margin: 0;
    overflow: auto;
  }
  .friend-room-page.is-in-game .friend-learning-heading,
  .friend-room-page.is-showdown .friend-learning-heading,
  .friend-room-page.is-in-game .friend-action-heading,
  .friend-room-page.is-showdown .friend-action-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .friend-room-page.is-in-game .friend-learning-heading small,
  .friend-room-page.is-showdown .friend-learning-heading small { text-align: left; }
  .friend-room-page.is-in-game .friend-action-row,
  .friend-room-page.is-showdown .friend-action-row { display: grid; grid-template-columns: 1fr; }
  .friend-room-page.is-in-game .friend-action-row label,
  .friend-room-page.is-showdown .friend-action-row label { width: auto; }
}

@media (max-width: 820px) {
  .poker-night-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .friends-session-promo,
  .friend-room-header { grid-template-columns: 1fr; }
  .friend-table { height: min(72vw, 620px); min-height: 540px; border-width: 14px; border-radius: 46% / 40%; }
  .friend-table::before { border-radius: 46% / 40%; }
  .friend-seat { width: min(31%, 164px); }
  .friend-board { width: 58%; }
}

@media (max-width: 560px) {
  .poker-night-grid,
  .friend-how ol,
  .friend-mode-picker { grid-template-columns: 1fr; }
  .poker-night-grid article { min-height: 0; }
  .friend-create-card form,
  .friend-join-card form,
  .friend-invite { grid-template-columns: 1fr; }
  .friend-table { height: min(64svh, 540px); min-height: 500px; margin: 10px -8px 18px; border-width: 9px; border-radius: 45% / 36%; }
  .friend-table::before { inset: 4px; border-radius: 45% / 36%; }
  .friend-table::after { top: 65%; font-size: 12px; letter-spacing: .08em; }
  .friend-seat { width: 38%; }
  .friend-seat.seat-1 { width: 44%; bottom: 1%; }
  .friend-seat.seat-4 { width: 44%; top: 1%; }
  .friend-seat.seat-2 { left: 1%; bottom: 23%; }
  .friend-seat.seat-3 { left: 1%; top: 21%; }
  .friend-seat.seat-5 { right: 1%; top: 21%; }
  .friend-seat.seat-6 { right: 1%; bottom: 23%; }
  .friend-board { width: 72%; }
  .friend-community { gap: 2px; }
  .friend-community .friend-card { width: 31px; padding: 3px; border-radius: 5px; font-size: 11px; }
  .friend-board-meta { gap: 8px; }
  .friend-clock { width: 32px; font-size: 11px; }
  .friend-action-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .friend-learning-heading { align-items: flex-start; flex-direction: column; }
  .friend-learning-heading small { text-align: left; }
  .friend-avatar-picker > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .friend-seat .friend-avatar { width: 43px; margin: 0; }
  .friend-seat-identity { gap: 5px; }
  .friend-seat-name { gap: 3px; }
  .friend-seat-name > strong { font-size: 11px; }
  .friend-seat-name small { padding: 2px 4px; font-size: 8px; }
  .friend-seat .friend-card { width: 23px; padding: 2px; font-size: 9px; }
  .friend-seat p { margin-left: 48px; font-size: 9px; }
  .friend-seat em { display: none; margin-left: 48px; }
  .friend-room-page.is-in-game,
  .friend-room-page.is-showdown { padding-bottom: 138px; }
  .friend-room-page.is-in-game .friend-room-header,
  .friend-room-page.is-showdown .friend-room-header,
  .friend-room-page.is-in-game .friend-status,
  .friend-room-page.is-showdown .friend-status,
  .friend-room-page.is-in-game .friend-room-rules,
  .friend-room-page.is-showdown .friend-room-rules { display: none; }
  .friend-room-page.is-in-game .friend-actions,
  .friend-room-page.is-showdown .friend-actions {
    position: fixed;
    z-index: 40;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    left: 8px;
    margin: 0;
    padding: 10px 12px;
    border-color: rgb(224 190 102 / 42%);
    border-radius: 16px;
    background: rgb(7 18 14 / 96%);
    box-shadow: 0 -12px 35px rgb(0 0 0 / 38%);
    backdrop-filter: blur(12px);
  }
  .friend-room-page.is-in-game .friend-action-heading,
  .friend-room-page.is-showdown .friend-action-heading { margin-bottom: 8px; }
  .friend-room-page.is-in-game .friend-action-heading strong,
  .friend-room-page.is-showdown .friend-action-heading strong { font-size: 17px; }
  .friend-room-page.is-in-game .friend-action-heading span,
  .friend-room-page.is-showdown .friend-action-heading span { font-size: 11px; }
  .friend-actions .friend-learning { margin-bottom: 8px; padding-bottom: 7px; }
  .friend-actions .friend-learning-heading { margin: 0 0 6px; }
  .friend-actions .friend-learning-heading strong { font-size: 14px; }
  .friend-actions .friend-learning-heading small,
  .friend-actions .friend-learning > p { display: none; }
  .friend-actions .friend-equity-meter { min-height: 30px; padding: 0 10px; font-size: 11px; }
  .friend-action-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .friend-action-row .button { width: 100%; padding: 9px 10px; }
  .friend-action-row label { width: auto; font-size: 10px; }
  .friend-action-row input { min-height: 34px; padding: 6px; }
  .friend-actions > .friend-clock { position: absolute; top: 10px; right: 12px; }
}
.session-context .button { flex: 0 0 auto; }
.print-actions {
  justify-content: flex-start;
  align-items: center;
}
.print-mobile-help {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.chart-downloads,
.publisher-kit {
  max-width: 900px;
  margin: 0 auto 28px;
}
.chart-downloads {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  background: linear-gradient(135deg, #10251d, #0c1713 70%);
}
.chart-downloads h2,
.publisher-kit h2,
.tie-break-panel h2 {
  margin-top: 0;
}
.chart-download-actions,
.publisher-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.chart-reviewed {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.button-secondary {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--accent);
}
.tie-break-panel {
  margin-top: 26px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0d1814;
}
.tie-break-panel ul {
  margin-bottom: 0;
  padding-left: 20px;
}
.tie-break-panel li + li {
  margin-top: 8px;
}
.publisher-kit textarea {
  width: 100%;
  margin: 8px 0 14px;
  padding: 14px;
  color: var(--text);
  background: #0d1814;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: 13px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  resize: vertical;
}
.publisher-actions [data-copy-status] {
  color: var(--good);
  font-weight: 700;
}

@media (max-width: 700px) {
  .tool-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .tool-head .tool-illustration {
    width: min(78vw, 260px);
    order: -1;
    margin-bottom: 0;
  }
  .tool-head h1 {
    font-size: clamp(34px, 10vw, 44px);
    overflow-wrap: anywhere;
  }
  .hand-choice-grid,
  .tool-input-grid,
  .tool-results,
  .ranking-reference ol {
    grid-template-columns: minmax(0, 1fr);
  }
  .session-progress {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }
  .session-checklist label {
    padding: 14px 12px;
  }
  .hand-choice {
    min-height: 118px;
    padding: 18px 14px;
  }
  .playing-card {
    width: clamp(39px, 15vw, 56px);
  }
  .hand-choice .playing-card {
    width: clamp(38px, 12.5vw, 48px);
  }
  .cost-visual {
    grid-template-columns: minmax(0, 1fr);
  }
  .poker-chip-stack {
    margin: 0 auto;
  }
  .print-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .chart-downloads {
    grid-template-columns: minmax(0, 1fr);
  }
  .chart-download-actions,
  .chart-download-actions .button {
    width: 100%;
  }
  .chart-download-actions .button {
    min-height: 50px;
    text-align: center;
  }
  .print-actions .button {
    width: 100%;
    min-height: 50px;
    text-align: center;
  }
  .printable-chart .table-wrap > table {
    width: 100%;
    min-width: 0;
  }
  .printable-chart thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .printable-chart tbody,
  .printable-chart tr,
  .printable-chart th,
  .printable-chart td {
    display: block;
    min-width: 0;
    max-width: none;
  }
  .printable-chart .table-wrap th:first-child,
  .printable-chart .table-wrap td:first-child {
    min-width: 0;
    max-width: none;
  }
  .printable-chart tr {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 4px 12px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }
  .printable-chart tr > * {
    padding: 0;
    border: 0;
  }
  .printable-chart tr > :nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    color: var(--accent);
    font: 700 26px Georgia, serif;
  }
  .printable-chart tr > :nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    color: var(--text);
    font-size: 18px;
  }
  .printable-chart tr > :nth-child(3),
  .printable-chart tr > :nth-child(4) {
    grid-column: 1 / -1;
  }
  .printable-chart .playing-hand.is-compact {
    margin: 10px 0;
    gap: 5px;
  }
  .printable-chart .playing-hand.is-compact .playing-card {
    width: clamp(38px, 14vw, 50px);
    padding: 5px;
    font-size: 14px;
  }
}

@media print {
  body {
    color: #000;
    background: #fff;
  }
  body > header,
  body > footer,
  .breadcrumbs,
  .tool-head .eyebrow,
  .print-actions,
  .chart-downloads,
  .publisher-kit,
  .related-links,
  .tool-safety,
  .skip-link {
    display: none !important;
  }
  main,
  .printable-chart {
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .printable-chart {
    border: 0;
    box-shadow: none;
  }
  .printable-chart .table-wrap {
    overflow: visible;
  }
  .printable-chart table {
    display: table;
    width: 100%;
    color: #000;
  }
  .printable-chart thead {
    display: table-header-group;
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }
  .printable-chart tbody {
    display: table-row-group;
  }
  .printable-chart tr {
    display: table-row;
  }
  .printable-chart th,
  .printable-chart td {
    display: table-cell;
  }
  .playing-card {
    color: #000;
    background: #fff;
    border-color: #777;
    box-shadow: none;
  }
  .playing-card.is-red {
    color: #a00000;
  }
  .printable-chart th,
  .printable-chart td {
    padding: 7px;
    color: #000;
    border-color: #777;
  }
  .printable-chart .notice {
    color: #000;
    background: transparent;
    border: 1px solid #777;
  }
}
