/* FENIKS wyniki — wygląd aplikacji pełnoekranowej (/wyniki-app/) */
:root { --wla-accent: #e8590c; }
html { -webkit-text-size-adjust: 100%; }
body.wla {
  margin: 0; background: #fff; color: #17181c;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding-bottom: env(safe-area-inset-bottom);
  overscroll-behavior-y: none;
}
body.wla a { color: inherit; }

.wla-bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 8px;
  height: calc(52px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 8px 0 12px;
  background: var(--wla-accent); color: #fff;
}
.wla-brand { flex: 1 1 auto; font-weight: 800; font-size: 18px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wla-back { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: -6px; font-size: 34px; line-height: 1; text-decoration: none; color: #fff !important; border-radius: 10px; }
.wla-install {
  height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: #fff; color: var(--wla-accent);
  font: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
}
.wla-share { width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.wla-share svg { width: 22px; height: 22px; fill: #fff; }
.wla-share.is-done svg { opacity: .5; }

/* przyklejony pasek wyników pod paskiem aplikacji */
body.wla .wl-app { --wl-top: calc(52px + env(safe-area-inset-top)); }

/* lista zawodów */
.wla-index { max-width: 760px; margin: 0 auto; padding: 16px 16px 32px; }
.wla-index h1 { font-size: 24px; line-height: 1.15; margin: 6px 0 16px; letter-spacing: -.01em; }
.wla-empty { color: #6b6f78; text-align: center; padding: 24px 0; }
.wla-card {
  display: flex; flex-direction: column; gap: 4px; text-decoration: none;
  padding: 16px; margin-bottom: 10px; border: 1.5px solid #e7e8ec; border-radius: 14px;
}
.wla-card strong { font-size: 18px; line-height: 1.2; }
.wla-card-date { color: #6b6f78; font-size: 14px; }
.wla-card-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #6b6f78; }
.wla-card.is-live { border-color: #12813b; }
.wla-card.is-live .wla-card-st { color: #12813b; }
.wla-card-st i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: wl-pulse 1.6s infinite; }
.wla-site { text-align: center; margin-top: 28px; font-size: 14px; color: #6b6f78; }

/* instrukcja dla iPhone */
.wla-hint {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50;
  background: #17181c; color: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 8px 30px rgba(0,0,0,.3);
  font-size: 15px; line-height: 1.4;
}
.wla-hint p { margin: 0 0 6px; }
.wla-hint button { margin-top: 6px; height: 36px; padding: 0 18px; border: 0; border-radius: 10px; background: #fff; color: #17181c; font: inherit; font-weight: 700; }
.wla-ios-share {
  display: inline-block; width: 16px; height: 18px; vertical-align: -3px; margin: 0 2px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M12 3v12M8 7l4-4 4 4M5 11v9h14v-9'/%3E%3C/svg%3E");
}

@media (min-width: 640px) {
  .wla-index { padding-top: 28px; }
  .wla-card:hover { border-color: var(--wla-accent); }
}

/* logo na pasku */
.wla-logo { flex: 0 0 auto; display: flex; align-items: center; height: 44px; margin-right: 2px; }
.wla-logo img { display: block; height: 42px; width: auto; }
.wla-back + .wla-logo { margin-left: -6px; }

/* karta instalacji (wejście z przycisku „Pobierz aplikację”) */
.wla-sheet { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; animation: wla-fade .2s ease-out; }
.wla-sheet-card {
  width: 100%; max-width: 520px; background: #fff; color: #17181c;
  border-radius: 20px 20px 0 0; padding: 20px 20px calc(16px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 30px rgba(0,0,0,.2); animation: wla-up .25s ease-out;
}
.wla-sheet-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.wla-sheet-head img { width: 56px; height: 56px; border-radius: 14px; }
.wla-sheet-head b { display: block; font-size: 18px; }
.wla-sheet-head small { color: #6b6f78; font-size: 14px; }
.wla-sheet-body { font-size: 16px; line-height: 1.45; }
.wla-sheet-body p { margin: 6px 0; }
.wla-sheet-body ol { margin: 6px 0; padding-left: 22px; }
.wla-sheet-body li { margin: 6px 0; }
.wla-sheet-note { color: #6b6f78; font-size: 14px; }
.wla-sheet-act { display: flex; gap: 10px; margin-top: 14px; }
.wla-sheet-act button { flex: 1 1 0; height: 48px; border-radius: 12px; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.wla-sheet-no { border: 1.5px solid #e7e8ec; background: #fff; color: #17181c; }
.wla-sheet-yes { border: 0; background: var(--wla-accent); color: #fff; order: 2; }
.wla-ios-dark { filter: invert(1); }
@keyframes wla-fade { from { opacity: 0; } }
@keyframes wla-up { from { transform: translateY(40px); opacity: .5; } }
@media (min-width: 560px) { .wla-sheet { align-items: center; } .wla-sheet-card { border-radius: 20px; } }

/* zawody pogrupowane po dniu (rozwijane) */
.wla-day { border: 1.5px solid #e7e8ec; border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.wla-day.is-live { border-color: #12813b; }
.wla-day > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.wla-day > summary::-webkit-details-marker { display: none; }
.wla-day-txt { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wla-day-txt strong { font-size: 18px; line-height: 1.2; }
.wla-day.is-live .wla-card-st { color: #12813b; }
.wla-day-arrow { flex: 0 0 auto; width: 10px; height: 10px; border-right: 2.5px solid #6b6f78; border-bottom: 2.5px solid #6b6f78; transform: rotate(45deg); margin: 0 6px 4px; transition: transform .2s; }
.wla-day[open] .wla-day-arrow { transform: rotate(-135deg); margin-bottom: -4px; }
.wla-day[open] > summary { border-bottom: 1px solid #e7e8ec; background: #f5f6f8; }
.wla-day-list { padding: 10px 10px 2px; }
.wla-card.is-sub { margin-bottom: 8px; padding: 13px 14px; border-radius: 12px; }
.wla-card.is-sub strong { font-size: 17px; }
.wla-card-st.wla-soon { color: #1d5fbf; }
.wla-card.is-upcoming { border-color: #b9cdf0; }

/* ===== kolorystyka strony Feniksa: grafit + złoto + krem, Bebas Neue / Barlow ===== */
:root { --wla-bar: #141210; --wla-accent: #e9b230; }
body.wla { background: #f8f5ef; color: #141210; font-family: Barlow, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.wla-bar { background: var(--wla-bar); border-bottom: 3px solid var(--wla-accent); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.wla-brand { font-family: "Bebas Neue", "Roboto Condensed", "Arial Narrow", sans-serif-condensed, Barlow, sans-serif; font-weight: 400; font-size: 26px; letter-spacing: 1.2px; color: #fff; }
.wla-logo-mask { display: block; width: 52px; height: 42px; background: var(--wla-accent); -webkit-mask: no-repeat center / contain; mask: no-repeat center / contain; }
.wla-install { background: var(--wla-accent); color: #141210; font-family: Barlow, sans-serif; font-weight: 700; }
.wla-share svg { fill: var(--wla-accent); }
.wla-index h1 { font-family: "Bebas Neue", Barlow, sans-serif; font-weight: 400; font-size: 40px; letter-spacing: .5px; }
.wla-card, .wla-day { background: #fff; border: 0; border-top: 6px solid var(--wla-accent); border-radius: 18px; box-shadow: 0 4px 14px rgba(20,18,16,.06); }
.wla-card strong, .wla-day-txt strong { font-family: "Bebas Neue", Barlow, sans-serif; font-weight: 400; font-size: 26px; letter-spacing: .5px; line-height: 1.05; }
.wla-card.is-live, .wla-day.is-live { border-color: #12813b; }
.wla-card-st { color: #8a7f75; }
.wla-card-st.wla-soon { color: #9a6c00; }
.wla-card.is-upcoming { border-color: var(--wla-accent); }
.wla-day[open] > summary { background: #f3eee5; border-bottom-color: #e8e1d6; }
.wla-day-list { background: #fff; }
.wla-card.is-sub { border-top: 0; border-left: 4px solid var(--wla-accent); border-radius: 12px; background: #f8f5ef; box-shadow: none; }
.wla-card.is-sub strong { font-size: 22px; }
.wla-day-arrow { border-color: #141210; }
.wla-sheet-yes { background: var(--wla-accent); color: #141210; }
.wla-sheet-card, .wla-hint { font-family: Barlow, system-ui, sans-serif; }
@media (min-width: 640px) { .wla-card:hover { border-top-color: #141210; } }
/* wąskie telefony: nazwa „FENIKS wyniki” + „Zainstaluj” muszą się zmieścić */
@media (max-width: 420px) {
  .wla-bar { gap: 6px; padding-left: 10px; }
  .wla-brand { font-size: 22px; letter-spacing: .6px; }
  .wla-logo-mask { width: 44px; height: 38px; }
  .wla-install { height: 32px; padding: 0 10px; font-size: 13px; }
  .wla-share { width: 34px; }
}
