/* Ludo King Queen website. Palette and clay look follow design-preview/index.html. */
:root {
  --ink: #1E1B4B;
  --ink-muted: #5B5A86;
  --paper: #FFF6EA;
  /* Page background: the King vs Queen blush gradient (peach -> blush -> pink -> lilac). */
  --bg-peach: #FFE4D3; --bg-blush: #FFD0CF; --bg-pink: #F6C9E2; --bg-lilac: #E2CDF5;
  --card: #FFFFFF;
  --red: #FF5A5F;    --red-deep: #D63A45;
  --green: #22C27A;  --green-deep: #149660;
  --yellow: #FFC83D; --yellow-deep: #E09A00;
  --blue: #3D8BFF;   --blue-deep: #2161D6;
  --rapid: #7C4DFF;  --rapid-deep: #5A2FD6; --rapid-paper: #F1EBFF;
  --radius-lg: 28px; --radius-md: 20px; --radius-sm: 14px;
  --clay: inset 0 -5px 0 rgba(0,0,0,.14), inset 0 3px 0 rgba(255,255,255,.45);
  --lift: 0 10px 22px -10px rgba(30,27,75,.35);
  --press: 160ms cubic-bezier(.3,1.6,.5,1);
  --max: 1080px;
  --gutter: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper) linear-gradient(180deg, var(--bg-peach) 0%, var(--bg-blush) 35%, var(--bg-pink) 70%, var(--bg-lilac) 100%) fixed;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, .display { font-family: 'Fredoka', 'Nunito', system-ui, sans-serif; font-weight: 700; line-height: 1.08; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 28px; } }

/* ── Top bar ── */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255,228,211,.82); backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 19px; }
.brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: var(--lift); background: #fff; }
.top nav { display: none; gap: 6px; }
.top nav a { text-decoration: none; font-weight: 800; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.top nav a:hover { background: #fff; }
@media (min-width: 720px) { .top nav { display: flex; } }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 13px 22px; border: 0; border-radius: 999px; cursor: pointer;
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 17px; text-decoration: none;
  box-shadow: var(--clay), var(--lift);
  transition: transform var(--press), box-shadow var(--press), filter 150ms;
}
.btn:hover { filter: brightness(1.04); }
.btn:active { transform: translateY(3px) scale(.97); box-shadow: inset 0 -2px 0 rgba(0,0,0,.14), inset 0 2px 0 rgba(255,255,255,.4), 0 4px 10px -6px rgba(30,27,75,.4); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-big { min-height: 60px; font-size: 20px; padding: 16px 28px; width: 100%; border-radius: 22px; }
.btn svg { width: 24px; height: 24px; flex-shrink: 0; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { min-width: 0; flex: 1 1 200px; justify-content: flex-start; text-align: left; border-radius: 18px; padding: 10px 18px; }
.store small { display: block; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: .4px; opacity: .85; line-height: 1.2; }
.store strong { display: block; font-size: 19px; line-height: 1.15; font-weight: 600; }
.store[aria-disabled="true"] { opacity: .78; cursor: default; }
.store .soon { margin-left: auto; background: var(--yellow); color: var(--ink); font: 800 11px 'Nunito', sans-serif; letter-spacing: .5px; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; }

/* ── Hero ── */
.hero { padding: 28px 0 48px; position: relative; }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 880px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; } .hero { padding: 56px 0 72px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #fff; box-shadow: var(--lift); font-weight: 800; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; }
.eyebrow .dots { display: inline-flex; gap: 4px; }
.eyebrow .dots i { width: 9px; height: 9px; border-radius: 50%; box-shadow: var(--clay); }
.hero h1 { font-size: clamp(42px, 11vw, 76px); margin: 16px 0 12px; letter-spacing: -.5px; }
.hero h1 .k { color: var(--blue); }
.hero h1 .q { color: var(--red); }
.lede { font-size: clamp(17px, 4.4vw, 20px); color: var(--ink-muted); font-weight: 700; max-width: 34ch; margin-bottom: 24px; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 340px; }
.hero-art .board { position: absolute; inset: 10% 6%; border-radius: 40px; background:
  conic-gradient(from 45deg, var(--red) 0 25%, var(--green) 0 50%, var(--yellow) 0 75%, var(--blue) 0 100%);
  box-shadow: inset 0 -8px 0 rgba(0,0,0,.14), inset 0 4px 0 rgba(255,255,255,.4), 0 26px 40px -22px rgba(30,27,75,.55);
  transform: rotate(-6deg); }
.hero-art .board::after { content: ''; position: absolute; inset: 22%; border-radius: 26px; background: var(--paper); box-shadow: inset 0 4px 0 rgba(0,0,0,.08); }
.hero-art .cards { position: relative; display: flex; justify-content: center; }
.hero-art .cards picture { width: min(40vw, 210px); }
.hero-art .cards img { border-radius: 18px; box-shadow: 0 18px 30px -14px rgba(30,27,75,.6); border: 4px solid #fff; }
.hero-art .cards picture:first-child { transform: rotate(-9deg) translate(14px, 10px); }
.hero-art .cards picture:last-child { transform: rotate(8deg) translate(-14px, -6px); }
.float { animation: bob 4s ease-in-out infinite; }
.float.late { animation-delay: -2s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* ── Sections ── */
section { padding: 48px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 28px; }
.section-head h2 { font-size: clamp(30px, 7vw, 44px); }
.section-head p { color: var(--ink-muted); font-weight: 700; font-size: 17px; margin-top: 8px; }

.clay { border-radius: var(--radius-lg); box-shadow: var(--clay), var(--lift); }

.features { display: grid; gap: 16px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 22px; background: var(--card); display: flex; flex-direction: column; gap: 10px; }
.feature .icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; box-shadow: var(--clay); }
.feature .icon svg { width: 30px; height: 30px; }
.feature h3 { font-size: 23px; }
.feature p { color: var(--ink-muted); font-weight: 700; }
.chip { align-self: flex-start; padding: 4px 10px; border-radius: 999px; font: 800 12px 'Nunito', sans-serif; letter-spacing: .5px; text-transform: uppercase; }
.t-rapid { background: var(--rapid); color: #fff; }
.t-green { background: var(--green); color: #fff; }
.t-red { background: var(--red); color: #fff; }

/* Room code tiles */
.code { display: flex; gap: 8px; margin-top: 4px; }
.code span { width: 44px; height: 54px; display: grid; place-items: center; background: var(--yellow); border-radius: var(--radius-sm); box-shadow: var(--clay); font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 28px; }

/* King vs Queen band */
.royal { background: var(--ink); color: #fff; border-radius: 36px; margin: 0 var(--gutter); padding: 40px 0; overflow: hidden; }
@media (min-width: 1140px) { .royal { margin: 0 auto; max-width: calc(var(--max) + 40px); } }
.royal .wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 820px) { .royal .wrap { grid-template-columns: 1fr 1fr; } }
.royal h2 { font-size: clamp(32px, 7.5vw, 48px); }
.royal h2 .k { color: #8DB8FF; }
.royal h2 .q { color: #FF9EA1; }
.royal p { color: #CFCCF2; font-weight: 700; font-size: 17px; margin-top: 12px; }
.royal ul { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.royal li { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.royal li::before { content: ''; flex-shrink: 0; width: 12px; height: 12px; border-radius: 50%; margin-top: 7px; background: var(--yellow); box-shadow: var(--clay); }
.court { display: flex; justify-content: center; gap: 0; }
.court figure { width: min(42vw, 230px); }
.court img { border-radius: 18px; border: 4px solid #fff; box-shadow: 0 22px 36px -16px rgba(0,0,0,.7); }
.court figure:first-child { transform: rotate(-6deg); }
.court figure:last-child { transform: rotate(6deg) translateY(16px); margin-left: -18px; }
.court figcaption { text-align: center; font-family: 'Fredoka', sans-serif; font-weight: 600; margin-top: 12px; }

/* Bubble */
.bubble { display: inline-block; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 18px 18px 18px 4px; font-weight: 800; font-size: 14px; box-shadow: var(--lift); margin-top: 18px; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.faq details { background: var(--card); border-radius: var(--radius-md); box-shadow: var(--clay), var(--lift); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 20px; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); box-shadow: var(--clay); font-size: 22px; line-height: 1; transition: transform 200ms; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--ink-muted); font-weight: 700; }

/* CTA + footer */
.cta { text-align: center; }
.cta .stores { justify-content: center; max-width: 520px; margin: 22px auto 0; }
footer { padding: 36px 0 44px; border-top: 2px dashed rgba(30,27,75,.15); margin-top: 24px; }
footer .wrap { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
footer nav a { font-weight: 800; text-decoration: none; padding: 6px 2px; }
footer nav a:hover { text-decoration: underline; }
footer small { color: var(--ink-muted); font-weight: 700; }

/* ── Invite page (open.html) ── */
.invite-main { min-height: calc(100vh - 64px); padding: 20px 0 40px; }
.invite-card { max-width: 460px; margin: 0 auto; background: var(--card); padding: 26px 20px 22px; text-align: center; }
.invite-card .avatar { width: 84px; height: 84px; margin: -64px auto 10px; border-radius: 26px; background: #fff; box-shadow: var(--clay), var(--lift); padding: 6px; }
.invite-card h1 { font-size: clamp(28px, 8vw, 36px); margin-bottom: 8px; }
.invite-card .sub { color: var(--ink-muted); font-weight: 700; margin-bottom: 18px; }
.invite-card .code { justify-content: center; margin: 6px 0 22px; }
.invite-card .code span { width: 58px; height: 70px; font-size: 38px; }
.friend-code { display: inline-block; margin: 6px 0 22px; padding: 10px 18px; border-radius: var(--radius-sm); background: var(--yellow); box-shadow: var(--clay); font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 26px; letter-spacing: 2px; }
.invite-card .stores { margin-top: 14px; }
.invite-card .hint { font-size: 14px; color: var(--ink-muted); font-weight: 700; margin-top: 16px; }
.invite-top-pad { height: 56px; }
.steps { max-width: 460px; margin: 22px auto 0; display: grid; gap: 10px; counter-reset: step; list-style: none; }
.steps li { counter-increment: step; display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.6); border-radius: var(--radius-md); padding: 12px 14px; font-weight: 700; }
.steps li::before { content: counter(step); flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: 'Fredoka', sans-serif; }

/* Legal pages (privacy.html, terms.html) */
.legal { padding: 24px 0 8px; }
.legal-brand { margin: 0 0 18px; }
.legal-card { max-width: 760px; margin: 0 auto; background: var(--card); padding: 28px 22px 26px; }
.legal-card h1 { font-size: 34px; margin: 0 0 4px; }
.legal-card h2 { font-size: 21px; margin: 28px 0 8px; }
.legal-card p, .legal-card li { line-height: 1.6; color: var(--ink); }
.legal-card ul { padding-left: 22px; margin: 8px 0; }
.legal-card li { margin: 6px 0; }
.legal-card a { color: var(--blue-deep); font-weight: 800; }
.legal-date { color: var(--ink-muted); font-weight: 700; margin: 0 0 18px; }
@media (min-width: 720px) { .legal-card { padding: 40px 44px 36px; } }
