/* Font marki: Montserrat z własnego serwera (bez Google Fonts). Licencja: fonts/LICENSE-OFL.txt */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/montserrat-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/montserrat-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/montserrat-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/montserrat-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/montserrat-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/montserrat-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/montserrat-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/montserrat-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Wygląd aplikacji: kolory marki Cyrek4Cyber, tło, kafelki, przyciski, animacje.
   Tailwind (klasy pomocnicze) ładuje się osobno w index.html. Kolory zmieniasz tylko tutaj, w :root. */


:root {
  --ink: #421A6C;      /* fiolet nagłówków */
  --plum: #4B136E;     /* przyciski, początek gradientu */
  --rose: #EE4687;     /* koniec gradientu marki #EE4687 → #4B136E */
  --pink: #F22D79;     /* akcent marki */
  --lilac: #FBE5F5;    /* jasne kwadraty, tła pól */
  --mist: #f7f7f7;     /* tło sekcji */
  --text: #3d3348;     /* tekst */
  --muted: #6f607f;    /* tekst pomocniczy */
  --line: #e4dbe8;     /* obramowania */
  --ok: #1f8a5b;
  --bad: #c2334d;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html, body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  color: var(--text);
  font-family: "Montserrat", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
/* Tło: zimowa noc w kolorach marki, delikatne kwadraty. Plik img/tlo.jpg (opcjonalny) przykrywa wzór. */
html, body { background: #1d0a2b; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    url("img/tlo.jpg") center / cover no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Crect x='40' y='60' width='14' height='14' fill='%234B136E' fill-opacity='.25'/%3E%3Crect x='300' y='30' width='8' height='8' fill='%23EE4687' fill-opacity='.3'/%3E%3Crect x='250' y='250' width='18' height='18' fill='%23FBE5F5' fill-opacity='.06'/%3E%3Crect x='360' y='170' width='12' height='12' fill='%23FBE5F5' fill-opacity='.07'/%3E%3C/svg%3E") 0 0 / 400px 400px,
    radial-gradient(120% 70% at 50% 0%, #4a1a6a 0%, #2a0f3d 45%, #1d0a2b 100%);
}
input, select, textarea { font-size: 16px !important; font-family: inherit; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; }

/* Typografia */
.display { font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.num { font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

/* Przyciski: kwadratowe, gradient jak „umów konsultację” na stronie */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border: 0; cursor: pointer;
  font-weight: 600; font-size: 15px; color: #fff;
  background: linear-gradient(90deg, var(--plum), var(--rose));
  transition: filter .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .4; cursor: not-allowed; filter: none; }
.btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; cursor: pointer; font-weight: 600; font-size: 14px;
  color: var(--ink); background: #fff; border: 1.5px solid var(--ink);
}
.btn-line:hover { background: var(--lilac); }
.field {
  width: 100%; padding: 11px 14px; outline: none;
  background: #fff; border: 1.5px solid var(--line); color: var(--text);
}
.field:focus { border-color: var(--plum); }
.card { position: relative; z-index: 2; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px -24px rgba(82, 28, 116, .35); }
.panel { background: linear-gradient(150deg, var(--ink) 0%, var(--plum) 55%, var(--rose) 100%); color: #fff; }

/* Kafelki kalendarza */
.grid-w {
  display: grid; gap: 12px;
  grid-auto-rows: 84px; grid-auto-flow: dense;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .grid-w { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-w { grid-template-columns: repeat(5, 1fr); } }
.tile { position: relative; z-index: 2; overflow: hidden; text-align: left; border: 0; padding: 0; cursor: pointer; transition: transform .2s; }
.tile-open { background: linear-gradient(150deg, var(--plum), var(--rose)); color: #fff; }
.tile-open.v1 { background: linear-gradient(160deg, var(--ink), var(--plum)); }
.tile-open.v2 { background: linear-gradient(135deg, var(--ink) 0%, var(--rose) 100%); }
.tile-open:hover { transform: translateY(-3px); }
.tile-done { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.tile-done:hover { transform: translateY(-3px); }
.tile-lock { background: #fff; color: #d9c8de; border: 1px dashed #dccfe1; cursor: not-allowed; }
.tile-today { outline: 3px solid var(--ink); outline-offset: 3px; }
.chip {
  display: inline-block; padding: 3px 9px; font-size: 11px; font-weight: 600; line-height: 1.4;
  background: rgba(39, 16, 56, .35); border: 1px solid rgba(255, 255, 255, .35); color: #fff;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.tile-done .chip { background: var(--lilac); border-color: var(--lilac); color: var(--ink); }

.tile-art {
  position: absolute; left: 50%; top: 56%; width: 46%; max-width: 132px;
  transform: translate(-50%, -50%); pointer-events: none; transition: transform .35s ease;
}
.tile-short .tile-art { width: 40%; max-width: 104px; top: 58%; }
.tile-art svg, .modal-art svg { display: block; width: 100%; height: auto; }
.tile-open:hover .tile-art, .tile-done:hover .tile-art { transform: translate(-50%, -54%); }
.tile-done .tile-art { opacity: .55; filter: saturate(.7); }
.modal-art { position: absolute; pointer-events: none; right: 62px; top: 8px; width: 84px; }
@media (min-width: 640px) {
  .modal-art { right: auto; left: 50%; top: 52%; width: 64%; max-width: 190px; transform: translate(-50%, -50%); }
  .modal-art-s { width: 80%; max-width: 130px; }
}
/* Zamknięte okienko = zapakowany prezent */
.tile-lock { background: linear-gradient(150deg, #3d1559 0%, #5c2280 100%) !important; border: 0 !important; color: #fff; }
.tile-lock:nth-child(3n) { background: linear-gradient(150deg, #7a2468 0%, #a83a7c 100%) !important; }
.tile-lock:nth-child(4n) { background: linear-gradient(150deg, #2f1a5c 0%, #4b2b86 100%) !important; }
.gift-ribbon-v { position: absolute; top: 0; bottom: 0; left: 50%; width: 8px; margin-left: -4px; background: rgba(255,255,255,.85); }
.gift-ribbon-h { position: absolute; left: 0; right: 0; top: 38%; height: 8px; margin-top: 3px; background: rgba(255,255,255,.85); }
.gift-bow { position: absolute; left: 50%; top: 38%; width: 46px; transform: translate(-50%, -70%); filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.gift-bow svg { display: block; width: 100%; height: auto; }
.gift-tag {
  position: absolute; left: 10px; bottom: 10px; min-width: 44px; padding: 4px 10px 4px 16px;
  background: #fff; color: var(--ink); font-size: 22px; line-height: 1.1;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
}
.tile-lock:hover .gift-bow { transform: translate(-50%, -74%) rotate(-4deg); transition: transform .25s; }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: rotate(-3deg); } 40% { transform: rotate(3deg); } 60% { transform: rotate(-2deg); } 80% { transform: rotate(1deg); } }
.shake { animation: shake .45s ease; }
.tile-today { outline: 2px solid #fff !important; outline-offset: 4px; animation: glow 2.8s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 26px 2px rgba(198, 76, 137, .55); } }

/* Karta tytułowa */
.hero-title { font-weight: 800; letter-spacing: -0.035em; line-height: .95; font-size: clamp(30px, 3.4vw, 42px); }
.herobar { height: 6px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.herobar > div { height: 100%; background: #fff; }
.btn-white {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; cursor: pointer;
  background: #fff; color: var(--ink); font-weight: 700; font-size: 14px;
}
.btn-white:hover { background: var(--lilac); }


.affirm-art { position: relative; width: 150px; margin-bottom: -6px; animation: rise .45s cubic-bezier(.2,.9,.3,1.3) both; }
.affirm-art svg { display: block; width: 100%; height: auto; }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.9); } to { opacity: 1; transform: none; } }
.burst { animation: burst .7s ease-out both; }
@keyframes burst { from { opacity: 0; transform: scale(0) rotate(0); } to { transform: scale(1) rotate(45deg); } }
.thanks-banner { min-height: 240px; }

.flake-dot { border-radius: 50%; }
.badge-row { display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; cursor: pointer; }
.badge-row:hover { background: rgba(255,255,255,.2); }
.badge-row svg, .affirm-medal svg { display: block; width: 100%; height: auto; }
.affirm-medal { position: relative; width: 120px; margin-bottom: 18px; animation: rise .5s cubic-bezier(.2,.9,.3,1.3) both; }
.lang { display: inline-flex; border: 1px solid var(--line); background: #fff; }
.lang button { padding: 4px 9px; font-size: 12px; font-weight: 700; color: var(--muted); }
.lang button.on { background: var(--ink); color: #fff; }
.lang-light { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.1); }
.lang-light button { color: rgba(255,255,255,.8); }
.lang-light button.on { background: #fff; color: var(--ink); }
.foot, .foot a { color: rgba(255,255,255,.7); }
.cert-sheet svg { display: block; width: 100%; height: auto; }

.av svg { display: block; width: 100%; height: 100%; }
.logo-hat { position: relative; display: inline-block; flex-shrink: 0; }
.logo-hat img { display: block; width: 100%; height: 100%; }
.logo-hat .hat { position: absolute; width: 92%; left: -26%; top: -46%; transform: rotate(-16deg); filter: drop-shadow(0 2px 2px rgba(39,16,56,.25)); }
.logo-hat .hat svg { display: block; width: 100%; height: auto; }
.logo-hat-xl { box-shadow: 0 24px 40px -18px rgba(24,8,36,.6); }
.deco-flake { position: absolute; pointer-events: none; }
.deco-flake svg { display: block; width: 100%; height: auto; }
.hero-flake { right: -70px; bottom: -70px; width: 300px; opacity: .16; }
.login-flake { right: -80px; bottom: -80px; width: 340px; opacity: .16; }
.card-flake { right: -50px; top: -50px; width: 200px; opacity: .18; }
.banner-flake { right: 4%; top: 50%; width: 300px; transform: translateY(-50%); opacity: .14; }
.affirm-flake { left: 50%; top: 50%; width: 240px; transform: translate(-50%, -50%); opacity: .14; }
.banner-hat { position: absolute; right: 12%; top: 50%; transform: translateY(-50%); }
@media (max-width: 639px) { .banner-hat { display: none; } .banner-flake { width: 220px; right: -60px; } }

/* Odpowiedzi */
.opt {
  display: block; width: 100%; text-align: left; margin-top: 8px; padding: 12px 14px;
  background: #fff; border: 1.5px solid var(--line); color: var(--text); cursor: pointer;
}
.opt:hover:not(:disabled) { border-color: var(--plum); background: #fcf8fd; }
.opt:disabled { cursor: default; }
.opt-ok { border-color: var(--ok) !important; background: #e9f6ef !important; }
.opt-bad { border-color: var(--bad) !important; background: #fbecef !important; }
.opt-dim { opacity: .55; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

/* Zagadka wizualna */
.spot { position: relative; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.spot img { display: block; width: 100%; height: auto; }
.mark {
  position: absolute; width: 34px; height: 34px; transform: translate(-50%, -50%);
  border: 3px solid var(--rose); background: rgba(198, 76, 137, .12);
  box-shadow: 0 0 0 2px #fff; cursor: pointer;
}
.mark > b {
  position: absolute; top: -12px; right: -12px; min-width: 18px; height: 18px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  background: var(--rose); color: #fff; font-size: 11px; line-height: 1;
}
.target { position: absolute; border: 3px solid var(--ok); background: rgba(31, 138, 91, .12); pointer-events: none; }
.timebar { height: 6px; background: var(--lilac); overflow: hidden; }
.timebar > div { height: 100%; background: linear-gradient(90deg, var(--plum), var(--rose)); transition: width 1s linear; }

/* Spadające kwadraty (zamiast śniegu). Wyłączone, gdy system prosi o mniej ruchu. */
@keyframes fall { from { transform: translateY(-10vh) rotate(0deg); } to { transform: translateY(110vh) rotate(180deg); } }
.flake { position: fixed; top: 0; pointer-events: none; z-index: 1; animation: fall linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .flake { display: none; }
  .tile-art { transition: none; }
  .tile, .btn { transition: none; }
  .pop, .affirm-art, .affirm-medal, .burst, .bulb, .tile-today, .shake { animation: none !important; }
}
@keyframes pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pop { animation: pop .22s ease-out; }
.av-pick { padding: 4px; border: 2px solid transparent; background: none; cursor: pointer; transition: transform .15s; }
.av-pick:hover { transform: translateY(-2px); }
.av-pick.on { border-color: var(--ink); background: #fff; }
.av-pick .av { border-radius: 50%; }

/* ===== Pełne ilustracje kafelków i minimalna karta tytułowa ===== */
.hero-card { background: #fff; color: var(--text); position: relative; z-index: 2; }
.brand-grad { background: linear-gradient(100deg, var(--ink) 0%, var(--plum) 70%, var(--rose) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.scene, .scene-fill { position: absolute; inset: 0; display: block; overflow: hidden; }
.scene svg { display: block; width: 100%; height: 100%; }
.scene-fill { transition: transform .5s ease, filter .3s; }
.tile { background: #2a0f3d !important; border: 0 !important; }
.tile-open:hover .scene-fill, .tile-done:hover .scene-fill { transform: scale(1.04); }
.tile-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(155deg, rgba(20, 6, 32, .42) 0%, rgba(20, 6, 32, 0) 38%); }
.tile-light .tile-shade { background: linear-gradient(155deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 38%); }
.tile-num { color: #fff; }
.tile-light .tile-num { color: var(--ink); }
.tile-lock .scene-fill { filter: brightness(.34) saturate(.4) blur(1.5px); transform: scale(1.04); }
.tile-lock .tile-shade { background: rgba(20, 6, 32, .2); }
.tile-lock .tile-num { color: rgba(255, 255, 255, .55) !important; }
.tile-lock { cursor: not-allowed; }
.lock-chip { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.14); color: #fff; }
.tile-done .scene-fill { filter: saturate(.55) brightness(.92); }
.done-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; }
.scene-light { color: var(--ink) !important; }
.scene-num { text-shadow: 0 1px 12px rgba(20, 6, 32, .25); }
.scene-light .scene-num { text-shadow: none; }
.scene-thumb { position: relative; display: block; width: 56px; height: 56px; flex-shrink: 0; overflow: hidden; }
.affirm-scene { position: absolute; inset: 0; }
.thanks-banner { color: var(--text); }

/* Numer na środku kafelka (jak w Psim Kalendarzu) */
.tile-num {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: clamp(56px, 7vw, 88px); line-height: 1; color: #fff;
  text-shadow: 0 4px 24px rgba(20, 6, 32, .55), 0 1px 2px rgba(20, 6, 32, .4); pointer-events: none;
}
.tile-short .tile-num { font-size: clamp(48px, 6vw, 72px); }
.tile-light .tile-num { color: #fff; }
.tile-shade { background: radial-gradient(60% 50% at 50% 50%, rgba(20, 6, 32, .28), rgba(20, 6, 32, 0)) !important; }
.tile-light .tile-shade { background: radial-gradient(60% 50% at 50% 50%, rgba(46, 14, 66, .38), rgba(46, 14, 66, 0)) !important; }
.tile-lock .tile-shade { background: rgba(20, 6, 32, .25) !important; }
.photo { width: 100%; height: 100%; object-fit: cover; }
.done-chip { width: 30px; height: 30px; padding: 0; justify-content: center; border-radius: 50%; background: var(--rose); color: #fff; }
.hero-mark { right: -46px; bottom: -46px; width: 190px; opacity: .14; }
.banner-mark { right: 6%; top: 50%; width: 220px; transform: translateY(-50%); opacity: .16; }
@media (max-width: 639px) { .banner-mark { width: 160px; right: -40px; } }

/* ===== Zdjęcia-ilustracje, banery na zdjęciu, awatary ===== */
.photo-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, rgba(29, 10, 43, .92) 0%, rgba(58, 20, 84, .72) 45%, rgba(82, 28, 116, .25) 100%); }
.panel-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(29, 10, 43, .55) 0%, rgba(29, 10, 43, 0) 45%); }
.thanks-banner { min-height: 260px; background: #2a0f3d; }
.av { border-radius: 50%; object-fit: cover; display: block; }
.av-up { display: block; cursor: pointer; }
.av-plus { display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px dashed #c9b3d6; color: var(--plum); font-size: 26px; font-weight: 300; background: #fff; }
.av-up:focus-within { outline: 3px solid var(--rose); outline-offset: 2px; }


/* Karta główna: ciemna, bez białego tła */
.hero-card:not(.thanks-banner) { background: linear-gradient(160deg, #36124f 0%, #2a0f3d 100%); color: #f3e9f6; border: 1px solid rgba(255, 255, 255, .1); }
.hero-card .brand-grad { background: linear-gradient(100deg, #ffffff 0%, #f3c6dc 60%, #e98ab7 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-card .muted { color: rgba(243, 233, 246, .7); }
.hero-card .timebar { background: rgba(255, 255, 255, .12); }
.hero-card .btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.hero-card .btn-line:hover { background: rgba(255, 255, 255, .1); }
.hero-card .lang { border-color: rgba(255, 255, 255, .3); background: transparent; }
.hero-card .lang button { color: rgba(255, 255, 255, .7); }
.hero-card .lang button.on { background: #fff; color: var(--ink); }

/* ===== Gry ===== */
.whack-card { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 170px; margin-top: 12px; padding: 24px; text-align: center; cursor: pointer;
  background: linear-gradient(150deg, #421A6C, #4B136E); color: #fff; border: 0; animation: pop .2s ease-out; }
.whack-card:hover { filter: brightness(1.08); }
.whack-card.on { background: linear-gradient(150deg, #F22D79, #EE4687); }
.whack-text { font-size: 20px; font-weight: 700; line-height: 1.35; }
.whack-stamp { position: absolute; top: 10px; right: 10px; padding: 3px 8px; background: #fff; color: #F22D79; font-size: 11px; font-weight: 800; }
.mem-card { aspect-ratio: 4 / 3; padding: 8px; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(150deg, #421A6C, #6b2a8c); color: #fff; transition: transform .25s; }
.mem-card:hover { transform: translateY(-2px); }
.mem-card.up.t { background: #fde4ef; color: #7a1a4a; }
.mem-card.up.h { background: #ece3f6; color: #421A6C; }
.mem-card.found { outline: 2px solid var(--ok); outline-offset: -2px; }
.mem-back { font-size: 26px; font-weight: 800; opacity: .6; }
.mem-tag { display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; opacity: .7; }
.mem-txt { display: block; font-size: 12.5px; font-weight: 700; line-height: 1.25; margin-top: 2px; }
.wheel-wrap { background: linear-gradient(180deg, #FBE5F5, #FFFFFF); padding: 14px; }
.wheel-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: #421A6C; }
.wheel-top b { font-size: 15px; margin-right: auto; }
.wheel-mute { background: none; border: 0; cursor: pointer; font-size: 16px; }
.wheel-board { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 8px; }
.wheel-word { display: inline-flex; gap: 3px; }
.wheel-tile { width: 26px; height: 34px; display: flex; align-items: center; justify-content: center; background: #421A6C; color: #fff; font-weight: 800; font-size: 17px; border-radius: 4px; transition: background .3s, transform .3s; }
.wheel-tile.on { background: #fff; color: #421A6C; box-shadow: inset 0 0 0 2px #F22D79; transform: rotateX(360deg); }
.wheel-stage { position: relative; width: min(300px, 78vw); margin: 14px auto 0; aspect-ratio: 1; }
.wheel-disc { width: 100%; height: 100%; border-radius: 50%; transition: transform 3.6s cubic-bezier(.12, .7, .18, 1); box-shadow: 0 14px 34px -12px rgba(66, 26, 108, .55); }
.wheel-disc svg { display: block; width: 100%; height: 100%; }
.wheel-pointer { position: absolute; left: 50%; top: -6px; z-index: 2; width: 0; height: 0; transform: translateX(-50%);
  border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 24px solid #F22D79; filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); }
.wheel-keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.wheel-keys .key { width: 34px; height: 36px; border: 1.5px solid #d9c3e3; background: #fff; color: #421A6C; font-weight: 800; border-radius: 4px; cursor: pointer; }
.wheel-keys .key.vow { border-color: #F22D79; color: #F22D79; }
.wheel-keys .key:disabled { opacity: .35; cursor: not-allowed; }
.wheel-keys .key.used { background: #FBE5F5; }
@media (prefers-reduced-motion: reduce) { .wheel-disc { transition-duration: .01s; } .wheel-tile.on { transform: none; } }
/* Koło: kafelki liter mieszczą najdłuższe hasło (18 liter) także na telefonie */
.wheel-tile { width: clamp(13px, 3.4vw, 26px); height: clamp(20px, 5vw, 34px); font-size: clamp(10px, 2.6vw, 17px); border-radius: 3px; }
.wheel-word { gap: 2px; }
.wheel-board { gap: 6px 10px; }
.btn-line.on { background: var(--lilac); }
.wheel-keys .key { width: clamp(28px, 8vw, 34px); }
/* obracające się koło nie może zasłaniać przycisków pod spodem */
.wheel-disc { pointer-events: none; }
.wheel-stage { pointer-events: none; }

/* ===== Logotyp słowny ===== */
.wordmark { display: inline-flex; align-items: baseline; font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: #fff; text-shadow: 0 0 22px rgba(242, 45, 121, .35); }
.wordmark .wm4 { color: #F22D79; margin: 0 .04em; }
.wordmark .wmc { background: linear-gradient(90deg, #ffffff 0%, #F7B6D6 45%, #F22D79 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wm-sm { font-size: 22px; }
.wm-md { font-size: 30px; }

/* ===== Dni: tylko dzisiejsze okienko jest aktywne ===== */
.tile-missed { cursor: not-allowed; }
.tile-missed .scene-fill { filter: brightness(.42) saturate(.35); }
.tile-missed .tile-num { color: rgba(255, 255, 255, .5) !important; }
.tile-past { cursor: not-allowed; }
.tile-past .scene-fill { filter: saturate(.45) brightness(.7) !important; }
.missed-chip { padding: 3px 8px; font-size: 11px; font-weight: 700; color: rgba(255,255,255,.8); background: rgba(20, 6, 32, .55); border: 1px solid rgba(255,255,255,.2); }

/* ===== Stopka ===== */
.meet-link { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; font-size: 14px; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.meet-link:hover { background: rgba(255, 255, 255, .12); }
.meet-link img { width: 26px; height: 26px; }

/* ===== Odznaki ===== */
.badge-sheet { background: radial-gradient(120% 60% at 50% 0%, #4B136E 0%, #24103a 55%, #160a26 100%); color: #fff; }
.badge-sheet [aria-label] { color: inherit; }
.badge-cell { text-align: center; padding: 14px 8px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); }
.badge-cell.got { border-color: rgba(242, 45, 121, .45); background: rgba(242, 45, 121, .08); }
.badge-cell svg { display: block; width: 100%; height: auto; }

/* ===== Certyfikat i kod odzyskiwania ===== */
.cert-canvas { display: block; width: 100%; max-width: 300px; height: auto; aspect-ratio: 9 / 16; margin: 0 auto; box-shadow: 0 20px 40px -18px rgba(29, 10, 43, .6); background: #1a1030; }
.rec-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 20px; font-weight: 700; letter-spacing: .06em; text-align: center; padding: 14px; color: var(--ink); background: #FBE5F5; border: 1.5px dashed #F22D79; user-select: all; }
.uppercase { text-transform: uppercase; }

/* ===== Śnieg: delikatny, na całej stronie ===== */
.flake { z-index: 3 !important; background: #fff; box-shadow: 0 0 4px rgba(255, 255, 255, .6); animation-name: snow !important; animation-timing-function: linear; animation-iteration-count: infinite; }
@keyframes snow { 0% { transform: translate3d(0, -5vh, 0); } 50% { transform: translate3d(var(--drift, 0px), 50vh, 0); } 100% { transform: translate3d(0, 105vh, 0); } }
.login-img { object-position: 60% 50%; }
.login-shade { background: linear-gradient(180deg, rgba(29, 10, 43, .82) 0%, rgba(29, 10, 43, .35) 38%, rgba(29, 10, 43, .05) 60%, rgba(29, 10, 43, .55) 100%) !important; }
.badge-todo { filter: saturate(.75) brightness(.92); opacity: .9; }
.badge-lock { position: absolute; top: 2px; right: calc(50% - 52px); width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; background: rgba(20, 6, 32, .8); color: #fff; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); }
/* Logowanie: tekst na ciemnym tle, zdjęcie z kalendarzem w dolnej części panelu */
.login-img { top: auto !important; bottom: 0; height: 57% !important; object-position: 55% 22%; }
.login-shade { background: linear-gradient(180deg, #2a0f3d 0%, #2a0f3d 34%, rgba(42, 15, 61, .55) 46%, rgba(29, 10, 43, 0) 62%, rgba(29, 10, 43, .35) 100%) !important; }
/* przycisk zamknięcia zawsze ciemny na białym */
button[aria-label="Zamknij"], button[aria-label="Close"] { color: var(--ink) !important; }
.demo-note { max-width: 460px; padding: 12px 16px; font-size: 12px; line-height: 1.6; text-align: center; color: rgba(255,255,255,.75); background: rgba(255,255,255,.05); border: 1px dashed rgba(255,255,255,.2); }
.demo-note b { color: #fff; }
.demo-sel { margin-left: 6px; padding: 2px 6px; background: #2a0f3d; color: #fff; border: 1px solid rgba(255,255,255,.3); }
/* Zamknięte i minione okienka: lekko przygaszone, ilustracja dalej czytelna */
.tile-lock .scene-fill { filter: brightness(.68) saturate(.8) !important; transform: none !important; }
.tile-lock .tile-shade { background: rgba(20, 6, 32, .12) !important; }
.tile-lock .tile-num { color: rgba(255, 255, 255, .85) !important; }
.tile-missed .scene-fill { filter: brightness(.66) saturate(.65) !important; }
.tile-missed .tile-num { color: rgba(255, 255, 255, .8) !important; }
.tile-past .scene-fill { filter: saturate(.7) brightness(.85) !important; }

/* ===== Świąteczny baner i okno podziękowania ===== */
.xmas-art svg { display: block; width: 100%; height: 100%; }
.thanks-banner { background: #1d0a2b; min-height: 320px; }
.banner-xmas { position: absolute; top: 0; right: 0; bottom: 0; width: 52%; }
.banner-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #1d0a2b 0%, #1d0a2b 42%, rgba(29, 10, 43, .6) 55%, rgba(29, 10, 43, 0) 70%); }
@media (max-width: 639px) { .banner-xmas { position: relative; display: block; width: 100%; height: 240px; } .banner-shade { display: none; } .thanks-banner { display: flex; flex-direction: column-reverse; } }
/* podpisy celów w zagadkach wizualnych */
.target-label { position: absolute; left: -3px; top: -22px; white-space: nowrap; padding: 2px 6px; font-size: 11px; font-weight: 700; color: #fff; background: var(--ok); }

/* ===== Stopka: autorzy + logotyp ===== */
.wm-xs { font-size: 16px; }

/* ===== Zagadki wizualne: numery celów, legenda, pełny ekran na telefonie ===== */
.target.miss { border-color: #F22D79; background: rgba(242, 45, 121, .12); border-style: dashed; }
.target-num { position: absolute; left: -2px; top: -2px; transform: translate(-50%, -50%); min-width: 22px; height: 22px; padding: 0 5px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #fff; background: var(--ok); border-radius: 11px; box-shadow: 0 0 0 2px #fff; }
.target.miss .target-num { background: #F22D79; }
.target-label { display: none; }
.mark { width: 28px; height: 28px; border-radius: 50%; }
.mark > b { display: none; }
.spot-legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.spot-legend li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; font-size: 14px; border: 1px solid #cfe9db; background: #f2faf5; }
.spot-legend li.no { border-color: #f6c6d8; background: #fdf2f6; }
.num-badge { width: 22px; height: 22px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 11px; font-size: 12px; font-weight: 800; color: #fff; background: var(--ok); }
.spot-legend li.no .num-badge { background: #F22D79; }
.spot-head { display: none; }
@media (max-width: 639px) {
  .spot-wrap.live { position: fixed; inset: 0; z-index: 97; margin: 0 !important; padding: 12px 10px calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; justify-content: center; gap: 10px; background: #1d0a2b; }
  .spot-wrap.live .spot-head { display: flex; justify-content: space-between; gap: 12px; color: #fff; font-size: 15px; padding: calc(4px + env(safe-area-inset-top, 0px)) 4px 0; position: absolute; top: 0; left: 0; right: 0; padding-left: 14px; padding-right: 14px; }
  .spot-wrap.live .spot { border: 0; }
  .spot-wrap.live .spot-foot { margin-top: 0 !important; padding: 0 4px; }
  .spot-wrap.live .spot-foot .muted { color: rgba(255, 255, 255, .75); }
  .spot-wrap.live .spot-foot .btn { flex: 1; }
}

/* ===== Logowanie na telefonie: tekst na ciemnym tle, ilustracja pod spodem ===== */
@media (max-width: 639px) {
  .login-img { position: static !important; display: block; width: calc(100% + 48px) !important; max-width: none; height: 210px !important; margin: 18px -24px -24px; object-position: 50% 20%; }
  .login-shade { display: none; }
  .hero-title { font-size: 30px; }
}
@media (max-width: 639px) { .login-img { order: 9; } }
.rotate-hint { display: none; }
@media (max-width: 639px) and (orientation: portrait) { .spot-wrap.live .rotate-hint { display: block; text-align: center; font-size: 12px; color: rgba(255, 255, 255, .6); } }
.spot-x { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); }
@media (max-width: 639px) { .spot-wrap.live .spot-head { align-items: center; padding-top: calc(10px + env(safe-area-inset-top, 0px)); } }
.spot-head > b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spot-head > span { flex-shrink: 0; white-space: nowrap; }
button.spot-x[aria-label] { color: #fff !important; }

/* ===== Ekran startowy: mozaika kafelków, mały napis, CTA ===== */
.start-hero { overflow: hidden; }
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.mosaic-tile { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #2a0f3d; }
.mosaic-tile .scene-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mosaic-num { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: clamp(22px, 3vw, 38px); color: #fff; text-shadow: 0 2px 12px rgba(20, 6, 32, .6); }
.mosaic-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 75%; pointer-events: none; background: linear-gradient(180deg, rgba(29, 10, 43, 0) 0%, rgba(29, 10, 43, .75) 45%, #1d0a2b 85%); }
.start-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 4px 6px; }
.start-label { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: #F7A6C8; }
.start-lead { margin-top: 6px; max-width: 520px; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .92); }
.start-link { font-size: 14px; font-weight: 600; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 639px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .mosaic-tile:nth-child(n+9) { display: none; }
  .mosaic-fade { height: 85%; }
  .start-lead { font-size: 15px; }
}
.scroll-mt-4 { scroll-margin-top: 16px; }
@media (max-width: 639px) {
  .start-copy { position: relative; padding: 14px 2px 0; }
  .mosaic-fade { height: 45%; background: linear-gradient(180deg, rgba(29, 10, 43, 0) 0%, rgba(29, 10, 43, .6) 100%); bottom: auto; top: 0; height: 100%; display: none; }
  .mosaic-tile:nth-child(n+5) { opacity: .55; }
}

/* ===== Ekran startowy v2: dwie kolumny, ciemny formularz ===== */
.start-grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 28px 0 12px; }
.start-left { display: flex; flex-direction: column; gap: 28px; }
.start-copy { position: static !important; padding: 0 !important; }
.start-label { font-size: 13px; font-weight: 700; color: #F7A6C8; letter-spacing: .02em; }
.start-head { margin-top: 10px; font-size: clamp(34px, 4.2vw, 52px); line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.start-lead { margin-top: 12px; font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, .8); max-width: 460px; }
.start-ctas { display: none; }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }
.mosaic-tile { aspect-ratio: 4 / 3 !important; opacity: 1 !important; display: block !important; }
.mosaic-fade { display: none !important; }
.start-form { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #EDE3F2; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.start-form label, .start-form .text-xs.font-semibold, .start-form p.text-xs.font-semibold { color: #F3E9F6 !important; }
.start-form .muted { color: rgba(255, 255, 255, .6) !important; }
.start-form .display { color: #fff !important; }
.start-form .field { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .18); color: #fff; }
.start-form .field::placeholder { color: rgba(255, 255, 255, .45); }
.start-form .field:focus { border-color: #F22D79; background: rgba(255, 255, 255, .1); }
.start-form [role=tablist] { background: transparent !important; border-color: rgba(255, 255, 255, .18) !important; }
.start-form [role=tab] { color: rgba(255, 255, 255, .7) !important; background: transparent !important; }
.start-form [role=tab][aria-selected=true] { background: linear-gradient(90deg, #4B136E, #EE4687) !important; color: #fff !important; }
.start-form button.underline, .start-form .underline { color: #F7A6C8 !important; }
.start-form [role=alert] { color: #ff9db0 !important; }
.start-form .av-pick span { color: rgba(255, 255, 255, .7) !important; }
.start-form .av-pick.on { background: rgba(255, 255, 255, .1); border-color: #F22D79; }
.start-form .av-plus { background: transparent; border-color: rgba(255, 255, 255, .35); color: #F7A6C8; }
.start-form .pw-meter > div:nth-child(2) > span { color: rgba(255, 255, 255, .7) !important; }
.start-form input[type=checkbox] { accent-color: #F22D79; }
@media (max-width: 899px) {
  .start-grid { grid-template-columns: 1fr; gap: 24px; padding-top: 18px; }
  .start-left { gap: 18px; }
  .mosaic { order: -1; grid-template-columns: repeat(6, 1fr) !important; gap: 4px !important; }
  .mosaic-tile { aspect-ratio: 3 / 4 !important; }
  .mosaic-num { font-size: 18px !important; }
  .start-head { font-size: 32px; }
  .start-lead { font-size: 15px; }
  .start-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 16px; }
  .start-form { max-width: 520px; width: 100%; margin: 0 auto; }
}
.start-form { z-index: 5; }
