/* QUISHRISH — אתר המשחק. שפת המותג: רקע כחול-סגול עם כתמי צבע, כרטיסים מבריקים, כפתורים ורודים "ג'לי". */

@font-face { font-family: "Lachish"; src: url("fonts/FUPLachish-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Lachish"; src: url("fonts/FUPLachish-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "CherryBomb"; src: url("fonts/CherryBombOne-Regular.woff2") format("woff2"); font-display: swap; }

:root {
  --ink: #13348f;          /* כותרות על כרטיסים בהירים — כמו בדיאלוגים של האפליקציה */
  --ink-soft: #0071ba;
  --pink: #f0219a;
  --pink-dark: #a4056a;
  --cyan: #23bdf7;
  --yellow: #ffe94a;
  --night: #1b1468;
  --card: rgba(236, 246, 255, 0.94);
  --card-edge: #3aa0ff;
  --radius: 28px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: #fff;
  font: 400 18px/1.7 "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background: var(--night);
  -webkit-font-smoothing: antialiased;
}
/* הרקע בשכבה נפרדת שקבועה לגודל המסך. background-attachment: fixed לא נתמך בספארי באייפון —
   שם הרקע נמתח על כל אורך הדף ויוצא מוגדל ומטושטש. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--night) url("img/bg.webp") center center / cover no-repeat;
}
/* מסכים רחבים (מחשב / טאבלט לרוחב): רקע מרובע ברזולוציה גבוהה, מרכז רגוע וקישוטים בצדדים */
@media (min-width: 861px) and (min-aspect-ratio: 1/1) {
  body::before { background-image: url("img/bg_wide.webp"); }
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ---------- כותרות ---------- */
h1, h2, h3, .brand-font { font-family: "Lachish", "Rubik", sans-serif; font-weight: 800; line-height: 1.2; margin: 0 0 .4em; }
h2 { font-size: clamp(30px, 5vw, 46px); text-align: center; text-shadow: 0 4px 0 rgba(40, 0, 110, .55), 0 8px 24px rgba(20, 0, 80, .45); }
h3 { font-size: 24px; }
.lead { font-size: 20px; text-align: center; max-width: 680px; margin: 0 auto 32px; text-shadow: 0 2px 10px rgba(20, 0, 80, .6); }

/* ---------- ניווט ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 20px;
  background: rgba(27, 20, 104, .78);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(255, 255, 255, .12);
}
.nav-logo img { height: 46px; width: auto; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none;
  font-family: "Lachish", sans-serif; font-weight: 700; font-size: 18px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: rgba(255, 255, 255, .16); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 30px; cursor: pointer; padding: 4px 8px; }

/* ---------- כפתורים "ג'לי" ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 34px; border-radius: 999px; text-decoration: none; cursor: pointer;
  font-family: "Lachish", sans-serif; font-weight: 800; font-size: 22px; color: #fff;
  background: linear-gradient(180deg, #ff6fc4 0%, var(--pink) 48%, #d0107f 100%);
  border: 3px solid #ffd2ee;
  box-shadow: 0 6px 0 var(--pink-dark), 0 12px 24px rgba(120, 0, 70, .45), inset 0 3px 0 rgba(255, 255, 255, .55);
  text-shadow: 0 2px 0 rgba(120, 0, 70, .5);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--pink-dark), 0 6px 12px rgba(120, 0, 70, .4), inset 0 3px 0 rgba(255, 255, 255, .55); }
.btn.green { background: linear-gradient(180deg, #b6ff6a 0%, #59d634 50%, #2fa51d 100%); border-color: #e1ffc4; box-shadow: 0 6px 0 #1f7a12, 0 12px 24px rgba(20, 90, 0, .4), inset 0 3px 0 rgba(255, 255, 255, .55); text-shadow: 0 2px 0 rgba(20, 90, 0, .45); }
.btn.blue { background: linear-gradient(180deg, #7fdcff 0%, var(--cyan) 50%, #0f86c9 100%); border-color: #d4f3ff; box-shadow: 0 6px 0 #0a5f92, 0 12px 24px rgba(0, 60, 120, .4), inset 0 3px 0 rgba(255, 255, 255, .55); text-shadow: 0 2px 0 rgba(0, 60, 120, .45); }
.btn.small { padding: 10px 22px; font-size: 18px; }
.btn[aria-disabled="true"] { filter: grayscale(.35) brightness(.95); cursor: default; }

/* ---------- מבנה ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
.card {
  background: var(--card); color: var(--ink);
  border: 4px solid var(--card-edge); border-radius: var(--radius);
  box-shadow: 0 10px 0 rgba(20, 60, 160, .35), 0 20px 40px rgba(10, 0, 60, .35), inset 0 4px 0 rgba(255, 255, 255, .8);
  padding: 28px;
}
.card p { color: #24306e; }
.grid { display: grid; gap: 24px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 90px; text-align: center; position: relative; overflow: hidden; }
.hero .logo { width: min(620px, 92%); margin: 0 auto; filter: drop-shadow(0 12px 30px rgba(20, 0, 80, .5)); animation: pop .8s cubic-bezier(.2, 1.6, .4, 1) both; }
.hero .tagline { width: min(420px, 70%); margin: -6px auto 18px; animation: pop .8s .15s cubic-bezier(.2, 1.6, .4, 1) both; }
.hero p { font-size: 21px; max-width: 640px; margin: 0 auto 30px; text-shadow: 0 2px 12px rgba(20, 0, 80, .7); }
.hero .ctas { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.squad { display: flex; justify-content: center; align-items: flex-end; gap: 4px; margin-top: 46px; }
.squad img { width: clamp(80px, 15vw, 170px); animation: bob 2.6s ease-in-out infinite; }
.squad img:nth-child(2) { animation-delay: .3s; }
.squad img:nth-child(3) { animation-delay: .6s; }
.squad img:nth-child(4) { animation-delay: .9s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- איך זה עובד ---------- */
.how { align-items: center; }
.how .board { width: 100%; height: auto; justify-self: center; max-width: 380px; margin: 0 auto; border-radius: 18px; border: 5px solid #fff; transform: rotate(-3deg); box-shadow: 0 20px 40px rgba(10, 0, 60, .5); }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 64px 0 0; margin-bottom: 22px; counter-increment: s; }
.steps li::before {
  content: counter(s); position: absolute; right: 0; top: -4px;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-family: "CherryBomb", sans-serif; font-size: 26px; color: #fff;
  background: linear-gradient(180deg, #ff6fc4, var(--pink)); box-shadow: 0 4px 0 var(--pink-dark);
}
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; }

/* ---------- כרטיסי משחקים ---------- */
.game { text-align: center; display: flex; flex-direction: column; align-items: center; transition: transform .2s ease; }
.game:hover { transform: translateY(-6px) rotate(-1deg); }
.game img { height: 120px; width: auto; max-width: 100%; object-fit: contain; margin-bottom: 10px; }
.game p { margin: 0 0 16px; flex: 1; }
.games-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.games-grid .game { flex: 0 1 calc((100% - 48px) / 3); }

/* ---------- האפליקציה ---------- */
.shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 26px; scrollbar-width: thin; }
.shots img { flex: 0 0 auto; width: 210px; border-radius: 28px; border: 5px solid #fff; scroll-snap-align: center; box-shadow: 0 14px 30px rgba(10, 0, 60, .45); }
.features { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.features li { padding-right: 34px; position: relative; font-weight: 500; }
.features li::before { content: "✓"; position: absolute; right: 0; top: -2px; width: 26px; height: 26px; border-radius: 50%; background: #59d634; color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 16px; }
.store-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.soon { font-size: 15px; color: var(--ink-soft); margin-top: 10px; }

/* ---------- רכישה ---------- */
.buy { text-align: center; }
.buy .card { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: center; text-align: right; }
.buy .card img { border-radius: 18px; transform: rotate(3deg); border: 5px solid #fff; box-shadow: 0 16px 30px rgba(10, 0, 60, .35); width: auto; height: auto; max-width: 100%; max-height: 460px; justify-self: center; margin: 0 auto; }

/* ---------- FAQ ---------- */
.faq details { background: var(--card); color: var(--ink); border: 3px solid var(--card-edge); border-radius: 20px; margin-bottom: 14px; padding: 4px 22px; box-shadow: 0 6px 0 rgba(20, 60, 160, .3); }
.faq summary { cursor: pointer; padding: 14px 0; font-family: "Lachish", sans-serif; font-weight: 800; font-size: 21px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: left; font-size: 28px; line-height: 1; color: var(--pink); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: #24306e; }

/* ---------- עמוד משחק מפורט ---------- */
.game-page { display: grid; grid-template-columns: 280px 1fr; gap: 30px; align-items: start; margin-bottom: 34px; scroll-margin-top: 90px; }
.game-page .art { text-align: center; }
.game-page .art img { max-height: 260px; width: auto; margin: 0 auto; }
.game-page h3 { color: var(--pink); margin-top: 18px; }
.game-page ol, .game-page ul { padding-right: 22px; margin: 0; }
.game-page li { margin-bottom: 6px; color: #24306e; }
.tag { display: inline-block; background: var(--yellow); color: #5a3a00; border-radius: 999px; padding: 2px 14px; font-weight: 700; font-size: 15px; margin: 0 0 0 6px; }

/* ---------- צור קשר ---------- */
.contact-box { text-align: center; }
.contact-box .mail { font-family: "Lachish", sans-serif; font-weight: 800; font-size: clamp(22px, 4vw, 30px); color: var(--pink); text-decoration: none; direction: ltr; display: inline-block; }

/* ---------- טקסט ארוך (פרטיות) ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { text-align: right; text-shadow: none; color: var(--ink); font-size: 30px; }
.prose h3 { color: var(--pink); margin-top: 26px; }
.prose li { color: #24306e; }
.prose[dir="ltr"] h2, .prose[dir="ltr"] { text-align: left; }

/* ---------- Footer ---------- */
footer { padding: 40px 0 50px; text-align: center; background: rgba(15, 10, 70, .82); border-top: 2px solid rgba(255, 255, 255, .12); }
footer .flogo { height: 54px; width: auto; margin: 0 auto 14px; }
footer nav { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
footer nav a { text-decoration: none; opacity: .9; }
footer nav a:hover { opacity: 1; text-decoration: underline; }
footer small { opacity: .7; font-size: 14px; }
.lang { display: inline-block; margin-top: 10px; font-size: 15px; opacity: .85; }

/* ---------- מובייל ---------- */
@media (max-width: 860px) {
  section { padding: 54px 0; }
  .grid.two, .grid.three, .games-grid, .buy .card, .game-page { grid-template-columns: 1fr; }
  .games-grid .game { flex-basis: 100%; }
  .features { grid-template-columns: 1fr; }
  .buy .card { text-align: center; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; right: 0; left: 0; flex-direction: column; padding: 10px 16px 16px; background: rgba(27, 20, 104, .97); }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 21px; padding: 12px 14px; }
  .game-page .art img { max-height: 180px; }
  .card { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- English (LTR) ----------
   Lachish has no Latin glyphs, so English uses Titan One (the "PLAYER 1/2" font from the design). */
@font-face { font-family: "Titan"; src: url("fonts/TitanOne-Regular.woff2") format("woff2"); font-display: swap; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3, html[lang="en"] .btn,
html[lang="en"] .nav-links a, html[lang="en"] .faq summary, html[lang="en"] .contact-box .mail, html[lang="en"] .brand-font {
  font-family: "Titan", "Rubik", sans-serif; font-weight: 400; letter-spacing: .3px;
}
html[lang="en"] h2 { font-size: clamp(28px, 4.6vw, 42px); }
html[lang="en"] .btn { font-size: 20px; }
html[lang="en"] .hero-tag { font-family: "Titan", sans-serif; font-size: clamp(22px, 4vw, 34px); color: var(--yellow);
  text-shadow: 0 3px 0 #a4056a, 0 6px 18px rgba(40, 0, 90, .6); margin: 0 auto 18px; max-width: 640px; line-height: 1.25; }
html[dir="ltr"] .steps li { padding: 0 0 0 64px; }
html[dir="ltr"] .steps li::before { right: auto; left: 0; }
html[dir="ltr"] .features li { padding-right: 0; padding-left: 34px; }
html[dir="ltr"] .features li::before { right: auto; left: 0; }
html[dir="ltr"] .faq summary::after { float: right; }
html[dir="ltr"] .buy .card { text-align: left; }
html[dir="ltr"] .game-page ol, html[dir="ltr"] .game-page ul { padding-right: 0; padding-left: 22px; }
html[dir="ltr"] .tag { margin: 0 6px 0 0; }
html[dir="ltr"] .buy .card img { transform: rotate(-3deg); }
.game-name { font-family: "Titan", sans-serif; font-size: 30px; color: var(--pink); margin: 6px 0 8px;
  text-shadow: 0 3px 0 #ffd2ee; line-height: 1.1; }
.game .char { height: 110px; width: auto; }
.lang-switch { font-family: "Rubik", sans-serif !important; font-weight: 700 !important; border: 2px solid rgba(255,255,255,.35); }
@media (max-width: 860px) { html[dir="ltr"] .buy .card { text-align: center; } }

/* ---------- קריאות: טקסט לבן על רקע בהיר ----------
   פסקאות לבנות יושבות בתוך "בועה" כחולה-כהה שקופה למחצה (כמו פס הניווט), והכותרות מקבלות קו מתאר. */
.lead, .hero p:not(.hero-tag) {
  width: fit-content; max-width: min(680px, 100%);
  margin-left: auto; margin-right: auto;
  padding: 14px 26px;
  background: rgba(27, 20, 104, .72);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, .28);
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(10, 0, 60, .35);
  text-shadow: none;
  color: #fff;
}
.hero p:not(.hero-tag) { margin-bottom: 30px; }
h2 {
  text-shadow:
    -2px -2px 0 #2a1580, 2px -2px 0 #2a1580, -2px 2px 0 #2a1580, 2px 2px 0 #2a1580,
    0 5px 0 rgba(40, 0, 110, .7), 0 10px 26px rgba(20, 0, 80, .55);
}
.prose h2 { text-shadow: none; }
@media (max-width: 860px) {
  .lead, .hero p:not(.hero-tag) { padding: 12px 18px; border-radius: 20px; font-size: 17px; }
}
/* טקסט הבועות: בולד עם קו מתאר סגול וצל קטן */
.lead, .hero p:not(.hero-tag) {
  font-weight: 700; letter-spacing: .2px; line-height: 1.55;
  text-shadow:
    -1.5px -1.5px 0 #3a1a9e, 1.5px -1.5px 0 #3a1a9e, -1.5px 1.5px 0 #3a1a9e, 1.5px 1.5px 0 #3a1a9e,
    0 3px 0 #2a0f7a, 0 5px 10px rgba(10, 0, 60, .5);
}
