/* =========================================================
   Masala Darbar – rozcestník: animované logo + 3 reštaurácie
   ========================================================= */

:root {
  --ink: #120a0b;
  --plum: #1d0e10;
  --maroon: #3d1519;
  --saffron: #e2862d;
  --turmeric: #f0b545;
  --gold: #cfa45d;
  --cream: #f6ecdc;
  --muted: #c9b9a4;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 55% 45% at 50% 32%, rgba(226, 134, 45, 0.2), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 110%, rgba(61, 21, 25, 0.95), transparent 70%),
    var(--plum);
  color: var(--cream);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }

/* jemný vzor jali (indická kamenná mriežka) */
.jali {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.06;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23cfa45d' stroke-width='1'%3E%3Cpath d='M32 4c8 10 18 20 28 28-10 8-20 18-28 28C24 50 14 40 4 32 14 24 24 14 32 4z'/%3E%3Ccircle cx='32' cy='32' r='6'/%3E%3Ccircle cx='0' cy='0' r='6'/%3E%3Ccircle cx='64' cy='0' r='6'/%3E%3Ccircle cx='0' cy='64' r='6'/%3E%3Ccircle cx='64' cy='64' r='6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 64px 64px;
}

.stage {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(36px, 6vh, 64px);
  padding: clamp(40px, 7vh, 80px) 20px 40px;
  isolation: isolate;
  overflow-x: clip;
}

/* veľké slnko za logom – dve zrkadlové polovice mandaly */
.sun {
  position: absolute;
  top: clamp(20px, 4vh, 60px);
  left: 50%;
  translate: -50% 0;
  z-index: -1;
  width: min(760px, 130vw);
  aspect-ratio: 309.2 / 429.2;
  display: flex;
  color: var(--saffron);
  opacity: 0;
  animation: sun-in 2.4s 1.2s var(--ease) forwards, spin 160s linear infinite;
}
.sun span {
  flex: 1;
  background: currentColor;
  -webkit-mask: url("../img/mandala-half.svg") center / contain no-repeat;
  mask: url("../img/mandala-half.svg") center / contain no-repeat;
}
.sun span:last-child { transform: scaleX(-1); }
@keyframes sun-in { to { opacity: 0.1; } }
@keyframes spin { to { rotate: 360deg; } }

/* ---------- animované logo ---------- */
.logo {
  position: relative;
  width: min(440px, 78vw);
  aspect-ratio: 542.7 / 429.2;
  margin: 0;
}
.logo h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.logo__layer {
  position: absolute;
  inset: 0;
  background: var(--cream);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.logo__mandala { -webkit-mask-image: url("../img/mandala.png"); mask-image: url("../img/mandala.png"); }
.logo__name { -webkit-mask-image: url("../img/nazov.png"); mask-image: url("../img/nazov.png"); }
.logo__sub {
  -webkit-mask-image: url("../img/podnazov.png");
  mask-image: url("../img/podnazov.png");
  background: var(--turmeric);
  opacity: 0;
  translate: 0 10px;
  animation: fade-up 0.7s 1.7s var(--ease) forwards;
}
.logo__shine {
  -webkit-mask-image: url("../img/cele.png");
  mask-image: url("../img/cele.png");
  background: linear-gradient(105deg, transparent 35%, var(--turmeric) 48%, #fff4dc 50%, var(--turmeric) 52%, transparent 65%) no-repeat;
  background-size: 300% 100%;
  background-position: 110% 0;
  animation: shine 1.3s 2.2s ease-in-out forwards;
}

/* obaly s odkrývacou maskou (masky sa nekombinujú na jednom prvku – inak na okrajoch vzniká linka) */
@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --wipe { syntax: "<percentage>"; inherits: false; initial-value: -10%; }

.reveal-sun {
  position: absolute;
  inset: 0;
  transform-origin: 28.8% 49.7%;
  -webkit-mask-image: conic-gradient(from 180deg at 28.8% 49.7%, #000 var(--sweep), transparent calc(var(--sweep) + 1deg));
  mask-image: conic-gradient(from 180deg at 28.8% 49.7%, #000 var(--sweep), transparent calc(var(--sweep) + 1deg));
  rotate: -40deg;
  animation: sweep 1.1s 0.2s cubic-bezier(0.45, 0, 0.25, 1) forwards, settle 1.2s 0.2s var(--ease) forwards;
}
.reveal-name {
  position: absolute;
  inset: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 var(--wipe), transparent calc(var(--wipe) + 10%));
  mask-image: linear-gradient(90deg, #000 var(--wipe), transparent calc(var(--wipe) + 10%));
  animation: wipe 0.9s 0.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
/* po dokončení masky vypnúť (čisté okraje) */
.logo.is-done .reveal-sun, .logo.is-done .reveal-name { -webkit-mask-image: none; mask-image: none; }

@keyframes sweep { to { --sweep: 361deg; } }
@keyframes settle { to { rotate: 0deg; } }
@keyframes wipe { to { --wipe: 110%; } }
@keyframes shine { to { background-position: -10% 0; } }
@keyframes fade-up { to { opacity: 1; translate: 0 0; } }

/* ---------- výber reštaurácie ---------- */
.choose { display: flex; flex-direction: column; align-items: center; gap: 30px; width: 100%; }
.choose__title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--turmeric);
  opacity: 0;
  translate: 0 10px;
  animation: fade-up 0.8s 2.2s var(--ease) forwards;
}
.choose__title::before, .choose__title::after { content: ""; width: 44px; height: 1px; background: linear-gradient(90deg, transparent, var(--saffron)); }
.choose__title::after { background: linear-gradient(90deg, var(--saffron), transparent); }

.bubbles { display: flex; justify-content: center; gap: clamp(22px, 4vw, 56px); flex-wrap: wrap; }
.bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  opacity: 0;
  translate: 0 30px;
  animation: fade-up 0.9s var(--d) var(--ease) forwards;
}
.bubble__circle {
  position: relative;
  width: clamp(170px, 17vw, 230px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 0 0 1px rgba(207, 164, 93, 0.5), 0 30px 60px -25px rgba(0, 0, 0, 0.8);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.bubble__circle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.bubble__circle::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 40%, rgba(18, 10, 11, 0.15), rgba(18, 10, 11, 0.75));
  transition: background 0.5s;
}
/* vnútorný krúžok */
.bubble__circle::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid rgba(246, 236, 220, 0.4);
  transition: inset 0.6s var(--ease), border-color 0.4s;
}
.bubble__num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(54px, 5vw, 72px);
  color: var(--cream);
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
}
.bubble__name { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 2.6vw, 38px); line-height: 1; text-transform: uppercase; letter-spacing: 0.02em; }
.bubble__place { font-size: 14px; color: var(--muted); margin-top: -10px; }
.bubble__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--saffron);
}
.bubble__go svg { width: 16px; height: 16px; transition: translate 0.35s var(--ease); }

.bubble:hover .bubble__circle,
.bubble:focus-visible .bubble__circle { transform: scale(1.06); box-shadow: 0 0 0 3px var(--saffron), 0 40px 70px -25px rgba(226, 134, 45, 0.45); }
.bubble:hover .bubble__circle img { transform: scale(1.08); }
.bubble:hover .bubble__circle::before { background: radial-gradient(circle at 50% 40%, rgba(18, 10, 11, 0), rgba(18, 10, 11, 0.55)); }
.bubble:hover .bubble__circle::after { inset: 16px; border-color: var(--turmeric); }
.bubble:hover .bubble__go svg { translate: 4px 0; }
.bubble:focus-visible { outline: none; }

.foot {
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(201, 185, 164, 0.7);
  opacity: 0;
  animation: fade-up 0.8s 3s var(--ease) forwards;
}

/* mobil: bubliny pod sebou ako riadky */
@media (max-width: 640px) {
  .stage { justify-content: flex-start; }
  .logo { width: min(300px, 74vw); }
  .choose__title { letter-spacing: 0.2em; gap: 12px; white-space: nowrap; }
  .choose__title::before, .choose__title::after { width: 26px; }
  .bubbles { flex-direction: column; gap: 14px; width: 100%; max-width: 380px; }
  .bubble {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 2px 18px;
    text-align: left;
    padding: 10px 18px 10px 10px;
    border-radius: 999px;
    border: 1px solid rgba(207, 164, 93, 0.3);
    background: rgba(18, 10, 11, 0.45);
  }
  .bubble__circle { width: 96px; grid-row: 1 / 3; }
  .bubble__num { font-size: 36px; }
  .bubble__name { font-size: 30px; align-self: end; }
  .bubble__place { margin-top: 0; align-self: start; font-size: 13px; }
  .bubble__go { grid-row: 1 / 3; grid-column: 3; font-size: 0; gap: 0; }
  .bubble__go svg { width: 22px; height: 22px; }
}

/* prepínač jazyka SK | EN (vpravo hore) */
.lang {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 10;
  display: flex;
  gap: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0;
  animation: fade-up 0.8s 2.8s var(--ease) forwards;
}
.lang a { color: rgba(201, 185, 164, 0.7); text-decoration: none; padding-bottom: 3px; transition: color 0.3s; }
.lang a:hover, .lang a.is-active { color: var(--cream); }
.lang a.is-active { box-shadow: inset 0 -2px 0 var(--gold); }
