/* Rummiqo website. The site's CSP allows no inline styles or scripts: all styling lives here. */

@font-face {
  font-family: Nunito;
  src: url("/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #FBF3E9;
  --sand: #F5EADA;
  --line: #EADCC8;
  --white: #FFFFFF;
  --ink: #2E2419;
  --text-soft: #6E5E4A;
  --text-muted: #8A7A66;
  --eyebrow: #8A6A52;
  --accent: #C97B5A;
  --accent-dark: #A55E3F;
}

body { margin: 0; background: var(--cream); }

.page {
  container: rq / inline-size;
  color: var(--ink);
  font-family: Nunito, system-ui, sans-serif;
  font-weight: 600;
}

a { color: var(--accent-dark); }
a:hover { color: var(--ink); }
h1, h2, h3, p { margin: 0; }

/* Header */

.header {
  max-width: 1160px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-name { font-size: 26px; font-weight: 900; letter-spacing: -0.035em; }
.logo { position: relative; width: 44px; height: 44px; border-radius: 12px; background: var(--accent); display: block; overflow: hidden; }
.logo-back, .logo-front { position: absolute; top: 8px; width: 21px; height: 26px; border-radius: 5px; }
.logo-back { left: 12px; background: #EFE1CE; transform: translate(3px, -1px) rotate(12deg); }
.logo-front {
  left: 11px;
  background: var(--cream);
  transform: rotate(-6deg);
  box-shadow: 0 2px 0 var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 900;
  color: var(--ink);
}
.nav { display: flex; align-items: center; gap: 28px; font-size: 16px; font-weight: 800; }
.nav a, .nav a:hover { color: var(--ink); text-decoration: none; }
.button-dark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
}
.button-dark:hover { color: var(--cream); }

/* Hero */

.hero {
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 24px 88px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--eyebrow); }
.hero h1 { font-size: clamp(44px, 8cqi, 80px); line-height: 0.98; font-weight: 900; letter-spacing: -0.04em; }
.accent { color: var(--accent); }
.hero-lead { max-width: 520px; font-size: 19px; line-height: 1.55; color: var(--text-soft); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.text-link { font-size: 16px; font-weight: 800; color: var(--ink); padding: 12px 4px; }
.hero-note { font-size: 14px; color: var(--text-muted); }

/* The official badge image has built-in clear space (41 of 646 x 250 px on each side). The negative
   margin cancels it, so the visible button is 64px high. */
.store-badge { display: inline-block; margin: -16px; line-height: 0; }
.store-badge img { width: 246px; height: auto; }

.phones { flex: 0 1 560px; width: 560px; max-width: 100%; margin: 0 auto; position: relative; padding: 0 24% 0 0; box-sizing: border-box; }
.phones img { display: block; width: 100%; height: auto; border: 3px solid var(--ink); }
.phone-back {
  position: absolute;
  right: 0;
  top: 80px;
  z-index: 0;
  width: 76%;
  padding: 6px;
  box-sizing: border-box;
  transform-origin: 100% 0;
  transform: rotate(7deg) scale(0.74);
}
.phones .phone-back img { border-radius: 49px; box-shadow: 0 0 50px -13px var(--ink); }
.phone-front { position: relative; z-index: 1; width: 100%; box-sizing: border-box; transform: rotate(-3deg); }
.phones .phone-front img { border-radius: 35px; box-shadow: 1px 1px 30px -4px var(--ink); }

/* Sections */

.band-white { background: var(--white); }
.band-sand { background: var(--sand); }
.section { max-width: 1160px; margin: 0 auto; padding: 88px 24px; display: flex; flex-direction: column; gap: 44px; }
.section-narrow { max-width: 820px; gap: 32px; }
.section-intro { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.section-intro-wide { max-width: 680px; }
.section h2 { font-size: clamp(32px, 5cqi, 48px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; }
.section-intro p { font-size: 18px; line-height: 1.55; color: var(--text-soft); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.cards-rules { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--cream); border-radius: 26px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.cards-rules .card { background: var(--white); gap: 14px; }
.card h3 { font-size: 21px; font-weight: 900; }
.card p { font-size: 16px; line-height: 1.5; color: var(--text-soft); }

.icon { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.icon-peach { background: #F7E2D5; }
.icon-lavender { background: #E2DCF0; }
.icon-sage { background: #EAF1E4; }
.icon-tan { background: #F2E4D2; }

.tiles { display: flex; gap: 6px; }
.tile { width: 40px; height: 52px; border-radius: 8px; color: var(--white); font-size: 22px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.tile-blue { background: #0066A8; }
.tile-red { background: #EB1C30; }
.tile-green { background: #69BB3D; }
.tile-yellow { background: #FDEB1D; color: #4A3B00; }
.tile-joker { font-size: 26px; }

/* FAQ */

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--white); border-radius: 20px; padding: 0 24px; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  content: "+" / ""; /* hidden from screen readers where supported */
  font-size: 26px;
  color: var(--accent);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 22px; font-size: 16px; line-height: 1.6; color: var(--text-soft); }

/* Call to action */

.cta-wrap { max-width: 1160px; margin: 0 auto; padding: 88px 24px; }
.cta {
  background: var(--accent);
  border-radius: 36px;
  padding: 56px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.cta-copy { display: flex; flex-direction: column; gap: 10px; flex: 1 1 360px; }
.cta h2 { font-size: clamp(36px, 6cqi, 60px); font-weight: 900; letter-spacing: -0.04em; line-height: 1; color: var(--white); }
.cta p { font-size: 18px; line-height: 1.5; color: #FFF3EA; }
.cta .store-badge { margin: 0; } /* the design's 16px margin is the badge's own clear space */

/* Legal pages */

.document { max-width: 820px; margin: 0 auto; padding: 40px 24px 88px; }
.document h1 { font-size: clamp(36px, 6cqi, 56px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.05; }
.document h2 { margin: 40px 0 10px; font-size: 24px; font-weight: 900; letter-spacing: -0.02em; }
.document p, .document li { font-size: 17px; line-height: 1.6; color: var(--text-soft); }
.document p + p { margin-top: 12px; }
.document ul { margin: 12px 0 0; padding-left: 22px; }
.document .updated { margin-top: 12px; font-size: 14px; color: var(--text-muted); }
.document .updated + p { margin-top: 24px; }
.document code { font-size: 0.92em; overflow-wrap: anywhere; }
.document a { overflow-wrap: anywhere; }
/* The privacy table keeps readable columns and scrolls sideways on a phone. */
.table-scroll { margin-top: 16px; overflow-x: auto; }
.table-scroll + p { margin-top: 16px; }
.document table { width: 100%; min-width: 540px; border-collapse: collapse; }
.document th, .document td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 15px; line-height: 1.5; color: var(--text-soft); }
.document th { font-weight: 900; color: var(--ink); }

/* Footer */

.footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 36px 24px 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  font-size: 15px;
  color: var(--text-soft);
}
.footer-about { display: flex; flex-direction: column; gap: 6px; }
.footer-brand { font-size: 20px; font-weight: 900; color: var(--ink); letter-spacing: -0.03em; }
.trademark { font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: flex-start; font-weight: 800; }
.footer-links a { color: var(--ink); }

@container rq (max-width: 720px) {
  .nav { display: none; }
  /* Slightly smaller, so "How to play" still fits next to the badge on a 390px phone. */
  .hero .store-badge { margin: -15px; }
  .hero .store-badge img { width: 230px; }
}

@media (prefers-reduced-motion: reduce) {
  .faq summary::after { transition: none; }
}
