:root {
      --bg1: #052e2b;
      --bg2: #020617;
      --card-w: 112px;
      --card-h: 176px;
      --radius: 16px;
      --gold: #f7d57b;
      --green: #10b981;
      --panel: rgba(255,255,255,.10);
      --panel-border: rgba(255,255,255,.13);
    }
    * { box-sizing: border-box; }
    html, body { margin: 0; min-height: 100%; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
    body {
      color: #fff;
      background:
        radial-gradient(circle at top left, rgba(16,185,129,.22), transparent 30%),
        linear-gradient(135deg, var(--bg1), #0f172a 45%, #000);
      overflow-x: hidden;
    }
    .app { width: min(1180px, 100%); margin: 0 auto; padding: 24px; }
    header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
    h1 { font-size: clamp(38px, 7vw, 72px); line-height: .92; margin: 0; letter-spacing: -0.06em; }
    .eyebrow { color: #6ee7b7; font-weight: 700; font-size: 13px; margin-bottom: 8px; }
    .subtitle { color: #cbd5e1; margin: 14px 0 0; font-size: 16px; }
    .actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
    button {
      border: 0; cursor: pointer; border-radius: 18px; padding: 12px 16px;
      font-weight: 800; font-size: 14px; color: #06281f; background: #fff;
      box-shadow: 0 10px 28px rgba(0,0,0,.28); transition: transform .12s ease, opacity .12s ease;
    }
    button.primary { background: linear-gradient(135deg, #34d399, #facc15); }
    button.secondary { background: #e2e8f0; color: #0f172a; }
    button:disabled { opacity: .45; cursor: not-allowed; }
    button:not(:disabled):active { transform: translateY(1px) scale(.99); }
    .top-grid { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 14px; margin-bottom: 18px; }
    .panel { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 22px; padding: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.25); backdrop-filter: blur(8px); }
    .panel small { color: #cbd5e1; font-weight: 700; }
    .score { font-size: 30px; font-weight: 950; margin-top: 4px; line-height: 1; }
    .status { font-size: 18px; color: #e5e7eb; margin: 5px 0 0; }
    .match { font-weight: 950; font-size: 24px; color: #fde68a; }
    .table { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .hand-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
    .hand-title { font-size: 26px; font-weight: 950; }
    .value-pill { min-width: 70px; text-align: center; padding: 9px 14px; border-radius: 16px; background: rgba(0,0,0,.32); font-size: 24px; font-weight: 950; }
    .cards { min-height: 194px; display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
    .playing-card {
      width: var(--card-w); height: var(--card-h); border-radius: var(--radius);
      overflow: hidden; background: white; border: 1px solid rgba(0,0,0,.25);
      box-shadow: 0 20px 40px rgba(0,0,0,.40); position: relative;
      animation: deal .22s ease-out both; flex: 0 0 auto;
    }
    @keyframes deal { from { opacity: 0; transform: translateY(10px) rotateY(80deg); } to { opacity: 1; transform: translateY(0) rotateY(0); } }
    .sprite-card {
      position: absolute; inset: 0; width: 100%; height: 100%;
      background-image: url('./assets/asset-1.webp');
      background-size: 1000% 400%;
      background-repeat: no-repeat;
      image-rendering: auto;
    }
    .card-back { width: 100%; height: 100%; object-fit: cover; display: block; background: white; }
    .controls { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
    .info-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; color: #e2e8f0; font-size: 14px; }
    .win-banner { display: none; margin: 16px 0; padding: 18px; border-radius: 22px; background: linear-gradient(135deg, rgba(250,204,21,.24), rgba(16,185,129,.18)); border: 1px solid rgba(250,204,21,.4); font-size: 20px; font-weight: 950; }
    .win-banner.show { display: block; }
    .muted { color: #94a3b8; }
    @media (max-width: 840px) {
      .app { padding: 16px; }
      header, .table { grid-template-columns: 1fr; display: block; }
      .actions { justify-content: flex-start; margin-top: 16px; }
      .top-grid, .info-grid { grid-template-columns: 1fr; }
      .panel { margin-bottom: 14px; }
      :root { --card-w: 92px; --card-h: 145px; }
      .cards { min-height: 160px; }
    }
