/* =========================================================
   Лунарен календар — Heaven Eleven
   https://heaveneleven.mk
   © 2026 Heaven Eleven. Сите права задржани.
   ========================================================= */
:root {
  --bg0: #05050d;
  --gold: #e7c47c;
  --gold-3: #f7e2ab;
  --pearl: #e9ecf8;
  --silver: #b9c1dc;
  --text: #f0ecf6;
  --muted: #a3a2c2;
  --glass: rgba(16, 15, 40, .56);
  --line: rgba(231, 196, 124, .2);
  --line-soft: rgba(231, 196, 124, .1);
  --line-cool: rgba(185, 193, 220, .16);

  --ease: cubic-bezier(.2, .8, .2, 1);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --font-sym: "Apple Symbols", "Segoe UI Symbol", "Noto Sans Symbols", serif;
}

* { box-sizing: border-box; }
html { background: var(--bg0); }
body {
  margin: 0; min-height: 100dvh;
  color: var(--text); font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 700px at 28% 40%, #1b1f4a 0%, transparent 60%),
    radial-gradient(900px 600px at 100% 0%, #241240 0%, transparent 55%),
    radial-gradient(900px 600px at 0% 110%, #0d2a3e 0%, transparent 55%),
    linear-gradient(180deg, #06060f 0%, #0a0a1f 60%, #0e0b25 100%);
  background-attachment: fixed;
}
button { font: inherit; color: inherit; }

/* ---------- Pozadina ---------- */
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.nebula {
  position: fixed; inset: -20%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(closest-side at 30% 42%, rgba(150, 160, 255, .14), transparent),
    radial-gradient(closest-side at 70% 70%, rgba(124, 84, 226, .14), transparent),
    radial-gradient(closest-side at 60% 18%, rgba(231, 196, 124, .05), transparent);
  filter: blur(40px);
  animation: drift 50s ease-in-out infinite alternate;
}
.orbits {
  position: fixed; left: 20%; top: 40%;
  width: min(170vh, 1400px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  color: var(--silver); opacity: .08;
  z-index: 0; pointer-events: none;
}
.orbits svg { width: 100%; height: 100%; display: block; animation: spin 300s linear infinite; }

/* ---------- Okvir ---------- */
.app {
  position: relative; z-index: 2;
  min-height: 100dvh;
  display: flex; flex-direction: column;
  overflow-x: clip;
}
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px clamp(16px, 3.5vw, 44px) 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.02rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold); white-space: nowrap;
}
.he-logo { display: block; flex: none; width: 48px; height: 48px; margin-right: 4px; border-radius: 50%; transition: transform .4s var(--ease), filter .4s; }
.he-logo img { width: 100%; height: 100%; display: block; opacity: .92; }
.he-logo:hover { transform: rotate(-8deg) scale(1.06); filter: drop-shadow(0 0 10px rgba(231, 196, 124, .55)); }

/* ---------- Potpis ---------- */
.credit {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 26px 16px 40px; text-align: center;
}
.credit > a { display: block; position: relative; border-radius: 50%; transition: transform .6s var(--ease), filter .6s; }
.credit > a::before {
  content: ""; position: absolute; inset: -30%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(231, 196, 124, .16), transparent 65%);
}
.credit > a:hover { transform: rotate(-6deg); filter: drop-shadow(0 0 18px rgba(231, 196, 124, .5)); }
.credit img { width: 150px; height: 150px; display: block; }
.credit-by { margin: 8px 0 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.credit-by small { font-size: .6rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.credit-by a { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; letter-spacing: .06em; color: var(--text); text-decoration: none; }
.credit-by a:hover { color: var(--gold-3); }
.credit-copy { margin: 4px 0 0; font-size: .68rem; letter-spacing: .08em; color: var(--muted); opacity: .7; }
.top-right { display: flex; align-items: center; gap: 16px; }
.date { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.ghost-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(231, 196, 124, .05);
  font-size: .76rem; font-weight: 600; letter-spacing: .04em; color: #efe3c6;
  cursor: pointer; transition: background .25s, border-color .25s, transform .25s;
}
.ghost-btn:hover { background: rgba(231, 196, 124, .12); transform: translateY(-1px); }
.ghost-btn span { color: var(--gold); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  font-size: 1.15rem; line-height: 1; color: var(--gold); cursor: pointer;
  transition: background .25s, transform .25s;
}
.icon-btn:hover { background: rgba(231, 196, 124, .12); }
.icon-btn:disabled { opacity: .3; cursor: default; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.eyebrow {
  margin: 0 0 8px;
  font-size: .7rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold); opacity: .9;
}
.gold-text {
  background: linear-gradient(100deg, #b9893c 0%, #f7e2ab 30%, #e2b865 55%, #fff1c9 75%, #c39445 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: goldflow 9s linear infinite;
}

/* ---------- Glavni deo ---------- */
.main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(360px, 460px) minmax(0, 1fr);
  grid-template-areas: "side cal";
  align-items: start;
  gap: clamp(20px, 3vw, 44px);
  padding: clamp(14px, 2.6vh, 28px) clamp(16px, 3.5vw, 44px) 28px;
  max-width: 1440px; width: 100%; margin: 0 auto;
}
.side { grid-area: side; display: grid; gap: 18px; min-width: 0; }

/* ---------- Mesec danas ---------- */
.today-card {
  display: grid; grid-template-columns: var(--moon) minmax(0, 1fr); align-items: center; gap: 22px;
  padding: 22px 24px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 26px;
  backdrop-filter: blur(18px) saturate(130%); -webkit-backdrop-filter: blur(18px) saturate(130%);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .05);
  animation: fadeUp 1s var(--ease) both;
}
.moon-wrap { position: relative; width: var(--moon); aspect-ratio: 1; }
.moon-glow {
  position: absolute; inset: -34%;
  background: radial-gradient(circle, rgba(220, 228, 255, .28) 0%, rgba(150, 160, 255, .12) 32%, transparent 64%);
  filter: blur(8px);
  animation: glow 7s ease-in-out infinite;
}
.moon { position: relative; width: 100%; height: 100%; animation: bob 9s ease-in-out infinite; }
.moon svg { width: 100%; height: 100%; display: block; overflow: visible; }
.today-txt { min-width: 0; }
.today-txt h1 {
  margin: 0;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 2.6vw, 2.35rem); line-height: 1.02;
  background: linear-gradient(100deg, #c7cde6 0%, #ffffff 35%, #e7c47c 60%, #fff3d0 80%, #c7cde6 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: goldflow 11s linear infinite;
}
.today-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 14px; font-size: .84rem; color: var(--muted); }
.today-meta b { color: var(--pearl); font-weight: 700; }
.today-meta .sym { font-family: var(--font-sym); color: var(--gold); margin-right: 4px; }

.next-pill {
  display: inline-flex; align-items: center; gap: 10px; text-align: left;
  padding: 8px 14px 8px 9px; border-radius: 16px;
  border: 1px solid var(--line); background: rgba(16, 15, 40, .6);
  font-size: .78rem; line-height: 1.35; color: #e9e3d2; cursor: pointer;
  transition: transform .25s, border-color .25s;
}
.next-pill:hover { transform: translateY(-2px); border-color: rgba(231, 196, 124, .45); }
.next-pill b { color: var(--gold); font-weight: 700; }
.next-pill svg { width: 22px; height: 22px; flex: none; }

/* ---------- Detalji ---------- */
.detail {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(20px, 2.4vw, 32px);
  backdrop-filter: blur(18px) saturate(130%); -webkit-backdrop-filter: blur(18px) saturate(130%);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.detail > .anim { animation: fadeUp .55s var(--ease) both; }

.d-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--gold); background: rgba(231, 196, 124, .07);
}
.badge.live { color: #c9f2dd; border-color: rgba(120, 220, 170, .35); background: rgba(120, 220, 170, .08); }
.badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #7fe0b0; box-shadow: 0 0 8px #7fe0b0; animation: blink 1.6s ease-in-out infinite; }
.badge.past { color: var(--muted); border-color: var(--line-cool); background: transparent; }
.badge.eclipse { color: #ffd9a8; border-color: rgba(255, 170, 90, .4); background: rgba(255, 150, 60, .08); }

.d-head { display: flex; gap: 18px; align-items: center; margin: 14px 0 4px; }
.d-icon { width: 64px; height: 64px; flex: none; }
.d-title {
  margin: 0;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 2.8vw, 2.5rem); line-height: 1.04;
}
.d-when { margin: 6px 0 0; color: var(--muted); font-size: .88rem; }
.d-when b { color: var(--text); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(231, 196, 124, .05);
  font-size: .76rem; font-weight: 600; color: #eadfc4;
}
.chip .sym { font-family: var(--font-sym); font-size: 1rem; line-height: 1; color: var(--gold); }
.chip svg { width: 13px; height: 13px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linejoin: round; }

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.cd {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 4px; border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(231, 196, 124, .08), rgba(0, 0, 0, .1));
}
.cd b { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; line-height: 1; color: var(--pearl); font-variant-numeric: tabular-nums; }
.cd span { font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.theme {
  margin: 16px 0 0;
  font-family: var(--font-display); font-style: italic;
  font-size: 1.35rem; line-height: 1.25; color: var(--gold-3);
}
.divider { height: 1px; margin: 16px 0 14px; background: linear-gradient(90deg, transparent, var(--line), transparent); }

.tabs { display: flex; gap: 6px; }
.tab {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 10px; border-radius: 12px;
  border: 1px solid transparent; background: rgba(255, 255, 255, .03);
  font-size: .76rem; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: color .25s, background .25s, border-color .25s;
}
.tab .ico { font-family: var(--font-sym); color: var(--gold); opacity: .65; font-size: 1rem; line-height: 1; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); border-color: var(--line); background: linear-gradient(180deg, rgba(231, 196, 124, .15), rgba(231, 196, 124, .03)); }
.tab[aria-selected="true"] .ico { opacity: 1; }

.panel { padding-top: 14px; min-height: 150px; }
.panel .in { animation: fadeUp .45s var(--ease) both; }
.panel p { margin: 0; line-height: 1.62; font-size: 1rem; }
.panel h3 {
  margin: 0 0 8px;
  font-size: .66rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
}
.quote {
  margin-top: 14px; padding: 13px 16px;
  border-left: 2px solid var(--gold);
  border-radius: 4px 14px 14px 4px;
  background: linear-gradient(90deg, rgba(231, 196, 124, .1), transparent);
  font-family: var(--font-display); font-style: italic; font-size: 1.18rem; line-height: 1.35;
}
.quote small { display: block; margin-bottom: 3px; font-family: var(--font-body); font-style: normal; font-size: .62rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }

.ritual-steps { list-style: none; margin: 4px 0 0; padding: 0; counter-reset: s; display: grid; gap: 8px; }
.ritual-steps li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: .95rem; line-height: 1.5; }
.ritual-steps li::before {
  content: counter(s);
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--gold);
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
}
.window-note { margin-top: 12px !important; font-size: .78rem !important; color: var(--muted); }

.symbol-name { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; line-height: 1.1; margin: 0 0 6px !important; color: var(--pearl); }

.d-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); align-items: center; justify-content: space-between; }
.d-actions .fine { margin: 0; }
.eclipse-note { margin: 12px 0 0; font-size: .78rem; color: #ffd9a8; opacity: .85; }

.fine { font-size: .7rem; line-height: 1.5; color: var(--muted); opacity: .75; }

/* ---------- Kalendar ---------- */
.cal {
  grid-area: cal; min-width: 0;
  padding: clamp(16px, 2vw, 26px);
  background: rgba(12, 11, 32, .45);
  border: 1px solid var(--line-soft);
  border-radius: 26px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  animation: fadeUp 1s .1s var(--ease) both;
}
.cal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cal-head h2 {
  margin: 0 auto 0 4px; order: -1;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 2.4vw, 2.2rem); line-height: 1;
  color: var(--pearl);
}
.cal-head h2 span { color: var(--gold); font-weight: 500; }
.today-btn { margin-left: 4px; }

.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; container-type: inline-size; }
.cell .ls { display: none; }
/* Uže ćelije (kalendar uži od ~720px): skraćene oznake, bez drugog znaka */
@container (max-width: 720px) {
  .cell .z2, .cell .lbl small { display: none; }
  .cell .lf { display: none; }
  .cell .ls { display: inline; }
  .cell.today .dn::after { content: none; }
}
.wd {
  padding: 4px 0 6px; text-align: center;
  font-size: .64rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.cell {
  position: relative; min-width: 0; min-height: 112px;
  display: flex; flex-direction: column; align-items: center;
  padding: 26px 4px 8px;
  border-radius: 14px; border: 1px solid rgba(185, 193, 220, .08);
  background: rgba(255, 255, 255, .02);
  text-align: center; font: inherit; color: inherit;
  transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.cell.blank { border: 0; background: none; }
.cell.past { opacity: .5; }
.cell .dn { position: absolute; top: 6px; left: 9px; font-size: .8rem; font-weight: 700; color: #d9d6ea; font-variant-numeric: tabular-nums; }
.cell .z2 { opacity: .7; }
.cell .zs { position: absolute; top: 5px; right: 8px; font-family: var(--font-sym); font-size: .9rem; color: var(--gold); opacity: .75; }
.cell .cm { width: 40px; height: 40px; flex: none; }
.cell .lbl { display: flex; flex-direction: column; margin-top: 5px; line-height: 1.15; }
.cell .lbl b { font-size: .7rem; font-weight: 800; color: #f2ead6; }
.cell .lbl small { font-size: .64rem; color: var(--muted); }
.cell .lbl time { margin-top: 1px; font-size: .72rem; font-weight: 700; color: var(--gold-3); font-variant-numeric: tabular-nums; }
.cell.has-ev { background: linear-gradient(180deg, rgba(231, 196, 124, .09), rgba(231, 196, 124, .02)); border-color: rgba(231, 196, 124, .16); }
.cell.first_quarter, .cell.last_quarter { background: rgba(185, 193, 220, .05); border-color: rgba(185, 193, 220, .12); }
.cell.full_moon .cm, .cell.new_moon .cm { width: 46px; height: 46px; margin-top: -3px; }
.cell.new_moon .cm circle { stroke: rgba(231, 196, 124, .7); stroke-width: 1.1; }
button.cell { cursor: pointer; }
button.cell:hover { transform: translateY(-2px); border-color: rgba(231, 196, 124, .45); }
.cell.today { border-color: rgba(233, 236, 248, .75); box-shadow: 0 0 0 1px rgba(233, 236, 248, .25), 0 0 26px -6px rgba(200, 210, 255, .5); opacity: 1; }
.cell.today .dn::after { content: "денес"; margin-left: 5px; font-size: .52rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.cell.selected {
  opacity: 1; border-color: rgba(231, 196, 124, .8);
  background: linear-gradient(180deg, rgba(231, 196, 124, .22), rgba(14, 13, 36, .6));
  box-shadow: 0 0 0 1px rgba(231, 196, 124, .25), 0 14px 30px -12px rgba(231, 196, 124, .45);
}
.cell .ecl { position: absolute; bottom: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: #ffb46b; box-shadow: 0 0 8px #ff9a3c; }

.cal-sub {
  margin: 22px 0 6px; padding-top: 16px; border-top: 1px solid var(--line-soft);
  font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--pearl);
}
.cal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.li {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 9px 10px; border-radius: 14px; border: 1px solid transparent; background: none;
  text-align: left; font: inherit; color: inherit;
}
button.li { cursor: pointer; transition: background .25s, border-color .25s; }
button.li:hover { background: rgba(231, 196, 124, .07); border-color: var(--line-soft); }
.li.selected { background: rgba(231, 196, 124, .1); border-color: var(--line); }
.li.past { opacity: .55; }
.li-moon { width: 34px; height: 34px; flex: none; }
.li-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.li-txt b { font-size: .92rem; color: #f2ead6; }
.li-txt > span { font-size: .8rem; color: var(--muted); }
.li-ecl { color: #ffd9a8; font-weight: 600; }
.li-go { flex: none; font-size: .74rem; font-weight: 600; color: var(--gold); opacity: .8; }

/* ---------- Dijalog ---------- */
.sheet {
  width: min(620px, calc(100vw - 32px)); max-height: min(86dvh, 760px);
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line); border-radius: 26px;
  background: rgba(14, 13, 34, .92); color: var(--text);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .9);
}
.sheet::backdrop { background: rgba(3, 3, 10, .65); backdrop-filter: blur(4px); }
.sheet[open] { animation: pop .45s var(--ease) both; }
.sheet h2 { margin: 0 0 18px; font-family: var(--font-display); font-weight: 600; font-size: 2rem; line-height: 1.1; }
.sheet .close { position: absolute; top: 16px; right: 16px; font-size: .9rem; }
.phases { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.phase-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .03); }
.phase-card svg { width: 36px; height: 36px; flex: none; }
.phase-card b { display: block; font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 2px; }
.phase-card span { font-size: .84rem; color: #d9d3e6; line-height: 1.45; }
.steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; counter-reset: st; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.steps li::before {
  content: counter(st);
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--gold);
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
}
.steps b { display: block; margin-bottom: 2px; color: var(--gold-3); }
.steps span { font-size: .9rem; line-height: 1.5; color: #d9d3e6; }
.sheet .fine a { color: var(--gold); }

/* ---------- Responsive ---------- */
:root { --moon: 132px; }
@media (max-width: 1180px) {
  .main { grid-template-columns: minmax(330px, 400px) minmax(0, 1fr); }
  .cell { min-height: 100px; }
}
@media (max-width: 1100px) {
  .main { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; row-gap: 18px; }
  .side { display: contents; }
  .today-card { order: 1; }
  .cal { grid-area: auto; order: 2; }
  .detail { order: 3; }
  .orbits { left: 50%; top: 20%; width: 160vw; }
}
@media (max-width: 640px) {
  :root { --moon: 104px; }
  .date { display: none; }
  .today-card { gap: 16px; padding: 18px; }
  .today-meta { gap: 2px 10px; font-size: .78rem; }
  .cal { padding: 14px 10px; border-radius: 22px; }
  .cal-head { gap: 8px; }
  .cal-grid { gap: 4px; }
  .wd { letter-spacing: .08em; font-size: .58rem; }
  .cell { min-height: 0; aspect-ratio: .78; padding: 18px 2px 4px; border-radius: 10px; justify-content: center; }
  .cell .dn { top: 3px; left: 5px; font-size: .68rem; }
  .cell .zs { top: 2px; right: 4px; font-size: .72rem; }
  .cell .z2 { display: none; }
  .cell .cm, .cell.full_moon .cm, .cell.new_moon .cm { width: 30px; height: 30px; margin: 0; }
  .cell .lbl { display: none; }
  .cell.today .dn::after { content: none; }
  .cell .ecl { bottom: 4px; right: 4px; width: 5px; height: 5px; }
  .cal-sub { font-size: 1.15rem; }
  .li { gap: 10px; padding: 8px 6px; }
  .li-go { display: none; }
}
@media (max-width: 520px) {
  .brand { font-size: .86rem; letter-spacing: .24em; }
  .he-logo { width: 40px; height: 40px; }
  .ghost-btn { padding: 7px 11px; font-size: .7rem; }
  .top-right .ghost-btn .txt { display: none; }
  .countdown { gap: 6px; }
  .cd b { font-size: 1.45rem; }
  .d-icon { width: 52px; height: 52px; }
  .phases { grid-template-columns: 1fr; }
  .tab { padding: 9px 6px; font-size: .72rem; }
}

/* ---------- Animacije ---------- */
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-8px) rotate(1.5deg); } }
@keyframes glow { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { from { transform: translate(-3%, -2%) rotate(0deg); } to { transform: translate(3%, 2%) rotate(8deg); } }
@keyframes goldflow { to { background-position: 200% center; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
