/* Zakaznicka aplikacia: mobilny layout */
body { background: linear-gradient(160deg, #bfdcff 0%, #e9f3ff 50%, #ffe9b3 100%); min-height: 100dvh; }
.app { position: relative; max-width: 480px; margin: 0 auto; min-height: 100dvh; background-color: var(--sky); background-image: linear-gradient(rgba(27, 95, 216, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(27, 95, 216, 0.05) 1px, transparent 1px); background-size: 22px 22px; overflow-x: hidden; padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
.app.no-nav { padding-bottom: 0; }
@media (min-width: 520px) {
  body { padding: 24px 0; }
  .app { min-height: min(920px, calc(100dvh - 48px)); border-radius: 36px; box-shadow: 0 30px 80px -30px rgba(15, 37, 87, 0.55); }
}

#view { animation: view-in 0.28s ease-out; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- hlavicka s vlnou ---- */
.hero { position: relative; color: #fff; padding: calc(env(safe-area-inset-top) + 20px) 18px 70px; overflow: hidden;
  background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.22) 0 60px, transparent 61px), radial-gradient(circle at 70% 75%, rgba(255, 255, 255, 0.12) 0 34px, transparent 35px),
    radial-gradient(circle at 12% 88%, rgba(255, 255, 255, 0.1) 0 26px, transparent 27px), linear-gradient(160deg, #1449ae 0%, #1b5fd8 45%, #3a8cf5 100%); }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 38px; background: url(../img/wave.svg) center bottom / 100% 100% no-repeat; }
/* cudzie ihrisko: vlnovy okraj (morsky motiv) prec, hlavicka pouziva vlastnu tmavu farbu znacky namiesto natvrdo modrej Baby Shark */
body.foreign .hero::after { display: none; }
body.foreign .hero { background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.14) 0 60px, transparent 61px), linear-gradient(160deg, var(--navy) 0%, var(--blue) 100%); }
.hero h1 { color: #fff; font-size: 30px; }
.hero:not(.small)::before { content: ''; position: absolute; right: 118px; top: calc(env(safe-area-inset-top) + 16px); width: 24px; height: 24px; background: url(../img/star.svg) center / contain no-repeat; transform: rotate(14deg); opacity: 0.95; z-index: 1; }
.hero p { opacity: 1; text-shadow: 0 1px 2px rgba(15, 37, 87, 0.45); position: relative; z-index: 1; }
.hero .shark { position: absolute; right: 8px; bottom: 30px; width: 96px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.25)); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
.hero-sub { display: flex; align-items: center; gap: 12px; }
.hero .back { position: absolute; left: 12px; top: calc(env(safe-area-inset-top) + 14px); z-index: 2; background: rgba(255, 255, 255, 0.2); color: #fff; }
.hero.small { padding-bottom: 54px; text-align: center; }
.hero.small h1 { font-size: 24px; }
.body { padding: 0 16px; margin-top: -44px; position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; }
.body.plain { margin-top: 0; padding-top: 16px; }

/* ---- uvod: skolsky zosit / projekt ---- */
.welcome { position: relative; min-height: 100dvh; display: flex; flex-direction: column; gap: 14px; overflow: hidden; isolation: isolate;
  padding: calc(env(safe-area-inset-top) + 14px) 22px calc(env(safe-area-inset-bottom) + 78px);
  background-color: #f4f9ff;
  background-image: linear-gradient(rgba(27, 95, 216, 0.11) 1px, transparent 1px), linear-gradient(90deg, rgba(27, 95, 216, 0.11) 1px, transparent 1px);
  background-size: 22px 22px; }
.welcome::before { content: ''; position: absolute; top: 0; bottom: 0; left: 11px; width: 2px; background: rgba(255, 95, 168, 0.45); z-index: -1; }
@media (min-width: 520px) { .welcome { min-height: min(920px, calc(100dvh - 48px)); border-radius: 36px; } }
.w-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bub { position: absolute; left: var(--x); top: var(--y); width: var(--d); height: var(--d); border-radius: 50%; border: 2px solid rgba(27, 95, 216, 0.28);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95) 0 18%, rgba(190, 220, 255, 0.35) 60%); animation: float 6s ease-in-out infinite; }
.bub:nth-child(2n) { animation-delay: -2s; }
.bub:nth-child(3n) { animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.lang-switch { position: absolute; top: calc(env(safe-area-inset-top) + 12px); right: 14px; z-index: 2; min-width: 48px; min-height: 40px; padding: 0 12px;
  border: 2px solid var(--blue, #1b5fd8); border-radius: 999px; background: #fff; color: var(--blue, #1b5fd8); font: inherit; font-weight: 800; font-size: 14px; letter-spacing: 0.06em; cursor: pointer;
  box-shadow: 0 6px 14px -8px rgba(15, 37, 87, 0.5); }
.lang-switch:focus-visible { outline: 3px solid var(--sun, #ffc533); outline-offset: 2px; }
.w-logo { align-self: center; transform: rotate(-2deg); }
.w-logo img { width: 178px; height: auto; filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(0 8px 12px rgba(15, 37, 87, 0.25)); }
.polaroid { position: relative; margin: 6px 4px 14px; padding: 9px 9px 32px; background: #fff; border-radius: 16px; transform: rotate(-2deg); box-shadow: 0 16px 34px -14px rgba(15, 37, 87, 0.55), 0 2px 0 rgba(15, 37, 87, 0.05); }
.polaroid .photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 42%; border-radius: 8px; }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-family: var(--font-display); font-size: 15px; color: var(--muted); }
.tape { position: absolute; top: -13px; width: 84px; height: 26px; background: rgba(255, 201, 74, 0.82); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }
.tape.t1 { left: 16px; transform: rotate(-9deg); }
.tape.t2 { right: 16px; transform: rotate(8deg); background: rgba(120, 190, 255, 0.78); }
.polaroid .age { position: absolute; right: -12px; bottom: -30px; width: 98px; height: 98px; transform: rotate(9deg); filter: drop-shadow(0 6px 8px rgba(15, 37, 87, 0.35)); }
.age img { width: 100%; height: 100%; }
.age .txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; font-family: var(--font-display); line-height: 1; text-align: center; }
.age .txt small { font-size: 12px; font-weight: 600; }
.age .txt b { font-size: 34px; font-weight: 700; margin: 1px 0; }
.ticket { position: absolute; left: -10px; bottom: 40px; display: flex; align-items: center; gap: 6px; background: var(--sun); color: var(--on-sun); font-family: var(--font-display); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 12px; border: 2px dashed rgba(58, 38, 0, 0.45); transform: rotate(-5deg); box-shadow: 0 6px 12px -4px rgba(0, 0, 0, 0.35); }
.polaroid .star { position: absolute; width: 34px; height: 34px; animation: bob 4s ease-in-out infinite; }
.polaroid .star.s1 { right: 22px; top: 18px; transform: rotate(12deg); }
.polaroid .star.s2 { left: 24px; top: 20px; width: 28px; height: 28px; animation-delay: -1.5s; }
.w-text h1 { font-size: 28px; line-height: 1.12; color: var(--navy); }
.w-text mark { background: linear-gradient(transparent 58%, rgba(255, 184, 28, 0.75) 58%); color: var(--blue); padding: 0 4px; margin: 0 -4px; border-radius: 4px; }
.w-text .lead { margin-top: 8px; font-size: 15.5px; line-height: 1.4; color: #33456b; }
.checks { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.checks li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; background: #fff; border: 2px dashed #9fc0f0; border-radius: 999px; font-weight: 800; font-size: 12.5px; color: var(--navy); }
.checks .ico { width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: var(--green); color: #fff; stroke-width: 3; }
.w-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.w-sea { position: absolute; left: 0; right: 0; bottom: 0; height: 70px; z-index: -1; background: url(../img/sea.jpg) center bottom / cover; background-image: -webkit-image-set(url(../img/sea-400.webp) 1x, url(../img/sea.webp) 2x); -webkit-mask-image: linear-gradient(to top, #000 55%, transparent); mask-image: linear-gradient(to top, #000 55%, transparent); }

/* cudzie ihrisko: tmava uvodna obrazovka vo vlastnej farbe znacky namiesto svetleho "skolskeho zosita" Baby Shark (morsky pruh uz prec vyssie) */
body.foreign .welcome { background-color: var(--navy); background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px); }
body.foreign .welcome::before { display: none; }
body.foreign .w-text h1, body.foreign .w-text mark { color: #fff; }
body.foreign .w-text .lead { color: rgba(255, 255, 255, 0.82); }
body.foreign .btn.outline.dark { color: #fff; border-color: rgba(255, 255, 255, 0.85); } /* .dark pocita so svetlym pozadim, na tmavom pouzije svetly text ako bezny .btn.outline */

/* ---- registracia ---- */
.reg-top { display: flex; align-items: center; gap: 12px; }
.reg-top img { width: 96px; }
.child-row { display: grid; grid-template-columns: 1fr 84px 44px; gap: 8px; align-items: center; }
.child-row select { grid-column: 1 / -1; }
.bday-card { background: linear-gradient(135deg, #1b5fd8, #7b3fe4); color: #fff; text-align: center; border: 0; }
.bday-card h2 { color: #fff; }
.bday-emoji { font-size: 40px; line-height: 1.1; }
.bday-disc { background: #fff3c9; color: #7a4d00; border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.bday-disc.used { background: #e3f6e8; color: #17653a; }
.bday-disc b { font-family: var(--font-display); font-size: 32px; line-height: 1; }
.bday-disc span { font-size: 14px; font-weight: 700; }
.steps { display: flex; gap: 8px; }
.steps li { list-style: none; flex: 1; text-align: center; font-size: 12px; font-weight: 800; color: var(--muted); }
.steps b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; margin: 0 auto 4px; font-family: var(--font-display); }

/* ---- domov ---- */
.hello { display: flex; align-items: center; gap: 10px; }
.status-card { display: flex; align-items: center; gap: 14px; }
.status-card .clockface { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-100); color: var(--blue); flex: none; }
.status-card.inside .clockface { background: var(--green-bg); color: var(--green); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(12, 159, 98, 0.35); } 50% { box-shadow: 0 0 0 12px rgba(12, 159, 98, 0); } }
.timer { font-family: var(--font-display); font-size: 34px; font-weight: 600; color: var(--navy); line-height: 1; }
.qr-cta { width: 100%; }

.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 2.5px dashed #b9cdec; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; color: #5f77a3; background: #f6f9ff; }
.stamp.on { border: 0; background: var(--blue-100); }
.stamp.on img { width: 78%; }
.stamp.gift { border-color: var(--sun); color: var(--blue); background: #fff8e2; } /* darcek farebny (modry), nie tmavy (jej pripomienka 2026-10-09) */
.stamp.gift.on { border: 0; background: linear-gradient(135deg, #ffd45e, var(--sun)); color: var(--on-sun); animation: wiggle 1.6s ease-in-out infinite; }
.stamp .ico { width: 55%; height: 55%; }
@keyframes wiggle { 0%, 100% { transform: rotate(-6deg) scale(1); } 50% { transform: rotate(6deg) scale(1.08); } }
.big-frac { font-family: var(--font-display); font-size: 56px; font-weight: 600; color: var(--blue); line-height: 1; }
.free-banner { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #fff3c9, #ffe08a); border-radius: 16px; padding: 12px 14px; font-weight: 800; color: #7a4d00; }

.tile { display: flex; align-items: center; gap: 14px; }
.tile img.thumb { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; flex: none; }
.tile img.blob { width: 74px; flex: none; }

/* ---- QR ---- */
.qr-card { background: #fff; border-radius: 30px; padding: 22px 20px 20px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.qr-box { width: min(76vw, 300px); background: #fff; padding: 10px; border-radius: 18px; border: 3px solid var(--blue-100); }
.qr-box svg { width: 100%; height: auto; }
.qr-code { font-family: ui-monospace, 'SF Mono', Consolas, monospace; letter-spacing: 0.14em; font-weight: 700; color: var(--muted); }

/* ---- navstevy ---- */
.visit-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.visit-row:last-child { border-bottom: 0; }
.visit-row .badge { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-600); font-family: var(--font-display); font-weight: 600; flex: none; }
.visit-row.free .badge { background: var(--green-bg); color: var(--green); }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; padding-top: 8px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; font-size: 12px; font-weight: 800; color: var(--muted); }
.bars .bar i { display: block; width: 100%; max-width: 44px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, var(--blue-400), var(--blue)); height: var(--h, 4px); min-height: 4px; }
/* ---- udalosti ---- */
.event { padding: 0; overflow: hidden; }
.event .pic { position: relative; height: 150px; background: var(--blue-100) center / cover; }
.event .date { position: absolute; left: 12px; top: 12px; background: #fff; border-radius: 14px; padding: 6px 12px; text-align: center; box-shadow: var(--shadow-sm); line-height: 1.05; }
.event .date b { display: block; font-family: var(--font-display); font-size: 24px; color: var(--blue); }
.event .date span { font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--muted); }
.event .info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.meta { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 700; }
.news-item { padding: 0; overflow: hidden; }
.news-item .pic { height: 140px; background: var(--blue-100) center / cover; }
.news-item .info { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }

/* ---- burza hracok ---- */
.toys-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.toy { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); border: 0; padding: 0; text-align: left; display: flex; flex-direction: column; }
.toy .pic { position: relative; aspect-ratio: 1; background: var(--blue-100) center / cover; }
.toy .price { position: absolute; left: 8px; bottom: 8px; background: var(--sun); color: var(--on-sun); font-family: var(--font-display); font-weight: 600; border-radius: 999px; padding: 3px 12px; box-shadow: var(--shadow-sm); }
.toy .info { padding: 10px 12px 12px; }
.toy .info b { display: block; font-weight: 800; line-height: 1.2; }
.toy .info span { font-size: 13px; color: var(--muted); }
.search { position: relative; }
.search .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 46px; }
.fab { position: fixed; right: max(16px, calc(50% - 224px)); bottom: calc(100px + env(safe-area-inset-bottom)); z-index: 20; }
.fab .btn { box-shadow: 0 5px 0 var(--sun-600), 0 12px 24px -8px rgba(0, 0, 0, 0.4); }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-slot { aspect-ratio: 1; border-radius: 14px; border: 2px dashed #a9c0e6; background: #f6faff; display: grid; place-items: center; color: var(--blue); position: relative; overflow: hidden; padding: 0; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot .rm { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(15, 37, 87, 0.75); color: #fff; display: grid; place-items: center; padding: 0; }
.photo-slot .rm .ico { width: 16px; height: 16px; }

/* ---- spodna navigacia ---- */
.nav { position: fixed; z-index: 50; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 480px); display: flex; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; box-shadow: 0 -8px 24px -14px rgba(15, 37, 87, 0.4); }
@media (min-width: 520px) { .nav { bottom: 24px; border-radius: 0 0 36px 36px; width: 480px; } }
.nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; text-decoration: none; color: var(--muted); font-size: 12.5px; font-weight: 800; border-radius: 14px; position: relative; min-width: 0; overflow-wrap: anywhere; }
.nav a .ico { width: 26px; height: 26px; }
.nav a[aria-current='page'] { color: var(--blue); }
.nav a[aria-current='page']::before { content: ''; position: absolute; top: -9px; width: 34px; height: 4px; border-radius: 0 0 4px 4px; background: var(--blue); }
.nav a .dot { position: absolute; top: 2px; right: calc(50% - 22px); width: 10px; height: 10px; border-radius: 50%; background: var(--pink); border: 2px solid #fff; }

/* ---- profil ---- */
.profile-head { display: flex; align-items: center; gap: 14px; }
.avatar { width: 68px; height: 68px; border-radius: 30% 70% 60% 40% / 45% 40% 60% 55%; background: linear-gradient(135deg, var(--sun), var(--orange)); color: var(--on-sun); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 30px; flex: none; }
.danger-zone { border: 2px solid var(--red-bg); }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); list-style: none; }
.hours { margin: 0; padding: 0; }
.hours li:last-child { border-bottom: 0; }
.hours b { font-weight: 800; }
.install-card { background: linear-gradient(135deg, #fff3c9, #ffe08a); color: #7a4d00; }

/* ---- samoobsluzny prichod a odchod ---- */
.scan-wrap { position: relative; border-radius: 24px; overflow: hidden; background: #0b1a3f; aspect-ratio: 3 / 4; max-height: 62dvh; width: 100%; }
.scan-wrap video { width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: absolute; inset: 20% 14%; aspect-ratio: 1; border: 4px solid rgba(255, 255, 255, 0.92); border-radius: 22px; box-shadow: 0 0 0 999px rgba(11, 26, 63, 0.45); pointer-events: none; }
.scan-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff; padding: 20px; font-weight: 800; }
.checkin-result { padding: 26px 20px; }
.checkin-result h2 { font-size: 26px; line-height: 1.1; }
.checkin-ico { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; background: var(--blue-100); color: var(--blue); }
.checkin-ico .ico { width: 44px; height: 44px; }
.checkin-result.ok .checkin-ico { background: var(--green-bg); color: var(--green); }
.checkin-result.warn .checkin-ico { background: #fff3c9; color: #b36b00; }
.checkin-result.bad .checkin-ico { background: #ffe1e1; color: var(--red); }
.kids-stepper { display: flex; align-items: center; justify-content: center; gap: 22px; }
.kids-stepper button { width: 64px; height: 64px; border-radius: 20px; border: 0; background: var(--blue-100); color: var(--blue-600); font-size: 34px; font-weight: 800; line-height: 1; }
.kids-stepper button:active { transform: scale(0.95); }
.kids-stepper b { font-family: var(--font-display); font-size: 56px; min-width: 64px; text-align: center; color: var(--navy); }

.bday-card.booked { background: linear-gradient(135deg, #1f9d55, #0e7a3d); }
.bday-card h3 { color: #fff; }
.bday-booked { background: rgba(255,255,255,.18); border-radius: 14px; padding: 10px 12px; font-weight: 800; }

.bday-prompt { background: linear-gradient(135deg, #fff3c9, #ffe08a); color: #5a3a00; border: 0; }
.bday-prompt h3 { color: #5a3a00; }
.bday-prompt .link { color: #7a4d00; }
.bday-steps { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-weight: 700; }

.lang-switch { min-height: 44px; }

/* ---- oslavy (ponuka osláv) ---- */
.party-h { font-size: 20px; color: var(--navy); margin: 8px 2px 0; }
.party-promo { display: flex; align-items: center; gap: 12px; padding: 16px; width: 100%; text-align: left; border: 0; color: #fff; background: linear-gradient(135deg, #7a2bd6, #d92e86); cursor: pointer; }
.party-promo .grow { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.party-promo b { font-family: var(--font-display); font-size: 20px; line-height: 1.15; }
.party-promo .grow > span:not(.btn) { font-size: 13.5px; opacity: 0.95; }
.party-promo .cake { font-size: 52px; flex: none; }
.party-room { position: relative; display: block; width: 100%; height: 190px; border: 0; padding: 0; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); color: #fff; background: #456 center / cover; text-align: left; cursor: pointer; }
.party-room::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(8, 20, 60, 0.78)); }
.party-room .tx { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; display: flex; flex-direction: column; }
.party-room .tx b { font-family: var(--font-display); font-size: 25px; line-height: 1.1; }
.party-room .tx span { font-size: 13.5px; font-weight: 700; }
.party-room .tag { position: absolute; z-index: 1; top: 12px; left: 12px; background: #fff; color: var(--navy); font-weight: 800; font-size: 12.5px; padding: 5px 12px; border-radius: 999px; }
.party-room .from { position: absolute; z-index: 1; top: 10px; right: 12px; background: var(--sun); color: var(--on-sun); font-family: var(--font-display); font-weight: 600; font-size: 15px; padding: 6px 12px; border-radius: 14px; transform: rotate(3deg); }
.party-seg { display: flex; flex-wrap: wrap; background: #fff; border-radius: 16px; padding: 4px; box-shadow: var(--shadow-sm); } /* viac miestnosti sa zalomi do dalsieho riadku */
.party-seg button { flex: 1 1 40%; border: 0; background: transparent; padding: 9px 4px; border-radius: 12px; font: inherit; font-weight: 800; font-size: 14px; color: var(--muted); cursor: pointer; }
.party-seg button.on { background: var(--blue); color: #fff; }
.party-pk { position: relative; display: block; width: 100%; padding: 0; border: 0; text-align: left; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; font: inherit; color: var(--ink); }
.party-pk .top { display: flex; align-items: center; gap: 12px; padding: 14px; color: #fff; }
.party-pk .top.has-badge { padding-top: 28px; }
.party-pk.c1 .top { background: linear-gradient(135deg, #1b5fd8, #4a8af0); }
.party-pk.c2 .top { background: linear-gradient(135deg, #0a8552, #3cc98a); }
.party-pk.c3 .top { background: linear-gradient(135deg, #d92e86, #ff7ab8); }
.party-pk .top b { display: block; font-family: var(--font-display); font-size: 21px; line-height: 1.1; }
.party-pk .top .grow > span { font-size: 13px; font-weight: 700; }
.party-pk .price { background: var(--sun); color: var(--on-sun); border-radius: 50%; width: 70px; height: 70px; display: grid; place-items: center; text-align: center; font-family: var(--font-display); line-height: 1; box-shadow: 0 4px 0 var(--sun-600); flex: none; }
.party-pk .price small { display: block; font-size: 11px; font-weight: 600; }
.party-pk .price b { font-size: 24px; color: var(--on-sun); }
.party-pk .badge { position: absolute; left: 14px; top: 0; z-index: 1; background: var(--sun); color: var(--on-sun); font-weight: 800; font-size: 11px; padding: 3px 10px; border-radius: 0 0 10px 10px; }
.party-pk ul { list-style: none; margin: 0; padding: 12px 14px 4px; display: grid; gap: 6px; font-size: 14px; }
.party-pk li { display: flex; gap: 8px; align-items: flex-start; }
.party-pk li .ico { color: var(--green); stroke-width: 3; margin-top: 2px; flex: none; }
.party-pk .lim { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px 14px 12px; }
.party-pk .go { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--line); font-weight: 800; color: var(--blue); }
.party-disc { display: flex; gap: 12px; align-items: center; background: #fff8e2; border: 2px dashed var(--sun); border-radius: 18px; padding: 12px 14px; font-size: 13.5px; }
.party-disc b { font-family: var(--font-display); font-size: 26px; color: #8a5a00; line-height: 1; }
.party-disc small { display: block; color: var(--muted); }
.party-disc .ico { color: #8a5a00; flex: none; }
.party-steps { display: flex; gap: 6px; text-align: center; font-size: 11.5px; font-weight: 800; color: var(--muted); }
.party-steps div { flex: 1; }
.party-steps b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; margin: 0 auto 4px; font-family: var(--font-display); }
.party-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); border: 1px solid rgba(217, 229, 246, 0.7); }
.party-link .ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; flex: none; color: #fff; box-shadow: 0 4px 10px -4px rgba(15, 37, 87, 0.5), inset 0 -3px 0 rgba(0, 0, 0, 0.12); }
.party-link .ic .ico { width: 26px; height: 26px; stroke-width: 2.2; }
.party-link b { display: block; font-size: 15px; }
.party-link small { color: var(--muted); font-size: 12.5px; font-weight: 600; word-break: break-word; }
.party-link .ico.sm { color: #9fb4d8; flex: none; }
.party-link .ic.phone { background: var(--g-green); } .party-link .ic.mail { background: var(--g-blue); }
.party-link .ic.web, .party-link .ic.b { background: var(--g-purple); } .party-link .ic.place { background: var(--g-pink); }
.party-link:active { transform: translateY(1px); }
.party-note { font-size: 12.5px; color: var(--muted); text-align: center; padding: 0 8px; margin: 0; }

.party-link.primary { background: linear-gradient(135deg, #e9faf2, #fff); border: 2px solid #8fd9b6; }
.party-link.primary b { font-family: var(--font-display); font-size: 18px; }
.party-link.primary small { font-size: 14px; font-weight: 800; color: var(--green); }
.party-link.primary .ic { width: 54px; height: 54px; border-radius: 18px; }

/* ---- spodna lista: 5 miest, stredove vyvysene tlacidlo QR (varianta B) ---- */
.nav { padding-top: 10px; }
.nav a { min-height: 48px; justify-content: flex-end; -webkit-tap-highlight-color: transparent; }
.nav a .lbl { line-height: 1.1; }
.nav a:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; box-shadow: none; }
.nav a.qrb { flex: 0 0 84px; position: relative; }
.nav a.qrb::before { display: none; }
.nav a.qrb .c { position: absolute; top: -34px; left: 50%; margin-left: -32px; width: 64px; height: 64px; border-radius: 50%; background: var(--sun); color: var(--on-sun); display: grid; place-items: center;
  border: 4px solid #fff; box-shadow: 0 4px 0 var(--sun-600), 0 12px 22px -8px rgba(15, 37, 87, 0.55); transition: transform 0.15s ease; }
.nav a.qrb .c .ico { width: 30px; height: 30px; color: var(--on-sun); }
.nav a.qrb:active .c { transform: translateY(2px) scale(0.97); }
.nav a.qrb[aria-current='page'] { color: var(--blue); }
.nav a.qrb[aria-current='page'] .c { box-shadow: 0 2px 0 var(--sun-600), 0 0 0 3px var(--blue); }
.nav a .dot { right: calc(50% - 20px); }
@media (prefers-reduced-motion: reduce) { .nav a.qrb .c { transition: none; } }
@media (max-width: 360px) { .nav a { font-size: 12px; } .nav a.qrb { flex-basis: 76px; } }

/* ---- dlazdice na Domove a odkaz na oslavy v Udalostiach ---- */
.ntiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ntile { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px; min-height: 44px; background: #fff; border-radius: 22px; border: 1px solid rgba(217, 229, 246, 0.8); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); }
.ntile:active { background: var(--sky); }
.ntile:focus-visible, .evt-party:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.ntile b { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--navy); line-height: 1.15; }
.ntile small { font-size: 12.5px; font-weight: 700; color: var(--muted); line-height: 1.3; }
.ntile .ibg { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: var(--g-blue); flex: none; }
.ntile .ibg .ico { width: 26px; height: 26px; }
.ntile.pink .ibg { background: var(--g-pink); }
.ntile.green .ibg { background: var(--g-green); }
.ntile.purple .ibg { background: var(--g-purple); }
.ntile.sun .ibg { background: var(--g-sun); color: var(--on-sun); }
.ntile .tag { position: absolute; top: 10px; right: 10px; }
.ntile.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 14px; padding: 12px 14px; }
.ntile.wide .grow { display: flex; flex-direction: column; gap: 2px; }
.evt-party { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none; color: var(--ink); }
.evt-party > .ico:first-child { width: 28px; height: 28px; color: #c4266f; flex: none; }
.evt-party .grow { display: flex; flex-direction: column; gap: 2px; }
.evt-party b { color: var(--navy); }
.evt-party small { font-size: 13px; color: var(--muted); font-weight: 700; }

/* UX-046: obsah pod plavajucim tlacidlom ma dolny odstup */
.body.has-fab { padding-bottom: 96px; }
/* UX-015: feed na Domove drzi miesto, kym sa nacita (bez skoku rozlozenia) */
.feed-box:not(.loaded) { min-height: 150px; }
/* UX-038: bocne bezpecne okraje a nizka spodna lista v krajine */
.app { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
@media (orientation: landscape) and (max-height: 480px) {
  .nav a .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav { padding-top: 4px; padding-bottom: calc(4px + env(safe-area-inset-bottom)); }
}

/* ---- rozlozenia Domova podla brand.layout (default sa nijako nemeni, pouziva povodne .ntiles) ---- */
.qr-hero { display: flex; align-items: center; gap: 16px; padding: 16px; min-height: 44px; text-decoration: none; color: var(--ink); }
.qr-hero:focus-visible, .lt-item:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.qh-box { width: 128px; flex: none; background: #fff; padding: 6px; border-radius: 14px; border: 3px solid var(--blue-100); }
.qh-box svg { display: block; width: 100%; height: auto; }
.qh-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qh-txt b { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--navy); line-height: 1.15; overflow-wrap: anywhere; }
.qh-txt small { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0.06em; }
.qh-cta { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 800; font-size: 14px; color: var(--blue-600); }
.lt .lt-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lt .lt-item { min-height: 56px; }
/* Dlazdicovy prehlad: dve velke dlazdice a Navstevy cez sirku */
.lt-tile-dashboard .lt-item { align-items: center; text-align: center; min-height: 128px; justify-content: center; }
.lt-tile-dashboard .lt-item:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 96px; }
.lt-tile-dashboard .ibg { width: 56px; height: 56px; border-radius: 18px; }
/* Velke karty: jedna v riadku, velky obrazok */
.lt-cards { grid-template-columns: 1fr; gap: 14px; }
.lt-cards .lt-item { padding: 0; overflow: hidden; gap: 0; }
.lt-cards .lt-img { display: block; height: 128px; background-size: cover; background-position: center; background-color: var(--blue-100); }
.lt-cards .ibg { display: none; }
.lt-cards .lt-txt { padding: 12px 16px 14px; }
.lt-cards .lt-item b { font-size: 19px; }
.lt-cards .lt-item small { font-size: 13.5px; }
/* Skolsky zosit: zoznam s farebnym okrajom a linajkovanym papierom */
.lt-notebook { grid-template-columns: 1fr; gap: 10px; }
.lt-notebook .lt-item { flex-direction: row; align-items: center; gap: 12px; border-radius: 10px 18px 18px 10px; border: 1px solid var(--line); border-left: 10px solid var(--blue);
  background: #fffdf4 repeating-linear-gradient(to bottom, transparent 0, transparent 27px, #e9e4cf 27px, #e9e4cf 28px); box-shadow: var(--shadow-sm); }
.lt-notebook .lt-item.pink { border-left-color: #d92e86; }
.lt-notebook .lt-item.green { border-left-color: var(--green); }
.lt-notebook .lt-item > .ico { margin-left: auto; flex: none; color: var(--navy); }
/* Zoznam: cista tabula riadkov */
.lt-list { grid-template-columns: 1fr; gap: 0; background: #fff; border-radius: 18px; border: 1px solid var(--line); overflow: hidden; }
.lt-list .lt-item { flex-direction: row; align-items: center; gap: 12px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 10px 14px; }
.lt-list .lt-item:last-child { border-bottom: 0; }
.lt-list .ibg { width: 44px; height: 44px; border-radius: 50%; }
.lt-list .lt-item > .ico { margin-left: auto; flex: none; color: var(--muted); }
.lt-list .tag { position: static; margin-left: auto; }
/* Mozaika: dlazdice roznej velkosti, prva (Oslavy) je velka */
.lt-mosaic { grid-auto-rows: minmax(104px, auto); }
.lt-mosaic .lt-item { justify-content: space-between; background: #e3eeff; border: 0; }
.lt-mosaic .lt-item.pink { background: #ffe3f0; grid-row: span 2; padding: 16px; }
.lt-mosaic .lt-item.green { background: #dcf6ea; }
.lt-mosaic .lt-item small { color: var(--ink); }
.lt-mosaic .lt-item.pink b { font-size: 21px; }
.lt-mosaic .lt-item.pink .ibg { width: 60px; height: 60px; border-radius: 20px; }
.lt-mosaic .lt-item.pink .ibg .ico { width: 32px; height: 32px; }
@media (max-width: 360px) { .qh-box { width: 112px; } .lt-tile-dashboard .lt-item { min-height: 116px; } }
.lt-tile-dashboard .tag, .lt-mosaic .tag { position: static; align-self: flex-start; }
.lt-tile-dashboard .tag { align-self: center; }

/* ---- tablet a pocitac: len pre vlastne rozlozenie (body.lay-wide), predvolene rozlozenie ostava 480 px stlpec ---- */
@media (min-width: 720px) {
  body.lay-wide .app { max-width: 680px; }
  body.lay-wide .nav { width: 680px; }
  body.lay-wide .body[class*="lay-"] .lt-cards, body.lay-wide .body[class*="lay-"] .lt-notebook { grid-template-columns: 1fr 1fr; }
  body.lay-wide .body[class*="lay-"] .lt-tile-dashboard, body.lay-wide .body[class*="lay-"] .lt-mosaic { grid-template-columns: repeat(3, 1fr); }
  body.lay-wide .lt-tile-dashboard .lt-item:last-child:nth-child(odd) { grid-column: auto; }
}
@media (min-width: 1100px) {
  body.lay-wide .app { max-width: 880px; }
  body.lay-wide .nav { width: 880px; }
  body.lay-wide .body[class*="lay-"] .lt-cards { grid-template-columns: repeat(3, 1fr); }
}

/* kod permanentky/poukazu v zakaznickej appke (staff.css sa tu nenacitava) */
.big-code { font-family: var(--font-display); font-size: clamp(24px, 8vw, 40px); letter-spacing: 0.1em; text-align: center; color: var(--blue); background: var(--blue-100); border-radius: 20px; padding: 14px; overflow-wrap: anywhere; }
