/* "Buddy is alive" page (on top of site.css) */
.life-page main {
  padding-bottom: 60px;
}
.life-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
  min-height: calc(100svh - 140px);
  padding: 20px 0;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px;
}
.status-pill i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink {
  50% {
    opacity: 0.4;
  }
}
[data-status='low'] .status-pill i,
[data-status='dying'] .status-pill i {
  background: var(--yellow);
  box-shadow: 0 0 12px var(--yellow);
}
[data-status='hungry'] .status-pill i {
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
}
.life-hero h1 {
  margin: 16px 0 10px;
  font-family: var(--display);
  font-size: clamp(42px, 6.4vw, 88px);
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
}
.life-hero h1 .accent {
  background: linear-gradient(90deg, var(--lime), var(--cyan), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[data-status='hungry'] .life-hero h1 .accent,
[data-status='dying'] .life-hero h1 .accent {
  background: linear-gradient(90deg, #ffd166, #ff6b7a);
  -webkit-background-clip: text;
  background-clip: text;
}
.life-hero .lead {
  margin: 0 0 22px;
  text-align: left;
  animation: none;
}
.life-bar {
  position: relative;
  height: 34px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.life-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  transition: width 1.2s cubic-bezier(0.3, 0.8, 0.3, 1);
}
[data-status='low'] .life-fill,
[data-status='dying'] .life-fill {
  background: linear-gradient(90deg, #ffd166, #ff9a3d);
}
[data-status='hungry'] .life-fill {
  background: #ff6b7a;
}
.life-bar span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.life-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.life-stats div,
.tank {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--line);
}
.life-stats span,
.tank small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.life-stats b {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
}
.life-buddy {
  justify-self: center;
  width: 320px;
  height: 320px;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5));
}
.tanks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 10px 0 30px;
}
.tank h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
}
.tank > b {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  font-family: var(--display);
  font-weight: 400;
}
.tank p {
  margin: 4px 0 0;
  font-size: 13px;
}
.gauge {
  height: 10px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.gauge i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  transition: width 1.2s cubic-bezier(0.3, 0.8, 0.3, 1);
}
.tank.brain .gauge i {
  background: linear-gradient(90deg, #b28dff, #ff3ea5);
}
.tank.eyes .gauge i {
  background: linear-gradient(90deg, #3de8ff, #7aa2ff);
}
.rules {
  margin: 0 0 30px;
  padding: 28px;
}
.rules h2,
.history h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
}
.split {
  display: grid;
  grid-template-columns: 8fr 1fr 1fr;
  height: 74px;
  margin-bottom: 18px;
  border-radius: 16px;
  overflow: hidden;
}
.slice {
  display: grid;
  align-content: center;
  padding: 0 14px;
  color: #0a0b12;
  min-width: 0;
}
.slice b {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
}
.slice span {
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.slice.hold {
  background: var(--lime);
}
.slice.brain {
  background: #b28dff;
}
.slice.eyes {
  background: var(--cyan);
}
.rules ul {
  margin: 0 0 14px;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--soft);
}
.wallet-line a {
  color: var(--cyan);
}
.timeline {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.timeline li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 3px 0 0 var(--edge, rgba(255, 255, 255, 0.2));
}
.timeline li.claim {
  --edge: var(--lime);
}
.timeline li.payment {
  --edge: #b28dff;
}
.timeline li.muted {
  display: block;
  color: var(--muted);
}
.timeline time {
  color: var(--muted);
  font-size: 13px;
}
.timeline a {
  color: var(--cyan);
}
@media (max-width: 820px) {
  .life-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .life-buddy {
    order: -1;
    width: 240px;
    height: 240px;
  }
  .tanks {
    grid-template-columns: 1fr;
  }
  .split {
    grid-template-columns: 6fr 2fr 2fr;
  }
  .timeline li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
