/* ===================================================================
   Surri – štýly webu
   Farby aj rozmery vychádzajú z návrhu v surri.sk.pdf.
   =================================================================== */

/* --- Písmo je nahrané priamo na hostingu, nič sa neťahá z internetu --- */
@font-face {
  font-family: 'Yomogi';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/yomogi-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0;
}
@font-face {
  font-family: 'Yomogi';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/yomogi-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --gold: #DE9E48;      /* Teplá medovo-okrová podľa fotky */
  --cream: #F8EEDB;     /* Zjednotená teplá krémová farba stránky */
  --sand: #DE9E48;      /* Zjednotená na teplú oranžovo-okrovú */
  --peach: #F6ECE0;     /* Teplá marhuľovo-krémová */
  --page-bg: #F8EEDB;   /* Teplé krémovo-oranžové pozadie stránky */
  --clay: #D0826E;      /* Teplá terakota */
  --ink: #2B2620;       /* Tmavá antracitová/čierna */
  --ink-soft: #6E6558;
  --bubble: #F0DFC8;    /* Krémovejšia bublina */
  --silhouette: #4A4237;

  /* Farba aktívneho dieťaťa – mení sa pri prepnutí krtinca */
  --accent: #D0826E;

  --content: 430px;

  /* Výška, v ktorej sedí pole na kód. Rovnakú hodnotu používa
     aj položka TLUPA KÓD v menu, aby boli presne nad sebou. */
  --code-top: clamp(210px, 32vh, 280px);

  --mound-w: clamp(140px, 42vw, 180px);
  --mound-h: calc(var(--mound-w) * 0.70);
  --sky-h: clamp(170px, 24vh, 200px);
}

@supports (height: 100dvh) {
  :root { --code-top: clamp(210px, 32dvh, 280px); }
}

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

html, body { max-width: 100vw; overflow-x: hidden; background: var(--gold); }

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--gold);
  color: var(--ink);
  /* Väčšie a hrubšie písmo, aby text prečítali aj starí rodičia */
  font-family: 'Yomogi', 'Comic Sans MS', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--ink); color: var(--cream); padding: .6rem 1rem; border-radius: 0 0 .6rem 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

/* ===================================================================
   Hlavička – logo vľavo, žltý nápis v strede, menu vpravo
   =================================================================== */
.head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(0.85rem + env(safe-area-inset-top, 0px)) calc(1.15rem + env(safe-area-inset-right, 0px)) 0.85rem calc(1.15rem + env(safe-area-inset-left, 0px));
  pointer-events: none;
}
.head__logo { pointer-events: auto; display: inline-flex; transition: transform .2s, opacity .2s; }
.head__logo img { width: 44px; height: auto; display: block; }
.head__logo:active { transform: scale(.96); }

body.menu-is-open .head__logo,
body.menu-is-open .head__brand {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  transition: opacity 0.2s ease;
}

.head--tlupa .head__logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.head--tlupa .head__logo img {
  width: 38px;
  height: auto;
}

.head__brand {
  pointer-events: auto;
  font-family: var(--font-hand), 'Yomogi', cursive;
  font-size: 1.85rem;
  font-weight: 700;
  color: #DDA028; /* žltá farba podľa snímky 1 */
  letter-spacing: 0.08em;
  text-decoration: none;
  display: inline-block;
  margin-top: 0.15rem;
  text-shadow: 0 1px 2px rgba(58, 55, 49, 0.12);
  transition: transform 0.2s, opacity 0.2s;
}
.head__brand:hover { opacity: 0.9; transform: scale(1.03); }
.head__brand:active { transform: scale(0.97); }

.burger {
  position: fixed;
  top: calc(0.85rem + env(safe-area-inset-top, 0px));
  right: calc(1.15rem + env(safe-area-inset-right, 0px));
  width: 40px;
  height: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 160;
  pointer-events: auto;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}
.burger span {
  display: block; width: 100%; height: 4px; border-radius: 4px;
  background: #FAF3E8; /* Krémovo-bledá na oranžovom pozadí */
  transition: transform .3s ease, opacity .2s ease, background-color .25s ease;
}
/* Keď je burger nad bledým podkladom (biela karta, krémové pozadie pri scrollovaní) */
.burger.burger--on-light span {
  background: #B87B2E; /* Teplá oranžovohnedá */
}
/* Keď je menu otvorené (menu má bledé krémové pozadie) */
.burger.is-open span {
  background: #B87B2E; /* Teplá oranžovohnedá */
}
.burger.is-open span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* ===================================================================
   Menu – rovnaká animácia pri otváraní aj zatváraní
   =================================================================== */
.menu {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: var(--page-bg, #F8EEDB);
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.25, 1, .5, 1), visibility 0s linear .35s;
  visibility: hidden;
  overflow-y: auto;
}
.menu.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform .35s cubic-bezier(.25, 1, .5, 1), visibility 0s linear 0s;
}

.menu__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 360px;
  margin: 0 auto;
  padding: 4.8rem 1.25rem 2.8rem;
  gap: 2rem;
}

/* 1. TLUPA KÓD kapsula – teplé oranžové pozadie ako na stránke s tieňom */
.menu__code {
  width: min(290px, 100%);
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: var(--gold, #DE9E48);
  color: var(--ink, #2B2620);
  border-radius: 40px;
  border: 1.8px solid rgba(58, 55, 49, 0.15);
  font-size: clamp(1.55rem, 6vw, 1.95rem);
  letter-spacing: .05em;
  -webkit-text-stroke: .7px currentColor;
  box-shadow: 0 8px 24px rgba(222, 158, 72, 0.38), 0 2px 6px rgba(58, 55, 49, 0.1);
  text-decoration: none;
  margin-bottom: 0.4rem;
  transition: transform .2s, box-shadow .2s, background-color .2s;
}
.menu__code:hover {
  background: #D4933E;
  transform: scale(1.03);
  box-shadow: 0 12px 30px rgba(222, 158, 72, 0.48), 0 3px 8px rgba(58, 55, 49, 0.14);
}
.menu__code:active {
  transform: scale(.97);
}
.menu__code-icon {
  stroke: var(--ink);
  flex-shrink: 0;
}

/* 2. Hlavná navigácia – väčšie vzdušné rozostupy */
.menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.85rem;
  width: 100%;
}

.menu__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.75rem, 6.5vw, 2.15rem);
  line-height: 1.1;
  letter-spacing: .05em;
  color: var(--ink);
  -webkit-text-stroke: .7px currentColor;
  text-decoration: none;
  transition: transform .2s, opacity .2s;
}
.menu__link:hover {
  transform: scale(1.04);
  opacity: .9;
}
.menu__link:active {
  transform: scale(.97);
}

/* 3. Bodkočiarkovaný predel */
.menu__divider {
  width: 120px;
  height: 0;
  border-top: 2px dashed rgba(58, 55, 49, 0.22);
  margin: 0.35rem 0;
}

/* 4. Prehľadný box PRE RODIČOV – zladený do teplých béžových tónov webu */
.menu__parent-box {
  width: 100%;
  max-width: 300px;
  background: rgba(255, 255, 255, 0.48);
  border: 2px dashed rgba(110, 101, 88, 0.38);
  border-radius: 22px;
  padding: 1.05rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(58, 55, 49, 0.06);
}

.menu__parent-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #6E6558;
  text-transform: uppercase;
}
.menu__parent-tag svg {
  stroke: #6E6558;
}

.menu__parent-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.65rem 1.2rem;
  background: #D5BFA7;
  color: var(--ink, #2B2620);
  border: 1.5px solid rgba(58, 55, 49, 0.14);
  border-radius: 50px;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  -webkit-text-stroke: 0.35px currentColor;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(58, 55, 49, 0.11);
  transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.menu__parent-btn:hover {
  background: #C8B096;
  box-shadow: 0 6px 18px rgba(58, 55, 49, 0.15);
  transform: scale(1.02);
}
.menu__parent-btn:active {
  transform: scale(0.97);
}

.menu__parent-sub {
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
  padding: 0.2rem 0.5rem;
}
.menu__parent-sub:hover {
  opacity: 1;
  text-decoration: underline;
}
.menu__parent-sub--logout {
  color: var(--ink-soft, #6E6558);
  font-size: 0.9rem;
}

/* 5. Milá surikatka */
.menu__footer {
  margin-top: 0.1rem;
  display: flex;
  justify-content: center;
}
.menu__footer img {
  opacity: 0.88;
  transition: transform 0.2s;
}

/* ===================================================================
   Bubliny sprievodcu
   =================================================================== */
.bubble {
  background: var(--bubble);
  color: var(--ink);
  padding: .6rem 1.1rem;
  border-radius: 20px;
  font-size: .98rem;
  line-height: 1.4;
  text-align: center;
  max-width: 300px;
}
.bubble--small { font-size: .92rem; padding: .4rem 1rem; }
.bubble--inline { display: inline-flex; align-items: center; gap: .5rem; }
.bubble__q {
  width: 24px; height: 24px; flex: 0 0 24px;
  border-radius: 50%;
  background: var(--ink); color: var(--cream);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .9rem;
}

/* Bubliny sa ukazujú len keď je zapnutý sprievodca */
[data-guide] { display: none; }
body.guide-on [data-guide] { display: block; }
body.guide-on .bubble--inline { display: inline-flex; }
body.guide-on .home__menu-hint { display: flex; }
body.guide-on img[data-guide] { display: block; }
body.guide-on {
  --code-top: max(clamp(215px, 32vh, 280px), calc(11.2rem + env(safe-area-inset-top, 0px)));
}
@supports (height: 100dvh) {
  body.guide-on {
    --code-top: max(clamp(215px, 32dvh, 280px), calc(11.2rem + env(safe-area-inset-top, 0px)));
  }
}

/* ===================================================================
   Hlášky – žiadne alerty, všetko sa píše priamo na stránke
   =================================================================== */
.flash-wrap {
  position: fixed;
  top: calc(1.05rem + 92px);
  left: 50%; transform: translateX(-50%);
  width: min(var(--content), calc(100% - 2rem));
  z-index: 200;
  display: flex; flex-direction: column; gap: .5rem;
  pointer-events: none;
}
.flash-wrap .flash { pointer-events: auto; }

/* Keď je na stránke hláška, formuláre sa posunú nižšie,
   aby im hláška nesadla na prvé políčko. */
body.has-flash .auth { padding-top: 13.5rem; }
body.has-flash .wrap--center { padding-top: 12rem; }
body.has-flash .admin-page { padding-top: 13rem; }
body.has-flash .tlupa .content { padding-top: 5.5rem; }
.flash {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .75rem 1rem;
  border-radius: 16px;
  font-size: .95rem;
  box-shadow: 0 8px 24px rgba(58, 55, 49, .18);
  animation: flashIn .3s cubic-bezier(.16, 1, .3, 1);
}
.flash--success { background: #E8F0E4; color: #33563a; border: 1.5px solid #7D9C7C; }
.flash--error   { background: #FBECEA; color: #8c3830; border: 1.5px solid var(--clay); }
.flash--info    { background: var(--cream); color: var(--ink); border: 1.5px solid var(--sand); }
.flash span { flex: 1; }
.flash__close { font-size: 1.4rem; line-height: 1; opacity: .55; }
@keyframes flashIn { from { transform: translateY(-10px); } to { transform: translateY(0); } }

/* ===================================================================
   Úvodná stránka
   =================================================================== */
.home {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 1.15rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column;
}

.home__menu-hint {
  position: absolute;
  top: calc(3.6rem + env(safe-area-inset-top, 0px));
  right: calc(0.85rem + env(safe-area-inset-right, 0px));
  max-width: calc(100% - 4.6rem);
  display: none;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.4rem;
  pointer-events: none;
  z-index: 20;
}
.home__menu-hint img {
  width: 44px;
  height: auto;
  flex-shrink: 0;
  display: block;
}
.home__menu-hint .bubble {
  max-width: min(240px, 62vw);
  font-size: clamp(0.82rem, 3.2vw, 0.95rem);
  line-height: 1.35;
  padding: 0.5rem 0.85rem;
  box-shadow: 0 4px 12px rgba(58, 55, 49, 0.08);
}

.code {
  position: absolute;
  top: var(--code-top);
  left: 1.15rem; right: 1.15rem;
  display: flex; flex-direction: column; align-items: center;
}
.code__hint {
  position: absolute;
  bottom: calc(100% + 0.55rem);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 90vw;
  margin: 0;
  padding-left: 1.5rem;
  pointer-events: none;
  z-index: 6;
}

.code__field {
  position: relative;
  width: 100%;
  max-width: 300px;
  display: flex; align-items: center;
}
.code__field--password { margin-top: .8rem; }

.code__kat {
  position: absolute;
  top: -25px; left: 12px;
  width: 74px;
  z-index: 5;
  pointer-events: none;
}

.code__input {
  width: 100%;
  height: 58px;
  background: var(--cream);
  border: 0;
  border-radius: 40px;
  padding: 0 4.2rem 0 1.5rem;
  font-size: 1.25rem;
  letter-spacing: .06em;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(58, 55, 49, .14);
}
.code__input::placeholder { color: rgba(58, 55, 49, .42); letter-spacing: normal; }
.code__input:focus { outline: none; box-shadow: 0 0 0 3px rgba(58, 55, 49, .35), 0 4px 14px rgba(58, 55, 49, .14); }

.code__go {
  position: absolute;
  right: 7px; top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  z-index: 6;
}
.code__go:active { transform: translateY(-50%) scale(.94); }

/* Obláčik so Surri */
.help { margin-top: auto; padding-top: 2rem; display: flex; justify-content: center; }
.help__inner {
  position: relative;
  width: 100%; max-width: 380px;
  padding-left: 36px; padding-bottom: 54px;
  color: var(--bubble);
}
.cloud__box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: visible;
}
.cloud__shape {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  overflow: visible;
  pointer-events: none;
}
.cloud__text {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  padding: 1.5rem 1.6rem;
  text-align: center;
  color: var(--ink);
  font-size: .9rem;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .95rem;
  box-sizing: border-box;
}
.cloud__text p {
  margin: 0;
  max-width: 245px;
  font-weight: 500;
  line-height: 1.45;
}
.cloud__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--cream);
  border-radius: 24px;
  padding: .48rem 1.4rem;
  font-size: .84rem;
  letter-spacing: .08em;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(58, 55, 49, .2);
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease;
  flex-shrink: 0;
}
.cloud__btn:hover { transform: scale(1.05); background: #241f1b; }
.cloud__btn:active { transform: scale(.96); }
.help__kat { position: absolute; left: 0; bottom: 0; width: 92px; z-index: 2; pointer-events: none; }

/* ===================================================================
   Tlupa – obloha, krtince a surikaty
   =================================================================== */
.tlupa {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--page-bg, #F8EEDB);
  transition: background .45s ease;
  padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
}

.sky {
  position: relative;
  width: 100%;
  height: var(--sky-h);
  background: #DE9E48; /* Teplá medovo-okrová obloha z fotky */
  overflow: visible;
  user-select: none;
}

.mounds {
  position: absolute;
  inset: 0 0 0 0;
  height: 100%;
  display: flex;
  align-items: flex-end;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 calc(50vw - var(--mound-w) / 2);
  z-index: 3;
}
.mounds::-webkit-scrollbar { display: none; }

.mound {
  position: relative;
  flex: 0 0 var(--mound-w);
  width: var(--mound-w);
  height: var(--mound-h);
  scroll-snap-align: center;
  transition: opacity .25s ease, transform .2s ease;
  z-index: 2;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.mound:not(.is-active) {
  opacity: 0.85;
  z-index: 2;
}
.mound.is-active {
  z-index: 10;
  opacity: 1;
}
.mound__arch { display: block; width: 100%; height: 100%; overflow: visible; }

/* Neaktívne mená sú v pozadí a nemajú ŽIADEN border ani surikaty (Image 5) */
.mound:not(.is-active) .mound__stroke,
.mound:not(.is-active) .mound__kats,
.mound:not(.is-active) .mound__ground-fill {
  display: none !important;
}
.mound.is-active .mound__stroke,
.mound.is-active .mound__kats,
.mound.is-active .mound__ground-fill {
  display: block;
}

.mound__kats {
  filter: brightness(0.22) contrast(1.15);
  pointer-events: none;
}

/* Tenká čierna čiara oblúka s rádiusom prechodu (1.4px, Image 5) */
.mound__stroke {
  stroke: #2B2620;
  stroke-width: 1.4px;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .2s ease;
}

/* Meno dieťaťa: vycentrované v strede, čistý priestor bez prekrývania surikatami */
.mound__name {
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -50%);
  font-family: var(--font-hand), 'Yomogi', cursive;
  font-size: clamp(1.25rem, 5.2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--mound-color, var(--ink));
  white-space: nowrap;
  pointer-events: none;
  text-shadow: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.mound:not(.is-active) .mound__name {
  opacity: 0.72;
}
.mound.is-active .mound__name {
  opacity: 1;
  font-weight: 700;
}

/* Základná línia sa kreslí výhradne cez SVG aktívneho krtinca, žiadna div lišta cez celú obrazovku */
.ground__bar {
  display: none !important;
}

/* Uvítací text priamo pod krtincami vo farbe dieťaťa (Snímka 2) */
.tlupa__welcome-wrap {
  width: 100%;
  max-width: var(--content);
  margin: 1.1rem auto 0.4rem;
  padding: 0 1.25rem;
}
.tlupa__welcome {
  font-family: var(--font-hand), 'Yomogi', cursive;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--accent, var(--clay, #D0826E));
  text-align: left;
  margin: 0;
  padding: 0.4rem 0.1rem;
  letter-spacing: 0.02em;
}

/* ===================================================================
   Panely s príležitosťami a darčekmi
   =================================================================== */
.panels, .wrap {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0.6rem 1.15rem 0;
}
.wrap--tight { padding-top: 1.4rem; }
.wrap--center { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding-top: 6rem; }

.panel { display: none; }
.panel.is-active { display: block; animation: panelIn .3s cubic-bezier(.16, 1, .3, 1); }
@keyframes panelIn { from { transform: translateY(10px); } to { transform: translateY(0); } }

/* ===================================================================
   Zoznam príležitostí pod sebou ako kapsuly (Snímka 2)
   =================================================================== */
.occasions-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.2rem;
}

.occasion-group {
  width: 100%;
  border-radius: 28px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.occasion-group.is-open {
  background: var(--accent, var(--clay, #D0826E));
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.occasion-capsule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  background: var(--accent, var(--clay, #D0826E));
  color: #fff;
  border-radius: 28px;
  padding: 0.4rem 0.55rem 0.4rem 0.65rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, border-radius 0.2s ease;
  user-select: none;
}
.occasion-capsule:active { transform: scale(0.99); }

.occasion-group.is-open .occasion-capsule {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.occasion-capsule__badge {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--accent, var(--clay, #D0826E));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.occasion-capsule__title {
  flex: 1;
  text-align: center;
  font-family: var(--font-hand), 'Yomogi', cursive;
  font-size: clamp(1.15rem, 4.8vw, 1.38rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFFFFF;
  padding: 0 0.5rem;
  line-height: 1;
}

.occasion-capsule__date {
  background: #FFFFFF;
  color: var(--accent, var(--clay, #D0826E));
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 18px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  font-family: var(--font-hand), 'Yomogi', cursive;
}

.occasion-capsule__toggle {
  display: none !important;
}

/* Karta detailov rozbalenej príležitosti */
.occasion-card {
  color: #fff;
  padding: 0.4rem 1.15rem 1.4rem;
  border-radius: 0 0 36px 36px;
  animation: panelIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Informácie o udalosti: Kedy a Kde (Image 3) */
.event-info {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  padding: 0.75rem 1.1rem;
  margin-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.98rem;
}
.event-info__row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  line-height: 1.4;
}
.event-info__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: inherit;
}
.event-info__label { font-weight: 700; }
.event-info__val { flex: 1; }

.occasion-card__subtitle {
  font-size: 1.02rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
  margin: 0.2rem 0 1rem;
}

.occasion-card__group {
  margin-top: 1.15rem;
  margin-bottom: 0.6rem;
  font-family: var(--font-hand), 'Yomogi', cursive;
  font-size: 1.18rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.card__empty {
  background: rgba(255, 255, 255, .28);
  border-radius: 24px; padding: .75rem 1.2rem;
  font-size: .95rem; text-align: center;
}

/* Karta HRAČKY (zobrazí sa keď nie je otvorený žiaden event - Image 3) */
.toys-card {
  margin-top: 1.1rem;
  border: 1.8px solid var(--accent, var(--clay, #D0826E));
  border-radius: 28px;
  padding: 1.2rem 1.1rem 1.45rem;
  background: var(--page-bg, #F8EEDB);
  box-shadow: 0 0 0 3.5px var(--page-bg, #F8EEDB), 0 0 0 5.5px var(--accent, var(--clay, #D0826E));
  animation: panelIn .25s cubic-bezier(.16, 1, .3, 1);
}
.toys-card__title {
  text-align: center;
  font-family: var(--font-hand), 'Yomogi', cursive;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent, var(--clay, #D0826E));
  margin-bottom: 0.85rem;
}
.toys-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.gift--toy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 50px;
  border: 1.8px solid var(--accent, var(--clay, #D0826E));
  border-radius: 25px;
  background: #FFFFFF;
  padding: 0.35rem 0.75rem 0.35rem 0.45rem;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.gift--toy:hover {
  background: #FDF9F3;
  transform: scale(1.01);
}
.gift--toy:active { transform: scale(0.99); }
.gift--toy-highlight {
  background: var(--accent, var(--clay, #D0826E)) !important;
  color: #FFFFFF !important;
}
.gift--toy-highlight .gift__title {
  color: #FFFFFF !important;
}
.gift--toy-highlight .gift__badge {
  background: #FFFFFF !important;
  color: var(--accent, var(--clay, #D0826E)) !important;
  border: none !important;
}
.gift--toy-highlight .gift__info-icon {
  background: #FFFFFF !important;
  color: var(--accent, var(--clay, #D0826E)) !important;
  border: none !important;
}
.gift--toy-reserved {
  background: #F2ECE4;
  opacity: 0.85;
}
.gift__badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--accent, var(--clay, #D0826E));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent, var(--clay, #D0826E));
  flex-shrink: 0;
}
.gift--toy .gift__title {
  flex: 1;
  text-align: left;
  padding: 0 0.65rem;
  font-family: var(--font-hand), 'Yomogi', cursive;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent, var(--clay, #D0826E));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gift__info-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--accent, var(--clay, #D0826E));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: serif;
  font-size: 0.95rem;
  font-weight: 700;
  font-style: italic;
  color: var(--accent, var(--clay, #D0826E));
  flex-shrink: 0;
}

/* Riadok darčeka v rozbalenej príležitosti */
.gift {
  display: flex; align-items: center; gap: .6rem;
  width: 100%;
  min-height: 56px;
  background: var(--cream);
  color: var(--ink);
  border-radius: 28px;
  padding: .8rem 1rem .8rem 1.3rem;
  margin-bottom: .6rem;
  font-size: 1.05rem;
  text-align: left;
  transition: transform .15s;
}
.gift:active { transform: scale(.99); }
.gift--reserved { background: #E6DDD4; }
.gift__title { flex: 1; overflow-wrap: anywhere; }
.gift__tag {
  flex-shrink: 0;
  background: var(--accent); color: #fff;
  font-size: .72rem; letter-spacing: .04em;
  padding: .22rem .6rem; border-radius: 12px;
}
.gift__open { flex-shrink: 0; display: inline-flex; color: var(--accent); }

/* ===================================================================
   Detail darčeka (Snímka 2 a Image 2)
   =================================================================== */
.detail {
  background: var(--cream, #FAF6ED);
  border: 2.2px solid var(--accent, var(--clay, #D0826E));
  box-shadow: 0 0 0 3px #FAF6ED, 0 0 0 5.5px var(--accent, var(--clay, #D0826E)), 0 8px 28px rgba(0, 0, 0, 0.08);
  border-radius: 28px;
  padding: 1.15rem 1.15rem 1.6rem;
  color: var(--ink);
}
.detail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: 42px;
}
.detail__category-wrap {
  flex: 1;
  text-align: center;
}
.detail__category {
  font-family: var(--font-hand), 'Yomogi', cursive;
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.detail__dots {
  letter-spacing: 0.25em;
  color: var(--accent);
  opacity: 0.75;
}
.detail__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.8px dotted var(--accent, var(--clay, #D0826E));
  color: var(--accent, var(--clay, #D0826E));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 0 0 2.5px #ffffff, 0 0 0 4.5px var(--accent, var(--clay, #D0826E));
  transition: transform .15s ease;
}
.detail__close:active { transform: scale(0.92); }
.detail__title {
  text-align: center;
  font-family: var(--font-hand), 'Yomogi', cursive;
  font-size: clamp(1.35rem, 5.6vw, 1.75rem);
  color: var(--accent);
  letter-spacing: 0.03em;
  margin: 0.4rem 0 0.85rem;
  line-height: 1.2;
}
.detail__text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 1rem;
}
.detail__links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.85rem 0 1rem;
}
.detail__link-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.98rem;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-style: wavy;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}
.detail__link-item:hover {
  opacity: 0.85;
}
.detail__link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
/* Prekrývajúce sa obláčikové rámy 3, 2, 1 podľa Image 2 & požiadavky */
/* Referenčné fotky v obláčikoch: väčšie, vedľa seba podľa počtu (1 = veľká, 2 = stredná, 3 = vedľa seba) */
.detail__cloud-photos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 1.25rem 0 0.85rem;
  width: 100%;
  flex-wrap: nowrap;
}

.detail__cloud-frame {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.22s ease;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
}

.detail__cloud-frame:hover,
.detail__cloud-frame:focus-visible {
  transform: scale(1.06);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.2));
  outline: none;
}

/* 1 fotka – najväčšia, zreteľne viditeľná voľným okom */
.detail__cloud-photos--count-1 .detail__cloud-frame {
  width: min(205px, 66vw);
  aspect-ratio: 140 / 115;
  height: auto;
}

/* 2 fotky – trošku menšie, vedľa seba */
.detail__cloud-photos--count-2 .detail__cloud-frame {
  width: min(136px, 42vw);
  aspect-ratio: 140 / 115;
  height: auto;
}

/* 3 fotky – málinko menšie, stále zreteľné a vedľa seba */
.detail__cloud-photos--count-3 .detail__cloud-frame {
  width: min(100px, 28vw);
  aspect-ratio: 140 / 115;
  height: auto;
}

.detail__cloud-frame--empty {
  cursor: default;
}
.detail__cloud-frame--empty:hover {
  transform: none;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}

.detail__cloud-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* Animovaný Lightbox modal – zväčšenie fotky do zaobleného obdĺžnika / štvorca */
.gift-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(28, 23, 18, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.gift-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.gift-lightbox__dialog {
  position: relative;
  max-width: min(90vw, 540px);
  max-height: min(85vh, 600px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: scale(0.85);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.gift-lightbox.is-open .gift-lightbox__dialog {
  transform: scale(1);
}

.gift-lightbox__img {
  width: 100%;
  height: auto;
  max-height: min(78vh, 540px);
  object-fit: contain;
  border-radius: 24px;
  border: 3.5px solid #FAF6ED;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  background: #FFFFFF;
  display: block;
}

.gift-lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #3A3731;
  color: #FAF6ED;
  border: 2px solid #FAF6ED;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.18s ease, background-color 0.18s ease;
  z-index: 2;
}

.gift-lightbox__close:hover {
  transform: scale(1.1);
  background: #23201C;
}
.detail__surri-tipy-wrap {
  display: flex;
  justify-content: center;
  margin: 0.75rem 0;
}
.detail__surri-tipy {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #3A3731;
  color: #FAF6ED;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-hand), 'Yomogi', cursive;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.05em;
  box-shadow: 0 3px 10px rgba(45, 40, 35, 0.22);
  transition: transform .2s ease, background-color .2s ease;
  text-decoration: none;
}
.detail__surri-tipy:hover {
  transform: scale(1.06);
  background: #2D2823;
}
.btn--reserve-pill {
  width: 100%;
  min-height: 52px;
  border-radius: 26px;
  border: 1.8px solid var(--accent);
  background: #FFFFFF;
  color: var(--accent);
  font-family: var(--font-hand), 'Yomogi', cursive;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}
.btn--reserve-pill:hover {
  background: var(--accent);
  color: #FFFFFF;
}
.wavy { display: block; color: var(--accent); font-size: .95rem; }
.wavy__label { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wavy__line { display: block; width: 100%; height: 11px; }

.chip-in {
  margin-top: .9rem;
  border: 1.5px solid var(--accent);
  border-radius: 16px; padding: .7rem .95rem;
}
.chip-in__head { display: flex; justify-content: space-between; font-size: .92rem; font-weight: 700; color: var(--accent); }
.chip-in__track { margin-top: .45rem; height: 8px; background: rgba(58, 55, 49, 0.1); border-radius: 4px; overflow: hidden; }
.chip-in__fill { height: 100%; background: var(--accent); }

/* Príspevok (Dvojkrokový proces) */
.chipin-block {
  width: 100%;
}
.chipin-form {
  width: 100%;
  background: rgba(255, 255, 255, 0.75);
  border: 2px dashed var(--accent);
  border-radius: 20px;
  padding: 1.15rem 1rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 14px rgba(58, 55, 49, 0.06);
}
.chipin-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  color: var(--ink);
  margin-bottom: 0.75rem;
  font-family: var(--font-hand), 'Yomogi', cursive;
  letter-spacing: 0.04em;
}
.chipin-fields {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}
.chipin-input {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid rgba(58, 55, 49, 0.2);
  padding: 0 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #FFFFFF;
  box-sizing: border-box;
}
.chipin-input:focus {
  border-color: var(--accent);
  outline: none;
}
.chipin-amount-row {
  position: relative;
  display: flex;
  align-items: center;
}
.chipin-eur {
  position: absolute;
  right: 1rem;
  font-weight: 700;
  color: var(--ink);
  opacity: 0.6;
}
.chipin-quick-sums {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 0.65rem 0 0.85rem;
}
.chipin-sum-btn {
  background: #FFFFFF;
  border: 1.5px solid rgba(58, 55, 49, 0.18);
  border-radius: 20px;
  padding: 0.3rem 0.85rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s;
}
.chipin-sum-btn:hover {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}
.btn--chipin-next {
  width: 100%;
  height: 44px;
  background: var(--accent);
  color: #FFFFFF;
  border-radius: 50px;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}
.btn--chipin-next:active {
  transform: scale(0.98);
}
.chipin-summary {
  background: rgba(208, 130, 110, 0.12);
  border-radius: 12px;
  padding: 0.55rem 0.85rem;
  font-size: 0.95rem;
  text-align: center;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.chipin-label {
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.85;
}
.chipin-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.85rem;
}
.chipin-back-link {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  cursor: pointer;
  text-decoration: underline;
  padding: 0.3rem;
}
.btn--poskladat-sa {
  flex: 1;
  background: var(--accent) !important;
  color: #FFFFFF !important;
  font-size: 1.15rem !important;
}
.btn--reserve-secondary {
  width: 100%;
  min-height: 46px;
  background: transparent;
  color: var(--accent);
  border: 1.8px solid var(--accent);
  border-radius: 50px;
  font-family: var(--font-hand), 'Yomogi', cursive;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  margin-top: 0;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn--reserve-secondary:hover {
  background: rgba(208, 130, 110, 0.08);
}
.reserve-form--secondary {
  margin-top: 0;
  width: 100%;
}

.detail__reserve { margin-top: 0.85rem; display: flex; flex-direction: column; align-items: center; gap: 0.85rem; width: 100%; }
.detail__note { font-size: .82rem; color: var(--ink-soft); text-align: center; }

.reserve-form { width: 100%; }
.reserve-form__input {
  display: flex; align-items: center; gap: .5rem;
  border: 2px solid var(--accent); border-radius: 30px;
  padding: .28rem .3rem .28rem 1.2rem;
}
.reserve-form__input input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 1.05rem; }
.reserve-form__input input::placeholder { color: rgba(58, 55, 49, .4); }
.reserve-form__go {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%; background: var(--accent); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
}

.reserved-pill {
  width: 100%;
  background: var(--accent); color: #fff;
  border-radius: 30px; padding: .7rem 1.2rem;
  font-size: 1.2rem; letter-spacing: .06em; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.reserved-pill__by { font-size: .82rem; letter-spacing: 0; opacity: .95; }

/* ===================================================================
   Tlačidlá a formuláre
   =================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 30px; padding: .75rem 1.6rem;
  font-size: 1.1rem; letter-spacing: .05em; text-align: center;
  cursor: pointer;
  transition: transform .15s;
}
.btn:active { transform: scale(.97); }
.btn--dark { background: var(--ink); color: var(--cream); width: 100%; }
.btn--outline { border: 2px solid var(--accent); color: var(--accent); width: 100%; font-size: 1.25rem; }
.btn--ghost { background: rgba(255, 255, 255, .55); color: var(--ink); width: 100%; }
.btn--link { color: var(--accent); text-decoration: underline; font-size: .95rem; padding: .3rem; }

.pill-input {
  width: 100%;
  background: var(--cream);
  border: 0; border-radius: 50px;
  padding: .9rem 1.5rem;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(58, 55, 49, .1);
}
.pill-input:focus { outline: none; box-shadow: 0 0 0 3px rgba(58, 55, 49, .3); }

.form { display: flex; flex-direction: column; gap: .35rem; margin-top: 1rem; }
.field { display: block; margin-bottom: 1rem; }
.field__label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.field__input {
  width: 100%;
  background: #FFFFFF !important;
  border: 2px solid rgba(58, 55, 49, 0.28);
  border-radius: 16px;
  padding: 0.75rem 1rem;
  font-size: 1.02rem;
  color: var(--ink);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field__input::placeholder {
  color: #8C8275;
  opacity: 0.78;
  font-size: 0.94rem;
}
.field__input:hover {
  border-color: rgba(58, 55, 49, 0.48);
}
.field__input:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04), 0 0 0 3.5px rgba(208, 130, 110, 0.25);
  background: #FFFFFF !important;
}
.field__input--short { max-width: 10rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===================================================================
   Ostatné stránky
   =================================================================== */
.page { padding-top: 7.6rem; padding-bottom: 3rem; }
.page__head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .4rem; margin-bottom: 1.6rem; }
.page__head img { width: 74px; }
.page__title { font-size: clamp(1.9rem, 8vw, 2.3rem); -webkit-text-stroke: .6px currentColor; line-height: 1.15; }
.page__subtitle { font-size: 1.05rem; color: var(--ink); opacity: .85; }

.info-card { background: var(--cream); border-radius: 24px; padding: 1.4rem; margin-bottom: 1.2rem; }
.info-card__img { border-radius: 16px; margin-bottom: .8rem; }
.info-card__title { font-size: 1.3rem; margin-bottom: .5rem; }
.info-card__text { font-size: 1rem; line-height: 1.55; }

.contact-list { list-style: none; margin-top: 1.2rem; display: flex; flex-direction: column; gap: .5rem; }
.contact-list li { display: flex; justify-content: space-between; gap: 1rem; font-size: .96rem; }
.contact-list span:first-child { color: var(--ink-soft); }

.divider { display: block; width: 100%; max-width: 460px; margin: 1.5rem auto 0; opacity: .75; }

.plain-menu { list-style: none; display: flex; flex-direction: column; gap: 1.2rem; align-items: center; }
.plain-menu a { font-size: 1.8rem; letter-spacing: .05em; }

.empty-note { text-align: center; color: var(--ink-soft); padding: 2rem 0 1rem; }

.locked, .notfound {
  width: 100%; max-width: 340px;
  display: flex; flex-direction: column; align-items: center; gap: .8rem; text-align: center;
  position: relative;
  z-index: 10;
}
.locked__title { font-size: 1.8rem; letter-spacing: .08em; }
.locked__text { font-size: 1rem; }
.locked__form { width: 100%; display: flex; flex-direction: column; gap: .8rem; margin-top: .6rem; }

.notfound__cloud { position: relative; width: 100%; color: var(--bubble); pointer-events: none; }
.notfound__cloud .cloud__shape { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.notfound .cloud__text { padding: 3rem 2.8rem; pointer-events: none; }
.notfound img { margin-top: -.8rem; width: 62px; pointer-events: none; }
.notfound__btn {
  position: relative;
  z-index: 20;
  cursor: pointer !important;
  pointer-events: auto !important;
  text-decoration: none;
  width: 100%;
  border-radius: 50px;
  padding: 0.85rem 1.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(43, 38, 32, 0.22);
}

/* ===================================================================
/* ===================================================================
   Optimalizácia pre iPhone mini a malé zariadenia (360px – 390px)
   =================================================================== */
@media (max-width: 390px) {
  body {
    font-size: 15.5px;
  }

  /* 1. Úvodná stránka (Home) */
  .home {
    padding: 0 0.95rem calc(1.2rem + env(safe-area-inset-bottom, 0px));
  }

  .code__field {
    max-width: min(290px, 92vw);
  }

  .code__input {
    height: 52px;
    font-size: 1.15rem;
    padding: 0 3.8rem 0 1.25rem;
  }

  .code__go {
    width: 40px;
    height: 40px;
    right: 6px;
  }

  .code__hint {
    max-width: 86vw;
  }

  .help {
    padding-top: 1.2rem;
  }

  .help__inner {
    max-width: 330px;
    padding-left: 20px;
    padding-bottom: 40px;
  }

  .cloud__text {
    padding: 1.15rem 1.15rem;
    font-size: 0.82rem;
    line-height: 1.38;
    gap: 0.55rem;
  }

  .cloud__text p {
    max-width: 225px;
    font-size: 0.82rem;
    line-height: 1.38;
  }

  .cloud__btn {
    padding: 0.42rem 1.15rem;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
  }

  .help__kat {
    width: 78px;
  }

  /* 2. Obloha a krtince (Tlupa) */
  :root {
    --mound-w: clamp(125px, 38vw, 155px);
    --sky-h: clamp(155px, 22vh, 175px);
  }

  .sky {
    height: var(--sky-h);
  }

  .tlupa__welcome-wrap {
    padding: 0 0.95rem;
    margin: 0.85rem auto 0.25rem;
  }

  .tlupa__welcome {
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .panels, .wrap {
    padding: 0.5rem 0.85rem 0;
  }

  .occasions-stack {
    gap: 0.65rem;
  }

  .occasion-capsule {
    min-height: 50px;
    padding: 0.35rem 0.45rem 0.35rem 0.55rem;
    border-radius: 25px;
  }

  .occasion-capsule__badge {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }
  .occasion-capsule__badge svg {
    width: 20px;
    height: 20px;
  }

  .occasion-capsule__title {
    font-size: clamp(1.02rem, 4.2vw, 1.22rem);
    letter-spacing: 0.08em;
    padding: 0 0.35rem;
  }

  .occasion-capsule__date {
    font-size: 0.8rem;
    padding: 0.28rem 0.62rem;
    border-radius: 14px;
  }

  .occasion-card {
    padding: 0.35rem 0.85rem 1.2rem;
    border-radius: 0 0 28px 28px;
  }

  .event-info {
    padding: 0.65rem 0.85rem;
    font-size: 0.88rem;
    border-radius: 18px;
  }

  .toys-card {
    padding: 1rem 0.85rem 1.25rem;
    border-radius: 24px;
  }
  .toys-card__title {
    font-size: 1.35rem;
  }

  .gift--toy {
    min-height: 46px;
    padding: 0.3rem 0.65rem 0.3rem 0.4rem;
    border-radius: 23px;
  }

  .gift--toy .gift__title {
    font-size: 0.96rem;
    padding: 0 0.5rem;
  }

  .gift {
    min-height: 50px;
    padding: 0.65rem 0.85rem 0.65rem 1rem;
    border-radius: 25px;
    font-size: 0.98rem;
  }

  /* 3. Detail darčeka */
  .detail {
    padding: 1rem 0.85rem 1.4rem;
    border-radius: 24px;
  }

  .detail__title {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    margin: 0.35rem 0 0.75rem;
  }

  .detail__text {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .detail__cloud-photos--count-1 .detail__cloud-frame {
    width: min(180px, 62vw);
  }
  .detail__cloud-photos--count-2 .detail__cloud-frame {
    width: min(120px, 38vw);
  }
  .detail__cloud-photos--count-3 .detail__cloud-frame {
    width: min(88px, 26vw);
  }

  .btn--reserve-pill {
    min-height: 48px;
    font-size: 1.05rem;
    border-radius: 24px;
  }

  .chip-in {
    padding: 0.6rem 0.8rem;
    border-radius: 14px;
  }

  .chipin-form {
    padding: 0.95rem 0.75rem;
    border-radius: 18px;
  }

  .chipin-sum-btn {
    padding: 0.28rem 0.62rem;
    font-size: 0.85rem;
  }

  .btn--reserve-secondary {
    min-height: 44px;
    font-size: 1.05rem;
  }

  /* 4. Rodičovský profil (Dashboard) */
  .admin-page {
    padding-top: calc(4.8rem + env(safe-area-inset-top, 0px));
    padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
  }

  .parent-head {
    margin-bottom: 1.25rem;
    gap: 0.45rem;
  }

  .parent-head__code {
    font-size: clamp(2rem, 8.5vw, 2.5rem);
    letter-spacing: 0.12em;
  }

  .share-box__bar {
    padding: 0.26rem 0.3rem 0.26rem 0.75rem;
    gap: 0.4rem;
  }

  .share-box__url {
    font-size: 0.8rem;
  }

  .share-box__copy-btn {
    padding: 0.45rem 0.8rem;
    font-size: 0.8rem;
    gap: 0.3rem;
  }

  .parent-head__actions {
    gap: 0.5rem;
    width: 100%;
  }

  .btn-action {
    flex: 1 1 calc(50% - 0.3rem);
    min-width: 120px;
    padding: 0.48rem 0.85rem;
    font-size: 0.84rem;
    justify-content: center;
  }

  .board {
    padding: 1rem 0.85rem;
    border-radius: 20px;
    margin-bottom: 1.1rem;
  }

  .board__title {
    font-size: 1.2rem;
  }

  .member-card {
    border-radius: 18px;
  }

  .member-card__header {
    padding: 0.75rem 0.75rem;
    gap: 0.35rem;
  }

  .member-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .member-card__name {
    font-size: 1.05rem;
  }

  .member-card__meta {
    font-size: 0.78rem;
  }

  .member-card__arrow {
    width: 28px;
    height: 28px;
    margin-left: 0.15rem;
  }

  .member-card__actions {
    gap: 0.35rem;
  }

  .member-card__edit-btn, .row__edit-btn {
    padding: 0.32rem 0.65rem;
    font-size: 0.78rem;
    gap: 0.25rem;
  }

  .del-btn--trash {
    width: 30px;
    height: 30px;
  }

  /* 5. Plávajúce okno úprav (Floating Modal) */
  .floating-modal {
    padding: calc(0.5rem + env(safe-area-inset-top, 0px)) 0.45rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
  }

  .floating-modal__card {
    border-radius: 20px;
    max-height: 94dvh;
  }

  .floating-modal__head {
    padding: 0.85rem 1rem 0.75rem;
  }

  .floating-modal__title {
    font-size: 1.12rem;
  }

  .floating-modal__body {
    padding: 0.95rem 0.85rem;
  }

  .floating-modal__actions {
    margin-top: 1.1rem;
    gap: 0.5rem;
  }

  .floating-modal__cancel-btn,
  .floating-modal__actions .btn {
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
  }

  /* 6. Hlavné menu (Menu) */
  .menu__inner {
    max-width: 320px;
    padding: calc(3.8rem + env(safe-area-inset-top, 0px)) 1rem calc(2rem + env(safe-area-inset-bottom, 0px));
    gap: 1.35rem;
  }

  .menu__code {
    width: min(270px, 90vw);
    height: 48px;
    font-size: 1.05rem;
  }

  .menu__links {
    gap: 0.85rem;
  }

  .menu__link {
    font-size: clamp(1.4rem, 5.5vw, 1.75rem);
  }

  .menu__parent-box {
    max-width: 270px;
    padding: 0.9rem 1.1rem 0.85rem;
  }

  .menu__parent-btn {
    font-size: 1.05rem;
    padding: 0.55rem 1rem;
  }

  /* 7. Prihlasovanie a formuláre */
  .auth {
    padding: calc(5.5rem + env(safe-area-inset-top, 0px)) 1rem calc(2rem + env(safe-area-inset-bottom, 0px));
  }

  .auth__form {
    max-width: min(320px, 92vw);
  }

  .pill-input {
    height: 50px;
    font-size: 1.05rem;
  }

  .captcha-card {
    padding: 0.85rem 1rem;
  }
}

/* Prispôsobenie pre nízke obrazovky (iPhone mini v režime s lištami Safari / na šírku) */
@media (max-height: 740px) {
  :root { --code-top: clamp(195px, 28vh, 240px); }
  @supports (height: 100dvh) { :root { --code-top: clamp(195px, 28dvh, 240px); } }

  .home {
    justify-content: space-between;
  }

  .help {
    padding-top: 0.5rem;
  }

  .help__inner {
    max-width: min(310px, 85vw);
    padding-left: 20px;
    padding-bottom: 38px;
  }

  .cloud__text {
    padding: 1rem 1rem;
    gap: 0.45rem;
  }

  .cloud__text p {
    font-size: 0.8rem;
    line-height: 1.32;
    max-width: 215px;
  }

  .help__kat {
    width: 72px;
  }

  .menu__inner {
    padding-top: calc(3.4rem + env(safe-area-inset-top, 0px));
    padding-bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px));
    gap: 1.15rem;
  }
}

/* Extra malé displeje (<= 340px) */
@media (max-width: 340px) {
  body {
    font-size: 15px;
  }

  .code__field {
    max-width: 260px;
  }

  .code__input {
    font-size: 1.05rem;
    height: 48px;
  }

  .cloud__text p {
    font-size: 0.78rem;
  }

  .cloud__btn {
    font-size: 0.74rem;
    padding: 0.38rem 0.95rem;
  }

  .member-card__edit-btn span,
  .row__edit-btn span {
    display: none;
  }

  .member-card__edit-btn,
  .row__edit-btn {
    padding: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ===================================================================
   Prihlásenie a registrácia rodiča
   =================================================================== */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.auth {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 7rem 1.15rem calc(2rem + env(safe-area-inset-bottom, 0px));
}
.auth__form { width: 100%; max-width: 330px; }
.auth__fields { display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.auth__hint { margin-bottom: -.2rem; }
.auth__note { font-size: .82rem; color: rgba(58, 55, 49, .75); text-align: center; margin-top: -.5rem; }

.pw { position: relative; width: 100%; }
.pw .pill-input, .pw .field__input { padding-right: 3rem; }
.pw__eye {
  position: absolute; right: .7rem; top: 50%; transform: translateY(-50%);
  width: 2rem; height: 2rem;
  background-repeat: no-repeat; background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6558' stroke-width='1.8'%3E%3Cpath d='M2 12s3.6-6.5 10-6.5S22 12 22 12s-3.6 6.5-10 6.5S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}
.pw__eye.is-on {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6558' stroke-width='1.8'%3E%3Cpath d='M2 12s3.6-6.5 10-6.5S22 12 22 12s-3.6 6.5-10 6.5S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M3 3l18 18'/%3E%3C/svg%3E");
}

.captcha-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  background: var(--bubble);
  border: 2px solid rgba(124, 152, 167, 0.25);
  border-radius: 24px;
  padding: 0.65rem 0.85rem 0.65rem 1.15rem;
  width: 100%;
  box-sizing: border-box;
}
.captcha-card__label {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  cursor: pointer;
}
.captcha-card__badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  opacity: 0.85;
}
.captcha-card__q {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}
.captcha-card__input {
  width: 6.2rem;
  flex-shrink: 0;
  background: #FFFFFF;
  border: 2px solid rgba(58, 55, 49, 0.22);
  border-radius: 18px;
  padding: 0.55rem 0.75rem;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.captcha-card__input::placeholder {
  color: #8C8275;
  opacity: 0.7;
  font-size: 0.88rem;
  font-weight: 400;
}
.captcha-card__input:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(208, 130, 110, 0.25);
}

.auth__submit-btn {
  width: 100%;
  border-radius: 50px;
  padding: 0.95rem 1.6rem;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-top: 0.85rem;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(43, 38, 32, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.auth__submit-btn:hover {
  background-color: #1c1814;
  box-shadow: 0 6px 18px rgba(43, 38, 32, 0.32);
}
.auth__submit-btn:active {
  transform: scale(0.98);
}
.auth__bottom {
  margin-top: 3.2rem;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
}

/* ===================================================================
   Rodičovský profil – Prémiový a prehľadný dizajn
   =================================================================== */
.admin-page { padding-top: 6.8rem; padding-bottom: 3.5rem; }

.parent-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.8rem;
  gap: 0.55rem;
}

.parent-head__top-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.parent-head__eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.95);
  color: var(--clay, #B38274);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35rem 1.15rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(43, 38, 32, 0.08);
}

.parent-head__code {
  font-size: 2.9rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  color: var(--ink, #2B2620);
  margin: 0.1rem 0 0.1rem;
}

.parent-head__mail {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  color: var(--ink, #2B2620);
  background: rgba(255, 255, 255, 0.65);
  padding: 0.28rem 0.95rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  margin: 0;
}
.parent-head__mail svg {
  color: var(--clay, #B38274);
  flex-shrink: 0;
}

/* Odkaz pre rodinu s tlačidlom na skopírovanie */
.share-box {
  width: 100%;
  max-width: 480px;
  margin-top: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.share-box__label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(43, 38, 32, 0.75);
  padding-left: 0.6rem;
}

.share-box__bar {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 999px;
  padding: 0.32rem 0.35rem 0.32rem 1.1rem;
  box-shadow: 0 3px 14px rgba(43, 38, 32, 0.08);
  border: 1px solid rgba(179, 130, 116, 0.25);
  gap: 0.6rem;
  min-width: 0;
}

.share-box__url {
  flex: 1;
  min-width: 0;
  font-family: 'DM Mono', monospace, ui-monospace;
  font-size: 0.88rem;
  color: var(--ink-soft, #6E6558);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-box__copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--clay, #B38274);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.52rem 1.1rem;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(179, 130, 116, 0.35);
  transition: background-color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

.share-box__copy-btn:hover {
  background: #9e6f62;
  box-shadow: 0 4px 10px rgba(179, 130, 116, 0.45);
}

.share-box__copy-btn:active {
  transform: scale(0.97);
}

.share-box__copy-btn.is-copied {
  background: #5b8e62;
  box-shadow: 0 2px 8px rgba(91, 142, 98, 0.4);
}

/* Prehľadné a jasné akčné tlačidlá (Pohľad tlupy & Odhlásiť sa) */
.parent-head__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.58rem 1.25rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-action:active {
  transform: scale(0.97);
}

.btn-action--primary {
  background: #ffffff;
  color: var(--ink, #2B2620);
  box-shadow: 0 3px 10px rgba(43, 38, 32, 0.09);
  border: 1px solid rgba(43, 38, 32, 0.08);
}

.btn-action--primary:hover {
  background: #faf7f2;
  box-shadow: 0 5px 14px rgba(43, 38, 32, 0.14);
}

.btn-action--primary svg {
  color: var(--clay, #B38274);
}

.btn-action--secondary {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink, #2B2620);
  border: 1px solid rgba(43, 38, 32, 0.15);
  backdrop-filter: blur(4px);
}

.btn-action--secondary:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(43, 38, 32, 0.25);
}

.btn-action--secondary svg {
  color: var(--ink-soft, #6E6558);
}

/* ===================================================================
   Sekcie a Akordeón členov tlupy
   =================================================================== */
.board {
  background: var(--cream, #FBF6EE);
  border-radius: 24px;
  padding: 1.35rem;
  margin-bottom: 1.35rem;
  box-shadow: 0 4px 18px rgba(43, 38, 32, 0.06);
}

.board__header-block {
  margin-bottom: 1.1rem;
}

.board__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink, #2B2620);
  margin-bottom: 0.25rem;
}

.board__desc {
  font-size: 0.88rem;
  color: var(--ink-soft, #6E6558);
  line-height: 1.35;
  margin: 0;
}

.board__sub { font-size: 1.02rem; color: var(--clay); margin: .8rem 0 .4rem; }
.board__empty { color: var(--ink-soft); font-size: .92rem; padding: .4rem 0; }
.board__list { list-style: none; display: flex; flex-direction: column; gap: .55rem; }

/* Zoznam kariet členov (akordeón) */
.members-stack {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.member-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(43, 38, 32, 0.05);
  border: 2px solid transparent;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.member-card.is-open {
  border-color: rgba(179, 130, 116, 0.4);
  box-shadow: 0 6px 20px rgba(43, 38, 32, 0.08);
}

.member-card__header {
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* Umožňuje bezpečné rozbalenie potvrdenia zmazania na riadok nižšie */
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1.15rem;
  transition: background-color 0.15s ease;
}

.member-card__trigger {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
}

.member-card__trigger:hover .member-card__name {
  color: var(--clay, #B38274);
}

.member-card__info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  cursor: pointer;
}

.member-card__name {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink, #2B2620);
  line-height: 1.25;
  word-break: break-word;
  transition: color 0.15s ease;
}

.member-card__meta {
  font-size: 0.83rem;
  color: var(--ink-soft, #6E6558);
  line-height: 1.35;
  word-break: break-word;
}

.member-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sand, #F2E8DC);
  color: var(--ink, #2B2620);
  flex-shrink: 0;
  margin-left: 0.35rem;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.15s ease, color 0.15s ease;
}
.member-card__arrow svg {
  pointer-events: none;
}

.member-card.is-open .member-card__arrow {
  transform: rotate(180deg);
  background: var(--clay, #B38274);
  color: #ffffff;
}

.member-card__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.member-card__del-form {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.member-card__edit-btn,
.row__edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--sand, #F2E8DC);
  color: var(--ink, #2B2620);
  border: none;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.member-card__edit-btn:hover,
.row__edit-btn:hover {
  background: var(--clay, #B38274);
  color: #ffffff;
}

.member-card__edit-btn:active,
.row__edit-btn:active {
  transform: scale(0.96);
}

.member-card__del-btn,
.row__del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--ink-soft, #6E6558);
  padding: 0.4rem;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.member-card__del-btn:hover,
.row__del:hover {
  color: #c94a38;
  background: rgba(201, 74, 56, 0.08);
}

.member-card__del-btn:active,
.row__del:active {
  transform: scale(0.92);
}

.member-card__body {
  display: none;
  padding: 0.4rem 1.15rem 1.35rem;
  border-top: 1px solid rgba(43, 38, 32, 0.08);
  background: #ffffff;
}

.member-card.is-open .member-card__body {
  display: block !important;
}

.member-section {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(179, 130, 116, 0.3);
}

.member-section:first-child {
  margin-top: 0.4rem;
  padding-top: 0.3rem;
  border-top: none;
}

.member-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.member-section__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clay, #B38274);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}

.member-empty {
  font-size: 0.88rem;
  color: var(--ink-soft, #6E6558);
  font-style: italic;
  margin: 0.4rem 0 0.8rem;
}

.adder--member-settings > summary {
  background: var(--sand, #F2E8DC) !important;
  color: var(--ink, #2B2620) !important;
  font-size: 0.92rem !important;
  padding: 0.55rem 1.1rem !important;
}

.adder--new-member {
  margin-top: 1.25rem;
}

/* ===================================================================
   Riadky (darčeky, príležitosti, rezervácie) a FIX stláčania textu
   =================================================================== */
.row {
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* ZABRAŇUJE stlačeniu do jednopísmenového stĺpca */
  gap: .65rem;
  background: #fff;
  border-radius: 16px;
  padding: .7rem .9rem;
  border: 1px solid rgba(43, 38, 32, 0.06);
}

.row__info {
  flex: 1 1 180px;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.row__name {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink, #2B2620);
  word-break: break-word;
  overflow-wrap: break-word;
}

.row__meta {
  font-size: .82rem;
  color: var(--ink-soft);
  word-break: break-word;
  line-height: 1.35;
}

.row__dot { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; }
.row__icon { width: 30px; height: 30px; flex-shrink: 0; color: var(--clay); display: inline-flex; align-items: center; justify-content: center; }
.row__star { color: var(--clay); }
.row__del {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink-soft);
  padding: 0 .35rem;
  flex-shrink: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}
.row__del:hover {
  color: var(--clay);
}

.tag { font-size: .74rem; font-weight: 600; padding: .24rem .6rem; border-radius: 12px; white-space: nowrap; flex-shrink: 0; }
.tag--free { background: #7D9C7C; color: #fff; }
.tag--res { background: var(--clay); color: #fff; }

.adder { margin-top: .95rem; }
.adder > summary {
  cursor: pointer; list-style: none;
  background: var(--clay); color: var(--cream);
  border-radius: 26px; padding: .55rem 1.2rem;
  font-size: .96rem; text-align: center;
  transition: opacity 0.15s ease;
}
.adder > summary:hover { opacity: 0.92; }
.adder > summary::-webkit-details-marker { display: none; }
.adder[open] > summary { margin-bottom: 1rem; }

.check {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .95rem;
  margin-bottom: 1.15rem;
  cursor: pointer;
}
.check input { width: 19px; height: 19px; accent-color: var(--clay); flex-shrink: 0; cursor: pointer; }
.check em { font-style: normal; color: var(--ink-soft); }
.checks { display: flex; flex-direction: column; gap: .4rem; }

.field--parents {
  margin-top: 1.35rem;
  margin-bottom: 1.6rem;
}
.field__parent-inputs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
fieldset.field {
  border: 0;
  padding: 0;
  margin: 0 0 1.5rem;
}
legend.field__label {
  padding: 0;
  margin-bottom: 0.5rem;
  display: block;
}
.settings-save-btn {
  margin-top: 1.6rem;
  width: 100%;
  cursor: pointer !important;
  border-radius: 50px;
  padding: 0.95rem 1.6rem;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(43, 38, 32, 0.22);
}

.swatches { display: flex; flex-wrap: wrap; gap: .45rem; }
.swatch {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer; display: inline-block;
}
.swatch:has(input:checked) { border-color: var(--ink); transform: scale(1.1); }
.swatch input { opacity: 0; width: 100%; height: 100%; cursor: pointer; }

.link-row { display: flex; gap: .4rem; margin-bottom: .4rem; }
.link-row input:first-child { flex: 0 0 38%; }

select.field__input { appearance: none; background-image:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6558' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; background-size: 1.1rem;
  padding-right: 2.4rem;
}

/* ===================================================================
   Potvrdenie akcie priamo na stránke (inline) – plná šírka, žiadny squish
   =================================================================== */
form:has(.confirm-inline),
form.has-confirm,
.member-card__del-form:has(.confirm-inline),
.member-card__del-form.has-confirm {
  flex: 1 0 100% !important;
  width: 100% !important;
  order: 10 !important;
}

form:has(.confirm-inline) .row__del,
form.has-confirm .row__del,
.member-card__del-form:has(.confirm-inline) .member-card__del-btn,
.member-card__del-form.has-confirm .member-card__del-btn {
  display: none !important;
}

.confirm-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
  background: var(--cream, #FBF6EE);
  border: 2px solid var(--clay, #B38274);
  border-radius: 18px;
  padding: .75rem 1rem;
  margin-top: .6rem;
  font-size: .92rem;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 4px 14px rgba(43, 38, 32, 0.08);
}
.confirm-inline__text {
  flex: 1 1 100%;
  font-weight: 500;
  color: var(--ink, #2B2620);
  line-height: 1.35;
}
.confirm-inline__yes, .confirm-inline__no {
  border-radius: 20px;
  padding: .42rem 1.15rem;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.confirm-inline__yes:active, .confirm-inline__no:active {
  transform: scale(0.96);
}
.confirm-inline__yes { background: var(--clay); color: var(--cream); }
.confirm-inline__no { background: var(--sand); color: var(--ink); }

/* Príklad pri kóde tlupy – zobrazí sa až po opakovaných neúspešných pokusoch */
.code__captcha { width: min(300px, calc(100% - 2.3rem)); margin: .6rem auto 0; }

/* ===================================================================
   Surri Tipy – prémiový redesign (krémové pozadie, moderné karty, čisté SVG)
   =================================================================== */
.tips-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--gold, #DE9E48);
  padding: 5.5rem 1.15rem 4rem;
  color: var(--ink);
}

.tips-wrap {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.tips-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
}

.tips-hero__mascot {
  width: 80px;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
}

.tips-hero__title {
  font-family: var(--font-hand, 'Yomogi', cursive);
  font-size: clamp(2rem, 7.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
  margin: 0;
  -webkit-text-stroke: 0.35px currentColor;
}

.tips-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.35);
  color: #5E390A;
  padding: 0.45rem 1.15rem;
  border-radius: 20px;
  font-size: 0.94rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tips-hero__subtitle {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
  opacity: 0.95;
  max-width: 480px;
  margin: 0;
}

.tips-divider-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0.3rem 0;
}

.tips-divider-img {
  width: 100%;
  max-width: 520px;
  height: auto;
  opacity: 0.85;
}

.tips-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.tips-card {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 1.35rem 1.4rem;
  box-shadow: 0 4px 16px rgba(58, 55, 49, 0.07);
  border: 1.5px solid rgba(208, 130, 110, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tips-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(58, 55, 49, 0.11);
}

.tips-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.tips-card__icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(208, 130, 110, 0.14);
  color: var(--clay, #D0826E);
  transition: transform 0.2s ease;
}

.tips-card--clay .tips-card__icon-badge {
  background: rgba(208, 130, 110, 0.16);
  color: #C06852;
}

.tips-card--blue .tips-card__icon-badge {
  background: rgba(143, 174, 194, 0.22);
  color: #4A7A98;
}

.tips-card--ochre .tips-card__icon-badge {
  background: rgba(222, 158, 72, 0.22);
  color: #B5741E;
}

.tips-card--green .tips-card__icon-badge {
  background: rgba(107, 142, 107, 0.2);
  color: #4A754A;
}

.tips-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(58, 55, 49, 0.07);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 12px;
}

.tips-card__title {
  font-family: var(--font-hand, 'Yomogi', cursive);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}

.tips-card__desc {
  font-size: 0.98rem;
  line-height: 1.5;
  color: #5E564C;
  margin: 0;
}

.tips-collab {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--cream, #F8EEDB);
  border: 2.2px dashed var(--clay, #D0826E);
  border-radius: 24px;
  padding: 1.35rem 1.45rem;
  width: 100%;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
}

.tips-collab__img {
  flex-shrink: 0;
  width: 56px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.12));
}

.tips-collab__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tips-collab__title {
  font-family: var(--font-hand, 'Yomogi', cursive);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.tips-collab__text {
  font-size: 0.94rem;
  line-height: 1.45;
  color: #5E564C;
  margin: 0;
}

.tips-collab__link {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--clay, #D0826E);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 0.2rem;
}

.tips-back {
  margin-top: 0.5rem;
}

.tips-back__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--ink, #3A3731);
  color: var(--page-bg, #F8EEDB);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.6rem;
  border-radius: 30px;
  box-shadow: 0 4px 14px rgba(58, 55, 49, 0.16);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.tips-back__btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* ===================================================================
   Floating Modal (Plávajúce okno na úpravu darčekov, príležitostí a členov)
   =================================================================== */
.floating-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.floating-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 38, 32, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: modalFadeIn 0.2s ease-out;
}

.floating-modal__card {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 88vh;
  max-height: 88dvh;
  background: var(--cream, #FBF6EE);
  border-radius: 26px;
  box-shadow: 0 16px 44px rgba(43, 38, 32, 0.32);
  border: 2px solid rgba(179, 130, 116, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.floating-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem 0.9rem;
  border-bottom: 1px solid rgba(43, 38, 32, 0.08);
  background: #ffffff;
}

.floating-modal__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink, #2B2620);
  margin: 0;
  line-height: 1.25;
}

.floating-modal__close {
  background: var(--sand, #DE9E48);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink, #2B2620);
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1;
  flex-shrink: 0;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.floating-modal__close svg {
  display: block;
  margin: auto;
}

.floating-modal__close:hover {
  background: var(--clay, #B38274);
  color: #ffffff;
}

.floating-modal__close:active {
  transform: scale(0.92);
}

.floating-modal__body {
  padding: 1.25rem 1.4rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.floating-modal__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.floating-modal__cancel-btn {
  background: var(--sand, #F2E8DC);
  color: var(--ink, #2B2620);
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.floating-modal__cancel-btn:hover {
  opacity: 0.88;
}

/* ===================================================================
   Optimalizácia pre tablety (iPad, Android tablety 600px - 1024px)
   =================================================================== */
@media (min-width: 600px) {
  :root {
    --content: 680px;
    --mound-w: clamp(170px, 24vw, 215px);
    --sky-h: clamp(210px, 26vh, 260px);
  }

  .wrap {
    width: min(var(--content), calc(100% - 3rem));
  }

  /* Tipy a nápady v 2 stĺpcoch na tablete */
  .tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.35rem;
  }

  /* Detail darčeka na tablete */
  .detail {
    padding: 1.8rem 2.2rem 2.4rem;
    border-radius: 32px;
  }

  .detail__title {
    font-size: 1.85rem;
  }

  .detail__body {
    font-size: 1.05rem;
    line-height: 1.65;
  }

  /* 3 referenčné fotky v obláčikoch na tablete */
  .detail__cloud-photos {
    gap: 1.1rem;
    margin: 1.5rem 0 1.2rem;
  }

  .detail__cloud-photos--count-1 .detail__cloud-frame {
    width: min(250px, 48vw);
  }
  .detail__cloud-photos--count-2 .detail__cloud-frame {
    width: min(180px, 34vw);
  }
  .detail__cloud-photos--count-3 .detail__cloud-frame {
    width: min(135px, 25vw);
  }

  /* Prehľadná správa tlupy (rodičovský profil) */
  .parent-head {
    padding: 2.2rem 2.5rem 1.6rem;
    border-radius: 28px;
  }

  .share-box__bar {
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
  }

  .parent-board {
    padding: 2.2rem 2.5rem;
    border-radius: 28px;
  }

  .parent-member-head {
    padding: 1.15rem 1.6rem;
  }

  .floating-modal__card {
    max-width: 600px;
    border-radius: 30px;
  }
}

@media (min-width: 860px) {
  :root {
    --content: 740px;
    --mound-w: 220px;
    --sky-h: 270px;
  }
}

/* ===================================================================
   Doladenie pre iPhone mini (360px - 375px) a malé telefóny
   =================================================================== */
@media (max-width: 375px) {
  :root {
    --content: 345px;
    --code-top: clamp(195px, 28vh, 240px);
  }

  .menu-sheet {
    width: min(330px, 94vw);
  }

  .detail__cloud-photos {
    gap: 0.35rem;
  }

  .detail__cloud-photos--count-3 .detail__cloud-frame {
    width: min(84px, 26.5vw);
  }

  .detail__link-item {
    padding: 0.55rem 0.75rem;
    font-size: 0.84rem;
  }

  .occasion-capsule {
    min-height: 48px;
    padding: 0.28rem 0.4rem 0.28rem 0.5rem;
  }

  .occasion-capsule__title {
    font-size: clamp(0.95rem, 3.8vw, 1.12rem);
    letter-spacing: 0.05em;
  }

  .occasion-capsule__date {
    font-size: 0.76rem;
    padding: 0.22rem 0.5rem;
  }

  .parent-head__actions {
    gap: 0.45rem;
  }

  .btn-action {
    padding: 0.55rem 0.7rem;
    font-size: 0.82rem;
  }
}
