﻿:root {
  --accent: #36c5f0;
  --bg: #0e1320;
  --panel: #1f2a44;
  --panel-2: #28365a;
  --text: #f5f8ff;
  --muted: #9fb0d0;
  --gold: #ffcf3f;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

body {
  display: flex;
  flex-direction: column;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
}

/* ---------- Horná lišta ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--panel);
  flex: 0 0 auto;
}
.brand { font-size: 22px; font-weight: 800; letter-spacing: .5px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.score {
  font-size: 22px; font-weight: 800; color: var(--gold);
  background: rgba(255,207,63,.12); padding: 4px 12px; border-radius: 999px;
  min-width: 64px; text-align: center;
}
.icon-btn {
  font-size: 24px; background: none; border: none; cursor: pointer;
  padding: 4px 6px; border-radius: 12px;
}
.icon-btn:active { background: rgba(255,255,255,.1); }

/* ---------- Scéna ---------- */
.stage {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px;
  min-height: 0;
}

.display {
  display: flex; align-items: center; gap: 14px;
  background: #060a14;
  border: 3px solid var(--panel-2);
  border-radius: 16px;
  padding: 8px 22px;
  box-shadow: inset 0 0 18px rgba(0,0,0,.7);
}
.arrow {
  font-size: 34px; color: var(--muted); width: 28px; text-align: center;
  font-family: monospace;
}
.arrow.up { color: #5ee08a; }
.arrow.down { color: #ff8a5e; }
.floor-num {
  font-size: 52px; font-weight: 900; color: #ff5a3c;
  font-family: "Courier New", monospace;
  text-shadow: 0 0 14px rgba(255,90,60,.8);
  min-width: 80px; text-align: center;
}

/* ---------- Šachta a kabína ---------- */
.hero-name {
  flex: 0 0 auto;
  background: var(--panel);
  color: var(--text);
  font-weight: 800;
  font-size: 15px;
  padding: 4px 16px;
  border-radius: 999px;
  border: 2px solid var(--accent);
}

/* Scéna = pozadie + budova */
.scene {
  position: relative;
  flex: 1 1 auto;
  width: min(92vw, 460px);
  min-height: 160px;
  max-height: 54vh;
  overflow: hidden;
  border-radius: 16px;
  border: 3px solid var(--panel-2);
}

/* Pozadie za budovou */
.sky-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, #5ab9f0 0%, #9fd8f7 55%, #cfeeff 72%);
  transform: translateY(var(--sky-shift, 0px));
  transition: transform 560ms linear;
}
.sky-bg .sun2 { position: absolute; top: 6%; right: 8%; font-size: 36px; }
.sky-bg .cloud2 { position: absolute; font-size: 30px; opacity: .92; }
.sky-bg .cloud2.a { top: 16%; left: -25%; animation: drift 22s linear infinite; }
.sky-bg .cloud2.b { top: 36%; left: -50%; font-size: 40px; animation: drift 32s linear infinite; }
/* mesto v diaľke */
.skyline {
  position: absolute; left: 0; right: 0; bottom: 16%;
  height: 26%;
  background:
    linear-gradient(90deg, transparent 0 4%, #7d8aa8 4% 12%, transparent 12% 18%,
      #6f7d9e 18% 24%, transparent 24% 33%, #8593b0 33% 43%, transparent 43% 50%,
      #6f7d9e 50% 58%, transparent 58% 66%, #7d8aa8 66% 76%, transparent 76% 84%,
      #6f7d9e 84% 94%, transparent 94%);
  opacity: .55;
}
/* tráva */
.ground2 {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 16%;
  background: linear-gradient(180deg, #6cc05a 0%, #4fa23f 100%);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.25);
}

/* Budova stojí na tráve, oblohou za sebou – NEHÝBE SA */
.building {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 13%;            /* stojí na tráve */
  width: min(78vw, 360px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #57608a 0%, #474f73 100%);
  border-radius: 10px 10px 4px 4px;
  box-shadow: 0 12px 28px rgba(0,0,0,.45);
  padding: 0 7px 7px;
}
/* strecha */
.roof {
  height: 18px;
  margin: 0 -7px 7px;
  background: #343c5e;
  border-radius: 10px 10px 0 0;
  position: relative;
}
.roof::after { /* anténa */
  content: "";
  position: absolute; top: -16px; left: 50%;
  width: 3px; height: 16px; background: #343c5e;
  box-shadow: 0 -4px 0 -1px #ff5a3c;
}

/* Výhľad do budovy – pevná výška (JS), kamera = posun .world */
.viewport {
  position: relative;
  width: 100%;
  height: 288px;            /* fallback; JS prepíše (3 × band) */
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(180deg, #11192c, #0c1322);
  box-shadow: inset 0 0 0 3px #2a3150;
}

/* Jeden posúvaný svet – všetko zarovnané, posúva sa spolu (kamera) */
.world {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  --band: 96px;
}

/* Zem (suterén zakreslený pod úrovňou terénu) */
.earth {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 0;
  background:
    repeating-linear-gradient(0deg,
      transparent, transparent calc(var(--band) - 2px),
      rgba(0,0,0,.25) calc(var(--band) - 2px), rgba(0,0,0,.25) var(--band)),
    repeating-linear-gradient(90deg,
      transparent, transparent 22px,
      rgba(255,255,255,.02) 22px, rgba(255,255,255,.02) 24px),
    linear-gradient(180deg, #3d2210 0%, #2a160a 55%, #160c04 100%);
}
.earth[hidden] { display: none; }
/* Zelená čiara = úroveň terénu (prízemie) */
.ground-line {
  position: absolute;
  left: -4px; right: -4px;
  height: 6px;
  z-index: 4;
  background: linear-gradient(90deg, #3a8a26, #5ab840 25%, #6dcc50 50%, #5ab840 75%, #3a8a26);
  box-shadow: 0 0 14px rgba(90,184,64,.75), 0 -2px 8px rgba(90,184,64,.4);
  border-radius: 3px;
}
.ground-line[hidden] { display: none; }

/* Šachta (ľavá časť) – tmavý priestor s vodiacimi lištami */
.shaft-col {
  position: absolute;
  left: 0; bottom: 0;
  width: 48%;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255,255,255,.05) 0 2px, transparent 2px) 14% 0/100% 100%,
    linear-gradient(90deg, rgba(255,255,255,.05) 0 2px, transparent 2px) 86% 0/100% 100%,
    repeating-linear-gradient(0deg,
      transparent, transparent calc(var(--band) - 2px),
      rgba(255,255,255,.06) calc(var(--band) - 2px), rgba(255,255,255,.06) var(--band)),
    linear-gradient(180deg, #0d1424, #0a1020);
  box-shadow: inset -4px 0 8px rgba(0,0,0,.5);
}

/* Chodby/odpočívadlá (pravá časť) */
.landings { position: absolute; inset: 0; z-index: 1; }
.landing {
  position: absolute;
  left: 0; right: 0;
  /* bottom a height nastaví JS */
}
/* Stena chodby */
.lz-wall {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  left: 50%;
  background: linear-gradient(180deg, #4c5680 0%, #3e4870 100%);
  border-left: 2px solid #2c3454;
}
/* Podlaha chodby */
.lz-floor {
  position: absolute;
  right: 0; left: 50%;
  bottom: 0; height: 9px;
  background: #2a3154;
  border-top: 2px solid #1c2444;
  z-index: 1;
}
/* Okno na stene chodby (vpravo, oddelené od panelu pri dverách) */
.window {
  position: absolute;
  right: 7%;
  width: 26%;
  top: 24%; height: 40%;
  background: #ffe07a;
  border: 2px solid #2a2f47;
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(255,210,90,.5);
  background-image:
    linear-gradient(#2a2f47, #2a2f47),
    linear-gradient(#2a2f47, #2a2f47);
  background-size: 100% 2px, 2px 100%;
  background-position: center, center;
  background-repeat: no-repeat;
  z-index: 1;
}
/* Číslo poschodia – svetelný štítok pri dverách (hore vľavo na stene) */
.lz-plate {
  position: absolute;
  left: 52%; top: 26%;
  transform: translateY(-50%);
  min-width: 22px;
  padding: 2px 6px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  color: var(--muted);
  background: #0e1626;
  border: 1px solid #243056;
  border-radius: 6px;
  z-index: 2;
  transition: color .2s, background .2s, box-shadow .2s;
}
.landing.active .lz-plate {
  color: #06121c;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
/* Podzemné chodby = zemina */
.landing.below .lz-wall {
  background: linear-gradient(180deg, #4a3220 0%, #392414 100%);
  border-left-color: #251608;
}
.landing.below .lz-floor { background: #2a1a0e; border-top-color: #1a0f06; }
.landing.below .window {
  background: #6b5230; box-shadow: none;
  filter: brightness(.7);
}

/* Privolávací panel ▲ / ▼ na stene chodby pri dverách (pod číslom poschodia) */
.call-panel {
  position: absolute;
  left: 52%; top: 62%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  background: #0e1420;
  border: 1px solid #1e2840;
  border-radius: 3px;
  padding: 2px;
  z-index: 2;
}
.call-btn {
  width: 16px; height: 14px;
  padding: 0;
  font-size: 8px;
  line-height: 1;
  background: #141e2c;
  color: #38506a;
  border: 1px solid #1e2c40;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, color .12s, box-shadow .12s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.call-btn:active { background: #1a3040; transform: scale(.9); }
.call-btn.lit {
  background: rgba(54,197,240,.15);
  color: var(--accent);
  border-color: rgba(54,197,240,.45);
  box-shadow: 0 0 5px rgba(54,197,240,.35);
}

/* Kabína – pohybuje sa zvisle (výška a bottom nastavené JS-om v px) */
.cabin {
  position: absolute;
  left: 6%; width: 38%;
  height: 79px;   /* fallback; JS prepíše */
  bottom: 0;
  z-index: 2;
  background: linear-gradient(180deg, #3a4a72 0%, #2b3a5e 100%);
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,.55);
  overflow: hidden;
}
.cabin.arrived { animation: bounce .4s ease; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  40%      { transform: translateY(4px); }
}
/* Zadná stena + podlaha kabíny */
.car-back {
  position: absolute; inset: 6px 0 0 0;
  background: linear-gradient(180deg, #4a5a86 0%, #3a4a72 70%, #34436a 100%);
  z-index: 0;
}
.car-floor {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 11%;
  background: #26314f;
  border-top: 2px solid #1b2440;
  z-index: 1;
}
/* Svetelná lišta */
.cabin-light {
  position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: var(--accent);
  opacity: .9;
  z-index: 3;
  transition: opacity .2s;
}
.cabin-light.dim { opacity: .25; }

/* Mini ovládací panel na stene kabíny */
.car-panel {
  position: absolute;
  right: 5px; top: 12px;
  width: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 3px 2px;
  background: #0c1322;
  border: 1px solid #243056;
  border-radius: 4px;
  z-index: 2;
}
.car-panel-screen {
  font-size: 8px;
  font-weight: 900;
  font-family: "Courier New", monospace;
  color: #ff7a4c;
  text-shadow: 0 0 4px rgba(255,90,60,.8);
  line-height: 1;
}
.car-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.car-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  transition: background .15s, box-shadow .15s;
}
.car-dot.lit { background: var(--accent); box-shadow: 0 0 4px var(--accent); }
.car-dot.cur { background: #fff; box-shadow: 0 0 4px #fff; }

/* Ventilátor v kabíne – na zadnej stene, dvere ho prekryjú keď sú zavreté */
.car-fan {
  position: absolute;
  top: 11px; left: 6px;
  width: 26px; height: 26px;
  z-index: 1;
}
.car-fan svg { width: 100%; height: 100%; display: block; }
.car-fan .fan-blades { transform-box: fill-box; transform-origin: 50% 50%; }
.cabin.fan-on .car-fan .fan-blades { animation: fanspin .5s linear infinite; }
@keyframes fanspin { to { transform: rotate(360deg); } }
/* Pri sklenenom výťahu ventilátor mierne presvitá */
.type-freight .car-fan .fan-blades { fill: #c9a14a; }

/* Dvere kabíny */
.door {
  position: absolute;
  top: 6px; bottom: 0;
  width: 50%;
  z-index: 4;
  border: 1px solid rgba(0,0,0,.25);
  transition: transform .9s ease;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.4) 0 2px, transparent 2px),
    linear-gradient(90deg, #cdd6ea, #aeb9d6);
}
.door-left  { left: 0;  border-right: 2px solid #8c97b5; }
.door-right { right: 0; }
.cabin.open .door-left  { transform: translateX(-102%); }
.cabin.open .door-right { transform: translateX(102%); }

/* Alex – sourozenec kabíny, môže chodiť dnu/von (--ax = vodorovná poloha) */
.alex {
  position: absolute;
  bottom: 0;
  left: var(--ax, 27%);
  transform: translateX(-50%);
  height: 72px;     /* fallback; ladí s kabínou */
  width: auto;
  z-index: 5;
  display: block;
  transition: left .9s ease, opacity .35s ease;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.4));
}
.alex .shirt { fill: var(--accent); }
.alex .arm-r { transform-box: fill-box; transform-origin: 50% 4%; }
.alex.waving .arm-r { animation: wave .45s ease-in-out 0s 3; }
@keyframes wave {
  0%, 100% { transform: rotate(-128deg); }
  50%      { transform: rotate(-152deg); }
}
/* Chôdza – nohy sa striedavo hýbu */
.alex .leg { transform-box: fill-box; transform-origin: 50% 0; }
.alex.walking .leg-l { animation: stepA .4s linear infinite; }
.alex.walking .leg-r { animation: stepB .4s linear infinite; }
@keyframes stepA { 0%,100% { transform: rotate(14deg); } 50% { transform: rotate(-14deg); } }
@keyframes stepB { 0%,100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }

/* ---- Typy výťahov ---- */
/* Panoramatický (sklenený) – priehľadná kabína */
.type-glass .cabin { border: 2px solid rgba(255,255,255,.55); background: rgba(120,160,210,.18); }
.type-glass .car-back { background: linear-gradient(180deg, rgba(150,200,240,.25), rgba(110,160,210,.2)); }
.type-glass .car-floor { background: rgba(40,60,90,.55); }
.type-glass .door {
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.5) 0 2px, transparent 2px),
    linear-gradient(120deg, rgba(220,240,255,.55), rgba(180,215,245,.45));
}
/* Nákladný – industriálny interiér */
.type-freight .cabin { border-radius: 3px; }
.type-freight .car-back {
  background: repeating-linear-gradient(45deg,
    #3c3a28, #3c3a28 14px, #2b2a1c 14px, #2b2a1c 28px);
}
.type-freight .car-floor { background: #1f1d12; }
.type-freight .cabin-light { background: var(--gold); }
.type-freight .door {
  background-image:
    linear-gradient(90deg, rgba(0,0,0,.25) 0 2px, transparent 2px),
    linear-gradient(90deg, #9aa0a8, #7d828a);
}

/* ---------- Pruh úlohy ---------- */
.task-bar {
  background: var(--accent);
  color: #06121c;
  font-weight: 800;
  font-size: 20px;
  padding: 10px 20px;
  border-radius: 999px;
  text-align: center;
  animation: pop .3s ease;
}
.task-bar.done { background: var(--gold); }
@keyframes pop { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Backdrop pre sheet s poschodiami ---------- */
.floor-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.52);
  z-index: 19;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.floor-backdrop.open { opacity: 1; pointer-events: all; }

/* ---------- Panel tlačidiel ---------- */
.panel {
  flex: 0 0 auto;
  background: var(--panel);
  border-top: 3px solid var(--panel-2);
  padding: 14px 14px calc(14px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 21;
}

/* Floor-select tlačidlo (aktuálne poschodie) – viditeľné len na mobile */
.ctrl-floor {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 14px;
  background: var(--accent);
  color: #06121c;
  padding: 8px 10px;
  cursor: pointer;
  min-width: 64px;
  gap: 1px;
  box-shadow: 0 3px 0 rgba(0,0,0,.4);
  transition: filter .1s;
}
.ctrl-floor-num {
  font-size: 22px; font-weight: 900;
  font-family: "Courier New", monospace;
  line-height: 1;
}
.ctrl-floor-sub { font-size: 10px; font-weight: 700; opacity: .75; }
.ctrl-floor:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.4); filter: brightness(.88); }

/* Poschodia – vždy viditeľné na desktop */
.floor-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 8px;
  max-height: 30vh;
  overflow-y: auto;
  /* Panel plate – tmavý hĺbkový efekt */
  background: rgba(0,0,0,.28);
  border-radius: 12px;
  padding: 10px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.4);
}

/* Na mobile: poschodia = floating bottom sheet */
@media (max-width: 768px) {
  .floor-backdrop { display: block; }
  .ctrl-floor { display: flex; }

  .floor-buttons {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 20;
    background: var(--panel);
    border-top: 3px solid var(--accent);
    border-radius: 20px 20px 0 0;
    padding: 20px 14px calc(100px + var(--safe-bottom));
    max-height: 65vh;
    overflow-y: auto;
    transform: translateY(110%);
    transition: transform .32s cubic-bezier(.32,1,.65,1);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
    gap: 10px;
  }
  .floor-buttons::before {
    content: '';
    display: block;
    width: 40px; height: 5px;
    background: rgba(255,255,255,.22);
    border-radius: 3px;
    margin: 0 auto 8px;
    grid-column: 1 / -1;
  }
  .floor-buttons.open { transform: translateY(0); }
}

/* ---------- Tlačidlá poschodí – realistický 3D dizajn ---------- */
.fbtn {
  position: relative;
  aspect-ratio: 1 / 1;
  border: none;
  border-radius: 50%;
  /* Kovový radial gradient – simuluje sférickú plochu */
  background:
    radial-gradient(circle at 36% 30%, rgba(255,255,255,.24) 0%, transparent 55%),
    var(--panel-2);
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 8px; /* posun čísla nadol – uvoľní priestor pre indikátor */
  box-shadow:
    0 5px 10px rgba(0,0,0,.55),
    inset 0 1px 2px rgba(255,255,255,.14),
    inset 0 -2px 4px rgba(0,0,0,.45);
  transition: transform .08s, box-shadow .08s, filter .08s;
}
/* Indikátorové svetielko nad číslom */
.fbtn::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.4);
  transition: background .18s, box-shadow .18s;
}
.fbtn:active {
  transform: translateY(2px) scale(.95);
  box-shadow: 0 1px 4px rgba(0,0,0,.65), inset 0 3px 6px rgba(0,0,0,.5);
}
.fbtn.lit {
  background:
    radial-gradient(circle at 36% 30%, rgba(255,255,255,.18) 0%, transparent 55%),
    rgba(30,60,90,.9);
  color: var(--accent);
  box-shadow:
    0 0 18px rgba(54,197,240,.22),
    0 5px 10px rgba(0,0,0,.5),
    inset 0 1px 2px rgba(255,255,255,.15);
}
.fbtn.lit::before {
  background: var(--accent);
  box-shadow: 0 0 7px var(--accent), 0 0 14px rgba(54,197,240,.45);
}
/* Aktuálne poschodie – biely outline */
.fbtn.cur {
  outline: 2px solid rgba(255,255,255,.38);
  outline-offset: 3px;
}
.fbtn.cur::before { background: rgba(255,255,255,.4); }
/* Cieľové poschodie v úlohovom móde */
.fbtn.target {
  outline: 3px dashed var(--gold);
  outline-offset: 3px;
}
.fbtn.target::before { background: var(--gold); box-shadow: 0 0 7px var(--gold); }

.control-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.ctrl {
  flex: 1 1 64px;
  border: none;
  border-top: 3px solid transparent;
  border-radius: 14px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  padding: 10px 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  box-shadow: 0 3px 0 rgba(0,0,0,.4);
}
.ctrl span { font-size: 13px; font-weight: 600; color: var(--muted); }
.ctrl:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.4); }
.ctrl.open   { border-top-color: #3db86b; }
.ctrl.close  { border-top-color: #e05a3a; }
.ctrl.walk   { border-top-color: var(--accent); }
.ctrl.bell   { border-top-color: var(--gold); }
.ctrl.fan    { border-top-color: #4bc0c8; }
.ctrl.sos    { border-top-color: #e0394b; }
.ctrl.open:active   { background: #2f7d4f; }
.ctrl.close:active  { background: #8c4a2f; }
.ctrl.walk:active   { background: #2f6a8c; }
.ctrl.bell:active   { background: #8c7a2f; }
.ctrl.fan:active    { background: #2f7d82; }
.ctrl.sos:active    { background: #8c2f3a; }
/* Aktívny (zapnutý) ventilátor – ikonka sa točí aj na tlačidle */
.ctrl.fan.on { border-top-color: #4bc0c8; background: #245a5e; }
.ctrl.fan .fan-ico { display: inline-block; font-size: 20px; color: var(--text); line-height: 1; }
.ctrl.fan.on .fan-ico { animation: fanspin .7s linear infinite; }
/* Tiesňové tlačidlo bliká počas zvonenia */
.ctrl.sos.ringing { animation: sosBlink .5s steps(1) infinite; }
@keyframes sosBlink {
  0%, 100% { background: var(--panel-2); }
  50%      { background: #c2293a; }
}
.ctrl:disabled { opacity: .45; filter: grayscale(.4); cursor: not-allowed; }

/* ---------- Modal nastavení ---------- */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 50;
  padding: 16px;
}
.modal[hidden] { display: none; }
.modal-card {
  width: min(440px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--panel);
  border-radius: 18px;
  padding: 20px;
}
.modal-card h2 { margin: 0 0 16px; }
.row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.row > span:first-child { flex: 1; font-size: 15px; }
.row input[type="range"] { flex: 1; accent-color: var(--accent); }
.row output { min-width: 28px; text-align: right; font-weight: 700; }
.row.toggle input { width: 26px; height: 26px; accent-color: var(--accent); }
select, input[type="color"] {
  background: var(--panel-2); color: var(--text);
  border: 1px solid rgba(255,255,255,.15); border-radius: 10px;
  padding: 8px; font-size: 15px;
}
.primary {
  width: 100%; margin-top: 18px;
  background: var(--accent); color: #06121c;
  border: none; border-radius: 14px;
  font-size: 18px; font-weight: 800; padding: 14px;
  cursor: pointer;
}
.primary:active { filter: brightness(.92); }

/* Upozornenie na chýbajúci hlas (v nastaveniach) */
.voice-warn {
  margin: 8px 0 0;
  padding: 10px 14px;
  background: rgba(255,160,0,.13);
  border: 1px solid rgba(255,160,0,.4);
  border-radius: 10px;
  font-size: 13px;
  color: #ffcf3f;
  line-height: 1.45;
}

/* Toast – krátke upozornenie cez celú stránku */
.voice-toast {
  position: fixed;
  bottom: calc(var(--safe-bottom) + 84px);
  left: 50%;
  transform: translateX(-50%);
  background: #2a1800;
  border: 1px solid rgba(255,160,0,.5);
  color: #ffcf3f;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 14px;
  z-index: 200;
  text-align: center;
  max-width: min(340px, 90vw);
  box-shadow: 0 4px 16px rgba(0,0,0,.45);
  animation: toast-in .3s ease;
}
.voice-toast[hidden] { display: none; }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Zvoniaci telefón – tiesňové volanie */
.phone-ring {
  position: fixed;
  left: 50%;
  bottom: calc(var(--safe-bottom) + 150px);
  transform: translateX(-50%);
  z-index: 210;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  text-align: center;
}
.phone-ring[hidden] { display: none; }
.phone-ring .phone-emoji {
  font-size: 60px;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.5));
  animation: phoneShake .18s ease-in-out infinite;
}
.phone-ring .phone-label {
  background: rgba(12, 18, 32, 0.96);
  border: 1px solid rgba(224,57,75,.6);
  color: #ffd0d4;
  border-radius: 12px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,.45);
}
@keyframes phoneShake {
  0%, 100% { transform: rotate(-13deg); }
  50%      { transform: rotate(13deg); }
}

/* ================================================================
   ODZNAKY  –  toast + grid v nastaveniach
   ================================================================ */
.badge-toast {
  position: fixed;
  top: 56px;
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  opacity: 0;
  background: rgba(12, 18, 32, 0.96);
  border: 1px solid rgba(54,197,240,.4);
  border-radius: 14px;
  padding: 10px 18px 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 200;
  transition: opacity .35s, transform .35s;
  pointer-events: none;
  box-shadow: 0 6px 24px rgba(0,0,0,.55);
}
.badge-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.badge-toast[hidden] { display: none; }
.badge-toast-icon { font-size: 28px; line-height: 1; }
.badge-toast-title { font-size: 10px; color: var(--accent); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.badge-toast-name  { font-size: 15px; color: #fff; font-weight: 700; margin-top: 1px; }

/* Mriežka odznakov v nastaveniach */
.badges-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;
}
.badge-chip {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  background: #0e1420;
  border: 2px solid #1e2840;
  opacity: .28;
  filter: grayscale(1);
  cursor: default;
  transition: opacity .3s, filter .3s, border-color .3s, box-shadow .3s;
}
.badge-chip.earned {
  opacity: 1;
  filter: none;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(54,197,240,.3);
}

/* ---------- Responzivita ---------- */
/* nízke obrazovky (väčšina telefónov na výšku) */
@media (max-height: 760px) {
  .stage { gap: 8px; padding: 8px; }
  .display { padding: 4px 16px; }
  .floor-num { font-size: 40px; min-width: 64px; }
  .arrow { font-size: 26px; }
  .hero-name { font-size: 13px; padding: 3px 12px; }
  .scene { max-height: 46vh; min-height: 140px; }
  .panel { padding: 10px 10px calc(10px + var(--safe-bottom)); gap: 9px; }
  /* floor-buttons je fixed na mobile, na desktop obmedzíme výšku */
  @media (min-width: 769px) {
    .floor-buttons { max-height: 22vh; gap: 8px; }
  }
}

/* úzke obrazovky */
@media (max-width: 400px) {
  .topbar { padding: 8px 12px; }
  .brand { font-size: 19px; }
  .fbtn { font-size: 20px; }
  .ctrl { font-size: 16px; padding: 9px 2px; }
  .ctrl span { font-size: 11px; }
  .ctrl-floor-num { font-size: 18px; }
}

/* veľmi nízke (telefón na šírku) */
@media (max-height: 480px) {
  .scene { max-height: 52vh; }
  .floor-buttons { max-height: 30vh; }
  .hero-name { display: none; }
}

/* ================================================================
   PARALLAX – hviezdy (generované JS-om)
   ================================================================ */
.star {
  position: absolute;
  color: #fff;
  pointer-events: none;
  animation: twinkle 2.2s ease-in-out infinite alternate;
}
.star:nth-child(odd)  { animation-delay: .6s; }
.star:nth-child(3n)   { animation-delay: 1.3s; }
@keyframes twinkle { from { opacity: .12; } to { opacity: .9; } }

/* ================================================================
   PANEL DIZAJNY  –  inšpirované reálnymi výťahmi
   ================================================================ */

/* ── MODERN / LED  (Schindler / KONE štýl) ─────────────────── */
[data-design="modern"].panel {
  background: #050508;
  border-top: 1px solid #1a2038;
}
[data-design="modern"] .floor-buttons {
  background: rgba(0,0,0,.55);
  border: 1px solid #1a2038;
}
[data-design="modern"] .fbtn {
  border-radius: 6px;
  background: linear-gradient(180deg, #0e1020 0%, #080c18 100%);
  color: var(--accent);
  border: 1px solid rgba(54,197,240,.18);
  font-family: "Courier New", monospace;
  font-size: 19px;
  box-shadow: 0 3px 0 #000, inset 0 1px 0 rgba(255,255,255,.04);
  padding-top: 6px;
}
[data-design="modern"] .fbtn::before {
  width: 4px; height: 4px;
  background: rgba(54,197,240,.25);
}
[data-design="modern"] .fbtn.lit {
  background: linear-gradient(180deg, #0c2030, #061828);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(54,197,240,.45), 0 3px 0 #000, inset 0 0 12px rgba(54,197,240,.08);
}
[data-design="modern"] .fbtn.lit::before {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent), 0 0 18px rgba(54,197,240,.5);
}
[data-design="modern"] .fbtn:active { box-shadow: 0 0 4px rgba(54,197,240,.3), inset 0 3px 6px rgba(0,0,0,.6); }
[data-design="modern"] .ctrl {
  background: linear-gradient(180deg, #0e1020, #080c18);
  border: 1px solid #1a2038;
  border-top: 3px solid transparent;
  border-radius: 6px;
  color: #6090b0;
}
[data-design="modern"] .ctrl span { color: #304050; }
[data-design="modern"] .ctrl.open   { border-top-color: #20aa50; }
[data-design="modern"] .ctrl.close  { border-top-color: #aa3020; }
[data-design="modern"] .ctrl.bell   { border-top-color: #aa9020; }
[data-design="modern"] .ctrl.open:active  { background: #081c10; }
[data-design="modern"] .ctrl.close:active { background: #180808; }
[data-design="modern"] .ctrl-floor {
  background: linear-gradient(180deg, #0c2030, #061828);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
}

/* ── RETRO  (1970s oceľ + mosadz) ─────────────────────── */
[data-design="retro"].panel {
  background: #2e1e0c;
  background-image:
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(0,0,0,.05) 3px, rgba(0,0,0,.05) 4px),
    repeating-linear-gradient(0deg,  transparent, transparent 8px, rgba(255,200,80,.02) 8px, rgba(255,200,80,.02) 9px);
  border-top: 4px solid #7a5828;
}
[data-design="retro"] .floor-buttons {
  background: rgba(0,0,0,.35);
  border-radius: 8px;
  border: 2px inset rgba(0,0,0,.4);
}
[data-design="retro"] .fbtn {
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,200,80,.25) 0%, transparent 55%),
    radial-gradient(circle at 60% 65%, rgba(0,0,0,.5) 0%, transparent 60%),
    #2a1a08;
  color: #f0c060;
  border: 2px solid #7a5020;
  font-family: Georgia, serif;
  font-size: 21px;
  box-shadow: 0 5px 0 #0e0804, inset 0 1px 2px rgba(255,200,80,.3), inset 0 -2px 4px rgba(0,0,0,.5);
}
[data-design="retro"] .fbtn::before { background: rgba(255,180,40,.25); }
[data-design="retro"] .fbtn.lit {
  background:
    radial-gradient(circle at 35% 30%, rgba(255,220,120,.4) 0%, transparent 55%),
    #c87818;
  color: #fff8e0;
  border-color: #f0a030;
  box-shadow: 0 0 22px rgba(220,140,30,.9), 0 5px 0 #0e0804, inset 0 1px 2px rgba(255,220,120,.4);
}
[data-design="retro"] .fbtn.lit::before { background: #ffe060; box-shadow: 0 0 8px #ffe060; }
[data-design="retro"] .fbtn.cur { outline-color: #f0a030; }
[data-design="retro"] .fbtn:active { box-shadow: 0 1px 0 #0e0804, inset 0 4px 8px rgba(0,0,0,.6); }
[data-design="retro"] .ctrl {
  background: radial-gradient(ellipse at 50% 25%, #2e1e0c, #1a0e06);
  color: #e0b060;
  border: 2px solid #6a4020;
  border-top: 4px solid transparent;
  box-shadow: 0 4px 0 #0e0804;
}
[data-design="retro"] .ctrl span { color: #9a7040; }
[data-design="retro"] .ctrl.open   { border-top-color: #3e8a28; }
[data-design="retro"] .ctrl.close  { border-top-color: #8a3a28; }
[data-design="retro"] .ctrl.bell   { border-top-color: #c08020; }
[data-design="retro"] .ctrl.open:active  { background: #142010; box-shadow: 0 1px 0 #0e0804; }
[data-design="retro"] .ctrl.close:active { background: #201010; box-shadow: 0 1px 0 #0e0804; }
[data-design="retro"] .ctrl-floor {
  background: radial-gradient(ellipse at 50% 25%, #d08020, #8a5010);
  color: #fff0d0;
  border: 2px solid #f0a030;
  box-shadow: 0 4px 0 #0e0804;
}

/* ── NEMOCNIČNÝ  (ISO 4190 prístupový dizajn) ─────────────── */
[data-design="hospital"].panel {
  background: #e8edf4;
  border-top: 3px solid #b8c8d8;
}
[data-design="hospital"] .floor-buttons {
  background: rgba(0,0,0,.06);
  border-radius: 10px;
  border: 1px solid #c0d0e0;
  box-shadow: inset 0 1px 4px rgba(0,0,0,.1);
}
[data-design="hospital"] .fbtn {
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fcff, #e8f0f8);
  color: #1a304e;
  border: 2px solid #a0b8d0;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 4px 0 #88a8c0, inset 0 1px 1px rgba(255,255,255,.9);
  padding-top: 10px;
}
[data-design="hospital"] .fbtn::before {
  background: rgba(0,80,180,.25);
  width: 6px; height: 6px;
}
[data-design="hospital"] .fbtn.lit {
  background: linear-gradient(180deg, #0066dd, #0044aa);
  color: #fff;
  border-color: #0033aa;
  box-shadow: 0 4px 0 #002288, inset 0 1px 1px rgba(255,255,255,.25);
}
[data-design="hospital"] .fbtn.lit::before { background: #80ccff; box-shadow: 0 0 8px #80ccff; }
[data-design="hospital"] .fbtn.cur { outline: 3px solid #0066dd; outline-offset: 3px; }
[data-design="hospital"] .fbtn:active { box-shadow: 0 1px 0 #88a8c0; }
[data-design="hospital"] .ctrl {
  background: linear-gradient(180deg, #f8fcff, #e8f0f8);
  color: #1a304e;
  border: 2px solid #a0b8d0;
  border-top: 4px solid transparent;
  box-shadow: 0 4px 0 #88a8c0;
}
[data-design="hospital"] .ctrl span { color: #5070a0; }
[data-design="hospital"] .ctrl.open   { border-top-color: #228844; }
[data-design="hospital"] .ctrl.close  { border-top-color: #cc2222; }
[data-design="hospital"] .ctrl.bell   { border-top-color: #cc8800; }
[data-design="hospital"] .ctrl.open:active  { background: #d0eedd; box-shadow: 0 1px 0 #88a8c0; }
[data-design="hospital"] .ctrl.close:active { background: #f8d8d4; box-shadow: 0 1px 0 #88a8c0; }
[data-design="hospital"] .ctrl-floor {
  background: linear-gradient(180deg, #0066dd, #0044aa);
  color: #fff;
  border: 2px solid #0033aa;
  box-shadow: 0 4px 0 #002288;
}
[data-design="hospital"] .ctrl-floor-num { color: #fff; }

/* ── LUXUSNÝ  (hexagonálne tlačidlá, zlato + čierna) ──────── */
[data-design="luxury"].panel {
  background: #090806;
  background-image:
    repeating-linear-gradient(
      60deg, transparent, transparent 18px,
      rgba(180,140,50,.035) 18px, rgba(180,140,50,.035) 19px);
  border-top: 2px solid #8a6828;
}
[data-design="luxury"] .floor-buttons {
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(160,120,40,.25);
  border-radius: 10px;
  /* Nepatrne väčší gap pre hexagóny */
  gap: 10px;
  padding: 12px;
  grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
}
/* Hexagonálne tlačidlá */
[data-design="luxury"] .fbtn {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border-radius: 0;
  background: linear-gradient(135deg, #2e2414, #1a1408);
  color: #d4a850;
  border: none;
  font-family: Georgia, serif;
  font-size: 19px;
  box-shadow: none;
  padding-top: 6px;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,.75));
}
[data-design="luxury"] .fbtn::before {
  top: 8px;
  width: 4px; height: 4px;
  background: rgba(200,160,60,.3);
}
[data-design="luxury"] .fbtn:active {
  transform: scale(.93);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.8));
}
[data-design="luxury"] .fbtn.lit {
  background: linear-gradient(135deg, #3a2c10, #261e08);
  color: #f4d870;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  filter: drop-shadow(0 0 8px rgba(210,160,40,.55)) drop-shadow(0 3px 5px rgba(0,0,0,.75));
}
[data-design="luxury"] .fbtn.lit::before { background: #d4a840; box-shadow: 0 0 8px #d4a840; }
[data-design="luxury"] .fbtn.cur {
  filter: drop-shadow(0 0 5px rgba(255,255,255,.3)) drop-shadow(0 3px 5px rgba(0,0,0,.75));
  outline: none;
}
[data-design="luxury"] .ctrl {
  background: linear-gradient(180deg, #1e1a0e, #12100a);
  color: #c8a050;
  border: 1px solid #5a4018;
  border-top: 3px solid transparent;
  border-radius: 8px;
  box-shadow: 0 3px 0 #040302;
}
[data-design="luxury"] .ctrl span { color: #7a5a28; }
[data-design="luxury"] .ctrl.open   { border-top-color: #4a9a6a; }
[data-design="luxury"] .ctrl.close  { border-top-color: #9a4a38; }
[data-design="luxury"] .ctrl.bell   { border-top-color: #c8a050; }
[data-design="luxury"] .ctrl.open:active   { background: #0c1c10; }
[data-design="luxury"] .ctrl.close:active  { background: #1c0c08; }
[data-design="luxury"] .ctrl-floor {
  background: linear-gradient(180deg, #2a200e, #1a1408);
  color: #f0d070;
  border: 1px solid #c8a050;
  box-shadow: 0 3px 0 #040302;
}

/* ================================================================
   PROSTREDIA
   ================================================================ */

/* ── NOČNÉ MESTO ─────────────────────────────────────── */
.sky-bg.env-night {
  background: linear-gradient(180deg, #03050e 0%, #08101e 50%, #12182e 72%);
}
.sky-bg.env-night .ground2 {
  background: linear-gradient(180deg, #0e1828 0%, #060e18 100%);
}
.sky-bg.env-night .skyline {
  background:
    linear-gradient(90deg, transparent 0 4%, #06080e 4% 12%, transparent 12% 18%,
      #04060c 18% 24%, transparent 24% 33%, #080c14 33% 43%, transparent 43% 50%,
      #06080e 50% 58%, transparent 58% 66%, #04060c 66% 76%, transparent 76% 84%,
      #06080e 84% 94%, transparent 94%);
  opacity: 1;
  filter: drop-shadow(0 -2px 6px rgba(255,200,80,.35));
}
.sky-bg.env-night .cloud2 { opacity: .06; }
.sky-bg.env-night .sun2   { top: 10%; right: 12%; font-size: 30px; }

/* ── HORY ─────────────────────────────────────── */
.sky-bg.env-mountains {
  background: linear-gradient(180deg, #3a88d0 0%, #6ab0e8 50%, #8cd0f0 72%);
}
.sky-bg.env-mountains .ground2 {
  background: linear-gradient(180deg, #4c9a30 0%, #3a7a22 100%);
  height: 22%;
}
.sky-bg.env-mountains .skyline {
  background:
    linear-gradient(90deg,
      transparent 0 0%, #3a6428 0% 14%, #30561e 14% 16%, transparent 16% 20%,
      #486e34 20% 36%, #3c5c2a 36% 38%, transparent 38% 44%,
      #548040 44% 62%, #466c34 62% 64%, transparent 64% 70%,
      #3a6428 70% 84%, #30561e 84% 86%, transparent 86%);
  opacity: 1;
  height: 34%;
  bottom: 20%;
  filter: none;
}
.sky-bg.env-mountains .cloud2.a { top: 10%; }
.sky-bg.env-mountains .cloud2.b { top: 25%; }

/* ── PÚŠŤ ─────────────────────────────────────── */
.sky-bg.env-desert {
  background: linear-gradient(180deg, #70b8e8 0%, #e8c868 65%, #d8a840 88%);
}
.sky-bg.env-desert .ground2 {
  background: linear-gradient(180deg, #d4a040 0%, #b88030 100%);
  height: 20%;
}
.sky-bg.env-desert .sun2   { font-size: 46px; top: 4%; filter: brightness(1.15); }
.sky-bg.env-desert .skyline {
  background:
    linear-gradient(90deg, transparent 0 3%, #c09040 3% 15%, transparent 15% 22%,
      #b08030 22% 38%, transparent 38% 46%, #c09040 46% 60%, transparent 60% 66%,
      #b08030 66% 80%, transparent 80%);
  opacity: .35;
  height: 12%;
  bottom: 18%;
}
.sky-bg.env-desert .cloud2 { opacity: .07; }

/* ================================================================
   TYPY BUDOV
   ================================================================ */

/* ── BYTOVÝ DOM ─────────────────────────────────────── */
.btype-apartment {
  background: linear-gradient(180deg, #8e6c5a 0%, #7c5c4a 100%);
}
.btype-apartment .roof { background: #5a3a28; }
.btype-apartment .roof::after { background: #5a3a28; box-shadow: 0 -4px 0 -1px #e05a3a; }
.btype-apartment .window {
  background: #ffe4b0;
  border-color: #5a3a28;
  box-shadow: 0 0 8px rgba(255,215,120,.45);
  background-image:
    linear-gradient(#5a3a28, #5a3a28),
    linear-gradient(#5a3a28, #5a3a28);
  background-size: 100% 2px, 2px 100%;
  background-position: center, center;
  background-repeat: no-repeat;
}
.btype-apartment .rail-floor { background: #5a3a28; }
.btype-apartment .rail-floor.active { background: var(--accent); }

/* ── HOTEL ─────────────────────────────────────── */
.btype-hotel {
  background: linear-gradient(180deg, #c8b882 0%, #b09860 100%);
  box-shadow: 0 10px 28px rgba(0,0,0,.5), inset 0 0 0 2px rgba(200,168,80,.3);
}
.btype-hotel .roof {
  background: #8a6828;
  height: 22px;
}
.btype-hotel .roof::after { background: #8a6828; box-shadow: 0 -5px 0 -1px var(--gold); }
.btype-hotel .window {
  background: #fff8e0;
  border-color: #8a6828;
  box-shadow: 0 0 12px rgba(255,220,100,.65);
  background-image:
    linear-gradient(#8a6828, #8a6828),
    linear-gradient(#8a6828, #8a6828);
  background-size: 100% 2px, 2px 100%;
  background-position: center, center;
  background-repeat: no-repeat;
}
.btype-hotel .cabin-light { background: var(--gold); }
.btype-hotel .rail-floor { background: #5a4010; }
.btype-hotel .rail-floor.active { background: var(--gold); color: #1a0e04; }
