/* ==========================================================
   podejrzyjkota: style
   ========================================================== */
@font-face { font-family: "Fraunces"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/fraunces-latin-soft-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: "Fraunces"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/fraunces-latin-ext-soft-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: "Nunito"; font-style: normal; font-display: swap; font-weight: 200 1000;
  src: url(../fonts/nunito-latin-wght-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: "Nunito"; font-style: normal; font-display: swap; font-weight: 200 1000;
  src: url(../fonts/nunito-latin-ext-wght-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; }

:root {
  --cream: #FFF6EC;
  --paper: #FFFDF9;
  --ink: #2B1D2E;
  --ink-soft: #66546A;
  --plum: #3B2340;
  --plum-2: #573262;
  --terra: #E8613C;
  --terra-d: #C94B29;
  --mustard: #F4B942;
  --sage: #8FB996;
  --sage-d: #4F8A5B;
  --rose: #F7A8B8;
  --line: #EEDFCD;
  --shadow-sm: 0 1px 2px rgba(59,35,64,.08), 0 2px 8px rgba(59,35,64,.06);
  --shadow: 0 2px 4px rgba(59,35,64,.06), 0 12px 32px -8px rgba(59,35,64,.18);
  --shadow-lg: 0 30px 60px -20px rgba(59,35,64,.35);
  --r: 18px;
  --r-sm: 12px;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --card-h: 344px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--cream);
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(900px 500px at 100% -10%, #FFE0CC 0, transparent 60%),
    radial-gradient(700px 500px at -10% 30%, #FBEAD0 0, transparent 60%);
  background-repeat: no-repeat;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--terra-d); }
h1, h2, h3 { font-family: var(--font-display); font-variation-settings: "SOFT" 100; line-height: 1.1; margin: 0 0 .4em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 800; color: var(--terra-d); margin-bottom: .6em; }

/* ---------- przyciski ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font: inherit; font-weight: 800; font-size: .95rem; line-height: 1.1; text-decoration: none; cursor: pointer;
  padding: .8em 1.25em; border-radius: 999px; border: 2px solid transparent;
  background: var(--bg); color: var(--fg); transition: transform .15s ease, box-shadow .15s ease, background .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn--primary { --bg: var(--terra); box-shadow: 0 4px 0 var(--terra-d), 0 8px 18px -6px rgba(232,97,60,.6); }
.btn--primary:hover { --bg: #EE6D48; }
.btn--primary:active { box-shadow: 0 2px 0 var(--terra-d); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: rgba(43,29,46,.18); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(255,255,255,.6); }
.btn--soft { --bg: #F6ECE1; --fg: var(--ink); }
.btn--soft:hover { --bg: #F0E0CF; }
.btn--lg { font-size: 1.05rem; padding: .95em 1.5em; }
.btn--sm { font-size: .82rem; padding: .62em .9em; }
.btn--block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: .82rem; color: var(--ink-soft); text-decoration: underline; cursor: pointer; margin-top: .8rem; }

/* ---------- nagłówek ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255,246,236,.82); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(238,223,205,.7); }
.topbar__in { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; }
.brand b { color: var(--terra); font-weight: 800; }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: .95rem; padding: 8px 14px; border-radius: 999px; }
.nav a:hover { background: rgba(43,29,46,.06); }
.points-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: #fff; background: var(--plum); padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; box-shadow: var(--shadow-sm); }
.points-pill strong { font-size: 1rem; font-variant-numeric: tabular-nums; }
@media (min-width: 760px) { .nav { display: flex; } .points-pill { margin-left: 8px; } }

.bump-up { animation: bumpUp .6s ease; }
.bump-down { animation: bumpDown .5s ease; }
@keyframes bumpUp { 30% { transform: scale(1.12); box-shadow: 0 0 0 6px rgba(143,185,150,.45); } }
@keyframes bumpDown { 30% { transform: scale(.94); } }

/* ---------- hero ---------- */
.hero { padding: 32px 0 40px; overflow: hidden; }
.hero__in { display: grid; gap: 28px; align-items: center; }
.hero__title { font-size: clamp(2.9rem, 13vw, 5.6rem); font-weight: 700; letter-spacing: -.035em; margin: 0 0 .15em; line-height: .95; }
.hero__title span { color: var(--terra); font-style: normal; position: relative; }
.hero__title span::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .12em; background: var(--mustard); border-radius: 99px; z-index: -1; opacity: .8; }
.hero__lead { font-size: clamp(1.05rem, 2.6vw, 1.25rem); color: var(--ink-soft); max-width: 34em; }
.nomoney { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 2px dashed #D9C3AA; border-radius: var(--r); padding: 14px 16px; max-width: 34em; }
.nomoney p { margin: 0; font-size: .95rem; }
.nomoney__icon { position: relative; flex: none; width: 40px; height: 40px; display: grid; place-items: center; font-size: 1.4rem; background: #FDEBD8; border-radius: 50%; }
.nomoney__icon s { position: absolute; inset: 7px; border-radius: 50%; border: 3px solid var(--terra); }
.nomoney__icon s::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 3px; background: var(--terra); transform: translateX(-50%) rotate(45deg); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; align-items: center; }

.hero__art { position: relative; height: 300px; }
.fan { position: absolute; inset: 0; display: grid; place-items: center; }
.fan__card { position: absolute; width: 190px; height: 260px; border-radius: 20px; box-shadow: var(--shadow-lg); }
.fan__card--1 { transform: translateX(-70px) rotate(-14deg); }
.fan__card--2 { transform: translateX(70px) rotate(12deg); }
.fan__card--3 { transform: translateY(-6px) rotate(-2deg); background: var(--paper); padding: 10px; display: flex; flex-direction: column; animation: floaty 6s ease-in-out infinite; }
.fan__back, .card__back { background-color: var(--plum); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='%23ffffff' fill-opacity='.07'%3E%3Cellipse cx='14' cy='18' rx='5' ry='4.2'/%3E%3Ccircle cx='8' cy='11' r='2'/%3E%3Ccircle cx='12.5' cy='8.5' r='2'/%3E%3Ccircle cx='17.5' cy='8.5' r='2'/%3E%3Ccircle cx='21' cy='12' r='2'/%3E%3Cellipse cx='42' cy='46' rx='5' ry='4.2'/%3E%3Ccircle cx='36' cy='39' r='2'/%3E%3Ccircle cx='40.5' cy='36.5' r='2'/%3E%3Ccircle cx='45.5' cy='36.5' r='2'/%3E%3Ccircle cx='49' cy='40' r='2'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(160deg, var(--plum-2), var(--plum)); }
.fan__back { position: absolute; inset: 0; border-radius: inherit; border: 6px solid var(--paper); }
.fan__back::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 4rem; font-weight: 700; color: var(--mustard); opacity: .9; }
.fan__art { flex: 1; border-radius: 14px; background: var(--bg); display: grid; place-items: center; overflow: hidden; }
.fan__art svg { width: 100%; height: 100%; }
.fan__label { padding: 8px 4px 2px; display: flex; flex-direction: column; }
.fan__label strong { font-family: var(--font-display); font-size: 1.15rem; }
.fan__label span { font-size: .8rem; color: var(--ink-soft); }
.hero__bubble { position: absolute; right: 4%; top: 6%; background: var(--ink); color: #fff; font-weight: 700; font-size: .85rem; padding: 8px 12px; border-radius: 14px 14px 14px 4px; box-shadow: var(--shadow); animation: floaty 5s ease-in-out infinite reverse; }
@keyframes floaty { 50% { translate: 0 -8px; } }
@media (min-width: 900px) {
  .hero { padding: 64px 0 72px; }
  .hero__in { grid-template-columns: 1.15fr .85fr; gap: 40px; }
  .hero__art { height: 420px; }
  .fan__card { width: 230px; height: 316px; }
  .fan__card--1 { transform: translateX(-95px) rotate(-14deg); }
  .fan__card--2 { transform: translateX(95px) rotate(12deg); }
}

.demo-strip { background: var(--mustard); color: var(--ink); font-size: .9rem; padding: 10px 0; }
.demo-strip .wrap { display: block; }
.demo-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); margin-right: 4px; vertical-align: 1px; animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- sekcje ---------- */
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 88px 0; } }
.section__head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.section__head > div { max-width: 40em; }
.section__lead { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }

/* ---------- statystyki ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.stat__label { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.stat__value { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.stat__value small { font-family: var(--font-body); font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.stat--points { background: var(--plum); color: #fff; border-color: var(--plum); }
.stat--points .stat__label, .stat--points small { color: rgba(255,255,255,.7); }
.refill { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; background: #EAF4EC; border: 1px solid #CFE5D4; border-radius: var(--r-sm); padding: 12px 16px; margin-bottom: 18px; }
.refill p { margin: 0; font-weight: 700; }

/* ---------- układ gry ---------- */
.game__layout { display: grid; gap: 24px; }
@media (min-width: 1000px) { .game__layout { grid-template-columns: 1fr 340px; align-items: start; } }

.board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .board { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } :root { --card-h: 388px; } }

/* ---------- karta ---------- */
.card { height: var(--card-h); perspective: 1200px; }
.is-dealing .card { animation: deal .55s cubic-bezier(.2,.9,.3,1.2) both; animation-delay: calc(var(--i) * 55ms); }
@keyframes deal { from { opacity: 0; transform: translateY(24px) rotate(-3deg) scale(.95); } }
.card__inner { position: relative; height: 100%; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.3,1.35,.5,1); }
.card.is-flipped .card__inner { transform: rotateY(180deg); }
.card__back, .card__front { position: absolute; inset: 0; border-radius: var(--r); backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.card__back {
  border: 0; cursor: pointer; color: #fff; font: inherit; padding: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.card__back::before { content: ""; position: absolute; inset: 8px; border: 1.5px dashed rgba(255,255,255,.22); border-radius: 12px; pointer-events: none; }
.card:not(.is-flipped):hover .card__back { transform: translateY(-4px) rotate(-.6deg); box-shadow: var(--shadow-lg); }
.card__num { position: absolute; top: 16px; left: 18px; font-family: var(--font-display); font-weight: 600; color: var(--mustard); font-size: .95rem; letter-spacing: .04em; }
.card__peek { width: 72%; max-width: 150px; }
.peek-svg { width: 100%; height: auto; filter: drop-shadow(0 0 18px rgba(244,200,74,.18)); }
.peek-eye { animation: blink 5s infinite; animation-delay: calc(var(--i, 0) * -.7s); }
.peek-pupil { animation: look 7s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.1s); }
.card:hover .peek-pupil { animation-duration: 1.4s; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } }
@keyframes look { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 60% { transform: translateX(3px); } }
.card__cta { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 1.45rem; font-weight: 650; letter-spacing: -.01em; }
.card__hint { font-size: .78rem; opacity: .65; font-weight: 600; }
.card__stamp { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%) rotate(-4deg); background: var(--sage); color: var(--ink); font-weight: 800; font-size: .72rem; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }

.card__front { transform: rotateY(180deg); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card__art { position: relative; height: 40%; min-height: 0; background: var(--bg); flex: none; display: grid; place-items: center; overflow: hidden; }
.card__art .cat-svg { height: 112%; width: auto; margin-top: 8%; }
.cat-photo { width: 100%; height: 100%; object-fit: cover; }
.chip { position: absolute; top: 8px; font-size: .66rem; font-weight: 800; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; }
.chip--demo { left: 8px; background: rgba(255,255,255,.8); color: var(--ink-soft); text-transform: uppercase; }
.chip--bet { right: 8px; background: var(--plum); color: #fff; }
.ribbon { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%) rotate(-3deg); background: var(--sage-d); color: #fff; font-weight: 800; font-size: .8rem; padding: 5px 12px; border-radius: 999px; box-shadow: 0 4px 12px -4px rgba(0,0,0,.35); white-space: nowrap; }
.card.is-adopted .card__art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 30%, #F4B942 0 3px, transparent 4px), radial-gradient(circle at 80% 25%, #E8613C 0 3px, transparent 4px), radial-gradient(circle at 70% 70%, #7C5CBF 0 2.5px, transparent 3.5px), radial-gradient(circle at 15% 75%, #F7A8B8 0 3px, transparent 4px), radial-gradient(circle at 88% 55%, #8FB996 0 3px, transparent 4px); pointer-events: none; }

.card__body { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.card__body > * { flex-shrink: 0; }
.card__name { font-size: 1.2rem; margin: 0; display: flex; align-items: center; gap: 6px; }
.sex { font-family: var(--font-body); font-size: .8rem; font-weight: 900; width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; }
.sex--f { background: #E07A9A; } .sex--m { background: #5F8FD0; }
.card__meta { font-size: .82rem; color: var(--ink-soft); margin: 1px 0 6px; font-weight: 600; }
.traits { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 4px; max-height: 24px; overflow: hidden; }
.traits li { font-size: .72rem; font-weight: 700; background: #FBEFE2; color: #7A4B2A; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.traits--big { max-height: none; gap: 6px; margin: 10px 0 12px; }
.traits--big li { font-size: .85rem; padding: 4px 11px; }
.card__shelter { font-size: .78rem; color: var(--ink-soft); margin: 0 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__listing { display: inline-block; font-size: .78rem; font-weight: 800; color: var(--terra-d); margin: -4px 0 8px; text-decoration: none; }
.card__listing:hover, .card__listing:focus-visible { text-decoration: underline; }
.card__actions { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.card__actions .btn--primary { box-shadow: 0 3px 0 var(--terra-d); }
.card__row { display: flex; gap: 6px; }
.card__row .btn { flex: 1; padding-inline: .4em; }
.card.is-celebrating .card__inner { animation: celebrate 1s ease; }
@keyframes celebrate { 0% { } 30% { transform: rotateY(180deg) scale(1.06); } 60% { transform: rotateY(180deg) scale(.98); } 100% { transform: rotateY(180deg) scale(1); } }

@media (min-width: 640px) {
  .traits { max-height: 52px; }
  .card__body { padding: 12px 14px 14px; }
  .card__name { font-size: 1.3rem; }
}
@media (max-width: 639px) {
  .traits li:nth-child(n+3) { display: none; }
  .card__cta { font-size: 1.25rem; }
}

/* ---------- panel boczny ---------- */
.table { display: grid; gap: 14px; align-content: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow-sm); position: relative; }
.panel__title { font-size: 1.1rem; margin-bottom: 10px; }
.panel__text { font-size: .88rem; color: var(--ink-soft); margin-bottom: 12px; }
.panel__note { font-size: .75rem; color: var(--ink-soft); margin: 10px 0 0; }
.panel--demo { background: #FFF3D6; border: 2px dashed #E8C26A; }
.panel__tag { position: absolute; top: -11px; right: 14px; background: var(--ink); color: var(--mustard); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.demo-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.demo-actions .btn--primary { flex: 1; }

.bets { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bets .empty { font-size: .88rem; color: var(--ink-soft); background: #FBF4EC; border-radius: var(--r-sm); padding: 12px; }
.bet { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; background: #FBF4EC; border-radius: var(--r-sm); padding: 8px 10px; }
.bet__txt { display: flex; flex-direction: column; min-width: 0; }
.bet__txt strong { font-size: .92rem; }
.bet__txt span { font-size: .75rem; color: var(--ink-soft); line-height: 1.3; }
.bet__num { text-align: right; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.bet__num span { font-size: .72rem; color: var(--ink-soft); white-space: nowrap; }
.bet__num strong { font-size: .88rem; white-space: nowrap; }
.bet--won { background: #E6F3E8; } .bet--won .bet__num strong { color: var(--sage-d); }
.bet--lost { background: #F7EEEE; } .bet--lost .bet__num strong { color: #B24A4A; }
.mini { width: 40px; height: 40px; border-radius: 50%; background: var(--bg); overflow: hidden; display: block; }
.mini svg { width: 140%; max-width: none; margin: -6% 0 0 -20%; }
.mini img { width: 100%; height: 100%; object-fit: cover; }

.ranking { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ranking li { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 10px; font-size: .9rem; }
.ranking li:nth-child(odd) { background: #FBF4EC; }
.ranking .rank { text-align: center; font-weight: 800; }
.ranking .score { font-weight: 800; font-variant-numeric: tabular-nums; }
.ranking .who em { font-style: normal; font-size: .72rem; color: var(--ink-soft); }
.ranking li.is-me { background: var(--plum); color: #fff; }
.ranking li.is-me em { color: rgba(255,255,255,.65); }

.badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.badge { text-align: center; padding: 10px 4px; border-radius: var(--r-sm); background: #F6F0EA; display: flex; flex-direction: column; align-items: center; gap: 2px; filter: grayscale(1); opacity: .55; }
.badge.is-on { filter: none; opacity: 1; background: #FFF0D2; box-shadow: inset 0 0 0 2px var(--mustard); }
.badge__icon { font-size: 1.5rem; line-height: 1.2; }
.badge__name { font-size: .74rem; font-weight: 800; line-height: 1.2; }
.badge__desc { font-size: .64rem; color: var(--ink-soft); line-height: 1.2; }

/* ---------- jak to działa ---------- */
.how { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; gap: 14px; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--cream); border-radius: var(--r); padding: 20px; position: relative; }
.step p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.step__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--terra); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-bottom: 12px; transform: rotate(-6deg); box-shadow: 0 3px 0 var(--terra-d); }
.step:nth-child(2) .step__n { background: var(--plum); box-shadow: 0 3px 0 #22122A; transform: rotate(5deg); }
.step:nth-child(3) .step__n { background: var(--mustard); color: var(--ink); box-shadow: 0 3px 0 #C98B12; }
.step:nth-child(4) .step__n { background: var(--sage-d); box-shadow: 0 3px 0 #2F5E3A; transform: rotate(4deg); }
.rules { display: grid; gap: 16px; }
@media (min-width: 900px) { .rules { grid-template-columns: 1.6fr 1fr; } }
.rules__box { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; background: #fff; }
.rules__box--warm { background: var(--plum); color: #fff; border-color: var(--plum); }
.rules__box--warm h3 { color: var(--mustard); }
.rules__box--warm p { color: rgba(255,255,255,.85); }
.rules__small { font-size: .85rem; color: var(--ink-soft); margin: 12px 0 0; }
.odds { width: 100%; border-collapse: collapse; font-size: .9rem; }
.odds th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); padding: 6px 8px; border-bottom: 2px solid var(--line); }
.odds td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.odds td:first-child { font-weight: 800; white-space: nowrap; }
.odds td:last-child { white-space: nowrap; font-weight: 700; color: var(--terra-d); }
@media (max-width: 600px) {
  .odds thead { display: none; }
  .odds tr { display: grid; grid-template-columns: 1fr auto; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .odds td { border: 0; padding: 2px 0; }
  .odds td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: var(--ink-soft); font-size: .85rem; }
  .odds td:last-child { white-space: normal; text-align: right; font-size: .85rem; }
}

/* ---------- dla schronisk ---------- */
.shelters__in { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .shelters__in { grid-template-columns: 1fr 1fr; gap: 56px; } }
.checklist { padding: 0; margin: 22px 0 0; list-style: none; display: grid; gap: 10px; counter-reset: c; }
.checklist li { position: relative; padding-left: 40px; counter-increment: c; }
.checklist li::before { content: counter(c); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--mustard); display: grid; place-items: center; font-weight: 900; font-size: .85rem; }
.placeholder-note { display: inline-block; font-size: .78rem; color: var(--ink-soft); background: #FFF3D6; border: 1px dashed #E8C26A; padding: 4px 10px; border-radius: 8px; margin: 8px 0 0; }
.codecard { background: #24172A; color: #F7E7D7; border-radius: var(--r); box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(1.2deg); }
.codecard__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #1A0F1F; font-size: .78rem; color: rgba(255,255,255,.55); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.codecard__bar span { width: 10px; height: 10px; border-radius: 50%; background: #E8613C; }
.codecard__bar span:nth-child(2) { background: var(--mustard); } .codecard__bar span:nth-child(3) { background: var(--sage); margin-right: 8px; }
.codecard pre { margin: 0; padding: 16px 18px 20px; overflow-x: auto; font-size: .8rem; line-height: 1.6; }
.codecard code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ---------- stopka ---------- */
.footer { background: var(--plum); color: rgba(255,255,255,.8); padding: 48px 0 calc(32px + env(safe-area-inset-bottom)); }
.footer__in { display: grid; gap: 28px; }
@media (min-width: 900px) { .footer__in { grid-template-columns: 1fr auto; } .footer__fine { grid-column: 1 / -1; } }
.brand--light { color: #fff; }
.brand--light b { color: var(--mustard); }
.footer__brand p { margin: 10px 0 0; max-width: 28em; font-size: .92rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-content: start; }
.footer__nav a { color: #fff; text-decoration: none; font-weight: 700; font-size: .92rem; }
.footer__nav a:hover { text-decoration: underline; }
.footer__fine { border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; font-size: .8rem; color: rgba(255,255,255,.6); }
.footer__fine p { margin: 0 0 6px; }
.footer__fine strong { color: var(--mustard); }

/* ---------- dialogi ---------- */
.sheet { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; overflow: hidden; }
.sheet::backdrop { background: rgba(43,29,46,.55); backdrop-filter: blur(3px); }
.sheet[open] { display: flex; align-items: flex-end; justify-content: center; }
.sheet__in { position: relative; background: var(--paper); width: 100%; max-height: 92vh; overflow-y: auto; border-radius: 24px 24px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); animation: sheetUp .35s cubic-bezier(.2,.9,.3,1.1); overscroll-behavior: contain; }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 720px) {
  .sheet[open] { align-items: center; }
  .sheet__in { width: min(760px, 100% - 48px); border-radius: 24px; padding: 28px; max-height: 88vh; }
  .sheet--result .sheet__in { width: min(460px, 100% - 48px); }
}
.sheet__close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #F3E8DC; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink); z-index: 2; }
.sheet__close:hover { background: #EBDccb; }
.sheet__grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .sheet__grid { grid-template-columns: 240px 1fr; gap: 24px; } }
.sheet__art { position: relative; background: var(--bg); border-radius: var(--r); display: grid; place-items: center; overflow: hidden; height: 200px; }
.sheet__art .cat-svg { height: 115%; width: auto; margin-top: 10%; }
@media (min-width: 720px) { .sheet__art { height: 100%; min-height: 260px; } .sheet__art .cat-svg { height: auto; width: 115%; max-width: none; margin-top: 30%; } }
.sheet__info h2 { font-size: 2rem; margin: 0; display: flex; align-items: center; gap: 10px; padding-right: 40px; }
.sheet__story { color: var(--ink-soft); }
.sheet__adopted { background: #E6F3E8; color: #2F5E3A; font-weight: 800; padding: 8px 12px; border-radius: 10px; }
.sheet__listing { margin-top: 10px; }
.contact-box { background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; }
.contact-box__title { margin: 0 0 6px; font-size: .9rem; color: var(--ink-soft); }
.contact-box__title strong { color: var(--plum); }
.contact-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.contact-box a { color: var(--terra-d); font-weight: 800; text-decoration: none; overflow-wrap: anywhere; }
.contact-box a:hover, .contact-box a:focus-visible { text-decoration: underline; }

.betbox { margin-top: 20px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.betbox h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.betbox__nomoney { font-family: var(--font-body); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; background: var(--sage); color: var(--ink); padding: 3px 8px; border-radius: 999px; }
.betbox--closed p { margin: 0; font-weight: 700; }
.bet-types { border: 0; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 720px) { .bet-types { grid-template-columns: repeat(4, 1fr); } }
.bt { position: relative; cursor: pointer; }
.bt input { position: absolute; opacity: 0; inset: 0; }
.bt span { display: flex; flex-direction: column; height: 100%; background: #fff; border: 2px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; transition: border-color .15s, background .15s, transform .15s; }
.bt strong { font-size: .88rem; line-height: 1.2; }
.bt small { font-size: .72rem; color: var(--ink-soft); }
.bt em { font-style: normal; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--terra-d); margin-top: auto; padding-top: 4px; }
.bt input:checked + span { border-color: var(--terra); background: #FFF0E8; transform: translateY(-2px); box-shadow: 0 4px 0 var(--terra); }
.bt input:focus-visible + span { outline: 3px solid var(--mustard); outline-offset: 2px; }
.stake label { font-weight: 800; font-size: .85rem; display: block; margin-bottom: 4px; }
.stake__row { display: flex; gap: 12px; align-items: center; }
.stake__row input[type=range] { flex: 1; accent-color: var(--terra); height: 28px; }
.stake__row input[type=number] { width: 86px; font: inherit; font-weight: 800; font-size: 1.05rem; padding: 8px 10px; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); text-align: center; }
.stake__quick { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.qs { font: inherit; font-size: .8rem; font-weight: 800; padding: 5px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.qs:hover:not(:disabled) { border-color: var(--ink); }
.qs:disabled { opacity: .4; cursor: not-allowed; }
.betbox__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.betbox__win { margin: 0; font-size: .95rem; }
.betbox__win strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--sage-d); }
.betbox__win small { color: var(--ink-soft); font-size: .78rem; }

.result { text-align: center; }
.result__art { position: relative; width: 150px; height: 150px; margin: 6px auto 12px; border-radius: 50%; background: var(--bg); overflow: hidden; }
.result__art svg { width: 100%; height: 100%; }
.result__art .ribbon { bottom: 6px; }
.result h2 { font-size: 1.7rem; }
.result__sub { color: var(--ink-soft); font-size: .9rem; }
.result .bets { text-align: left; margin: 0 0 14px; }
.result__none { font-size: .9rem; color: var(--ink-soft); background: #FBF4EC; border-radius: 10px; padding: 10px; }
.result__sum { font-weight: 700; }
.result__sum.is-win { color: var(--sage-d); font-size: 1.1rem; }
.result__nudge { font-size: .88rem; color: var(--ink-soft); }

/* ---------- toasty i konfetti ---------- */
.toasts { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: min(440px, calc(100% - 24px)); pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; font-size: .9rem; box-shadow: var(--shadow-lg); animation: toastIn .3s cubic-bezier(.2,.9,.3,1.2); transition: opacity .4s, transform .4s; }
.toast strong { color: var(--mustard); }
.toast.is-out { opacity: 0; transform: translateY(10px); }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 80; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================
   REKLAMY (konfiguracja: js/ads.js)
   Rozmiary są zarezerwowane w CSS, żeby nic nie skakało przy ładowaniu.
   ========================================================== */
.ad { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.ad__label { font-size: .64rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); opacity: .75; line-height: 1; }
.ad-box { width: var(--ad-w, 300px); height: var(--ad-h, 250px); max-width: 100%; overflow: hidden; display: grid; place-items: center; border-radius: 10px; container-type: size; }
.ad-box img { max-width: 100%; height: auto; display: block; }
.ad-box[data-mode="placeholder"] {
  border: 1.5px dashed #D6BFA5;
  background: repeating-linear-gradient(135deg, rgba(214,191,165,.10) 0 10px, rgba(214,191,165,.03) 10px 20px), #FFFBF5;
  color: #9A8676;
}
.ad-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 6px; }
.ad-ph__icon { font-size: 1.2rem; opacity: .55; filter: grayscale(.6); }
.ad-ph__size { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; font-size: .95rem; color: #7E6A5B; letter-spacing: .02em; }
.ad-ph__txt { font-size: .72rem; line-height: 1.3; }
@container (max-height: 110px) {
  .ad-ph { flex-direction: row; gap: 10px; }
  .ad-ph__txt br { display: none; }
}
@container (max-height: 60px) {
  .ad-ph__icon { display: none; }
  .ad-ph__size { font-size: .8rem; }
  .ad-ph__txt { font-size: .68rem; }
}

/* 1) baner górny pod hero */
.ad-band { padding: 18px 0; }
.ad-band--top { padding: 22px 0 0; }
.ad--top .ad-box { --ad-w: 320px; --ad-h: 100px; }
@media (min-width: 760px) { .ad--top .ad-box { --ad-w: 728px; --ad-h: 90px; } }

/* 2) karta natywna w siatce */
.card--ad { perspective: none; }
.ad--card { height: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; box-shadow: var(--shadow-sm); align-items: stretch; gap: 8px; }
.ad--card .ad__label { align-self: flex-start; background: #F3E8DC; padding: 4px 8px; border-radius: 999px; opacity: 1; }
.ad--card .ad-box { width: 100%; height: auto; flex: 1; min-height: 0; }

/* 3) prostokąt w panelu bocznym */
.ad--sidebar { padding: 4px 0; }
.ad--sidebar .ad-box { --ad-w: 300px; --ad-h: 250px; }

/* 4) baner nad stopką */
.ad-band--footer { padding: 28px 0 32px; border-top: 1px solid var(--line); }
.ad--footer .ad-box { --ad-w: 320px; --ad-h: 50px; }
@media (min-width: 760px) { .ad--footer .ad-box { --ad-w: 728px; --ad-h: 90px; } }

/* 5) mały baner w oknie wyniku */
.ad--result { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ad--result .ad-box { --ad-w: 320px; --ad-h: 50px; }

.footer__nav .todo { font-size: .68rem; font-weight: 800; background: var(--mustard); color: var(--ink); padding: 1px 6px; border-radius: 999px; margin-left: 2px; vertical-align: 1px; }

/* strona polityki prywatności */
.legal { padding: 40px 0 72px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 6vw, 3rem); }
.legal h2 { font-size: 1.35rem; margin-top: 1.6em; }
.legal .todo-box { background: #FFF3D6; border: 2px dashed #E8C26A; border-radius: var(--r-sm); padding: 14px 16px; margin: 18px 0; }
.legal mark { background: #FFE7A3; padding: 0 4px; border-radius: 4px; }
.ad-band--top + .section { padding-top: 36px; }
@media (min-width: 900px) { .ad-band--top + .section { padding-top: 48px; } }

/* ==========================================================
   APLIKACJA (PWA + APK)
   ========================================================== */
.app { background: linear-gradient(180deg, var(--cream), #FBE9D6); border-top: 1px solid var(--line); }
.app__top { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .app__top { grid-template-columns: 1.3fr .7fr; gap: 56px; } }
.dl-actions { display: grid; gap: 12px; margin-top: 22px; }
.dl-card { display: grid; grid-template-columns: 52px 1fr; gap: 12px 14px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow-sm); }
.dl-card .btn { grid-column: 1 / -1; width: 100%; }
@media (min-width: 560px) { .dl-card { grid-template-columns: 52px 1fr auto; } .dl-card .btn { grid-column: auto; width: auto; } }
.dl-card--apk { border: 2px solid var(--terra); box-shadow: 0 10px 30px -12px rgba(232,97,60,.45); }
.dl-card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #3DDC84; color: #0B3D20; }
.dl-card__icon--pwa { background: #EFE4F6; font-size: 1.5rem; }
.dl-card__txt { display: flex; flex-direction: column; min-width: 0; }
.dl-card__txt strong { font-size: 1.02rem; }
.dl-card__txt span { font-size: .84rem; color: var(--ink-soft); }
.app__soon { margin: 16px 0 0; font-size: .9rem; color: var(--ink-soft); }
.soon-badge { display: inline-block; background: var(--ink); color: var(--mustard); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; margin-right: 6px; vertical-align: 1px; }
.app__native-note { display: none; background: #E6F3E8; color: #2F5E3A; font-weight: 800; padding: 12px 16px; border-radius: var(--r-sm); margin-top: 18px; }
.is-native-app .app__native-note { display: block; }
.is-native-app .dl-actions, .is-native-app .app__soon, .is-native-app .guides { display: none; }

.phone { justify-self: center; width: 230px; height: 460px; border-radius: 38px; background: #1B1220; padding: 10px; box-shadow: var(--shadow-lg), inset 0 0 0 2px #3a2b40; transform: rotate(3deg); }
.phone__screen { height: 100%; border-radius: 30px; background: linear-gradient(170deg, var(--plum-2), var(--plum)); display: flex; flex-direction: column; align-items: center; padding: 14px 16px 22px; color: #fff; overflow: hidden; }
.phone__bar { width: 100%; display: flex; justify-content: space-between; font-size: .66rem; font-weight: 800; opacity: .7; }
.phone__logo { width: 72px; height: 72px; margin-top: 46px; }
.phone__name { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 1.35rem; font-weight: 650; margin-top: 8px; }
.phone__name b { color: var(--mustard); }
.phone__cards { position: relative; height: 130px; width: 100%; margin-top: 28px; }
.phone__cards span { position: absolute; left: 50%; top: 0; width: 70px; height: 100px; margin-left: -35px; border-radius: 10px; background: var(--cream); border: 3px solid #fff; box-shadow: 0 8px 20px -6px rgba(0,0,0,.5); }
.phone__cards span:nth-child(1) { transform: translateX(-44px) rotate(-12deg); background: #2A1830; }
.phone__cards span:nth-child(2) { transform: translateX(44px) rotate(12deg); background: #2A1830; }
.phone__cards span:nth-child(3) { background: #FFE2C2 url("../favicon.svg") center / 46px no-repeat; }
.phone__btn { margin-top: auto; background: var(--terra); color: #fff; font-weight: 800; font-size: .85rem; padding: 10px 18px; border-radius: 999px; box-shadow: 0 3px 0 var(--terra-d); }

.guides { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 900px) { .guides { grid-template-columns: 1.35fr 1fr; align-items: start; } }
.guide { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.guide h3 { font-size: 1.2rem; }
.guide summary { cursor: pointer; list-style: none; }
.guide summary::-webkit-details-marker { display: none; }
.guide summary h3 { display: inline; }
.guide summary::after { content: "▾"; float: right; color: var(--ink-soft); transition: transform .2s; }
.guide:not([open]) summary::after { transform: rotate(-90deg); }
.guide--pwa summary + p { margin-top: 12px; }
.guide__steps { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.guide__steps li { position: relative; padding-left: 40px; counter-increment: s; font-size: .95rem; }
.guide__steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 9px; background: var(--terra); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: .85rem; }
.guide--pwa .guide__steps li::before { background: var(--plum); }
.guide__steps em { font-style: normal; font-weight: 800; }
.path { display: inline; font-weight: 700; background: #F3E8DC; border-radius: 6px; padding: 1px 6px; font-size: .88em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.callout { margin-top: 16px; background: #FFF3D6; border: 1px dashed #E8C26A; border-radius: var(--r-sm); padding: 14px 16px; }
.callout p { margin: 6px 0 0; font-size: .92rem; }
.guide__small { font-size: .85rem; color: var(--ink-soft); margin: 14px 0 0; }
.guide__cert code { font-size: .72rem; word-break: break-all; background: #F3E8DC; padding: 1px 5px; border-radius: 5px; }
@media (max-width: 639px) { .phone { display: none; } }

/* ==========================================================
   PODSTRONY (regulamin, polityka, FAQ, jak grać, kontakt…)
   + baner zgody na cookies (js/consent.js)
   ========================================================== */
/* nagłówek podstron: przycisk „Graj” + aktywny link */
.topbar__cta { margin-left: auto; }
@media (min-width: 760px) { .topbar__cta { margin-left: 8px; } }
.nav a[aria-current="page"] { background: rgba(43,29,46,.08); }
.nav .nav__more { display: none; }
@media (min-width: 1060px) { .nav .nav__more { display: inline-block; } }

/* stopka: kolumny linków */
.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 24px 48px; align-content: start; }
.footer__h { font-family: var(--font-body); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mustard); margin: 0 0 10px; }
.footer__cols .footer__nav { flex-direction: column; gap: 8px; }
.footer__link { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; font-size: .92rem; color: #fff; cursor: pointer; text-align: left; }
.footer__link:hover { text-decoration: underline; }

/* nagłówek treści podstrony */
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: clamp(2.1rem, 7vw, 3.4rem); font-weight: 700; letter-spacing: -.03em; }
.page-head .section__lead, .page-lead { font-size: clamp(1.02rem, 2.4vw, 1.18rem); color: var(--ink-soft); max-width: 38em; }
.page { padding: 8px 0 72px; }
.page .wrap, .page-head .wrap { max-width: 900px; }
.page h2 { margin-top: 1.6em; font-size: clamp(1.45rem, 3.6vw, 2rem); }
.page h3 { margin-top: 1.2em; }
.page ul, .page ol { padding-left: 1.3em; }
.page li { margin-bottom: .35em; }

/* dokumenty prawne */
.legal-note { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: #7A5A12; background: #FFF3D6; border: 1px dashed #E8C26A; border-radius: 999px; padding: 4px 12px; margin: 0 0 14px; }
.legal__meta { font-size: .88rem; color: var(--ink-soft); }
.legal ol, .legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: .4em; }
.legal ol ol { list-style: lower-alpha; margin-top: .4em; }
.legal h3 { font-size: 1.08rem; margin-top: 1.3em; }
.legal section { scroll-margin-top: 80px; }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; margin: 18px 0 8px; }
.toc strong { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2 230px; column-gap: 28px; font-size: .92rem; }
.toc li { margin-bottom: .25em; break-inside: avoid; }
.tbl-wrap { overflow-x: auto; margin: 12px 0 18px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 520px; }
.tbl th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); background: var(--paper); padding: 8px 10px; border-bottom: 2px solid var(--line); }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl code, .page code, .legal code { font-size: .85em; background: #F3E8DC; padding: 1px 5px; border-radius: 5px; }

/* karty informacyjne */
.cards { display: grid; gap: 14px; margin: 18px 0; }
@media (min-width: 700px) { .cards--2 { grid-template-columns: repeat(2, 1fr); } .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.info-card h3 { margin-top: 0; }
.info-card p:last-child, .info-card ul:last-child { margin-bottom: 0; }
.info-card__icon { font-size: 1.6rem; display: block; margin-bottom: 6px; }
.info-card--plum { background: var(--plum); color: rgba(255,255,255,.88); border-color: var(--plum); }
.info-card--plum h3 { color: var(--mustard); }
.info-card--plum a { color: #FFD3C2; }
.info-card--no { border-color: #F2C7B9; background: #FFF4EF; }
.ok-list, .no-list { list-style: none; padding: 0 !important; }
.ok-list li, .no-list li { position: relative; padding-left: 28px; }
.ok-list li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 900; color: var(--sage-d); }
.no-list li::before { content: "✕"; position: absolute; left: 0; top: 0; font-weight: 900; color: var(--terra-d); }

/* FAQ */
.faq { display: grid; gap: 10px; margin: 14px 0 8px; }
.qa { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); }
.qa summary { cursor: pointer; list-style: none; padding: 14px 48px 14px 18px; font-weight: 800; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: #F3E8DC; display: grid; place-items: center; font-weight: 900; line-height: 1; transition: transform .2s; }
.qa[open] summary::after { content: "−"; background: var(--mustard); }
.qa__a { padding: 0 18px 14px; color: var(--ink-soft); }
.qa__a p:last-child, .qa__a ul:last-child { margin-bottom: 0; }
.faq-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; padding: 0; list-style: none; }
.faq-cats a { display: inline-block; text-decoration: none; font-weight: 800; font-size: .88rem; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); padding: 6px 14px; border-radius: 999px; }
.faq-cats a:hover { border-color: var(--ink); }

/* wzory wiadomości */
.tpl { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin: 14px 0 22px; box-shadow: var(--shadow-sm); overflow: hidden; }
.tpl__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; background: var(--paper); border-bottom: 1px solid var(--line); }
.tpl__bar strong { font-size: .9rem; }
.tpl__body { margin: 0; padding: 16px 18px; white-space: pre-wrap; word-wrap: break-word; font-family: var(--font-body); font-size: .92rem; line-height: 1.6; max-height: 520px; overflow-y: auto; }
.tpl__body mark { background: #FFE7A3; padding: 0 3px; border-radius: 4px; }

/* formularz */
.form { display: grid; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin: 18px 0; }
@media (min-width: 700px) { .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } }
.form__row { display: grid; gap: 14px; }
.field label { display: block; font-weight: 800; font-size: .88rem; margin-bottom: 4px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--terra); outline: none; box-shadow: 0 0 0 3px rgba(232,97,60,.18); }
.field textarea { min-height: 150px; resize: vertical; }
.field__hint { font-size: .78rem; color: var(--ink-soft); margin: 4px 0 0; }
.form__status { font-size: .88rem; color: var(--sage-d); font-weight: 700; margin: 0; min-height: 1.2em; }

/* 404 */
.nf { text-align: center; padding: 56px 0 80px; }
.nf__code { font-family: var(--font-display); font-size: clamp(5rem, 22vw, 9rem); font-weight: 800; line-height: .9; color: var(--terra); letter-spacing: -.04em; margin: 0; }
.nf__card { width: 150px; height: 200px; margin: 0 auto 22px; border-radius: 18px; position: relative; transform: rotate(-4deg); box-shadow: var(--shadow-lg); }
.nf .hero__cta { justify-content: center; }

/* ---------- baner zgody na cookies ---------- */
.cc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 0 0 env(safe-area-inset-bottom); pointer-events: none; }
.cc__in { pointer-events: auto; position: relative; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px -12px rgba(59,35,64,.45); padding: 18px 18px 16px; max-height: 85vh; overflow-y: auto; animation: sheetUp .35s cubic-bezier(.2,.9,.3,1.1); }
@media (min-width: 720px) {
  .cc { left: 50%; right: auto; bottom: 16px; width: min(720px, 100% - 32px); transform: translateX(-50%); }
  .cc__in { border-radius: 22px; padding: 22px 24px 18px; }
}
.cc__title { font-size: 1.25rem; margin: 0 0 .35em; padding-right: 36px; outline: none; }
.cc__desc { font-size: .9rem; color: var(--ink-soft); margin: 0 0 12px; }
.cc__desc a { font-weight: 700; }
.cc__close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #F3E8DC; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink); }
.cc__prefs { display: grid; gap: 8px; margin: 0 0 14px; }
.cc__opt { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; }
.cc__opt label { cursor: pointer; }
.cc__opt p { margin: 2px 0 0; font-size: .8rem; color: var(--ink-soft); }
.cc__always { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; background: #E6F3E8; color: #2F5E3A; padding: 2px 7px; border-radius: 999px; vertical-align: 1px; }
.cc__switch { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 28px; border-radius: 999px; background: #D9C9B8; position: relative; cursor: pointer; margin: 2px 0 0; transition: background .2s; }
.cc__switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.cc__switch:checked { background: var(--sage-d); }
.cc__switch:checked::after { transform: translateX(18px); }
.cc__switch:disabled { opacity: .6; cursor: not-allowed; }
.cc__switch:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }
.cc__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cc__btn { white-space: normal; text-align: center; font-size: .88rem; padding: .75em 1em; }
.cc__actions [data-cc="customize"], .cc__actions [data-cc="save"] { grid-column: 1 / -1; order: 3; }
@media (min-width: 720px) {
  .cc__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; }
  .cc__actions [data-cc="customize"], .cc__actions [data-cc="save"] { order: 0; margin-right: auto; }
}
html.cc-open .toasts { bottom: calc(16px + env(safe-area-inset-bottom) + var(--cc-h, 0px)); }
.link-btn--inline { margin: 0; font-size: inherit; color: var(--terra-d); font-weight: 700; }
.link-btn--light { color: #FFD3C2; }

/* ==========================================================
   MOBILE: zabezpieczenie przed poziomym przewijaniem (iOS Safari
   pomniejsza całą stronę, jeśli cokolwiek choć na chwilę wystaje poza ekran).
   overflow-x: clip nie tworzy kontenera przewijania, więc sticky nagłówek dalej działa.
   ========================================================== */
html { overflow-x: hidden; overflow-x: clip; max-width: 100%; }
body { overflow-x: clip; max-width: 100%; min-width: 0; }
.hero { overflow: hidden; overflow: clip; }
.ad, .ad-band, .ad-box { max-width: 100%; }
.ad-box > *, .ad-box iframe, .ad-box ins, .ad-box img { max-width: 100% !important; }
.stats > *, .game__layout > *, .rules > *, .guides > *, .app__top > *, .shelters__in > *, .footer__in > *, .dl-card__txt, .cards > *, .form__row > * { min-width: 0; }
.btn { max-width: 100%; }
@media (max-width: 479px) {
  .btn { white-space: normal; text-align: center; }
  .points-pill { flex: none; }
  .sheet__in, .toasts, .cc__in { max-width: 100vw; }
}
pre, code, .placeholder-note, .legal, .page { overflow-wrap: anywhere; }
pre { max-width: 100%; }
.page mark, .page-head mark { background: #FFE7A3; padding: 0 4px; border-radius: 4px; }

/* ==========================================================
   KONTA (Supabase): przycisk w nagłówku, menu konta, okna logowania/profilu
   ========================================================== */
.account { position: relative; flex: none; margin-left: 8px; }
.account__login { padding: .55em .9em; background: rgba(255,255,255,.7); }
.account__login-txt { display: none; }
@media (min-width: 420px) { .account__login-txt { display: inline; } }
.account__btn { display: inline-flex; align-items: center; gap: 8px; border: 2px solid transparent; background: #fff; border-radius: 999px; padding: 3px 10px 3px 3px; font: inherit; font-weight: 800; font-size: .88rem; color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm); max-width: 210px; }
.account__btn:hover, .account__btn[aria-expanded="true"] { border-color: var(--mustard); }
.account__nick { display: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 560px) { .account__nick { display: inline; } }
.account__caret { font-size: .7rem; color: var(--ink-soft); }
.mini--sm { width: 32px; height: 32px; flex: none; }
.mini--lg { width: 64px; height: 64px; }
.account__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: min(290px, calc(100vw - 24px)); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; display: grid; gap: 2px; animation: toastIn .18s ease-out; }
.account__menu > button, .account__menu > a { display: block; width: 100%; text-align: left; background: none; border: 0; font: inherit; font-weight: 700; font-size: .92rem; color: var(--ink); padding: 10px 12px; border-radius: 10px; cursor: pointer; text-decoration: none; }
.account__menu > button:hover, .account__menu > a:hover, .account__menu > :focus-visible { background: #F6ECE1; outline: none; }
.account__menu .is-danger { color: #B3261E; }
.account__menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 6px; }
.account__head { display: flex; gap: 10px; align-items: center; padding: 8px 8px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.account__head .mini { width: 44px; height: 44px; flex: none; }
.account__head strong { display: block; font-size: 1rem; }
.account__head span { display: block; font-size: .78rem; color: var(--ink-soft); overflow-wrap: anywhere; }

.sheet--auth .sheet__in { max-width: 100vw; }
@media (min-width: 720px) { .sheet--auth .sheet__in { width: min(460px, 100% - 48px); } .sheet--profile .sheet__in { width: min(560px, 100% - 48px); } }
.auth { display: grid; gap: 12px; text-align: left; }
.auth h2, .profile h2 { font-size: 1.8rem; margin: 0; padding-right: 40px; }
.auth__cats { display: flex; justify-content: center; margin: 4px 0 2px; }
.auth__cats .mini { width: 58px; height: 58px; border: 3px solid var(--paper); margin: 0 -6px; box-shadow: var(--shadow-sm); }
.auth__cats .mini:nth-child(2) { width: 70px; height: 70px; z-index: 1; margin-top: -6px; }
.auth h2 { text-align: center; padding: 0; }
.auth__lead { color: var(--ink-soft); font-size: .93rem; margin: 0; }
.auth > .auth__lead { text-align: center; }
.auth__form { display: grid; gap: 10px; }
.auth__or { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: .8rem; font-weight: 700; margin: 2px 0; }
.auth__or::before, .auth__or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.auth__hint { font-size: .8rem; color: var(--ink-soft); margin: 0; }
.auth__row { display: flex; gap: 8px; flex-wrap: wrap; }
.auth__row .btn { flex: 1 1 auto; }
.auth__pw { display: grid; gap: 10px; }
.auth__err { background: #FDECEA; color: #8C1D18; border-radius: 10px; padding: 8px 12px; font-size: .88rem; font-weight: 700; margin: 0; }
.auth__fine { font-size: .74rem; color: var(--ink-soft); margin: 4px 0 0; text-align: center; }
.auth__sent { text-align: center; }
.auth__big { font-size: 2.6rem; line-height: 1; }
.auth .link-btn { margin-top: 0; justify-self: center; }
.btn--google { --bg: #fff; --fg: #1F1F1F; border-color: #DADCE0; box-shadow: var(--shadow-sm); }
.btn--google:hover { --bg: #F8F9FA; }
.btn--danger { --bg: #B3261E; box-shadow: 0 4px 0 #7F1A15; }
.field { display: grid; gap: 4px; font-size: .85rem; font-weight: 800; color: var(--ink); }
.field input, .field select, .field textarea { font: inherit; font-weight: 600; font-size: 1rem; padding: .7em .9em; border-radius: 12px; border: 2px solid var(--line); background: #fff; color: var(--ink); width: 100%; min-width: 0; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--mustard); box-shadow: 0 0 0 3px rgba(244,185,66,.25); }
.field__hint { font-size: .78rem; color: var(--ink-soft); margin: -4px 0 0; }
.field__hint.is-ok { color: var(--sage-d); font-weight: 800; }
.field__hint.is-bad { color: #B3261E; font-weight: 800; }
.profile { display: grid; gap: 12px; }
.avatars { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 520px) { .avatars { grid-template-columns: repeat(5, 1fr); } }
.avatars legend { font-size: .85rem; font-weight: 800; margin-bottom: 6px; }
.avatar-opt { display: grid; justify-items: center; gap: 4px; padding: 8px 4px; border-radius: 14px; border: 2px solid var(--line); cursor: pointer; font-size: .78rem; font-weight: 800; background: #fff; }
.avatar-opt input { position: absolute; opacity: 0; pointer-events: none; }
.avatar-opt:has(input:checked) { border-color: var(--terra); background: #FFF1EA; box-shadow: 0 0 0 3px rgba(232,97,60,.18); }
.avatar-opt:has(input:focus-visible) { outline: 3px solid var(--mustard); outline-offset: 2px; }

/* ranking globalny */
.who--av { display: flex; align-items: center; gap: 8px; min-width: 0; }
.who__n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking .mini--sm { width: 28px; height: 28px; }
.ranking__gap { text-align: center; color: var(--ink-soft); display: block !important; padding: 0 !important; background: none !important; line-height: 1; }
.ranking--full { max-height: none; }
.lb h2 { margin-bottom: 4px; }
.lb__sub { color: var(--ink-soft); font-size: .88rem; }
@media (min-width: 720px) { .sheet .lb { width: 100%; } }
.panel__tag--live { background: var(--sage-d); color: #fff; }
.ranking .empty, .bets .empty { display: block; }
.panel--live { position: relative; border: 2px dashed rgba(79,138,91,.45); }
@media (min-width: 720px) { .sheet__in:has(> .lb) { width: min(520px, 100% - 48px); } }

/* ==========================================================
   PANEL ADMINISTRATORA (admin.html)
   ========================================================== */
.admin-tag { background: var(--plum); color: var(--mustard); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: 3px 9px; border-radius: 999px; }
.admin-page .topbar__cta { margin-left: auto; }
.page-head--admin { padding-bottom: 8px; }
.admin { padding: 8px 0 64px; display: grid; gap: 20px; }
.admin-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow-sm); min-width: 0; }
.admin-card h2 { font-size: 1.4rem; }
.admin-sql { background: var(--plum); color: #FFE7A3; padding: 12px 14px; border-radius: 12px; font-size: .85rem; white-space: pre-wrap; }
.admin-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .admin-stats { grid-template-columns: repeat(4, 1fr); } }
.admin-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-bar h2 { margin: 0; }
.admin-cats { display: grid; gap: 10px; }
@media (min-width: 900px) { .admin-cats { grid-template-columns: 1fr 1fr; } }
.acat { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: var(--shadow-sm); min-width: 0; }
.acat.is-adopted { background: #F4FAF5; }
.acat__art { width: 64px; height: 64px; }
.acat__info { min-width: 0; }
.acat__info h3 { margin: 0 0 2px; font-size: 1.1rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.acat__info p { margin: 0; font-size: .82rem; color: var(--ink-soft); }
.acat__bets { font-weight: 700; }
.acat__act { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 560px) { .acat { grid-template-columns: 64px 1fr auto; } .acat__act { grid-column: auto; flex-direction: column; align-items: stretch; } }
.chip--ok { background: #E6F3E8; color: #2F5E3A; font-size: .7rem; padding: 2px 8px; border-radius: 999px; font-family: var(--font-body); font-weight: 800; }
.chip--wait { background: #FFF3D6; color: #7A5A12; font-size: .7rem; padding: 2px 8px; border-radius: 999px; font-family: var(--font-body); font-weight: 800; }
.chip--hidden { background: #EDE6F1; color: var(--plum); font-size: .7rem; padding: 2px 8px; border-radius: 999px; font-family: var(--font-body); font-weight: 800; }
.acat.is-hidden { opacity: .78; background: repeating-linear-gradient(135deg, var(--paper), var(--paper) 12px, #FAF4FC 12px, #FAF4FC 24px); }
.admin-bar--hidden { margin-top: 26px; }
.admin-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .admin-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.admin-table { width: 100%; border-collapse: collapse; font-size: .85rem; display: block; overflow-x: auto; }
.admin-table th, .admin-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.admin-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; background: #FBF4EC; border-radius: 10px; }
.admin-list strong { display: block; font-size: .92rem; }
.admin-list span { font-size: .78rem; color: var(--ink-soft); overflow-wrap: anywhere; }
@media (min-width: 720px) { .sheet--admin .sheet__in { width: min(860px, 100% - 48px); } .sheet--admin-sm .sheet__in { width: min(480px, 100% - 48px); } }
.admin-form__grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .admin-form__grid { grid-template-columns: 240px 1fr; } }
.admin-form__fields { display: grid; gap: 10px; min-width: 0; }
.admin-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-form__preview { display: grid; gap: 10px; align-content: start; }
.admin-preview { background: var(--bg, #F3E9DC); border-radius: var(--r); height: 220px; overflow: hidden; display: grid; place-items: center; }
.admin-preview svg { width: 115%; max-width: none; margin-top: 25%; }
.admin-preview img { width: 100%; height: 100%; object-fit: cover; }
.admin-look { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .admin-look { grid-template-columns: 1.4fr 1fr repeat(5, 70px); align-items: end; } }
.admin-look legend { font-weight: 800; font-size: .85rem; padding: 0 6px; }
.admin-look.admin-contact { grid-template-columns: 1fr; align-items: start; margin: 12px 0; }
@media (min-width: 640px) { .admin-look.admin-contact { grid-template-columns: repeat(3, 1fr); } .admin-contact .field--wide { grid-column: 1 / -1; } }
.field--color input { padding: 2px; height: 44px; cursor: pointer; }
.check { display: flex; gap: 8px; align-items: center; font-size: .85rem; font-weight: 700; }
.admin-del { margin-left: auto; color: #B3261E; }
.admin-adopt__art { display: flex; justify-content: center; }
.admin-adopt__art .mini { width: 84px; height: 84px; }
/* nagłówek z kontem na wąskich ekranach: logo + punkty + konto muszą się zmieścić */
@media (max-width: 479px) {
  .topbar__in:has(.account:not([hidden])) { gap: 8px; }
  .topbar__in:has(.account:not([hidden])) .brand { font-size: 1.12rem; gap: 6px; min-width: 0; }
  .topbar__in:has(.account:not([hidden])) .brand img { width: 30px; height: 30px; }
  .topbar__in:has(.account:not([hidden])) .points-pill { padding: 7px 11px; font-size: .82rem; }
  .account { margin-left: 0; }
  .account__btn { padding: 3px; gap: 0; }
  .account__caret { display: none; }
  .account__login { padding: .5em .7em; }
  .admin-page .brand span { display: none; }
  .admin-page .topbar__cta { white-space: nowrap; }
}
@media (max-width: 359px) { .topbar__in:has(.account:not([hidden])) .brand span { display: none; } }
.toc li.toc__sub { list-style: none; font-size: .86rem; margin-left: .4em; }

/* ---------- dodaj-kota.html: formularz zgłoszenia i „Moje zgłoszenia” ---------- */
.submit { display: grid; gap: 22px; }
.submit__card h2 { font-size: 1.45rem; }
.submit-form { display: grid; gap: 14px; }
.submit__set { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 0; display: grid; gap: 12px; min-width: 0; }
.submit__set legend { font-weight: 800; font-size: .9rem; padding: 0 6px; }
.submit__grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.submit__set .field small { font-weight: 700; color: var(--ink-soft); }
.submit__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit__thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.submit__thumbs:empty { display: none; }
.submit__thumb { position: relative; width: 112px; height: 112px; margin: 0; }
.submit__thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.submit__thumb figcaption { position: absolute; left: 6px; bottom: 6px; background: var(--plum); color: #fff; font-size: .68rem; font-weight: 800; padding: 1px 7px; border-radius: 999px; }
.submit__rm { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(43,29,46,.8); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.submit__rm:hover, .submit__rm:focus-visible { background: var(--terra-d); }
.submit__check { align-items: flex-start; font-weight: 600; line-height: 1.45; font-size: .9rem; }
.submit__check input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--terra); }
.submit__more { margin-top: 18px; }
.sub-list { display: grid; gap: 10px; margin-top: 12px; }
.sub-item { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; background: #FBF4EC; border-radius: 14px; padding: 10px; min-width: 0; }
.sub-item__img { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: #F3E9DC; display: grid; place-items: center; font-size: 1.8rem; }
.sub-item__img img { width: 100%; height: 100%; object-fit: cover; }
.sub-item__info { min-width: 0; }
.sub-item__info h3 { margin: 0 0 2px; font-size: 1.05rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sub-item__info p { margin: 0; font-size: .84rem; color: var(--ink-soft); }
.sub-item__act { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 560px) { .sub-item { grid-template-columns: 64px 1fr auto; } .sub-item__act { grid-column: auto; } }
.chip--rej { background: #FBE4E1; color: #9A2A1E; font-size: .7rem; padding: 2px 8px; border-radius: 999px; font-family: var(--font-body); font-weight: 800; }

/* ---------- panel admina: zgłoszenia ---------- */
.count-badge { display: inline-grid; place-items: center; min-width: 1.7em; height: 1.7em; padding: 0 .45em; border-radius: 999px; background: var(--terra); color: #fff; font-family: var(--font-body); font-size: .8rem; font-weight: 800; vertical-align: middle; }
.count-badge--zero { background: #EEE3D6; color: var(--ink-soft); }
.admin-subs { margin: 6px 0 24px; }
.admin-subs__list { display: grid; gap: 12px; margin-top: 10px; }
.sub-card { display: grid; gap: 12px; background: var(--paper); border: 2px solid #F6D6B8; border-radius: 16px; padding: 14px; box-shadow: var(--shadow-sm); min-width: 0; }
@media (min-width: 820px) { .sub-card { grid-template-columns: 230px 1fr auto; align-items: start; } .sub-card .acat__act { grid-column: auto; flex-direction: column; align-items: stretch; } }
.sub-card__photos { display: flex; gap: 6px; flex-wrap: wrap; }
.sub-card__photos img { width: 108px; height: 108px; object-fit: cover; border-radius: 10px; display: block; }
.sub-card__photos a:first-child img { width: 230px; height: 180px; }
.sub-card__nophoto { width: 108px; height: 108px; display: grid; place-items: center; background: #F6ECE1; border-radius: 10px; font-size: .75rem; color: var(--ink-soft); }
.sub-card__info { min-width: 0; }
.sub-card__info h3 { margin: 0 0 4px; font-size: 1.2rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sub-card__info p { margin: 4px 0; font-size: .88rem; overflow-wrap: anywhere; }
.sub-card__story { white-space: pre-line; max-height: 10em; overflow: auto; background: #FBF4EC; padding: 8px 10px; border-radius: 10px; }
.admin-pick { border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.admin-pick legend { font-weight: 800; font-size: .85rem; padding: 0 6px; }
.admin-pick__opt { position: relative; cursor: pointer; }
.admin-pick__opt input { position: absolute; opacity: 0; }
.admin-pick__opt img, .admin-pick__opt span { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 3px solid transparent; display: grid; place-items: center; text-align: center; font-size: .72rem; font-weight: 700; background: #F6ECE1; }
.admin-pick__opt input:checked + img, .admin-pick__opt input:checked + span { border-color: var(--terra); }
.admin-pick__opt input:focus-visible + img, .admin-pick__opt input:focus-visible + span { outline: 3px solid var(--mustard); }
.admin-history { margin-top: 20px; }
.admin-history summary { cursor: pointer; }
