/* Ace of Clubs — shared styles */
/* Self-hosted fonts (no requests to Google Fonts) */
@font-face { font-family: "Fraunces"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/fraunces-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  --felt: #17428a;
  --felt-deep: #0c2550;
  --felt-soft: #e8eef8;
  --paper: #faf7f1;
  --card: #ffffff;
  --ink: #1b2420;
  --ink-soft: #4d5a54;
  --line: #e2ddd2;
  --red: #c41e2f;
  --gold: #f2b705;
  --radius: 14px;
  --max: 1080px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--felt); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

/* Language switch: each text exists in lang="en" / "it" / "fr" */
body:not([data-lang="en"]) [lang="en"],
body:not([data-lang="it"]) [lang="it"],
body:not([data-lang="fr"]) [lang="fr"] { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header */
.site-header {
  background: var(--felt-deep);
  color: #fff;
  position: sticky; top: 0; z-index: 5;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none;
  font-family: "Fraunces", Georgia, serif; font-size: 1.3rem; font-weight: 600;
}
.brand:hover { color: #fff; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--paper); color: var(--felt-deep);
  display: grid; place-items: center; font-size: 1.25rem; line-height: 1;
}
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: #dde5f2; text-decoration: none; font-size: .95rem;
  padding: 8px 10px; border-radius: 8px;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.1); }
.lang-switch {
  margin-left: 6px; display: inline-flex; border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px; overflow: hidden;
}
.lang-switch button {
  background: none; border: 0; color: #dde5f2; font: inherit; font-size: .8rem;
  font-weight: 600; padding: 5px 10px; cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--paper); color: var(--felt-deep); }

/* Hero */
.hero {
  background:
    radial-gradient(ellipse at 30% 0%, rgba(255,255,255,.08), transparent 60%),
    var(--felt);
  color: #fff;
  padding: 72px 0 80px;
}
.hero p.lead { font-size: 1.2rem; color: #d4dff0; max-width: 40em; }
.hero.small { padding: 48px 0 52px; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; text-decoration: none; font-size: 1rem;
}
.btn-primary { background: var(--gold); color: #1b1400; }
.btn-primary:hover { background: #ffc928; color: #1b1400; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--felt-soft); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
  font-weight: 700; color: var(--red); margin-bottom: 10px;
}
.muted { color: var(--ink-soft); }

/* Game tile */
.game {
  display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 32px; margin-top: 28px;
}
.game img.icon { width: 220px; height: 220px; border-radius: 22%; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.features { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 6px; }
.features li { padding-left: 26px; position: relative; }
.features li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--felt-soft); }
.badges { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.badges .appstore { height: 46px; width: auto; }
.badges .gplay { height: 68px; width: auto; margin: -11px; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.tile h3 { margin-bottom: .35em; }
.tile .big { font-family: "Fraunces", Georgia, serif; font-size: 1.6rem; color: var(--felt); margin-bottom: 4px; }

/* Contact / legal */
.contact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.contact-card dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; }
.contact-card dt { font-weight: 600; color: var(--ink-soft); }
.contact-card dd { margin: 0; overflow-wrap: anywhere; }

/* Support options */
.option {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; border-top: 5px solid var(--felt);
}
.option.red { border-top-color: var(--red); }
.option ol { padding-left: 1.2em; margin: 0 0 1em; }
.option li { margin-bottom: 4px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 10px; padding: 0 22px;
}
.faq summary {
  cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--felt); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 18px; color: var(--ink-soft); }

/* Footer */
.site-footer {
  background: var(--felt-deep); color: #c4d0e4; font-size: .92rem; padding: 48px 0 32px;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 20px; }

@media (max-width: 820px) {
  .game { grid-template-columns: 1fr; padding: 24px; }
  .game img.icon { width: 140px; height: 140px; }
  .grid-2, .grid-3, .footer-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { padding: 52px 0 60px; }
  .contact-card dl { grid-template-columns: 1fr; gap: 2px; }
  .contact-card dd { margin-bottom: 10px; }
}
@media (max-width: 480px) {
  .site-header .wrap { padding-top: 10px; padding-bottom: 10px; }
  .wrap { padding: 0 16px; }
}

/* grid children may shrink; long emails wrap */
.grid-2 > *, .grid-3 > * { min-width: 0; }
.option a, .contact-card a { overflow-wrap: anywhere; }
