/* Hendone — hendone.app
 * Light by default and dark when the system is, like the app. Every colour below comes from
 * the app's own palette (Sources/Core/Theme/Theme.swift and GameID.accentHex). */

@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --bg: #fbfdf4;
  --bg-top: #f4fae4;
  --bg-bottom: #fdeff1;
  --card: #ffffff;
  --card-2: #f5f9ea;
  --card-3: #edf4dc;
  --line: #e7efd6;
  --line-strong: #d8e5bf;
  --text: #24311b;
  --muted: #627056;
  --dim: #8b977f;
  --header-bg: rgba(251, 253, 244, 0.8);

  /* brand */
  --red: #e6323c;
  --red-deep: #c41e28;
  --red-grad: linear-gradient(135deg, #f04a54, #c41e28);
  --green: #6dbe45;
  --green-deep: #3e7c29;
  --green-ink: #3e7c29;
  --green-grad: linear-gradient(135deg, #6dbe45, #3e7c29);
  --gold: #f4b740;
  --gold-grad: linear-gradient(180deg, #ffd54a, #f4a521);
  --pink: #f6a9c1;
  --lime: #e8f5c0;

  --shadow-sm: 0 6px 18px rgba(62, 124, 41, 0.08);
  --shadow: 0 22px 60px rgba(42, 20, 16, 0.1);
  --shadow-phone: 0 40px 80px rgba(42, 20, 16, 0.22);
  --shadow-red: 0 14px 34px rgba(196, 30, 40, 0.26);

  --radius-card: 30px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-en: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Vazirmatn", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14151a;
    --bg-top: #16171d;
    --bg-bottom: #1c1620;
    --card: #1e2027;
    --card-2: #25272f;
    --card-3: #2d2f38;
    --line: #2d2f37;
    --line-strong: #3a3c46;
    --text: #f3f3f1;
    --muted: #a7a8b0;
    --dim: #7c7e87;
    --header-bg: rgba(20, 21, 26, 0.78);
    --green-ink: #8fd46a;
    --lime: #26301d;

    --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.25);
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
    --shadow-phone: 0 40px 80px rgba(0, 0, 0, 0.55);
    --shadow-red: 0 14px 34px rgba(196, 30, 40, 0.3);
  }
}

/* one accent per game, as on the app's home screen */
.g-pantomime { --accent: #e6323c; }
.g-taboo { --accent: #c0392b; }
.g-spyfall { --accent: #2e6e8e; }
.g-mafia { --accent: #4a3b8c; }
.g-wink { --accent: #b03a6b; }
.g-headsup { --accent: #e58e1a; }

[class*="g-"] {
  --accent-soft: color-mix(in srgb, var(--accent) 11%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 42%, transparent);
  --accent-ink: var(--accent);
}

@media (prefers-color-scheme: dark) {
  [class*="g-"] {
    --accent-soft: color-mix(in srgb, var(--accent) 20%, transparent);
    --accent-line: color-mix(in srgb, var(--accent) 55%, transparent);
    --accent-ink: color-mix(in srgb, var(--accent) 55%, #ffffff);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  background-image: linear-gradient(180deg, var(--bg-top) 0, var(--bg) 780px);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

::selection {
  background: rgba(230, 50, 60, 0.22);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

.narrow {
  max-width: 780px;
}

.nowrap {
  white-space: nowrap;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

section {
  scroll-margin-top: 96px;
}

.i {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 100;
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 14px;
  z-index: 50;
  padding-inline: 16px;
}

.header-pill {
  max-width: 1080px;
  height: 62px;
  margin-inline: auto;
  padding-inline: 12px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.scrolled .header-pill {
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  backdrop-filter: saturate(170%) blur(18px);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
  font-size: 21px;
  line-height: 1;
}

.brand img {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 3px 5px rgba(62, 124, 41, 0.22));
}

.brand-name {
  background: var(--red-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 4px;
}

.header-nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}

.header-nav a {
  color: var(--muted);
  transition: color 0.2s;
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
  color: var(--text);
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding-inline: 26px;
  border-radius: 999px;
  background: var(--red-grad);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: var(--shadow-red);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(196, 30, 40, 0.34);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-sm {
  height: 44px;
  padding-inline: 18px;
  font-size: 15px;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(196, 30, 40, 0.22);
}

.btn-sm .i {
  width: 19px;
  height: 19px;
}

.btn-ghost {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  box-shadow: 0 14px 30px rgba(62, 124, 41, 0.12);
}

.btn-green {
  background: var(--green-grad);
  box-shadow: 0 14px 34px rgba(62, 124, 41, 0.26);
}

.btn-green:hover {
  box-shadow: 0 18px 40px rgba(62, 124, 41, 0.32);
}

.btn-store {
  height: 62px;
  padding-inline: 24px 28px;
  gap: 12px;
}

.btn-store .i {
  width: 26px;
  height: 26px;
}

.btn-store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.btn-store-text small {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.88;
}

.btn-store-text b {
  font-size: 19px;
  font-weight: 900;
}

.btn:focus-visible,
.header-nav a:focus-visible,
.footer-col a:focus-visible,
.brand:focus-visible,
.game-card:focus-visible,
summary:focus-visible,
.shots:focus-visible,
.text-link:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.btn:focus-visible,
.header-nav a:focus-visible,
.brand:focus-visible {
  border-radius: 999px;
}

.cta-note {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--dim);
}

.text-link {
  color: var(--red);
  font-weight: 700;
  border-bottom: 1.5px solid color-mix(in srgb, var(--red) 30%, transparent);
  transition: border-color 0.2s;
}

.text-link:hover {
  border-color: var(--red);
}

/* ---------------------------------------------------------------- shared type */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px 6px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 700;
  color: var(--green-ink);
  margin-bottom: 22px;
}

.section {
  padding-block: 110px 20px;
}

.section-title {
  font-size: clamp(30px, 4.3vw, 48px);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 14px;
  text-wrap: balance;
}

.section-title .muted,
.muted {
  color: var(--muted);
}

.section-lead {
  font-size: clamp(16.5px, 1.7vw, 19px);
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 38px;
}

.grad {
  background: var(--red-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.08em;
}

/* ---------------------------------------------------------------- phone */

.phone {
  --pw: 290px;
  width: var(--pw);
  max-width: 100%;
  padding: calc(var(--pw) * 0.034);
  border-radius: calc(var(--pw) * 0.165);
  background: linear-gradient(150deg, #3d3d44, #121215 55%, #2c2c32);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.13),
    var(--shadow-phone),
    0 0 0 1px rgba(0, 0, 0, 0.35);
  position: relative;
  flex: none;
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--pw) * 0.132);
  background: var(--card-2);
}

.phone.landscape {
  --pw: 560px;
  padding: calc(var(--pw) * 0.016);
  border-radius: calc(var(--pw) * 0.078);
}

.phone.landscape img {
  border-radius: calc(var(--pw) * 0.064);
}

/* ---------------------------------------------------------------- home hero */

.hero {
  padding-block: 150px 70px;
  position: relative;
  isolation: isolate;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 760px;
  background:
    radial-gradient(520px 380px at 18% 30%, rgba(246, 169, 193, 0.34), transparent 70%),
    radial-gradient(560px 400px at 85% 12%, rgba(109, 190, 69, 0.16), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

@media (prefers-color-scheme: dark) {
  .hero::before,
  .page-hero::before {
    background:
      radial-gradient(520px 380px at 18% 30%, rgba(230, 50, 60, 0.13), transparent 70%),
      radial-gradient(560px 400px at 85% 12%, rgba(109, 190, 69, 0.08), transparent 70%);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.22;
  font-weight: 900;
  margin-bottom: 22px;
  letter-spacing: -0.5px;
}

.hero-lead {
  font-size: clamp(17.5px, 1.8vw, 20.5px);
  line-height: 1.95;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-cta .btn-ghost {
  height: 62px;
}

.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 26px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-points li::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  flex: none;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-stack {
  position: relative;
  width: 480px;
  max-width: 100%;
  height: 640px;
}

.phone-stack .phone {
  position: absolute;
}

.phone-stack .phone-front {
  --pw: 280px;
  inset-inline-end: 44px;
  top: 0;
  transform: rotate(-3deg);
  z-index: 2;
}

.phone-stack .phone-back {
  --pw: 240px;
  inset-inline-start: 0;
  top: 74px;
  transform: rotate(6deg);
  opacity: 0.98;
}

.float {
  position: absolute;
  z-index: 3;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: bob 5.5s ease-in-out infinite;
}

.float.f1 { top: 36px; inset-inline-start: 0; animation-delay: -0.4s; }
.float.f2 { top: 190px; inset-inline-end: -8px; animation-delay: -1.6s; }
.float.f3 { top: 350px; inset-inline-start: -14px; animation-delay: -2.6s; }
.float.f4 { bottom: 70px; inset-inline-end: 6px; animation-delay: -3.4s; }
.float.f5 { bottom: 4px; inset-inline-start: 120px; animation-delay: -4.2s; }
.float.f6 { top: -18px; inset-inline-end: 150px; animation-delay: -2.1s; width: 54px; height: 54px; font-size: 27px; }

@keyframes bob {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -10px; rotate: -4deg; }
}

/* ---------------------------------------------------------------- manifesto */

.manifesto {
  padding-block: 70px 30px;
}

.manifesto h2 {
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 900;
  line-height: 1.45;
  margin-bottom: 20px;
  text-wrap: balance;
}

.manifesto p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 14px;
}

.manifesto .lead {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--text);
  font-weight: 500;
  line-height: 1.95;
  margin-bottom: 18px;
}

/* ---------------------------------------------------------------- game cards */

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 22px;
  border-radius: 28px;
  background: var(--card);
  border: 1.5px solid var(--accent-line);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 10%, transparent);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  overflow: hidden;
}

.game-card::after {
  content: "";
  position: absolute;
  inset-inline-end: -60px;
  top: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--accent-soft);
  pointer-events: none;
  transition: transform 0.5s var(--ease);
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px color-mix(in srgb, var(--accent) 18%, transparent);
}

.game-card:hover::after {
  transform: scale(1.25);
}

.game-emoji {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 36px;
  background: var(--accent-soft);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.game-card h3 {
  font-size: 23px;
  font-weight: 900;
  line-height: 1.45;
  margin-bottom: 6px;
}

.game-card h3 small {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-ink);
  margin-inline-start: 4px;
}

.game-card p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 16px;
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  margin-bottom: 14px;
}

.game-meta span,
.fact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px 4px;
  border-radius: 999px;
  background: var(--card-2);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.game-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--accent-ink);
}

.game-more .i {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}

.game-card:hover .game-more .i {
  transform: translateX(-4px);
}

/* ---------------------------------------------------------------- bento */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  display: flex;
  min-height: 430px;
  box-shadow: var(--shadow-sm);
}

.card-wide {
  grid-column: span 7;
}

.card-narrow {
  grid-column: span 5;
  flex-direction: column;
}

.card-full {
  grid-column: span 12;
  flex-direction: column;
}

.card-stack {
  flex-direction: column;
}

.card-stack .card-copy {
  flex: none;
  padding-bottom: 0;
}

.card-stack .card-copy p {
  max-width: 520px;
}

.card-copy {
  padding: 36px 36px 32px;
  flex: 1 1 50%;
  position: relative;
  z-index: 2;
}

.card-narrow .card-copy {
  flex: none;
  padding-top: 6px;
}

.card-full .card-copy {
  flex: none;
  max-width: 760px;
  padding-bottom: 8px;
}

.card h3 {
  font-size: clamp(25px, 2.6vw, 33px);
  font-weight: 900;
  line-height: 1.45;
  margin-bottom: 12px;
}

.card-copy p {
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 400px;
}

.card-full .card-copy p {
  max-width: 640px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 0 12px 2px 14px;
  border-radius: 14px;
  margin-bottom: 6px;
  font-size: 0.82em;
}

.chip-red { color: var(--red); background: rgba(230, 50, 60, 0.1); }
.chip-green { color: var(--green-ink); background: rgba(109, 190, 69, 0.14); }
.chip-gold { color: #c7850c; background: rgba(244, 183, 64, 0.16); }
.chip-pink { color: #d0457a; background: rgba(246, 169, 193, 0.24); }
.chip-violet { color: #6a55c8; background: rgba(106, 85, 200, 0.12); }

@media (prefers-color-scheme: dark) {
  .chip-gold { color: #f4c25a; }
  .chip-pink { color: #f59bbd; }
  .chip-violet { color: #b3a3f5; background: rgba(140, 120, 240, 0.16); }
  .chip-red { color: #ff6b73; background: rgba(230, 50, 60, 0.16); }
}

@media (min-width: 981px) {
  .card-wide:not(.card-stack) .card-visual {
    flex: 0 0 44%;
  }
}

.card-visual {
  flex: 1 1 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  padding: 24px;
}

.card-narrow .card-visual {
  order: -1;
  flex: 1;
  padding: 34px 24px 12px;
}

/* offline: a settings screen */
.settings-mock {
  width: 270px;
  padding: 14px;
  border-radius: 26px;
  background: var(--card-2);
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
  transform: rotate(-3deg);
  box-shadow: var(--shadow);
  transition: transform 0.6s var(--ease);
}

.card:hover .settings-mock {
  transform: rotate(-1deg) translateY(-4px);
}

.set-row,
.set-app {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 16px;
  background: var(--card);
  font-size: 14px;
  font-weight: 700;
}

.set-ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 17px;
  background: var(--card-3);
  flex: none;
}

.set-label {
  flex: 1;
}

.toggle {
  width: 44px;
  height: 26px;
  border-radius: 13px;
  background: var(--card-3);
  position: relative;
  flex: none;
}

.toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.toggle.on {
  background: var(--green);
}

.toggle.on::after {
  inset-inline-start: 21px;
}

.set-app {
  margin-top: 4px;
  padding-block: 12px;
  border: 1.5px solid rgba(109, 190, 69, 0.45);
}

.set-app img {
  width: 40px;
  height: 40px;
}

.set-app span {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

.set-app small {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.set-app .ok {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

/* pass the phone: hold to reveal */
.reveal-mock {
  width: 250px;
  text-align: center;
}

.rm-head {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 10px;
}

.rm-card {
  position: relative;
  height: 250px;
  border-radius: 26px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.rm-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px;
}

.rm-face b {
  font-size: 17px;
  font-weight: 900;
}

.rm-face small {
  font-size: 12.5px;
  color: var(--muted);
}

.rm-emoji {
  font-size: 46px;
  line-height: 1.3;
}

.rm-shown b {
  color: var(--red);
  font-size: 24px;
}

.rm-hidden {
  animation: rm-hide 6s var(--ease) infinite;
}

.rm-shown {
  opacity: 0;
  animation: rm-show 6s var(--ease) infinite;
}

.rm-press {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 86px;
  height: 86px;
  margin: -43px 0 0 -43px;
  border-radius: 50%;
  background: rgba(109, 190, 69, 0.28);
  opacity: 0;
  animation: rm-press 6s var(--ease) infinite;
}

@keyframes rm-hide {
  0%, 34% { opacity: 1; transform: none; }
  42%, 86% { opacity: 0; transform: scale(0.94); }
  94%, 100% { opacity: 1; transform: none; }
}

@keyframes rm-show {
  0%, 36% { opacity: 0; transform: scale(0.94); }
  44%, 84% { opacity: 1; transform: none; }
  92%, 100% { opacity: 0; transform: scale(0.94); }
}

@keyframes rm-press {
  0%, 18% { opacity: 0; transform: scale(0.4); }
  26%, 38% { opacity: 1; transform: scale(1); }
  46%, 100% { opacity: 0; transform: scale(1.4); }
}

/* content: numbers + words drifting by */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 36px 8px;
  position: relative;
  z-index: 2;
}

.stat {
  padding: 16px 18px 14px;
  border-radius: 22px;
  background: var(--card-2);
  border: 1px solid var(--line);
}

.stat b {
  display: block;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
  line-height: 1.3;
  background: var(--red-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat:nth-child(2) b { background: var(--green-grad); -webkit-background-clip: text; background-clip: text; }
.stat:nth-child(3) b { background: linear-gradient(135deg, #3f8db3, #2e6e8e); -webkit-background-clip: text; background-clip: text; }
.stat:nth-child(4) b { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; }

.stat span {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
}

.marquee {
  direction: ltr;
  display: grid;
  gap: 10px;
  padding: 22px 0 30px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: marquee 70s linear infinite;
}

.marquee-track.rev {
  animation-direction: reverse;
  animation-duration: 80s;
}

.marquee .w {
  direction: rtl;
  flex: none;
  padding: 7px 18px 8px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.marquee .w.hot {
  background: var(--red-grad);
  color: #fff;
  border-color: transparent;
}

.marquee .w.gold {
  background: var(--gold-grad);
  color: #5c3b00;
  border-color: transparent;
}

.marquee .w.green {
  background: rgba(109, 190, 69, 0.14);
  color: var(--green-ink);
  border-color: transparent;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* what should we play tonight */
.suggest-mock {
  width: 300px;
  display: grid;
  gap: 10px;
}

.suggest-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--red-grad);
  color: #fff;
  box-shadow: var(--shadow-red);
}

.suggest-btn .dice {
  font-size: 28px;
  display: inline-block;
  animation: roll 4s var(--ease) infinite;
}

@keyframes roll {
  0%, 60% { transform: rotate(0); }
  75% { transform: rotate(200deg) scale(1.1); }
  90%, 100% { transform: rotate(360deg); }
}

.suggest-btn span:last-child,
.suggest-result span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

.suggest-btn b {
  font-size: 16px;
  font-weight: 900;
}

.suggest-btn small {
  font-size: 12px;
  opacity: 0.88;
}

.suggest-q {
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  font-size: 14px;
  font-weight: 800;
}

.qchips {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.qchips i {
  font-style: normal;
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 11px 4px;
  border-radius: 999px;
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--muted);
}

.qchips i.on {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.suggest-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 20px;
  background: var(--card);
  border: 1.5px solid rgba(46, 110, 142, 0.45);
  box-shadow: var(--shadow-sm);
}

.suggest-result > span:first-child {
  font-size: 30px;
}

.suggest-result small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.suggest-result b {
  font-size: 18px;
  font-weight: 900;
}

/* resume + party history */
.resume-mock {
  display: flex;
  align-items: center;
  gap: 14px;
  transform: rotate(2deg);
  transition: transform 0.6s var(--ease);
}

.card:hover .resume-mock {
  transform: rotate(0.5deg) translateY(-4px);
}

.mini-game {
  width: 150px;
  flex: none;
  padding: 18px 10px 14px;
  border-radius: 22px;
  background: var(--card);
  border: 1.5px solid var(--accent-line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.5;
}

.mg-emoji {
  font-size: 36px;
  line-height: 1.3;
}

.mini-game b {
  font-size: 16px;
  font-weight: 900;
}

.mini-game small {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}

.badge {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  padding: 2px 10px 3px;
  border-radius: 999px;
  background: var(--accent);
}

.history {
  width: 230px;
  padding: 10px;
  border-radius: 22px;
  background: var(--card-2);
  border: 1px solid var(--line);
  display: grid;
  gap: 6px;
  box-shadow: var(--shadow);
}

.h-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 14px;
  background: var(--card);
  font-size: 13px;
}

.h-row > span:first-child {
  font-size: 20px;
}

.h-row > span:nth-child(2) {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  min-width: 0;
}

.h-row b {
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.h-row small {
  font-size: 11px;
  color: var(--muted);
}

.h-score {
  flex: none;
  color: var(--green-ink);
}

/* ---------------------------------------------------------------- small cards */

.small-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.small-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px 26px 22px;
  box-shadow: var(--shadow-sm);
}

.small-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 25px;
  background: var(--card-2);
  border: 1px solid var(--line);
  margin-bottom: 14px;
}

.small-card h3 {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.6;
  margin-bottom: 4px;
}

.small-card p {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
}

/* ---------------------------------------------------------------- gallery */

.shots {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(24px, calc((100vw - 1120px) / 2 + 24px));
  padding: 16px max(24px, calc((100vw - 1120px) / 2 + 24px)) 40px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.shot {
  scroll-snap-align: start;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.shot .phone {
  --pw: 236px;
}

.shot .phone.landscape {
  --pw: 500px;
  margin-block: auto;
}

.shot figcaption {
  max-width: 236px;
  text-align: center;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--muted);
}

.shot.wide figcaption {
  max-width: 420px;
}

.shot figcaption b {
  display: block;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
}

/* ---------------------------------------------------------------- occasions */

.occasion-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.occasion {
  padding: 22px 22px 20px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.occasion span {
  font-size: 32px;
  line-height: 1.4;
}

.occasion h3 {
  font-size: 17.5px;
  font-weight: 900;
  margin: 6px 0 4px;
}

.occasion p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

/* ---------------------------------------------------------------- steps */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.steps.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 26px 28px 24px;
  box-shadow: var(--shadow-sm);
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--red-grad);
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 18px rgba(196, 30, 40, 0.22);
}

.step h3 {
  font-size: 19px;
  font-weight: 900;
  margin-bottom: 6px;
}

.step p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

/* ---------------------------------------------------------------- faq */

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s;
}

.faq details[open] {
  border-color: var(--line-strong);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.7;
  border-radius: 22px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--card-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' fill='none' stroke='%23e6323c' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq-a {
  padding: 0 24px 20px;
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--muted);
}

.faq-a p + p {
  margin-top: 10px;
}

.faq-a a {
  color: var(--red);
  font-weight: 700;
}

/* ---------------------------------------------------------------- download */

.download {
  padding-block: 120px 100px;
}

.download-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.download h2 {
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 10px;
}

.download .section-lead {
  margin-inline: auto;
  margin-bottom: 34px;
}

.store-card {
  width: 320px;
  max-width: 100%;
  padding: 26px 24px 20px;
  border-radius: 34px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-bottom: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: rotate(-2deg);
  transition: transform 0.6s var(--ease);
}

.store-card:hover {
  transform: rotate(0deg) translateY(-4px);
}

.store-icon {
  width: 118px;
  height: 118px;
  border-radius: 27px;
  box-shadow: 0 16px 30px rgba(62, 124, 41, 0.22), inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  margin-bottom: 14px;
}

.store-name {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.5;
}

.store-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.store-meta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}

.store-meta span {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  line-height: 1.6;
}

.store-meta b {
  font-size: 15px;
  color: var(--text);
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  padding-bottom: 34px;
}

.footer-box {
  padding: 34px 34px 26px;
  border-radius: 30px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 12px;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}

.footer-social a:hover {
  color: var(--red);
  border-color: var(--line-strong);
}

.footer-social .i {
  width: 20px;
  height: 20px;
}

.footer-col h2 {
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 10px;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 6px;
}

.footer-col a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--dim);
}

/* ---------------------------------------------------------------- game pages */

.page-hero {
  padding-block: 128px 40px;
  position: relative;
  isolation: isolate;
}

.crumbs {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--dim);
  margin-bottom: 20px;
}

.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.crumbs li + li::before {
  content: "‹";
  margin-inline-end: 4px;
}

.crumbs a:hover {
  color: var(--text);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.game-badge {
  width: 84px;
  height: 84px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  font-size: 48px;
  background: var(--card);
  border: 1.5px solid var(--accent-line);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--accent) 18%, transparent);
  margin-bottom: 22px;
}

.page-hero h1 {
  font-size: clamp(34px, 4.8vw, 58px);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 18px;
  text-wrap: balance;
}

.page-hero h1 .alt {
  color: var(--accent-ink);
}

.page-hero .hero-lead {
  max-width: 580px;
  margin-bottom: 24px;
}

.facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.fact {
  font-size: 14px;
  padding: 5px 14px 6px;
  background: var(--card);
  color: var(--text);
}

.phone-pair {
  position: relative;
  width: 420px;
  max-width: 100%;
  height: 600px;
  justify-self: center;
}

.phone-pair .phone {
  position: absolute;
}

.phone-pair .phone:first-child {
  --pw: 262px;
  inset-inline-end: 10px;
  top: 0;
  transform: rotate(-3deg);
  z-index: 2;
}

.phone-pair .phone:nth-child(2) {
  --pw: 226px;
  inset-inline-start: 6px;
  top: 70px;
  transform: rotate(6deg);
}

.phone-pair.solo {
  height: auto;
  display: flex;
  justify-content: center;
}

.phone-pair.solo .phone {
  position: relative;
  inset: auto;
  top: auto;
}

.phone-pair.landscape-pair {
  width: 520px;
  height: 560px;
}

.phone-pair.landscape-pair .phone.landscape {
  --pw: 480px;
  inset-inline-end: 0;
  top: 270px;
  transform: rotate(-3deg);
  z-index: 3;
}

.phone-pair.landscape-pair .phone:nth-child(2) {
  --pw: 230px;
  inset-inline-start: 40px;
  top: 0;
  transform: rotate(5deg);
}

.game-section {
  padding-block: 90px 10px;
}

.game-section .section-title {
  font-size: clamp(27px, 3.4vw, 38px);
}

.prose {
  font-size: 16.5px;
  color: var(--muted);
  max-width: 760px;
}

.prose p + p {
  margin-top: 12px;
}

.prose strong {
  color: var(--text);
}

/* scoring / rules table */
.score-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 15.5px;
}

.score-table th,
.score-table td {
  text-align: start;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.score-table tr:last-child td {
  border-bottom: 0;
}

.score-table thead th {
  background: var(--card-2);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--muted);
}

.score-table td:first-child {
  font-weight: 700;
}

.score-table td small {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.pts {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
  min-width: 52px;
  text-align: center;
  padding: 2px 12px 3px;
  border-radius: 999px;
  font-weight: 900;
  background: rgba(109, 190, 69, 0.14);
  color: var(--green-ink);
}

.pts.neg {
  background: rgba(230, 50, 60, 0.1);
  color: var(--red);
}

.pts.gold {
  background: rgba(244, 183, 64, 0.2);
  color: #b27100;
}

.pts.zero {
  background: var(--card-2);
  color: var(--muted);
}

@media (prefers-color-scheme: dark) {
  .pts.gold { color: #f4c25a; }
  .pts.neg { color: #ff6b73; background: rgba(230, 50, 60, 0.16); }
}

.table-note {
  font-size: 14px;
  color: var(--dim);
  margin-top: 12px;
}

/* topics / categories / packs */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}

.topic {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
}

.topic > span:first-child {
  font-size: 24px;
}

.topic small {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 20px;
  background: var(--card-2);
  border: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--muted);
}

.note > span:first-child {
  font-size: 22px;
  line-height: 1.5;
}

/* word samples */
.word-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.word-group {
  padding: 22px 24px 24px;
  border-radius: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.word-group h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 14px;
}

.level {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding-inline: 6px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 900;
}

.level.l1 { background: rgba(109, 190, 69, 0.16); color: var(--green-ink); }
.level.l2 { background: rgba(244, 183, 64, 0.2); color: #c7850c; }
.level.l3 { background: rgba(230, 50, 60, 0.12); color: var(--red); }
.level.lg { background: var(--gold-grad); color: #5c3b00; }

.words {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.words li {
  padding: 4px 13px 5px;
  border-radius: 999px;
  background: var(--card-2);
  border: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 600;
}

.word-group.span-2 {
  grid-column: 1 / -1;
}

/* taboo sample cards */
.taboo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.taboo-card {
  padding: 20px 18px 18px;
  border-radius: 26px;
  background: var(--card);
  border: 1.5px solid rgba(109, 190, 69, 0.45);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.taboo-card .key {
  font-size: 25px;
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 12px;
}

.taboo-card .cat {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
}

.banned {
  list-style: none;
  padding: 10px 12px 12px;
  border-radius: 18px;
  background: rgba(230, 50, 60, 0.06);
  display: grid;
  gap: 2px;
  color: var(--red);
  font-weight: 800;
  font-size: 16px;
}

.banned::before {
  content: "اینا رو نگو! 👇";
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  opacity: 0.8;
  margin-bottom: 2px;
}

@media (prefers-color-scheme: dark) {
  .banned {
    background: rgba(230, 50, 60, 0.1);
    color: #ff7b82;
  }
}

/* mafia roles */
.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.role {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.role > span:first-child {
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 27px;
  background: var(--card-2);
}

.role.mafia > span:first-child {
  background: rgba(74, 59, 140, 0.14);
}

.role h3 {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.6;
}

.role h3 small {
  font-size: 12px;
  font-weight: 800;
  padding: 1px 9px 2px;
  border-radius: 999px;
  margin-inline-start: 6px;
  background: rgba(109, 190, 69, 0.14);
  color: var(--green-ink);
  vertical-align: 2px;
}

.role.mafia h3 small {
  background: rgba(74, 59, 140, 0.14);
  color: #5b4bb0;
}

@media (prefers-color-scheme: dark) {
  .role.mafia h3 small { color: #b3a3f5; background: rgba(140, 120, 240, 0.18); }
}

.role p {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
}

.count-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
}

.count {
  padding: 14px 10px 12px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  text-align: center;
  line-height: 1.5;
}

.count b {
  display: block;
  font-size: 15px;
  font-weight: 900;
}

.count span {
  font-size: 13px;
  font-weight: 700;
  color: #5b4bb0;
}

@media (prefers-color-scheme: dark) {
  .count span { color: #b3a3f5; }
}

/* scenario cards / generic two-up cards */
.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.duo-card {
  padding: 26px 28px 24px;
  border-radius: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.duo-card h3 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 6px;
}

.duo-card p,
.duo-card li {
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

.duo-card ul {
  list-style: none;
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.duo-card li::before {
  content: "•";
  color: var(--red);
  font-weight: 900;
  margin-inline-end: 8px;
}

/* spy location packs */
.packs {
  display: grid;
  gap: 10px;
}

.packs details {
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.packs summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  font-size: 17px;
  font-weight: 900;
}

.packs summary::-webkit-details-marker {
  display: none;
}

.packs summary > span:first-child {
  font-size: 26px;
}

.packs summary small {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-inline-start: auto;
}

.packs summary::after {
  content: "";
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: var(--card-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%23627056' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
  transition: transform 0.3s var(--ease);
}

.packs details[open] summary::after {
  transform: rotate(180deg);
}

.packs .words {
  padding: 0 22px 20px;
}

/* quotes: suggested questions, dramatic deaths */
.quote-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quote-grid li {
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.8;
}

.quote-grid li::before {
  content: "«";
  color: var(--red);
  font-weight: 900;
}

.quote-grid li::after {
  content: "»";
  color: var(--red);
  font-weight: 900;
}

/* tips */
.tips {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tips li {
  display: flex;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

.tips li > span:first-child {
  font-size: 22px;
  line-height: 1.5;
}

.tips strong {
  color: var(--text);
}

.shots-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}

.shots-row .shot .phone {
  --pw: 230px;
}

.footnote {
  margin-top: 36px;
  font-size: 13px;
  color: var(--dim);
}

/* ---------------------------------------------------------------- english documents */

.en,
.en .faq summary,
.en .btn {
  font-family: var(--font-en);
}

.en body {
  line-height: 1.7;
}

.doc {
  padding-block: 128px 60px;
}

.doc h1 {
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.doc .doc-lead {
  font-size: 19px;
  color: var(--muted);
  margin-bottom: 30px;
}

.doc h2 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.35;
  margin: 44px 0 12px;
  scroll-margin-top: 100px;
}

.doc h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 8px;
}

.doc p,
.doc li {
  font-size: 16.5px;
  color: var(--muted);
}

.doc p + p,
.doc ul + p,
.doc ol + p,
.doc .kv + p {
  margin-top: 12px;
}

.doc ul,
.doc ol {
  padding-inline-start: 22px;
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.doc strong {
  color: var(--text);
}

.doc a:not(.btn) {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--red) 35%, transparent);
  text-underline-offset: 3px;
}

.doc-meta {
  font-size: 14px;
  color: var(--dim);
  margin-bottom: 26px;
}

.summary-box {
  padding: 24px 26px;
  border-radius: 24px;
  background: var(--card);
  border: 1.5px solid rgba(109, 190, 69, 0.45);
  box-shadow: var(--shadow-sm);
  margin: 10px 0 8px;
}

.summary-box h2 {
  margin-top: 0;
  font-size: 19px;
}

.summary-box ul {
  list-style: none;
  padding: 0;
}

.summary-box li {
  display: flex;
  gap: 10px;
  color: var(--text);
  font-weight: 500;
}

.summary-box li::before {
  content: "";
  width: 20px;
  height: 20px;
  margin-top: 4px;
  border-radius: 50%;
  flex: none;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.kv {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0;
  margin: 12px 0 0;
  border-radius: 22px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
}

.kv dt,
.kv dd {
  margin: 0;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}

.kv dt {
  font-weight: 700;
  background: var(--card-2);
}

.kv dd {
  color: var(--muted);
}

.kv dt:last-of-type,
.kv dd:last-of-type {
  border-bottom: 0;
}

.en-games {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.en-game {
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--card);
  border: 1.5px solid var(--accent-line);
}

.en-game h3 {
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.en-game p {
  font-size: 15px;
}

.lang-note {
  font-size: 14px;
}

/* ---------------------------------------------------------------- /ios and 404 */

.center-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-block: 120px 60px;
}

.center-page .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.center-page .big-logo {
  width: 132px;
  height: 132px;
  filter: drop-shadow(0 16px 24px rgba(62, 124, 41, 0.25));
  margin-bottom: 24px;
  animation: bob 5.5s ease-in-out infinite;
}

.center-page h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 14px;
}

.center-page p {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 30px;
}

.center-page .hero-cta {
  justify-content: center;
}

.center-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.center-links a {
  padding: 6px 16px 7px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--muted);
}

.center-links a:hover {
  color: var(--text);
}

/* ---------------------------------------------------------------- reveal */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .occasion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .hero {
    padding-block: 124px 40px;
  }

  .hero-grid,
  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    text-align: center;
  }

  .hero-lead,
  .page-hero .hero-lead {
    margin-inline: auto;
  }

  .hero-cta,
  .hero-points,
  .facts {
    justify-content: center;
  }

  .game-badge {
    margin-inline: auto;
  }

  .crumbs ol {
    justify-content: center;
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-wide,
  .card-narrow,
  .card-full {
    grid-column: span 12;
  }

  .card-wide {
    flex-direction: column;
  }

  .card {
    min-height: 0;
  }

  .card-narrow .card-visual {
    padding-top: 36px;
  }

  .card-wide .card-visual {
    padding-bottom: 40px;
  }

  .small-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps,
  .steps.cols-2 {
    grid-template-columns: 1fr;
  }

  .taboo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-nav {
    display: none;
  }

  .section {
    padding-top: 80px;
  }

  .game-section {
    padding-top: 70px;
  }

  .download {
    padding-block: 90px 80px;
  }

  .game-grid,
  .small-grid,
  .word-groups,
  .role-grid,
  .duo,
  .tips,
  .quote-grid,
  .en-games {
    grid-template-columns: 1fr;
  }

  .word-group.span-2 {
    grid-column: auto;
  }

  .phone-stack {
    width: 360px;
    height: 540px;
  }

  .phone-stack .phone-front {
    --pw: 236px;
    inset-inline-end: 24px;
  }

  .phone-stack .phone-back {
    --pw: 200px;
    inset-inline-start: 18px;
    top: 64px;
  }

  .float {
    width: 52px;
    height: 52px;
    font-size: 27px;
    border-radius: 17px;
  }

  .float.f6 {
    width: 46px;
    height: 46px;
    font-size: 23px;
  }

  .phone-pair {
    width: 340px;
    height: 500px;
  }

  .phone-pair .phone:first-child {
    --pw: 220px;
  }

  .phone-pair .phone:nth-child(2) {
    --pw: 190px;
    top: 60px;
  }

  .phone-pair.landscape-pair {
    width: 360px;
    height: 470px;
  }

  .phone-pair.landscape-pair .phone.landscape {
    --pw: 340px;
    top: 250px;
  }

  .phone-pair.landscape-pair .phone:nth-child(2) {
    --pw: 190px;
    inset-inline-start: 30px;
  }

  .shot .phone.landscape {
    --pw: 420px;
  }

  .score-table th,
  .score-table td {
    padding: 12px 16px;
  }

  .kv {
    grid-template-columns: 1fr;
  }

  .kv dt {
    border-bottom: 0;
    padding-bottom: 2px;
  }

  .kv dd {
    padding-top: 2px;
  }
}

@media (max-width: 520px) {
  .container {
    padding-inline: 16px;
  }

  .site-header {
    top: 10px;
    padding-inline: 10px;
  }

  .header-pill {
    height: 56px;
    padding-inline: 8px 7px;
  }

  .brand {
    font-size: 19px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .hero h1 {
    font-size: clamp(36px, 10.5vw, 46px);
  }

  .hero-cta .btn {
    width: 100%;
  }

  .phone-stack {
    width: 320px;
    height: 500px;
  }

  .phone-stack .phone-front {
    --pw: 216px;
    inset-inline-end: 18px;
  }

  .phone-stack .phone-back {
    --pw: 184px;
    inset-inline-start: 12px;
  }

  .float.f2 { inset-inline-end: -4px; }
  .float.f3 { inset-inline-start: -4px; }

  .card-copy {
    padding: 28px 22px 24px;
  }

  .card-narrow .card-copy {
    padding-top: 4px;
  }

  .stats {
    padding-inline: 22px;
  }

  .resume-mock {
    flex-direction: column;
  }

  .game-card {
    padding: 22px 22px 18px;
  }

  .occasion-grid,
  .taboo-grid {
    grid-template-columns: 1fr;
  }

  .shots {
    gap: 20px;
  }

  .shot .phone {
    --pw: 214px;
  }

  .shot .phone.landscape {
    --pw: 320px;
  }

  .shot figcaption {
    max-width: 214px;
  }

  .footer-box {
    padding: 26px 22px 20px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq summary {
    padding: 16px 18px;
    font-size: 16px;
  }

  .faq-a {
    padding: 0 18px 18px;
  }

  .phone-pair {
    width: 310px;
    height: 460px;
  }

  .phone-pair .phone:first-child {
    --pw: 200px;
  }

  .phone-pair .phone:nth-child(2) {
    --pw: 172px;
  }

  .phone-pair.landscape-pair {
    width: 320px;
    height: 430px;
  }

  .phone-pair.landscape-pair .phone.landscape {
    --pw: 310px;
    top: 236px;
  }

  .phone-pair.landscape-pair .phone:nth-child(2) {
    --pw: 172px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .rm-shown {
    opacity: 0;
  }
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
