/* czcionki strony mariogames.eu (Inter, wgrany na serwer - bez polaczen z Google) */
@import url('../../fonts/fonts.css');
* { box-sizing: border-box; }
:root {
    --ink: #10233a;
    --ink-soft: #4a6278;
    --card: rgba(255, 255, 255, 0.86);
    --line: rgba(16, 35, 58, 0.12);
    --red: #e63946;
    --gold: #ffd166;
    --navy: #1d3557;
    --green: #2a9d5c;
}
html, body { margin: 0; min-height: 100%; }
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--ink);
    background: linear-gradient(#5d9ad6 0%, #9cc6ea 45%, #dcebf6 100%);
    min-height: 100vh;
}
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg-mountains { position: absolute; left: 0; bottom: 0; width: 100%; height: 62vh; }

.wrap { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 22px 16px 40px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.logo {
    margin: 0;
    font: italic 900 clamp(34px, 6vw, 64px)/1 "Segoe UI Black", "Arial Black", Arial, sans-serif;
    color: #fff;
    letter-spacing: 0.02em;
    text-shadow: 0 3px 0 var(--navy), 0 8px 24px rgba(16, 35, 58, 0.35);
}
.logo span { color: var(--red); text-shadow: 0 3px 0 #7a1620, 0 8px 24px rgba(16, 35, 58, 0.35); }
.profile-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 999px;
    background: rgba(16, 35, 58, 0.75); color: #fff; text-decoration: none; font-size: 14px;
}
.profile-chip:hover { background: var(--navy); }

.layout { display: grid; grid-template-columns: 290px 1fr; gap: 20px; margin-top: 26px; align-items: start; }
@media (max-width: 820px) { .layout { grid-template-columns: 1fr; } }

.menu { display: flex; flex-direction: column; gap: 8px; }
.menu a {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 16px;
    background: rgba(16, 35, 58, 0.78);
    color: #fff; text-decoration: none;
    font: italic 800 18px/1.1 "Segoe UI", Arial, sans-serif;
    border-radius: 10px;
    border-left: 5px solid transparent;
    transition: transform 0.12s ease, background 0.12s ease;
}
.menu a i { font-style: normal; width: 26px; text-align: center; }
.menu a .menu-icon {
    width: 36px; height: 36px; flex: 0 0 36px;
    padding: 4px; border-radius: 50%; object-fit: contain;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.24);
}
.menu a:not(.active) .menu-icon { background: #fff; }
.menu a.active .menu-icon { background: transparent; box-shadow: none; }
.menu a:hover { transform: translateX(4px); background: rgba(16, 35, 58, 0.92); }
.menu a.active { background: #fff; color: var(--navy); border-left-color: var(--red); }

.panel {
    background: var(--card);
    backdrop-filter: blur(6px);
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 10px 30px rgba(16, 35, 58, 0.18);
    min-height: 360px;
}
.panel h2 { margin: 0 0 6px; font: italic 900 28px/1.1 "Segoe UI Black", "Arial Black", Arial, sans-serif; color: var(--navy); }
.panel h3 { margin: 22px 0 8px; color: var(--navy); }
.panel p { line-height: 1.55; color: var(--ink-soft); margin: 6px 0; }
.lead { font-size: 15px; }
.note {
    margin: 14px 0; padding: 10px 14px; border-radius: 8px;
    background: rgba(255, 209, 102, 0.25); border-left: 4px solid var(--gold);
    color: #5c4300; font-size: 14px; line-height: 1.5;
}

/* karty skoczni */
.hills { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 16px; }
.hill-category + .hill-category { margin-top: 22px; }
.hill-category h3 { margin: 18px 0 0; }
.hill-category .hills { margin-top: 10px; }
.hill-card {
    position: relative; overflow: hidden;
    border-radius: 12px; background: #fff;
    border: 1px solid var(--line);
    display: flex; flex-direction: column;
}
.hill-card .pic { height: 120px; background: linear-gradient(#7fb2e3, #d9e9f5); position: relative; }
.hill-card .pic svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hill-card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.hill-card .name { font-weight: 800; font-size: 18px; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.hill-card .meta { color: var(--ink-soft); font-size: 13px; }
.hill-card .rec { font-size: 13px; color: var(--green); font-weight: 600; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 16px; border-radius: 8px; border: 0;
    background: var(--red); color: #fff; font-weight: 800; font-size: 15px;
    text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: var(--navy); }
.btn.ghost {                                       /* przyciski pomocnicze (Wstecz, Zaznacz...) - ciemne, jasny napis */
    background: rgba(16, 35, 58, 0.82); color: #ffffff; border: 0;
    box-shadow: 0 2px 6px rgba(16, 35, 58, 0.22);
}
.btn.ghost:hover { background: var(--navy); filter: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; filter: none; }
.hill-card .btn { margin-top: auto; }

.flag { display: inline-block; width: 24px; height: 16px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.15); vertical-align: middle; }

/* tabela rekordow */
table.rec-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.rec-table th, .rec-table td { padding: 7px 8px; text-align: left; border-bottom: 1px solid var(--line); }
.rec-table th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.rec-table td.num { font-variant-numeric: tabular-nums; text-align: right; }
.rec-table th.num { text-align: right; }
.rec-table tr:first-child td { font-weight: 700; }
.rec-table tr:first-child td.d { color: var(--green); }
.rec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.rec-head h3 { margin: 0; }
.empty { color: var(--ink-soft); font-style: italic; padding: 10px 0; }

/* instrukcje */
.howto { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 12px; }
.howto div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.howto b { display: block; color: var(--red); margin-bottom: 4px; }
.howto p { margin: 0; font-size: 14px; }

/* formularz profilu */
form.profile { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 12px; max-width: 560px; }
@media (max-width: 560px) { form.profile { grid-template-columns: 1fr; } }
form.profile label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
form.profile input, form.profile select {
    padding: 9px 10px; border-radius: 8px; border: 1px solid #c4d2de; font-size: 15px; color: var(--ink); background: #fff;
}
form.profile .full { grid-column: 1 / -1; }
.saved { color: var(--green); font-weight: 700; margin-left: 10px; }
.login-box { display: flex; flex-direction: column; gap: 10px; max-width: 360px; margin-top: 10px; }
.gbtn { background: #fff; color: #3c4043; border: 1px solid #c4c7c5; }
.gbtn svg { width: 18px; height: 18px; }

/* --- Puchar Swiata: podmenu, lista skoczkow, edytor, kalendarz --- */
.cup-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 16px; }
.cup-landing { display: grid; grid-template-columns: minmax(170px, 0.72fr) minmax(0, 2fr); gap: 22px; align-items: stretch; }
.cup-landing-art {
    display: flex; align-items: flex-start; justify-content: center; min-width: 0; overflow: hidden;
    padding: 10px; border: 1px solid rgba(116, 157, 195, 0.3); border-radius: 14px;
    background: radial-gradient(ellipse at 50% 42%, rgba(255,255,255,0.96), rgba(218,232,245,0.82) 52%, rgba(29,53,87,0.14));
}
.training-landing .cup-landing-art, .records-landing .cup-landing-art, .replays-landing .cup-landing-art, .instructions-landing .cup-landing-art, .profile-landing .cup-landing-art { align-self: start; margin-top: 10px; }
.cup-landing-art img {
    display: block; width: min(100%, 290px); max-height: 390px; object-fit: contain;
    filter: drop-shadow(0 12px 16px rgba(16, 35, 58, 0.26));
}
.cup-landing-content { min-width: 0; }
/* Turniej Noworoczny: Zloty Jastrzab, skocznie i zasady turnieju, pakiet w kalendarzu PS */
/* Zloty Jastrzab na tym samym tle co pozostale puchary (bez zlotej poswiaty) */
.tcs-hills { margin: 10px 0 6px; padding-left: 22px; line-height: 1.9; }
.tcs-hills .flag { vertical-align: -2px; }
.tcs-rules { margin: 8px 0 4px; padding-left: 20px; line-height: 1.55; font-size: 14px; }
.tcs-rules li { margin-bottom: 4px; }
.box.tcs-pack { border-color: #c9d8e6; background: linear-gradient(135deg, #ffffff, #eef4fa); }
.tcs-note { margin: 10px 0; padding: 10px 12px; border-radius: 8px; background: #eef4fa; border: 1px solid #c9d8e6; color: var(--ink); font-size: 14px; line-height: 1.5; }
ol.calendar li.tcs-row { background: linear-gradient(90deg, #ffffff, #eef4fa); border-color: #c9d8e6; }
ol.calendar .tcs-cal { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
/* statuetka Zlotego Jastrzebia przy Turnieju (pakiet i wiersz kalendarza) */
.tcs-ico { flex: none; width: auto; height: 34px; filter: drop-shadow(0 2px 3px rgba(16, 35, 58, 0.25)); }
ol.calendar .tcs-ico { height: 26px; }
.tcs-ico.in { display: inline-block; height: 1.35em; width: auto; vertical-align: -0.3em; margin-right: 2px; filter: drop-shadow(0 1px 1px rgba(16, 35, 58, 0.25)); }
ol.calendar .num { white-space: nowrap; }   /* "2.–5." (turniej) w jednej linii */
ol.calendar .tcs-cal small { font-weight: 500; color: var(--ink-soft); }

.cup-landing-content h2 { margin-top: 0; }
.btn.big { flex-direction: column; align-items: flex-start; padding: 16px 18px; font-size: 17px; text-align: left; }
.btn.big small { font-weight: 500; font-size: 12px; opacity: 0.85; }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn.danger { background: var(--red); }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.toolbar .count { margin-left: auto; font-weight: 700; color: var(--navy); }
.jtable td { vertical-align: middle; }
.jtable tr.me td { background: rgba(255, 209, 102, 0.22); font-weight: 700; }
.jname { color: var(--navy); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.jname:hover { color: var(--red); text-decoration: underline; }
.you { background: var(--red); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 4px; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,0.25); vertical-align: middle; }
.lvl { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #e3e9ef; color: var(--ink-soft); }
.lvl6 { background: #ffd166; color: #5c4300; } .lvl5 { background: #c7e9c0; color: #1e5b2a; } .lvl4 { background: #cfe3f7; color: #1d3557; }
.lvl3 { background: #e9e3f7; color: #46327a; } .lvl2 { background: #f3e2d4; color: #7a3f12; } .lvl1 { background: #f2d4d7; color: #7a1620; }
.lvl0 { background: #d9d9d9; color: #333; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 18px; align-items: start; margin-top: 10px; }
.editor form.profile { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.editor form.profile label { min-width: 0; }
@media (max-width: 1050px) { .editor { grid-template-columns: 1fr; } }
.editor form.profile { max-width: none; margin-top: 0; }
.editor label.color { flex-direction: row; align-items: center; justify-content: space-between; background: #fff; border: 1px solid #c4d2de; border-radius: 8px; padding: 6px 10px; }
.editor input[type=color] { width: 46px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; }
.editor .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.preview { position: sticky; top: 16px; }
.preview canvas { width: 100%; max-width: 360px; border-radius: 12px; box-shadow: 0 6px 18px rgba(16,35,58,0.18); display: block; }
.pv-caption { text-align: center; font-weight: 800; color: var(--navy); margin-top: 8px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.box h4 { margin: 0; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.box .meta { color: var(--ink-soft); font-size: 13px; }
ol.calendar { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; max-width: 560px; }
ol.calendar li { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-weight: 600; }
ol.calendar .spacer { flex: 1; }
ol.calendar li { cursor: grab; user-select: none; -webkit-user-select: none; transition: box-shadow .15s, background .15s; }
ol.calendar .drag-handle { color: #9aa6b2; font-size: 18px; line-height: 1; padding: 4px 2px; cursor: grab; touch-action: none; }
ol.calendar li:hover .drag-handle { color: #5b6b7b; }
ol.calendar.drag-active, ol.calendar.drag-active li { cursor: grabbing; }
ol.calendar li.dragging { position: relative; z-index: 5; background: #eef6ff; border-color: #6aa7e8; box-shadow: 0 8px 22px rgba(20,40,70,0.25); transition: none; }
.cal-hint { margin: -4px 0 8px; font-size: 13px; color: #6b7a88; }

/* konto */
.acc { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; max-width: 560px; }
.acc-pic { width: 44px; height: 44px; border-radius: 50%; }
.acc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.err { color: var(--red); font-weight: 700; margin-top: 8px; }
.online { color: var(--ink-soft); font-size: 12px; margin: 4px 0 0; }
.rec-table tr.me td { background: rgba(255, 209, 102, 0.25); }

/* --- stopka: karta w kolorach gry ze sniegiem na gorze (Impressum, Datenschutz, autor) --- */
body { display: flex; flex-direction: column; overflow-x: hidden; }
.wrap { flex: 1 0 auto; width: 100%; min-width: 0; }
.layout > * { min-width: 0; }                     /* kolumny moga sie zwezic (telefon) */
.panel { overflow-x: auto; }                      /* szerokie tabele przewijaja sie w panelu */
.top { min-width: 0; }
.site-footer {
    position: relative; z-index: 1; flex-shrink: 0;
    width: min(1180px, calc(100% - 32px)); margin: 28px auto 0;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px 24px;
    padding: 22px 26px 18px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(180deg, rgba(29, 53, 87, 0.92), rgba(13, 27, 46, 0.96));
    box-shadow: 0 -8px 24px rgba(16, 35, 58, 0.25);
    color: #c9d6e2; font-size: 13px;
}
/* czapa sniegu na gornej krawedzi */
.site-footer::before {
    content: ""; position: absolute; left: 10px; right: 10px; top: -9px; height: 14px;
    background:
        radial-gradient(14px 9px at 6% 100%, #f4f8fb 98%, transparent) ,
        radial-gradient(20px 11px at 19% 100%, #f4f8fb 98%, transparent),
        radial-gradient(16px 9px at 34% 100%, #f4f8fb 98%, transparent),
        radial-gradient(22px 12px at 50% 100%, #f4f8fb 98%, transparent),
        radial-gradient(15px 9px at 66% 100%, #f4f8fb 98%, transparent),
        radial-gradient(20px 11px at 81% 100%, #f4f8fb 98%, transparent),
        radial-gradient(14px 9px at 94% 100%, #f4f8fb 98%, transparent),
        linear-gradient(#f4f8fb, #f4f8fb) bottom / 100% 5px no-repeat;   /* ciagla warstwa sniegu */
    border-radius: 8px 8px 0 0;
    pointer-events: none;
}
.foot-brand { display: flex; flex-direction: column; gap: 2px; }
.foot-logo { font: italic 900 20px/1 "Segoe UI Black", "Arial Black", Arial, sans-serif; color: #fff; letter-spacing: 0.02em; }
.foot-logo b { color: var(--red); }
.foot-tag { font-size: 12px; color: #9fb3c6; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; min-width: 0; }   /* na telefonie przyciski zawijaja sie do drugiego rzedu */
.foot-links a {
    padding: 7px 14px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff; text-decoration: none; font-weight: 700; font-size: 13px;
    transition: background 0.15s ease, color 0.15s ease;
}
.foot-links a:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.foot-copy { display: flex; flex-direction: column; gap: 3px; text-align: right; font-size: 12px; }
.foot-copy a { color: var(--gold); text-decoration: none; font-weight: 700; }
.foot-copy a:hover { text-decoration: underline; }
@media (max-width: 760px) {
    .site-footer { grid-template-columns: minmax(0, 1fr); text-align: center; padding: 20px 16px 16px; width: calc(100% - 16px); }
    .foot-brand { align-items: center; }
    .foot-copy { text-align: center; }
    /* telefon: dwa krotkie przyciski obok siebie, trzeci (Nutzungsbedingungen) zawsze w osobnym, wysrodkowanym wierszu;
       przycisk nigdy szerszy niz stopka - przy duzej czcionce systemowej tekst zawija sie w srodku */
    .foot-links { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: 8px 6px; }
    .foot-links a:nth-child(3) { grid-column: 1 / -1; justify-self: center; }
    .foot-links a { padding: 6px 11px; font-size: 12px; max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; }
}
@media (max-width: 620px) {
    .cup-landing { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: start; }
    .cup-landing-art { min-height: 150px; position: sticky; top: 12px; }
    .cup-landing-art { padding: 7px; }
    .training-landing .cup-landing-art { min-height: 0; position: static; margin-top: 8px; }
    .records-landing .cup-landing-art { min-height: 0; position: static; margin-top: 8px; }
    .replays-landing .cup-landing-art { min-height: 0; position: static; margin-top: 8px; }
    .instructions-landing .cup-landing-art { min-height: 0; position: static; margin-top: 8px; }
    .profile-landing .cup-landing-art { min-height: 0; position: static; margin-top: 8px; }
    .cup-landing-art img { width: 100%; max-height: 150px; }
    .cup-landing-content .lead { font-size: 13px; }
    .cup-landing-content .opt-row { padding: 10px; font-size: 12px; }
    .cup-landing-content .cup-menu { grid-template-columns: 1fr; }
    .cup-landing-content .btn.big { padding: 13px 12px; font-size: 15px; }
}

/* --- nowoczesna typografia: Inter, lzejsze grubosci, bez kursywy --- */
:root { --font: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif; }
body { font-family: var(--font); -webkit-font-smoothing: antialiased; }
button, input, select { font-family: inherit; }
.logo {
    font: 800 clamp(30px, 5vw, 54px)/1 var(--font); font-style: normal; letter-spacing: -0.035em; word-spacing: 0.14em;
    text-shadow: 0 2px 0 rgba(16, 35, 58, 0.55), 0 10px 28px rgba(16, 35, 58, 0.3);
}
.logo span { text-shadow: 0 2px 0 rgba(122, 22, 32, 0.6), 0 10px 28px rgba(16, 35, 58, 0.3); }
.menu a { font: 600 15.5px/1.2 var(--font); font-style: normal; letter-spacing: -0.01em; padding: 14px 16px; }
.panel h2 { font: 700 26px/1.2 var(--font); font-style: normal; letter-spacing: -0.025em; }
.panel h3 { font-weight: 650; letter-spacing: -0.01em; }
.btn { font-weight: 600; letter-spacing: -0.005em; }
.btn.big { font-weight: 650; font-size: 16px; }
.hill-card .name { font-weight: 700; letter-spacing: -0.015em; }
.profile-chip { font-weight: 500; }
.profile-chip b { font-weight: 650; }
.foot-logo { font: 800 18px/1 var(--font); font-style: normal; letter-spacing: -0.03em; }

/* opcje Pucharu (np. kwalifikacje) */
.opt-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 14px; color: var(--ink-soft); }
.opt-row input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--red); cursor: pointer; }
.opt-row b { color: var(--navy); }

/* gracze przy tym komputerze (hot-seat) */
.hotseat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 12px 0 4px; padding: 12px 14px; border-radius: 10px; background: rgba(255, 209, 102, 0.18); border: 1px solid rgba(255, 209, 102, 0.6); }
.hotseat b { color: var(--navy); }
.hotseat span { flex: 1 1 320px; font-size: 13px; color: var(--ink-soft); }

/* --- wlasni skoczkowie gracza: separatory sekcji, plakietka "czlowiek" --- */
.jtable tr.sep td { background: transparent; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); padding-top: 14px; }
.lvl.human { background: #1d3557; color: #fff; }

/* --- moje listy skoczkow (do 3) --- */
.mylists { margin: 12px 0 4px; padding: 12px 14px; border-radius: 10px; background: rgba(80, 160, 255, 0.10); border: 1px solid rgba(80, 160, 255, 0.35); display: flex; flex-direction: column; gap: 8px; }
.mylists .ml-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.mylists .ml-head b { color: var(--navy); }
.mylists .ml-head span { font-size: 13px; color: var(--ink-soft); flex: 1 1 300px; }
.mylists .ml-row, .mylists .ml-new { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mylists input { flex: 1 1 180px; min-width: 0; padding: 7px 10px; border-radius: 8px; border: 1px solid #c9d6e2; font: inherit; font-size: 14px; background: #fff; }
.mylists .ml-row input { font-weight: 700; }
.mylists small { font-size: 12px; color: var(--ink-soft); }
.mylists .saved { font-size: 13px; font-weight: 700; color: #b0302b; }

/* --- logo: ikona skoczka + napis czcionka Exo 2 Black Italic (plik lokalny, OFL - bez Google) --- */
@font-face {
    font-family: 'Exo 2 Logo'; font-style: italic; font-weight: 900; font-display: swap;
    src: url('../fonts/Exo2-900i.woff2') format('woff2');
}
.logo {
    display: flex; align-items: center; gap: 0;
    font: italic 900 clamp(32px, 5.6vw, 60px)/1 'Exo 2 Logo', "Segoe UI Black", "Arial Black", sans-serif;
    letter-spacing: 0.005em; word-spacing: 0;
    text-shadow: 0 3px 0 var(--navy), 0 8px 24px rgba(16, 35, 58, 0.35);
}
.logo span { text-shadow: 0 3px 0 #7a1620, 0 8px 24px rgba(16, 35, 58, 0.35); }
.logo-icon {
    width: 1.05em; height: 1.05em; flex-shrink: 0; border-radius: 22%; margin-right: 0.24em;
    filter: drop-shadow(0 4px 10px rgba(16, 35, 58, 0.35));
}
.foot-logo { font: italic 900 20px/1 'Exo 2 Logo', "Segoe UI Black", "Arial Black", sans-serif; letter-spacing: 0.01em; }

/* --- sortowanie listy skoczkow po kliknieciu w naglowek --- */
.jtable th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.jtable th.sortable:hover { color: var(--navy); }
.jtable th.sortable i { font-style: normal; font-size: 10px; margin-left: 4px; opacity: 0.45; }
.jtable th.sortable.on { color: var(--navy); }
.jtable th.sortable.on i { opacity: 1; color: var(--red); }

/* --- Puchar Druzynowy: podglad druzyny i sklad --- */
.team-preview { margin: 12px 0 4px; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.team-preview .tp-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.team-preview small { color: var(--ink-soft); font-size: 12px; }
.team-preview ol { margin: 8px 0 0; padding-left: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 4px 16px; font-size: 14px; }
.squad { list-style: none; margin: 14px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sq-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.sq-num { font-weight: 800; color: var(--navy); width: 22px; }
.sq-pick { flex: 1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.sq-sel { flex: 1 1 260px; min-width: 0; padding: 8px 10px; border-radius: 8px; border: 1px solid #c9d6e2; font: inherit; font-size: 14px; background: #fff; }
.sq-me { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.squad .flag, .team-preview .flag { width: 22px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.12); }

/* --- wybor skoczni: skocznia juz w kalendarzu --- */
.box { position: relative; }
.box.in-cal { background: #e6f6ea; border-color: #7cc794; box-shadow: inset 4px 0 0 #2e9e55; }
.cal-badge { position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 999px; background: #2e9e55; color: #fff; font-size: 12px; font-weight: 700; }
/* nazwa skoczni nie wchodzi pod znacznik w rogu: miejsce na znacznik po prawej, dluga nazwa lamie sie do nowej linii */
.box:has(> .cal-badge) > h4 { align-self: stretch; box-sizing: border-box; padding-right: 156px; min-height: 24px; }
.box:has(> .cal-badge.pack-badge) > h4 { padding-right: 168px; }
@media (max-width: 560px) {   /* waska karta: znacznik w osobnej linii nad nazwa, po prawej */
    .cal-badge { position: static; align-self: flex-end; margin: -4px -4px -2px 0; }
    .box:has(> .cal-badge) > h4, .box:has(> .cal-badge.pack-badge) > h4 { padding-right: 0; }
}
.box.in-pack { background: #eef1f4; border-color: #d3dae1; box-shadow: none; cursor: not-allowed; }
.box.in-pack h4, .box.in-pack .meta { color: #8a97a4; }
.box.in-pack h4 svg, .box.in-pack h4 .flag { filter: grayscale(1); opacity: 0.55; }
.box.in-pack .btn:disabled { background: #cfd6dd; color: #6f7c88; border-color: transparent; box-shadow: none; opacity: 1; cursor: not-allowed; }
.cal-badge.pack-badge { display: inline-flex; align-items: center; gap: 5px; background: #8a97a4; }
.cal-badge.pack-badge .tcs-ico.in { height: 14px; filter: grayscale(0.2); vertical-align: 0; margin: 0; }

/* instalacja gry jako aplikacji (PWA) */
.top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.install-btn { padding: 8px 14px; border: 0; border-radius: 999px; background: #ffd166; color: #10233a; font: 700 14px/1.2 "Segoe UI", Arial, sans-serif; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.18); }
.install-btn:hover { background: #ffc233; }
.install-btn[hidden] { display: none; }

/* instrukcja instalacji na telefonie (pwa.js) */
#install-guide { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 22, 38, 0.7); }
#install-guide .ig-card { width: min(420px, 100%); max-height: 90vh; overflow: auto; background: #fff; border-radius: 14px; padding: 20px 22px; box-shadow: 0 10px 40px rgba(0,0,0,0.35); color: var(--ink); text-align: center; }
#install-guide img { border-radius: 14px; }
#install-guide h3 { margin: 8px 0 10px; color: var(--navy); }
#install-guide ol { text-align: left; margin: 0 0 12px; padding-left: 22px; line-height: 1.5; font-size: 15px; }
#install-guide li { margin: 4px 0; }
#install-guide .ig-ico { display: inline-block; padding: 0 5px; border: 1px solid var(--line); border-radius: 5px; }
#install-guide .ig-note { font-size: 13px; color: var(--ink-soft); margin: 0 0 14px; }
#install-guide .btn { min-width: 120px; }

/* ogloszenie z panelu admina (menu gry i podglad w panelu) */
#banner-box:empty { display: none; }
/* kilka ogloszen: obok siebie, kazde tak szerokie jak jego tresc; gdy brak miejsca - nastepny rzad */
#banner-box { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.banner-slot { flex: 0 1 auto; max-width: 100%; min-width: 0; display: flex; }
.banner-slot > .banner { flex: 1 1 auto; }
#banner-box { margin: 18px 12px 0; }                     /* odstep od naglowka i bokow; od dolu - margines menu (.layout) */
@media (max-width: 600px) { #banner-box { margin: 14px 4px 0; } }
.banner {
    position: relative; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 14px 18px; border-radius: 14px; background: #fff; color: var(--ink);
    box-shadow: 0 8px 24px rgba(16, 35, 58, 0.18); border-left: 6px solid var(--red);
}
.banner-promo { background: linear-gradient(100deg, #fff 55%, #ffe9a8); border-left-color: var(--gold); }
/* reklama w menu oznaczona jako "Anzeige" (wymog prawa niemieckiego dla reklam) */
.banner-ad { position: absolute; left: 10px; top: 4px; font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: rgba(16, 35, 58, 0.55); }
.banner-promo { padding-top: 20px; }
.banner-info { border-left-color: var(--navy); }
.banner-warning { background: #fff1f1; border-left-color: var(--red); }
.banner-img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; }
/* wyglad obrazka z panelu: caly w proporcjach (domyslnie), kwadrat przyciety (jak wyzej), duzy caly */
.banner-img.img-fit { width: auto; height: 72px; max-width: 220px; object-fit: contain; }
.banner-img.img-large { width: auto; height: 130px; max-width: min(340px, 100%); object-fit: contain; }
.banner-body { flex: 0 1 auto; min-width: 140px; max-width: 420px; }        /* dlugi tekst zawija sie w ogloszeniu */
.banner-title { display: block; font: italic 900 20px/1.2 "Segoe UI Black", "Arial Black", Arial, sans-serif; color: var(--navy); }
.banner-text { margin: 4px 0 0; color: var(--ink-soft); line-height: 1.45; }
.banner-cta { flex: none; text-decoration: none; }
.banner-x {
    position: absolute; top: 6px; right: 8px; border: 0; background: transparent; cursor: pointer;
    font-size: 16px; color: var(--ink-soft); padding: 4px 6px; border-radius: 6px;
}
.banner-x:hover { background: rgba(16, 35, 58, 0.08); color: var(--ink); }
.banner:has(.banner-x) { padding-right: 38px; }
@media (max-width: 600px) { .banner-slot { flex: 1 1 100%; } .banner-body { max-width: none; flex: 1 1 160px; } .banner-img { width: 56px; height: 56px; } .banner-img.img-fit { width: auto; height: 56px; max-width: 160px; } .banner-img.img-large { width: auto; height: auto; max-height: 150px; max-width: 100%; } .banner-cta { width: 100%; text-align: center; } }

/* rekordy skoczni: wiatr i "Pokaż więcej" */
.rec-table td.wind { white-space: nowrap; font-size: 13px; }
.rec-table td.wind.head { color: #1e8a4c; }
.rec-table td.wind.tail { color: #c0392b; }
.rec-wrap { overflow-x: auto; }
/* Powtorki: K/HS pod nazwa skoczni, odleglosc + data w jednej kolumnie - tabela wezsza, zeby Odtworz/Usun
   zmiescily sie w jednej linii nawet na telefonie (zawijanie zostaje jako ostatnia deska ratunku) */
.rec-table small { color: var(--ink-soft); font-size: 11.5px; }
.rep-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.rep-table td.d { white-space: nowrap; }
/* telefon: bez kolumny z tytulem (to i tak nazwisko tego samego gracza), ciasniejsze odstepy i mniejsze
   przyciski - Odtworz i Usun w jednej linii */
@media (max-width: 560px) {
    .rep-table .rep-title { display: none; }
    .rep-table th, .rep-table td { padding: 7px 4px; }
    .rep-table small { font-size: 11px; }
    .rep-actions { flex-wrap: nowrap; gap: 4px; }
    .rep-actions .btn.sm { padding: 5px 7px; font-size: 12px; gap: 3px; white-space: nowrap; }
}
.rec-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.rec-foot .online { margin: 0; }
.rec-table tr[data-more] { animation: rec-in 0.3s ease both; }
@keyframes rec-in { from { opacity: 0; transform: translateY(-4px); } }

/* avatar gracza, okno kadrowania, statystyki w profilu */
.avatar-row { display: flex; align-items: center; gap: 16px; margin: 6px 0 14px; flex-wrap: wrap; }
.avatar-big {
    position: relative; width: 96px; height: 96px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; flex: none;
    background: var(--navy); color: #fff; font: 900 34px/96px "Segoe UI", Arial, sans-serif; box-shadow: 0 0 0 3px #fff, 0 6px 16px rgba(16, 35, 58, 0.3);
}
.avatar-big img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar-big i {
    position: absolute; right: -2px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--green);
    font: 14px/30px sans-serif; font-style: normal; box-shadow: 0 0 0 2px #fff;
}
.avatar-big:hover { filter: brightness(1.08); }
.chip-av { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin: -4px 2px -4px -4px; }
.rec-av { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 6px; }
.crop-back { position: fixed; inset: 0; z-index: 2000; background: rgba(10, 22, 38, 0.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.crop-card { background: #fff; border-radius: 16px; padding: 18px; width: min(480px, 100%); box-shadow: 0 18px 50px rgba(0,0,0,0.35); }
.crop-card h3 { margin: 0 0 10px; color: var(--navy); }
.crop-area { height: min(60vh, 380px); background: #10233a; border-radius: 10px; overflow: hidden; }
.crop-area img { display: block; max-width: 100%; max-height: 100%; margin: 0 auto; }
.crop-area .cropper-view-box, .crop-area .cropper-face { border-radius: 50%; }
.crop-hint { font-size: 13px; color: var(--ink-soft); margin: 8px 0; }
.crop-btns { display: flex; justify-content: flex-end; gap: 8px; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 8px 0 12px; }
.stat-tile { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.stat-tile b { font-size: 22px; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat-tile span { font-weight: 700; font-size: 13px; }
.stat-tile small { color: var(--ink-soft); font-size: 12px; }
.stats-table tbody tr:first-child td { font-weight: 400; }
@media (max-width: 560px) { .stat-tiles { grid-template-columns: repeat(2, 1fr); } }

/* profil gracza (#gracz/ID) - link z rekordow, duzy avatar, powiekszenie */
.rec-table a.plink { color: inherit; text-decoration: none; }
.rec-table a.plink:hover { color: var(--red); text-decoration: underline; }
.player-card { display: flex; align-items: center; gap: 20px; margin: 14px 0 6px; flex-wrap: wrap; }
.player-card h2 { margin: 0; }
.player-card .flag { width: 24px; height: 16px; vertical-align: -2px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.15); }
.avatar-huge {
    width: 160px; height: 160px; border-radius: 50%; border: 0; padding: 0; flex: none; cursor: zoom-in; overflow: hidden;
    background: var(--navy); color: #fff; font: 900 56px/160px "Segoe UI", Arial, sans-serif; box-shadow: 0 0 0 4px #fff, 0 10px 26px rgba(16, 35, 58, 0.35);
}
.avatar-huge:disabled { cursor: default; }
.avatar-huge img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-zoom { position: fixed; inset: 0; z-index: 2000; background: rgba(10, 22, 38, 0.85); display: flex; align-items: center; justify-content: center; cursor: zoom-out; padding: 16px; }
.av-zoom img { width: min(86vmin, 560px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,0.5); }
@media (max-width: 560px) { .avatar-huge { width: 120px; height: 120px; line-height: 120px; font-size: 42px; } }

/* profil: avatar pod opisem w naglowku, powiekszenie w okienku, link do profilu publicznego */
.cup-landing-content .avatar-row { margin: 14px 0 0; }
.avatar-big.zoomable { cursor: zoom-in; }
.avatar-big.zoomable i { background: var(--navy); }
.avatar-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 220px; }
.avatar-info > small { color: var(--ink-soft); }
.avatar-info .acc-actions { margin-top: 6px; }
.public-link {
    display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
    margin-top: 8px; padding: 9px 14px; max-width: 320px; border-radius: 12px; text-decoration: none; color: var(--ink);
    background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(16, 35, 58, 0.08); transition: transform 0.15s, box-shadow 0.15s;
}
.public-link span { grid-row: 1 / 3; font-size: 22px; }
.public-link b { color: var(--navy); font-size: 15px; }
.public-link small { grid-column: 2; color: var(--ink-soft); font-size: 12px; }
.public-link i { grid-row: 1 / 3; grid-column: 3; font-style: normal; font-size: 24px; color: var(--red); line-height: 1; }
.public-link:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(16, 35, 58, 0.16); border-color: var(--red); }
.av-zoom { cursor: default; animation: av-fade 0.15s ease-out; }
.av-zoom figure { position: relative; margin: 0; text-align: center; animation: av-pop 0.18s ease-out; }
.av-zoom figure img { display: block; }
.av-zoom figcaption { margin-top: 12px; color: #fff; font: 700 18px/1.2 "Segoe UI", Arial, sans-serif; text-shadow: 0 2px 6px rgba(0,0,0,0.5); }
.av-zoom-x {
    position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
    background: #fff; color: var(--navy); font-size: 16px; font-weight: 800; box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}
.av-zoom-x:hover { background: var(--red); color: #fff; }
@keyframes av-fade { from { opacity: 0; } }
@keyframes av-pop { from { transform: scale(0.92); opacity: 0; } }

/* ikona z grafiki na duzym przycisku (np. Ustaw skoczkow) - bialy rysunek konturowy, wprost na ciemnym przycisku */
/* ikonka po lewej na wysokosc tytulu i podpisu, teksty w kolumnie obok */
.btn.big:has(.btn-ico) { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.btn.big .btn-label { display: contents; }
.btn.big .btn-ico { grid-row: 1 / span 2; grid-column: 1; width: 46px; height: 46px; object-fit: contain; }
.btn.big:has(.btn-ico) small { grid-column: 2; }

/* --- szybka zmiana trudnosci: sila skoczkow komputera (Ustaw skoczkow) --- */
.difficulty { --df0: #2a9d5c; --df1: #3a86ff; --df2: #f2a516; --df3: #d7263d; --df4: #6a1b9a;
    background: linear-gradient(135deg, #ffffff 0%, #f3f7fb 100%); border: 1px solid #d5e0ea; border-radius: 16px;
    padding: 16px 18px 12px; margin: 12px 0 16px; box-shadow: 0 6px 18px rgba(16, 35, 58, 0.08); }
.df-top { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.df-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    background: var(--navy); color: #ffd166; box-shadow: 0 4px 10px rgba(16, 35, 58, 0.25); }
.df-title { flex: 1 1 320px; min-width: 0; }
.df-kicker { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #b0302b; }
.df-title h3 { margin: 2px 0 4px; font-size: 19px; color: var(--navy); }
.df-title p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.df-badge { flex: none; align-self: center; font-size: 12px; padding: 6px 12px; border-radius: 999px; background: #eef3f8; color: var(--ink-soft); white-space: nowrap; }
.df-badge b { color: var(--navy); }
.df-badge.lv0 { box-shadow: inset 3px 0 0 var(--df0); } .df-badge.lv1 { box-shadow: inset 3px 0 0 var(--df1); }
.df-badge.lv2 { box-shadow: inset 3px 0 0 var(--df2); } .df-badge.lv3 { box-shadow: inset 3px 0 0 var(--df3); }
.df-badge.lv4 { box-shadow: inset 3px 0 0 var(--df4); }
/* przyciski poziomow: tyle w rzedzie, ile sie miesci (PS - 5, waski panel Druzynowego - 3 + 2), tekst nie wychodzi poza ramke */
.df-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 14px; }
.df-btn { min-width: 0; }
.df-name { overflow-wrap: anywhere; }
.df-btn { --c: var(--df3); position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left;
    padding: 10px 12px; border-radius: 12px; cursor: pointer; font: inherit; color: var(--navy);
    background: #fff; border: 2px solid #dbe4ec; transition: border-color .15s, box-shadow .15s, transform .15s; }
.df-btn.lv0 { --c: var(--df0); } .df-btn.lv1 { --c: var(--df1); } .df-btn.lv2 { --c: var(--df2); } .df-btn.lv4 { --c: var(--df4); }
.df-btn:hover { border-color: var(--c); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16, 35, 58, 0.1); }
.df-btn:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; }
.df-btn.on { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent), 0 6px 14px rgba(16, 35, 58, 0.12);
    background: color-mix(in srgb, var(--c) 7%, #fff); }
.df-btn.on::after { content: '✓'; position: absolute; top: 8px; right: 10px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--c); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.df-row { display: flex; align-items: center; gap: 8px; }
.df-num { font-size: 24px; font-weight: 900; line-height: 1; color: var(--c); }
.df-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 19px; }
.df-bars i { width: 5px; border-radius: 2px; background: #dbe4ec; }
.df-bars i:nth-child(1) { height: 6px; } .df-bars i:nth-child(2) { height: 9px; } .df-bars i:nth-child(3) { height: 12px; } .df-bars i:nth-child(4) { height: 16px; }
.df-bars i:nth-child(5) { height: 19px; }
.df-bars i.on { background: var(--c); }
.df-name { font-weight: 800; font-size: 15px; }
.df-change { font-size: 12px; font-weight: 700; color: var(--c); }
.df-ex { font-size: 12px; color: var(--ink-soft); }
.df-note { margin: 10px 0 0; font-size: 12px; color: var(--ink-soft); }
@media (max-width: 700px) { .df-btns { grid-template-columns: repeat(2, minmax(0, 1fr)); } .df-badge { align-self: flex-start; } }
.lvl-to { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }/* tlo strony glownej: canvas z krajobrazem (js/bg-scene.js) i przycisk dzwiekow natury */
.bg-scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.nature-btn {
    position: fixed; left: 14px; bottom: 14px; z-index: 50;
    width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(16, 35, 58, 0.72); color: #fff; font-size: 20px; line-height: 44px;
    box-shadow: 0 4px 14px rgba(16, 35, 58, 0.3); transition: background .15s, transform .15s;
}
.nature-btn:hover { background: var(--navy); transform: scale(1.06); }
.nature-btn[aria-pressed="false"] { opacity: 0.75; }
.jtable tr.sep.reserve td { color: #8a6b6b; border-top: 2px dashed #d5dde5; padding-top: 18px; }
.jtable tr.empty-row td { color: var(--ink-soft); font-style: italic; text-align: center; }
.jtable tr.note-row td { background: #eef6ff; color: #1d4f91; font-weight: 600; text-align: center; }
.banner-img-link { display: contents; }
/* szybka zmiana trudnosci w waskim miejscu (telefon, Puchar Druzynowy obok obrazka): kazdy poziom jako jeden wiersz na cala szerokosc */
.difficulty { container-type: inline-size; }
@container (max-width: 520px) {
    .difficulty .df-top { gap: 10px; }
    .difficulty .df-icon { width: 36px; height: 36px; border-radius: 10px; }
    .difficulty .df-title { flex-basis: 100%; }
    .difficulty .df-title h3 { font-size: 17px; }
    .difficulty .df-title p { font-size: 12px; }
    .difficulty .df-btns { grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
    .difficulty .df-btn { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 1px; align-items: center; padding: 8px 34px 8px 10px; }
    .difficulty .df-row { grid-row: 1 / span 3; flex-direction: column; align-items: center; gap: 4px; min-width: 30px; }
    .difficulty .df-name, .difficulty .df-change, .difficulty .df-ex { grid-column: 2; min-width: 0; overflow-wrap: anywhere; }
    .difficulty .df-name { font-size: 14px; }
    .difficulty .df-change, .difficulty .df-ex { font-size: 11.5px; }
    .difficulty .df-btn.on::after { top: 50%; transform: translateY(-50%); right: 8px; }
}
@media (max-width: 620px) { .cup-landing-content .difficulty { padding: 12px 12px 10px; margin: 10px 0 14px; } }

/* ============ Rekordy skoczni: zrodlo (wszyscy / lokalne), okres, karty skoczni z podium ============ */
.recx { margin-top: 18px; }
.recx-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
/* przelacznik z przesuwajaca sie "pigulka" (--n przyciskow, --k aktywny) */
.recx-seg {
    position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr));
    padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(16, 35, 58, 0.08); isolation: isolate;
}
.recx-seg::before {
    content: ""; position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px;
    width: calc((100% - 8px) / var(--n)); border-radius: 999px; background: var(--navy);
    box-shadow: 0 3px 10px rgba(29, 53, 87, 0.35);
    transform: translateX(calc(100% * var(--k))); transition: transform 0.35s cubic-bezier(.3, 1.3, .5, 1);
}
.recx-seg.per::before { background: var(--red); box-shadow: 0 3px 10px rgba(230, 57, 70, 0.35); }
.recx-seg button {
    border: 0; background: transparent; cursor: pointer; white-space: nowrap;
    padding: 8px 14px; border-radius: 999px; font: 600 14px/1.1 var(--font); color: var(--ink-soft);
    transition: color 0.25s ease;
}
.recx-seg button:hover { color: var(--navy); }
.recx-seg button.active { color: #fff; }
.recx-cap { margin: 12px 2px 0; font-size: 14px; color: var(--ink-soft); }
.recx-cap b { color: var(--navy); }

.recx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin-top: 12px; align-items: start; }
.recx-card {
    background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 10px;
    box-shadow: 0 4px 16px rgba(16, 35, 58, 0.07);
    animation: recx-in 0.42s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 55ms);
    transition: opacity 0.16s ease, transform 0.16s ease;
}
.recx-card.open { grid-column: 1 / -1; }
.recx-grid.out .recx-card { opacity: 0; transform: translateY(8px) scale(0.98); animation: none; }
@keyframes recx-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.recx-head { display: flex; align-items: center; gap: 10px; }
.recx-head .flag { width: 30px; height: 20px; border-radius: 3px; flex-shrink: 0; box-shadow: 0 0 0 1px var(--line); }
.recx-head b { display: block; color: var(--navy); font-size: 16px; }
.recx-head small { color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.recx-body { margin-top: 10px; }
/* podium: 3 najlepsze */
.recx-top { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.recx-top li {
    display: grid; grid-template-columns: 26px 1fr auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center;
    padding: 7px 10px; border-radius: 10px; background: #f5f8fb;
}
.recx-top li.p1 { background: linear-gradient(90deg, rgba(255, 209, 102, 0.38), rgba(255, 209, 102, 0.08)); }
.recx-top li.me { box-shadow: inset 3px 0 0 var(--red); }
.recx-top .m { grid-row: 1 / 3; font-size: 20px; line-height: 1; }
.recx-top .n { font-weight: 700; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recx-top .n a.plink { color: inherit; text-decoration: none; }
.recx-top .n a.plink:hover { color: var(--red); text-decoration: underline; }
.recx-top .d { grid-row: 1 / 3; grid-column: 3; font-size: 17px; color: var(--navy); font-variant-numeric: tabular-nums; }
.recx-top li.p1 .d { color: var(--green); }
.recx-top .pt { grid-column: 2; font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.recx-top .rec-av { width: 20px; height: 20px; }
.recx-empty { margin: 4px 0; padding: 14px 10px; text-align: center; border-radius: 10px; background: #f5f8fb; color: var(--ink-soft); font-size: 14px; }
.recx-foot { display: flex; justify-content: flex-end; margin-top: 6px; min-height: 8px; }
.recx-more {
    border: 0; background: transparent; cursor: pointer; padding: 6px 4px;
    font: 700 13px/1 var(--font); color: var(--red);
}
.recx-more:hover { text-decoration: underline; }
.recx-more[hidden] { display: none; }
/* pelna tabela: Najdluzsze / Najnowsze */
.recx-sort { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.recx-sort button {
    border: 1px solid var(--line); background: #fff; cursor: pointer; border-radius: 999px;
    padding: 5px 12px; font: 600 13px/1 var(--font); color: var(--ink-soft); transition: background 0.2s, color 0.2s;
}
.recx-sort button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.recx-count { margin-left: auto; font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.rec-table.recent tr:first-child td { font-weight: 400; }
.rec-table.recent tr:first-child td.d { color: inherit; }
/* ladowanie */
.recx-skel { display: flex; flex-direction: column; gap: 6px; }
.recx-skel i {
    display: block; height: 40px; border-radius: 10px;
    background: linear-gradient(90deg, #eef3f7 0%, #f8fafc 50%, #eef3f7 100%); background-size: 200% 100%;
    animation: recx-shim 1.1s linear infinite;
}
@keyframes recx-shim { to { background-position: -200% 0; } }
@media (max-width: 620px) {
    .recx-bar { flex-direction: column; align-items: stretch; }
    .recx-seg button { padding: 8px 2px; font-size: 12.5px; letter-spacing: -0.01em; }
    .recx-card.open .rec-table td:nth-child(2) { white-space: nowrap; }
    .recx-seg .lf { display: none; }        /* "Od zawsze" -> "zawsze" */
    .recx-seg button::first-letter { text-transform: uppercase; }
    .recx-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .recx-card, .recx-skel i { animation: none; }
    .recx-seg::before { transition: none; }
}

/* --- Kontakt: formularz z tematami --- */
.menu a .menu-emoji { display: inline-flex; align-items: center; justify-content: center; font-size: 19px; font-style: normal; line-height: 1; }
.cup-landing.contact-landing { display: block; min-height: 0; }
.contact-landing .cup-landing-content { padding: 0; max-width: none; }
.contact-landing .lead { max-width: 70ch; }
.contact-form { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.ct-topics { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ct-topics legend, .contact-form > label, .ct-row label { font-weight: 700; font-size: 14px; color: var(--navy); margin-bottom: 6px; }
.ct-topic { position: relative; cursor: pointer; }
.ct-topic input { position: absolute; opacity: 0; pointer-events: none; }
.ct-card { display: flex; flex-direction: column; gap: 3px; height: 100%; box-sizing: border-box; padding: 11px 12px;
    background: #fff; border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.ct-card b { font-size: 14px; color: var(--ink); }
.ct-card small { font-size: 12px; color: var(--ink-soft); line-height: 1.35; }
.ct-ic { font-size: 20px; line-height: 1; }
.ct-topic:hover .ct-card { transform: translateY(-1px); border-color: rgba(29, 53, 87, 0.35); }
.ct-topic input:checked + .ct-card { border-color: var(--red); box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.18); }
.ct-topic input:focus-visible + .ct-card { outline: 2px solid var(--navy); outline-offset: 2px; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .ct-row { grid-template-columns: 1fr; } }
.ct-row label, .ct-msg { display: flex; flex-direction: column; gap: 6px; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form textarea {
    font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); padding: 10px 12px; border-radius: 10px;
    border: 1px solid #c9d6e2; background: #fff; box-sizing: border-box; width: 100%; }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(29, 53, 87, 0.15); }
.ct-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-consent { display: flex !important; flex-direction: row !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 13px !important; color: var(--ink-soft) !important; }
.ct-consent input { margin-top: 2px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--red); }
.ct-consent a { color: var(--navy); font-weight: 700; }
.ct-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ct-msg-out { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.ct-msg-out.bad { color: #c0392b; }
.contact-done { margin-top: 16px; padding: 18px 20px; border-radius: 12px; background: #eaf7ef; border: 1px solid rgba(42, 157, 92, 0.35); }
.contact-done b { color: var(--green); font-size: 17px; }
.contact-done p { margin: 6px 0 12px; color: var(--ink); }

/* --- menu glowne: pozycja "wkrotce" (szara, nieklikalna) --- */
.menu .menu-soon {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    background: rgba(16, 35, 58, 0.45); color: rgba(255, 255, 255, 0.55);
    font: 600 15.5px/1.2 var(--font); letter-spacing: -0.01em;
    border-radius: 10px; border-left: 5px solid transparent; cursor: default; user-select: none;
}
.menu .menu-soon .menu-icon { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; background: rgba(255,255,255,0.35); filter: grayscale(1); opacity: 0.7;
    display: inline-flex; align-items: center; justify-content: center; font-size: 19px; }
.menu .menu-soon small { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,0.15); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.menu a .menu-emoji { display: inline-flex; align-items: center; justify-content: center; font-size: 19px; }

/* --- "Reklama": oferta reklamy w grze --- */
.ad-page { display: flex; flex-direction: column; gap: 6px; }
.ad-hero { padding: 4px 0 6px; }
.ad-hero .lead { max-width: 70ch; margin-bottom: 14px; }
.ad-kicker { display: inline-block; margin-bottom: 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.ad-places { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 18px; margin: 14px 0 10px; }
.ad-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 6px 22px rgba(16, 35, 58, 0.08); display: flex; flex-direction: column; }
.ad-card-body { padding: 14px 18px 16px; display: flex; flex-direction: column; flex: 1; }
.ad-card h3 { margin: 4px 0 6px; }
.ad-card p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.ad-tag { align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); background: rgba(29, 53, 87, 0.08); padding: 3px 9px; border-radius: 999px; }
.ad-mock { position: relative; height: 190px; border-bottom: 1px solid var(--line); overflow: hidden; }
.ad-mock-band canvas { display: block; width: 100%; height: 100%; }
/* makieta strony glownej z banerem */
.ad-mock-site { background: linear-gradient(#5d9ad6 0%, #9cc6ea 60%, #dcebf6 100%); padding: 12px 14px; box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; }
.am-top { display: flex; align-items: center; justify-content: space-between; }
.am-logo { font: italic 900 15px/1 "Segoe UI Black", "Arial Black", Arial, sans-serif; color: #fff; text-shadow: 0 2px 0 var(--navy); letter-spacing: 0.01em; }
.am-logo b { color: var(--red); }
.am-chip { width: 54px; height: 14px; border-radius: 999px; background: var(--navy); }
.am-body { flex: 1; display: grid; grid-template-columns: 30% 1fr; gap: 10px; min-height: 0; }
.am-menu { display: flex; flex-direction: column; gap: 6px; }
.am-menu i { height: 20px; border-radius: 6px; background: rgba(29, 53, 87, 0.92); }
.am-menu i.on { background: #fff; box-shadow: inset 3px 0 0 var(--red); }
.am-main { background: rgba(255, 255, 255, 0.92); border-radius: 10px; padding: 9px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 6px 16px rgba(16, 35, 58, 0.15); }
.am-main i { height: 7px; border-radius: 4px; background: rgba(16, 35, 58, 0.1); }
.am-main i.short { width: 55%; }
.am-banner { position: relative; flex: 0 0 64px; border-radius: 8px; padding: 8px 12px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center;
    background: linear-gradient(120deg, #e63946 0%, #c22533 55%, #1d3557 140%); color: #fff; box-shadow: 0 0 0 2px #ffd166, 0 8px 18px rgba(230, 57, 70, 0.35); animation: amPulse 2.8s ease-in-out infinite; }
.am-banner b { font: 900 16px/1.1 "Segoe UI Black", "Arial Black", Arial, sans-serif; letter-spacing: 0.02em; }
.am-banner small { font-size: 11px; font-weight: 700; opacity: 0.9; margin-top: 3px; }
.am-ad-label { position: absolute; top: 5px; right: 8px; font-size: 8.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.75; }
.am-cursor { position: absolute; right: 22%; top: 52%; width: 16px; height: 16px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 1 L2 13 L5.2 10 L7.6 15 L9.8 14 L7.4 9.2 L12 9.2 Z' fill='%23fff' stroke='%2310233a' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E");
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3)); animation: amClick 2.8s ease-in-out infinite; }
@keyframes amPulse { 0%, 55%, 100% { transform: scale(1); } 62% { transform: scale(0.985); } }
@keyframes amClick { 0% { transform: translate(26px, 30px); } 50% { transform: translate(0, 0); } 62% { transform: translate(0, 0) scale(0.85); } 70%, 100% { transform: translate(0, 0); } }
@media (prefers-reduced-motion: reduce) { .am-banner, .am-cursor { animation: none; } }
.ad-stats-list { list-style: none; margin: auto 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy); }
.ad-yes, .ad-no { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 50%; font-weight: 800; font-size: 12px; vertical-align: middle; }
.ad-yes { background: rgba(42, 157, 92, 0.14); color: var(--green); }
.ad-no { background: rgba(16, 35, 58, 0.07); color: var(--ink-soft); }
.ad-section { margin-top: 10px; }
.ad-sub { margin: 0 0 12px; color: var(--ink-soft); font-size: 14.5px; max-width: 72ch; }
.ad-langs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 10px; }
.ad-lang { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; display: flex; flex-direction: column; gap: 4px; }
.ad-lang b { color: var(--navy); font-size: 15px; }
.ad-lang small { color: var(--ink-soft); font-size: 13px; line-height: 1.4; }
.ad-lang-ic { height: 22px; display: flex; align-items: center; margin-bottom: 3px; }
.ad-flag { display: inline-block; width: 33px; height: 22px; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px rgba(16, 35, 58, 0.15); }
.ad-flag svg { display: block; width: 100%; height: 100%; }
.ad-flags { display: inline-flex; gap: 4px; }
.ad-flags .ad-flag { width: 27px; height: 18px; }
.ad-table { max-width: 560px; background: #fff; border-radius: 12px; overflow: hidden; }
.ad-table td.num, .ad-table th.num { text-align: center; }
.ad-table .ad-yes, .ad-table .ad-no { margin: 0; }
.ad-note { font-size: 13px; margin-top: 8px; }
/* formularz zapytania o cene */
.ad-quote { margin-top: 18px; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(16, 35, 58, 0.1); scroll-margin-top: 16px; }
.ad-quote-head { padding: 18px 22px; background: linear-gradient(120deg, var(--navy), #2b4f7e); color: #fff; }
.ad-quote-head h3 { margin: 0 0 4px; color: #fff; font-size: 20px; }
.ad-quote-head p { margin: 0; font-size: 14px; color: #d3e0ee; }
.ad-form { padding: 6px 22px 22px; margin-top: 8px; }
.ad-choice { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.ad-choice-lang { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.ad-choice .ct-card { justify-content: flex-start; }
.ad-choice .ct-topic input:checked + .ct-card { background: #fff5f6; }
.contact-form select, .contact-form input[type=month] { font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid #c9d6e2; border-radius: 10px; background: #fff; color: var(--ink); min-height: 44px; width: 100%; box-sizing: border-box; }
.contact-form select:focus, .contact-form input[type=month]:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(29, 53, 87, 0.15); }
.ad-quote .contact-done { margin: 18px 22px 22px; }
@media (max-width: 560px) {
    .ad-mock { height: 160px; }
    .ad-form { padding: 4px 14px 16px; }
    .ad-quote-head { padding: 16px; }
}

/* --- kreator reklamy (strona "Reklama") --- */
.ab-kicker { display: inline-block; margin-bottom: 4px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #ffd166; }
.ad-builder .ad-form { gap: 0; padding-top: 0; }
.ab-step { padding: 18px 0 20px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.ad-builder [hidden] { display: none !important; }
.ab-step h4 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 17px; color: var(--navy); }
.ab-n { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 14px; font-weight: 800; flex: none; }
.ab-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 22px; align-items: start; }
@media (max-width: 900px) { .ab-grid { grid-template-columns: 1fr; } }
.ab-fields { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ab-fields > label, .ab-colors label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; color: var(--navy); }
.ab-hint { font-weight: 500; color: var(--ink-soft); font-size: 12px; }
.ab-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid #c9d6e2; border-radius: 12px; overflow: hidden; background: #fff; }
.ab-seg label { position: relative; cursor: pointer; }
.ab-seg input { position: absolute; opacity: 0; pointer-events: none; }
.ab-seg span { display: block; padding: 10px 8px; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); transition: background 0.12s, color 0.12s; }
.ab-seg label + label span { border-left: 1px solid #c9d6e2; }
.ab-seg input:checked + span { background: var(--navy); color: #fff; }
.ab-seg input:focus-visible + span { outline: 2px solid var(--red); outline-offset: -2px; }
.ab-colors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ab-colors .ab-wide { grid-column: span 2; }
.ab-colors.ab-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .ab-colors .ab-wide { grid-column: 1 / -1; } .ab-colors.ab-two { grid-template-columns: 1fr; } }
.ab-colors input[type=color], .ab-check input[type=color] { width: 100%; height: 40px; padding: 3px; border: 1px solid #c9d6e2; border-radius: 10px; background: #fff; cursor: pointer; box-sizing: border-box; }
.ab-fields > label.ab-check { flex-direction: row; }
.ab-check { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; color: var(--navy); }
.ab-check input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--red); }
.ab-check input[type=color] { width: 54px; height: 32px; }
.ab-presets { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.ab-presets button { width: 38px; height: 28px; border-radius: 8px; border: 1px solid rgba(16, 35, 58, 0.18); font: italic 900 13px/1 "Segoe UI Black", "Arial Black", Arial, sans-serif; cursor: pointer; transition: transform 0.1s; }
.ab-presets button:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(16, 35, 58, 0.18); }
.ab-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; border: 1px dashed #b9c8d6; border-radius: 12px; background: #f7fafc; }
.ab-upload[hidden] { display: none; }
.ab-upload small { flex-basis: 100%; color: var(--ink-soft); font-size: 12px; line-height: 1.4; }
.ab-file { font-size: 13px; font-weight: 600; color: var(--green); word-break: break-all; }
.ab-preview { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 14px; border-radius: 14px; background: linear-gradient(#f4f8fc, #eaf1f8); border: 1px solid var(--line); }
@media (max-width: 900px) { .ab-preview { position: static; } }
.ab-plabel { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.ab-board-wrap { border-radius: 6px; overflow: hidden; box-shadow: 0 6px 18px rgba(16, 35, 58, 0.22); background: #fff; }
.ab-board-wrap canvas { display: block; width: 100%; }
.ab-scene { height: 200px; border-radius: 10px; border: 1px solid var(--line); }
.ab-scene canvas { display: block; width: 100%; height: 100%; }
.ab-preview .ad-note { margin: 2px 0 0; }
.ab-site { border-radius: 12px; overflow: hidden; background: linear-gradient(#5d9ad6 0%, #9cc6ea 60%, #dcebf6 100%); padding: 12px; display: flex; flex-direction: column; gap: 10px; box-shadow: inset 0 0 0 1px rgba(16, 35, 58, 0.08); }
.ab-site-top { display: flex; align-items: center; justify-content: space-between; }
.ab-site-body { display: grid; grid-template-columns: 22% 1fr; gap: 10px; }
.ab-site-main { background: rgba(255, 255, 255, 0.92); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 7px; min-width: 0; box-shadow: 0 6px 16px rgba(16, 35, 58, 0.15); }
.ab-site-main > i { height: 7px; border-radius: 4px; background: rgba(16, 35, 58, 0.1); }
.ab-site-main > i.short { width: 55%; }
.ab-site .banner-slot { display: flex; }
.ab-site .banner { font-size: 13px; }
@media (max-width: 560px) { .ab-site-body { grid-template-columns: 1fr; } .ab-site .am-menu { display: none; } }
.ab-send { padding-top: 18px; }
.ab-done { margin: 22px; }

/* --- "Wiecej...": kafelki z pozostalymi czesciami gry --- */
.more-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; margin-top: 16px; }
.more-tile {
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 18px 16px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--navy); text-decoration: none;
    box-shadow: 0 2px 8px rgba(16, 35, 58, 0.06); transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.more-tile:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(16, 35, 58, 0.14); border-color: var(--red); }
.more-tile .more-icon { width: 54px; height: 54px; object-fit: contain; margin-bottom: 4px; }
.more-tile .more-emoji { display: inline-flex; align-items: center; justify-content: center; font-size: 34px; }
.more-tile b { font: 700 17px/1.2 var(--font); }
.more-tile span:last-child { font-size: 13.5px; color: #4b5f72; line-height: 1.4; }
.back-more { display: inline-block; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--red); text-decoration: none; }
.back-more:hover { text-decoration: underline; }
@media (max-width: 560px) {
    .more-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .more-tile { padding: 12px 12px 12px; gap: 4px; }
    .more-tile .more-icon { width: 40px; height: 40px; }
    .more-tile .more-emoji { font-size: 26px; }
    .more-tile b { font-size: 15px; }
    .more-tile span:last-child { font-size: 12px; }
}
/* ikona "Więcej…" – plus */
.menu a .menu-plus { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.menu a .menu-plus svg { width: 22px; height: 22px; display: block; }
.menu a .menu-plus path { fill: none; stroke: var(--navy, #1b3150); stroke-width: 3.4; stroke-linecap: round; }
.menu a.active .menu-plus { background: var(--navy, #1b3150); }
.menu a.active .menu-plus path { stroke: #fff; }
/* blad przy zapisie (np. niedozwolona nazwa skoczka) */
.saved.err-msg { color: #c0392b; font-weight: 700; }
/* logowanie kodem QR (telewizor) */
.qr-login { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(16, 35, 58, 0.12); }
.qr-login .qr-hint { margin: 0 0 10px; }
.qr-box { margin-top: 14px; }
.qr-wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.qr-canvas { width: 264px; height: 264px; max-width: 100%; border-radius: 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15); background: #fff; image-rendering: pixelated; }
.qr-info { flex: 1 1 260px; min-width: 0; }
.qr-info p { margin: 6px 0; }
.qr-code { font: 800 34px/1.1 ui-monospace, Consolas, monospace; letter-spacing: 0.18em; color: var(--navy); margin: 6px 0 4px; }
.qr-left { color: #5a6b7d; font-size: 13px; }
.qr-status { color: #c0392b; font-weight: 600; }
.qr-url { word-break: break-all; }
.qr-approve input[name="code"] { font: 800 24px/1.2 ui-monospace, Consolas, monospace; letter-spacing: 0.15em; text-transform: uppercase; }

/* ---------- wersja demo / Premium (js/demo.js) ---------- */
.premium-invite { display: flex; gap: 14px; align-items: flex-start; margin: 14px 0; padding: 14px 16px; border-radius: 12px;
    background: linear-gradient(135deg, #fffaf0, #fff3d6); border: 1px solid #f0d9a0; box-shadow: 0 6px 18px rgba(120, 90, 20, 0.12); color: var(--ink); text-align: left; }
.premium-invite .pi-ico { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 22px;
    background: linear-gradient(#ffd166, #f4a72c); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12); }
.premium-invite .pi-body { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; }
.premium-invite .pi-body b { color: var(--navy); font-size: 16px; }
.premium-invite .pi-body p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.45; }
.premium-invite .btn { margin-top: 6px; }
.hill-card.pm-locked { background: #eef1f4; box-shadow: none; }
.hill-card.pm-locked .name, .hill-card.pm-locked .meta { color: #8a97a4; }
.hill-card.pm-locked .name svg, .hill-card.pm-locked .name .flag { filter: grayscale(1); opacity: 0.55; }
.hill-card.pm-locked .btn { background: #dfe4e9; color: #5d6b78; box-shadow: none; }
.box.pm-locked .btn { align-self: flex-start; }
ol.calendar li.pm-locked { background: #eef1f4; color: #8a97a4; }
ol.calendar li.pm-locked::after { content: '🔒'; margin-left: 4px; }
.menu a.pm-locked::after { content: '🔒'; margin-left: auto; font-size: 14px; opacity: 0.85; }
.premium-status { margin: 12px 0; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.premium-status.ok { background: #eefaf2; border-color: #bfe5cc; }
.premium-compare ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.7; }
.premium-compare .pm-full { border-color: #f0d9a0; background: linear-gradient(135deg, #fffdf6, #fff6e0); }
.pm-landing .cup-landing-art img { filter: grayscale(0.6); opacity: 0.85; }
