/* ══ SIMULATOR — light site theme ══ */
.simulator {
  background: #f3f3f3;
  padding: 56px 0 72px;
  position: relative;
  overflow: hidden;
}

.simulator .container {
  min-width: 0;
}

.sim-header {
  text-align: center;
  margin-bottom: 32px;
}

.sim-header__sub {
  color: rgba(5, 5, 5, 0.62);
  font-size: 0.92rem;
  margin-top: 8px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.sim-layout {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr) minmax(0, 220px);
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.sim-panel,
.sim-goals {
  background: #fff;
  border: 1px solid rgba(108, 71, 255, 0.14);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.sim-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5a6482;
  font-weight: 700;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}

.sim-input {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #dde3ec;
  border-radius: 10px;
  color: #050505;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 12px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  min-width: 0;
}

.sim-input:focus {
  border-color: #6c47ff;
  box-shadow: 0 0 0 3px rgba(108, 71, 255, 0.12);
}

.sim-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #6c47ff var(--pct, 30%), #e2e8f0 var(--pct, 30%));
  outline: none;
  cursor: pointer;
}

.sim-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #6c47ff;
  box-shadow: 0 2px 10px rgba(108, 71, 255, 0.35);
  cursor: pointer;
}

.sim-slider-val {
  text-align: right;
  font-size: 0.82rem;
  color: #6c47ff;
  font-weight: 800;
  margin-top: 4px;
}

.sim-free-money {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: rgba(108, 71, 255, 0.06);
  border: 1px solid rgba(108, 71, 255, 0.16);
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 0;
}

.sim-free-money__label {
  font-size: 0.68rem;
  color: #5a6482;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.sim-free-money__val {
  font-size: 1rem;
  font-weight: 900;
  color: #6c47ff;
  flex-shrink: 0;
}

.sim-lever {
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.sim-lever__head {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5a6482;
  font-weight: 700;
}

.sim-lever__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sim-lever__row > span:first-child {
  font-size: 0.78rem;
  font-weight: 600;
  color: #0d1230;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sim-toggle {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
  display: inline-block;
  cursor: pointer;
  justify-self: end;
}

.sim-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }

.sim-toggle__track {
  position: absolute;
  inset: 0;
  border-radius: 26px;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  transition: background 0.3s, box-shadow 0.3s;
}

.sim-toggle input:checked ~ .sim-toggle__track {
  background: linear-gradient(135deg, #6c47ff, #8b5cf6);
  border-color: #6c47ff;
  box-shadow: 0 0 12px rgba(108, 71, 255, 0.25);
}

.sim-center {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.sim-stats-bar {
  display: flex;
  gap: 10px;
  min-width: 0;
}

.sim-stat {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.sim-stat__label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.sim-stat__val {
  font-size: clamp(1rem, 3.5vw, 1.5rem);
  font-weight: 900;
  color: #6c47ff;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sim-stat__val--gold { color: #b45309; }

.sim-chart-wrap {
  position: relative;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px;
  height: 280px;
  min-width: 0;
  overflow: hidden;
}

#simBg { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); border-radius: 12px; z-index: 0; pointer-events: none; }
#simChart { position: relative; z-index: 1; width: 100% !important; height: 248px !important; }

.sim-timeline {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  min-width: 0;
}

.sim-timeline__label {
  font-size: 0.62rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.sim-track {
  display: flex;
  position: relative;
  align-items: center;
  height: 52px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.sim-track::-webkit-scrollbar { display: none; }

.sim-track__line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 2px;
  background: #e2e8f0;
}

.sim-track__years {
  display: flex;
  justify-content: space-between;
  width: 100%;
  min-width: 480px;
  position: relative;
  z-index: 1;
}

.sim-track__year {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.sim-track__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid #94a3b8;
  transition: all 0.3s;
}

.sim-track__digit {
  font-size: 0.62rem;
  font-weight: 600;
  color: #64748b;
}

.sim-track__dot--on {
  background: #6c47ff;
  border-color: #6c47ff;
  box-shadow: 0 0 0 3px rgba(108, 71, 255, 0.2);
}

.sim-event-pin {
  position: absolute;
  top: -16px;
  transform: translateX(-50%);
  font-size: 1.2rem;
  z-index: 3;
  cursor: pointer;
}

.sim-event-pin--ok { filter: drop-shadow(0 0 6px rgba(108, 71, 255, 0.45)); }
.sim-event-pin--no { filter: grayscale(1) opacity(0.45); }

.sim-goals { gap: 12px; }

.sim-goals__title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5a6482;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.goal-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: grab;
  user-select: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  min-width: 0;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.goal-card__icon { font-size: 1.4rem; flex-shrink: 0; }
.goal-card__info { flex: 1; min-width: 0; }
.goal-card__name { font-size: 0.82rem; font-weight: 700; color: #050505; overflow-wrap: anywhere; word-break: break-word; }
.goal-card__cost { font-size: 0.7rem; margin-top: 2px; color: #64748b; overflow-wrap: anywhere; }
.goal-card__hint { font-size: 0.66rem; margin-top: 3px; line-height: 1.3; color: #64748b; overflow-wrap: anywhere; word-break: break-word; }
.goal-card__status { font-size: 0.68rem; font-weight: 800; white-space: nowrap; flex-shrink: 0; }
.goal-card__status--ok { color: #6c47ff; }
.goal-card__status--no { color: #dc2626; }
.goal-card--ok { border-color: rgba(108, 71, 255, 0.4); background: rgba(108, 71, 255, 0.06); }
.goal-card--no { border-color: rgba(220, 38, 38, 0.3); background: rgba(220, 38, 38, 0.04); }

.sim-cta {
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  background: rgba(108, 71, 255, 0.06);
  border: 1px solid rgba(108, 71, 255, 0.14);
}

.sim-cta__title {
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  color: #050505;
  overflow-wrap: anywhere;
}

.sim-cta__btn {
  font-weight: 800;
  font-size: 0.78rem;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  display: block;
  transition: opacity 0.2s, transform 0.2s;
  background: #6c47ff;
  color: #fff;
  overflow-wrap: anywhere;
}

.sim-cta__btn:hover { opacity: 0.9; transform: translateY(-1px); }

.sim-flash {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 50%, rgba(108, 71, 255, 0.18), transparent 70%);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

@media (max-width: 1100px) {
  .sim-layout { grid-template-columns: 1fr 1fr; }
  .sim-panel { grid-column: 1; }
  .sim-goals { grid-column: 2; }
  .sim-center { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .simulator { padding: 40px 0 48px; }
  .sim-layout { grid-template-columns: 1fr; gap: 12px; }
  .sim-panel, .sim-goals, .sim-center { grid-column: 1; }
  .sim-panel, .sim-goals { padding: 16px; gap: 14px; }
  .sim-chart-wrap { height: 220px; }
  #simChart { height: 188px !important; }
  .sim-stats-bar { flex-direction: column; gap: 8px; }
  .sim-stat { padding: 12px 14px; }
  .sim-track__years { min-width: 100%; }
  .goal-card { cursor: pointer; }
  .goal-card__status { white-space: normal; overflow-wrap: anywhere; max-width: 72px; text-align: right; }
}

@media (max-width: 480px) {
  .sim-chart-wrap { height: 190px; }
  #simChart { height: 158px !important; }
  .sim-header { margin-bottom: 20px; }
}
