/* Bulíky — profile, progression, Bulíky+ and archive screens. Tokens live in styles.css. */

/* ---------- Profile chip, level, stats ---------- */

.profile-chip {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0.15rem 0.75rem 0.15rem 0.45rem;
  border: 2px solid var(--outline);
  border-radius: 999px;
  background: var(--card);
  color: var(--outline);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--outline);
  transition: transform 0.12s var(--ease-out), box-shadow 0.12s var(--ease-out);
}

.profile-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--outline);
}

.profile-chip:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 var(--outline);
}

.profile-chip__level,
.level__badge {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  padding-top: 0.1rem;
  border: 2px solid var(--outline);
  border-radius: 50%;
  background: var(--gold);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1;
}

.ring-icon {
  width: 1.05em;
  height: 1.05em;
  margin-left: 0.25em;
  vertical-align: -0.12em;
  flex: none;
}

.level__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.level__badge {
  width: 2.1rem;
  height: 2.1rem;
  font-size: 1.25rem;
}

.level__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.1;
}

.board .level__name {
  font-size: 2.3rem;
}

.level__track {
  height: 1rem;
  margin-top: 0.45rem;
  border: 2px solid var(--outline);
  border-radius: 999px;
  background: var(--card-dim);
  overflow: hidden;
}

.level__fill {
  height: 100%;
  min-width: 0.5rem;
  border-right: 2px solid var(--outline);
  background: var(--gold);
  transform-origin: left;
  animation: grow 0.7s var(--ease-out) both;
  animation-delay: 0.25s;
}

.level__label {
  margin: 0.3rem 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.news {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.chip--badge {
  background: var(--gold);
  color: var(--outline);
  text-transform: none;
  letter-spacing: 0.01em;
}

.stats {
  margin: 0;
}

.stats__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
}

.stats__row + .stats__row {
  border-top: 2px dashed #d9cfb3;
}

.stats dt {
  font-weight: 700;
}

.stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
}

.link {
  min-height: 2.75rem;
  padding: 0 0 0 0.75rem;
  border: 0;
  background: none;
  color: #a5600a;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.badges {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.6rem, 1fr));
  gap: 0.6rem;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}

.badge {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  padding: 0.7rem 0.5rem 0.6rem;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--card-dim);
  text-align: center;
  box-shadow: var(--drop);
}

.badge--earned {
  background: var(--card);
}

.badge__medal {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border: var(--border);
  border-radius: 50%;
  background: #e2d8bd;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.82rem;
  line-height: 1;
}

.badge--earned .badge__medal {
  background: var(--gold);
  color: var(--outline);
  font-size: 1.5rem;
  box-shadow: inset 0 -3px 0 var(--gold-deep);
}

.badge__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.15;
}

.badge__desc {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.panel + .panel {
  margin-top: 0.9rem;
}

.panel--plus {
  background: #fff0c2;
}

.panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.7rem;
}

.panel__actions:empty {
  display: none;
}

.button--small {
  width: auto;
  min-height: 2.75rem;
  padding: 0.3rem 1rem 0.2rem;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow:
    inset 0 -3px 0 var(--gold-deep),
    0 4px 0 var(--outline);
}

.button--plain,
.button--plain:hover,
.button--plain:active {
  background: var(--card);
  box-shadow:
    inset 0 -4px 0 var(--card-dim),
    0 4px 0 var(--outline);
}

/* ---------- Bulíky+ and archive ---------- */

.perks {
  display: grid;
  gap: 0.6rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.perk {
  display: grid;
  gap: 0.1rem;
  padding: 0.65rem 0.95rem;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--drop);
}

.perk--lead {
  background: var(--gold);
}

.perk__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.15;
}

.perk__text {
  font-size: 0.95rem;
  font-weight: 700;
}

.plans {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.3rem;
}

.plan {
  flex-direction: column;
  gap: 0;
}

.plan__note {
  font-family: var(--font-text);
  font-size: 0.85rem;
  font-weight: 800;
}

.onGrass--small {
  margin-top: 0;
  font-size: 0.9rem;
  text-align: center;
}

.archive {
  display: grid;
  gap: 0.6rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.archive__day {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  min-height: 3.4rem;
  padding: 0.4rem 1rem;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--drop);
  transition: transform 0.12s var(--ease-out), box-shadow 0.12s var(--ease-out);
}

.archive__day:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--outline);
}

.archive__day:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--outline);
}

.archive__no {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
}

.archive__status {
  color: var(--ink-soft);
  font-weight: 700;
}

.archive__status--done {
  color: var(--outline);
  font-weight: 900;
}

.archive__go {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
}

@keyframes grow {
  from {
    transform: scaleX(0);
  }
}

.plans .button {
  justify-self: center;
  max-width: 24rem;
}

.plans .panel {
  margin-top: 0.3rem;
}

.button[disabled].plan {
  cursor: not-allowed;
}

.archive__day--static,
.archive__day--static:hover,
.archive__day--static:active {
  cursor: default;
  transform: none;
  background: var(--card-dim);
  box-shadow: var(--drop);
}

.archive__lock {
  display: inline-flex;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 800;
}

/* ---------- Support and footer ---------- */

.support__amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.support__amount {
  min-height: 3.6rem;
  padding-inline: 0.4rem;
  font-size: 1.25rem;
}

.footer {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  margin-top: 1rem;
  padding: 1.6rem 1rem calc(1.8rem + env(safe-area-inset-bottom));
  border-top: var(--border);
  background: var(--grass-deep);
  color: var(--cream);
  text-align: center;
}

.footer p {
  margin: 0;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.1;
}

.footer__brand span {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-text);
  font-size: 0.86rem;
  font-weight: 700;
  opacity: 0.8;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.1rem 0.4rem;
  max-width: 40rem;
}

.footer__nav button {
  min-height: 2.75rem;
  padding: 0 0.6rem;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.footer__nav button:hover {
  color: #fff;
}

.support-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 3rem;
  margin-top: 0.8rem;
  padding: 0.35rem 1rem 0.25rem;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--outline);
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.1;
  cursor: pointer;
  box-shadow:
    inset 0 -3px 0 var(--gold-deep),
    0 4px 0 var(--outline);
  transition: transform 0.12s var(--ease-out), box-shadow 0.12s var(--ease-out);
}

.support-button:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 -3px 0 var(--gold-deep),
    0 6px 0 var(--outline);
}

.support-button:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 -2px 0 var(--gold-deep),
    0 1px 0 var(--outline);
}

.support-button__heart {
  color: var(--red);
  font-family: var(--font-text);
  font-size: 1.25rem;
  animation: beat 1.8s ease-in-out infinite;
}

.support-button--footer {
  width: auto;
  min-width: 14rem;
  margin-top: 0.2rem;
  box-shadow:
    inset 0 -3px 0 var(--gold-deep),
    0 4px 0 #0c1f18;
}

@keyframes beat {
  0%,
  60%,
  100% {
    scale: 1;
  }
  20% {
    scale: 1.25;
  }
  40% {
    scale: 1.08;
  }
}

.footer__note {
  font-size: 0.82rem;
  opacity: 0.75;
}

/* The footer always sits at the very bottom of the page, even under a short screen. */
.world {
  display: flex;
  flex-direction: column;
}

.layout {
  flex: 1 0 auto;
}

.support-button--plus {
  margin-top: 0.6rem;
  background: var(--card);
  box-shadow:
    inset 0 -3px 0 var(--card-dim),
    0 4px 0 var(--outline);
}

.support-button--plus:hover {
  box-shadow:
    inset 0 -3px 0 var(--card-dim),
    0 6px 0 var(--outline);
}

.support-button--plus:active {
  box-shadow:
    inset 0 -2px 0 var(--card-dim),
    0 1px 0 var(--outline);
}

.support-button--footer.support-button--plus {
  margin-top: 0;
  box-shadow:
    inset 0 -3px 0 var(--card-dim),
    0 4px 0 #0c1f18;
}
