/* ==========================================================================
   אמנו את המודל — game styles (on top of ../_kit/wall.css)
   ========================================================================== */

.ttm-layer { position: absolute; inset: 0; width: 1600px; height: 1000px; pointer-events: none; }

/* ---------- dataset piles (top-left / top-right) ---------- */
.ttm-pile {
  position: absolute;
  top: 134px;
  height: 246px;
  box-sizing: border-box;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(11, 23, 48, 0.78), rgba(11, 23, 48, 0.46));
  border: 1px solid rgba(56, 189, 248, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 40px rgba(0, 0, 0, 0.25);
}
.ttm-pile.is-cat { --pile-color: #38BDF8; }
.ttm-pile.is-not { --pile-color: #94A3B8; }
.ttm-pile-head {
  position: absolute;
  top: 12px;
  right: 16px;
  left: 16px;
  height: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ttm-pile-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--wall-font-head);
  font-weight: 700;
  font-size: 22px;
  color: var(--wall-ink);
}
.ttm-pile-name i {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--pile-color);
  box-shadow: 0 0 10px var(--pile-color);
}
.ttm-pile-name small {
  font-family: var(--wall-font-body);
  font-weight: 500;
  font-size: 17px;
  color: var(--wall-ink-dim);
}
.ttm-pile-count {
  font-family: var(--wall-font-head);
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  color: var(--pile-color);
  font-variant-numeric: tabular-nums;
}
.ttm-pile-empty {
  position: absolute;
  top: 118px;
  width: 100%;
  text-align: center;
  font-family: var(--wall-font-body);
  font-weight: 500;
  font-size: 20px;
  color: var(--wall-ink-faint);
}

.ttm-thumb {
  position: absolute;
  box-sizing: border-box;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(148, 163, 184, 0.55);
  background: #0B1730;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, opacity 220ms ease;
}
.ttm-thumb img { display: block; width: 100%; height: 100%; }
.ttm-thumb.is-cat { border-color: rgba(56, 189, 248, 0.8); }
.ttm-thumb.is-bad { border-color: #F43F5E; box-shadow: 0 0 14px rgba(244, 63, 94, 0.65); }
.ttm-thumb.is-bad::after {
  content: '!';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #F43F5E;
  color: #fff;
  font-family: var(--wall-font-head);
  font-weight: 800;
  font-size: 13px;
  line-height: 17px;
  text-align: center;
}
.ttm-thumbs.is-focus .ttm-thumb { opacity: 0.38; }
.ttm-thumbs.is-focus .ttm-thumb.is-nb { opacity: 1; }
.ttm-thumb.is-nb {
  transform: scale(1.32);
  z-index: 3;
  box-shadow: 0 0 0 3px rgba(6, 15, 31, 0.9), 0 0 26px var(--nb-color, #38BDF8);
}

/* ---------- the model orb ---------- */
.ttm-orb {
  position: absolute;
  left: 682px;
  top: 144px;
  width: 236px;
  height: 236px;
  --acc: 50;
  --ring-a: #94A3B8;
  --ring-b: #CBD5E1;
}
.ttm-orb.is-good { --ring-a: #38BDF8; --ring-b: #8B5CF6; }
.ttm-orb.is-mid { --ring-a: #FBBF24; --ring-b: #F59E0B; }
.ttm-orb.is-low { --ring-a: #F43F5E; --ring-b: #FB7185; }
.ttm-orb-glow {
  position: absolute;
  inset: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 124, 247, 0.5) 0%, rgba(139, 92, 246, 0.2) 42%, transparent 70%);
  animation: ttm-breathe 3.4s ease-in-out infinite;
}
.ttm-orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--ring-a) 0%, var(--ring-b) calc(var(--acc) * 1%), rgba(244, 247, 251, 0.09) calc(var(--acc) * 1%) 100%);
  -webkit-mask: radial-gradient(circle, transparent 105px, #000 106px, #000 117px, transparent 118px);
  mask: radial-gradient(circle, transparent 105px, #000 106px, #000 117px, transparent 118px);
}
.ttm-orb-halo {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  box-shadow: 0 0 28px color-mix(in srgb, var(--ring-a) 55%, transparent);
  transition: box-shadow 400ms ease;
}
.ttm-orb-core {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 36% 28%, #8DB0FF 0%, #4F7CF7 26%, #3A2F9E 62%, #160F44 100%);
  box-shadow: inset 0 0 36px rgba(139, 92, 246, 0.7), inset 0 -12px 30px rgba(6, 15, 31, 0.6), 0 0 46px rgba(56, 189, 248, 0.32);
}
.ttm-orb-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  animation: ttm-spin 46s linear infinite;
}
.ttm-orb-hurt {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.9), rgba(244, 63, 94, 0.4) 62%, rgba(244, 63, 94, 0.1));
  opacity: 0;
}
.ttm-orb-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-shadow: 0 2px 14px rgba(6, 15, 31, 0.7);
}
.ttm-orb-k {
  font-family: var(--wall-font-head);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.08em;
  color: rgba(244, 247, 251, 0.78);
}
.ttm-orb-num {
  margin-top: 6px;
  font-family: var(--wall-font-head);
  font-weight: 800;
  font-size: 68px;
  line-height: 1;
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
  color: var(--wall-ink);
}
.ttm-orb-l {
  margin-top: 7px;
  font-family: var(--wall-font-body);
  font-weight: 600;
  font-size: 19px;
  color: rgba(244, 247, 251, 0.82);
}

@keyframes ttm-breathe { 0%, 100% { transform: scale(0.96); opacity: 0.85; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes ttm-spin { to { transform: rotate(360deg); } }

.ttm-spark {
  position: absolute;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px 4px var(--spark, #38BDF8);
}

/* ---------- cards ---------- */
.ttm-card {
  position: absolute;
  left: 0;
  top: 0;
  width: 150px;
  height: 172px;
  box-sizing: border-box;
  padding: 8px 8px 0;
  border-radius: 20px;
  transform-origin: 75px 86px;
  background: linear-gradient(180deg, rgba(22, 38, 76, 0.97), rgba(9, 19, 40, 0.97));
  border: 1.5px solid rgba(56, 189, 248, 0.32);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5), 0 0 26px rgba(56, 189, 248, 0.10);
  will-change: transform;
}
.ttm-pic {
  position: relative;
  width: 134px;
  height: 134px;
  border-radius: 13px;
  overflow: hidden;
}
.ttm-pic img { display: block; width: 100%; height: 100%; }
.ttm-cap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 29px;
  padding: 0 4px;
  font-family: var(--wall-font-body);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.ttm-id { direction: ltr; font-variant-numeric: tabular-nums; color: rgba(244, 247, 251, 0.4); }
.ttm-tag { color: rgba(244, 247, 251, 0.82); }
.ttm-card.is-good { border-color: rgba(52, 211, 153, 0.95); box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.3), 0 0 36px rgba(52, 211, 153, 0.55); }
.ttm-card.is-good .ttm-tag { color: #6EE7B7; }
.ttm-card.is-bad { border-color: rgba(244, 63, 94, 0.95); box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.3), 0 0 36px rgba(244, 63, 94, 0.6); }
.ttm-card.is-bad .ttm-tag { color: #FDA4AF; }

/* test cards */
.ttm-card.is-test {
  border-color: rgba(139, 92, 246, 0.7);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.16), 0 0 50px rgba(139, 92, 246, 0.35), 0 24px 50px rgba(0, 0, 0, 0.55);
}
.ttm-card.is-test.is-right { border-color: rgba(52, 211, 153, 0.95); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.22), 0 0 44px rgba(52, 211, 153, 0.45); }
.ttm-card.is-test.is-wrong { border-color: rgba(244, 63, 94, 0.95); box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.25), 0 0 48px rgba(244, 63, 94, 0.55); }
.ttm-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 18px;
  margin-top: -9px;
  background: linear-gradient(180deg, transparent, rgba(56, 189, 248, 0.55) 45%, #E0F4FF 50%, rgba(56, 189, 248, 0.55) 55%, transparent);
  mix-blend-mode: screen;
  opacity: 0;
}
.ttm-stamp {
  position: absolute;
  top: -17px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px 5px;
  border-radius: 999px;
  font-family: var(--wall-font-head);
  font-weight: 800;
  font-size: 17px;
  white-space: nowrap;
  color: #fff;
  background: rgba(6, 15, 31, 0.86);
  border: 1.5px solid #38BDF8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.6);
  opacity: 0;
}
.ttm-stamp.is-not { border-color: #CBD5E1; box-shadow: 0 0 14px rgba(203, 213, 225, 0.45); }
.ttm-badge {
  position: absolute;
  bottom: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #060F1F;
  opacity: 0;
}
.ttm-badge svg { width: 24px; height: 24px; }
.ttm-badge.is-right { background: #34D399; box-shadow: 0 0 18px rgba(52, 211, 153, 0.8); }
.ttm-badge.is-wrong { background: #F43F5E; box-shadow: 0 0 18px rgba(244, 63, 94, 0.8); }

/* beam from the orb to the test card + neighbour lines */
.ttm-beam {
  position: absolute;
  left: 704px;
  top: 366px;
  width: 192px;
  height: 112px;
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.62), rgba(139, 92, 246, 0.08));
  opacity: 0;
}
.ttm-lines { position: absolute; inset: 0; width: 1600px; height: 1000px; overflow: visible; }
.ttm-lines path { fill: none; stroke-width: 3.5; stroke-linecap: round; }

/* verdict under the test card */
.ttm-verdict {
  position: absolute;
  left: 800px;
  top: 742px;
  width: 900px;
  margin-left: -450px;
  text-align: center;
  opacity: 0;
}
.ttm-v1 { display: flex; justify-content: center; align-items: center; gap: 18px; }
.ttm-said {
  font-family: var(--wall-font-head);
  font-weight: 800;
  font-size: 40px;
  color: var(--wall-ink);
}
.ttm-said em { font-style: normal; color: #7DD3FC; }
.ttm-truth {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px 8px;
  border-radius: 999px;
  font-family: var(--wall-font-head);
  font-weight: 700;
  font-size: 26px;
}
.ttm-truth svg { width: 22px; height: 22px; }
.ttm-truth.is-right { color: #052e22; background: #34D399; }
.ttm-truth.is-wrong { color: #fff; background: #F43F5E; box-shadow: 0 0 24px rgba(244, 63, 94, 0.55); }
.ttm-v2 {
  margin-top: 14px;
  font-family: var(--wall-font-body);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.35;
  color: rgba(244, 247, 251, 0.86);
  text-wrap: balance;
}
.ttm-v2 b { display: block; margin-top: 4px; font-weight: 700; color: #FDA4AF; }

/* callouts (teaching moments during play) */
.ttm-callout {
  position: absolute;
  left: 0;
  top: 0;
  padding: 14px 28px 16px;
  border-radius: 22px;
  text-align: center;
  white-space: nowrap;
  background: rgba(8, 16, 34, 0.94);
  border: 1.5px solid var(--co, #F43F5E);
  box-shadow: 0 0 40px color-mix(in srgb, var(--co, #F43F5E) 40%, transparent), 0 18px 40px rgba(0, 0, 0, 0.5);
}
.ttm-callout b {
  display: block;
  font-family: var(--wall-font-head);
  font-weight: 800;
  font-size: 34px;
  line-height: 1.1;
  color: var(--co, #F43F5E);
}
.ttm-callout span {
  display: block;
  margin-top: 6px;
  font-family: var(--wall-font-body);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.25;
  color: var(--wall-ink);
}

/* how-to card */
.ttm-howto {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1280px;
  margin-left: -640px;
  box-sizing: border-box;
  padding: 42px 64px 44px;
  border-radius: 36px;
  text-align: center;
  background: linear-gradient(180deg, rgba(14, 28, 58, 0.97), rgba(7, 15, 33, 0.97));
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 0 6px rgba(6, 15, 31, 0.55), 0 0 90px rgba(79, 124, 247, 0.3), 0 40px 90px rgba(0, 0, 0, 0.55);
}
.ttm-howto .wall-kicker { justify-content: center; }
.ttm-howto .wall-kicker::after { content: ''; width: 34px; height: 2px; background: currentColor; box-shadow: 0 0 12px currentColor; }
.ttm-howto-title { font-size: 78px; margin-top: 14px; padding-bottom: 4px; }
.ttm-howto-row { display: flex; justify-content: center; gap: 52px; margin-top: 30px; }
.ttm-howto-group { padding: 16px 22px 18px; border-radius: 26px; border: 1.5px solid; }
.ttm-howto-group.is-yes { border-color: rgba(52, 211, 153, 0.55); background: rgba(52, 211, 153, 0.07); }
.ttm-howto-group.is-no { border-color: rgba(244, 63, 94, 0.5); background: rgba(244, 63, 94, 0.06); }
.ttm-howto-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--wall-font-head);
  font-weight: 700;
  font-size: 28px;
}
.ttm-howto-label svg { width: 28px; height: 28px; }
.ttm-howto-group.is-yes .ttm-howto-label { color: #6EE7B7; }
.ttm-howto-group.is-no .ttm-howto-label { color: #FDA4AF; }
.ttm-howto-pics { display: flex; gap: 14px; margin-top: 14px; }
.ttm-howto-pic img { display: block; width: 120px; height: 120px; border-radius: 16px; }
.ttm-howto-pic span {
  display: block;
  margin-top: 8px;
  font-family: var(--wall-font-body);
  font-weight: 500;
  font-size: 19px;
  color: var(--wall-ink-dim);
}
.ttm-howto-foot {
  margin-top: 28px;
  font-family: var(--wall-font-body);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.35;
  color: var(--wall-ink);
}
.ttm-howto-foot b { font-weight: 700; color: #7DD3FC; }
.ttm-conf {
  margin-inline-start: 14px;
  font-family: var(--wall-font-body);
  font-weight: 600;
  font-size: 24px;
  color: var(--wall-ink-dim);
}

/* feedback pills on cards */
.ttm-chip {
  position: absolute;
  left: 0;
  top: 0;
  padding: 7px 18px 9px;
  border-radius: 999px;
  font-family: var(--wall-font-head);
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}
.ttm-chip.is-good { color: #052E22; background: #34D399; box-shadow: 0 0 26px rgba(52, 211, 153, 0.6), 0 8px 20px rgba(0, 0, 0, 0.45); }
.ttm-chip.is-bad { color: #fff; background: #F43F5E; box-shadow: 0 0 26px rgba(244, 63, 94, 0.6), 0 8px 20px rgba(0, 0, 0, 0.45); }
.ttm-chip.is-not { color: #E2E8F0; background: #334155; border: 1px solid rgba(203, 213, 225, 0.4); }

/* results banner: one error per line */
.wall-banner-sub { white-space: pre-line; }
