/* מקום 61 · כל הזכויות שמורות © 2026 מקום 61 · אין להעתיק או להפיץ ללא רשות בכתב */
/* מקום 61 - עיצוב יוקרתי: נייבי עמוק, זכוכית כהה, זהב ממלכתי, טיפוגרפיית Heebo */
:root {
  --bg: #080d1a;
  --bg2: rgba(13, 20, 38, 0.86);
  --card: rgba(22, 32, 56, 0.72);
  --card2: rgba(34, 48, 80, 0.85);
  --line: rgba(126, 160, 220, 0.16);
  --line-strong: rgba(126, 160, 220, 0.32);
  --text: #eef2fa;
  --dim: #93a3c4;
  --accent: #5aa9ff;
  --accent2: #8fc3ff;
  --gold: #e6c15c;
  --warn: #e6c15c;
  --good: #3ddc84;
  --bad: #ff6b7a;
  --radius: 18px;
  font-size: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scrollbar-color: #2a3a5e var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: #2a3a5e; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

body {
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(58, 96, 180, 0.22), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(38, 64, 130, 0.18), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Heebo", -apple-system, "Segoe UI", Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hidden { display: none !important; }
.screen { min-height: 100vh; }

/* ---------- מסך פתיחה ---------- */
.start-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 44px 20px 64px;
  text-align: center;
  animation: rise 0.6s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.logo {
  font-size: 3.4rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.logo span {
  background: linear-gradient(160deg, #a8d2ff 10%, #4d9bff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 22px rgba(77, 155, 255, 0.35));
}
.tagline {
  color: var(--dim);
  margin: 8px 0 30px;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.field-label {
  display: block;
  text-align: right;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}
.start-inner input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(10, 16, 32, 0.7);
  color: var(--text);
  font-size: 1.02rem;
  font-family: inherit;
  text-align: right;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.start-inner input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(90, 169, 255, 0.18);
}
.start-inner input[type="text"]::placeholder { color: #5c6c92; }

#origin-cards { display: grid; gap: 12px; margin-bottom: 24px; }
.origin-card {
  background: linear-gradient(165deg, rgba(26, 38, 66, 0.85), rgba(16, 24, 44, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  text-align: right;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.origin-card:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.origin-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 12px 32px rgba(46, 100, 200, 0.3);
}
.origin-card h3 { font-size: 1.06rem; font-weight: 800; margin-bottom: 5px; }
.origin-card p { color: var(--dim); font-size: 0.88rem; line-height: 1.55; }

/* ---------- כפתורים ---------- */
.btn {
  display: inline-block;
  border: none;
  border-radius: 14px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.01em;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, #66b1ff, #3a7ded);
  color: #071228;
  box-shadow: 0 10px 26px rgba(58, 125, 237, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { filter: brightness(1.07); }
.btn-primary:disabled { opacity: 0.35; cursor: default; box-shadow: none; filter: none; }
.btn-ghost {
  background: rgba(20, 30, 54, 0.5);
  color: var(--accent2);
  border: 1px solid var(--line);
  margin-top: 10px;
}
.btn-ghost:hover { border-color: var(--line-strong); }
.btn-big { width: 100%; padding: 17px; font-size: 1.08rem; }
#start-continue .btn { width: 100%; margin-bottom: 10px; }

/* ---------- מסך משחק ---------- */
#topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 18px;
  background: rgba(9, 14, 28, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
#top-name { font-weight: 800; font-size: 1.02rem; }
#top-name small {
  display: block; font-weight: 500;
  color: var(--gold); font-size: 0.72rem; letter-spacing: 0.08em; margin-top: 1px;
}
#top-week { color: var(--dim); font-size: 0.88rem; font-weight: 500; text-align: left; }

#main {
  max-width: 640px;
  margin: 0 auto;
  padding: 18px 14px 160px;
}

.card {
  background: linear-gradient(165deg, rgba(24, 35, 62, 0.8), rgba(15, 22, 42, 0.85));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 17px 18px;
  margin-bottom: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.card h3 {
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}

/* נתונים ומשאבים */
.stat-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.stat-row .lbl { flex: 0 0 92px; font-size: 0.88rem; font-weight: 500; }
.stat-row .barwrap {
  flex: 1; height: 9px;
  background: rgba(7, 11, 22, 0.9);
  border-radius: 5px; overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}
.stat-row .bar {
  height: 100%;
  background: linear-gradient(90deg, #3a7ded, #7cc0ff);
  border-radius: 5px;
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.stat-row .val { flex: 0 0 36px; text-align: left; font-size: 0.84rem; color: var(--dim); font-variant-numeric: tabular-nums; font-weight: 500; }

.res-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.res-item {
  background: rgba(8, 13, 26, 0.75);
  border: 1px solid rgba(126, 160, 220, 0.09);
  border-radius: 13px;
  padding: 11px 13px;
}
.res-item .rlbl { font-size: 0.75rem; color: var(--dim); font-weight: 500; letter-spacing: 0.02em; }
.res-item .rval { font-size: 1.4rem; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.25; }
.res-item .rdelta { font-size: 0.73rem; font-weight: 700; }
.rdelta.up { color: var(--good); }
.rdelta.down { color: var(--bad); }

/* מד סיכון */
.riskwrap {
  height: 10px;
  background: rgba(7, 11, 22, 0.9);
  border-radius: 5px; overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}
.riskbar { height: 100%; border-radius: 5px; background: var(--good); transition: width 0.5s, background 0.5s; }
.risknote { font-size: 0.82rem; color: var(--dim); margin-top: 8px; line-height: 1.5; }

/* חדשות */
.news-item {
  background: linear-gradient(165deg, rgba(24, 35, 62, 0.7), rgba(15, 22, 42, 0.78));
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 13px 15px;
  margin-bottom: 10px;
}
.news-item .nwk {
  font-size: 0.68rem; color: var(--accent2);
  font-weight: 700; letter-spacing: 0.12em; margin-bottom: 4px;
}
.news-item p { font-size: 0.94rem; line-height: 1.55; }
.news-item.flash {
  border-inline-start: 3px solid var(--gold);
  border-color: rgba(230, 193, 92, 0.35);
}
.news-item.flash .nwk { color: var(--gold); }

/* מהלכים */
.action-card {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: linear-gradient(165deg, rgba(24, 35, 62, 0.8), rgba(15, 22, 42, 0.85));
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: border-color 0.2s;
}
.action-card:hover { border-color: var(--line-strong); }
.action-card .info { flex: 1; }
.action-card h4 { font-size: 1rem; font-weight: 800; margin-bottom: 4px; }
.action-card p { font-size: 0.84rem; color: var(--dim); line-height: 1.5; }
.action-card .risktag { font-size: 0.73rem; color: var(--gold); font-weight: 700; }
.action-card button {
  flex: 0 0 auto;
  background: rgba(38, 56, 96, 0.6);
  color: var(--accent2);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.action-card button:hover { background: rgba(52, 76, 128, 0.7); }
.action-card button:active { transform: translateY(1px); }
.action-card button:disabled { opacity: 0.3; cursor: default; }

/* קריירה */
.tl-item { display: flex; gap: 13px; position: relative; padding-bottom: 19px; }
.tl-item::before {
  content: ""; position: absolute; right: 5px; top: 18px; bottom: 0;
  width: 2px; background: var(--line);
}
.tl-item:last-child::before { display: none; }
.tl-dot { flex: 0 0 12px; height: 12px; border-radius: 50%; background: #2a3a5e; margin-top: 5px; }
.tl-item.done .tl-dot { background: var(--good); box-shadow: 0 0 8px rgba(61, 220, 132, 0.4); }
.tl-item.now .tl-dot { background: var(--gold); box-shadow: 0 0 0 4px rgba(230, 193, 92, 0.2), 0 0 12px rgba(230, 193, 92, 0.5); }
.tl-body h4 { font-size: 0.98rem; font-weight: 700; }
.tl-item.now .tl-body h4 { color: var(--gold); }
.tl-body p { font-size: 0.82rem; color: var(--dim); line-height: 1.5; margin-top: 2px; }

/* פס סיום שבוע */
#endweek-bar {
  position: fixed; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 640px; margin: 0 auto;
  padding: 14px;
  background: linear-gradient(transparent, rgba(8, 13, 26, 0.95) 40%);
}
#ap-display { font-size: 0.88rem; color: var(--dim); font-weight: 500; }
#ap-display b { color: var(--text); font-size: 1.05rem; }

/* ניווט תחתון */
#bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  display: flex;
  background: rgba(9, 14, 28, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-btn {
  flex: 1;
  background: none; border: none;
  color: var(--dim);
  font-family: inherit;
  font-size: 0.79rem;
  font-weight: 700;
  padding: 15px 2px 13px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}
.nav-btn.active { color: var(--accent2); }
.nav-btn.active::after {
  content: ""; position: absolute; top: 0; left: 22%; right: 22%;
  height: 2px; border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.badge {
  position: absolute; top: 7px; inset-inline-end: 16%;
  background: var(--bad); color: #fff;
  font-size: 0.66rem; font-weight: 800;
  min-width: 17px; height: 17px; line-height: 17px;
  border-radius: 9px; padding: 0 4px;
  box-shadow: 0 2px 8px rgba(255, 107, 122, 0.4);
}

/* מודאל */
#modal-wrap {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(4, 7, 15, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
#modal {
  width: 100%; max-width: 520px;
  max-height: 86vh; overflow-y: auto;
  background: linear-gradient(170deg, #1a2745, #10182e);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 24px 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: pop 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
@keyframes pop {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to { opacity: 1; transform: none; }
}
#modal-tag {
  font-size: 0.68rem; color: var(--gold);
  font-weight: 700; letter-spacing: 0.16em; margin-bottom: 8px;
}
#modal-title { font-size: 1.35rem; font-weight: 900; margin-bottom: 12px; line-height: 1.25; }
#modal-text { color: var(--text); font-size: 0.97rem; line-height: 1.7; margin-bottom: 18px; white-space: pre-line; }
#modal-options { display: grid; gap: 10px; }
.opt-btn {
  background: rgba(32, 47, 82, 0.55);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 14px 15px;
  text-align: right;
  cursor: pointer;
  line-height: 1.45;
  transition: border-color 0.18s, background 0.18s, transform 0.15s;
}
.opt-btn:hover { border-color: var(--accent); background: rgba(42, 62, 106, 0.65); }
.opt-btn:active { transform: translateY(1px); }
.opt-btn .hint { display: block; font-size: 0.76rem; color: var(--gold); margin-top: 4px; font-weight: 700; }
.opt-btn:disabled { opacity: 0.38; cursor: default; }

@media (min-width: 700px) {
  .res-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- טיקר חדשות ---------- */
#ticker {
  position: sticky; top: 58px; z-index: 19;
  overflow: hidden;
  background: rgba(6, 10, 20, 0.92);
  border-bottom: 1px solid rgba(230, 193, 92, 0.25);
  height: 30px;
  display: flex; align-items: center;
}
#ticker::before {
  content: "מבזקים";
  flex: 0 0 auto;
  background: var(--gold);
  color: #1a1406;
  font-size: 0.66rem; font-weight: 900; letter-spacing: 0.1em;
  padding: 3px 10px; margin-inline-start: 0;
  height: 100%; display: flex; align-items: center;
  position: relative; z-index: 2;
}
#ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: tickmove var(--ticker-dur, 40s) linear infinite;
}
#ticker-track span {
  font-size: 0.78rem; color: #cdd8ee; font-weight: 500;
  padding-inline-end: 60px;
}
@keyframes tickmove {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

/* ---------- טוסטים ---------- */
#toasts {
  position: fixed; top: 96px; left: 12px; right: 12px; z-index: 45; /* מתחת לחלון הקופץ (50), כדי שהודעה לא תכסה הכרעה */
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.toast {
  max-width: 480px; width: fit-content;
  background: linear-gradient(165deg, rgba(30, 44, 76, 0.96), rgba(18, 27, 50, 0.97));
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  padding: 10px 16px;
  font-size: 0.88rem; font-weight: 500;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  animation: toastin 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.toast.toast-gold { border-color: rgba(230, 193, 92, 0.6); color: var(--gold); font-weight: 700; }
.toast.toast-bad { border-color: rgba(255, 107, 122, 0.6); }
.toast.out { transition: opacity 0.4s, transform 0.4s; opacity: 0; transform: translateY(-8px); }
@keyframes toastin {
  from { opacity: 0; transform: translateY(-12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

/* ---------- אפקטים: קונפטי ורעד ---------- */
#fx-layer { position: fixed; inset: 0; z-index: 55; pointer-events: none; overflow: hidden; }
.confetto {
  position: absolute; top: -14px;
  width: 9px; height: 14px; border-radius: 2px;
  animation: fall 2.6s ease-in forwards;
}
@keyframes fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(105vh) rotate(720deg); opacity: 0.7; }
}
.shake { animation: shakefx 0.55s ease both; }
@keyframes shakefx {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60% { transform: translateX(5px); }
}
.redflash { animation: redfl 0.6s ease both; }
@keyframes redfl {
  0% { box-shadow: inset 0 0 0 100vmax rgba(255, 60, 70, 0); }
  30% { box-shadow: inset 0 0 0 100vmax rgba(255, 60, 70, 0.16); }
  100% { box-shadow: inset 0 0 0 100vmax rgba(255, 60, 70, 0); }
}

/* ---------- הבהוב ערכים שהשתנו ---------- */
.bump-up { animation: bumpup 0.7s ease both; }
.bump-down { animation: bumpdown 0.7s ease both; }
@keyframes bumpup { 30% { color: var(--good); transform: scale(1.12); } }
@keyframes bumpdown { 30% { color: var(--bad); transform: scale(1.12); } }

/* ---------- באנר הדרך ל-61 ---------- */
.road61 { padding: 14px 16px; }
.road-steps {
  display: flex; align-items: center; margin-bottom: 10px;
}
.road-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: #24344f; flex: 0 0 auto;
  border: 1px solid rgba(126, 160, 220, 0.25);
}
.road-dot.done { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 6px rgba(90, 169, 255, 0.5); }
.road-dot.now { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(230, 193, 92, 0.2); animation: roadpulse 1.8s ease infinite; }
.road-seg { flex: 1; height: 2px; background: #24344f; }
.road-seg.done { background: var(--accent); }
.road-61 {
  flex: 0 0 auto; font-size: 0.78rem; font-weight: 900; color: var(--gold);
  margin-inline-start: 7px; letter-spacing: 0.02em;
}
@keyframes roadpulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(230, 193, 92, 0.2); }
  50% { box-shadow: 0 0 0 7px rgba(230, 193, 92, 0.08); }
}
.road-line { font-size: 0.8rem; color: var(--dim); line-height: 1.5; }
.road-line b { color: var(--text); }

/* ---------- מדרג הטון: עממיות בסניף, ממלכתיות בצמרת ---------- */
#screen-game.tone-street { --gold: #e8a34a; --warn: #e8a34a; }
#screen-game.tone-street .card h3 { letter-spacing: 0.05em; font-size: 0.76rem; }
#screen-game.tone-street #ticker::before { content: "מהשטח"; background: #e8a34a; }
#screen-game.tone-city #ticker::before { content: "מבזקים"; }
#screen-game.tone-state .card h3 { letter-spacing: 0.22em; }
#screen-game.tone-state #ticker::before { content: "ירושלים"; background: linear-gradient(90deg, #e6c15c, #f0d488); }
#screen-game.tone-state #topbar { border-bottom: 1px solid rgba(230, 193, 92, 0.45); }
#screen-game.tone-state #top-name small::before { content: "✦ "; color: var(--gold); }

/* ---------- הפנים של המשחק: דוברים, סצנות, דמויות ---------- */
#modal-face {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
#modal-face-emo {
  flex: 0 0 54px; height: 54px; width: 54px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  background: radial-gradient(circle at 35% 30%, rgba(90, 169, 255, 0.25), rgba(20, 30, 54, 0.9));
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}
#modal-face-who {
  font-size: 0.86rem; font-weight: 800; color: var(--accent2);
  line-height: 1.35;
}
#modal-text.bubble {
  background: rgba(32, 47, 82, 0.45);
  border: 1px solid var(--line);
  border-radius: 4px 16px 16px 16px;
  padding: 13px 15px;
}
.scene {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(165deg, rgba(30, 44, 76, 0.9), rgba(14, 21, 40, 0.92)) !important;
}
.scene-emo {
  font-size: 2rem; letter-spacing: 0.1em; line-height: 1;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
  white-space: nowrap;
}
.scene-txt { flex: 1; min-width: 0; }
.scene-place { font-size: 0.92rem; font-weight: 800; }
.scene-you { font-size: 0.8rem; color: var(--gold); font-weight: 700; margin-top: 3px; }
.act-emo { font-size: 1.25rem; margin-inline-end: 7px; vertical-align: -2px; }
.npc-emo {
  flex: 0 0 40px; height: 40px; width: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  background: rgba(20, 30, 54, 0.8);
  border: 1px solid var(--line);
  border-radius: 50%;
}

/* ---------- המדריך המצביע ---------- */
#tut-bar {
  position: fixed; bottom: calc(146px + env(safe-area-inset-bottom, 0px)); left: 12px; right: 12px; z-index: 25;
  max-width: 616px; margin: 0 auto;
  background: linear-gradient(165deg, rgba(58, 44, 12, 0.97), rgba(40, 30, 8, 0.97));
  border: 1px solid var(--gold);
  border-radius: 14px;
  padding: 11px 15px;
  font-size: 0.9rem; font-weight: 700; color: #f5e3b3;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: toastin 0.3s ease both;
}
.tut-glow {
  animation: tutpulse 1.4s ease infinite !important;
  border-radius: 12px;
}
@keyframes tutpulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 193, 92, 0.8); }
  50% { box-shadow: 0 0 0 9px rgba(230, 193, 92, 0); }
}

/* ---------- נגישות ---------- */
body.modal-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #ticker-track { animation: none !important; transform: none !important; }
  .confetto { display: none !important; }
  .road-dot.now { animation: none !important; }
}

/* ---------- סבב 100 השחקנים: סיכויים גלויים, רמזי מחיר, בחירת פנייה ---------- */
.odds-line { display: flex; flex-direction: column; gap: 3px; margin: 8px 0 2px; padding: 8px 10px; border-radius: 10px; background: rgba(230, 193, 92, 0.07); border: 1px solid rgba(230, 193, 92, 0.25); font-size: 0.8rem; color: var(--dim); line-height: 1.45; }
.odds-line b { color: var(--gold); font-size: 0.92rem; }
.opt-btn .hint.price { color: var(--dim); font-weight: 600; opacity: 0.9; }
.opt-btn .hint.price + .hint { margin-top: 2px; }
#name-row { display: flex; gap: 8px; align-items: stretch; }
#name-row input { flex: 1; min-width: 0; }
#gender-pick { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; flex: 0 0 auto; }
#gender-pick .gbtn { background: rgba(10, 16, 32, 0.7); border: none; color: var(--dim); font-family: inherit; font-weight: 700; font-size: 0.9rem; padding: 0 14px; cursor: pointer; }
#gender-pick .gbtn.active { background: var(--accent); color: #fff; }
#challenge-wrap summary::-webkit-details-marker { display: none; }
.action-card.wasted { opacity: 0.55; }
.action-card .numline { font-size: 0.74rem; color: var(--accent2); margin-top: 3px; font-weight: 600; }
.news-item .nmine { font-size: 0.7rem; color: var(--dim); margin-inline-start: 6px; }
.news-item .nx { color: var(--gold); font-weight: 800; font-size: 0.78rem; margin-inline-start: 6px; }
#news-filter { display: flex; gap: 6px; margin-bottom: 10px; }
#news-filter button { flex: 1; background: rgba(20, 30, 54, 0.6); border: 1px solid var(--line); border-radius: 9px; color: var(--dim); font-family: inherit; font-weight: 700; font-size: 0.82rem; padding: 7px; cursor: pointer; }
#news-filter button.active { border-color: var(--accent); color: var(--accent2); }
.challenge-bar { font-size: 0.8rem; color: var(--dim); line-height: 1.5; padding: 8px 10px; border-radius: 10px; border: 1px dashed var(--line); margin-top: 8px; }
.challenge-bar b { color: var(--gold); }
#btn-repeat { background: none; border: 1px solid var(--line); color: var(--dim); border-radius: 10px; font-family: inherit; font-size: 0.78rem; font-weight: 700; padding: 8px 10px; cursor: pointer; white-space: nowrap; }
#btn-repeat:disabled { opacity: 0.35; cursor: default; }
.stab-wrap { height: 10px; border-radius: 5px; background: rgba(7, 11, 22, 0.9); overflow: hidden; margin: 6px 0; }
.stab-bar { height: 100%; border-radius: 5px; transition: width 0.5s; }

/* פס סיום השבוע בטלפון צר: שורה אחת, בלי גלישה */
#endweek-bar { flex-wrap: nowrap; }
#ap-display, #endweek-bar .btn, #btn-repeat { white-space: nowrap; }
#endweek-bar .btn-primary { flex: 0 0 auto; }
@media (max-width: 460px) {
  #endweek-bar { padding: 12px 10px; gap: 8px; }
  #endweek-bar .btn-primary { padding: 12px 14px; font-size: 0.95rem; border-radius: 12px; }
  #btn-repeat .lbl { display: none; }
  #btn-repeat { padding: 9px 11px; font-size: 1.05rem; }
  #ap-display { font-size: 0.8rem; }
}
@media (max-width: 350px) {
  #ap-display { font-size: 0.74rem; }
  #endweek-bar .btn-primary { padding: 11px 10px; font-size: 0.88rem; }
}

/* הרשמה במייל וקרדיט */
.start-inner input[type="email"] {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(10, 16, 32, 0.7); color: var(--text); font-family: inherit; font-size: 1rem; text-align: right; direction: rtl;
}
.start-inner input[type="email"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(90, 169, 255, 0.18); }
.start-inner input[type="email"]::placeholder { color: #5c6c92; }
#signup-box p { font-size: 0.86rem; color: var(--dim); line-height: 1.5; }
#signup-box .consent { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 0.8rem; color: var(--dim); line-height: 1.45; cursor: pointer; }
#signup-box .consent input { margin-top: 3px; accent-color: var(--accent); flex: 0 0 auto; width: 18px; height: 18px; }
#signup-box.done { border-color: var(--good); }
.credit { margin: 26px 0 10px; font-size: 0.76rem; color: var(--dim); line-height: 1.7; text-align: center; }
.credit b { color: var(--text); font-weight: 700; }
.credit a { color: var(--accent2); text-decoration: none; }
.modal-credit { margin: 6px 0 0; }
.signup-inline { margin-top: 10px; }
.signup-inline input[type="email"] { width: 100%; padding: 11px; border-radius: 10px; border: 1px solid var(--line); background: rgba(10, 16, 32, 0.7); color: var(--text); font-family: inherit; text-align: right; direction: rtl; margin-bottom: 8px; }
.signup-inline label { display: flex; gap: 8px; align-items: flex-start; font-size: 0.78rem; color: var(--dim); line-height: 1.4; margin-bottom: 8px; }
.signup-inline label input { margin-top: 2px; accent-color: var(--accent); flex: 0 0 auto; }

/* ---------- ליל בחירות בסלון: כרטיס פתיחה, לובי, כרטיס חדר ---------- */
.dimnote { font-size: 0.82rem; color: var(--dim); line-height: 1.5; }
#night-box p { font-size: 0.86rem; color: var(--dim); line-height: 1.5; }
.night-join { display: flex; gap: 8px; margin-top: 10px; }
.night-join input { flex: 1; min-width: 0; margin: 0 !important; text-transform: uppercase; letter-spacing: 0.12em; }
.night-join .btn { margin: 0; white-space: nowrap; }
#night-presets { display: flex; gap: 8px; margin-top: 10px; }
#night-presets .pbtn { flex: 1; background: rgba(10, 16, 32, 0.7); border: 1px solid var(--line); border-radius: 12px; color: var(--dim); font-family: inherit; padding: 10px 8px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; align-items: center; }
#night-presets .pbtn b { color: var(--text); font-size: 0.98rem; }
#night-presets .pbtn small { font-size: 0.74rem; }
#night-presets .pbtn.active { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 0 3px rgba(230, 193, 92, 0.15); }
#night-presets .pbtn.active b { color: var(--gold); }
.lobby-kicker { color: var(--gold); font-weight: 700; letter-spacing: 0.14em; font-size: 0.78rem; margin-bottom: 6px; }
.lobby-title { font-size: 2rem; font-weight: 900; margin-bottom: 8px; line-height: 1.2; }
.lobby-code { font-size: 1rem; color: var(--dim); margin-bottom: 6px; }
.lobby-code b { display: inline-block; color: var(--text); font-size: 1.8rem; letter-spacing: 0.22em; font-variant-numeric: tabular-nums; margin-inline-start: 6px; background: rgba(20, 30, 54, 0.8); border: 1px solid var(--gold); border-radius: 12px; padding: 4px 12px; }
.lobby-btns { display: flex; gap: 8px; margin: 14px 0 18px; }
.lobby-btns .btn { flex: 1; margin: 0; }
.lobby-p { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; font-weight: 700; }
.lobby-p:last-child { border-bottom: none; }
.lobby-p small { color: var(--gold); font-weight: 700; font-size: 0.72rem; margin-inline-start: 6px; }
.lobby-p.me { color: var(--accent2); }
.name-row { display: flex; gap: 8px; align-items: stretch; }
.name-row input { flex: 1; min-width: 0; }
.gpick { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; flex: 0 0 auto; }
.gpick .gbtn { background: rgba(10, 16, 32, 0.7); border: none; color: var(--dim); font-family: inherit; font-weight: 700; font-size: 0.9rem; padding: 0 14px; cursor: pointer; }
.gpick .gbtn.active { background: var(--accent); color: #fff; }
#screen-lobby .card input[type="text"] { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(10, 16, 32, 0.7); color: var(--text); font-family: inherit; font-size: 1rem; text-align: right; }
.night-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.night-table td { padding: 6px 4px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.night-table tr:last-child td { border-bottom: none; }
.night-table .rk { width: 22px; color: var(--dim); font-weight: 800; }
.night-table .nm { font-weight: 800; }
.night-table .sc { text-align: left; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.night-table .fp { text-align: left; color: var(--dim); font-size: 0.78rem; white-space: nowrap; }
.night-table .wk { color: var(--dim); font-size: 0.74rem; }
.night-table tr.me td { color: var(--accent2); }
.awards { margin-top: 12px; display: grid; gap: 8px; }
.award { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 12px; background: rgba(230, 193, 92, 0.07); border: 1px solid rgba(230, 193, 92, 0.25); font-size: 0.9rem; }
.award .aemo { font-size: 1.4rem; flex: 0 0 auto; }
.award b { color: var(--gold); }
.award .aline { font-size: 0.78rem; color: var(--dim); margin-top: 2px; }
.night-card .nclock { font-size: 0.95rem; font-weight: 800; color: var(--gold); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.night-card .nbtns { display: grid; gap: 8px; margin-top: 12px; }
.night-card .nbtns .btn { width: 100%; margin: 0; }
.night-bar b { color: var(--gold); }
#modal-text .night-table, #modal-text .awards { text-align: right; white-space: normal; }

/* ---------- המסך הגדול ---------- */
body.tv { overflow-x: hidden; }
#screen-tv { min-height: 100vh; padding: 28px 40px 40px; display: flex; flex-direction: column; gap: 22px; }
.tv-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line-strong); padding-bottom: 18px; }
.tv-brand { display: flex; flex-direction: column; gap: 4px; }
.tv-logo { font-size: 1.6rem; font-weight: 900; }
.tv-logo b { color: var(--gold); }
.tv-kicker { color: var(--gold); font-weight: 700; letter-spacing: 0.16em; font-size: 0.85rem; }
#tv-title { font-size: 2.6rem; font-weight: 900; text-align: center; flex: 1; line-height: 1.15; }
.tv-clockbox { font-size: 3rem; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--gold); background: rgba(20, 30, 54, 0.8); border: 1px solid var(--gold); border-radius: 18px; padding: 6px 22px; min-width: 170px; text-align: center; }
.tv-body { display: flex; gap: 32px; flex: 1; align-items: flex-start; }
#tv-main { flex: 1; min-width: 0; }
.tv-side { flex: 0 0 240px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.tv-qr { width: 220px; height: 220px; background: #fff; border-radius: 16px; padding: 10px; display: flex; align-items: center; justify-content: center; }
.tv-qr svg { width: 100%; height: 100%; display: block; }
.tv-join { font-size: 1.1rem; color: var(--dim); line-height: 1.7; }
.tv-join b { color: var(--text); }
.tv-codebig { display: block; font-size: 2.4rem; letter-spacing: 0.22em; color: var(--gold) !important; font-variant-numeric: tabular-nums; }
.tv-big { font-size: 2.4rem; font-weight: 900; margin: 30px 0 10px; text-align: center; }
.tv-sub { font-size: 1.15rem; color: var(--dim); text-align: center; line-height: 1.6; margin: 8px auto; max-width: 900px; }
.tv-h2 { font-size: 2.2rem; font-weight: 900; text-align: center; margin: 4px 0 14px; }
.tv-names { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 22px 0; }
.tv-name { font-size: 1.5rem; font-weight: 800; padding: 10px 22px; border-radius: 14px; background: rgba(22, 32, 56, 0.8); border: 1px solid var(--line-strong); animation: pop 0.4s ease both; }
.tv-table { width: 100%; border-collapse: collapse; font-size: 1.5rem; }
.tv-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); }
.tv-table .rk { width: 48px; color: var(--dim); font-weight: 900; }
.tv-table .nm { font-weight: 900; }
.tv-table .wk { color: var(--dim); font-size: 1.1rem; white-space: nowrap; }
.tv-table .sc { text-align: left; color: var(--gold); font-weight: 900; font-variant-numeric: tabular-nums; }
.tv-table .fp { text-align: left; color: var(--dim); font-size: 1.05rem; white-space: nowrap; }
.tv-table tr.dead td { opacity: 0.55; }
.tv-banner { font-size: 2rem; font-weight: 900; text-align: center; padding: 18px 24px; margin-bottom: 18px; border-radius: 18px; background: linear-gradient(165deg, rgba(58, 44, 12, 0.95), rgba(40, 30, 8, 0.95)); border: 1px solid var(--gold); color: #f5e3b3; animation: pop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
.tv-feed { margin-top: 18px; color: var(--dim); font-size: 1.05rem; line-height: 1.9; }
.tv-vote { margin-bottom: 20px; padding: 18px 22px; border-radius: 20px; border: 1px solid var(--gold); background: rgba(230, 193, 92, 0.06); }
.tv-vote .tv-kicker { display: block; text-align: center; margin-bottom: 8px; }
.tv-opt { display: flex; justify-content: space-between; align-items: center; font-size: 1.4rem; font-weight: 700; padding: 12px 16px; margin: 8px 0; border-radius: 14px; background: rgba(22, 32, 56, 0.8); border: 1px solid var(--line-strong); }
.tv-opt b { color: var(--gold); font-size: 1.8rem; font-variant-numeric: tabular-nums; }
.tv-opt.win { border-color: var(--good); box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.2); }
.tv-ceremony { display: flex; flex-direction: column-reverse; gap: 10px; margin: 10px 0 18px; }
.tv-crow { display: grid; grid-template-columns: 56px 1fr 1fr 140px; align-items: center; gap: 14px; font-size: 1.7rem; font-weight: 800; padding: 14px 18px; border-radius: 16px; background: rgba(22, 32, 56, 0.8); border: 1px solid var(--line-strong); opacity: 0; animation: pop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
.tv-crow .rk { color: var(--dim); font-weight: 900; }
.tv-crow .st { color: var(--dim); font-size: 1.2rem; font-weight: 600; }
.tv-crow .sc { text-align: left; color: var(--gold); font-variant-numeric: tabular-nums; }
.tv-crow.first { border-color: var(--gold); background: linear-gradient(165deg, rgba(58, 44, 12, 0.95), rgba(40, 30, 8, 0.95)); font-size: 2.1rem; box-shadow: 0 0 40px rgba(230, 193, 92, 0.25); }
.tv-awards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tv-award { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: rgba(230, 193, 92, 0.07); border: 1px solid rgba(230, 193, 92, 0.3); font-size: 1.25rem; opacity: 0; animation: pop 0.6s ease both; }
.tv-award .aemo { font-size: 2.2rem; }
.tv-award b { color: var(--gold); }
.tv-award .aline { font-size: 0.95rem; color: var(--dim); margin-top: 3px; }
.tv-next { margin-top: 16px; color: var(--gold); }
.tv-next b { color: var(--text); }
@media (max-width: 900px) {
  #screen-tv { padding: 18px 16px 30px; }
  .tv-body { flex-direction: column-reverse; }
  .tv-side { flex-direction: row; justify-content: center; width: 100%; }
  .tv-qr { width: 120px; height: 120px; }
  #tv-title { font-size: 1.6rem; }
  .tv-clockbox { font-size: 1.8rem; min-width: 110px; }
  .tv-table { font-size: 1.05rem; }
  .tv-crow { font-size: 1.2rem; grid-template-columns: 36px 1fr 1fr 80px; }
  .tv-awards { grid-template-columns: 1fr; }
}

/* ---------- "לשבוע הבא": הכפתור שמזיז את המשחק, והתחושה שהמהלכים עובדים ---------- */
#btn-endweek.ready { background: linear-gradient(135deg, #e6c15c, #f0d488); color: #1a1405; box-shadow: 0 0 0 0 rgba(230, 193, 92, 0.7); animation: readypulse 1.6s ease infinite; }
@keyframes readypulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(230, 193, 92, 0.7); } 50% { box-shadow: 0 0 0 10px rgba(230, 193, 92, 0); } }
#btn-endweek.nudge { animation: nudgefx 0.5s ease both, readypulse 1.6s ease infinite 0.5s; }
@keyframes nudgefx { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px) scale(1.05); } 60% { transform: translateY(0) scale(1); } }
.card.no-ap { border-color: var(--gold); background: linear-gradient(165deg, rgba(58, 44, 12, 0.9), rgba(24, 35, 62, 0.85)); text-align: center; }
.card.no-ap h3 { font-size: 1.05rem; letter-spacing: 0; color: var(--gold); }
.card.no-ap p { font-size: 0.88rem; color: var(--dim); line-height: 1.55; margin-bottom: 10px; }
.btn-next-inline { width: 100%; background: linear-gradient(135deg, #e6c15c, #f0d488); color: #1a1405; animation: readypulse 1.6s ease infinite; }
.action-card.noap { cursor: pointer; }
.action-card .actres { font-size: 0.8rem; font-weight: 700; margin-top: 6px; padding: 6px 9px; border-radius: 9px; line-height: 1.45; }
.action-card .actres.ok { color: var(--good); background: rgba(61, 220, 132, 0.09); border: 1px solid rgba(61, 220, 132, 0.3); }
.action-card .actres.bad { color: var(--bad); background: rgba(255, 107, 122, 0.09); border: 1px solid rgba(255, 107, 122, 0.3); }
@media (prefers-reduced-motion: reduce) { #btn-endweek.ready, .btn-next-inline, #btn-endweek.nudge { animation: none !important; } }

/* ---------- מעבר שבוע ממלכתי: וילון, קו זהב, מספר השבוע והכותרת ---------- */
#week-veil { position: fixed; inset: 0; z-index: 60; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 0 28px; text-align: center; background: radial-gradient(900px 500px at 50% 50%, rgba(13, 20, 38, 0.97), rgba(8, 13, 26, 0.95)); animation: veilfade 1.1s ease both; }
@keyframes veilfade { 0% { opacity: 0; } 18% { opacity: 1; } 62% { opacity: 1; } 100% { opacity: 0; } }
#week-veil .veil-line { width: 0; max-width: 320px; height: 1px; background: linear-gradient(90deg, transparent, #e6c15c 30%, #f3dc98 50%, #e6c15c 70%, transparent); animation: veilline 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
#week-veil .veil-line.second { animation-delay: 0.12s; }
@keyframes veilline { from { width: 0; opacity: 0; } to { width: 100%; opacity: 1; } }
#week-veil .veil-week { font-size: 2.6rem; font-weight: 900; letter-spacing: 0.04em; color: var(--text); text-shadow: 0 0 30px rgba(230, 193, 92, 0.35); animation: veiltext 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.1) both 0.1s; }
#week-veil .veil-week small { font-size: 1.2rem; font-weight: 700; color: var(--gold); letter-spacing: 0.08em; }
#week-veil .veil-head { max-width: 520px; font-size: 0.95rem; line-height: 1.55; color: var(--dim); animation: veiltext 0.6s ease both 0.22s; }
@keyframes veiltext { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- אבק זהב: המשאב שגדל הכי הרבה השבוע ---------- */
.res-item { position: relative; overflow: visible; }
.res-item.grew { border-color: rgba(230, 193, 92, 0.55); box-shadow: 0 0 0 1px rgba(230, 193, 92, 0.18), 0 6px 20px rgba(230, 193, 92, 0.12); }
.res-item .dust { position: absolute; border-radius: 50%; background: radial-gradient(circle, #fff3c4, #e6c15c 60%, transparent 70%); pointer-events: none; opacity: 0; animation: dustrise 1.1s ease-out both; }
@keyframes dustrise { 0% { opacity: 0; transform: translateY(6px) scale(0.6); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-28px) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { #week-veil { display: none !important; } .res-item .dust { display: none !important; } }
