/* =========================================================
   TOWN TYCOON — PHILANTHROPIST EDITION
   Executive Terminal Theme
   ========================================================= */

:root {
  /* --- Farbpalette --- */
  --bg-base:        #050505;
  --bg-panel:       rgba(255, 255, 255, 0.035);
  --bg-panel-hover: rgba(255, 255, 255, 0.055);
  --border-subtle:  rgba(255, 255, 255, 0.08);
  --border-strong:  rgba(212, 175, 55, 0.35);

  --gold:           #d4af37;
  --gold-soft:      rgba(212, 175, 55, 0.16);
  --gold-glow:      rgba(212, 175, 55, 0.45);

  --text-primary:   #f2f0ea;
  --text-secondary: #a8a59c;
  --text-faint:     #6b6862;

  --green:          #4caf7d;
  --green-soft:     rgba(76, 175, 125, 0.14);
  --red:            #c75c5c;
  --red-soft:       rgba(199, 92, 92, 0.14);
  --blue:           #5b9bd5;

  /* --- Typografie --- */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* --- Layout --- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --sidebar-width: 300px;
}

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

html, body {
  height: 100%;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    radial-gradient(circle at 15% 0%, rgba(212, 175, 55, 0.05), transparent 45%),
    radial-gradient(circle at 85% 100%, rgba(212, 175, 55, 0.03), transparent 50%);
  background-attachment: fixed;
}

::selection { background: var(--gold-soft); color: var(--gold); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(212,175,55,0.3); }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
button:focus-visible,
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ========================================================= */
/* APP LAYOUT                                                 */
/* ========================================================= */

.app {
  display: flex;
  min-height: 100vh;
}

/* ========================================================= */
/* SIDEBAR                                                    */
/* ========================================================= */

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px 22px;
  background: rgba(10, 10, 10, 0.6);
  border-right: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--gold-soft);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.brand__subtitle {
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* --- Kapital-Panel --- */

.capital-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}

.capital-panel__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-faint);
}

.capital-panel__value {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.3px;
}

.capital-panel__delta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
}

.capital-panel__delta--negative { color: var(--red); }

/* --- Sidebar-Sections --- */

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-faint);
}

/* --- Wealth Meter --- */

.wealth-meter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wealth-meter__track {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
}

.wealth-meter__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #f0d480);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.wealth-meter__value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  min-width: 32px;
  text-align: right;
}

/* --- Project List / Buttons --- */

.project-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
  text-align: left;
}

.project-btn:hover:not(:disabled) {
  background: var(--bg-panel-hover);
  border-color: var(--border-strong);
}

.project-btn:active:not(:disabled) { transform: scale(0.98); }

.project-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.project-btn__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.project-btn__name {
  font-size: 13px;
  font-weight: 600;
}

.project-btn__cost {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--gold);
}

.project-btn__icon {
  font-size: 18px;
  flex-shrink: 0;
  opacity: 0.8;
}

/* --- Milestone Section (Fortschritt zur Stadtplanung) --- */

.sidebar-section--milestone {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
}

.milestone-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.milestone-meter {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.milestone-meter__track {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
}

.milestone-meter__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #f0d480);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.milestone-meter__value {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  text-align: right;
}

/* --- Automation Section (nach Meilenstein) --- */

.sidebar-section--automation {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(212,175,55,0.08), rgba(212,175,55,0.02));
  border: 1px solid var(--border-strong);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-faint);
}

.status-dot--online {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.automation-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ========================================================= */
/* MAIN AREA                                                  */
/* ========================================================= */

.main {
  flex: 1;
  padding: 32px 40px;
  min-width: 0;
}

.main-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 26px;
}

.main-header__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.main-header__count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.empty-state__hint {
  font-size: 12.5px;
  color: var(--text-faint);
}

/* ========================================================= */
/* BUSINESS CARD                                              */
/* ========================================================= */

.business-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.business-card[data-phase="profit"] {
  border-color: rgba(76, 175, 125, 0.3);
}

.business-card[data-phase="construction"] {
  border-color: rgba(91, 155, 213, 0.25);
}

.business-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.business-card__title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.business-card__name {
  font-size: 15.5px;
  font-weight: 600;
}

.business-card__type {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-faint);
}

.phase-badge {
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.phase-badge--construction {
  background: rgba(91, 155, 213, 0.14);
  color: var(--blue);
}

.phase-badge--management {
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold);
}

.phase-badge--profit {
  background: var(--green-soft);
  color: var(--green);
}

/* --- Construction Progress --- */

.construction-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.construction-progress__track {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}

.construction-progress__fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), #7ec0ed);
  transition: width 0.3s linear;
}

.construction-progress__label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-secondary);
}

/* --- Management Controls --- */

.management-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.control-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.control-row__label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
}

.control-row__value {
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.control-row input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
  outline: none;
}

.control-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold-glow);
  cursor: pointer;
}

.control-row input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  box-shadow: 0 0 6px var(--gold-glow);
  cursor: pointer;
}

.activate-btn {
  margin-top: 4px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--gold);
  color: #1a1402;
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  transition: filter 0.15s ease, transform 0.1s ease;
}

.activate-btn:hover { filter: brightness(1.08); }
.activate-btn:active { transform: scale(0.98); }

/* --- Profit Display --- */

.profit-display {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profit-display__row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.profit-display__row strong {
  font-family: var(--font-mono);
  color: var(--text-primary);
  font-weight: 500;
}

.profit-display__net {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.profit-display__net-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-faint);
}

.profit-display__net-value {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--green);
}

.profit-display__net-value--negative { color: var(--red); }

.reconfigure-btn {
  align-self: flex-start;
  font-size: 11.5px;
  color: var(--text-faint);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.reconfigure-btn:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

/* ========================================================= */
/* STAFF SECTION (Personalverwaltung)                         */
/* ========================================================= */

.staff-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.staff-section__header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-faint);
}

.staff-section__count {
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.staff-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.staff-list__empty {
  font-size: 12px;
  color: var(--red);
  opacity: 0.85;
  padding: 8px 0;
}

.staff-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
}

.staff-row__top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.staff-row__name {
  font-size: 12.5px;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-row__level {
  font-size: 10.5px;
  color: var(--text-faint);
  background: rgba(255,255,255,0.06);
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.staff-fire-btn {
  font-size: 13px;
  color: var(--text-faint);
  padding: 2px 4px;
  line-height: 1;
  transition: color 0.15s ease;
}

.staff-fire-btn:hover { color: var(--red); }

.staff-row__mood {
  display: flex;
  align-items: center;
  gap: 8px;
}

.staff-row__mood-track {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.staff-row__mood-fill {
  display: block;
  height: 100%;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.staff-mood--good .staff-row__mood-fill { background: var(--green); }
.staff-mood--warning .staff-row__mood-fill { background: var(--gold); }
.staff-mood--critical .staff-row__mood-fill {
  background: var(--red);
  animation: mood-critical-pulse 1.4s ease-in-out infinite;
}

@keyframes mood-critical-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.staff-row__mood-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-faint);
  min-width: 30px;
  text-align: right;
}

.staff-row__wage {
  display: flex;
  align-items: center;
  gap: 8px;
}

.staff-wage-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
  outline: none;
}

.staff-wage-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 5px var(--gold-glow);
  cursor: pointer;
}

.staff-wage-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  cursor: pointer;
}

.staff-row__wage-value,
.staff-row__wage-static {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  min-width: 48px;
  text-align: right;
}

/* --- Hire Row --- */

.hire-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hire-row__label {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.hire-row__buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.hire-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  border: 1px solid var(--border-strong);
  transition: filter 0.15s ease, transform 0.1s ease;
}

.hire-btn:hover:not(:disabled) { filter: brightness(1.15); }
.hire-btn:active:not(:disabled) { transform: scale(0.97); }

.hire-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.hire-btn__level {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
}

.hire-btn__cost {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-secondary);
}

/* ========================================================= */
/* SUPPLY SECTION (Rohstoffe / Lager / Lieferanten)            */
/* ========================================================= */

.supply-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.supply-section__header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-faint);
}

.supply-section__count {
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.stock-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
}

.stock-bar__fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.stock-bar--good .stock-bar__fill { background: var(--green); }
.stock-bar--warning .stock-bar__fill { background: var(--gold); }
.stock-bar--critical .stock-bar__fill {
  background: var(--red);
  animation: mood-critical-pulse 1.4s ease-in-out infinite;
}

.supplier-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.supplier-row__label {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.supplier-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.supplier-btn {
  padding: 7px 4px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  font-size: 10.5px;
  color: var(--text-secondary);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.supplier-btn:hover {
  border-color: var(--border-strong);
}

.supplier-btn--active {
  background: var(--gold-soft);
  border-color: var(--border-strong);
  color: var(--gold);
  font-weight: 600;
}

.order-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-btn {
  flex: 1;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.order-btn:hover:not(:disabled) {
  border-color: var(--border-strong);
  background: rgba(255,255,255,0.08);
}

.order-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.supply-order-status {
  font-size: 11px;
  color: var(--text-faint);
  white-space: nowrap;
}

.stock-out-warning {
  font-size: 11.5px;
  color: var(--red);
  background: var(--red-soft);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}

/* ========================================================= */
/* AUTOMATION TOGGLE                                          */
/* ========================================================= */

.auto-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  border: 1px solid var(--border-strong);
  font-size: 12px;
  color: var(--gold);
  cursor: pointer;
}

.auto-toggle--small {
  padding: 6px 10px;
  font-size: 11px;
  background: rgba(255,255,255,0.03);
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}

.auto-toggle input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--gold);
  cursor: pointer;
}

/* ========================================================= */
/* TOASTS                                                     */
/* ========================================================= */

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1100;
  max-width: 320px;
}

.toast {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(15, 15, 15, 0.92);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  font-size: 12.5px;
  color: var(--text-primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: toast-in 0.25s ease;
}

.toast--warning {
  border-color: rgba(199, 92, 92, 0.4);
}

.toast--leaving {
  animation: toast-out 0.4s ease forwards;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateX(20px); }
}

/* ========================================================= */
/* CITY PLANNING UNLOCK OVERLAY                               */
/* ========================================================= */

.city-planning-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 2, 2, 0.88);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  animation: overlay-fade 2.6s ease forwards;
}

@keyframes overlay-fade {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

.city-planning-overlay__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.city-planning-overlay__ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  border-top-color: var(--gold);
  animation: ring-spin 1.1s linear infinite;
  box-shadow: 0 0 30px var(--gold-glow);
}

@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

.city-planning-overlay__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-faint);
}

.city-planning-overlay__status {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gold);
  text-shadow: 0 0 20px var(--gold-glow);
  opacity: 0;
  animation: status-reveal 0.6s ease forwards 0.6s;
}

@keyframes status-reveal {
  to { opacity: 1; }
}

/* ========================================================= */
/* RESPONSIVE                                                 */
/* ========================================================= */

@media (max-width: 900px) {
  .app { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .main { padding: 24px 20px; }
}

/* ========================================================= */
/* REDUCED MOTION                                             */
/* ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
