/* DeckOnly Poker / みんなのポーカーディーラー — shared site styles.
   Palette drawn from the app: poker-felt green + chip accents (purple, green, cream). */
:root {
  --felt-1: #0d4433;
  --felt-2: #072a20;
  --cream: #f4efe3;
  --paper: #faf8f2;
  --ink: #17251f;
  --muted: #5c6b63;
  --line: #e4ddcd;
  --purple: #7c3aed;
  --green: #2f9e63;
  --radius: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* Top bar */
.nav {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; max-width: 960px; margin: 0 auto;
}
.nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.nav .brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav .spacer { flex: 1; }
.nav a.navlink { color: var(--muted); font-size: .92rem; font-weight: 600; }
.nav a.navlink:hover { color: var(--ink); text-decoration: none; }

/* Hero — felt table */
.hero {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(160deg, var(--felt-1), var(--felt-2));
  color: var(--cream);
  text-align: center;
  padding: 72px 20px 84px;
}
.hero .icon {
  width: 92px; height: 92px; border-radius: 21px; margin: 0 auto 22px;
  box-shadow: 0 12px 34px rgba(0,0,0,.35);
}
.hero h1 { font-size: 2.3rem; line-height: 1.25; margin: 0 0 14px; font-weight: 800; }
.hero p.tagline { font-size: 1.08rem; opacity: .88; max-width: 540px; margin: 0 auto 8px; }
.hero .sub { font-size: .9rem; opacity: .6; margin-top: 20px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); color: var(--cream);
  border: 1px solid rgba(255,255,255,.22);
  padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  margin-top: 26px;
}

/* Layout container for content pages */
.wrap { max-width: 820px; margin: 0 auto; padding: 20px; }
.section { padding: 56px 20px; max-width: 960px; margin: 0 auto; }
.section h2 { font-size: 1.5rem; text-align: center; margin: 0 0 6px; }
.section .lead { text-align: center; color: var(--muted); margin: 0 auto 36px; max-width: 560px; }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 720px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.card .chip {
  width: 40px; height: 40px; border-radius: 999px; margin-bottom: 14px;
  display: grid; place-items: center; color: #fff; font-size: 1.1rem;
}
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--purple); color: #fff; font-weight: 700;
  padding: 13px 26px; border-radius: 999px; font-size: 1rem;
}
.btn:hover { text-decoration: none; opacity: .92; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }

/* Legal / article prose */
.prose h1 { font-size: 1.6rem; }
.prose h2 { font-size: 1.12rem; margin-top: 2.1em; }
.prose .meta { color: var(--muted); font-size: .9rem; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 3em 0; }
.prose ul { padding-left: 1.2em; }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 4px 18px; margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* Footer */
footer.site {
  background: var(--felt-2); color: rgba(244,239,227,.85);
  text-align: center; padding: 40px 20px; margin-top: 40px;
}
footer.site a { color: var(--cream); font-weight: 600; }
footer.site .links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
footer.site .copy { font-size: .82rem; opacity: .6; }

.center { text-align: center; }
.mt24 { margin-top: 24px; }
