/* Homepage additions. Loaded after home.css so the cinematic hub keeps its own rules. */
.z-extra {
  margin-top: 28px;
  display: grid;
  gap: 10px;
  text-align: left;
  font-family: var(--sans);
  color: var(--ink);
}
.z-extra h2,
.news h2,
.tip-jar h2 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 7vw, 44px);
  letter-spacing: 0;
  line-height: 1.05;
  color: var(--ink);
}
.z-extra .kicker,
.news .kicker,
.tip-jar .kicker {
  margin: 0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.z-extra p,
.news p,
.tip-jar p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}
.explore { display: grid; gap: 8px; margin: 8px 0 4px; }
.explore a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--ice);
  border: 1px solid var(--line);
  background: rgba(12, 18, 20, 0.72);
}
.explore a:hover { border-color: rgba(126, 217, 211, 0.55); }
.explore small { color: var(--faint); font-size: 12px; text-align: right; }

.news,
.tip-jar {
  margin: 12px 0;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(12, 18, 20, 0.72);
}
.field { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }
.field input {
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #080c0e;
  color: var(--ink);
  font: inherit;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}
.check input { margin-top: 3px; flex: none; }
.check a { color: var(--ice); text-decoration: underline; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-msg { min-height: 1.2em; color: var(--teal); }

.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.amount {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--ice);
  border: 1px solid rgba(126, 217, 211, 0.35);
  background: radial-gradient(circle at 50% 0%, rgba(126, 217, 211, 0.2), transparent 70%), #0a1012;
}
.amount .amt { font-family: var(--serif); font-size: 26px; line-height: 1; }
.amount .via { color: var(--faint); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.tip-actions { display: flex; flex-wrap: wrap; gap: 8px; }

a.btn,
button.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ice);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
a.btn-teal,
button.btn-teal {
  border: 0;
  background: linear-gradient(160deg, #f4fffe, var(--teal));
  color: #062022;
}

.join-bar.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0 4px;
  min-height: 52px;
  padding: 8px 12px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--ice);
  background: rgba(6, 16, 18, 0.94);
  border: 1px solid rgba(126, 217, 211, 0.35);
}
.join-bar.flow span { min-width: 0; font-size: 14px; }
.join-bar.flow strong {
  flex: none;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(160deg, #f4fffe, var(--teal));
  color: #062022;
}

.tip-float.home-float {
  position: fixed;
  right: 12px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 31;
  max-width: calc(100% - 24px);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ice);
  background: rgba(5, 8, 10, 0.92);
  border: 1px solid rgba(126, 217, 211, 0.5);
  font-size: 13px;
  font-weight: 750;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

@media (max-width: 420px) {
  .explore a { align-items: flex-start; flex-direction: column; gap: 2px; }
  .explore small { text-align: left; }
}

.wordmark { left: max(112px, calc(env(safe-area-inset-left) + 104px)); }

/* The lamp sits on the portrait. Floor the flicker so it stays visible. */
.stage .ember {
  z-index: 4;
  inset: 6% -6% auto auto;
  width: 62%;
  height: 48%;
  background: radial-gradient(ellipse at 76% 42%, rgba(255, 72, 48, 0.92), rgba(176, 18, 14, 0.48) 40%, transparent 70%);
  mix-blend-mode: screen;
  filter: blur(1px);
  opacity: 0.72;
  animation: home-lamp 7.2s infinite;
}
@keyframes home-lamp {
  0%, 100% { opacity: 0.58; }
  8% { opacity: 0.42; }
  11% { opacity: 0.96; }
  16% { opacity: 0.5; }
  34% { opacity: 1; }
  48% { opacity: 0.46; }
  52% { opacity: 0.88; }
  78% { opacity: 0.55; }
  87% { opacity: 0.98; }
  91% { opacity: 0.44; }
}
@media (prefers-reduced-motion: reduce) {
  .stage .ember { opacity: 0.62; }
}

@media (min-width: 1100px) {
  main#content {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(400px, 0.72fr);
    align-items: start;
  }
  .stage {
    position: sticky;
    top: 0;
    height: 100svh;
    height: 100dvh;
  }
  .hero-ambient { display: none; }
  .hero-frame {
    inset: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    aspect-ratio: auto;
    transform: none;
    box-shadow: none;
  }
  .hero-shade {
    background:
      radial-gradient(ellipse at 100% 12%, rgba(226, 59, 50, 0.42), transparent 46%),
      linear-gradient(180deg, rgba(5, 8, 10, 0.18) 0%, rgba(5, 8, 10, 0) 16%, rgba(5, 8, 10, 0) 46%, rgba(5, 8, 10, 0.55) 72%, rgba(5, 8, 10, 0.92) 100%);
  }
  .stage-copy {
    width: min(480px, calc(100% - 88px));
    margin-left: max(36px, calc(env(safe-area-inset-left) + 28px));
    margin-right: auto;
  }
  .profile { text-align: left; }
  .avatar { margin-left: 0; }
  .sheet {
    position: relative;
    width: auto;
    max-width: none;
    margin: 0;
    min-height: 100svh;
    min-height: 100dvh;
    padding: 36px 40px 72px 32px;
    background-color: #140d0b;
    background-image: linear-gradient(180deg, rgba(8, 5, 4, 0.3), rgba(8, 5, 4, 0.55)), url("/static/brick-grime.v1.webp"), url("/static/brick-gothic.v1.webp");
    background-size: auto, 1130px 1130px, 640px 640px;
    background-repeat: no-repeat, repeat, repeat;
  }
  .sheet::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
      radial-gradient(ellipse at 100% 0%, rgba(255, 48, 32, 0.5), transparent 42%),
      linear-gradient(180deg, rgba(12, 7, 6, 0.12), rgba(8, 5, 4, 0.38));
  }
  .sheet > * { position: relative; z-index: 1; }
}
.home-foot { margin-top: 22px; color: var(--faint); font-size: 13px; }
.home-foot .foot-groups { display: grid; gap: 14px; margin-bottom: 16px; }
.home-foot .foot-groups p { margin: 0 0 4px; color: var(--teal); font-size: 11px; font-weight: 750; letter-spacing: 0.16em; text-transform: uppercase; }
.home-foot .foot-groups a { display: block; padding: 3px 0; color: var(--muted); text-decoration: none; }
@media (min-width: 800px) {
  .home-foot .foot-groups { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}
