/* chessmeet.fyi — the home page (index.html), loaded after style.css.
   The app's dark theme and neon green, and the first-player metals of
   lib/views/widgets/founder_frame.dart. Logical properties only, so the
   right-to-left pages mirror by themselves. */
.home {
  --wrap: 1160px;
  --glass: rgba(17, 28, 24, .66);
  --line: rgba(255, 255, 255, .08);
  --soft: #c4d8cf;
  --diamond: #8feaff;
  --gold: #ffc94a;
  --silver: #dce3ec;
}
/* A plain colour under the glow: a fixed background (style.css) covers one
   screen only when the page is captured whole, and some phones ignore it. */
body.home { background: radial-gradient(1200px 640px at 50% -220px, #0f2a20 0%, var(--bg) 62%) no-repeat, var(--bg); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.home > header.bar, .home main, .home > footer.site-foot { max-width: none; margin: 0; padding: 0; }
.home main { overflow-x: hidden; overflow-x: clip; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nw { white-space: nowrap; }
.mi { width: 22px; height: 22px; fill: currentColor; flex: none; }
.home a:focus-visible, .home summary:focus-visible, .home select:focus-visible {
  outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 8px;
}
.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 8px 14px;
  border-radius: 10px; background: var(--neon); color: #04130d; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Top bar */
.bar {
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line);
  background: rgba(11, 18, 16, .8); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.bar-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.bar .brand { font-size: 19px; gap: 10px; flex: none; }
.bar .brand img { width: 34px; height: 34px; border-radius: 10px; }
.anchors { display: flex; gap: 2px; margin-inline-start: auto; }
.anchors a { color: var(--muted); text-decoration: none; font-size: 14.5px; padding: 8px 11px; border: 0; border-radius: 999px; background: none; white-space: nowrap; }
.anchors a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.bar .lang { flex: none; }
@media (max-width: 1060px) {
  .anchors { display: none; }
  .bar .lang { margin-inline-start: auto; }
}

/* Headings — tight letter-spacing only where letters do not join */
.home h1, .home h2, .home h3 { letter-spacing: -.02em; }
.home h2 { display: block; border: 0; padding: 0; margin: 0; }
/* No lone word on a heading's last line. */
.home h1, .home h2, .home h3, .chip, .store b { text-wrap: balance; }
.lead, .sec-head p, .feature-lead, .soon-lead, .claim, .tier p { text-wrap: pretty; }
html[lang="ar"] .home *, html[lang="fa"] .home *, html[lang="hi"] .home *, html[lang="zh"] .home * { letter-spacing: 0 !important; }

/* Hero */
.hero { position: relative; padding: 64px 0 36px; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-conic-gradient(rgba(255, 255, 255, .04) 0 25%, transparent 0 50%) 50% 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(60% 70% at 72% 30%, #000, transparent 72%);
  mask-image: radial-gradient(60% 70% at 72% 30%, #000, transparent 72%);
}
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 6px 14px;
  border-radius: 999px; border: 1px solid rgba(16, 185, 129, .45); background: var(--neon-soft);
  color: #7ff0c8; font-size: 14px; font-weight: 700;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--neon); flex: none; }
@media (prefers-reduced-motion: no-preference) { .dot { animation: pulse 2.2s ease-out infinite; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}
.hero h1 { font-size: clamp(40px, 6vw, 70px); line-height: 1.04; font-weight: 800; margin: 0 0 20px; overflow-wrap: break-word; hyphens: auto; }
.hero h1 em {
  font-style: normal; color: var(--neon);
  background: linear-gradient(90deg, #34d399, #10b981 45%, #5eead4); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
html[lang="ar"] .hero h1, html[lang="fa"] .hero h1, html[lang="hi"] .hero h1 { line-height: 1.3; }
.lead { font-size: clamp(17px, 1.5vw, 19.5px); color: var(--soft); max-width: 34em; margin: 0 0 28px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-width: 214px; padding: 11px 20px 11px 14px;
  border-radius: 16px; border: 1px solid var(--border); background: linear-gradient(180deg, #13211c, #0d1714);
}
.store .mi { width: 30px; height: 30px; color: var(--neon); }
.store small { display: block; font-size: 11.5px; line-height: 1.3; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.store b { display: block; font-size: 17px; line-height: 1.3; }
.store > span { text-align: start; }
/* Launch day: the Google Play card is a link to the store page. */
a.store { color: inherit; text-decoration: none; }
a.store.live { border-color: var(--neon); }
a.store.live:hover, a.store.live:focus-visible { background: linear-gradient(180deg, #17302a, #0f1d19); }
.points { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 15px; }
.points li { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.points .mi { width: 19px; height: 19px; color: var(--neon); }
.hero-art { position: relative; display: flex; justify-content: center; padding: 10px 0 20px; }
.hero-art::before {
  content: ""; position: absolute; width: 540px; height: 540px; max-width: 120%; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(16, 185, 129, .32), rgba(16, 185, 129, .08) 60%, transparent); pointer-events: none;
}
/* The chips hang off the phone's edges, above it. */
.stage { position: relative; }
.chips { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; max-width: 230px; padding: 9px 14px;
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(13, 23, 20, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
  font-size: 14px; font-weight: 700; line-height: 1.3;
}
.chip .mi { width: 22px; height: 22px; color: var(--neon); }
.chip .gem { fill: url(#g-diamond); filter: drop-shadow(0 0 6px rgba(143, 234, 255, .6)); }
.chip-1 { top: 17%; inset-inline-start: -96px; }
.chip-2 { bottom: 15%; inset-inline-end: -84px; }
@media (prefers-reduced-motion: no-preference) {
  .chip-1 { animation: float 6s ease-in-out infinite; }
  .chip-2 { animation: float 6s ease-in-out -3s infinite; }
}
@keyframes float { 50% { transform: translateY(-8px); } }

/* Phones */
.phone {
  --w: 290px; position: relative; flex: none; margin: 0; width: var(--w);
  padding: calc(var(--w) * .03); border-radius: calc(var(--w) * .13);
  background: linear-gradient(150deg, #24362f, #0a110e 55%, #17251f);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 40px 80px -34px rgba(0, 0, 0, .9), 0 0 90px -34px rgba(16, 185, 129, .55);
}
.phone img { display: block; width: 100%; height: auto; border-radius: calc(var(--w) * .1); background: #0d1714; }
.phone.hero-phone { --w: 320px; z-index: 1; }
.fan { position: relative; display: grid; justify-items: center; align-items: center; padding: 24px 0; }
.fan > .phone { grid-area: 1 / 1; }
.fan > .phone:first-child { z-index: 3; }
.fan > .back { --w: 240px; filter: brightness(.62) saturate(.85); }
.fan > .b1 { z-index: 2; transform: translateX(-42%) rotate(-7deg); }
.fan > .b2 { z-index: 1; transform: translateX(42%) rotate(7deg); }
.fan.n2 > .b1 { transform: translateX(40%) rotate(7deg); }

/* Stats */
.stats { padding: 8px 0 12px; }
.stats-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--glass); }
.stat .mi { grid-row: 1 / 3; width: 30px; height: 30px; color: var(--neon); }
.stat b { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; font-weight: 800; }
.stat span { color: var(--muted); font-size: 14.5px; line-height: 1.4; }
/* Long compound words ("Eröffnungsfamilien") in narrow cards. */
.home p, .home li, .home h3, .stat span, .safe h3, .plan h3 { overflow-wrap: break-word; hyphens: auto; }
/* Chinese breaks between any two characters: the title breaks only where it says <wbr>. */
html[lang="zh"] .hero h1 { word-break: keep-all; }

/* Sections */
.sec { padding: 84px 0; position: relative; }
.sec-head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.kicker { margin: 0 0 10px; color: var(--neon); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.sec-head h2, .soon-card h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.12; font-weight: 800; margin: 0 0 14px; overflow-wrap: break-word; hyphens: auto; }
.sec-head p { margin: 0; color: var(--soft); font-size: 18px; }
.ib {
  display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 13px;
  border: 1px solid rgba(16, 185, 129, .3); background: var(--neon-soft);
}
.ib .mi { width: 22px; height: 22px; color: var(--neon); }

/* Features */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 44px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature:nth-of-type(even) .feature-art { order: -1; }
.tag { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--neon); font-weight: 800; font-size: 15px; }
.tag .mi { width: 24px; height: 24px; }
.adult { padding: 2px 9px; border-radius: 999px; border: 1px solid rgba(245, 185, 66, .55); background: var(--yellow-soft); color: var(--yellow); font-size: 13px; }
.feature h3 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; margin: 0 0 12px; color: var(--text); font-weight: 800; }
.feature-lead { margin: 0 0 8px; color: var(--soft); font-size: 17.5px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: start; margin: 0; }
.ticks .t { padding-top: 8px; color: #d6e7df; line-height: 1.55; }
.feature-art { display: flex; justify-content: center; }

/* First players */
.founders::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(760px 420px at 50% 0%, rgba(143, 234, 255, .09), transparent 70%);
}
.founders .wrap { position: relative; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tier { position: relative; overflow: hidden; padding: 30px 22px 26px; border-radius: 24px; border: 1px solid; text-align: center; }
.tier::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .09) 45%, transparent 60%);
}
.tier.diamond { background: linear-gradient(160deg, #12405a, #0a2236 55%, #081a2a); border-color: rgba(127, 233, 255, .45); }
.tier.gold { background: linear-gradient(160deg, #6a4a10, #3a2707 55%, #2a1c06); border-color: rgba(255, 211, 107, .45); }
.tier.silver { background: linear-gradient(160deg, #353d48, #1d232b 55%, #171b21); border-color: rgba(217, 222, 230, .4); }
.medal { width: 64px; height: 64px; }
.diamond .medal { fill: url(#g-diamond); filter: drop-shadow(0 0 14px rgba(143, 234, 255, .55)); }
.gold .medal { fill: url(#g-gold); filter: drop-shadow(0 0 14px rgba(255, 201, 74, .5)); }
.silver .medal { fill: url(#g-silver); filter: drop-shadow(0 0 14px rgba(220, 227, 236, .45)); }
.tier b { display: block; margin-top: 10px; font-size: 20px; }
.tier .range { display: inline-block; margin-top: 10px; padding: 4px 14px; border-radius: 999px; background: rgba(0, 0, 0, .28); font-weight: 800; font-variant-numeric: tabular-nums; }
.diamond .range { color: var(--diamond); } .gold .range { color: var(--gold); } .silver .range { color: var(--silver); }
.tier p { margin: 12px 0 0; color: rgba(255, 255, 255, .8); font-size: 15px; line-height: 1.55; }
.keeps-title { margin: 40px 0 16px; text-align: center; font-size: 20px; color: var(--text); }
.keeps { list-style: none; padding: 0; margin: 0 auto; max-width: 960px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.keeps li { display: flex; gap: 12px; align-items: center; margin: 0; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); line-height: 1.45; }
.claim { max-width: 680px; margin: 26px auto 0; text-align: center; color: var(--soft); }
.claim strong { color: var(--neon); }

/* Plans */
.plans-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 26px 24px; border-radius: 24px; border: 1px solid var(--line); background: var(--glass); }
.plan.gold { border-color: rgba(255, 201, 74, .5); background: linear-gradient(180deg, rgba(255, 201, 74, .11), rgba(17, 28, 24, .7) 45%); }
.plan.premium { border-color: rgba(143, 234, 255, .5); background: linear-gradient(180deg, rgba(143, 234, 255, .11), rgba(17, 28, 24, .7) 45%); }
.plan-head { display: flex; align-items: center; gap: 12px; }
.plan-ico { width: 38px; height: 38px; color: var(--neon); }
.plan.gold .plan-ico { fill: url(#g-gold); filter: drop-shadow(0 0 8px rgba(255, 201, 74, .45)); }
.plan.premium .plan-ico { fill: url(#g-diamond); filter: drop-shadow(0 0 8px rgba(143, 234, 255, .5)); }
.plan h3 { margin: 0; font-size: 25px; color: var(--text); }
.plan .tagline { margin: 8px 0 18px; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.plan li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; margin: 0; line-height: 1.5; }
.plan li .mi { width: 20px; height: 20px; margin-top: 2px; color: var(--neon); }
.plan.gold li .mi { color: var(--gold); }
.plan.premium li .mi { color: var(--diamond); }
.plans-note { max-width: 700px; margin: 22px auto 0; text-align: center; color: var(--muted); font-size: 14.5px; }

/* Safety */
.safety-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.safe { padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--glass); }
.safe h3 { margin: 14px 0 6px; font-size: 17px; color: var(--text); }
.safe p { margin: 0; color: #b9cdc4; font-size: 15px; line-height: 1.55; }
.safety-links { margin: 22px 0 0; text-align: center; color: var(--muted); }

/* Coming soon */
.soon-card {
  position: relative; overflow: hidden; padding: 56px 28px; border-radius: 30px; text-align: center;
  border: 1px solid rgba(16, 185, 129, .38);
  background: radial-gradient(620px 300px at 50% 0%, rgba(16, 185, 129, .26), transparent 72%), linear-gradient(180deg, #0f1f19, #0b1411);
}
.soon-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-conic-gradient(rgba(255, 255, 255, .03) 0 25%, transparent 0 50%) 50% 0 / 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%); mask-image: linear-gradient(180deg, #000, transparent 75%);
}
.soon-card > * { position: relative; }
.soon-lead { max-width: 640px; margin: 0 auto 28px; color: var(--soft); font-size: 18px; }
.soon-card .stores { justify-content: center; }
.contact { margin: 26px 0 0; color: var(--muted); }
.contact .mi { width: 20px; height: 20px; color: var(--neon); vertical-align: -5px; margin-inline-end: 8px; }

/* Questions */
.faq-list { max-width: 840px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { padding: 0 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); }
.faq details[open] { border-color: rgba(16, 185, 129, .35); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.chev { width: 26px; height: 26px; color: var(--muted); transition: transform .2s; }
.faq details[open] .chev { transform: rotate(180deg); color: var(--neon); }
.faq details p { margin: 0 0 18px; color: var(--soft); }

/* Footer */
.home > footer.site-foot { display: block; margin-top: 24px; padding: 40px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 40px; align-items: start; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { border-radius: 10px; }
.foot-brand b { display: block; color: var(--text); font-size: 17px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-title { flex-basis: 100%; color: var(--text); font-weight: 700; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--neon); }
.foot-meta { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); }
.foot-meta .sep { margin: 0 8px; }

/* Tablets */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 20px; text-align: center; }
  .lead { margin-inline: auto; }
  .stores, .points { justify-content: center; }
  .stats-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 36px 0; }
  .feature:nth-of-type(even) .feature-art { order: 0; }
  .tiers, .plans-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .keeps { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
}

/* Phones */
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .bar .brand span { font-size: 18px; }
  .hero { padding: 36px 0 20px; }
  .phone.hero-phone { --w: 236px; }
  /* On a phone the chips sit on the frame's corners, off the screenshot. */
  .chip { font-size: 12.5px; padding: 7px 10px; max-width: 200px; }
  .chip .mi { width: 18px; height: 18px; }
  .chip-1 { top: -16px; inset-inline-start: -12px; }
  .chip-2 { bottom: -16px; inset-inline-end: -12px; }
  .store { flex: 1 1 100%; min-width: 0; justify-content: center; }
  .tier { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 18px 16px; text-align: start; }
  .tier > :not(.medal) { grid-column: 2; }
  .tier .medal { grid-row: 1 / 4; grid-column: 1; width: 50px; height: 50px; }
  .tier b { margin-top: 0; font-size: 18px; }
  .tier .range { justify-self: start; margin-top: 6px; }
  .tier p { margin-top: 8px; font-size: 14.5px; }
  .stat { padding: 14px; column-gap: 10px; }
  .stat .mi { width: 24px; height: 24px; }
  .sec { padding: 56px 0; }
  .sec-head p, .soon-lead { font-size: 16.5px; }
  .phone { --w: 210px; }
  .fan > .back { --w: 170px; }
  .fan > .b1 { transform: translateX(-30%) rotate(-6deg); }
  .fan > .b2 { transform: translateX(30%) rotate(6deg); }
  .fan.n2 > .b1 { transform: translateX(30%) rotate(6deg); }
  .soon-card { padding: 40px 18px; border-radius: 24px; }
  .faq details { padding: 0 16px; }
}
