/* AnnYeong – aplikacja uczestnika */
body { min-height: 100vh; }
.app { max-width: 560px; margin: 0 auto; min-height: 100vh; position: relative; }
.screen { display: flex; flex-direction: column; gap: 16px; padding: 20px 16px calc(110px + env(safe-area-inset-bottom)); }
.screen-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.screen-head h1 { font-size: 26px; color: var(--navy); }
.back { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; text-decoration: none; min-height: 44px; margin: -8px 0 -6px; }

/* dolne menu */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); backdrop-filter: blur(8px); }
.tabbar-in { max-width: 560px; margin: 0 auto; display: flex; justify-content: space-around; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font: 600 11px var(--font); color: var(--muted); text-decoration: none; min-width: 60px; min-height: 50px; padding-top: 4px; border-radius: 12px; }
.tab svg { width: 24px; height: 24px; }
.tab.on { color: var(--navy); }
.tab:hover { color: var(--navy); }

/* logowanie */
.login { min-height: 100vh; display: flex; flex-direction: column; gap: 22px; padding: 36px 20px 28px; }
.login-logos { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.login-logos .anna { width: 190px; max-width: 58%; }
.login-logos .wyd { width: 72px; }
.brand { font: 700 46px/1 var(--font-head); letter-spacing: -1px; color: var(--navy); margin: 14px 0 6px; }
.brand span { color: var(--red); }
.login form { display: flex; flex-direction: column; gap: 16px; }
.code-input { letter-spacing: 12px; font-weight: 700 !important; font-size: 22px !important; }

/* start */
.hello { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hello b { display: block; font: 700 24px var(--font-head); color: var(--navy); }
.hello img { width: 48px; }
.countdown { background: var(--navy); color: #fff; border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.countdown::after { content: ''; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: rgba(242,211,58,.13); }
.countdown .eyebrow { color: var(--yellow); }
.cd-nums { display: flex; align-items: flex-end; gap: 16px; position: relative; z-index: 1; }
.cd-nums div { display: flex; flex-direction: column; }
.cd-nums b { font: 700 28px/1 var(--font-head); font-variant-numeric: tabular-nums; }
.cd-nums b.big { font-size: 54px; }
.cd-nums span { font-size: 12px; color: var(--navy-line); margin-top: 2px; }
.cd-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #E3E8F8; position: relative; z-index: 1; }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 8px; background: var(--card); border-radius: 16px; padding: 14px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; min-height: 84px; box-shadow: 0 1px 2px rgba(22,25,43,.06); }
.tile:hover { color: var(--navy); }
.tile svg { color: var(--navy); }

.weather { padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.weather .temp { font: 700 26px var(--font-head); }
.weather svg { width: 30px; height: 30px; }

.fact-card { border-top: 6px solid var(--red); display: flex; flex-direction: column; gap: 10px; }
.fact-card h3 { font-size: 18px; }
.fact-src { font-size: 12px; color: var(--muted); font-style: italic; }
.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.notice { display: flex; gap: 12px; align-items: flex-start; background: var(--yellow-soft); color: var(--yellow-text); border-radius: 16px; padding: 14px; font-size: 14px; }
.notice b { color: var(--ink); }
.offline-bar { background: var(--ink); color: #fff; font-size: 13px; text-align: center; padding: 8px 12px; position: sticky; top: 0; z-index: 60; }

/* zajawka wycieczki */
.teaser { position: relative; border-radius: 22px; overflow: hidden; min-height: 190px; display: flex; align-items: flex-end; text-decoration: none; color: #fff; background: linear-gradient(135deg, #1F3478, #2B4598 55%, #E1262F); box-shadow: var(--shadow); }
.teaser img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.teaser::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,35,0) 30%, rgba(10,14,35,.82)); }
.teaser-in { position: relative; z-index: 1; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.teaser-in .eyebrow { color: var(--yellow); }
.teaser-in b { font: 700 21px/1.2 var(--font-head); }
.teaser:hover { color: #fff; }

/* program ŚDM */
.ev { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: start; }
.ev-date { display: flex; flex-direction: column; align-items: center; border-radius: 12px; padding: 6px 0; background: var(--navy-soft); color: var(--navy); }
.ev-date b { font: 700 20px/1.1 var(--font-head); }
.ev-date span { font-size: 11px; font-weight: 600; }
.ev-date.hot { background: var(--red-soft); color: var(--red-text); }
.video { position: relative; aspect-ratio: 16/9; background: var(--ink); border-radius: 16px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .play { width: 68px; height: 68px; border-radius: 50%; border: 0; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; }
.video .play svg { width: 28px; height: 28px; }
.video small { position: absolute; left: 14px; bottom: 10px; color: #C9CBD6; font-size: 12px; }

/* wycieczka */
.trip-hero { border-radius: 24px; overflow: hidden; background: linear-gradient(140deg, #16192B, #1F3478 45%, #2B4598); color: #fff; padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.trip-hero h1 { font-size: 24px; }
.trip-hero .eyebrow { color: var(--yellow); }
.trip-hero p { color: #DCE2F5; font-size: 14px; }
.trip-hero .cd-nums { margin-top: 4px; }
.days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; background: #ECEAE3; border-radius: 14px; padding: 5px; position: sticky; top: 8px; z-index: 5; }
.days button { min-height: 52px; border: 0; border-radius: 10px; background: transparent; font: 600 13px var(--font); color: var(--ink-2); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; }
.days button b { font: 700 15px var(--font-head); }
.days button[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.day-head { display: flex; flex-direction: column; gap: 4px; }
.day-head .route { font: 700 13px var(--font); color: var(--red-text); letter-spacing: .3px; }
.day-head h2 { font-size: 21px; }
.timeline { display: flex; flex-direction: column; gap: 14px; position: relative; }
.stop { background: var(--card); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.stop-img { position: relative; aspect-ratio: 16/10; background: linear-gradient(135deg, var(--navy), #4A63B8 60%, var(--gold)); overflow: hidden; }
.stop-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stop-img .tagchip { position: absolute; left: 12px; top: 12px; }
.stop-img .time { position: absolute; right: 12px; top: 12px; background: rgba(22,25,43,.78); color: #fff; font: 700 14px var(--font-head); padding: 5px 10px; border-radius: 10px; }
.stop-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.stop-body h3 { font-size: 18px; }
.stop.compact .stop-body { padding: 14px 16px; }
.stop-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.funfact { background: var(--yellow-soft); border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.55; color: #3A3418; }
.funfact b { display: block; color: var(--ink); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 2px; }
.credit { font-size: 11px; color: var(--muted); }
.credit a { color: var(--muted); font-weight: 500; }
.hotel { display: flex; gap: 12px; align-items: center; background: var(--navy-soft); border-radius: 16px; padding: 14px; font-size: 14px; color: var(--navy); }
.hotel b { color: var(--ink); display: block; }
.tag-UNESCO { background: #FFF1C2; color: #6B5300; }
.tag-Msza { background: var(--red-soft); color: var(--red-text); }
.tag-Natura { background: var(--teal-soft); color: var(--teal); }

/* podróż */
.flight { display: flex; flex-direction: column; gap: 12px; }
.fl-route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.fl-route b { font: 700 30px var(--font-head); display: block; }
.fl-route .r { text-align: right; }
.fl-route small { font-size: 12px; color: var(--muted); display: block; }
.fl-route .when { font-weight: 600; color: var(--ink); font-size: 13px; }
.progress { height: 10px; border-radius: 5px; background: #ECEAE3; overflow: hidden; display: flex; }
.progress > div { background: var(--navy); }
.pack-cat { font: 700 13px var(--font); color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-top: 8px; }
.pack-item { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; cursor: pointer; }
.pack-item input { width: 22px; height: 22px; margin: 0; accent-color: var(--teal); flex: none; }
.pack-item.done span { color: var(--muted); text-decoration: line-through; }

/* profil */
.avatar { width: 62px; height: 62px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: flex; align-items: center; justify-content: center; font: 700 22px var(--font-head); flex: none; }
.passport-thumb { width: 74px; height: 96px; border-radius: 10px; background: #8A2232; color: var(--yellow); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font: 700 9px var(--font); letter-spacing: .5px; flex: none; }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 12px; min-height: 54px; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 500; text-align: left; padding: 0; }
.menu-list > :last-child { border-bottom: 0; }
.menu-list svg { color: var(--navy); }
.viewer img { width: 100%; border-radius: 12px; display: block; }

.facts-list details { background: var(--card); border-radius: 16px; box-shadow: 0 1px 2px rgba(22,25,43,.06); }
.facts-list summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.facts-list summary::-webkit-details-marker { display: none; }
.facts-list summary b { font: 700 16px var(--font-head); }
.facts-list .md { padding: 0 16px 16px; }

.soon { text-align: center; padding: 30px 10px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.soon svg { width: 52px; height: 52px; color: var(--navy-line); }
