/* Elevator Madness — sajt igre. Izgled prati igru: boje iz godot/scripts/ui/palette.gd,
   fontovi iz igre (Fredoka za tekst, Lilita One za naslove), krem paneli sa tamnom konturom,
   koralna traka kao u smeni i grad iz igre (godot/art/city/).
   Fontovi su na samom sajtu: sajt ne pravi zahteve ka drugim servisima. */
@font-face {
  font-family: "Fredoka";
  src: url("/fonts/Fredoka-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Lilita One";
  src: url("/fonts/LilitaOne-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --sky: #fef9e8;
  --cream: #fff7e5;
  --paper: #f4eddc;
  --coral: #e96b52;
  --coral-dark: #c3513a;
  --yellow: #ffd474;
  --teal: #5a9f96;
  --mint: #a9d3c0;
  --ink: #23333c;
  --shaft: #34434c;
  --street: #578293;
  --muted: #5b676d;
  --shadow: 0 6px 0 rgba(35, 51, 60, 0.18);
  --text-font: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --title-font: "Lilita One", "Fredoka", ui-rounded, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--text-font);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.6;
}

a { color: var(--coral-dark); font-weight: 600; }
img { max-width: 100%; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

h1, h2, h3 { font-family: var(--title-font); font-weight: 400; letter-spacing: 0.3px; line-height: 1.15; }

/* zaglavlje: koralna traka kao na vrhu smene */
.top {
  background: var(--coral);
  border-bottom: 5px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 10;
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 11px; border: 3px solid var(--ink); }
.wordmark {
  font-family: var(--title-font);
  font-size: 26px;
  line-height: 1;
  color: var(--yellow);
  -webkit-text-stroke: 5px var(--ink);
  paint-order: stroke fill;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.wordmark b { font-weight: 400; color: var(--cream); }
.top nav { display: flex; gap: 8px; }
.top nav a {
  color: var(--ink);
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 3px 12px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 3px 0 rgba(35, 51, 60, 0.25);
}
.top nav a:hover, .top nav a[aria-current="page"] { background: var(--yellow); }

/* uvod: logo nad gradom */
.hero { text-align: center; padding: 36px 0 0; }
.hero h1 { margin: 0; }
.hero h1 .logo { display: block; width: min(520px, 92%); height: auto; margin: 0 auto; }
.lead { font-size: 21px; max-width: 620px; margin: 14px auto 0; }

.buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 24px 0 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 4px solid var(--ink);
  border-radius: 18px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.btn.soon { background: var(--cream); }
.btn small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); line-height: 1.1; }
.btn span { text-align: left; line-height: 1.2; }

/* ulica iz igre sa zgradama na trotoaru */
.street {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  aspect-ratio: 1024 / 920;
  background: url("/img/street.jpg") center / 100% 100% no-repeat;
  border: 5px solid var(--ink);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.street .row {
  position: absolute;
  left: 3%;
  right: 3%;
  bottom: 26%;
  height: 55%;
  display: flex;
  justify-content: space-evenly;
  align-items: flex-end;
}
.street .row img { height: 92%; width: auto; display: block; }
.street .row img.five { height: 77%; }
.street .plates {
  position: absolute;
  left: 3%;
  right: 3%;
  bottom: 9%;
  display: flex;
  justify-content: space-evenly;
  gap: 6px;
}
.plate {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 10px;
  padding: 2px 10px;
  font-weight: 600;
  font-size: clamp(11px, 2.2vw, 17px);
  white-space: nowrap;
}

/* brojevi kao na tabli smene */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 32px 0 8px; }
.stat {
  background: var(--cream);
  border: 4px solid var(--ink);
  border-radius: 16px;
  text-align: center;
  padding: 6px 4px 8px;
}
.stat:nth-child(1) { background: var(--mint); }
.stat:nth-child(3) { background: #f6c4b6; }
.stat small { display: block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; }
.stat strong { font-family: var(--title-font); font-weight: 400; font-size: 30px; line-height: 1.1; }

/* naslovi odeljaka */
.section { margin: 48px 0; }
.section > h2 { text-align: center; font-size: clamp(30px, 6vw, 42px); margin: 0 0 6px; color: var(--coral); -webkit-text-stroke: 1px var(--ink); }
.section > p.sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 22px; }

/* snimci ekrana: red koji se pomera prstom */
.shots {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 18px;
  margin: 0 -4px;
}
.shots figure { margin: 0; flex: 0 0 min(230px, 62vw); scroll-snap-align: center; }
.shots img {
  width: 100%;
  height: auto;
  display: block;
  border: 5px solid var(--ink);
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: var(--paper);
}
@media (min-width: 900px) {
  .shots { display: grid; grid-template-columns: repeat(5, 1fr); overflow: visible; gap: 14px; }
}
.shots figcaption { text-align: center; font-weight: 600; font-size: 16px; margin-top: 10px; }

/* putnici */
.cast { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  background: var(--cream);
  border: 4px solid var(--ink);
  border-radius: 22px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 4px; font-size: 22px; }
.card p { margin: 0; color: var(--muted); }
.cast .card { display: flex; gap: 12px; align-items: flex-end; padding: 14px 16px 0 12px; }
.cast .card img { width: 86px; height: auto; flex: none; }
.cast .card div { padding-bottom: 14px; align-self: center; }
.cast .card p { font-size: 16px; line-height: 1.45; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

/* tekstualne strane */
.page { padding-top: 36px; padding-bottom: 56px; }
.page h1 { font-size: clamp(34px, 7vw, 48px); margin: 0 0 6px; color: var(--coral); -webkit-text-stroke: 1px var(--ink); }
.page .meta { color: var(--muted); margin: 0 0 28px; }
.page h2 { margin: 36px 0 8px; font-size: 28px; }
.page h3 { margin: 24px 0 4px; font-size: 21px; }
.page ul { padding-left: 22px; }
.page li { margin: 4px 0; }
.page .card { margin: 18px 0; }
.page .card ul { margin: 6px 0 0; }
.contact { display: inline-block; font-weight: 600; font-size: 21px; }
.faq-who { display: flex; gap: 12px; align-items: center; margin: 8px 0; }
.faq-who img { width: 48px; height: auto; flex: none; }

/* podnožje: tamno kao okno lifta */
footer {
  border-top: 5px solid var(--ink);
  background: var(--shaft);
  color: #dfe6e8;
  padding: 22px 0;
  font-size: 15px;
}
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a { color: var(--yellow); }

@media (max-width: 720px) {
  body { font-size: 17px; }
  .wordmark { font-size: 21px; -webkit-text-stroke-width: 4px; }
  .brand img { width: 36px; height: 36px; }
  .top nav a { padding: 2px 9px; font-size: 15px; }
  .lead { font-size: 18px; }
  .street { border-radius: 20px; border-width: 4px; }
  .plate { border-width: 2px; padding: 1px 5px; border-radius: 7px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cast, .features { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .wordmark { font-size: 18px; }
  .brand img { display: none; }
}

.page .card h3 { margin-top: 0; }
.faq-who p { margin: 0; }
.notfound { text-align: center; }
.notfound img { width: 120px; height: auto; }
