@charset "utf-8";
/* ------------------------------------------------------------------
   בושמטיק · סביבון חנוכה — מסכי הלקוח (טאבלט)

   כיוון: "אריחים". חנוכה מודרניסטית של שנות ה־70 — פוסטרים
   ישראליים, הדפס משי, אריחי קרמיקה. דיו שטוח על נייר שמנת.
   הכללים:
   · צורות של ריבוע, עיגול, חצי עיגול ומשולש בלבד — כמו האותיות של אנומליה.
   · אין גרדיאנט רך, אין זוהר, אין צל מטושטש. צל = צורה שטוחה בצבע כהה.
   · פונט אחד: אנומליה. Anomalia Hollow (שלושה קווים) = "כבוי",
     המשקל המלא = "דולק". כך האות שנפלה בסביבון "נדלקת".
   · כל המידות ב־vmin, כדי שהמסך ייראה אותו דבר באייפד ובגלקסי טאב.
------------------------------------------------------------------- */

@font-face { font-family: "Anomalia"; font-weight: 300; font-display: swap; src: url("../fonts/anomalia-light-aaa.woff2") format("woff2"), url("../fonts/anomalia-light-aaa.woff") format("woff"); }
@font-face { font-family: "Anomalia"; font-weight: 400; font-display: swap; src: url("../fonts/anomalia-regular-aaa.woff2") format("woff2"), url("../fonts/anomalia-regular-aaa.woff") format("woff"); }
@font-face { font-family: "Anomalia"; font-weight: 500; font-display: swap; src: url("../fonts/anomalia-medium-aaa.woff2") format("woff2"), url("../fonts/anomalia-medium-aaa.woff") format("woff"); }
@font-face { font-family: "Anomalia"; font-weight: 600; font-display: swap; src: url("../fonts/anomalia-demibold-aaa.woff2") format("woff2"), url("../fonts/anomalia-demibold-aaa.woff") format("woff"); }
@font-face { font-family: "Anomalia"; font-weight: 700; font-display: swap; src: url("../fonts/anomalia-bold-aaa.woff2") format("woff2"), url("../fonts/anomalia-bold-aaa.woff") format("woff"); }
@font-face { font-family: "Anomalia"; font-weight: 800 900; font-display: swap; src: url("../fonts/anomalia-ultrabold-aaa.woff2") format("woff2"), url("../fonts/anomalia-ultrabold-aaa.woff") format("woff"); }
@font-face { font-family: "Anomalia Hollow"; font-weight: 100 900; font-display: swap; src: url("../fonts/anomalia-hollow-aaa.woff2") format("woff2"), url("../fonts/anomalia-hollow-aaa.woff") format("woff"); }

:root {
  /* נייר */
  --paper: #F3E9D6;
  --paper-2: #EADCC3;
  --paper-3: #D8C7A8;
  --cream: #FFF8EC;
  /* דיו */
  --ink: #2B1D16;          /* טקסט — חום־שחור, לא שחור */
  --ink-soft: #5B4A3E;     /* טקסט משני, 7:1 על הנייר */
  --tomato: #E04A2C;
  --tomato-dk: #B0301A;    /* הודעות שגיאה — 5.3:1 על הנייר */
  --saffron: #F3B23A;
  --blush: #F4AFA5;
  --cobalt: #2346A6;
  --cobalt-dk: #1B3887;
  --cobalt-lt: #2C53BB;
  --sky: #9DC4E6;
  --olive: #5C7A3E;
  --toast: #D9822B;

  --font: "Anomalia", "Assistant", "Arial Hebrew", Arial, sans-serif;
  --hollow: "Anomalia Hollow", "Anomalia", Arial, sans-serif;
  --sans: var(--font);     /* כינויים ישנים, משמשים גם את admin.css */
  --serif: var(--font);
  --paper-ink: var(--ink);
  --paper-muted: var(--ink-soft);

  --ease-out: cubic-bezier(.22, .8, .24, 1);
  --ease-snap: cubic-bezier(.7, -.35, .3, 1.35);
  --press: .7vmin;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  -webkit-font-smoothing: antialiased;
}
body::after {               /* גרעין של נייר מודפס — מורגש, לא נראה */
  content: "";
  position: fixed; inset: 0;
  background-image: var(--grain);
  opacity: .07;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 90;
}
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---------- מסכים ---------- */
.screen { position: fixed; inset: 0; display: none; }
.screen.is-active { display: block; animation: screen-in .45s var(--ease-out) both; }
@keyframes screen-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- כפתורים: כמוסה עם "מדרגה" — כפתור של צעצוע, לא של אתר ---------- */
.btn-main, .btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  border: 0; border-radius: 999px; cursor: pointer; user-select: none;
  font-family: var(--font); line-height: 1;
}
.btn-main {
  min-height: 64px;
  padding: .95em 1.45em 1em 1.25em;
  background: var(--cobalt); color: var(--cream);
  font-size: clamp(20px, 3vmin, 32px); font-weight: 700;
  box-shadow: 0 var(--press) 0 var(--cobalt-dk);
  transition: transform .08s, box-shadow .08s;
}
.btn-main:active { transform: translateY(var(--press)); box-shadow: 0 0 0 var(--cobalt-dk); }
.btn-main[disabled] { background: var(--paper-3); color: var(--ink-soft); box-shadow: 0 var(--press) 0 #C2AE8C; cursor: default; }
.btn-main:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
.btn-line {
  min-height: 56px; padding: .8em 1.4em;
  background: transparent; color: var(--cream);
  font-size: clamp(16px, 2.1vmin, 22px); font-weight: 600;
  box-shadow: inset 0 0 0 2px currentColor;
}
.btn-line:active { background: rgba(255, 248, 236, .14); }
.btn-text {
  min-height: 48px; padding: 10px 4px;
  display: inline-flex; align-items: center; gap: .45em;
  background: none; border: 0; cursor: pointer;
  font-size: 18px; font-weight: 600; color: var(--ink-soft);
}
.linklike {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: inherit; font-weight: 600;
  text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1.5px;
}
.ico-arrow { width: 1em; height: 1em; flex: none; }
.ico-arrow path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ================================================================
   אריחים
   ================================================================ */
.tile { position: relative; overflow: hidden; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; background: var(--bg, var(--paper-2)); }
.tile > svg { width: 76%; height: 76%; overflow: visible; }
.tile--fill > svg { width: 100%; height: 100%; }
.tile__cap { margin: 0; font-size: clamp(13px, 1.8vmin, 19px); font-weight: 500; color: var(--cream); white-space: nowrap; }
.tile__cap b { font-weight: 700; color: var(--saffron); }

/* תנועה קטנה באריחים — כל אחד בקצב משלו, כדי שהמסך ירגיש חי ולא מתוכנת */
.spin60 { transform-box: fill-box; transform-origin: 50% 50%; animation: spin60 5.2s var(--ease-snap) infinite; }
@keyframes spin60 { 0%, 82% { transform: rotate(0); } 100% { transform: rotate(60deg); } }
.tip { transform-box: view-box; transform-origin: 50% 92%; animation: tip 7.4s ease-in-out 1.2s infinite; }
@keyframes tip { 0%, 78%, 100% { transform: rotate(0); } 83% { transform: rotate(-9deg); } 89% { transform: rotate(6deg); } 94% { transform: rotate(-2.5deg); } }
.flick { transform-box: fill-box; transform-origin: 50% 100%; animation: flick 2.3s ease-in-out infinite; }
@keyframes flick {
  0%, 100% { transform: scale(1, 1) skewX(0); }
  25% { transform: scale(.93, 1.07) skewX(-3deg); }
  50% { transform: scale(1.04, .95) skewX(2deg); }
  75% { transform: scale(.97, 1.04) skewX(-1deg); }
}

/* ================================================================
   לוגו בושמטיק — הצורה והצבעים של המותג, בלי שינוי.
   המג'נטה (#DF2182) לא בפלטת האריחים, וזה בכוונה: היא שייכת רק ללוגו.
   ================================================================ */
.logo { display: block; width: 100%; height: auto; overflow: visible; }
.logo__type { fill: var(--logo-type, #232323); }
.logo__mark { fill: var(--logo-mark, #DF2182); }
.logo--dark { --logo-type: #FFFFFF; }
.logo--white { --logo-type: #FFFFFF; --logo-mark: #FFFFFF; }

/* ================================================================
   מסך פתיחה
   ================================================================ */
.attract.is-active { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); }

.attract__copy {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  padding: 4.4vmin 6.4vmin 3.8vmin 7vmin;
}
.wordmark {
  align-self: flex-start;
  width: clamp(170px, 26vmin, 280px);
  padding: 1vmin 0;               /* שטח מגע נוח ללחיצה הארוכה */
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
/* לחיצה ארוכה (כניסת צוות): הפרח של הלוגו גדל לאט — סימן שמשהו קורה */
.wordmark .logo__mark { transform-box: fill-box; transform-origin: 50% 60%; }
.wordmark.is-pressing .logo__mark { animation: hold 2.2s linear both; }
@keyframes hold { to { transform: scale(1.6); } }

.attract__main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 2vmin; }
.display {
  margin: 0;
  font-weight: 800; font-size: clamp(50px, 11.2vmin, 124px);
  line-height: .96; letter-spacing: -.01em;
}
.display span { display: block; }
.display .hollow { font-family: var(--hollow); font-weight: 400; color: var(--tomato); letter-spacing: 0; margin-top: .04em; }
.lede {
  margin: 3.6vmin 0 0; max-width: 23em;
  font-size: clamp(17px, 2.55vmin, 27px); line-height: 1.5; color: var(--ink-soft);
}
.cta-row { display: flex; align-items: center; gap: 2.6vmin; margin-top: 4.6vmin; flex-wrap: wrap; }
.cta-note { font-size: clamp(14px, 1.9vmin, 19px); color: var(--ink-soft); max-width: 11em; line-height: 1.35; }
.closed-note {
  margin: 3vmin 0 0; padding: 1.2vmin 0 1.2vmin 2vmin; padding-inline-start: 2vmin;
  border-inline-start: .7vmin solid var(--tomato);
  font-size: clamp(16px, 2.3vmin, 23px); font-weight: 600;
}
.fine { margin: 0; font-size: clamp(12px, 1.55vmin, 16px); line-height: 1.45; color: var(--ink-soft); }

/* מדבקה עגולה שיושבת על התפר בין הטקסט לאריחים */
.sticker {
  position: absolute; top: 21%; left: -8.4vmin;
  width: 17vmin; height: 17vmin; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle, var(--saffron) 0 63%, var(--ink) 63% 64.6%, var(--saffron) 64.6%);
  font-weight: 800; font-size: 2.55vmin; line-height: 1.02;
  transform: rotate(-11deg);
  animation: sticker 6s ease-in-out infinite;
}
@keyframes sticker { 0%, 100% { transform: rotate(-11deg); } 50% { transform: rotate(-6deg) translateY(-.5vmin); } }

.mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "men  men  suf"
    "dr   dr   bot"
    "dr   dr   rain"
    "star jug  flame";
  height: 100vh;
}
.tile--men { grid-area: men; grid-template: minmax(0, 1fr) auto / minmax(0, 1fr); padding: 2.2vmin 0 2vmin; row-gap: 1.2vmin; }
.tile--men > svg { width: 100%; height: 100%; }
.tile--suf { grid-area: suf; }
.tile--dr { grid-area: dr; --ring-a: var(--cobalt); --ring-b: var(--cobalt-lt); background: var(--cobalt); }
.tile--bot { grid-area: bot; }
.tile--rain { grid-area: rain; }
.tile--star { grid-area: star; }
.tile--jug { grid-area: jug; }
.tile--flame { grid-area: flame; }

/* ================================================================
   הרשמה
   ================================================================ */
.form-screen.is-active { display: grid; grid-template-columns: minmax(0, 1fr) 25vh; }
.form-scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--paper-3) transparent; }
.form-wrap { max-width: 980px; margin: 0 auto; padding: 4.6vmin 6vmin 42vh; }
.strip { display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)); }

.form-head__end { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; gap: 2vmin; }
.form-logo { width: clamp(110px, 14vmin, 150px); margin-top: .4vmin; }
.form-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  padding-bottom: 2.8vmin; margin-bottom: 3.4vmin;
  border-bottom: 2px solid var(--ink);
}
.steps { display: flex; gap: 2.6vmin; margin: 0 0 2.4vmin; padding: 0; list-style: none; font-size: clamp(14px, 1.9vmin, 19px); font-weight: 600; color: var(--ink-soft); }
.steps li { display: flex; align-items: center; gap: .55em; }
.steps i {
  width: 1.75em; height: 1.75em; border-radius: 50%;
  display: grid; place-items: center;
  font-style: normal; font-weight: 700; font-size: .9em;
  box-shadow: inset 0 0 0 2px var(--ink-soft);
}
.steps .is-on { color: var(--ink); }
.steps .is-on i { background: var(--cobalt); color: var(--cream); box-shadow: none; }
.form-title { margin: 0; font-weight: 800; font-size: clamp(36px, 6.8vmin, 70px); line-height: 1; letter-spacing: -.01em; }
.form-sub { margin: 1.4vmin 0 0; color: var(--ink-soft); font-size: clamp(16px, 2.2vmin, 22px); }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2vmin 3vmin; }
.field label {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 9px; font-size: 18px; font-weight: 600;
}
.field .opt { font-weight: 400; font-size: 15px; color: var(--ink-soft); }
.field input {
  width: 100%; height: 66px; padding: 0 20px;
  font: 500 24px var(--font); color: var(--ink);
  background: var(--cream); border: 2px solid var(--ink); border-radius: 12px;
  outline: none; transition: box-shadow .12s, border-color .12s;
}
.field input[dir="ltr"] { text-align: right; }
/* האותיות הלטיניות של אנומליה הן רישיות בלבד — אימייל היה נראה כמו Caps Lock.
   לשדות באנגלית/ספרות: הפונט של המכשיר (SF באייפד, Roboto בגלקסי). */
.field input[type="email"] { font-family: -apple-system, "SF Pro Text", Roboto, "Segoe UI", Arial, sans-serif; font-weight: 500; }
.field input::placeholder { color: #A8977D; font-weight: 400; }
.field input:focus { border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt); background: #fff; }
.field.has-error input { border-color: var(--tomato); box-shadow: 0 0 0 3px var(--tomato); }
.field .msg { min-height: 1.5em; margin: 8px 0 0; font-size: 15.5px; line-height: 1.35; color: var(--ink-soft); }
.field.has-error .msg { color: var(--tomato-dk); font-weight: 600; }

.consents { margin-top: 1.2vmin; display: grid; gap: 4px; }
.consent { display: flex; align-items: flex-start; gap: 16px; padding: 12px 0; font-size: 19px; line-height: 1.45; cursor: pointer; }
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.consent .box {
  flex: none; width: 34px; height: 34px; margin-top: -3px;
  border: 2px solid var(--ink); border-radius: 8px; background: var(--cream);
  display: grid; place-items: center; transition: background .12s, border-color .12s;
}
.consent .box svg { width: 22px; height: 22px; opacity: 0; transform: scale(.5); transition: .14s var(--ease-snap); }
.consent .box path { fill: none; stroke: var(--cream); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.consent input:checked + .box { background: var(--cobalt); border-color: var(--cobalt); }
.consent input:checked + .box svg { opacity: 1; transform: none; }
.consent input:focus-visible + .box { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--cobalt); }
.consent.has-error .box { border-color: var(--tomato); box-shadow: 0 0 0 2px var(--tomato); }
.consent .msg { display: block; color: var(--tomato-dk); font-size: 15.5px; font-weight: 600; margin-top: 4px; }
.consent .small { display: block; font-size: 15px; color: var(--ink-soft); margin-top: 2px; }

.form-actions {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  margin-top: 3vmin; padding-top: 3vmin; border-top: 2px solid var(--ink);
}
.privacy-note { margin: 0; max-width: 32em; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }

/* ================================================================
   מסך המשחק — שדה כחול אחד, טבעות בגוון אחד סביב הסביבון
   ================================================================ */
.game { background: var(--cobalt); color: var(--cream); user-select: none; -webkit-user-select: none; --ring-a: var(--cobalt); --ring-b: var(--cobalt-lt); }
.game__logo { position: absolute; top: 5.2vmin; inset-inline-start: 5vmin; z-index: 3; width: clamp(120px, 16vmin, 170px); pointer-events: none; transition: opacity .3s; }
.game.is-revealed .game__logo { opacity: 0; }
.game__head { position: absolute; top: 4.6vmin; inset-inline: 0; z-index: 3; text-align: center; pointer-events: none; }
.game__hello { margin: 0; font-weight: 800; font-size: clamp(30px, 5.8vmin, 62px); line-height: 1.05; }
.game__hint {
  margin: 1.5vmin auto 0; min-height: 1.5em; max-width: 34em;
  font-size: clamp(16px, 2.4vmin, 25px); color: rgba(255, 248, 236, .84);
}
.game__hint.is-result { color: var(--saffron); font-weight: 800; font-size: clamp(22px, 3.8vmin, 40px); }
.game__stage { position: absolute; inset: 15vmin 0 18vmin; }
.game__foot {
  position: absolute; bottom: 4vmin; inset-inline: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 2.4vmin;
}
/* "נס גדול היה פה" — כבוי בקווים, והמילה שנפלה נדלקת במשקל מלא */
.phrase { display: flex; align-items: baseline; gap: 2.4vmin; font-family: var(--hollow); font-size: clamp(28px, 5vmin, 54px); line-height: 1; color: rgba(255, 248, 236, .62); }
.phrase b { font-weight: inherit; color: var(--cream); }
.phrase span.is-on { font-family: var(--font); font-weight: 800; color: var(--saffron); animation: lit .5s var(--ease-snap) both; }
.phrase span.is-on b { color: var(--saffron); }
@keyframes lit { from { transform: scale(.7); } }
.odds-note { margin: 0; font-size: clamp(13px, 1.8vmin, 18px); color: rgba(255, 248, 236, .78); }

.swipe-hint { position: absolute; left: 50%; bottom: 1vmin; width: 30vmin; transform: translateX(-50%); pointer-events: none; transition: opacity .3s; }
.swipe-hint path { fill: none; stroke: var(--cream); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 2 9; animation: dash 1.1s linear infinite; }
.swipe-hint .head { stroke-dasharray: none; animation: none; stroke-linejoin: round; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.game.is-spinning .swipe-hint, .game.is-done .swipe-hint { opacity: 0; }

/* ---------- סביבון ---------- */
.dr { position: absolute; inset: 0; touch-action: none; cursor: grab; }
.dr:active { cursor: grabbing; }
.dr::before {               /* טבעות קונצנטריות סביב העוקץ — כמו אדוות על שולחן */
  content: ""; position: absolute; inset: -60vmax; z-index: -1; pointer-events: none;
  --ring: calc(var(--w) * .46);
  background: repeating-radial-gradient(circle at 50% calc(60vmax + var(--tipY)),
    var(--ring-a) 0 var(--ring), var(--ring-b) var(--ring) calc(var(--ring) * 2));
}
.dr__tray {
  position: absolute; left: 50%; top: var(--tipY);
  width: var(--trayW); height: calc(var(--trayW) * .24);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--cobalt-dk);
  box-shadow: inset 0 0 0 .45vmin var(--cream), inset 0 0 0 1.3vmin var(--cobalt-dk), inset 0 0 0 1.55vmin rgba(255, 248, 236, .45);
}
/* WebGL: הקנבס מכסה רק את הסביבון והצל שלו; המגש נשאר ב־CSS, במידות שהמצלמה רואה */
.dr__gl { position: absolute; pointer-events: none; }
.dr--gl .dr__tray { transform: translateX(-50%); }
.dr__shadow {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--w) * 1.0); height: calc(var(--w) * .2);
  margin: calc(var(--w) * -.1) 0 0 calc(var(--w) * -.5);
  border-radius: 50%;
  background: #11265F;
}
.dr__cam { position: absolute; inset: 0; perspective: 1500px; transform-style: preserve-3d; }
.dr__view { position: absolute; left: 50%; top: var(--tipY); width: 0; height: 0; transform-style: preserve-3d; }
.dr__tilt {
  position: absolute; left: calc(var(--w) / -2); top: calc(-1 * (var(--h) + var(--ph)));
  width: var(--w); height: var(--h);
  transform-style: preserve-3d;
  transform-origin: 50% calc(var(--h) + var(--ph));
}
.dr__spin { position: absolute; inset: 0; transform-style: preserve-3d; }
/* ארבעה צבעי דיו, אות אחת בחום כהה — כמו סביבון עץ צבוע ביד */
/* --shade = אותו צבע בגוון כהה, כמו שכבת הדפס שנייה. לא שחור שקוף. */
.dr__spin > :nth-child(4n+1) { --face: var(--tomato);  --shade: #A3311B; }
.dr__spin > :nth-child(4n+2) { --face: var(--saffron); --shade: #C47F14; }
.dr__spin > :nth-child(4n+3) { --face: var(--sky);     --shade: #5F8DBC; }
.dr__spin > :nth-child(4n+4) { --face: var(--blush);   --shade: #D27869; }
.dr__side {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--face);
  box-shadow:
    inset 0 0 0 calc(var(--w) * .055) var(--face),
    inset 0 0 0 calc(var(--w) * .072) var(--ink),
    inset 0 0 0 calc(var(--w) * .098) var(--face),
    inset 0 0 0 calc(var(--w) * .112) var(--ink);
}
.dr__glyph {
  font-family: var(--font); font-weight: 800;
  font-size: calc(var(--w) * .58); line-height: 1;
  color: var(--ink);
  transform: translateY(-2%);
}
.dr i { position: absolute; inset: 0; pointer-events: none; }
.dr .sh { background: var(--shade, #000); opacity: 0; }
.dr__hf .sh { background: #000; }
.dr .sp { background: linear-gradient(104deg, transparent 0 24%, var(--cream) 24% 31%, transparent 31% 37%, var(--cream) 37% 39.5%, transparent 39.5%); opacity: 0; }
.dr__top {
  position: absolute; left: 0; top: calc(var(--w) / -2); width: var(--w); height: var(--w);
  transform: rotateX(90deg);
  background: radial-gradient(circle, var(--ink) 0 calc(var(--hd) * .62), var(--cream) calc(var(--hd) * .62) calc(var(--w) * .38), var(--ink) calc(var(--w) * .38) calc(var(--w) * .395), var(--cream) calc(var(--w) * .395));
}
.dr__tri {
  position: absolute; left: 0; top: var(--h);
  width: var(--w); height: var(--slant);
  transform-origin: 50% 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: linear-gradient(var(--ink) 0 0) top / 100% calc(var(--w) * .04) no-repeat, var(--face);
}
.dr__hf {
  position: absolute; top: calc(-1 * var(--hh)); left: calc((var(--w) - var(--hs)) / 2);
  width: var(--hs); height: var(--hh);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--ink);
}
.dr__cap {
  position: absolute; left: calc((var(--w) - var(--hd) * 1.4) / 2); top: calc(-1 * var(--hh) - var(--hd) * .7);
  width: calc(var(--hd) * 1.4); height: calc(var(--hd) * 1.4);
  border-radius: 50%; transform: rotateX(90deg);
  background: var(--tomato);
}

/* ---------- גלגל ---------- */
.wh { position: absolute; inset: 0; display: grid; place-items: center; touch-action: none; cursor: grab; }
.wh::before {
  content: ""; position: absolute; inset: -60vmax; z-index: -1; pointer-events: none;
  --ring: calc(var(--size) * .075);
  background: repeating-radial-gradient(circle at 50% 50%, var(--ring-a) 0 var(--ring), var(--ring-b) var(--ring) calc(var(--ring) * 2));
}
.wh svg { width: var(--size); height: var(--size); overflow: visible; filter: drop-shadow(0 1.1vmin 0 var(--cobalt-dk)); }
.wh__rot { will-change: transform; }
.wh__seg { stroke: var(--cream); stroke-width: 2.4; stroke-linejoin: round; }
.wh__label { font-family: var(--font); font-weight: 700; pointer-events: none; }
.wh__seg.is-win { stroke: var(--ink); stroke-width: 5; }
.wh__bulb { fill: var(--cream); }
.wh__bulb.on { fill: var(--saffron); }
.wh.is-idle .wh__bulb:nth-child(odd) { animation: bulb 1.4s steps(1) infinite; }
.wh.is-idle .wh__bulb:nth-child(even) { animation: bulb 1.4s steps(1) .7s infinite; }
@keyframes bulb { 0% { fill: var(--saffron); } 50% { fill: var(--cream); } }
.wh__pointer { transform-box: view-box; transform-origin: 0 -286px; transition: transform .07s; }
.wh__pointer.kick { transform: rotate(-9deg); transition: none; }

/* ================================================================
   חשיפת המתנה — קרני שמש מודפסות, תווית תלויה על חוט
   ================================================================ */
.reveal { position: absolute; inset: 0; z-index: 10; overflow: hidden; background: var(--saffron); --ray-a: var(--saffron); --ray-b: #F7C462; animation: fade .35s both; }
.reveal.is-grand { background: var(--tomato); --ray-a: var(--tomato); --ray-b: #E8623F; }
@keyframes fade { from { opacity: 0; } }
.reveal__rays {
  position: absolute; left: 50%; top: 44%;
  width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax;
  background: repeating-conic-gradient(var(--ray-a) 0 7.5deg, var(--ray-b) 7.5deg 15deg);
  animation: rays 90s linear infinite;
}
@keyframes rays { to { transform: rotate(360deg); } }
.tag-wrap {
  position: absolute; left: 50%; top: 0;
  transform-origin: 50% 0;
  animation: tag-in 1.9s var(--ease-out) both;
  filter: drop-shadow(1.2vmin 1.4vmin 0 rgba(43, 29, 22, .3));
}
@keyframes tag-in {
  0%   { transform: translate(-50%, -105%) rotate(-9deg); }
  42%  { transform: translate(-50%, 0) rotate(5.5deg); }
  62%  { transform: translate(-50%, 0) rotate(-3deg); }
  80%  { transform: translate(-50%, 0) rotate(1.4deg); }
  100% { transform: translate(-50%, 0) rotate(0deg); }
}
.tag-string { display: block; width: 4vmin; height: 7vmin; margin: 0 auto -2.2vmin; overflow: visible; position: relative; z-index: 2; }
.tag-string path { fill: none; stroke: var(--ink); stroke-width: 2.2; }
.tag {
  --perf: 70%;
  --card: var(--cream);
  --band: var(--cobalt);
  --band-ink: var(--cream);
  --mark: var(--cobalt);
  position: relative;
  width: clamp(330px, 50vmin, 540px);
  padding: 7.6vmin 4.6vmin 3.4vmin;
  text-align: center; color: var(--ink);
  background: linear-gradient(var(--band) 0 0) top / 100% 12.4vmin no-repeat, var(--card);
  clip-path: polygon(16% 0, 84% 0, 100% 7%, 100% 100%, 0 100%, 0 7%);
  -webkit-mask:
    radial-gradient(circle 1.6vmin at 50% 3.4vmin, transparent 97%, #000),
    radial-gradient(circle 1.7vmin at 0 var(--perf), transparent 97%, #000),
    radial-gradient(circle 1.7vmin at 100% var(--perf), transparent 97%, #000);
  -webkit-mask-composite: source-in, source-in;
  mask:
    radial-gradient(circle 1.6vmin at 50% 3.4vmin, transparent 97%, #000),
    radial-gradient(circle 1.7vmin at 0 var(--perf), transparent 97%, #000),
    radial-gradient(circle 1.7vmin at 100% var(--perf), transparent 97%, #000);
  mask-composite: intersect;
}
.tag::before {             /* טבעת חיזוק סביב החור, כמו בתווית אמיתית */
  content: ""; position: absolute; left: 50%; top: 3.4vmin;
  width: 4.6vmin; height: 4.6vmin; margin: -2.3vmin 0 0 -2.3vmin;
  border-radius: 50%; border: .6vmin solid var(--card);
}
.tag.tier-special { --band: var(--tomato); --mark: var(--tomato); }
.tag.tier-grand { --card: var(--saffron); --band: var(--ink); --band-ink: var(--saffron); --mark: var(--ink); }
.tag__ribbon {
  display: none;
  position: absolute; top: 15vmin; left: -1.4vmin;
  padding: 1vmin 3.4vmin 1.1vmin; transform: rotate(-9deg);
  background: var(--tomato); color: var(--cream);
  font: 800 clamp(19px, 2.4vmin, 24px)/1 var(--font);   /* שמנת על אדום = 3.8:1 — מספיק רק לטקסט גדול (‎≥19px מודגש) */
}
.tier-grand .tag__ribbon { display: block; }
/* הלוגו ברצועה העליונה של הכרטיס: לבן על כחול/אדום, ועל הדיו של הפרס הגדול — עם הפרח במג'נטה */
.tag__brand { width: clamp(120px, 16vmin, 170px); margin: -.6vmin auto 0; }
.tier-grand .tag__brand .logo { --logo-type: #FFFFFF; --logo-mark: #DF2182; }
.tag__icon { width: 10vmin; height: 10vmin; margin: 4.2vmin auto 1vmin; color: var(--mark); }
.tag__icon svg { width: 100%; height: 100%; }
.tag__icon svg [stroke] { stroke-width: 2.4; }
.tag__lead { margin: 0; font-size: clamp(16px, 2.3vmin, 24px); color: var(--ink-soft); }
.tier-grand .tag__lead, .tier-grand .tag__desc, .tier-grand .tag__date, .tier-grand .tag__code span { color: #4A3018; }
.tag__name {
  margin: .8vmin 0 0;
  font-weight: 800; font-size: clamp(30px, 5.6vmin, 60px); line-height: 1.02; letter-spacing: -.01em;
  text-wrap: balance;
}
.tag__desc { margin: 1.4vmin 0 0; font-size: clamp(15px, 2.1vmin, 22px); line-height: 1.35; color: var(--ink-soft); }
.tag__perf { position: relative; height: 0; margin: 3.4vmin -4.6vmin 2.6vmin; border-top: 2px dashed var(--ink); opacity: .45; }
.tag__code { display: flex; flex-direction: column; align-items: center; gap: .9vmin; }
.tag__code span { font-size: clamp(13px, 1.7vmin, 17px); font-weight: 600; color: var(--ink-soft); }
.tag__code strong { font-weight: 700; font-size: clamp(26px, 4.6vmin, 48px); letter-spacing: .14em; line-height: 1; margin-inline-end: -.14em; }
.tag__how { margin: 2.2vmin 0 0; font-size: clamp(15px, 2.1vmin, 21px); font-weight: 600; }
.tag__date { margin: 1.2vmin 0 0; font-size: clamp(13px, 1.6vmin, 16px); line-height: 1.45; color: var(--ink-soft); }

.reveal__foot {
  position: absolute; bottom: 3.6vmin; inset-inline: 0;
  display: flex; flex-direction: column; align-items: center; gap: 1.6vmin;
  animation: fade .6s 1.6s both;
}
.reveal__count { margin: 0; font-size: clamp(14px, 1.8vmin, 18px); font-weight: 500; color: var(--ink); }
.flakes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.game.is-revealed .game__head, .game.is-revealed .game__foot { opacity: 0; transition: opacity .3s; }

/* ================================================================
   שכבות: קוד צוות, תקנון, הודעות
   ================================================================ */
.overlay {
  position: fixed; inset: 0; z-index: 80;
  display: none; place-items: center;
  background: rgba(43, 29, 22, .72);
}
.overlay.is-open { display: grid; animation: fade .2s both; }
.pin {
  width: min(400px, 88vw); padding: 30px 28px 26px;
  background: var(--paper); color: var(--ink); border-radius: 18px;
  text-align: center;
}
.pin h3 { margin: 0; font-size: 28px; font-weight: 800; }
.pin p { margin: 8px 0 0; font-size: 16px; color: var(--ink-soft); }
.pin__dots { display: flex; justify-content: center; gap: 16px; margin: 22px 0 24px; direction: ltr; }
.pin__dots i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ink); }
.pin__dots i.on { background: var(--cobalt); box-shadow: none; }
.pin.shake .pin__dots { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
.pin__keys { display: grid; grid-template-columns: repeat(3, 72px); justify-content: center; gap: 14px 22px; direction: ltr; }
.pin__keys button {
  width: 72px; height: 72px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--cream); color: var(--ink);
  font: 500 30px var(--font);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.pin__keys button:active { background: var(--saffron); }
.pin__keys .fn { font: 600 16px var(--font); color: var(--ink-soft); box-shadow: none; background: transparent; }

.terms {
  width: min(720px, 90vw); max-height: 82vh; overflow: auto;
  padding: 36px 40px; border-radius: 18px;
  background: var(--paper); color: var(--ink);
}
.terms h3 { margin: 0 0 8px; font-size: 32px; font-weight: 800; }
.terms .draft { display: inline-block; margin-bottom: 16px; padding: 4px 12px; border-radius: 999px; background: var(--blush); color: #6E1F12; font-size: 14px; font-weight: 600; }
.terms ol { padding-inline-start: 1.3em; line-height: 1.7; font-size: 17px; }
.terms li { margin-bottom: 6px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 95;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  padding: 12px 22px; border-radius: 999px;
  background: var(--ink); color: var(--cream);
  font-size: 16px; font-weight: 600;
  transition: opacity .2s, transform .25s var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* הודעת שגיאה במקלדת הקוד (קוד שגוי, נעילה, צימוד) */
.pin p.pin__msg { min-height: 1.4em; margin: -12px 0 14px; font-size: 15px; font-weight: 600; color: var(--tomato-dk); }
/* קוד צימוד: 6 נקודות צפופות יותר */
.pin__dots:has(i:nth-child(5)) { gap: 12px; }

/* כפתור הסגירה של התקנון (בקיוסק אין את admin.css) */
.terms [data-close] {
  display: inline-flex; align-items: center; min-height: 48px; padding: 10px 26px; cursor: pointer;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--cream);
  font: 600 16px var(--font);
}

/* פס "אין חיבור" — מעל הכל, בלי לחסום מגע */
.netbar {
  position: fixed; top: 0; inset-inline: 0; z-index: 90; pointer-events: none;
  padding: 10px 16px; text-align: center;
  background: var(--tomato-dk); color: var(--cream);
  font: 700 17px var(--font);
}

/* ================================================================
   התאמות: טאבלט לאורך, מסכים נמוכים, תנועה מופחתת
   ================================================================ */
@media (max-aspect-ratio: 1/1) {
  .attract.is-active { grid-template-columns: 1fr; grid-template-rows: 50vh minmax(0, 1fr); }
  .mosaic {
    order: -1; height: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "men men suf  bot"
      "dr  dr  rain star"
      "dr  dr  jug  flame";
  }
  .attract__copy { padding: 4vmin 7vmin 3.4vmin; }
  .attract__main { padding-bottom: 0; }
  .display { font-size: clamp(50px, 10.6vmin, 120px); }
  .display span { display: inline; }
  .display .hollow { display: block; }
  .sticker { top: -8.5vmin; left: 16.5vmin; }
  .form-screen.is-active { grid-template-columns: 1fr; grid-template-rows: 25vw minmax(0, 1fr); }
  .strip { order: -1; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .game__stage { inset: 22vmin 0 26vmin; }
  .tag { width: min(72vw, 560px); }
}
@media (max-height: 640px) {
  .field input { height: 56px; font-size: 21px; }
  .consent { font-size: 17px; padding: 8px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .screen.is-active, .tag-wrap, .reveal, .reveal__foot { animation-duration: .01s !important; animation-delay: 0s !important; }
  .reveal__rays, .spin60, .tip, .flick, .sticker, .swipe-hint path { animation: none; }
}
