/* Shared AnyTwo page furniture — felt table, four-colour deck, deal widget.
   Widget styling adapted from terrygillespie.com/nothing
   Copyright © 2026 Terrence Gillespie. */

:root {
  --felt-deep: #071a12;
  --felt: #0d2a1d;
  --felt-lift: #123626;
  --line: #1b402e;
  --text: #f1f5f2;
  --muted: #86a394;
  --chip: #e0b341;
  --hearts: rgb(255, 77, 102);
  --diamonds: rgb(77, 179, 255);
  --clubs: rgb(77, 255, 128);
  --spades: rgb(217, 217, 230);
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background:
    radial-gradient(120% 70% at 50% -10%, #17482f 0%, var(--felt) 46%, var(--felt-deep) 100%)
    fixed;
  color: var(--text);
  font-family: -apple-system, "SF Pro", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* felt weave + grain */
body::after {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 20; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

.mono {
  font-family: var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-size: .72rem;
}

/* ---- deal widget ---- */
.anytwo-mount { display: flex; flex-direction: column; align-items: center; }

.anytwo-widget {
  width: 280px; height: 280px; border-radius: 56px; background: #000;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 34px 70px -22px #000c, inset 0 1px 0 #ffffff12;
}
.anytwo-hand { display: flex; gap: 12px; align-items: center; justify-content: center; }
.anytwo-card {
  width: 100px; height: 134px; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.5);
  border: .5px solid rgba(255,255,255,.06);
  transition: transform .25s cubic-bezier(.2,0,0,1), opacity .15s ease;
}
.anytwo-rank { font-size: 52px; font-weight: 700; line-height: 1; }
.anytwo-suit { font-size: 38px; line-height: 1; margin-top: 2px; }

.anytwo-deal {
  margin-top: 18px; font-family: var(--mono); font-size: 11px;
  color: var(--clubs); background: rgba(77,255,128,.12);
  border: 1px solid var(--clubs); padding: 8px 24px; border-radius: 999px;
  cursor: pointer; letter-spacing: .08em; text-transform: uppercase;
  transition: background .15s ease, transform .12s ease;
}
.anytwo-deal:hover { background: rgba(77,255,128,.2); }
.anytwo-deal:active { transform: scale(.95); }

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

/* ---- shared page furniture ---- */
section { padding: 50px 0; border-top: 1px solid var(--line); }
h2 {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-family: var(--mono); margin-bottom: 22px; font-weight: 400;
}
p { color: #c2d4c9; margin-bottom: 16px; max-width: 62ch; }
p b { color: var(--text); font-weight: 600; }

table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th {
  text-align: left; font-weight: 400; color: var(--muted); font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase; padding: 0 0 10px; font-family: var(--mono);
}
td { padding: 13px 0; border-top: 1px solid var(--line); vertical-align: middle; }
td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.barcell { width: 40%; }
.bar { height: 7px; background: #0a2418; border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--clubs), var(--chip)); }

.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.card-stat {
  background: var(--felt-lift); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px;
}
.card-stat .n { font-size: 2.2rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.card-stat .l { color: var(--muted); font-size: .86rem; margin-top: 8px; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.badge {
  background: var(--felt-lift); border: 1px solid var(--line);
  border-radius: 100px; padding: 9px 16px; font-size: .88rem;
}
.badge b { color: var(--chip); font-weight: 700; }

.cta {
  display: inline-block; margin-top: 8px; background: var(--chip); color: #191400;
  font-weight: 700; padding: 15px 30px; border-radius: 100px; text-decoration: none;
}
.note { color: var(--muted); font-size: .84rem; margin-top: 20px; max-width: 60ch; }

footer { padding: 56px 0 64px; }
footer a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
footer a:hover { color: var(--text); }

/* ---- theme switcher ---- */
.themes { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.theme-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--felt-lift); border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 7px 14px 7px 8px; cursor: pointer;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.theme-chip:hover { color: var(--text); }
.theme-chip[aria-pressed="true"] { border-color: var(--chip); color: var(--text); background: #17402b; }
.theme-chip .swatch {
  display: inline-flex; width: 30px; height: 20px; border-radius: 5px;
  align-items: center; justify-content: center; gap: 1px; font-size: 10px; line-height: 1;
  border: .5px solid rgba(255,255,255,.14);
}
