/* Gin Rummy Rivals: the site sits on the same card-table felt as the app. */
:root {
  --felt: #14532d;
  --felt-light: #1c6b3b;
  --felt-deep: #0e3e21;
  --cream: #f5f0e1;
  --muted: #c9d6c6;
  --gold: #f2c14e;
  --on-gold: #1c1a12;
  --panel: rgba(0, 0, 0, 0.26);
  --card: #fafaf7;
  --serif: "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--felt) radial-gradient(ellipse 120% 60% at 50% 0%, var(--felt-light) 0%, var(--felt) 55%, var(--felt-deep) 100%) no-repeat;
  background-attachment: fixed;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}

a { color: var(--gold); }
a:hover { color: #f7d683; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }
.wide { max-width: 1040px; }

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-family: var(--serif); font-size: 20px; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-nav a { color: var(--cream); text-decoration: none; padding: 10px 2px; font-size: 16px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); }

/* Hero */
.hero { text-align: center; padding: 28px 0 8px; }
.fan { position: relative; width: 220px; height: 124px; margin: 0 auto 12px; }
.fan .playing-card {
  position: absolute; left: 76px; bottom: 6px; width: 68px; height: 97px;
  background: var(--card); border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transform-origin: 50% 130%;
}
.fan .playing-card .index { position: absolute; top: 6px; left: 7px; display: flex; flex-direction: column; align-items: center; font-size: 15px; font-weight: 700; line-height: 1.05; }
.fan .playing-card .pip { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 34px; }
.clubs { color: #15803d; } .diamonds { color: #1d4ed8; } .hearts { color: #b91c1c; } .spades { color: #111827; }
.fan .c1 { transform: rotate(-24deg); } .fan .c2 { transform: rotate(-8deg); }
.fan .c3 { transform: rotate(8deg); } .fan .c4 { transform: rotate(24deg); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; }
.hero h1 { font-size: clamp(40px, 9vw, 60px); margin: 0; }
.hero .rivals { display: block; font-size: 0.42em; font-weight: 600; letter-spacing: 0.5em; margin-right: -0.5em; color: var(--gold); margin-top: 6px; }
.tagline { font-size: clamp(19px, 3.4vw, 23px); max-width: 30em; margin: 20px auto 0; }
.badge { display: inline-block; margin-top: 24px; padding: 14px 26px; border-radius: 16px; background: var(--gold); color: var(--on-gold); font-weight: 700; font-size: 17px; }
.small { font-size: 15px; color: var(--muted); }
.hero .small { margin-top: 12px; }
.hero p { margin-left: auto; margin-right: auto; }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 44px auto 8px; }
.shots img { width: 100%; height: auto; display: block; border-radius: 22px; border: 1px solid rgba(245, 240, 225, 0.25); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
.shots figure { margin: 0; }
.shots figcaption { text-align: center; margin-top: 10px; font-size: 15px; color: var(--muted); }
@media (max-width: 720px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Content */
main { padding-bottom: 56px; }
section { margin-top: 48px; }
h2 { font-size: 30px; margin: 0 0 14px; }
h3 { font-family: var(--sans); font-weight: 700; font-size: 18px; margin: 22px 0 4px; }
.page-title { font-size: clamp(34px, 7vw, 46px); margin: 28px 0 6px; }
p, li { max-width: 68ch; }
ul, ol { padding-left: 1.3em; }
li { margin: 6px 0; }

.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.features li { margin: 0; padding: 16px 18px; border-radius: 16px; background: var(--panel); max-width: none; }
.features strong { display: block; font-size: 18px; margin-bottom: 2px; }
.features span { color: var(--muted); }
@media (max-width: 640px) { .features { grid-template-columns: minmax(0, 1fr); } }

.panel { padding: 18px 20px; border-radius: 16px; background: var(--panel); }
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }

.melds { display: flex; flex-wrap: wrap; gap: 24px 40px; margin: 14px 0; }
.meld { display: flex; gap: 6px; margin-top: 8px; }
.mini { width: 44px; height: 62px; border-radius: 6px; background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; line-height: 1.1; }

.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; max-width: 560px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(245, 240, 225, 0.2); vertical-align: top; }
th { font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

dl { margin: 0; }
dt { font-weight: 700; margin-top: 16px; }
dd { margin: 2px 0 0; max-width: 68ch; }

.placeholder { background: rgba(242, 193, 78, 0.18); border: 1px dashed var(--gold); border-radius: 6px; padding: 1px 6px; }

/* Footer */
.site-footer { border-top: 1px solid rgba(245, 240, 225, 0.2); padding: 24px 0 40px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer a { color: var(--muted); padding: 6px 0; }
