/* css/site.css (WP6) — kimreps.net links, back button, KakoBuy / Discord cards, account block, real-finds strip.
   Tokens and base classes (.btn, .chip, .sr-only, .num) come from css/main.css. Visual pass 2 (2026-10-15): cards
   inside a sheet = --raised fills with no border and no shadow; links in white; one dot (red + --ring-new). Needs
   <link rel="stylesheet" href="css/site.css"> in index.html (requested from WP0). */

/* ------------------------------------------------------------------ links */
.site-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--tap);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  touch-action: manipulation;
}

.site-link:hover,
.site-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-link--quiet {
  min-height: 0;
  color: var(--text-2);
  font-weight: 700;
}

.ext-icon {
  flex: none;
  color: var(--text-dim);
}

.btn .ext-icon {
  color: inherit;
}

/* „‹ kimreps.net” — same tab, standalone only: a text button (btn--text btn--sm) with the filled chevron */
.back-chip {
  align-self: flex-start;
  text-decoration: none;
}

/* ------------------------------------------------------------------ cards */
.site-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--raised);
}

.site-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: var(--fs-16);
  font-weight: 800;
  line-height: var(--lh-tight);
  color: var(--text);
}

/* the one „something new” dot of the game (= the nav tab's, css/hud.css): red, a dark ring, no halo */
.site-card__dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: var(--ring-new);
}

.site-card__reward {
  margin: 0;
  color: var(--gem-light);
  font-weight: 800;
}

.site-card__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.site-card__secondary {
  align-self: center;
}

.site-card__disclosure {
  margin: 0;
  color: var(--text-dim);
  font-size: var(--fs-12);
  font-weight: 700;
  line-height: var(--lh-body);
}

.site-card__msg {
  margin: 0;
  color: var(--text-2);
  font-size: var(--fs-14);
  font-weight: 700;
}

/* The status line is a persistent live region: when empty it is taken out of the flex flow (no gap) but kept
   rendered, so screen readers already know it and announce the text written into it later. */
.site-card__msg:empty {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ account */
.site-account {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.site-account[hidden] {
  display: none;
}

.site-account__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--line);
  object-fit: cover;
  background: var(--panel-solid);
}

.site-account__who,
.site-account__hint {
  flex: 1 1 160px;
  margin: 0;
  color: var(--text-2);
  font-weight: 700;
  font-size: var(--fs-14);
}

.site-login {
  flex: 1 1 100%;
}

/* ------------------------------------------------------------------ Me › Linki */
.site-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-links__title {
  margin: 0;
  font-size: var(--fs-16);
  font-weight: 800;
}

.site-links__list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: var(--r-md);
  overflow: hidden;
}

.site-links__list > li > .site-link {
  display: flex;
  min-height: 44px;
  padding: 0 12px;
  background: var(--raised);
}

/* ------------------------------------------------------------------ real-finds strip */
.finds-strip {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.finds-strip[hidden] {
  display: none;
}

.finds-strip__title {
  margin: 0;
  font-size: var(--fs-16);
  font-weight: 800;
}

.finds-strip__list {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 2px 2px 8px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.finds-strip__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

/* scoped to the strip: the Zlecenia › Tablica „Polecane” card is also .find-card (a full-width .card styled in
   css/sheets.css) — this sheet loads later, and an unscoped 120 px column squeezed it with the text spilling out */
.finds-strip .find-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 120px;
  margin: 0; /* not the Zlecenia card's margin-top (css/sheets.css .find-card) */
  padding: 8px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--raised);
  color: var(--text);
  text-decoration: none;
}

.finds-strip .find-card:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.finds-strip .find-card .ext-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 2px;
  border-radius: var(--r-xs);
  background: var(--panel);
  color: #ffffff;
}

.find-card__img {
  display: block;
  width: 104px;
  height: 104px;
  border-radius: var(--r-sm);
  object-fit: cover;
  background: var(--panel-solid);
}

.find-card__title {
  display: -webkit-box;
  overflow: hidden;
  font-size: var(--fs-12);
  font-weight: 700;
  line-height: var(--lh-tight);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.find-card__price {
  color: var(--text-2);
  font-size: var(--fs-12);
  font-weight: 800;
}

.find-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* = the §4 tag (20 px, --r-xs, 12 / 800) */
.find-card__tag {
  height: 20px;
  padding: 0 6px;
  border-radius: var(--r-xs);
  background: var(--raised-2);
  color: var(--text-2);
  font-size: var(--fs-12);
  font-weight: 800;
  line-height: 20px;
}

.find-card__tag--best {
  background: var(--yellow);
  color: var(--ink);
}

.finds-strip__more {
  align-self: flex-start;
}

/* ------------------------------------------------------------------ „Zadania za gemy” (ui/screens/gem-tasks.js) */
.hud-pill__plus { position: relative; }

.hud-pill__dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: var(--ring-new);
  pointer-events: none; /* the nav dot's look: no yellow halo around a red dot (visual pass 2026-10-15) */
}

.hud-pill__dot[hidden] { display: none; }

.gt-intro {
  margin: 0 0 12px;
  color: var(--text-2);
  font-size: var(--fs-14);
  font-weight: 700;
  line-height: var(--lh-body);
}

.gt-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gt-card {
  border: 0;
  border-radius: var(--r-md);
  background: var(--raised);
}

.gt-card[hidden] { display: none; }

.gt-card__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: 'ico main' 'act act';
  gap: 12px;
  align-items: center;
  padding: 12px;
}

/* ready to claim = the green left bar (§4 row state) */
.gt-card__row.is-ready { box-shadow: inset 4px 0 0 var(--green); border-radius: var(--r-md); }
.gt-card__row.is-done { opacity: 0.7; }

.gt-card__ico {
  grid-area: ico;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--panel);
  color: #fff;
}

.gt-card__ico--affiliate { background: var(--brand-red); }
.gt-card__ico--youtube { background: #e62117; }
.gt-card__ico--tiktok { background: #111; box-shadow: inset -2px 0 0 #25f4ee, inset 2px 0 0 #fe2c55; }
.gt-card__ico--wishlist { background: var(--raised-2); }
.gt-card__ico--discord { background: #5865f2; }

.gt-card__main { grid-area: main; min-width: 0; }

.gt-card__title {
  margin: 0;
  font-size: var(--fs-16);
  font-weight: 800;
  line-height: var(--lh-tight);
  color: var(--text);
}

.gt-card__reward {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 4px 0 0;
  color: var(--gem-light);
  font-weight: 900;
}

.gt-card__hint,
.gt-card__fine {
  margin: 4px 0 0;
  color: var(--text-dim);
  font-size: var(--fs-14);
  font-weight: 700;
  line-height: var(--lh-body);
}

.gt-card__fine { font-size: var(--fs-12); }

.gt-card__act { grid-area: act; }

.gt-card__btn {
  width: 100%;
  min-height: var(--tap);
  justify-content: center;
}

.gt-card__done {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  color: var(--green);
  font-weight: 900;
}

.gt-card__msg {
  margin: 0;
  padding: 0 14px;
  color: var(--text-2);
  font-size: var(--fs-14);
}

.gt-card__msg:not(:empty) { padding-bottom: 12px; }

/* ------------------------------------------------------------------ gem quests + monthly groups (2026-10-20) */
.gt-card__ico--qcfinder { background: var(--raised-2); }

.gt-group { margin: 0 0 var(--sp-4); }

.gt-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-2);
}

.gt-group__title {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-16);
  font-weight: 900;
}

.gt-group__note {
  color: var(--text-dim);
  font-size: var(--fs-12);
  font-weight: 700;
  text-align: right;
}

/* monthly tasks already claimed: collapsed to the bottom of the sheet, dimmed (2026-10-21); the cards' own
   .is-done dimming is not stacked on top of the group's */
.gt-group--done { opacity: 0.7; }
.gt-group--done .gt-group__title { color: var(--text-dim); font-size: var(--fs-14); }
.gt-group--done .gt-card__row.is-done { opacity: 1; }

.gt-quest {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border-radius: var(--r-md);
  background: var(--raised);
}

.gt-quest.is-ready { box-shadow: inset 4px 0 0 var(--green); }
.gt-quest.is-done { opacity: 0.7; }

.gt-quest__title {
  display: block;
  color: var(--text);
  font-size: var(--fs-14);
  font-weight: 800;
  line-height: var(--lh-tight);
}

.gt-quest__prog {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-1);
}

.gt-quest__prog .scr-bar { flex: 1; height: 8px; }

.gt-quest__n {
  color: var(--text-dim);
  font-size: var(--fs-12);
  font-weight: 700;
}

.gt-quest__gems {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  color: var(--gem-light);
  font-weight: 900;
}

.gt-quest__done { display: inline-flex; color: var(--green); }

.gt-quest__btn { min-height: var(--tap); }

/* Osiągnięcia › Odznaki (ui/screens/achievements.js) */
.scr-achv__tiers {
  color: var(--text-dim);
  font-size: var(--fs-12);
  font-weight: 700;
}

.scr-achv__badge.is-ready { box-shadow: inset 4px 0 0 var(--green); }

.scr-achv__bhead { grid-template-columns: auto 1fr auto; }
