/* ============================================================
   TIGEREXCH LIVE — tool styles (scoped to /live/)
   Monochrome + tiger-orange. Sharp edges.
   ============================================================ */

.tools-section { background: var(--bg-section); }

.tool-card {
  background: #fff;
  box-shadow: var(--shadow-md);
  border-top: 6px solid var(--primary);
  padding: 40px 36px;
  margin-bottom: 40px;
}
.tool-card.accent { border-top-color: var(--accent-orange); }
.tool-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 8px; }
.tool-num {
  font-family: var(--ff-display); font-size: 40px; line-height: .85;
  background: var(--primary); color: #fff; width: 62px; height: 62px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tool-card.accent .tool-num { background: var(--accent-orange); }
.tool-head h3 { font-size: clamp(24px, 3.2vw, 34px); }
.tool-head .th-sub { color: var(--accent-orange); font-weight: 600; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 4px; }
.tool-desc { color: var(--text-secondary); font-weight: 300; margin: 6px 0 28px; max-width: 720px; }
.tool-demo-tag { font-size: 12px; color: var(--text-muted); margin-top: 18px; font-style: italic; }

/* ---------- TOOL 1: SCRATCH ---------- */
.scratch-layout { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center; }
.scratch-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.scratch-card {
  position: relative; width: 340px; max-width: 84vw; height: 200px;
  background: #fff; overflow: hidden; box-shadow: inset 0 0 0 3px var(--primary);
  user-select: none; touch-action: none;
}
.scratch-prize {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: repeating-linear-gradient(-45deg, #fff 0 14px, #faf5ef 14px 28px);
  text-align: center; padding: 12px;
}
.scratch-prize .sp-emoji { font-size: 46px; line-height: 1; }
.scratch-prize .sp-title { font-family: var(--ff-display); font-size: 30px; color: var(--primary); letter-spacing: 1px; }
.scratch-prize .sp-sub { font-size: 13px; color: var(--accent-orange); font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.scratch-canvas {
  position: absolute; inset: 0; z-index: 2; cursor: grab; transition: opacity .5s ease;
}
.scratch-canvas:active { cursor: grabbing; }
.scratch-canvas.gone { opacity: 0; pointer-events: none; }
.scratch-hint { font-size: 13px; color: var(--text-secondary); text-align: center; max-width: 340px; min-height: 20px; }
.scratch-side h4 { font-size: 20px; margin-bottom: 10px; }
.scratch-side p { color: var(--text-secondary); font-weight: 300; font-size: 15px; margin-bottom: 14px; }
.scratch-side ul.dash li { position: relative; padding-left: 24px; margin-bottom: 8px; color: var(--text-secondary); font-weight: 300; font-size: 14.5px; }
.scratch-side ul.dash li::before { content: ""; position: absolute; left: 0; top: 10px; width: 12px; height: 3px; background: var(--accent-orange); }

/* ---------- TOOL 2: MARGIN CALCULATOR ---------- */
.calc-layout { display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: start; }
.calc-inputs { background: var(--bg-dark); padding: 28px; }
.calc-inputs .field label { color: #fff; }
.calc-inputs .field input {
  background: #141414; border: 2px solid #2a2a2a; color: #fff;
}
.calc-inputs .field input:focus { border-color: var(--accent-orange); }
.calc-inputs .field .hint { color: var(--text-muted); }
.calc-out { min-height: 200px; }
.calc-empty, .calc-tile { }
.calc-empty {
  background: var(--bg-section); padding: 40px 24px; text-align: center; color: var(--text-secondary);
  border-left: 4px solid var(--accent-orange); font-weight: 300;
}
.calc-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--border); }
.calc-tile { background: #fff; padding: 18px 16px; }
.calc-tile .ct-label { font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: var(--text-muted); line-height: 1.3; }
.calc-tile .ct-val { font-family: var(--ff-display); font-size: 28px; margin-top: 6px; color: var(--primary); }
.calc-rating {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--primary); color: #fff; padding: 18px 22px; margin-top: 20px;
}
.calc-rating .cr-label { font-family: var(--ff-display); font-size: 20px; letter-spacing: 1px; }
.calc-rating .cr-tigers { font-size: 26px; letter-spacing: 3px; }
.calc-rating .cr-tigers .dim { opacity: .25; filter: grayscale(1); }
.calc-verdict { margin-top: 16px; padding: 18px 20px; font-weight: 400; line-height: 1.6; border-left: 5px solid var(--accent-orange); background: var(--bg-section); }
.calc-verdict.good { border-left-color: #159c4a; }
.calc-verdict.ok { border-left-color: var(--accent-gold); }
.calc-verdict.warn { border-left-color: #c0392b; }

/* ---------- TOOL 3: TIMELINE BUILDER ---------- */
.tl-controls { display: flex; flex-wrap: wrap; gap: 26px; margin-bottom: 26px; align-items: flex-end; }
.tl-group .tlg-label { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-bottom: 10px; display: block; }
.tl-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-btn {
  border: 2px solid var(--primary); background: #fff; color: var(--primary);
  padding: 10px 16px; font-weight: 600; font-size: 13px; letter-spacing: .5px;
  display: inline-flex; align-items: center; gap: 7px; transition: all .15s ease;
}
.tl-btn:hover { background: var(--bg-section); }
.tl-btn.active { background: var(--accent-orange); border-color: var(--accent-orange); color: #fff; }
.tl-btn .tlb-emoji { font-size: 16px; }

.tl-stage { margin: 30px 0 10px; }
.tl-markers { position: relative; height: 60px; margin-bottom: 4px; }
.tl-marker {
  position: absolute; bottom: 0; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; cursor: pointer; background: none;
}
.tl-marker .tm-emoji {
  font-size: 24px; background: #fff; border: 2px solid var(--primary); width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
  transition: transform .12s ease;
}
.tl-marker:hover .tm-emoji { transform: scale(1.14); border-color: var(--accent-orange); }
.tl-marker .tm-stem { width: 2px; height: 12px; background: var(--primary); }

.tl-track {
  display: flex; height: 76px; cursor: crosshair; border: 3px solid var(--primary);
  overflow: hidden; position: relative; background: var(--bg-dark);
}
.tl-phase {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-right: 2px dashed rgba(255,255,255,.25); color: #fff; padding: 6px; overflow: hidden; position: relative;
}
.tl-phase:last-child { border-right: 0; }
.tl-phase.ph0 { background: #0a0a0a; }
.tl-phase.ph1 { background: #1a1a1a; }
.tl-phase.ph2 { background: var(--accent-orange); }
.tl-phase .tp-name { font-family: var(--ff-display); font-size: clamp(12px, 2vw, 18px); letter-spacing: .5px; text-align: center; line-height: 1; }
.tl-phase .tp-range { font-size: 11px; opacity: .8; margin-top: 4px; }
.tl-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); margin-top: 8px; letter-spacing: .5px; }
.tl-hint { font-size: 13px; color: var(--text-secondary); margin-top: 6px; }

.tl-summary { margin-top: 26px; background: var(--bg-section); padding: 4px; min-height: 80px; }
.tls-empty { padding: 30px 22px; text-align: center; color: var(--text-secondary); font-weight: 300; }
.tls-head { display: flex; justify-content: space-between; align-items: center; background: var(--primary); color: #fff; padding: 14px 18px; font-family: var(--ff-display); font-size: 18px; letter-spacing: 1px; }
.tls-head span { font-family: var(--ff-body); font-size: 12px; background: var(--accent-orange); padding: 4px 10px; letter-spacing: .5px; }
.tls-list { padding: 12px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tls-list li { display: flex; align-items: center; gap: 12px; background: #fff; padding: 12px 14px; box-shadow: var(--shadow-sm); }
.tls-list .tsl-emoji { font-size: 22px; }
.tls-list .tsl-txt b { display: block; font-size: 14px; }
.tls-list .tsl-txt small { color: var(--text-muted); font-size: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .scratch-layout, .calc-layout { grid-template-columns: 1fr; }
  .calc-tiles { grid-template-columns: repeat(2, 1fr); }
  .tls-list { grid-template-columns: 1fr; }
  .tool-card { padding: 30px 22px; }
}
@media (max-width: 480px) {
  .calc-tiles { grid-template-columns: 1fr; }
  .tl-phase .tp-range { display: none; }
}
