:root {
  --bg: #e8f1e9;
  --ink: #142019;
  --muted: #647168;
  --deep: #123225;
  --leaf: #2f6f45;
  --moss: #8aa96b;
  --reed: #c2aa68;
  --water: #79a99d;
  --cream: #fbfbf3;
  --paper: #f8f3df;
  --paper-warm: #efe5c8;
  --cinnabar: #9c2c22;
  --cord: #173e2e;
  --mist: rgba(255, 255, 255, 0.72);
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --line: rgba(18, 50, 37, 0.12);
  --shadow: 0 26px 70px rgba(18, 50, 37, 0.16);
  --shadow-soft: 0 18px 42px rgba(18, 50, 37, 0.12);
  --paper-texture:
    linear-gradient(90deg, rgba(130, 108, 64, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(130, 108, 64, 0.03) 1px, transparent 1px);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #1a1a1a;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #0d1a12;
  -webkit-font-smoothing: antialiased;
}

button {
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:disabled {
  cursor: default;
}

img {
  display: block;
  max-width: 100%;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(194, 170, 104, 0.92);
  outline-offset: 3px;
}

.habitat-bg {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.sky {
  position: absolute;
  inset: 0;
  background-color: #6f8c5d;
  background-image: var(--forest-bg-image, url('./assets/backgrounds/forest-bg-option-6.webp'));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.habitat-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.12) 40%, rgba(0,0,0,0.22) 100%);
  z-index: 1;
  pointer-events: none;
}

.sun {
  display: none;
}

.mist {
  display: none;
}

.mist-one {
  top: 26%;
  transform: rotate(-4deg);
}

.mist-two {
  top: 48%;
  opacity: 0.72;
  transform: rotate(5deg);
}

.ridge {
  display: none;
}

.ridge-back {
  bottom: 108px;
  background: linear-gradient(145deg, rgba(163, 190, 151, 0.42), rgba(92, 132, 103, 0.16));
  transform: rotate(-3deg);
}

.ridge-front {
  bottom: 52px;
  height: 180px;
  background: linear-gradient(145deg, rgba(74, 120, 75, 0.48), rgba(211, 225, 190, 0.32));
  transform: rotate(4deg);
}

.water {
  display: none;
}

.forest,
.reeds {
  display: none;
}

.forest {
  width: 170px;
  height: 150px;
  background:
    radial-gradient(ellipse at 22% 70%, rgba(26, 75, 39, 0.62) 0 16%, transparent 17%),
    radial-gradient(ellipse at 44% 56%, rgba(58, 107, 49, 0.76) 0 17%, transparent 18%),
    radial-gradient(ellipse at 68% 64%, rgba(36, 91, 52, 0.7) 0 15%, transparent 16%),
    linear-gradient(180deg, transparent 0 54%, rgba(32, 87, 45, 0.36) 55% 100%);
  filter: blur(0.4px);
}

.forest-left {
  left: -54px;
}

.forest-right {
  right: -70px;
  transform: scale(1.16);
}

.reeds {
  width: 132px;
  height: 170px;
  background:
    linear-gradient(80deg, transparent 0 45%, rgba(34, 89, 44, 0.58) 46% 48%, transparent 49%),
    linear-gradient(96deg, transparent 0 38%, rgba(102, 128, 65, 0.56) 39% 41%, transparent 42%),
    linear-gradient(108deg, transparent 0 58%, rgba(31, 81, 41, 0.46) 59% 61%, transparent 62%),
    linear-gradient(72deg, transparent 0 24%, rgba(164, 139, 72, 0.5) 25% 27%, transparent 28%);
}

.reeds-left {
  left: 4px;
}

.reeds-right {
  right: 10px;
  transform: scaleX(-1);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 16px calc(132px + env(safe-area-inset-bottom));
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.home-head {
  min-height: 108px;
  padding-top: 4px;
}

.ambient-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -4px 0 12px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 18px;
  background:
    var(--paper-texture),
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(248, 243, 223, 0.18));
  background-size: 18px 18px, 100% 100%;
  color: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(2, 12, 7, 0.12);
  backdrop-filter: blur(16px);
}

.ambient-toggle {
  display: inline-flex;
  min-width: 0;
  min-height: 38px;
  flex: 1;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border-radius: 13px;
  color: #f8fff4;
  background: rgba(13, 26, 18, 0.42);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.ambient-toggle.is-playing {
  background: linear-gradient(135deg, rgba(18, 50, 37, 0.82), rgba(47, 111, 69, 0.68));
}

.ambient-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.ambient-tag {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.page-head {
  display: flex;
  min-height: 116px;
  gap: 14px;
  align-items: flex-start;
}

.eyebrow {
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 340px;
  font-size: 34px;
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0;
  color: #fff;
}

.subcopy {
  max-width: 275px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
}

.draw-stage {
  position: relative;
  min-height: auto;
  padding: 18px 18px 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.52), transparent 28%),
    var(--paper-texture),
    linear-gradient(180deg, rgba(251, 248, 235, 0.72), rgba(235, 244, 224, 0.78));
  background-size: auto, 18px 18px, 100% 100%;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.draw-stage::before {
  position: absolute;
  inset: 80px 18px auto;
  height: 236px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 48%, rgba(255, 249, 221, 0.42), rgba(218, 232, 199, 0.18) 42%, transparent 72%);
  content: "";
  opacity: 0.9;
  pointer-events: none;
}

.stage-topline,
.tile-topline,
.poster-foot,
.guide-summary > div,
.home-note > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stage-topline {
  position: relative;
  z-index: 2;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

#today-text {
  min-width: 0;
  line-height: 1.35;
}

.status-pill {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--deep), var(--cord));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -8px 14px rgba(0, 0, 0, 0.12),
    0 8px 18px rgba(18, 50, 37, 0.16);
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 180ms ease;
}

.status-pill:active {
  transform: scale(0.98);
}

.bird-sign {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 490px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin-top: 12px;
  text-align: center;
}

.bird-sign.revealed {
  min-height: 0;
}

.sign-back,
.sign-front {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  transition: opacity 320ms ease, transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sign-back {
  justify-content: flex-start;
  padding: 50px 16px 0;
}

.sign-front {
  justify-content: flex-start;
  padding: 4px 0 0;
}

.bird-sign.unrevealed .sign-front,
.bird-sign.revealed .sign-back {
  display: none;
}

.bird-sign.revealed .sign-front {
  display: flex;
}

.unopened-bird-sign {
  position: relative;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.unopened-hero-button {
  position: relative;
  display: grid;
  width: min(100%, 300px);
  height: 318px;
  margin: 0 auto 34px;
  padding: 0;
  place-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
}

.unopened-aura {
  position: absolute;
  z-index: 1;
  width: 92%;
  height: 78%;
  border-radius: 999px;
  background: radial-gradient(
    circle at 50% 34%,
    rgba(255, 254, 241, 0.72) 0%,
    rgba(235, 225, 187, 0.34) 36%,
    rgba(187, 204, 176, 0.22) 56%,
    rgba(255, 255, 255, 0) 72%
  );
  filter: blur(18px);
  opacity: 0.84;
  transform: scale(0.96);
  pointer-events: none;
  animation: unopenedAuraBreath 5.2s ease-in-out infinite;
}

.unopened-shadow {
  position: absolute;
  bottom: 9%;
  z-index: 0;
  width: 80%;
  height: 13%;
  border-radius: 999px;
  background: rgba(55, 48, 32, 0.26);
  filter: blur(20px);
  opacity: 0.38;
  transform: scaleX(1.05);
  pointer-events: none;
}

.unopened-particles {
  position: absolute;
  inset: 3% 2%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.72;
  background:
    radial-gradient(circle, rgba(255, 255, 239, 0.88) 0 2px, transparent 3px) 20% 28% / 82px 82px no-repeat,
    radial-gradient(circle, rgba(255, 248, 213, 0.78) 0 1.5px, transparent 3px) 78% 38% / 94px 94px no-repeat,
    radial-gradient(circle, rgba(230, 213, 166, 0.62) 0 1.5px, transparent 3px) 64% 74% / 100px 100px no-repeat,
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.48) 0 1px, transparent 8px) 86% 20% / 76px 46px no-repeat;
  animation: unopenedParticlesDrift 6.4s ease-in-out infinite;
}

.unopened-hero-image {
  position: relative;
  z-index: 3;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  filter:
    drop-shadow(0 28px 36px rgba(38, 42, 32, 0.16))
    drop-shadow(0 8px 16px rgba(116, 94, 56, 0.12));
  transform-origin: 50% 58%;
  transition: transform 160ms ease, filter 180ms ease;
  animation: unopenedHeroFloat 4.8s ease-in-out infinite;
}

.nest-wrap {
  position: relative;
  display: grid;
  width: 100%;
  height: 300px;
  place-items: center;
}

.nest-fibers {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: min(100%, 270px);
  height: 156px;
  border-radius: 48% 52% 46% 54% / 62% 62% 36% 36%;
  background:
    radial-gradient(ellipse at 48% 56%, rgba(255, 255, 255, 0.34), transparent 45%),
    radial-gradient(ellipse at 50% 66%, rgba(89, 82, 56, 0.2), transparent 66%);
  box-shadow:
    0 18px 30px rgba(75, 72, 50, 0.2),
    inset 0 -14px 22px rgba(83, 76, 52, 0.13),
    inset 0 10px 20px rgba(255, 255, 255, 0.16);
  transform: translateX(-50%);
}

.nest-fibers::before,
.nest-fibers::after {
  position: absolute;
  border-radius: 999px;
  content: "";
  pointer-events: none;
}

.nest-fibers::before {
  inset: 36px 14px 20px;
  background:
    linear-gradient(28deg, transparent 18%, rgba(105, 87, 57, 0.52) 19% 20%, transparent 22%),
    linear-gradient(-18deg, transparent 21%, rgba(125, 106, 70, 0.48) 22% 23%, transparent 25%),
    linear-gradient(8deg, transparent 33%, rgba(74, 67, 45, 0.36) 34% 35%, transparent 37%),
    linear-gradient(166deg, transparent 24%, rgba(155, 139, 96, 0.5) 25% 26%, transparent 28%);
  opacity: 0.92;
  transform: rotate(-4deg);
}

.nest-fibers::after {
  inset: 64px 22px 28px;
  background:
    radial-gradient(circle at 18% 54%, rgba(115, 146, 81, 0.58) 0 8px, transparent 11px),
    radial-gradient(circle at 82% 45%, rgba(112, 139, 85, 0.52) 0 7px, transparent 10px),
    radial-gradient(circle at 55% 72%, rgba(143, 153, 103, 0.38) 0 6px, transparent 10px);
  filter: blur(0.4px);
  opacity: 0.74;
}

.nest-svg {
  position: absolute;
  inset: -10px -8px;
  width: calc(100% + 16px);
  height: calc(100% + 20px);
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.nest-svg path {
  vector-effect: non-scaling-stroke;
}

.nest-svg-back {
  stroke: rgba(153, 134, 94, 0.72);
  stroke-width: 2.1;
  transform: rotate(-3deg);
}

.nest-svg-front {
  z-index: 4;
  stroke: rgba(92, 78, 53, 0.72);
  stroke-width: 2.5;
  transform: rotate(2deg);
}

.bird-egg {
  position: absolute;
  top: 24px;
  left: 50%;
  z-index: 3;
  display: grid;
  width: 140px;
  height: 190px;
  place-items: center;
  overflow: hidden;
  border-radius: 50% 50% 48% 48% / 62% 62% 40% 40%;
  background:
    radial-gradient(circle at 36% 22%, rgba(255, 255, 255, 0.94) 0 16%, transparent 36%),
    radial-gradient(circle at 72% 76%, rgba(180, 167, 124, 0.22), transparent 42%),
    linear-gradient(158deg, #fffdf3 0%, #f6f0df 43%, #e0d2b3 78%, #c4b490 100%);
  box-shadow:
    inset 6px 8px 12px rgba(255, 255, 255, 0.9),
    inset -7px -14px 24px rgba(123, 105, 69, 0.3),
    inset -2px -4px 7px rgba(99, 94, 73, 0.22),
    0 18px 24px rgba(72, 68, 50, 0.28);
  transform: translateX(-50%);
}

.bird-egg::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 35%, rgba(70, 61, 44, 0.1) 100%),
    radial-gradient(ellipse at 50% 104%, rgba(71, 62, 42, 0.18), transparent 36%);
  content: "";
  pointer-events: none;
}

.egg-speckles {
  position: absolute;
  inset: 12px 12px 18px;
  opacity: 0.5;
  background:
    radial-gradient(ellipse at 21% 34%, rgba(136, 102, 61, 0.5) 0 3px, transparent 5px),
    radial-gradient(ellipse at 32% 25%, rgba(113, 89, 58, 0.36) 0 2px, transparent 4px),
    radial-gradient(ellipse at 69% 30%, rgba(119, 90, 56, 0.46) 0 3px, transparent 5px),
    radial-gradient(ellipse at 78% 45%, rgba(106, 82, 53, 0.42) 0 2px, transparent 3px),
    radial-gradient(ellipse at 28% 73%, rgba(132, 94, 54, 0.42) 0 4px, transparent 6px),
    radial-gradient(ellipse at 63% 75%, rgba(129, 93, 53, 0.32) 0 2px, transparent 4px),
    radial-gradient(circle at 42% 39%, rgba(85, 74, 54, 0.44) 0 1px, transparent 2px),
    radial-gradient(circle at 58% 22%, rgba(85, 74, 54, 0.36) 0 1px, transparent 2px),
    radial-gradient(circle at 75% 65%, rgba(85, 74, 54, 0.3) 0 1px, transparent 2px);
  filter: blur(0.1px);
  pointer-events: none;
}

.paper-band {
  position: absolute;
  top: 92px;
  left: 50%;
  z-index: 5;
  display: flex;
  width: 158px;
  height: 45px;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(218, 202, 166, 0.92), rgba(241, 229, 200, 0.98) 48%, rgba(204, 187, 150, 0.94)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 4px);
  box-shadow:
    0 5px 10px rgba(88, 74, 48, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(98, 79, 48, 0.14);
  transform: translateX(-50%);
}

.band-text {
  color: rgba(101, 93, 72, 0.74);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 1.8px;
  transform: scale(0.9);
}

.gold-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 45% 53% 47% 52% / 48% 46% 54% 52%;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 236, 188, 0.72), transparent 27%),
    linear-gradient(138deg, #dec28b 0%, #b99a62 48%, #8f7143 100%);
  box-shadow:
    0 5px 12px rgba(72, 57, 34, 0.34),
    inset 2px 3px 5px rgba(255, 246, 211, 0.44),
    inset -2px -4px 6px rgba(67, 49, 25, 0.24);
  transform: translate(-50%, -50%) rotate(-2deg);
}

.gold-seal::before,
.gold-seal::after {
  position: absolute;
  border-radius: inherit;
  content: "";
}

.gold-seal::before {
  inset: 5px;
  border: 1px solid rgba(255, 239, 194, 0.42);
  box-shadow: inset 1px 2px 4px rgba(70, 51, 27, 0.24);
}

.gold-seal::after {
  inset: -3px;
  border: 2px solid rgba(127, 98, 56, 0.28);
  filter: blur(0.2px);
}

.seal-svg {
  position: relative;
  z-index: 1;
  width: 31px;
  height: 31px;
  fill: none;
  stroke: rgba(255, 245, 221, 0.93);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 -0.5px 0 rgba(72, 51, 26, 0.24));
}

.bird-sign.unrevealed:active .unopened-hero-image,
.bird-sign.unrevealed.is-drawing .unopened-hero-image {
  animation-play-state: paused;
  transform: scale(0.985) translateY(1px);
}

.bird-sign.unrevealed:active .unopened-aura,
.bird-sign.unrevealed.is-drawing .unopened-aura {
  opacity: 0.95;
  transform: scale(1.04);
}

@media (hover: hover) {
  .bird-sign.unrevealed:hover .unopened-hero-image {
    filter:
      drop-shadow(0 28px 44px rgba(30, 42, 32, 0.22))
      drop-shadow(0 8px 18px rgba(170, 128, 55, 0.16));
  }

  .bird-sign.unrevealed:hover .unopened-aura {
    opacity: 0.9;
  }
}

.unopened-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.seal-title {
  margin-top: 10px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
  line-height: 1.18;
  letter-spacing: 0;
}

.seal-copy {
  max-width: 286px;
  margin-top: 10px;
  color: rgba(100, 113, 104, 0.86);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
}

.opened-bird-hero {
  position: relative;
  display: grid;
  width: 100%;
  height: 238px;
  margin: 2px auto 24px;
  place-items: end center;
}

.opened-bird-hero::before {
  position: absolute;
  inset: 24px 48px 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 54%, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.24) 42%, transparent 70%);
  content: "";
  pointer-events: none;
}

.opened-bird-hero img {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 74%;
  max-height: 186px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(18, 50, 37, 0.14));
}

.opened-info-panel {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  padding: 0 8px;
}

.habitat-chip {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 16px;
  padding: 8px 13px;
  border: 1px solid rgba(18, 50, 37, 0.08);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  font-weight: 900;
}

.habitat-chip strong {
  color: var(--deep);
}

.daily-name {
  margin-top: 0;
  font-size: 34px;
  font-weight: 950;
  line-height: 1.08;
}

.look-line {
  display: block;
  width: min(100%, 320px);
  margin: 8px auto 0;
  color: var(--leaf);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.55;
  text-align: center;
}

.quote {
  display: grid;
  max-width: 320px;
  margin: 17px auto 0;
  padding: 15px 16px 16px;
  gap: 7px;
  border: 1px solid rgba(130, 108, 64, 0.16);
  border-radius: 18px;
  color: #334139;
  background: rgba(255, 255, 255, 0.52);
  line-height: 1.46;
}

.quote-title {
  color: var(--deep);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.2;
}

.quote-body {
  color: #2b3931;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.42;
}

.meter-grid {
  position: relative;
  display: grid;
  z-index: 2;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 15px 0;
}

.meter {
  min-height: 74px;
  padding: 11px 6px;
  border: 1px solid rgba(18, 50, 37, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  text-align: center;
}

.meter span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.meter strong {
  display: block;
  margin-top: 8px;
  color: var(--leaf);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0;
}

.primary-actions {
  position: relative;
  display: grid;
  z-index: 2;
  gap: 10px;
  margin-top: 14px;
}

.bird-sign.unrevealed ~ .primary-actions {
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
}

.bird-sign.revealed ~ .primary-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  opacity: 1;
  pointer-events: auto;
  max-height: 72px;
  margin-top: 24px;
  margin-bottom: 0;
  transition: opacity 280ms ease 180ms, max-height 320ms ease, margin-top 320ms ease;
}

.primary,
.secondary {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 17px;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.2;
  text-align: center;
  transition: transform 160ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--deep), var(--leaf));
  box-shadow: 0 12px 28px rgba(18, 50, 37, 0.22);
}

.primary:active,
.secondary:active,
.poster-save:active,
.detail-shot:active,
.filter-btn:active,
.tab:active {
  transform: translateY(1px) scale(0.99);
}

.primary:disabled {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(47, 111, 69, 0.45);
  box-shadow: none;
}

.secondary {
  border: 1px solid rgba(18, 50, 37, 0.12);
  color: var(--deep);
  background: rgba(255, 255, 255, 0.66);
}

.secondary:disabled {
  color: rgba(100, 113, 104, 0.72);
}

.button-icon {
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.home-note,
.guide-summary {
  margin-top: 16px;
  padding: 16px 16px 17px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 22px;
  background:
    var(--paper-texture),
    rgba(255, 255, 255, 0.66);
  background-size: 18px 18px, 100% 100%;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.home-note span,
.guide-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.home-note strong,
.guide-summary strong {
  color: var(--deep);
  font-size: 20px;
  font-weight: 950;
}

.home-note p,
.guide-summary p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.install-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  background:
    var(--paper-texture),
    rgba(255, 255, 255, 0.66);
  background-size: 18px 18px, 100% 100%;
  color: var(--deep);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.install-tip-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--deep), var(--leaf));
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
}

.install-tip p {
  margin: 0;
  color: rgba(18, 50, 37, 0.74);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.recovery-panel {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(18, 50, 37, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
}

.recovery-panel.is-offline {
  opacity: 0.72;
}

.recovery-panel.is-offline .recovery-code-row strong {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0;
}

.recovery-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.recovery-code-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.recovery-code-row strong {
  color: var(--deep);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.6px;
  overflow-wrap: anywhere;
  text-align: right;
}

.recovery-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.recovery-form input {
  min-width: 0;
  flex: 1;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.recovery-form input:focus-visible {
  border-color: var(--leaf);
  outline: 2px solid rgba(47, 111, 69, 0.16);
}

.recovery-form button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  color: #fff;
  background: var(--deep);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.recovery-form input:disabled,
.recovery-form button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.preview-tools {
  display: none;
  margin-top: 12px;
}

.preview-only {
  display: none;
}

.is-preview .preview-only {
  display: block;
}

.is-preview .preview-tools {
  display: block;
}

.preview-reset {
  width: 100%;
  min-height: 44px;
  border: 1px dashed rgba(18, 50, 37, 0.24);
  border-radius: 14px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 900;
}

/* Joyi品牌入口 */
.brand-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 14px 8px 10px;
  border: none;
  min-height: 38px;
  border: 1px solid rgba(18, 50, 37, 0.08);
  border-radius: 999px;
  color: var(--deep);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 243, 223, 0.72));
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  z-index: 0;
  overflow: hidden;
  isolation: isolate;
}
.brand-pill::before {
  content: none;
}
.brand-pill::after {
  content: "";
  position: absolute;
  inset: auto 12px 7px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(194, 170, 104, 0.58), transparent);
  z-index: -1;
}
.brand-pill:active {
  transform: scale(0.97);
  background: rgba(255, 255, 255, 0.85);
}
.brand-pill-icon {
  flex-shrink: 0;
  border-radius: 5px;
}
.brand-pill-arrow {
  flex-shrink: 0;
  color: var(--muted);
  opacity: 0.5;
  transition: opacity 200ms, transform 200ms;
}
.brand-pill:active .brand-pill-arrow {
  opacity: 1;
  transform: translateX(2px);
}

.icon-button {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 243, 223, 0.76));
  box-shadow: 0 10px 24px rgba(18, 50, 37, 0.09);
}

.icon-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.progress-track {
  height: 10px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(18, 50, 37, 0.1);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--leaf), var(--moss), var(--reed));
  transition: width 260ms ease;
}

.bird-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 2px;
}

.bird-tile {
  position: relative;
  min-height: 318px;
  padding: 12px 12px 14px;
  overflow: hidden;
  border: 1px solid rgba(130, 108, 64, 0.16);
  border-radius: 20px 20px 24px 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.56), transparent 58%),
    linear-gradient(180deg, rgba(255, 253, 241, 0.88), rgba(239, 233, 206, 0.72));
  box-shadow: 0 14px 32px rgba(18, 50, 37, 0.1);
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.bird-tile.unlocked:active {
  transform: translateY(1px);
  box-shadow: 0 10px 24px rgba(18, 50, 37, 0.1);
}

.bird-tile.locked {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.5), transparent 60%),
    linear-gradient(180deg, rgba(248, 251, 241, 0.78), rgba(224, 235, 218, 0.66));
}

.tile-topline {
  min-height: 36px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 8px;
}

.tile-topline span:first-child {
  display: inline-flex;
  min-width: 45px;
  min-height: 25px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid rgba(18, 50, 37, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
}

.tile-art {
  display: grid;
  height: 140px;
  margin: 8px 0 12px;
  overflow: hidden;
  place-items: center;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.62), transparent 58%);
}

.tile-art img {
  width: 80%;
  max-height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(18, 50, 37, 0.14));
}

.bird-tile.locked .tile-art img {
  opacity: 0.18;
  filter: grayscale(1) blur(1px);
  transform: scale(0.92);
}

.bird-tile.locked::after {
  position: absolute;
  inset: 62px 14px auto;
  height: 126px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0)),
    radial-gradient(ellipse, rgba(255, 255, 255, 0.72), transparent 70%);
  content: "";
  pointer-events: none;
}

.tile-title {
  position: relative;
  z-index: 1;
  min-height: 38px;
  padding: 0 4px;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.16;
  text-align: center;
}

.tile-look {
  position: relative;
  z-index: 1;
  min-height: 36px;
  margin-top: 6px;
  color: var(--leaf);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
}

.tile-copy {
  position: relative;
  z-index: 1;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.42;
  text-align: center;
}

.tile-habitat {
  position: relative;
  z-index: 1;
  margin-bottom: 6px;
  color: var(--deep);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.call-button {
  position: relative;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--deep), var(--leaf));
  border: 1px solid rgba(255, 255, 255, 0.32);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.call-ring {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  transform: rotate(-90deg);
}

.call-ring-bg {
  fill: none;
  stroke: rgba(138, 169, 107, 0.25);
  stroke-width: 2;
}

.call-ring-progress {
  fill: none;
  stroke: var(--moss);
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 100ms linear;
}

.call-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  position: relative;
  z-index: 1;
}

.call-button.playing {
  background: var(--leaf);
  animation: callPulse 900ms ease both;
}

.poster-head {
  min-height: 92px;
}

.poster-card {
  position: relative;
  max-width: 420px;
  min-height: 600px;
  margin: 0 auto;
  padding: 26px 24px 24px;
  overflow: hidden;
  border: 1px solid rgba(130, 108, 64, 0.2);
  border-radius: 10px 10px 30px 30px;
  background:
    radial-gradient(circle at 50% 31%, rgba(255, 255, 255, 0.62), transparent 30%),
    var(--paper-texture),
    linear-gradient(180deg, rgba(255, 253, 242, 0.88), rgba(239, 229, 200, 0.78));
  background-size: auto, 18px 18px, 100% 100%;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.poster-card::before {
  position: absolute;
  top: 30px;
  left: 50%;
  width: 560px;
  color: rgba(156, 44, 34, 0.08);
  content: "今日鸟签";
  font-size: 58px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  transform: translateX(-50%);
  white-space: nowrap;
}

.poster-brand,
.poster-date {
  position: relative;
  margin: 0;
  font-size: 13px;
  font-weight: 950;
}

.poster-brand {
  color: var(--cinnabar);
}

.poster-date {
  margin-top: 5px;
  color: var(--muted);
}

.poster-art {
  position: relative;
  display: grid;
  width: min(82vw, 300px);
  height: 260px;
  margin: 42px auto 18px;
  place-items: center;
}

.poster-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 22px 24px rgba(18, 50, 37, 0.18));
}

.poster-art img:not([src]),
.poster-art img[src=""] {
  display: none;
}

.poster-card h2,
.poster-look,
.poster-quote {
  position: relative;
  text-align: center;
}

.poster-card h2 {
  margin: 6px 0 0;
  font-size: 38px;
  font-weight: 950;
  line-height: 1.1;
}

.poster-look {
  margin: 8px 0 0;
  color: var(--leaf);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.45;
}

.poster-quote {
  display: grid;
  max-width: 328px;
  margin: 18px auto 0;
  padding: 16px 18px 17px;
  gap: 7px;
  border: 1px solid rgba(130, 108, 64, 0.15);
  border-radius: 18px;
  color: #39443d;
  background: rgba(255, 255, 255, 0.58);
  line-height: 1.48;
}

.poster-quote-title {
  color: var(--deep);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.2;
}

.poster-quote-body {
  color: #2b3931;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.42;
}

.poster-foot {
  position: relative;
  display: grid;
  grid-template-columns: auto 1px auto auto;
  min-height: 34px;
  align-items: center;
  justify-content: flex-start;
  column-gap: 10px;
  margin-top: 34px;
  padding-top: 14px;
  border-top: 1px solid rgba(130, 108, 64, 0.16);
  color: rgba(54, 73, 61, 0.78);
  letter-spacing: 0;
}

.poster-foot-brand {
  color: rgba(35, 61, 47, 0.82);
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.poster-foot-divider {
  width: 1px;
  height: 14px;
  border-radius: 999px;
  background: rgba(130, 108, 64, 0.22);
}

.poster-xhs-badge {
  display: block;
  width: 48px;
  height: 24px;
  object-fit: contain;
  border-radius: 999px;
  filter:
    saturate(0.9)
    drop-shadow(0 4px 8px rgba(156, 44, 34, 0.08));
}

.poster-xhs-account {
  color: rgba(89, 105, 94, 0.88);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.poster-save {
  position: relative;
  z-index: 6;
  display: flex;
  width: min(260px, calc(100vw - 96px));
  margin: 18px auto 0;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background:
    linear-gradient(135deg, rgba(18, 50, 37, 0.98), rgba(47, 111, 69, 0.96));
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.3px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -10px 16px rgba(0, 0, 0, 0.14),
    0 14px 30px rgba(7, 24, 16, 0.28);
  transition: transform 100ms ease, box-shadow 200ms ease;
}
.poster-save:active {
  transform: scale(0.96);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.poster-save:disabled {
  opacity: 0.55;
  box-shadow: none;
}

.tabbar {
  position: fixed;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: grid;
  width: min(342px, calc(100vw - 72px));
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 20px;
  background:
    var(--paper-texture),
    linear-gradient(180deg, rgba(255, 253, 242, 0.92), rgba(248, 243, 223, 0.86));
  background-size: 16px 16px, 100% 100%;
  box-shadow: 0 14px 34px rgba(18, 50, 37, 0.14);
  backdrop-filter: blur(18px);
}

.tab {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 950;
  transition: background 180ms ease, color 180ms ease, transform 160ms ease;
}

.tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--deep), var(--leaf));
}

body.is-poster-screen .tabbar {
  display: none;
}

body.is-home-revealed .tabbar {
  display: none;
}

/* Bird detail sheet */
.bird-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.bird-detail-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.08), transparent 30%),
    rgba(5, 13, 8, 0.66);
}

.detail-sheet {
  position: relative;
  width: min(100%, 430px);
  max-height: 88vh;
  padding: 34px 22px max(28px, env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 30px 30px 0 0;
  background:
    radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.48), transparent 36%),
    var(--paper-texture),
    linear-gradient(180deg, rgba(255, 253, 242, 0.985), rgba(239, 244, 229, 0.975));
  background-size: auto, 18px 18px, 100% 100%;
  box-shadow:
    0 -16px 64px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(18px);
  transition: transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.detail-sheet > * {
  position: relative;
  z-index: 1;
}

.bird-detail-modal.open .detail-sheet {
  transform: translateY(0);
}

.detail-sheet::before {
  position: absolute;
  z-index: 0;
  top: 22px;
  left: 50%;
  width: 520px;
  color: rgba(156, 44, 34, 0.055);
  content: "鸟签";
  font-size: 70px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
}

.detail-close {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 3;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(18, 50, 37, 0.08);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  transition: background 180ms ease, transform 160ms ease;
}

.detail-close svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.4;
}

.detail-close:active {
  transform: scale(0.96);
}

.detail-art {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 210px;
  max-height: 260px;
  margin: 0 auto 22px;
  overflow: hidden;
  place-items: center;
  padding: 12px 0 18px;
}

.detail-art::before {
  position: absolute;
  inset: 22px 42px 10px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.56), transparent 58%),
    radial-gradient(circle at 48% 52%, rgba(138, 169, 107, 0.1), transparent 70%);
  content: "";
}

.detail-art::after {
  position: absolute;
  right: 24%;
  bottom: 14px;
  left: 24%;
  height: 18px;
  border-radius: 999px;
  background: rgba(18, 50, 37, 0.11);
  filter: blur(12px);
  content: "";
}

.detail-art img {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 86%;
  max-height: 246px;
  object-fit: contain;
  animation: detail-img-in 500ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  filter: drop-shadow(0 16px 22px rgba(35, 40, 35, 0.14)) saturate(0.98);
}

@keyframes detail-img-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.detail-identity {
  margin: 0 0 16px;
  text-align: center;
}

.detail-rank {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.detail-sheet h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 32px;
  font-weight: 950;
  line-height: 1.15;
  text-align: center;
}

.detail-look {
  max-width: 300px;
  margin: 0 auto;
  color: var(--leaf);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
}

.detail-quote-card {
  position: relative;
  max-width: 316px;
  margin: 0 auto 16px;
  padding: 16px 20px;
  border: 1px solid rgba(130, 108, 64, 0.16);
  border-radius: 18px;
  color: #263a2e;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(249, 244, 226, 0.54)),
    var(--paper-texture);
  box-shadow: none;
  text-align: center;
}

.quote-kicker {
  display: block;
  margin: 0 0 8px;
  color: rgba(156, 44, 34, 0.56);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.16em;
  line-height: 1;
}

.detail-quote-card h3 {
  margin: 0 0 7px;
  color: var(--deep);
  font-size: 17px;
  font-weight: 950;
  line-height: 1.25;
}

.detail-quote-card p {
  margin: 0;
  color: #2d3b33;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.58;
}

.detail-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  max-width: 320px;
  margin: 0 auto 10px;
}

.detail-section-head span {
  color: var(--deep);
  font-size: 13px;
  font-weight: 950;
}

.detail-section-head small,
.detail-section-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-conservation-card,
.detail-habitat-card,
.detail-sound-card {
  margin: 0 0 16px;
}

.detail-conservation-card {
  padding: 0;
}

.conservation-grid {
  display: grid;
  max-width: 320px;
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.conservation-item {
  display: flex;
  min-width: 0;
  min-height: 58px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(130, 108, 64, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.conservation-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-align: center;
}

.conservation-item strong {
  max-width: 100%;
  color: var(--deep);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-align: center;
}

.status-badge {
  display: inline-flex;
  min-height: 26px;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
}

.status-safe {
  color: #155c32;
  background: rgba(101, 166, 106, 0.18);
}

.status-watch {
  color: #856015;
  background: rgba(217, 177, 77, 0.22);
}

.status-danger {
  color: #8d352e;
  background: rgba(156, 44, 34, 0.16);
}

.status-neutral {
  color: #51636d;
  background: rgba(111, 135, 146, 0.16);
}

.detail-habitat-card {
  max-width: 320px;
  margin-right: auto;
  margin-left: auto;
  padding: 0;
  text-align: center;
}

.detail-habitat-card strong {
  display: block;
  margin: 5px 0 5px;
  color: var(--deep);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.25;
}

.detail-habitat-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.detail-sound-card {
  padding: 0;
}

.detail-shot {
  display: flex;
  width: 100%;
  min-height: 52px;
  margin-top: 2px;
  padding: 15px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(135deg, var(--deep), var(--leaf));
  box-shadow: 0 10px 28px rgba(18, 50, 37, 0.24);
  cursor: pointer;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.02em;
  transition: transform 160ms ease, box-shadow 200ms ease;
}

.detail-export-wrap {
  position: fixed;
  top: 0;
  left: -10000px;
  z-index: -1;
  overflow: hidden;
  box-sizing: border-box;
  background: #fbfbf3;
  pointer-events: none;
}

.detail-export-sheet {
  width: 100%;
  max-height: none;
  height: auto;
  overflow: hidden;
  padding: 34px 22px 30px;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.48), transparent 36%),
    var(--paper-texture),
    linear-gradient(180deg, rgba(255, 253, 242, 0.985), rgba(239, 244, 229, 0.975));
  background-color: #fbfbf3;
  transform: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.poster-export-wrap,
.detail-export-wrap {
  position: fixed;
  top: 0;
  left: -10000px;
  z-index: -1;
  background: #fbfbf3;
}

.poster-export-card {
  width: 100%;
  max-width: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.poster-export-card .poster-foot {
  grid-template-columns: auto 1px auto auto;
  align-items: center;
}

.detail-export-sheet .detail-art img {
  animation: none;
  /* Neutralize transparent-edge color fringes in html2canvas exports. */
  filter: drop-shadow(0 12px 18px rgba(40, 40, 36, 0.1)) saturate(0.96);
}

.detail-export-sheet .pulse-play-btn,
.detail-export-sheet .pulse-label {
  display: none;
}


/* ── Pulse Ring Visualization ── */
.pulse-viz-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(238px, 74vw);
  height: min(238px, 74vw);
  margin: -8px auto 0;
}
.pulse-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.pulse-play-btn {
  position: relative;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(255,255,255,.36);
  border-radius: 50%;
  background: rgba(18,50,37,.82);
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.08) inset;
  transition: transform 200ms ease, background 200ms ease, box-shadow 200ms ease;
}
.pulse-play-btn:active {
  transform: scale(0.92);
}
.pulse-play-btn.is-playing {
  background: rgba(18,50,37,.72);
  border-color: rgba(255,255,255,.48);
  box-shadow: 0 2px 16px rgba(18,50,37,.18), 0 0 0 8px rgba(255,255,255,.12);
}
.pulse-play-icon, .pulse-pause-icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
.pulse-play-tri {
  transform-origin: center;
  transform: translateX(2px);
}
.pulse-label {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--deep);
  letter-spacing: .03em;
  text-align: center;
  pointer-events: none;
  transition: opacity 300ms ease;
  text-shadow: none;
}
.pulse-label.hidden {
  opacity: 0;
}
.detail-call-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: -10px auto 8px;
}

@media (max-width: 380px) {
  .pulse-viz-wrap {
    width: min(218px, 74vw);
    height: min(218px, 74vw);
  }
  .pulse-play-btn {
    width: 34px;
    height: 34px;
  }
  .pulse-play-icon, .pulse-pause-icon {
    width: 14px;
    height: 14px;
  }
  .detail-sheet {
    padding: 30px 18px 24px;
    border-radius: 24px 24px 0 0;
  }
  .detail-sheet h2 {
    font-size: 26px;
  }
  .detail-art {
    min-height: 198px;
    max-height: 246px;
    margin-bottom: 20px;
  }
  .detail-art img {
    max-width: 84%;
    max-height: 232px;
  }
  .detail-quote-card,
  .detail-conservation-card,
  .detail-habitat-card,
  .detail-sound-card {
    border-radius: 16px;
  }
  .conservation-item {
    min-height: 56px;
    padding: 9px;
  }
  .conservation-item strong {
    font-size: 14px;
  }
}

.detail-sheet .brand-pill{margin:10px auto 0}
body.has-modal{overflow:hidden}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(86px, calc(env(safe-area-inset-bottom) + 86px));
  z-index: 8;
  max-width: min(360px, calc(100vw - 40px));
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(18, 50, 37, 0.92);
  font-size: 13px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.error-state {
  margin-top: 20vh;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.error-state p:last-child {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.is-drawing .sign-back {
  animation: revealPulse 680ms ease both;
}

@keyframes unopenedHeroFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-0.15deg);
  }
  50% {
    transform: translateY(-5px) rotate(0.15deg);
  }
}

@keyframes unopenedAuraBreath {
  0%,
  100% {
    opacity: 0.54;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.86;
    transform: scale(1.04);
  }
}

@keyframes unopenedParticlesDrift {
  0%,
  100% {
    opacity: 0.45;
    transform: translateY(3px);
  }
  50% {
    opacity: 0.85;
    transform: translateY(-5px);
  }
}

@keyframes revealPulse {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(0.985) translateY(3px);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes callPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(47, 111, 69, 0.3);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(47, 111, 69, 0);
  }
}

/* Daily countdown */
.daily-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
}
.countdown-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.countdown-time {
  color: var(--deep);
  font-size: 22px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
}

/* Share poster entry button */
.poster-entry {
  display: flex;
  width: 100%;
  margin-top: 10px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px dashed rgba(18, 50, 37, 0.18);
  border-radius: 16px;
  color: var(--leaf);
  background: rgba(255, 255, 255, 0.46);
  font-size: 15px;
  font-weight: 900;
  transition: background 200ms, border-color 200ms, transform 160ms ease;
}

.bird-sign.revealed ~ .primary-actions .poster-entry {
  margin-top: 0;
}
.poster-entry:hover,
.poster-entry:active {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--leaf);
}

/* NFC simulator (dev only) */
.nfc-simulator {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}
.nfc-sim-input {
  flex: 1;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-family: inherit;
}

.nfc-sim-input:focus-visible {
  border-color: var(--leaf);
}
.preview-unlock-all {
  margin-top: 6px;
  background: var(--leaf);
  color: #fff;
}
.preview-unlock-all:hover { background: var(--deep); }

.nfc-sim-btn {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--deep);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* Guide filters */
.guide-filters {
  display: flex;
  gap: 8px;
  margin: 16px 0 18px;
  flex-wrap: wrap;
}
.filter-btn {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  transition: all 180ms ease;
}
.filter-btn.active {
  background: var(--deep);
  color: #fff;
  border-color: var(--deep);
}
.filter-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
}

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


@media (max-width: 380px) {
  .app-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  h1 {
    font-size: 31px;
  }

  .draw-stage {
    min-height: auto;
    padding: 15px;
  }

  .bird-sign {
    min-height: 484px;
  }

  .bird-sign.revealed {
    min-height: 0;
  }

  .sign-back {
    padding-top: 44px;
  }

  .unopened-hero-button {
    width: min(80vw, 300px);
    margin-bottom: 36px;
  }

  .seal-title {
    margin-top: 10px;
    font-size: 22px;
  }

  .seal-copy {
    max-width: 260px;
    font-size: 14px;
  }

  .opened-bird-hero {
    height: 220px;
    margin-bottom: 24px;
  }

  .opened-bird-hero img {
    max-width: 74%;
    max-height: 172px;
  }

  .daily-name,
  .poster-card h2 {
    font-size: 34px;
  }

  .quote,
  .poster-quote {
    font-size: 15px;
  }

  .bird-grid {
    gap: 10px;
  }

  .bird-tile {
    min-height: 280px;
    padding: 11px;
  }

  .recovery-form {
    display: grid;
  }

  .recovery-form button {
    width: 100%;
  }

  .tile-art {
    height: 110px;
  }

  .tile-art img {
    max-height: 100px;
  }
}
