/* Wantoo — stylistyka "hot" dla trybu Pary. Ładowane po dziedziczonych arkuszach bazowych. */

/* ── Marka / splash ─────────────────────────────────────────────────────────── */
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: .01em;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(2rem, 8vw, 2.6rem);
}
.brand--xl { font-size: clamp(2.6rem, 12vw, 3.4rem); }
.splash-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  letter-spacing: .02em;
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: brand-pulse 1.6s ease-in-out infinite alternate;
}
.splash-logo { width: 128px; height: auto; margin-bottom: 8px; filter: drop-shadow(0 12px 28px rgba(0,0,0,.5)); animation: splash-bob 1.4s ease-in-out infinite alternate; }
.brand-logo { display: block; width: 88px; height: auto; margin: 0 auto 8px; filter: drop-shadow(0 8px 20px rgba(0,0,0,.45)); }
@keyframes brand-pulse { from { opacity: .75; } to { opacity: 1; filter: drop-shadow(var(--glow-crimson)); } }

/* ── Powierzchnie ───────────────────────────────────────────────────────────── */
.panel {
  background: linear-gradient(160deg, var(--surface), var(--vanilla));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-hard-sm);
  padding: 20px 18px;
  margin-top: 16px;
  text-align: left;
}
.panel--code { text-align: center; }
.panel__h { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 6px; }

.pairs-head { text-align: center; padding-top: 8px; }
.pairs-head .muted { margin-top: 4px; }

/* ── Pola formularza ────────────────────────────────────────────────────────── */
.input {
  width: 100%;
  padding: .8em 1em;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-tile);
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: rgba(199,166,182,.55); }
.input:focus { outline: none; border-color: var(--pink-hot); box-shadow: var(--glow-crimson); }
select.input { appearance: none; }

.field-label { display: block; font-weight: 800; font-size: .85rem; margin-bottom: 6px; color: var(--ink-soft); }

.check-row { display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: .95rem; cursor: pointer; }
.check-row input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--pink-hot); flex: none; margin-top: 1px; }
.check-row--age { background: var(--surface-2); border: 1px solid rgba(255,45,107,.25); border-radius: var(--radius-tile); padding: 12px; }

/* ── Wybór poziomów ─────────────────────────────────────────────────────────── */
.level-grid { display: grid; gap: 10px; margin-top: 12px; }
.level-tile {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  column-gap: 12px; align-items: center; text-align: left;
  padding: 14px 16px; cursor: pointer;
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-tile);
  transition: transform .12s, box-shadow .15s, border-color .15s;
}
.level-tile__ico { grid-row: 1 / span 2; font-size: 1.8rem; }
.level-tile__label { font-family: var(--font-display); font-weight: 700; }
.level-tile__sub { font-size: .8rem; }
.level-tile.is-on { border-color: var(--pink-hot); box-shadow: var(--glow-crimson); background: linear-gradient(150deg, #3A2A22, var(--surface-2)); }
.level-tile.is-on .level-tile__label { color: #fff; }

.join-row { display: flex; gap: 10px; margin-top: 6px; }
.join-row .input { text-transform: uppercase; letter-spacing: .25em; text-align: center; }

/* ── Lista sesji ────────────────────────────────────────────────────────────── */
.pairs-list { display: grid; gap: 10px; }
.pair-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left; cursor: pointer;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-tile);
  color: var(--ink);
  transition: transform .12s, box-shadow .15s;
}
.pair-row:active { transform: scale(.99); }
.pair-row__main { display: flex; flex-direction: column; gap: 2px; }
.pair-row__title { font-family: var(--font-display); font-weight: 700; }
.pair-row__meta { font-size: .82rem; }
.pair-row__chev { font-size: 1.3rem; color: var(--gold); }

/* ── Lobby ──────────────────────────────────────────────────────────────────── */
.lobby-head, .results-head, .deckp-head { display: flex; align-items: center; gap: 10px; }
.lobby-head h1, .results-head h1 { font-family: var(--font-display); font-size: 1.4rem; }
.link-back { background: none; border: none; color: var(--gold); font-weight: 700; cursor: pointer; padding: 6px 2px; }

.code-big {
  font-family: var(--font-display);
  font-size: 2.6rem; letter-spacing: .35em; font-weight: 800;
  padding: 14px; margin: 8px 0;
  color: #fff;
  background: var(--grad-soft);
  border: 1px dashed rgba(231,194,125,.5);
  border-radius: var(--radius-tile);
  text-shadow: var(--glow-crimson);
}

.partner-state { display: flex; align-items: center; justify-content: center; gap: 14px; }
.partner-amp { color: var(--ink-soft); font-size: 1.2rem; }
.pstate { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1;
  padding: 12px; background: var(--surface-2); border-radius: var(--radius-tile); border: 1px solid rgba(255,255,255,.06); }
.pstate__ico { font-size: 1.6rem; }
.pstate--done { border-color: rgba(120,220,150,.4); box-shadow: 0 0 18px rgba(80,200,120,.18); }

/* ── Pasek postępu ──────────────────────────────────────────────────────────── */
.progress { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress--slim { height: 6px; flex: 1; }
.progress__bar { height: 100%; background: var(--grad-flame); box-shadow: var(--glow-crimson); transition: width .35s var(--ease-pop); }

/* ── Talia odpowiedzi ───────────────────────────────────────────────────────── */
.view-deck-pair { display: flex; flex-direction: column; min-height: 100%; }
.deckp-head { margin-bottom: 10px; }
.deckp-count { font-weight: 800; color: var(--ink-soft); font-size: .85rem; min-width: 44px; text-align: right; }
.deckp-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 6px 0 12px; }

.pcard {
  width: 100%; min-height: 46vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; padding: 26px 22px;
  border-radius: var(--radius-card);
  background: linear-gradient(165deg, var(--surface-2), var(--maroon));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow-hard);
  position: relative; overflow: hidden;
}
.pcard::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 50% at 50% 0%, rgba(255,111,94,.16), transparent 70%);
}
.pcard--romantic { background: linear-gradient(165deg, #241C48, #3A2A5C); }
.pcard--vanilla  { background: linear-gradient(165deg, #2A2050, #5A3A2E); }
.pcard--hard     { background: linear-gradient(165deg, #1B1636, #6A2A1E); border-color: rgba(255,111,94,.30); }
.pcard__top { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pcard__emoji { font-size: 3.4rem; line-height: 1; filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); }
.pcard__label { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.2; }
.pcard__desc { font-size: .95rem; max-width: 30ch; }
.pcard__author { font-size: .82rem; color: var(--gold); font-weight: 700; }

.chip--intensity, .chip--role {
  font: 700 .74rem var(--font-body);
  padding: .3em .8em; border-radius: 999px;
  background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.12); color: var(--ink);
  cursor: default; box-shadow: none;
}
.chip--role { background: rgba(231,194,125,.14); border-color: rgba(231,194,125,.4); color: var(--gold); }

/* ── Przyciski odpowiedzi ───────────────────────────────────────────────────── */
.answer-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 6px 0 10px; }
.abtn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 14px 6px; cursor: pointer;
  border-radius: var(--radius-tile);
  border: 1px solid rgba(255,255,255,.10);
  background: var(--surface-2); color: var(--ink);
  transition: transform .1s, box-shadow .15s, background .15s;
}
.abtn:active { transform: translateY(2px); }
.abtn__g { font-size: 1.5rem; font-weight: 800; }
.abtn__l { font-size: .82rem; font-weight: 700; }
.abtn--no:active { background: #2E2450; }
.abtn--no { box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
.abtn--maybe { border-color: rgba(231,194,125,.35); }
.abtn--maybe .abtn__g { color: var(--gold); }
.abtn--yes { background: var(--grad-flame); border-color: transparent; box-shadow: var(--glow-crimson); color: #fff; }

.deckp-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tool-btn { background: none; border: 1px solid rgba(255,255,255,.12); color: var(--ink-soft); border-radius: 999px; padding: .4em 1em; cursor: pointer; }
.tool-btn:disabled { opacity: .4; }
.tool-cur { font-size: .85rem; }
.deckp-extra { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.chip-btn {
  background: var(--surface-2); border: 1px dashed rgba(231,194,125,.45); color: var(--gold);
  border-radius: 999px; padding: .5em 1.1em; font-weight: 700; cursor: pointer;
}
.deck-finish { padding: 24px 10px; }

/* ── Bottom sheet ───────────────────────────────────────────────────────────── */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10,4,8,.6); backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  width: 100%; max-width: var(--view-max);
  background: linear-gradient(180deg, var(--surface), var(--vanilla));
  border-top-left-radius: 24px; border-top-right-radius: 24px;
  border: 1px solid rgba(255,255,255,.08);
  padding: 20px 18px calc(20px + var(--safe-b));
  animation: sheet-up .28s var(--ease-pop);
}
@keyframes sheet-up { from { transform: translateY(100%); } }
.sheet__h { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 8px; }
.sheet__actions { display: flex; gap: 10px; margin-top: 16px; }
.sheet__actions .btn { flex: 1; }

/* ── Wyniki ─────────────────────────────────────────────────────────────────── */
.results-head { flex-wrap: wrap; }
.results-head h1 { width: 100%; }
.res-section { margin-top: 20px; }
.res-section__head { display: flex; align-items: baseline; gap: 8px; }
.res-section__head h2 { font-family: var(--font-display); font-size: 1.15rem; }
.res-section__sub { font-size: .8rem; }
.res-count { margin-left: auto; font-weight: 800; color: var(--gold); }
.res-list { display: grid; gap: 8px; margin-top: 10px; }
.res-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; background: var(--surface-2);
  border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius-tile);
}
.res-row--done { border-color: rgba(120,220,150,.4); background: linear-gradient(150deg, #14241a, var(--surface-2)); }
.res-row__body { display: flex; align-items: center; gap: 12px; min-width: 0; }
.res-row__emoji { font-size: 1.6rem; }
.res-row__txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.res-row__name { font-weight: 700; }
.res-row__dir { font-size: .78rem; color: var(--gold); }
.res-row__ans { font-size: .78rem; }
.done-toggle {
  flex: none; cursor: pointer; white-space: nowrap;
  background: transparent; color: var(--ink-soft);
  border: 1px solid rgba(255,255,255,.14); border-radius: 999px;
  padding: .45em .9em; font-weight: 700; font-size: .82rem;
}
.done-toggle.is-on { color: var(--ink); border-color: var(--pink-hot); }
.done-toggle.is-both { background: var(--grad-gold); color: #2a1608; border-color: transparent; box-shadow: var(--glow-gold); }

.res-section details, details.res-section { background: var(--surface); border-radius: var(--radius-tile); padding: 4px 12px; }
details.res-section summary { display: flex; gap: 8px; align-items: center; cursor: pointer; padding: 10px 0; font-family: var(--font-display); }
details.res-section summary .res-count { margin-left: auto; }

/* przyciski specyficzne */
.btn--danger-ghost { background: transparent; color: #ff8ea8; border: 1px solid rgba(255,45,107,.4); box-shadow: none; }
.link-back:active { opacity: .7; }

/* spójność dziedziczonych pól (logowanie/magic link) z ciemnym motywem */
.field input {
  background: var(--surface-2);
  color: var(--ink);
  border-color: rgba(255,255,255,.10);
  box-shadow: none;
}
.field input::placeholder { color: rgba(199,166,182,.55); }
.field input:focus { outline: none; border-color: var(--pink-hot); box-shadow: var(--glow-crimson); }

/* ── Audyt kontrastu: dziedziczone linki/szarosci (z apki bazowej) na ciemnym motywie ── */
/* Apka bazowa uzywala --maroon (ciemna sliwka) na linki — na granacie niewidoczne. */
.install-link, .back-link { color: var(--gold); text-decoration-color: var(--gold); }
.install-link:active, .back-link:active { opacity: .7; }
.auth-divider { color: var(--ink-soft); }
.auth-divider::before, .auth-divider::after { background: rgba(255,255,255,.14); }
/* dziedziczone dziedziczone szarosci (jasne tlo) — podbicie na ciemnym */
.flip-hint, .card-desc, .bar-label, .stat-label, .md-meta, .wait-name { color: var(--ink-soft); }

/* Onboarding: .onb-hero (150px) jest na maskotke; nie moze ograniczac tytulu
   — "Wantoo" (169px) wystawal poza box. Tytul na pelna szerokosc sekcji. */
.onb-hero { width: auto; }
.onb-hero .brand--xl { width: auto; max-width: 100%; }
