@font-face {
  font-family: "Heebo";
  src: url("assets/fonts/Heebo-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Frank Ruhl Libre";
  src: url("assets/fonts/FrankRuhlLibre-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "Heebo", "Noto Sans Hebrew", Arial, "Segoe UI", sans-serif;
  background: #100d16;
  color: #f7f3ff;
  --bg: #100d16;
  --surface: #1e1928;
  --surface-2: #292135;
  --text: #f7f3ff;
  --muted: #b9b1c7;
  --pink: #ff6c98;
  --pink-soft: #ffd7e3;
  --border: rgba(255, 255, 255, 0.12);
  --font-display: "Heebo", "Noto Sans Hebrew", Arial, "Segoe UI", sans-serif;
  --font-card: "Frank Ruhl Libre", "Noto Serif Hebrew", "Times New Roman", serif;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 5%, rgba(255, 92, 138, 0.13), transparent 30rem),
    radial-gradient(circle at 10% 85%, rgba(167, 139, 250, 0.1), transparent 30rem),
    var(--bg);
}

button, input, select { font: inherit; }

button { cursor: pointer; }

a { color: inherit; }

.floating-tools {
  position: fixed;
  z-index: 30;
  left: max(12px, env(safe-area-inset-left));
  bottom: max(12px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 8px;
  direction: rtl;
}

.privacy-float,
.music-control {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #f7eefa;
  background: rgba(16, 13, 22, 0.82);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.privacy-float {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.music-control {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.music-icon {
  grid-area: 1 / 1;
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.music-icon-pause,
.music-control[aria-pressed="true"] .music-icon-play { display: none; }
.music-control[aria-pressed="true"] .music-icon-pause { display: block; }

.privacy-float:hover,
.music-control:hover {
  color: #fff;
  border-color: rgba(255, 151, 184, 0.72);
}

.music-control[aria-pressed="true"] {
  color: #fff;
  border-color: rgba(255, 151, 184, 0.72);
  background: rgba(255, 108, 152, 0.17);
}

.music-control:active { transform: scale(0.96); }
.music-control.is-loading { opacity: 0.65; }

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

:where(a, button, input, select):focus-visible {
  outline: 3px solid #ffd2df;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(255, 108, 152, 0.28);
}

/* Screen headings receive programmatic focus for assistive technology. They
   are not interactive controls, so avoid the browser's large default box. */
:where(h1, h2)[tabindex="-1"]:focus {
  outline: none;
}

button:disabled { cursor: not-allowed; }

input[type="email"] {
  direction: ltr;
  text-align: left;
}

.site-landing {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 8%, rgba(255, 81, 139, 0.12), transparent 29rem),
    radial-gradient(circle at 8% 46%, rgba(111, 84, 215, 0.1), transparent 32rem),
    #100d16;
}

.site-header,
.landing-section,
.site-footer {
  width: min(calc(100% - 48px), 1180px);
  margin-inline: auto;
}

.site-header {
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  color: #fff8fb;
  text-decoration: none;
}

.site-brand-lockup {
  direction: ltr;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.brand-logo-mark {
  display: block;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.brand-wordmark {
  color: #fff8fb;
  font: 700 13px/1 var(--font-display);
  letter-spacing: 0.12em;
}

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { color: #c9c1d1; text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: #fff; }

.header-cta {
  justify-self: end;
  min-height: 42px;
  padding: 0 17px;
  color: #fff2f6;
  border: 1px solid rgba(255, 117, 157, 0.42);
  border-radius: 999px;
  background: rgba(255, 117, 157, 0.08);
  font-weight: 600;
}

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

.landing-hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  align-items: center;
  gap: 66px;
  padding-top: 72px;
}

.hero-copy { position: relative; z-index: 2; }

.landing-hero h1 {
  max-width: 720px;
  font-size: clamp(58px, 7vw, 94px);
  line-height: 0.98;
}

.landing-hero h1 span { color: #ff789f; }

.landing-hero .lead {
  max-width: 660px;
  margin-block: 27px 32px;
  color: #cec6d5;
  font-size: clamp(19px, 2vw, 23px);
}

.hero-actions { display: flex; align-items: center; gap: 25px; }
.hero-actions .primary { min-width: 164px; }

.text-link { color: #f4eaf0; text-decoration: none; font-weight: 600; }
.text-link span { display: inline-block; margin-right: 5px; transition: transform 180ms ease; }
.text-link:hover span { transform: translateX(-4px); }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  margin-top: 38px;
  color: #9f96aa;
  font-size: 14px;
}

.hero-facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #ff759d; }

.hero-deck {
  min-height: 610px;
  position: relative;
  perspective: 1200px;
  isolation: isolate;
  border-radius: 38px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(10, 6, 12, 0.1), rgba(10, 6, 12, 0.36)),
    url("assets/replacements-v2/web/landing-hero-v2.jpg") 61% center / cover;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.38);
}

.hero-deck::before {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  inset: 70px 50% auto auto;
  translate: 50% 0;
  border-radius: 50%;
  background: rgba(255, 87, 139, 0.16);
  filter: blur(80px);
  z-index: -1;
}

.preview-card {
  width: 300px;
  height: 470px;
  position: absolute;
  top: 50px;
  left: 50%;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 31px;
  box-shadow: 0 34px 75px rgba(0, 0, 0, 0.48);
}

.preview-card-back {
  display: flex;
  align-items: flex-end;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.preview-card-back::after {
  content: "א";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.12);
  font: 600 130px var(--font-display);
}

.preview-teal {
  transform: translateX(-67%) rotate(-11deg) translateY(38px);
  background: radial-gradient(circle at 75% 18%, #287d7b, transparent 37%), linear-gradient(155deg, #163c41, #101721 75%);
}

.preview-orange {
  transform: translateX(-34%) rotate(10deg) translateY(19px);
  background: radial-gradient(circle at 25% 17%, #b94b30, transparent 38%), linear-gradient(155deg, #612719, #21121a 75%);
}

.preview-card-front {
  transform: translateX(-50%) translateY(-8px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(35, 8, 25, 0.08), rgba(17, 7, 16, 0.96)),
    radial-gradient(circle at 22% 16%, #ed477c, transparent 35%),
    linear-gradient(145deg, #711d45, #251321 75%);
}

.preview-card-front::before,
.preview-card-front::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 310px;
  top: 50px;
  border: 1px solid rgba(255, 203, 220, 0.15);
  border-radius: 50% 50% 44% 44%;
  transform: rotate(26deg);
}

.preview-card-front::before { right: -64px; }
.preview-card-front::after { left: -82px; transform: rotate(-25deg); }

.preview-card-top { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.preview-card-top span { padding: 7px 11px; border-radius: 999px; background: rgba(10, 5, 10, 0.34); border: 1px solid rgba(255, 255, 255, 0.13); }
.preview-card-top small { color: #ffc3d5; }

.preview-orbit { flex: 1; position: relative; }
.preview-orbit i { position: absolute; border: 1px solid rgba(255, 191, 211, 0.13); border-radius: 50%; }
.preview-orbit i:nth-child(1) { width: 210px; height: 210px; top: 35px; right: -70px; }
.preview-orbit i:nth-child(2) { width: 135px; height: 135px; top: 110px; left: -50px; }
.preview-orbit i:nth-child(3) { width: 9px; height: 9px; top: 86px; left: 58px; background: #ff83a7; box-shadow: 0 0 25px #ff83a7; }

.preview-copy { position: relative; z-index: 2; padding: 18px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 20px; background: rgba(14, 7, 14, 0.68); backdrop-filter: blur(12px); }
.preview-copy small { color: #ffadc5; }
.preview-copy p { margin: 7px 0 0; font: 500 25px/1.28 var(--font-display); }

.deck-note {
  position: absolute;
  bottom: 26px;
  left: 50%;
  translate: -50% 0;
  width: max-content;
  color: #9e94a6;
  font-size: 14px;
}

.manifesto {
  max-width: 920px;
  text-align: center;
}

.section-kicker { margin: 0 0 13px; color: #ff8bad; font-weight: 600; }
.manifesto h2 { font-size: clamp(42px, 6vw, 68px); }
.manifesto > p:last-child { max-width: 760px; margin: 25px auto 0; color: #bdb4c7; font-size: 21px; line-height: 1.65; }

.how-section { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.section-heading { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: end; gap: 70px; margin-bottom: 48px; }
.section-heading h2 { font-size: clamp(40px, 5vw, 60px); }
.section-heading > p { margin: 0 0 7px; color: #aaa1b4; font-size: 19px; line-height: 1.55; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps-grid article { min-height: 245px; padding: 27px; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 24px; background: rgba(255, 255, 255, 0.025); }
.step-number { color: #ff779f; font: 500 14px var(--font-display); }
.steps-grid h3 { margin: 68px 0 9px; font-size: 23px; }
.steps-grid p { margin: 0; color: #aaa1b4; line-height: 1.5; }

.product-section {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 95px;
}

.product-visual { min-height: 620px; position: relative; display: grid; place-items: center; }
.product-glow { position: absolute; width: 410px; height: 410px; border-radius: 50%; background: rgba(230, 55, 113, 0.24); filter: blur(85px); }
.product-box { width: 360px; aspect-ratio: 0.76; padding: 34px; position: relative; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 20px; background: radial-gradient(circle at 78% 18%, #a12b58, transparent 35%), linear-gradient(145deg, #5e1938, #1f121c 70%); box-shadow: -30px 40px 90px rgba(0, 0, 0, 0.54); transform: rotate(-4deg); }
.product-box::before { content: ""; position: absolute; inset: 28px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 50% 50% 42% 42%; transform: rotate(18deg); }
.product-box strong { font: 500 58px/1 var(--font-display); }
.product-box small { margin-top: 12px; color: #ff9fbb; font-size: 18px; }
.product-overline { margin-bottom: auto; color: #ffd3e0; }

.product-copy h2 { font-size: clamp(50px, 6vw, 78px); }
.product-lead { max-width: 560px; margin: 20px 0; color: #c3bacb; font-size: 21px; line-height: 1.55; }
.product-list { padding: 0; margin: 25px 0; list-style: none; display: grid; gap: 12px; color: #e7dfe9; }
.product-list li { display: flex; align-items: center; gap: 10px; }
.product-list li::before { content: "✓"; color: #ff86a9; }
.product-buy { display: flex; align-items: baseline; gap: 10px; margin-bottom: 24px; }
.product-buy strong { font: 500 39px var(--font-display); color: #ff87aa; }
.product-buy span { color: #a99fac; }

.coming-section { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.section-heading.compact { margin-bottom: 39px; }
.coming-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.coming-card { min-height: 320px; padding: 25px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 25px; background: #1d1825; }
.coming-card::before { content: ""; position: absolute; width: 230px; height: 230px; top: -95px; left: -55px; border-radius: 50%; filter: blur(10px); opacity: 0.75; }
.coming-card.friends::before { background: #456a70; }
.coming-card.quick::before { background: #7b4b9f; }
.coming-card.editions::before { background: #a55b34; }
.coming-card span { position: absolute; top: 22px; right: 22px; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; color: #d7cedd; background: rgba(11, 8, 13, 0.25); font-size: 13px; }
.coming-card h3 { margin: 0 0 8px; font-size: 27px; }
.coming-card p { margin: 0; color: #aaa0b1; line-height: 1.5; }

.closing-cta { max-width: 920px; text-align: center; padding-block: 135px; }
.closing-cta h2 { max-width: 790px; margin: 0 auto 30px; font-size: clamp(43px, 6vw, 70px); }
.closing-cta .primary { min-width: 220px; }
.closing-cta small { display: block; margin-top: 17px; color: #8f8798; }

.site-footer { min-height: 130px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; color: #8f8798; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.site-footer p { text-align: center; }
.site-footer > span:last-child { justify-self: end; }
.site-footer .brand-logo-mark { width: 25px; height: 25px; }
.site-footer .brand-wordmark { font-size: 12px; }

.app-page {
  min-height: 100vh;
  padding: 24px;
  display: grid;
  place-items: center;
}

.app-shell { width: min(100%, 520px); }

.brand-mini {
  margin-bottom: 18px;
  color: var(--pink-soft);
  font-family: var(--font-display);
  font-weight: 500;
}

.main-brand-mini {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.main-brand-mini .brand-logo-mark { width: 28px; height: 28px; }
.main-brand-mini .brand-wordmark { font-size: 12px; }

.access-product-context {
  margin: -10px 0 14px;
  color: var(--pink-soft);
  font: 600 14px/1.4 var(--font-display);
  text-align: center;
}

.hero {
  min-height: 680px;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(14, 7, 13, 0.08), rgba(12, 6, 12, 0.89)),
    url("assets/replacements-v2/web/landing-hero-v2.jpg") 62% center / cover,
    linear-gradient(150deg, #671438, #231421 70%);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.48);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 12px;
  color: #ffb4ca;
  font-weight: 600;
}

h1, h2, h3 {
  font-family: var(--font-display);
}

h1 {
  margin: 0;
  font-size: clamp(42px, 11vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(29px, 7vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.lead {
  margin: 18px 0 26px;
  color: #e3dce9;
  font-size: 20px;
  line-height: 1.5;
}

.price-note {
  margin: 0 0 18px;
  color: #c9bdc8;
}

.primary,
.secondary,
.ghost {
  min-height: 54px;
  border-radius: 16px;
  border: 0;
  font-weight: 600;
}

.primary {
  padding: 0 22px;
  color: #250a14;
  background: var(--pink);
  box-shadow: 0 12px 32px rgba(255, 92, 138, 0.28);
}

.primary:hover { background: #ff83a7; }

.secondary {
  padding: 0 20px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
}

.ghost {
  padding: 0 16px;
  color: var(--muted);
  background: transparent;
}

.primary:disabled,
.secondary:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.panel {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(31, 27, 46, 0.94);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.panel-copy {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.access-panel { position: relative; overflow: hidden; }

.access-panel::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  inset: -100px auto auto -85px;
  border-radius: 50%;
  background: rgba(255, 108, 152, 0.1);
  filter: blur(10px);
  pointer-events: none;
}

.access-step {
  margin: 0 0 8px;
  color: #ffb4ca;
  font-size: 14px;
  font-weight: 700;
}

.access-hint,
.signed-in-email {
  margin: -10px 0 20px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  line-height: 1.5;
}

.signed-in-email { margin-top: -8px; }

.form-stack { display: grid; gap: 18px; }

.field { display: grid; gap: 7px; }

.field label,
.field-label {
  color: #e9e3f0;
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  color: var(--text);
  background: #17131f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: #ff7da3;
  box-shadow: 0 0 0 3px rgba(255, 92, 138, 0.16);
}

.field small { color: var(--muted); line-height: 1.45; }

.loading-line {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: var(--pink-soft);
  background: rgba(255, 255, 255, 0.035);
}

.players-grid { display: grid; gap: 12px; }

.player-row {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 10px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #ddd6e6;
}

.check-row input { margin-top: 5px; accent-color: var(--pink); }

.choice-grid { display: grid; gap: 10px; }

.choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.035);
}

.choice:has(input:checked) {
  border-color: rgba(255, 108, 152, 0.68);
  background: rgba(255, 92, 138, 0.09);
}

.choice input { margin-top: 4px; accent-color: var(--pink); }

.choice strong { display: block; margin-bottom: 3px; }
.choice span { color: var(--muted); }

.section-title { margin: 22px 0 10px; font-weight: 600; }

.button-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 22px;
}

.rules-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.rules-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  color: #ded7e7;
}

.rule-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 92, 138, 0.12);
}

.game-page { padding-block: 16px; }

.game-shell { width: min(100%, 470px); }

.game-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 6px 12px;
  color: var(--muted);
  font-size: 14px;
}

.game-status-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.game-exit {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #d9d1df;
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
}

.game-exit:hover { border-color: rgba(255, 151, 184, 0.55); color: #fff; }

.game-card {
  --accent: #ff6c98;
  min-height: 650px;
  padding: 21px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 32px;
  background-position: center top;
  background-size: cover;
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.52);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.game-card::before,
.game-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.game-card[data-category="depth"] {
  --accent: #2dd4bf;
  background-image:
    linear-gradient(180deg, rgba(2, 22, 24, 0.04), rgba(7, 18, 24, 0.94) 78%),
    var(--card-art, url("assets/replacements-v2/web/depth-fallback-v2.jpg")),
    linear-gradient(145deg, #0a5558, #142432 68%);
}

.game-card[data-category="depth"]::before {
  width: 370px;
  height: 370px;
  left: -160px;
  bottom: 120px;
  border-radius: 50%;
  border: 2px solid rgba(132, 255, 238, 0.25);
  box-shadow: 0 0 0 38px rgba(45, 212, 191, 0.06), 0 0 0 84px rgba(45, 212, 191, 0.03);
}

.game-card[data-category="flirt"] {
  --accent: #ff6c98;
  background-image:
    linear-gradient(180deg, rgba(18, 7, 14, 0.06), rgba(12, 5, 11, 0.92) 76%),
    var(--card-art, url("assets/replacements-v2/web/flirt-fallback-v2.jpg")),
    linear-gradient(145deg, #781437, #2d1527);
}

.game-card[data-category="memories"] {
  --accent: #ffb020;
  background-image:
    linear-gradient(180deg, rgba(46, 24, 7, 0.03), rgba(22, 13, 13, 0.94) 78%),
    var(--card-art, url("assets/replacements-v2/web/memories-fallback-v2.jpg")),
    linear-gradient(145deg, #6d3b11, #2a1d1b 72%);
}

.game-card[data-category="memories"]::before {
  width: 180px;
  height: 220px;
  left: -45px;
  top: 145px;
  border: 14px solid rgba(255, 233, 190, 0.1);
  transform: rotate(-12deg);
  box-shadow: 80px -48px 0 -9px rgba(255, 255, 255, 0.04);
}

.game-card[data-category="appreciation"] {
  --accent: #b399ff;
  background-image:
    linear-gradient(180deg, rgba(29, 15, 60, 0.03), rgba(18, 14, 30, 0.94) 78%),
    var(--card-art, url("assets/replacements-v2/web/appreciation-fallback-v2.jpg")),
    linear-gradient(145deg, #5434a0, #29213f 70%);
}

.game-card[data-category="appreciation"]::before {
  width: 300px;
  height: 300px;
  right: -145px;
  top: 86px;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(236, 228, 255, 0.14) 0deg 2deg, transparent 2deg 16deg);
}

.game-card[data-category="fun"] {
  --accent: #b4ee4f;
  background-image:
    linear-gradient(180deg, rgba(24, 42, 5, 0.02), rgba(13, 20, 11, 0.95) 78%),
    var(--card-art, url("assets/replacements-v2/web/fun-fallback-v2.jpg")),
    linear-gradient(145deg, #4d7317, #1e2b19 70%);
}

.game-card[data-category="fun"]::before {
  inset: 0;
  opacity: 0.13;
  background-image:
    radial-gradient(circle, #ddff9d 0 4px, transparent 5px),
    linear-gradient(45deg, transparent 47%, #d6ff8f 48% 52%, transparent 53%);
  background-size: 80px 80px, 106px 106px;
  mask: linear-gradient(120deg, transparent 8%, #000 46%, transparent 96%);
}

.game-card[data-category="touch"] {
  --accent: #ff8754;
  background-image:
    linear-gradient(180deg, rgba(54, 14, 8, 0.08), rgba(16, 7, 10, 0.94) 76%),
    var(--card-art, url("assets/replacements-v2/web/touch-fallback-v2.jpg")),
    linear-gradient(145deg, #8a2f1f, #321a22);
  background-position: 62% top;
}

.card-top,
.card-player,
.card-content,
.card-actions { position: relative; z-index: 2; }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.category-pill {
  min-height: 36px;
  padding: 7px 11px;
  border-radius: 999px;
  color: color-mix(in srgb, var(--accent) 65%, white);
  background: rgba(15, 9, 18, 0.52);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 600;
}

.intensity-label {
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.card-player {
  margin-top: 30px;
  color: color-mix(in srgb, var(--accent) 70%, white);
  font-weight: 600;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 14px;
}

.prompt-panel {
  padding: 19px;
  border-radius: 22px;
  background: rgba(28, 18, 28, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

.game-prompt {
  margin: 0;
  font-family: var(--font-card);
  font-size: clamp(27px, 6.2vw, 38px);
  font-weight: 500;
  line-height: 1.26;
  color: #ede4e8;
  text-shadow: none;
  letter-spacing: 0;
}

.card-note {
  display: block;
  margin-top: 13px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 14px;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.card-feedback {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(13, 9, 18, 0.78);
  backdrop-filter: blur(14px);
}

.card-feedback strong {
  text-align: center;
  font: 500 18px var(--font-display);
}

.card-feedback-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.card-feedback-options button {
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  font-weight: 600;
}

.card-feedback-options button:hover,
.card-feedback-options button:focus-visible,
.card-feedback-options button.is-selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}

.card-feedback-options button.is-selected {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 70%, transparent);
}

.card-feedback-label {
  font-weight: 650;
}

.card-feedback textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  font: 500 15px/1.45 var(--font-body);
}

.card-feedback textarea::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

.card-feedback textarea:focus-visible {
  border-color: var(--accent);
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 2px;
}

.card-feedback-hint {
  margin: -4px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.4;
}

.card-feedback-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.card-feedback-actions button {
  min-height: 48px;
}

.card-actions .primary { background: var(--accent); }

.card-actions .secondary {
  background: rgba(12, 8, 14, 0.69);
  backdrop-filter: blur(12px);
}

.game-card.is-hidden .prompt-panel { visibility: hidden; }

.game-card.is-hidden .card-content {
  align-items: center;
  justify-content: center;
  padding-bottom: 0;
}

.game-card.is-hidden .card-content::after {
  content: "הקלף מחכה לכם";
  align-self: center;
  margin: 0;
  padding: 13px 18px;
  border-radius: 999px;
  color: #fff5f8;
  background: rgba(12, 7, 13, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  font-family: var(--font-display);
  font-size: 23px;
}

.timer {
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.timer-value {
  font-family: var(--font-display);
  font-size: 27px;
  color: var(--accent);
}

.progress-track {
  flex: 1;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: var(--timer-progress);
  background: var(--accent);
  transition: width 1s linear;
}

.pilot-notice {
  margin: 18px 0 0;
  padding: 14px;
  border-radius: 14px;
  color: #f1e8f0;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.28);
}

.finish-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0;
}

.stat {
  padding: 14px 10px;
  border-radius: 15px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.stat strong {
  display: block;
  font: 600 25px var(--font-display);
  color: #ff99b8;
}

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

.question { margin-top: 20px; }

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}

.option-row label {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.option-row label:has(input:checked) {
  border-color: rgba(255, 108, 152, 0.7);
  background: rgba(255, 92, 138, 0.1);
}

.option-row input { accent-color: var(--pink); }

.error {
  margin: 12px 0 0;
  color: #ff9db4;
}

.notice {
  margin: 12px 0 0;
  color: #c7f9df;
}

@media (min-width: 900px) {
  .game-shell { width: min(100%, 760px); }
  .game-card { min-height: 620px; }
  .game-prompt { font-size: 40px; line-height: 1.2; }
  .hero { min-height: 720px; }
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .landing-hero { grid-template-columns: 1fr; gap: 25px; padding-top: 85px; }
  .hero-copy { text-align: center; }
  .landing-hero .lead { margin-inline: auto; }
  .hero-actions, .hero-facts { justify-content: center; }
  .hero-deck { min-height: 570px; }
  .section-heading, .product-section { grid-template-columns: 1fr; gap: 35px; }
  .product-copy { max-width: 680px; }
  .product-visual { order: 2; min-height: 550px; }
  .steps-grid, .coming-grid { grid-template-columns: 1fr; }
  .steps-grid article { min-height: 205px; }
  .steps-grid h3 { margin-top: 45px; }
}

@media (max-width: 560px) {
  .site-header, .landing-section, .site-footer { width: min(calc(100% - 28px), 1180px); }
  .site-header { min-height: 70px; }
  .header-cta { min-height: 38px; padding-inline: 13px; }
  .site-header .brand-logo-mark { width: 28px; height: 28px; }
  .site-header .brand-wordmark { font-size: 12px; letter-spacing: 0.1em; }
  .landing-section { padding-block: 76px; }
  .landing-hero { min-height: auto; padding-top: 70px; }
  .landing-hero h1 { font-size: clamp(48px, 14vw, 66px); }
  .landing-hero .lead { font-size: 18px; }
  .hero-actions { flex-direction: column; gap: 18px; }
  .hero-actions .primary { width: 100%; }
  .hero-facts { display: grid; justify-content: start; text-align: right; margin-top: 30px; }
  .hero-deck { min-height: 520px; transform: scale(0.88); margin-inline: -20px; }
  .preview-card { top: 28px; }
  .deck-note { bottom: 5px; }
  .manifesto h2, .section-heading h2 { font-size: 40px; }
  .manifesto > p:last-child { font-size: 18px; }
  .section-heading { margin-bottom: 28px; }
  .section-heading > p { font-size: 17px; }
  .steps-grid article { min-height: 190px; }
  .product-visual { min-height: 460px; margin-inline: -14px; }
  .product-box { width: min(82vw, 330px); }
  .product-copy h2 { font-size: 58px; }
  .coming-card { min-height: 270px; }
  .closing-cta { padding-block: 95px; }
  .site-footer { min-height: 190px; padding-block: 30px; grid-template-columns: 1fr; text-align: center; }
  .site-footer .site-brand, .site-footer > span:last-child { justify-self: center; }
  .site-footer p { margin: 0; }
  .app-page { padding: 14px; }
  .game-page { padding-bottom: max(72px, calc(58px + env(safe-area-inset-bottom))); }
  .hero, .panel { border-radius: 25px; }
  .hero { min-height: calc(100vh - 28px); padding: 24px; }
  .panel { padding: 22px; }
  .player-row { grid-template-columns: 1fr; }
  .button-row { grid-template-columns: 1fr; }
  .button-row .ghost { order: 2; }
  .game-card { min-height: calc(100vh - 138px); min-height: calc(100svh - 138px); padding: 17px; border-radius: 26px; }
  .card-actions { grid-template-columns: 1fr; }
  .card-actions .secondary { order: 2; }
  .card-feedback-options { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .card-feedback-options button { min-height: 48px; padding: 6px 5px; font-size: 13px; line-height: 1.15; }
  .finish-summary { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 620px) {
  .app-page { place-items: start center; padding-block: 12px; }
  .game-page { padding-block: 10px; }
  .game-card { min-height: calc(100svh - 56px); }
  .game-card.is-hidden .card-content::after { font-size: 20px; }
}

@media (max-width: 380px) {
  .site-header .brand-wordmark { display: none; }
  .floating-tools { left: max(8px, env(safe-area-inset-left)); gap: 6px; }
  .privacy-float { font-size: 12px; padding-inline: 9px; }
  .card-feedback-options button { min-height: 46px; font-size: 12px; }
}

@media (min-width: 1600px) {
  .site-header, .landing-section, .site-footer { width: min(calc(100% - 96px), 1320px); }
  .game-shell { width: min(100%, 800px); }
}
