body {
  min-width: 320px;
  background: #080b0a;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}

input,
select,
textarea {
  font-size: 16px;
}

.btn {
  min-height: 2.5rem;
}

.site-footer {
  color: #d7e5d8;
  background: #060807;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  padding: 2rem 0;
}

.site-footer a {
  display: block;
  color: #f5d17a;
  margin-bottom: 0.35rem;
  text-decoration: none;
}

.site-footer .footer-inline-link {
  display: inline;
  margin-bottom: 0;
}

.site-footer a:hover,
.legal-page a,
.share-links a {
  color: #fff3bc;
}

.verify-card {
  max-width: 34rem;
}

.award-card,
.award-public-card {
  color: #1d1505;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.72), transparent 12rem),
    linear-gradient(145deg, #fff3bc, #d0912c);
  border: 2px solid rgba(91, 66, 29, 0.35);
  border-radius: 1.25rem;
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.35);
  padding: 1.25rem;
}

.award-public-card {
  max-width: 48rem;
  padding: 2.5rem;
  text-align: center;
}

.share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.share-links a {
  color: #1d1505;
  font-weight: 800;
}

.casino-page {
  overflow-x: hidden;
  color: #f8f1dd;
  background:
    radial-gradient(circle at 18% 4%, rgba(212, 175, 55, 0.2), transparent 18rem),
    radial-gradient(circle at top left, rgba(178, 34, 34, 0.3), transparent 30rem),
    radial-gradient(circle at top right, rgba(30, 99, 60, 0.34), transparent 28rem),
    linear-gradient(135deg, #070908 0%, #111816 45%, #050606 100%);
}

.casino-navbar {
  background:
    linear-gradient(90deg, rgba(7, 8, 8, 0.96), rgba(17, 20, 18, 0.92)),
    rgba(7, 8, 8, 0.92);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.brand-mark {
  display: inline-grid;
  width: 2.35rem;
  height: 2.35rem;
  margin-right: 0.55rem;
  place-items: center;
  color: #1b1208;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(145deg, #fff3bc, #c98a25);
  border: 2px dashed rgba(88, 36, 11, 0.5);
  border-radius: 50%;
  box-shadow: 0 0 0 0.18rem rgba(255, 230, 143, 0.18);
}

.brand-title {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.pwa-nav-install {
  display: inline-flex;
  align-items: center;
}

.chip-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.35rem 0.75rem;
  color: #fff;
  font-weight: 800;
  line-height: 1;
  border: 2px dashed rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  box-shadow: inset 0 0 0 0.18rem rgba(0, 0, 0, 0.18), 0 0.4rem 1rem rgba(0, 0, 0, 0.3);
}

.chip-score {
  background: radial-gradient(circle, #d82635 0%, #a80f1a 70%);
}

.chip-select {
  background: radial-gradient(circle, #244ee8 0%, #102d8f 70%);
}

.table-score-corner {
  position: absolute;
  top: clamp(0.65rem, 1.6vw, 1rem);
  right: clamp(0.65rem, 1.6vw, 1rem);
  z-index: 3;
}

.casino-shell {
  max-width: 1500px;
  min-height: calc(100vh - 67px);
}

.table-header {
  text-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.55);
}

.eyebrow {
  color: #d8b35d;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.display-title {
  font-size: clamp(1.35rem, 3vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff7df;
}

.table-status {
  color: #d7e5d8;
  font-weight: 600;
}

.ai-generation-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  color: #1d1505;
  background: linear-gradient(135deg, #f5d17a, #d0912c);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.18);
}

.ai-loading-active {
  cursor: wait;
}

.ai-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 50% 38%, rgba(245, 209, 122, 0.18), transparent 18rem),
    rgba(2, 5, 4, 0.72);
  backdrop-filter: blur(8px);
}

.ai-loading-panel {
  width: min(92vw, 30rem);
  padding: 2rem;
  text-align: center;
  color: #fff7df;
  background:
    radial-gradient(circle at top, rgba(245, 209, 122, 0.2), transparent 13rem),
    linear-gradient(145deg, rgba(14, 22, 19, 0.96), rgba(5, 8, 7, 0.98));
  border: 1px solid rgba(245, 209, 122, 0.42);
  border-radius: 1.5rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.55);
}

.ai-loading-orbit {
  position: relative;
  height: 8rem;
  margin-bottom: 1rem;
}

.ai-loading-card {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 4.4rem;
  height: 6.1rem;
  place-items: center;
  color: #111;
  font-size: 1.25rem;
  font-weight: 900;
  background: linear-gradient(145deg, #fffdf4, #eadfbd);
  border: 1px solid rgba(91, 66, 29, 0.25);
  border-radius: 0.75rem;
  box-shadow: 0 1rem 1.8rem rgba(0, 0, 0, 0.35);
  transform-origin: 50% 95%;
  animation: ai-card-deal 1.45s ease-in-out infinite;
}

.ai-loading-card.red {
  color: #b51f2a;
}

.ai-loading-card-1 {
  margin-left: -5.2rem;
  transform: translateY(-50%) rotate(-14deg);
}

.ai-loading-card-2 {
  margin-left: -2.2rem;
  animation-delay: 0.16s;
  transform: translateY(-58%) rotate(2deg);
}

.ai-loading-card-3 {
  margin-left: 0.8rem;
  animation-delay: 0.32s;
  transform: translateY(-50%) rotate(15deg);
}

.ai-loading-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.ai-loading-steps span {
  padding: 0.35rem 0.7rem;
  color: #1d1505;
  background: linear-gradient(135deg, #f5d17a, #d0912c);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: ai-chip-pulse 1.3s ease-in-out infinite;
}

.ai-loading-steps span:nth-child(2) {
  animation-delay: 0.18s;
}

.ai-loading-steps span:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes ai-card-deal {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.18);
    translate: 0 -0.55rem;
  }
}

@keyframes ai-chip-pulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.landing-page {
  color: #fff7df;
}

.landing-hero {
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(3rem, 7vw, 6rem);
}

.hero-title {
  max-width: 12ch;
  font-size: clamp(3rem, 8vw, 6.6rem);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.hero-copy {
  max-width: 650px;
  color: #d7e5d8;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.hero-preview {
  transform: rotate(1.5deg);
}

.hero-award-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 650px;
  margin-top: 1.35rem;
}

.hero-award-card {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 0.9rem;
  color: #1d1505;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.64), transparent 8rem),
    linear-gradient(145deg, #fff3bc, #d0912c);
  border: 1px solid rgba(91, 66, 29, 0.36);
  border-radius: 1rem;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.24);
}

.hero-award-card-certificate {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.7), transparent 8rem),
    linear-gradient(145deg, #fff7df, #d6a145);
}

.hero-award-card strong {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 950;
  line-height: 1.1;
}

.hero-award-card p {
  margin: 0;
  color: #3f2b10;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

.hero-award-seal {
  display: grid;
  flex: 0 0 auto;
  width: 3.8rem;
  height: 3.8rem;
  place-items: center;
  color: #1d1505;
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: radial-gradient(circle, #fff7df, #d0912c);
  border: 2px dashed rgba(91, 66, 29, 0.42);
  border-radius: 50%;
}

.landing-felt {
  display: grid;
  gap: 1rem;
  min-height: 520px;
  place-items: center;
}

.mini-card-row {
  display: flex;
  gap: 0.75rem;
}

.mini-playing-card {
  display: grid;
  width: 78px;
  height: 104px;
  place-items: center;
  color: #151916;
  font-size: 1.5rem;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
  background: linear-gradient(145deg, #fff, #eee3c8);
  border-radius: 0.85rem;
  box-shadow: 0 1rem 1.5rem rgba(0, 0, 0, 0.28);
}

.mini-playing-card span {
  font-size: 1.8rem;
}

.mini-playing-card.red {
  color: #c5192d;
}

.blank-mini {
  color: #70776f;
  background: repeating-linear-gradient(135deg, #e1e4e6 0 8px, #f8f9fa 8px 16px);
}

.landing-quiz-card {
  width: min(82%, 340px);
  padding: 1.25rem;
  color: #241b12;
  background: linear-gradient(160deg, rgba(255, 251, 239, 0.98), rgba(235, 225, 197, 0.98));
  border: 1px solid rgba(226, 190, 93, 0.5);
  border-radius: 1.25rem;
  box-shadow: 0 1.5rem 2.5rem rgba(0, 0, 0, 0.32);
}

.landing-quiz-card h2 {
  margin: 1rem 0 0.5rem;
  color: #0e7443;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-preview-caption {
  color: #f5d17a;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.landing-section {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.landing-section-alt {
  background: rgba(255, 255, 255, 0.035);
  border-block: 1px solid rgba(245, 209, 122, 0.14);
}

.section-title {
  color: #fff7df;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.landing-card,
.step-card,
.pricing-card {
  color: #f8f1dd;
  background:
    radial-gradient(circle at top left, rgba(245, 209, 122, 0.14), transparent 16rem),
    rgba(9, 13, 12, 0.82);
  border: 1px solid rgba(245, 209, 122, 0.26);
  border-radius: 1.25rem;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.28);
}

.landing-card {
  padding: 1.35rem;
}

.landing-card h3 {
  color: #f5d17a;
  font-size: 1.05rem;
  font-weight: 900;
}

.landing-card p,
.pricing-card p {
  color: #d7e5d8;
}

.step-card {
  min-height: 105px;
  padding: 1.25rem;
  font-weight: 800;
}

.award-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  align-items: stretch;
}

.award-preview-card {
  position: relative;
  overflow: hidden;
  min-height: 22rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  color: #1d1505;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.78), transparent 12rem),
    linear-gradient(145deg, #fff3bc, #d0912c);
  border: 2px solid rgba(91, 66, 29, 0.35);
  border-radius: 1.35rem;
  box-shadow: 0 1.8rem 3.8rem rgba(0, 0, 0, 0.36);
}

.award-preview-card::before {
  position: absolute;
  inset: auto -3rem -4rem auto;
  width: 12rem;
  height: 12rem;
  content: "";
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(91, 66, 29, 0.18);
  border-radius: 50%;
}

.award-preview-card h3 {
  max-width: 12ch;
  margin-bottom: 0.85rem;
  color: #241505;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.award-preview-card p:not(.eyebrow) {
  max-width: 24rem;
  color: #3f2b10;
  font-weight: 750;
}

.award-preview-certificate {
  transform: rotate(1.2deg);
}

.award-preview-badge {
  align-self: center;
  min-height: 18rem;
  transform: rotate(-1.5deg);
}

.award-preview-seal {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  display: grid;
  width: 5.8rem;
  height: 5.8rem;
  place-items: center;
  color: #1d1505;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: radial-gradient(circle, #fff7df, #d0912c);
  border: 2px dashed rgba(91, 66, 29, 0.42);
  border-radius: 50%;
  box-shadow: 0 0.9rem 1.8rem rgba(0, 0, 0, 0.25);
}

.award-preview-share {
  position: relative;
  display: inline-flex;
  max-width: 18rem;
  padding: 0.55rem 0.75rem;
  color: #fff7df;
  font-size: 0.76rem;
  font-weight: 850;
  background: rgba(20, 18, 10, 0.78);
  border-radius: 999px;
}

.pricing-card {
  max-width: 760px;
  padding: clamp(1.5rem, 5vw, 3rem);
  text-align: center;
}

.pricing-card h2 {
  color: #f5d17a;
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 950;
  letter-spacing: -0.05em;
}

.price-plan-card {
  min-height: 17rem;
}

.price-plan-amount,
.price-included-title {
  color: #ffc107;
  font-size: clamp(3.25rem, 10vw, 5rem);
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.price-savings-badge {
  color: #06291b;
}

.topic-card {
  display: block;
  cursor: pointer;
}

.topic-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.topic-card-body {
  display: block;
  height: 100%;
  padding: 1.25rem;
  color: #f8f1dd;
  background:
    radial-gradient(circle at top left, rgba(245, 209, 122, 0.12), transparent 12rem),
    rgba(9, 13, 12, 0.82);
  border: 1px solid rgba(245, 209, 122, 0.25);
  border-radius: 1.25rem;
  box-shadow: 0 1.25rem 2.25rem rgba(0, 0, 0, 0.25);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.topic-card:hover .topic-card-body,
.topic-radio:checked + .topic-card-body {
  transform: translateY(-3px);
  border-color: #f5d17a;
  box-shadow: 0 0 0 0.25rem rgba(245, 209, 122, 0.2), 0 1.4rem 2.4rem rgba(0, 0, 0, 0.32);
}

.topic-group-index {
  position: sticky;
  top: 5.5rem;
  display: grid;
  gap: 0.25rem;
  background: rgba(9, 13, 12, 0.72);
  border: 1px solid rgba(245, 209, 122, 0.22);
}

.topic-group-index-link {
  gap: 0.65rem;
  padding: 0.45rem 0.35rem;
  color: #d7e5d8;
  border-radius: 0.75rem;
  line-height: 1.25;
}

.topic-group-index-link:hover,
.topic-group-index-link:focus-visible {
  color: #f5d17a;
  background: rgba(245, 209, 122, 0.08);
}

.topic-group-index-number,
.topic-group-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  color: #1d1505;
  font-weight: 950;
  background: linear-gradient(135deg, #f5d17a, #d0912c);
  border-radius: 999px;
}

.topic-group-index-label {
  min-width: 0;
}

.custom-topic-callout {
  color: #f8f1dd;
  background:
    radial-gradient(circle at top left, rgba(245, 209, 122, 0.18), transparent 14rem),
    linear-gradient(135deg, rgba(21, 74, 45, 0.82), rgba(9, 13, 12, 0.92));
  border: 1px solid rgba(245, 209, 122, 0.32);
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.26);
}

.suggested-topic-option {
  display: block;
  padding: 1.1rem;
  color: #f8f1dd;
  background:
    radial-gradient(circle at top left, rgba(245, 209, 122, 0.16), transparent 12rem),
    rgba(9, 13, 12, 0.86);
  border: 1px solid rgba(245, 209, 122, 0.34);
  border-radius: 1rem;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.24);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.suggested-topic-option:hover,
.suggested-topic-option:focus-visible {
  border-color: #f5d17a;
  box-shadow: 0 0 0 0.25rem rgba(245, 209, 122, 0.16), 0 1.2rem 2.2rem rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.suggested-topic-name,
.suggested-topic-copy {
  display: block;
}

.suggested-topic-name {
  color: #f5d17a;
  font-size: 1.35rem;
  font-weight: 950;
}

.suggested-topic-copy {
  margin-top: 0.55rem;
  color: #d7e5d8;
}

.topic-name {
  display: block;
  color: #f5d17a;
  font-size: 1.15rem;
  font-weight: 950;
}

.topic-description {
  display: block;
  margin-top: 0.65rem;
  color: #d7e5d8;
  line-height: 1.5;
}

.poker-table {
  max-width: 1280px;
}

.table-rail {
  padding: clamp(0.55rem, 1.5vw, 1.1rem);
  background:
    radial-gradient(circle at 25% 12%, rgba(255, 224, 143, 0.22), transparent 18rem),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 18px),
    linear-gradient(145deg, #744019, #2d1409 52%, #110805);
  border: 1px solid rgba(255, 224, 143, 0.5);
  border-radius: 2.2rem;
  box-shadow:
    inset 0 0 0 0.08rem rgba(255, 233, 173, 0.18),
    inset 0 0 0 0.35rem rgba(20, 8, 3, 0.35),
    0 2.4rem 5rem rgba(0, 0, 0, 0.55);
}

.table-felt {
  position: relative;
  overflow: hidden;
  min-height: clamp(455px, calc(100vh - 245px), 660px);
  padding: clamp(0.8rem, 2vw, 1.5rem);
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.13), transparent 44%),
    radial-gradient(circle at 50% 110%, rgba(0, 0, 0, 0.28), transparent 36%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.018) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.035) 0 1px, transparent 1px 8px),
    linear-gradient(135deg, #147244, #0b472d 58%, #052a1d);
  border: 2px solid rgba(255, 236, 173, 0.28);
  border-radius: 1.8rem;
  box-shadow: inset 0 0 5rem rgba(0, 0, 0, 0.55);
}

.table-felt::before {
  position: absolute;
  inset: 10%;
  z-index: 0;
  content: "";
  border: 1px solid rgba(255, 236, 173, 0.22);
  border-radius: 50%;
  pointer-events: none;
}

.table-felt::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background: radial-gradient(ellipse at center, transparent 48%, rgba(0, 0, 0, 0.22) 100%);
  pointer-events: none;
}

.table-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  color: rgba(245, 209, 122, 0.16);
  font-size: clamp(3rem, 11vw, 8rem);
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
  pointer-events: none;
  text-transform: uppercase;
  transform: translate(-50%, -50%) rotate(-12deg);
  white-space: nowrap;
}

.seat-zone,
.community-zone {
  position: relative;
  z-index: 2;
}

.dealer-zone {
  margin-bottom: clamp(0.8rem, 2vw, 1.5rem);
}

.player-zone {
  margin-top: clamp(0.8rem, 2vw, 1.5rem);
}

.zone-label {
  margin-bottom: 0.45rem;
  color: #f5d17a;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0.2rem 0.7rem rgba(0, 0, 0, 0.6);
}

.text-felt-muted {
  color: rgba(234, 247, 230, 0.72);
}

.table-guide-card {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: clamp(1rem, 3vw, 1.6rem);
  color: #f8f1dd;
  background:
    radial-gradient(circle at top left, rgba(245, 209, 122, 0.18), transparent 12rem),
    rgba(5, 18, 13, 0.78);
  border: 1px solid rgba(245, 209, 122, 0.34);
  border-radius: 1.25rem;
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.3);
}

.table-guide-card h2 {
  color: #fff7df;
  font-weight: 900;
}

.table-guide-card li {
  margin-bottom: 0.45rem;
  color: #d7e5d8;
}

.poker-hand-list {
  display: grid;
  gap: 0.65rem;
}

.poker-hand-list > div {
  display: grid;
  grid-template-columns: minmax(9rem, 0.45fr) 1fr;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  color: #d7e5d8;
  background: rgba(5, 18, 13, 0.58);
  border: 1px solid rgba(245, 209, 122, 0.22);
  border-radius: 0.85rem;
}

.poker-hand-list strong {
  color: #f5d17a;
}

.card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

#tableCards.selection-summary {
  justify-content: center !important;
}

#tableCards.guide-placeholder {
  align-items: center;
  min-height: 15rem;
}

.loading-guide-placeholder {
  width: 100%;
}

.loading-guide-card {
  overflow: hidden;
}

.loading-guide-card::before {
  position: absolute;
  inset: -35%;
  z-index: -1;
  background:
    conic-gradient(from 0deg, transparent, rgba(245, 209, 122, 0.16), transparent 35%),
    radial-gradient(circle, rgba(245, 209, 122, 0.12), transparent 55%);
  content: "";
  animation: loading-table-glow 4.2s linear infinite;
}

.loading-dealer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.loading-chip {
  display: inline-grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  color: #1d1505;
  font-size: 0.72rem;
  font-weight: 900;
  background: linear-gradient(135deg, #f5d17a, #d0912c);
  border: 2px dashed rgba(91, 66, 29, 0.42);
  border-radius: 999px;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.24);
  animation: loading-chip-pulse 1.4s ease-in-out infinite;
}

.loading-dots {
  display: inline-flex;
  gap: 0.35rem;
}

.loading-dots span {
  width: 0.55rem;
  height: 0.55rem;
  background: #f5d17a;
  border-radius: 999px;
  opacity: 0.45;
  animation: loading-dot 1.2s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

.loading-quiz-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1rem 0;
}

.loading-quiz-card {
  min-height: 4.4rem;
  display: grid;
  place-items: center;
  color: #1d1505;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(145deg, #fffdf4, #eadfbd);
  border: 1px solid rgba(91, 66, 29, 0.22);
  border-radius: 0.85rem;
  box-shadow: 0 0.8rem 1.5rem rgba(0, 0, 0, 0.24);
  animation: loading-card-deal 1.8s ease-in-out infinite;
}

.loading-quiz-card-2 {
  animation-delay: 0.18s;
}

.loading-quiz-card-3 {
  animation-delay: 0.36s;
}

.loading-step-list li {
  animation: loading-step-fade 2.8s ease-in-out infinite;
}

.loading-step-list li:nth-child(2) {
  animation-delay: 0.25s;
}

.loading-step-list li:nth-child(3) {
  animation-delay: 0.5s;
}

.loading-playing-card {
  background:
    repeating-linear-gradient(45deg, rgba(245, 209, 122, 0.22) 0 0.35rem, transparent 0.35rem 0.7rem),
    linear-gradient(145deg, #153d2a, #07120d);
  color: #f5d17a;
  border-color: rgba(245, 209, 122, 0.38);
  animation: loading-card-breathe 1.8s ease-in-out infinite;
}

.loading-playing-card:nth-child(2) {
  animation-delay: 0.2s;
}

.playing-card,
.game-card {
  border-radius: 1rem;
}

.playing-card {
  width: 96px;
  min-height: 124px;
  color: #18201c;
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.98), transparent 3rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 232, 208, 0.98)),
    #fff;
  border: 1px solid rgba(63, 42, 19, 0.24);
  box-shadow:
    inset 0 0 0 0.18rem rgba(255, 255, 255, 0.42),
    0 0.8rem 1.4rem rgba(0, 0, 0, 0.26);
}

.playing-card .rank {
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 900;
}

.playing-card.red {
  color: #c5192d;
}

.card-corner {
  line-height: 1;
}

.corner-suit {
  font-size: 1rem;
  font-weight: 900;
}

.rotate-corner {
  transform: rotate(180deg);
}

.suit-mark {
  font-size: 2.15rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0.15rem 0.2rem rgba(0, 0, 0, 0.08);
}

.game-card {
  min-height: clamp(145px, 20vh, 190px);
  color: #241b12;
  cursor: pointer;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 5rem),
    linear-gradient(160deg, rgba(255, 251, 239, 0.98), rgba(235, 225, 197, 0.98)),
    #fff;
  border: 1px solid rgba(226, 190, 93, 0.5);
  box-shadow:
    inset 0 0 0 0.16rem rgba(255, 255, 255, 0.36),
    0 1rem 1.8rem rgba(0, 0, 0, 0.26);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.game-card:hover:not(.disabled) {
  transform: translateY(-4px);
  box-shadow: 0 1.35rem 2.25rem rgba(0, 0, 0, 0.32);
}

.game-card.selected {
  border-color: #f5d17a;
  box-shadow:
    0 0 0 0.25rem rgba(245, 209, 122, 0.26),
    0 0 1.5rem rgba(245, 209, 122, 0.22),
    0 1rem 1.8rem rgba(0, 0, 0, 0.28);
}

.game-card.correct {
  border-color: #41d789;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 5rem),
    linear-gradient(160deg, rgba(241, 255, 246, 0.98), rgba(203, 241, 216, 0.98)),
    #eefbf2;
}

.game-card.blank {
  color: #46200f;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.74), transparent 5rem),
    linear-gradient(160deg, rgba(255, 239, 214, 0.98), rgba(255, 218, 198, 0.98)),
    #ffe0ca;
  border-color: rgba(210, 83, 58, 0.58);
}

.game-card.disabled {
  cursor: not-allowed;
}

.qa-text {
  font-size: clamp(0.78rem, 1vw, 0.9rem);
}

.qa-label {
  color: #7d561b;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.qa-question {
  font-weight: 650;
  line-height: 1.35;
}

.table-card-id,
.selected-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  padding: 0.2rem 0.45rem;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
  border-radius: 999px;
}

.table-card-id {
  color: #f8f1dd;
  background: linear-gradient(145deg, #141716, #282e2a);
  box-shadow: 0 0.2rem 0.45rem rgba(0, 0, 0, 0.22);
}

.selected-pill {
  color: #10200f;
  background: linear-gradient(135deg, #f6d97a, #f0aa2d);
}

.correct-label {
  color: #0e7443;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.revealed-card .playing-card {
  margin-inline: auto;
}

.mistake-review {
  height: 100%;
}

.incorrect-label {
  color: #a33922;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.answer-compare {
  display: grid;
  gap: 0.5rem;
}

.answer-compare > div {
  padding: 0.55rem 0.65rem;
  border-radius: 0.7rem;
}

.answer-compare span {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.answer-compare strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.2;
}

.wrong-answer {
  color: #7c2416;
  background: rgba(195, 54, 35, 0.12);
  border: 1px solid rgba(195, 54, 35, 0.28);
}

.right-answer {
  color: #0f653d;
  background: rgba(38, 166, 93, 0.14);
  border: 1px solid rgba(38, 166, 93, 0.3);
}

.mobile-blank-card-preview {
  display: grid;
  min-height: 100%;
  place-items: center;
  text-align: center;
}

.blank-card-mark {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  margin-block: 0.35rem;
  color: #7c2416;
  font-size: 2rem;
  font-weight: 950;
  background: rgba(195, 54, 35, 0.12);
  border: 2px dashed rgba(195, 54, 35, 0.42);
  border-radius: 1rem;
}

.reviewable-blank {
  cursor: pointer;
}

.review-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.5rem;
  padding: 0.18rem 0.55rem;
  color: #1d1505;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #f5d17a, #d0912c);
  border-radius: 999px;
  box-shadow: 0 0.45rem 0.9rem rgba(0, 0, 0, 0.16);
}

.ask-ai-button {
  color: #1d1505;
  font-weight: 900;
  background: linear-gradient(135deg, #f5d17a, #d0912c);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 0.55rem 1rem rgba(0, 0, 0, 0.16);
}

.ask-ai-button:hover,
.ask-ai-button:focus-visible {
  color: #1d1505;
  filter: brightness(1.05);
}

.mobile-game-menu-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.mobile-game-menu-form {
  margin: 0;
}

.mobile-game-menu-tile {
  display: flex;
  min-height: 7rem;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.85rem;
  color: #f8f1dd;
  text-align: center;
  text-decoration: none;
  background:
    radial-gradient(circle at 20% 10%, rgba(245, 209, 122, 0.22), transparent 4rem),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(245, 209, 122, 0.28);
  border-radius: 1.25rem;
  box-shadow: 0 0.9rem 1.7rem rgba(0, 0, 0, 0.22);
  font-weight: 900;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

button.mobile-game-menu-tile {
  appearance: none;
  border-color: rgba(245, 209, 122, 0.28);
}

.mobile-game-menu-tile:hover,
.mobile-game-menu-tile:focus-visible {
  color: #f8f1dd;
  background:
    radial-gradient(circle at 20% 10%, rgba(245, 209, 122, 0.32), transparent 4rem),
    rgba(255, 255, 255, 0.1);
  border-color: rgba(245, 209, 122, 0.62);
  transform: translateY(-2px);
}

.mobile-game-menu-tile-primary {
  color: #1d1505;
  background: linear-gradient(135deg, #f5d17a, #d0912c);
}

.mobile-game-menu-tile-primary:hover,
.mobile-game-menu-tile-primary:focus-visible {
  color: #1d1505;
  background: linear-gradient(135deg, #ffe18a, #d99a34);
}

.mobile-game-menu-icon {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  color: #1d1505;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.75), transparent 1.5rem),
    linear-gradient(135deg, #f5d17a, #d0912c);
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-radius: 1rem;
  box-shadow: 0 0.6rem 1.1rem rgba(0, 0, 0, 0.25);
}

.mobile-floating-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: calc(0.65rem + env(safe-area-inset-top));
  right: calc(0.65rem + env(safe-area-inset-right));
  z-index: 1060;
  min-height: 2.55rem;
  padding: 0.45rem 0.8rem;
  color: #1d1505;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #f5d17a, #d0912c);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.35);
  transition: opacity 180ms ease, transform 180ms ease;
}

.mobile-game-hud,
.mobile-game-tools {
  display: none;
}

.table-topic-pill {
  display: none;
}

body.mobile-game-menu-autohide:not(.mobile-game-menu-visible) .mobile-floating-menu-button {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.5rem);
}

.casino-btn-outline {
  color: #f5d17a;
  border-color: rgba(245, 209, 122, 0.75);
  background: rgba(8, 12, 10, 0.24);
  backdrop-filter: blur(6px);
}

.casino-btn-outline:hover {
  color: #1c1208;
  background: #f5d17a;
  border-color: #f5d17a;
}

.action-panel,
.result-panel {
  max-width: 980px;
  padding: 0.75rem;
  color: #f8f1dd;
  background: rgba(9, 13, 12, 0.86);
  border: 1px solid rgba(245, 209, 122, 0.3);
  border-radius: 1.25rem;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.action-panel {
  max-width: 930px;
  padding: 0.65rem;
  background:
    linear-gradient(135deg, rgba(245, 209, 122, 0.08), transparent),
    rgba(7, 10, 9, 0.9);
}

.casino-toast {
  color: #f8f1dd;
  background: rgba(9, 13, 12, 0.94);
  border: 1px solid rgba(245, 209, 122, 0.35);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.35);
}

.casino-toast .toast-header {
  color: #2a1708;
  background: linear-gradient(135deg, #f5d17a, #d0912c);
}

.casino-modal {
  color: #f8f1dd;
  background:
    radial-gradient(circle at top left, rgba(245, 209, 122, 0.16), transparent 18rem),
    linear-gradient(145deg, #121817, #070909);
  border: 1px solid rgba(245, 209, 122, 0.38);
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.55);
}

.casino-modal .modal-header {
  border-bottom-color: rgba(245, 209, 122, 0.24);
}

.casino-modal .modal-body {
  color: #f3ead0;
}

.btn-bet,
.btn-fold {
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 0;
}

.btn-bet {
  color: #062014;
  background: linear-gradient(135deg, #78f7ae, #1fb264 58%, #11743d);
  box-shadow: inset 0 0.12rem 0 rgba(255, 255, 255, 0.38), 0 0.75rem 1.25rem rgba(0, 0, 0, 0.22);
}

.btn-fold {
  color: #2c1807;
  background: linear-gradient(135deg, #ffe084, #db9426 58%, #a75e15);
  box-shadow: inset 0 0.12rem 0 rgba(255, 255, 255, 0.38), 0 0.75rem 1.25rem rgba(0, 0, 0, 0.22);
}

.btn-bet:disabled,
.btn-fold:disabled {
  color: rgba(255, 255, 255, 0.55);
  background: #4b5550;
}

.result-panel .border {
  color: #1c211d;
  background: rgba(255, 255, 255, 0.94);
}

.casino-modal .border {
  color: #1c211d;
  background: rgba(255, 255, 255, 0.94);
}

.topic-suggestion-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.saved-games-list {
  display: grid;
  gap: 0.75rem;
}

.saved-game-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.9rem;
  background: rgba(0, 0, 0, 0.18);
}

.topic-suggestion-chip {
  padding: 0.42rem 0.7rem;
  color: #f8f1dd;
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(245, 209, 122, 0.35);
  border-radius: 999px;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.topic-suggestion-chip:hover,
.topic-suggestion-chip:focus-visible {
  color: #1d1505;
  background: linear-gradient(135deg, #f5d17a, #d0912c);
  border-color: #f5d17a;
  transform: translateY(-2px);
}

.round-win-celebration {
  position: relative;
  overflow: hidden;
  min-height: 11rem;
  padding: 1.35rem 10rem 1.35rem 1.35rem;
  color: #211606;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.78), transparent 5rem),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.42), transparent 6rem),
    linear-gradient(135deg, #fff3b5, #ffd85b 52%, #f0a51e);
  border: 0;
  box-shadow:
    0 0 0 0.25rem rgba(245, 209, 122, 0.24),
    0 1rem 2.5rem rgba(245, 170, 45, 0.22);
  animation: round-win-pop 700ms cubic-bezier(0.2, 1.25, 0.3, 1);
}

.round-win-title {
  position: relative;
  z-index: 2;
  max-width: 26rem;
  color: #211606;
  font-size: clamp(1.8rem, 5vw, 3.1rem);
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.round-win-copy {
  position: relative;
  z-index: 2;
  max-width: 28rem;
  margin-top: 0.65rem;
  font-size: 1.05rem;
}

.round-win-medal {
  position: absolute;
  right: 1.8rem;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 6rem;
  height: 6rem;
  place-items: center;
  color: #2d1a06;
  font-size: 3rem;
  font-weight: 950;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.82), transparent 2rem),
    linear-gradient(135deg, #fff4b5, #e59a20);
  border: 0.22rem solid rgba(126, 76, 12, 0.24);
  border-radius: 50%;
  box-shadow: 0 1rem 2rem rgba(73, 39, 4, 0.25);
  transform: translateY(-50%);
  animation: round-win-medal 1.3s ease-in-out infinite;
}

.round-win-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.round-win-burst span {
  position: absolute;
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  color: #211606;
  font-size: 0.8rem;
  font-weight: 950;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(115, 76, 16, 0.2);
  border-radius: 50%;
  animation: round-win-float 1.8s ease-in-out infinite;
}

.round-win-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.round-win-confetti span {
  position: absolute;
  top: -1rem;
  left: calc((var(--confetti-index) + 1) * 6.7%);
  width: 0.55rem;
  height: 1rem;
  background: hsl(calc(var(--confetti-index) * 31deg), 86%, 46%);
  border-radius: 0.2rem;
  opacity: 0;
  transform: translateY(-1rem) rotate(0deg);
  animation: round-win-confetti 1.65s ease-out forwards;
  animation-delay: calc(var(--confetti-index) * 70ms);
}

.round-win-burst span:nth-child(1) {
  top: 0.55rem;
  right: 1.2rem;
}

.round-win-burst span:nth-child(2) {
  right: 4.8rem;
  bottom: 0.65rem;
  animation-delay: 0.18s;
}

.round-win-burst span:nth-child(3) {
  top: 0.75rem;
  right: 8.2rem;
  animation-delay: 0.36s;
}

.admin-metric {
  min-height: 8rem;
  padding: 1.25rem;
  color: #f8f1dd;
  background:
    radial-gradient(circle at top right, rgba(245, 209, 122, 0.2), transparent 8rem),
    rgba(6, 15, 12, 0.88);
  border: 1px solid rgba(245, 209, 122, 0.28);
  border-radius: 1.25rem;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.25);
}

.admin-metric span {
  display: block;
  color: rgba(248, 241, 221, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-metric strong {
  display: block;
  margin-top: 0.5rem;
  color: #f5d17a;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1;
}

.pwa-install-card {
  max-width: 18rem;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(245, 209, 122, 0.28);
  border-radius: 1rem;
}

.offline-card {
  max-width: 42rem;
}

.reveal-pulse {
  animation: reveal-pulse 650ms ease;
}

@keyframes reveal-pulse {
  0% {
    transform: scale(0.97);
  }
  60% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes round-win-float {
  0%,
  100% {
    opacity: 0.68;
    transform: translateY(0) rotate(-5deg) scale(0.95);
  }
  50% {
    opacity: 1;
    transform: translateY(-0.45rem) rotate(7deg) scale(1.04);
  }
}

@keyframes round-win-pop {
  0% {
    opacity: 0;
    transform: translateY(1rem) scale(0.96);
  }
  65% {
    opacity: 1;
    transform: translateY(-0.15rem) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes round-win-medal {
  0%,
  100% {
    transform: translateY(-50%) rotate(-4deg) scale(1);
  }
  50% {
    transform: translateY(-54%) rotate(5deg) scale(1.06);
  }
}

@keyframes round-win-confetti {
  0% {
    opacity: 0;
    transform: translateY(-1rem) rotate(0deg);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(12rem) rotate(420deg);
  }
}

@keyframes loading-table-glow {
  to {
    transform: rotate(1turn);
  }
}

@keyframes loading-chip-pulse {
  0%,
  100% {
    transform: scale(0.96);
    filter: brightness(0.96);
  }
  50% {
    transform: scale(1.04);
    filter: brightness(1.12);
  }
}

@keyframes loading-dot {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-0.25rem);
  }
}

@keyframes loading-card-deal {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-0.35rem) rotate(-1deg);
  }
}

@keyframes loading-step-fade {
  0%,
  100% {
    color: #d7e5d8;
  }
  50% {
    color: #fff3bc;
  }
}

@keyframes loading-card-breathe {
  0%,
  100% {
    transform: translateY(0);
    filter: brightness(0.95);
  }
  50% {
    transform: translateY(-0.25rem);
    filter: brightness(1.15);
  }
}

@media (max-width: 768px) {
  body {
    padding-right: env(safe-area-inset-right);
    padding-left: env(safe-area-inset-left);
  }

  main.casino-page {
    min-height: 100svh !important;
  }

  .casino-navbar {
    position: static;
  }

  .navbar-nav {
    gap: 0.35rem;
    padding-top: 0.75rem;
  }

  .navbar-nav .nav-link,
  .navbar-nav .btn,
  .navbar-nav .pwa-nav-install,
  .navbar-nav form,
  .navbar-nav form .btn {
    width: 100%;
  }

  .navbar-nav .nav-link,
  .navbar-nav .pwa-nav-install .btn,
  .navbar-nav form .btn {
    min-height: 2.75rem;
    display: flex;
    align-items: center;
  }

  .admin-nav > .d-flex {
    width: 100%;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    padding-bottom: 0.45rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .admin-nav > .d-flex .btn,
  .admin-nav > .d-flex form {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .admin-nav > .d-flex form .btn {
    width: auto;
  }

  .casino-shell {
    min-height: auto;
    padding-top: 0.5rem !important;
    padding-bottom: 0.75rem !important;
  }

  .brand-title {
    display: none;
  }

  .chip-badge {
    min-height: 2rem;
    padding-inline: 0.55rem;
    font-size: 0.82rem;
  }

  .table-header {
    margin-bottom: 0.45rem !important;
    text-align: center;
  }

  .casino-modal,
  .pricing-card,
  .landing-card,
  .award-card,
  .award-public-card {
    border-radius: 1rem !important;
  }

  .topic-group-index {
    position: static;
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding: 0.75rem !important;
    margin-bottom: 0.5rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .topic-group-index .eyebrow {
    display: none;
  }

  .topic-group-index-link {
    flex: 0 0 auto;
    min-height: 2.75rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(245, 209, 122, 0.18);
    border-radius: 999px;
    scroll-snap-align: start;
  }

  .topic-card-body {
    padding: 1rem;
  }

  .topic-group-section {
    scroll-margin-top: 0.75rem;
  }

  .casino-modal .btn-lg,
  .pricing-card .btn-lg {
    width: 100%;
  }

  .list-group-item .btn {
    min-height: 2.5rem;
  }

  .award-public-card {
    padding: 1.25rem;
  }

  .share-links {
    align-items: stretch;
  }

  .share-links a,
  .share-links button {
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
  }

  .award-preview-grid {
    grid-template-columns: 1fr;
  }

  .award-preview-card,
  .award-preview-badge,
  .award-preview-certificate {
    min-height: 17rem;
    transform: none;
  }

  .hero-award-preview {
    grid-template-columns: 1fr;
  }

  .poker-hand-list > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .table-header .eyebrow,
  .display-title {
    display: none;
  }

  .table-header > div:last-child {
    width: 100%;
    justify-content: space-between;
  }

  .table-status {
    font-size: 0.82rem;
    text-align: left;
  }

  .table-rail {
    border-radius: 2rem;
    padding: 0.45rem;
  }

  .table-felt {
    min-height: auto;
    padding: 3.25rem 0.6rem 0.6rem;
    border-radius: 1.5rem;
    display: block;
  }

  .table-score-corner {
    top: 0.55rem;
    right: 0.55rem;
  }

  .dealer-zone,
  .player-zone {
    margin: 0.35rem 0;
  }

  .zone-label {
    margin-bottom: 0.25rem;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
  }

  .card-row {
    gap: 0.35rem;
  }

  .seat-zone .playing-card {
    width: 64px;
    min-height: 84px;
    padding: 0.42rem !important;
    border-radius: 0.65rem;
  }

  .seat-zone .playing-card .rank {
    font-size: 0.72rem;
  }

  .seat-zone .corner-suit {
    font-size: 0.7rem;
  }

  .seat-zone .suit-mark {
    font-size: 1.15rem;
  }

  .community-zone > .d-flex {
    margin-bottom: 0.4rem !important;
  }

  .community-zone .zone-label::after {
    display: block;
    margin-top: 0.2rem;
    color: rgba(245, 209, 122, 0.72);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    content: "Swipe cards sideways";
  }

  #tableCards {
    --bs-gutter-x: 0;
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0.75rem;
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    padding: 0.15rem 0.35rem 0.7rem;
    scroll-padding-left: 0.35rem;
    scroll-snap-type: x mandatory;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
  }

  #tableCards.guide-placeholder {
    display: block !important;
    overflow: visible;
    padding-inline: 0;
  }

  .loading-quiz-preview {
    grid-template-columns: 1fr;
  }

  #tableCards.selection-summary {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: scroll;
    gap: 0.45rem;
    padding: 0.1rem 0 0.35rem;
    scroll-snap-type: x mandatory;
  }

  #tableCards::-webkit-scrollbar {
    height: 0.35rem;
  }

  #tableCards::-webkit-scrollbar-thumb {
    background: rgba(245, 209, 122, 0.45);
    border-radius: 999px;
  }

  .quiz-card-col {
    flex: 0 0 min(76vw, 260px) !important;
    width: min(76vw, 260px) !important;
    max-width: min(76vw, 260px) !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  #tableCards.selection-summary .quiz-card-col {
    flex: 0 0 calc(100% - 0.9rem) !important;
    width: calc(100% - 0.9rem) !important;
    max-width: calc(100% - 0.9rem) !important;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .game-card {
    min-height: 178px;
  }

  #tableCards.selection-summary .game-card {
    min-height: 132px;
    padding: 0.45rem !important;
    border-radius: 0.75rem;
  }

  #tableCards.awaiting-decision-summary {
    display: flex !important;
    justify-content: center !important;
    overflow-x: visible;
    gap: 0.45rem;
    padding: 0.1rem 0 0.35rem;
    scroll-snap-type: none;
  }

  #tableCards.awaiting-decision-summary .quiz-card-col {
    flex: 0 0 calc((100% - 0.9rem) / 3) !important;
    width: calc((100% - 0.9rem) / 3) !important;
    max-width: calc((100% - 0.9rem) / 3) !important;
    scroll-snap-align: none;
  }

  #tableCards.awaiting-decision-summary .game-card {
    min-height: min(19dvh, 138px);
    max-height: min(19dvh, 138px);
    overflow: hidden;
    padding: 0.42rem !important;
  }

  #tableCards.awaiting-decision-summary .selected-pill {
    display: none;
  }

  #tableCards.awaiting-decision-summary .correct-label,
  #tableCards.awaiting-decision-summary .incorrect-label {
    margin-bottom: 0.25rem !important;
    font-size: 0.52rem;
  }

  #tableCards.awaiting-decision-summary .mobile-blank-card-preview {
    font-size: 0.6rem;
  }

  #tableCards.awaiting-decision-summary .blank-card-mark {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.35rem;
    border-radius: 0.7rem;
  }

  #tableCards.awaiting-decision-summary .review-pill {
    min-height: 1.25rem;
    padding: 0.12rem 0.42rem;
    font-size: 0.5rem;
  }

  #tableCards.selection-summary .playing-card {
    width: 58px;
    min-height: 76px;
    padding: 0.42rem !important;
    border-radius: 0.65rem;
  }

  #tableCards.selection-summary .table-card-id,
  #tableCards.selection-summary .selected-pill {
    min-height: 1rem;
    padding: 0.15rem 0.3rem;
    font-size: 0.52rem;
  }

  #tableCards.selection-summary .correct-label,
  #tableCards.selection-summary .incorrect-label,
  #tableCards.selection-summary .answer-compare span {
    font-size: 0.56rem;
  }

  #tableCards.selection-summary .mistake-review {
    font-size: 0.68rem;
  }

  #tableCards.selection-summary .answer-compare {
    gap: 0.3rem;
  }

  #tableCards.selection-summary .answer-compare > div {
    padding: 0.35rem;
  }

  #tableCards.selection-summary .answer-compare strong {
    font-size: 0.7rem;
  }

  .action-panel {
    margin-top: 0.55rem !important;
    padding: 0.45rem;
    border-radius: 0.9rem;
  }

  .action-panel .btn {
    min-height: 2.55rem;
    padding-block: 0.45rem;
    font-size: 0.92rem;
  }

  .casino-page {
    height: 100dvh;
    min-height: 100dvh !important;
    overflow: hidden;
  }

  .casino-navbar,
  .table-header {
    display: none !important;
  }

  .casino-shell {
    display: flex;
    width: 100%;
    max-width: none;
    height: 100dvh;
    min-height: 0;
    padding: 0.35rem 0.35rem calc(5.25rem + env(safe-area-inset-bottom)) !important;
  }

  .poker-table {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    min-height: 0;
  }

  .table-rail {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    padding: 0.35rem;
    border-radius: 1.35rem;
    box-shadow:
      inset 0 0 0 0.08rem rgba(255, 233, 173, 0.18),
      inset 0 0 0 0.28rem rgba(20, 8, 3, 0.35),
      0 1.2rem 2.5rem rgba(0, 0, 0, 0.58);
  }

  .table-felt {
    display: grid;
    grid-template-rows: minmax(4.8rem, 0.62fr) minmax(14rem, 1.55fr) minmax(4.8rem, 0.62fr);
    flex: 1 1 auto;
    min-height: 0;
    gap: 0.35rem;
    padding: 4.7rem 0.55rem 0.45rem;
    border-radius: 1.05rem;
  }

  .table-score-corner {
    display: none;
  }

  .mobile-game-hud,
  .mobile-game-tools {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }

  .mobile-game-hud {
    top: 0.65rem;
    left: 0.65rem;
    right: 5.4rem;
    justify-content: space-between;
    padding: 0.35rem;
    color: #f8f1dd;
    background: rgba(2, 9, 6, 0.66);
    border: 1px solid rgba(245, 209, 122, 0.28);
    border-radius: 999px;
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
  }

  .mobile-game-hud span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0.22rem 0.44rem;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
  }

  .mobile-game-hud strong {
    margin-left: 0.25rem;
    color: #f5d17a;
  }

  .mobile-game-hud .dropdown {
    flex: 0 0 auto;
  }

  .mobile-game-hud .btn {
    min-height: 1.75rem;
    padding: 0.18rem 0.48rem;
    font-size: 0.66rem;
    font-weight: 900;
    border-radius: 999px;
  }

  .mobile-game-tools {
    top: 3.15rem;
    left: 0.65rem;
  }

  .table-topic-pill {
    position: absolute;
    top: 3.15rem;
    right: 0.65rem;
    left: 5.6rem;
    z-index: 3;
    display: block;
    overflow: hidden;
    padding: 0.28rem 0.7rem;
    color: rgba(248, 241, 221, 0.78);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-align: right;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
    background: rgba(2, 9, 6, 0.54);
    border: 1px solid rgba(245, 209, 122, 0.22);
    border-radius: 999px;
    backdrop-filter: blur(10px);
  }

  .table-topic-pill strong {
    color: #f5d17a;
  }

  .mobile-game-tools .btn {
    min-height: 1.85rem;
    padding: 0.18rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 900;
    border-radius: 999px;
  }

  .mobile-table-dropdown {
    padding: 0.45rem;
    background: rgba(7, 10, 9, 0.96);
    border: 1px solid rgba(245, 209, 122, 0.32);
    border-radius: 0.9rem;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.35);
  }

  .mobile-table-dropdown .dropdown-item {
    min-height: 2.4rem;
    color: #f8f1dd;
    font-weight: 800;
    border-radius: 0.65rem;
  }

  .mobile-floating-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .dealer-zone,
  .player-zone {
    display: flex;
    min-height: 0;
    flex-direction: column;
    justify-content: center;
    margin: 0;
  }

  .community-zone {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
    padding-block: 0;
  }

  .community-zone > .d-flex {
    flex: 0 0 auto;
  }

  .mobile-card-strip-frame {
    position: relative;
    min-width: 0;
  }

  #tableCards {
    align-items: stretch;
    min-height: 0;
    overflow-x: scroll;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    touch-action: pan-y pinch-zoom;
    cursor: grab;
    gap: 0.85rem;
    padding-inline: 0.45rem;
    scroll-padding-inline: 0.45rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
  }

  #tableCards:active {
    cursor: grabbing;
  }

  .quiz-card-col {
    flex: 0 0 calc(100% - 0.9rem) !important;
    width: calc(100% - 0.9rem) !important;
    max-width: calc(100% - 0.9rem) !important;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .game-card {
    min-height: clamp(155px, 24dvh, 205px);
    transition: transform 180ms ease, box-shadow 180ms ease;
  }

  .game-card.blank,
  .game-card.correct,
  .game-card.revealed-card {
    max-height: min(30dvh, 250px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
  }

  .game-card.blank::after,
  .game-card.correct::after,
  .game-card.revealed-card::after {
    position: sticky;
    right: 0;
    bottom: -0.45rem;
    left: 0;
    display: block;
    width: fit-content;
    margin: 0.35rem auto 0;
    padding: 0.15rem 0.45rem;
    color: rgba(36, 27, 18, 0.72);
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    content: "Scroll for details";
    background: rgba(255, 255, 255, 0.7);
    border-radius: 999px;
  }

  .mistake-review {
    min-height: max-content;
  }

  #tableCards.selection-summary .game-card {
    min-height: min(19dvh, 138px);
    max-height: min(28dvh, 230px);
  }

  #tableCards.awaiting-decision-summary {
    justify-content: center !important;
    overflow-x: visible;
    gap: 0.45rem;
    padding: 0.1rem 0 0.35rem;
    scroll-snap-type: none;
  }

  #tableCards.awaiting-decision-summary .quiz-card-col {
    flex: 0 0 calc((100% - 0.9rem) / 3) !important;
    width: calc((100% - 0.9rem) / 3) !important;
    max-width: calc((100% - 0.9rem) / 3) !important;
    scroll-snap-align: none;
  }

  #tableCards.awaiting-decision-summary .game-card {
    min-height: min(19dvh, 138px);
    max-height: min(19dvh, 138px);
    overflow: hidden;
    padding: 0.42rem !important;
  }

  #tableCards.awaiting-decision-summary .game-card::after {
    display: none;
  }

  #tableCards.awaiting-decision-summary .selected-pill {
    display: none;
  }

  #tableCards.awaiting-decision-summary .correct-label,
  #tableCards.awaiting-decision-summary .incorrect-label {
    margin-bottom: 0.25rem !important;
    font-size: 0.52rem;
  }

  #tableCards.awaiting-decision-summary .mobile-blank-card-preview {
    font-size: 0.6rem;
  }

  #tableCards.awaiting-decision-summary .blank-card-mark {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.35rem;
    border-radius: 0.7rem;
  }

  #tableCards.decision-reveal-summary {
    display: flex !important;
    justify-content: center !important;
    overflow-x: visible;
    gap: 0.45rem;
    padding: 0.1rem 0 0.35rem;
    scroll-snap-type: none;
  }

  #tableCards.decision-reveal-summary .quiz-card-col {
    flex: 0 0 calc((100% - 0.9rem) / 3) !important;
    width: calc((100% - 0.9rem) / 3) !important;
    max-width: calc((100% - 0.9rem) / 3) !important;
    scroll-snap-align: none;
  }

  #tableCards.decision-reveal-summary .game-card {
    min-height: min(19dvh, 138px);
    max-height: min(19dvh, 138px);
    overflow: hidden;
    padding: 0.42rem !important;
  }

  #tableCards.decision-reveal-summary .game-card::after {
    display: none;
  }

  #tableCards.decision-reveal-summary .selected-pill {
    display: none;
  }

  #tableCards.decision-reveal-summary .correct-label,
  #tableCards.decision-reveal-summary .incorrect-label {
    margin-bottom: 0.25rem !important;
    font-size: 0.52rem;
  }

  #tableCards.decision-reveal-summary .revealed-card .playing-card {
    width: 48px;
    min-height: 64px;
    padding: 0.32rem !important;
    border-radius: 0.55rem;
  }

  #tableCards.decision-reveal-summary .revealed-card .rank {
    font-size: 0.62rem;
  }

  #tableCards.decision-reveal-summary .revealed-card .corner-suit {
    font-size: 0.62rem;
  }

  #tableCards.decision-reveal-summary .revealed-card .suit-mark {
    font-size: 1rem;
  }

  #tableCards.decision-reveal-summary .mobile-blank-card-preview {
    font-size: 0.58rem;
  }

  #tableCards.decision-reveal-summary .blank-card-mark {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 1.2rem;
    border-radius: 0.65rem;
  }

  #tableCards.decision-reveal-summary .review-pill {
    min-height: 1.25rem;
    padding: 0.12rem 0.42rem;
    font-size: 0.58rem;
  }

  .action-panel {
    position: fixed;
    right: calc(0.55rem + env(safe-area-inset-right));
    bottom: calc(0.55rem + env(safe-area-inset-bottom));
    left: calc(0.55rem + env(safe-area-inset-left));
    z-index: 1040;
    max-width: none;
    margin: 0 !important;
    padding: 0.5rem;
    background:
      linear-gradient(135deg, rgba(245, 209, 122, 0.12), transparent),
      rgba(2, 7, 5, 0.9);
    border-radius: 1.2rem;
    box-shadow: 0 -1rem 2.2rem rgba(0, 0, 0, 0.4);
  }

  .action-panel .row {
    --bs-gutter-x: 0.55rem;
  }

  .action-panel .col-12 {
    flex: 0 0 50%;
    width: 50%;
  }

  .action-panel .btn {
    min-height: 3.65rem;
    font-size: 1rem;
    font-weight: 950;
    letter-spacing: 0.14em;
    border-radius: 0.95rem;
    box-shadow: 0 0.75rem 1.3rem rgba(0, 0, 0, 0.28);
  }

  .round-win-celebration {
    min-height: 13rem;
    padding: 5.5rem 1rem 1rem;
  }

  .round-win-medal {
    top: 0.9rem;
    right: 1rem;
    width: 4rem;
    height: 4rem;
    font-size: 2.15rem;
    transform: none;
    animation: none;
  }

  .round-win-title {
    font-size: 2rem;
  }

  .round-win-burst span:nth-child(1) {
    right: 5.4rem;
  }

  .round-win-burst span:nth-child(2) {
    right: 4rem;
    bottom: auto;
    top: 0.75rem;
  }

  .round-win-burst span:nth-child(3) {
    right: 8.4rem;
  }
}

@media (min-width: 1200px) {
  .mobile-floating-menu-button {
    display: none;
  }
}

@media (max-width: 576px) {
  .playing-card {
    width: 78px;
    min-height: 104px;
  }

  .seat-zone .playing-card {
    width: 60px;
    min-height: 78px;
  }

  .game-card {
    min-height: 172px;
    padding: 0.75rem !important;
  }

  .qa-text {
    font-size: 0.76rem;
  }

  .playing-card .rank {
    font-size: 0.9rem;
  }

  .corner-suit {
    font-size: 0.85rem;
  }

  .suit-mark {
    font-size: 1.65rem;
  }
}
