
    :root {
      --bg: #0f5132;
      --bg-dark: #06351f;
      --green: #147a46;
      --accent: #ffd166;
      --text: #0f172a;
      --muted: #475569;
      --white: #ffffff;
      --line: #e2e8f0;
      --red: #c1121f;
      --black: #111827;
      --blue: #123c69;
      --shadow: 0 18px 45px rgba(2, 6, 23, .18);
      --radius: 24px;
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: #f8fafc;
      color: var(--text);
    }

    a { color: inherit; text-decoration: none; }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 50;
      background: rgba(6, 53, 31, .94);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid rgba(255,255,255,.12);
    }

    .nav {
      width: min(1180px, calc(100% - 32px));
      min-height: 70px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 10px;
      color: #fff;
      font-weight: 700;
      letter-spacing: -0.035em;
      font-size: 21px;
    }

    .logo-icon {
      width: 42px;
      height: 42px;
      border-radius: 14px;
      background: linear-gradient(135deg, #ffffff, #dbeafe);
      display: grid;
      place-items: center;
      color: #0f172a;
      font-size: 24px;
      box-shadow: 0 10px 20px rgba(0,0,0,.18);
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .nav-links a {
      color: rgba(255,255,255,.86);
      font-size: 14px;
      font-weight: 800;
      padding: 10px 12px;
      border-radius: 999px;
    }

    .nav-links a:hover,
    .nav-links a.active {
      background: rgba(255,255,255,.13);
      color: #fff;
    }

    .hero {
      background:
        radial-gradient(circle at 18% 18%, rgba(255,209,102,.22), transparent 32%),
        radial-gradient(circle at 82% 12%, rgba(45,212,191,.18), transparent 28%),
        linear-gradient(145deg, var(--bg-dark), var(--bg));
      color: #fff;
      padding: 48px 0 28px;
    }

    .hero-wrap {
      width: min(1180px, calc(100% - 32px));
      margin: 0 auto;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(255,255,255,.13);
      border: 1px solid rgba(255,255,255,.18);
      border-radius: 999px;
      padding: 8px 12px;
      font-size: 13px;
      font-weight: 850;
      color: rgba(255,255,255,.9);
      margin-bottom: 16px;
    }

    .hero h1 {
      margin: 0;
      max-width: 900px;
      font-size: clamp(2em, 5.5vw, 3em);
      line-height: .96;
      letter-spacing: 0;
      font-weight: 700;
    }

    .hero p {
      margin: 18px 0 0;
      max-width: 90%;
      color: rgba(255,255,255,.82);
      font-size: clamp(17px, 2vw, 21px);
      line-height: 1.55;
    }

    .game-section {
      background: linear-gradient(180deg, var(--bg), var(--bg-dark));
      padding: 20px 0 34px;
      color: #fff;
    }

    .game-app {
      width: min(1180px, calc(100% - 32px));
      margin: 0 auto;
      background: rgba(255,255,255,.1);
      border: 1px solid rgba(255,255,255,.16);
      border-radius: 30px;
      box-shadow: 0 24px 70px rgba(0,0,0,.28);
      padding: 18px;
    }

    .game-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 14px;
      margin-bottom: 16px;
    }

    .game-title h2 {
      margin: 0 0 4px;
      font-size: clamp(24px, 3vw, 38px);
      letter-spacing: -0.045em;
    }

    .game-title p {
      margin: 0;
      color: rgba(255,255,255,.76);
    }

    .controls {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      align-items: center;
    }

    select,
    button {
      border: 0;
      border-radius: 999px;
      padding: 11px 15px;
      font-size: 14px;
      font-weight: 850;
      cursor: pointer;
    }

    select {
      background: rgba(255,255,255,.96);
      color: #111827;
      min-width: 225px;
    }

    button {
      background: var(--accent);
      color: #111827;
      box-shadow: 0 8px 20px rgba(0,0,0,.18);
    }

    button.secondary {
      background: rgba(255,255,255,.15);
      color: #fff;
      border: 1px solid rgba(255,255,255,.22);
    }

    .stats {
      display: grid;
      grid-template-columns: repeat(4, minmax(120px, 1fr));
      gap: 10px;
      margin-bottom: 18px;
    }

    .stat {
      background: rgba(0,0,0,.17);
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 18px;
      padding: 12px 14px;
    }

    .stat small {
      display: block;
      color: rgba(255,255,255,.72);
      margin-bottom: 3px;
      font-size: 12px;
    }

    .stat strong {
      font-size: 20px;
    }

    .board {
      display: grid;
      gap: 22px;
      overflow-x: auto;
      padding-bottom: 8px;
    }

    .top-row {
      display: grid;
      grid-template-columns: 110px 110px 1fr;
      align-items: start;
      gap: 12px;
      min-width: 780px;
    }

    .foundation-row {
      display: grid;
      grid-template-columns: repeat(4, 110px);
      justify-content: end;
      gap: 12px;
    }

    .tableau {
      display: grid;
      grid-template-columns: repeat(7, 110px);
      gap: 12px;
      justify-content: center;
      min-width: 780px;
    }

    .slot,
    .pile {
      width: 110px;
      min-height: 154px;
      border: 2px dashed rgba(255,255,255,.32);
      border-radius: 14px;
      position: relative;
      background: rgba(255,255,255,.075);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
    }

    .pile.tableau-pile { min-height: 430px; }

    .slot-label {
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      color: rgba(255,255,255,.42);
      font-size: 13px;
      font-weight: 850;
      text-align: center;
      pointer-events: none;
      padding: 10px;
    }

    .card {
      width: 106px;
      height: 150px;
      border-radius: 12px;
      background: #fff;
      color: var(--black);
      position: absolute;
      left: 0;
      top: 0;
      box-shadow: 0 10px 25px rgba(0,0,0,.22);
      border: 1px solid rgba(0,0,0,.15);
      user-select: none;
      cursor: grab;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 8px;
      transition: transform .12s ease, box-shadow .12s ease;
    }

    .card:hover {
      transform: translateY(-2px);
      box-shadow: 0 14px 30px rgba(0,0,0,.28);
    }

    .card.face-down {
      background:
        linear-gradient(135deg, rgba(255,255,255,.12) 25%, transparent 25%) -10px 0/20px 20px,
        linear-gradient(225deg, rgba(255,255,255,.12) 25%, transparent 25%) -10px 0/20px 20px,
        linear-gradient(315deg, rgba(255,255,255,.12) 25%, transparent 25%) 0 0/20px 20px,
        linear-gradient(45deg, rgba(255,255,255,.12) 25%, transparent 25%) 0 0/20px 20px,
        #123c69;
      color: transparent;
      cursor: pointer;
    }

    .card.dragging {
      opacity: .85;
      transform: scale(1.03);
      z-index: 9999 !important;
    }

    .red { color: var(--red); }
    .black { color: var(--black); }

    .corner { font-size: 19px; font-weight: 950; line-height: 1; }
    .suit-center { align-self: center; font-size: 42px; line-height: 1; }
    .corner.bottom { transform: rotate(180deg); align-self: flex-end; }

    .waste-spread .card:nth-last-child(3) { left: 0; }
    .waste-spread .card:nth-last-child(2) { left: 24px; }
    .waste-spread .card:nth-last-child(1) { left: 48px; }

    .message {
      margin-top: 16px;
      padding: 13px 16px;
      background: rgba(255,255,255,.13);
      border: 1px solid rgba(255,255,255,.17);
      border-radius: 16px;
      color: rgba(255,255,255,.78);
      display: none;
    }

    .message.show { display: block; }

    .quick-rules {
      margin-top: 18px;
      background: rgba(0,0,0,.16);
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 20px;
      padding: 16px;
      color: rgba(255,255,255,.78);
      line-height: 1.55;
      font-size: 14px;
    }

    .quick-rules strong { color: #fff; }

    .content-section,
    .other-games-section {
      background: #f8fafc;
    }

    .content-wrap,
    .other-games-wrap {
      width: min(980px, calc(100% - 32px));
      margin: 0 auto;
      padding: 58px 0;
    }

    .content-wrap article {
      font-size: 17px;
      line-height: 1.75;
      color: #334155;
    }

    .content-wrap h2,
    .other-games-wrap h2 {
      margin: 36px 0 12px;
      font-size: clamp(26px, 3vw, 38px);
      color: #0f172a;
      letter-spacing: -0.045em;
      line-height: 1.1;
    }

    .content-wrap h2:first-child,
    .other-games-wrap h2:first-child { margin-top: 0; }

    .content-wrap h3 {
      margin: 24px 0 8px;
      font-size: 22px;
      color: #123c69;
      letter-spacing: -0.02em;
    }

    .content-wrap p { margin: 0 0 14px; }
    .content-wrap ul { padding-left: 22px; }
    .content-wrap li { margin-bottom: 8px; }
    .content-wrap strong { color: #0f172a; }

    .other-games-section {
      border-top: 1px solid var(--line);
      padding-bottom: 16px;
    }

    .other-games-intro {
      margin: 0 0 22px;
      color: var(--muted);
      line-height: 1.6;
      font-size: 17px;
      max-width: 780px;
    }

    .games-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
    }

    .game-card {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: 0 12px 28px rgba(15,23,42,.08);
      padding: 20px;
      min-height: 170px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
    }

    .game-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow);
      border-color: #bbf7d0;
    }

    .game-icon {
      width: 58px;
      height: 58px;
      border-radius: 20px;
      background: #e8f7ef;
      display: grid;
      place-items: center;
      font-size: 30px;
      margin-bottom: 14px;
    }

    .game-card h3 {
      margin: 0 0 8px;
      font-size: 22px;
      letter-spacing: -0.035em;
    }

    .game-card p {
      margin: 0;
      color: var(--muted);
      line-height: 1.55;
      font-size: 15px;
    }

    .game-link {
      margin-top: 18px;
      display: inline-flex;
      color: #0f5132;
      font-weight: 950;
    }

    .site-footer {
      background: #062617;
      color: rgba(255,255,255,.74);
      padding: 28px 0;
    }

    .footer-wrap {
      width: min(1180px, calc(100% - 32px));
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
      font-size: 14px;
    }

    .footer-wrap a { color: #fff; font-weight: 850; }

    @media (max-width: 980px) {
      .games-grid { grid-template-columns: repeat(2, 1fr); }
      .stats { grid-template-columns: repeat(2, 1fr); }
    }

    @media (max-width: 680px) {
      .nav {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 0;
      }

      .nav-links {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
      }

      .hero { padding-top: 38px; }
      .game-app { width: calc(100% - 20px); padding: 12px; border-radius: 22px; }
      .games-grid { grid-template-columns: 1fr; }
      .stats { grid-template-columns: 1fr 1fr; }
      .top-row, .tableau { min-width: 650px; }
      .top-row { grid-template-columns: 90px 90px 1fr; }
      .foundation-row { grid-template-columns: repeat(4, 82px); gap: 7px; }
      .tableau { grid-template-columns: repeat(7, 82px); gap: 7px; }
      .slot, .pile { width: 82px; min-height: 116px; border-radius: 11px; }
      .pile.tableau-pile { min-height: 330px; }
      .card { width: 78px; height: 112px; border-radius: 10px; padding: 6px; }
      .corner { font-size: 14px; }
      .suit-center { font-size: 30px; }
      .waste-spread .card:nth-last-child(2) { left: 15px; }
      .waste-spread .card:nth-last-child(1) { left: 30px; }
    }