html {
      scroll-behavior: smooth;
    }

    .tabular-nums {
      font-variant-numeric: tabular-nums;
    }

    .text-balance {
      text-wrap: balance;
    }

    /* Responsive Hero Layout: Mobile stacks Preview above Bet; Desktop 2-col */
    .c4-hero-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 1.75rem;
    }

    .c4-hero-intro {
      order: 1;
    }

    .c4-hero-preview {
      order: 2;
    }

    .c4-hero-entry {
      order: 3;
    }

    @media (min-width: 1024px) {
      .c4-hero-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        grid-template-rows: auto auto;
        column-gap: 3rem;
        row-gap: 1.75rem;
        align-items: start;
      }

      .c4-hero-intro {
        grid-column: 1;
        grid-row: 1;
        order: 0;
      }

      .c4-hero-entry {
        grid-column: 1;
        grid-row: 2;
        order: 0;
      }

      .c4-hero-preview {
        grid-column: 2;
        grid-row: 1 / span 2;
        order: 0;
        align-self: center;
      }
    }

    /* Match Entry Card & Separate Stake Buttons */
    .c4-entry-card {
      background-color: rgba(24, 24, 27, 0.78);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 1rem;
      padding: 1.375rem;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    }

    .c4-entry-header {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      justify-content: space-between;
      gap: 0.5rem 1rem;
      margin-bottom: 1rem;
    }

    .c4-stake-buttons {
      display: grid;
      grid-template-columns: repeat(2, max-content);
      justify-content: center;
      justify-items: center;
      gap: 1rem 1.5rem;
      padding: 0.25rem 0;
    }

    @media (min-width: 480px) {
      .c4-stake-buttons {
        grid-template-columns: repeat(4, max-content);
        gap: 1.25rem;
      }
    }

    .stake-btn {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 4.5rem;
      height: 4.5rem;
      aspect-ratio: 1 / 1;
      border-radius: 9999px;
      padding: 0;
      font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
      font-weight: 800;
      font-size: 0.875rem;
      letter-spacing: -0.02em;
      line-height: 1;
      color: #fef3c7;
      background: radial-gradient(circle at 32% 28%, #52525b 0%, #3f3f46 52%, #27272a 100%);
      border: 2px solid rgba(251, 191, 36, 0.5);
      box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.18),
        inset 0 -3px 5px rgba(0, 0, 0, 0.55),
        0 4px 10px rgba(0, 0, 0, 0.35);
      white-space: nowrap;
      cursor: pointer;
      transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
    }

    @media (min-width: 480px) {
      .stake-btn {
        width: 4.75rem;
        height: 4.75rem;
        font-size: 0.9375rem;
      }
    }

    .stake-btn::after {
      content: "";
      position: absolute;
      inset: 4px;
      border-radius: 9999px;
      border: 1.5px dashed rgba(251, 191, 36, 0.38);
      pointer-events: none;
    }

    .stake-btn:hover {
      color: #ffffff;
      background: radial-gradient(circle at 32% 28%, #71717a 0%, #52525b 52%, #27272a 100%);
      border-color: #fbbf24;
      transform: translateY(-2px) scale(1.04);
      box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.25),
        inset 0 -3px 5px rgba(0, 0, 0, 0.55),
        0 6px 14px rgba(251, 191, 36, 0.22);
    }

    .stake-btn:focus-visible {
      outline: 2px solid #fbbf24;
      outline-offset: 4px;
    }

    .stake-btn.is-active,
    .stake-btn.is-active:hover {
      background: #fbbf24;
      border-color: #fde68a;
      color: #451a03;
      text-shadow: none;
      box-shadow: 0 0 0 3px #127311;
      transform: none;
    }

    .stake-btn.is-active::after {
      border-color: rgba(120, 53, 15, 0.35);
    }

    .c4-payout-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      margin-top: 1rem;
      padding-top: 1rem;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      font-size: 0.875rem;
      color: #a1a1aa;
    }

    .c4-action-row {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
      margin-top: 1.25rem;
    }

    @media (min-width: 640px) {
      .c4-action-row {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
      }
    }

    .c4-how-link {
      display: inline-flex;
      align-items: center;
      align-self: flex-end;
      gap: 0.35rem;
      color: #e4e4e7;
      font-weight: 600;
      font-size: 0.9375rem;
      white-space: nowrap;
      flex-shrink: 0;
      text-decoration: underline;
      text-underline-offset: 4px;
      text-decoration-color: rgba(228, 228, 231, 0.35);
      transition: color 150ms ease, text-decoration-color 150ms ease;
    }

    @media (min-width: 640px) {
      .c4-how-link {
        align-self: auto;
      }
    }

    .c4-how-link:hover {
      color: #fbbf24;
      text-decoration-color: #fbbf24;
    }

    /* Connect Four Screenshot Preview */
    .c4-screenshot-img {
      display: block;
      width: 100%;
      height: auto;
      border-radius: 1rem;
      border: 1px solid rgba(255, 255, 255, 0.12);
      box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
    }

    /* Other Skill Games & Related Guides Responsive Grids */
    .c4-other-games-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 1.5rem;
    }

    .c4-game-thumb-band {
      height: 10rem;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      position: relative;
      overflow: hidden;
    }

    .c4-game-thumb {
      width: 120px;
      height: 120px;
      object-fit: contain;
    }

    @media (min-width: 640px) {
      .c4-other-games-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (min-width: 1024px) {
      .c4-other-games-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }
    }

    .c4-related-posts-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 1.25rem;
    }

    @media (min-width: 768px) {
      .c4-related-posts-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .stake-btn {
        transition: none;
      }
    }