:root {
  --bg: #e8f1e9;
  --ink: #142019;
  --muted: #647168;
  --deep: #123225;
  --leaf: #2f6f45;
  --moss: #8aa96b;
  --reed: #c2aa68;
  --warm: #f5cf1b;
  --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%;
  width: 100%;
  background: #1a1a1a;
}

body {
  width: 100%;
  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,
[role="button"]:focus-visible,
input:focus-visible,
textarea:focus-visible,
select: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')),
    url('./assets/backgrounds/forest-bg-option-6-lqip.jpg');
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-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;
}

.site-compliance {
  margin: 28px auto 0;
  padding: 12px 8px 0;
  text-align: center;
}

.site-compliance a {
  color: rgba(244, 240, 218, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(6, 24, 15, 0.42);
}

.site-compliance a:hover,
.site-compliance a:focus-visible {
  color: #fffdf0;
}

.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.86);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 1px;
  text-shadow: 0 1px 6px rgba(18, 50, 37, 0.42), 0 0 1px rgba(18, 50, 37, 0.62);
}

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;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.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 {
  position: relative;
  display: grid;
  max-width: 320px;
  margin: 17px auto 0;
  padding: 16px 17px 17px;
  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;
}

.bird-sign.revealed .quote {
  isolation: isolate;
  cursor: pointer;
  transform: perspective(720px) rotateX(1.2deg) translateY(-1px);
  transform-origin: 50% 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 252, 239, 0.74)),
    var(--paper-texture);
  background-size: 100% 100%, 18px 18px;
  border-color: rgba(130, 108, 64, 0.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82) inset,
    0 -10px 18px rgba(130, 108, 64, 0.08) inset,
    0 16px 24px rgba(18, 50, 37, 0.12),
    0 4px 0 rgba(130, 108, 64, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.bird-sign.revealed .quote::before {
  position: absolute;
  inset: 1px 1px auto;
  height: 38%;
  border-radius: 17px 17px 10px 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.46), transparent);
  content: "";
  opacity: 0.72;
  pointer-events: none;
  z-index: -1;
}

.bird-sign.revealed .quote::after {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 17px;
  height: 17px;
  border-radius: 2px 10px 2px 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(194, 170, 104, 0.26));
  box-shadow: -2px 2px 5px rgba(130, 108, 64, 0.12);
  content: "";
  opacity: 0.72;
  pointer-events: none;
}

.bird-sign.revealed:active .quote {
  transform: perspective(720px) rotateX(0deg) translateY(1px) scale(0.992);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.78) inset,
    0 -7px 14px rgba(130, 108, 64, 0.07) inset,
    0 8px 16px rgba(18, 50, 37, 0.1),
    0 2px 0 rgba(130, 108, 64, 0.08);
}

.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;
}

.guide-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

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

.guide-summary strong {
  min-width: 76px;
  text-align: right;
  line-height: 1;
  white-space: nowrap;
}

.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;
  width: 100%;
  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);
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.install-tip:active {
  transform: translateY(1px) scale(0.99);
}

.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;
}

.install-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(6, 19, 12, 0.36);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

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

.install-sheet {
  position: relative;
  width: min(100%, 420px);
  padding: 24px 20px 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  background:
    var(--paper-texture),
    rgba(246, 251, 236, 0.94);
  background-size: 18px 18px, 100% 100%;
  box-shadow: 0 24px 72px rgba(6, 19, 12, 0.28);
  transform: translateY(18px);
  transition: transform 220ms ease;
  backdrop-filter: blur(18px);
}

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

.install-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 8px 18px rgba(18, 50, 37, 0.1);
}

.install-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.5;
}

.install-kicker {
  margin: 0 0 7px;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 950;
}

.install-sheet h2 {
  margin: 0;
  max-width: 270px;
  color: var(--deep);
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.15;
}

.install-copy {
  margin: 10px 42px 0 0;
  color: rgba(18, 50, 37, 0.68);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.55;
}

.install-steps {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.install-steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: start;
  padding: 11px 12px;
  border: 1px solid rgba(18, 50, 37, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.52);
}

.install-steps span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--deep);
  font-size: 13px;
  font-weight: 950;
}

.install-steps p {
  margin: 0;
  color: rgba(18, 50, 37, 0.78);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.45;
}

.install-browser-note {
  margin: 13px 0 0;
  color: rgba(18, 50, 37, 0.62);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.install-native,
.install-ok {
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 950;
}

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

.install-ok {
  margin-top: 10px;
  border: 1px solid rgba(18, 50, 37, 0.1);
  color: var(--deep);
  background: rgba(255, 255, 255, 0.64);
}

.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;
}

/* Bird log prototype */
.birdlog-head,
.profile-head {
  min-height: 118px;
  padding-top: 4px;
}

.birdlog-head h1,
.profile-head h1 {
  margin: 4px 0 0;
  color: #fffdf2;
  font-size: 42px;
  font-weight: 950;
  line-height: 1.04;
  text-shadow: 0 18px 34px rgba(2, 12, 7, 0.26);
}

.birdlog-summary,
.birdlog-search-card,
.birdlog-records-card,
.profile-card,
.profile-data-card,
.profile-link-card,
.profile-privacy-card,
.profile-actions-card {
  position: relative;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  background:
    var(--paper-texture),
    linear-gradient(180deg, rgba(255, 253, 242, 0.9), rgba(248, 243, 223, 0.78));
  background-size: 18px 18px, 100% 100%;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.birdlog-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.birdlog-stat-card {
  min-height: 86px;
  padding: 13px 14px;
  border: 1px solid rgba(130, 108, 64, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
}

.birdlog-stat-card span,
.birdlog-section-head span,
.selected-species-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.birdlog-stat-card strong {
  display: block;
  margin-top: 8px;
  color: var(--deep);
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
}

.profile-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 14px;
}

.profile-avatar {
  display: grid;
  position: relative;
  width: 76px;
  height: 76px;
  place-items: center;
  overflow: hidden;
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.38), transparent 28%),
    linear-gradient(135deg, var(--deep), var(--leaf));
  font-size: 30px;
  font-weight: 950;
  box-shadow: 0 16px 32px rgba(18, 50, 37, 0.18);
}

.default-bird-avatar {
  --avatar-bg-a: #f8d348;
  --avatar-bg-b: #ddebc1;
  --avatar-body: #d99b35;
  --avatar-belly: #fff7dc;
  --avatar-wing: #385945;
  --avatar-face: #17392c;
  --avatar-beak: #ef8a27;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.58), transparent 22%),
    linear-gradient(145deg, var(--avatar-bg-a), var(--avatar-bg-b));
}

.avatar-bird-tail,
.avatar-bird-body,
.avatar-bird-wing,
.avatar-bird-face,
.avatar-bird-eye,
.avatar-bird-beak {
  position: absolute;
  display: block;
}

.avatar-bird-tail {
  width: 28px;
  height: 18px;
  left: 10px;
  bottom: 19px;
  border-radius: 70% 18% 70% 22%;
  background: var(--avatar-wing);
  transform: rotate(-25deg);
  opacity: 0.95;
}

.avatar-bird-body {
  width: 46px;
  height: 40px;
  left: 19px;
  bottom: 14px;
  border-radius: 55% 48% 50% 48%;
  background: var(--avatar-body);
  box-shadow: inset -10px -8px 0 var(--avatar-belly);
}

.avatar-bird-wing {
  width: 24px;
  height: 22px;
  left: 25px;
  bottom: 20px;
  border-radius: 70% 18% 70% 28%;
  background: var(--avatar-wing);
  transform: rotate(-16deg);
  opacity: 0.82;
}

.avatar-bird-face {
  width: 28px;
  height: 27px;
  right: 15px;
  top: 20px;
  border-radius: 58% 52% 44% 54%;
  background: var(--avatar-face);
  box-shadow: inset 8px -8px 0 rgba(255, 255, 255, 0.24);
}

.avatar-bird-eye {
  width: 5px;
  height: 5px;
  right: 23px;
  top: 29px;
  border-radius: 50%;
  background: #071b16;
  box-shadow: 1px -1px 0 rgba(255, 255, 255, 0.86);
}

.avatar-bird-beak {
  width: 12px;
  height: 8px;
  right: 8px;
  top: 34px;
  border-radius: 20% 80% 80% 20%;
  background: var(--avatar-beak);
  clip-path: polygon(0 12%, 100% 50%, 0 88%);
}

.profile-avatar-bird-2 {
  --avatar-bg-a: #d7edf1;
  --avatar-bg-b: #f8df8a;
  --avatar-body: #f2f1e7;
  --avatar-belly: #ffd05e;
  --avatar-wing: #4e6f83;
  --avatar-face: #132d38;
  --avatar-beak: #e95731;
}

.profile-avatar-bird-3 {
  --avatar-bg-a: #f2cfb4;
  --avatar-bg-b: #e8f0cf;
  --avatar-body: #6b5643;
  --avatar-belly: #f5e1c0;
  --avatar-wing: #2f332e;
  --avatar-face: #ece4d7;
  --avatar-beak: #d7772b;
}

.profile-avatar-bird-4 {
  --avatar-bg-a: #c9ead3;
  --avatar-bg-b: #f9e66b;
  --avatar-body: #6ea16b;
  --avatar-belly: #f7f2d9;
  --avatar-wing: #264a38;
  --avatar-face: #f4f7e7;
  --avatar-beak: #d6532e;
}

.profile-avatar-bird-5 {
  --avatar-bg-a: #f5d7de;
  --avatar-bg-b: #d8ead8;
  --avatar-body: #e26c67;
  --avatar-belly: #fff0dd;
  --avatar-wing: #633b63;
  --avatar-face: #3b2749;
  --avatar-beak: #ef9b2d;
}

.profile-avatar-bird-6 {
  --avatar-bg-a: #cfe1f3;
  --avatar-bg-b: #f5e7b1;
  --avatar-body: #384f68;
  --avatar-belly: #f1f5ef;
  --avatar-wing: #1e2d3a;
  --avatar-face: #dfe8ec;
  --avatar-beak: #f0a13a;
}

.profile-avatar-bird-7 {
  --avatar-bg-a: #f0d27c;
  --avatar-bg-b: #d1e5c4;
  --avatar-body: #8d6b3f;
  --avatar-belly: #ead8ab;
  --avatar-wing: #553f28;
  --avatar-face: #211b17;
  --avatar-beak: #e6a23b;
}

.profile-avatar-bird-8 {
  --avatar-bg-a: #d6f0e8;
  --avatar-bg-b: #f5d29c;
  --avatar-body: #f5faf4;
  --avatar-belly: #d8e7df;
  --avatar-wing: #748782;
  --avatar-face: #ffffff;
  --avatar-beak: #e26135;
}

.profile-avatar-bird-9 {
  --avatar-bg-a: #f0d8ba;
  --avatar-bg-b: #cce9c9;
  --avatar-body: #a85433;
  --avatar-belly: #f7ede0;
  --avatar-wing: #5a3b32;
  --avatar-face: #2d2320;
  --avatar-beak: #d47a30;
}

.profile-avatar-bird-10 {
  --avatar-bg-a: #cbe6f6;
  --avatar-bg-b: #e7e8bf;
  --avatar-body: #2f8aa1;
  --avatar-belly: #f5f8ec;
  --avatar-wing: #17586c;
  --avatar-face: #21404e;
  --avatar-beak: #dd7633;
}

.profile-avatar-bird-11 {
  --avatar-bg-a: #f7df6d;
  --avatar-bg-b: #cddfc1;
  --avatar-body: #111f1a;
  --avatar-belly: #f7f0d9;
  --avatar-wing: #354138;
  --avatar-face: #ffffff;
  --avatar-beak: #da622b;
}

.profile-avatar-bird-12 {
  --avatar-bg-a: #e8dac0;
  --avatar-bg-b: #cce5ce;
  --avatar-body: #7c8b57;
  --avatar-belly: #f0e2c5;
  --avatar-wing: #4e5c39;
  --avatar-face: #2f3a25;
  --avatar-beak: #d18a35;
}

.profile-avatar-bird-13 {
  --avatar-bg-a: #f4c6aa;
  --avatar-bg-b: #ddecc8;
  --avatar-body: #222c2f;
  --avatar-belly: #efefe8;
  --avatar-wing: #11191d;
  --avatar-face: #9e4b32;
  --avatar-beak: #d58936;
}

.profile-avatar-bird-14 {
  --avatar-bg-a: #d9eac3;
  --avatar-bg-b: #f3d47a;
  --avatar-body: #c9d56b;
  --avatar-belly: #f7f2cf;
  --avatar-wing: #556f34;
  --avatar-face: #d7e054;
  --avatar-beak: #d65c2d;
}

.profile-avatar.is-guest {
  color: var(--deep);
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.55), transparent 30%),
    linear-gradient(135deg, rgba(245, 207, 27, 0.9), rgba(239, 229, 200, 0.95));
}

.profile-avatar.has-image {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-main span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.profile-main h2 {
  margin: 5px 0 0;
  color: var(--deep);
  font-size: 24px;
  font-weight: 950;
  line-height: 1.1;
}

.profile-main small {
  display: inline-flex;
  margin-top: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--leaf);
  background: rgba(138, 169, 107, 0.15);
  font-size: 12px;
  font-weight: 900;
}

.profile-main p,
.profile-data-note {
  margin: 8px 0 0;
  color: #435145;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.48;
}

.profile-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-data-grid div {
  min-height: 86px;
  padding: 13px 14px;
  border: 1px solid rgba(130, 108, 64, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
}

.profile-data-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.profile-data-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--deep);
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
}

.profile-actions-card {
  display: grid;
  gap: 10px;
}

.profile-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.profile-link-button {
  display: grid;
  min-height: 78px;
  align-content: center;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid rgba(130, 108, 64, 0.16);
  border-radius: 18px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.58);
  text-align: left;
}

.profile-link-button span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.profile-link-button strong {
  font-size: 16px;
  font-weight: 950;
  line-height: 1.18;
}

.profile-primary-action,
.profile-secondary-action {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 950;
}

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

.profile-primary-action:disabled {
  cursor: wait;
  opacity: 0.68;
}

.profile-secondary-action {
  color: var(--leaf);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(18, 50, 37, 0.12);
}

.profile-danger-action {
  color: #8a2f2f;
  background: rgba(255, 246, 240, 0.82);
  border-color: rgba(160, 72, 58, 0.2);
}

.birdlog-add-button,
.birdlog-save-button,
.species-file-record,
.detail-record-button {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--deep), var(--leaf));
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(18, 50, 37, 0.22);
}

.birdlog-add-button {
  grid-column: 1 / -1;
}

.birdlog-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.birdlog-section-head strong {
  display: block;
  margin-top: 4px;
  color: var(--deep);
  font-size: 24px;
  font-weight: 950;
  line-height: 1.05;
}

.birdlog-section-head small {
  max-width: 122px;
  color: rgba(100, 113, 104, 0.8);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
}

.birdlog-text-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(18, 50, 37, 0.12);
  border-radius: 999px;
  color: var(--leaf);
  background: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  font-weight: 900;
}

.species-search-field {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(18, 50, 37, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.species-search-field svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--leaf);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.species-search-field input,
.sighting-form input,
.sighting-form textarea,
.login-form input,
.profile-edit-form input,
.species-feedback-form input,
.species-feedback-form textarea,
.species-feedback-form select,
.copy-idea-form input,
.copy-idea-form textarea {
  width: 100%;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 16px;
  outline: none;
}

.species-search-field input::placeholder,
.sighting-form input::placeholder,
.sighting-form textarea::placeholder,
.login-form input::placeholder,
.profile-edit-form input::placeholder,
.species-feedback-form input::placeholder,
.species-feedback-form textarea::placeholder,
.copy-idea-form input::placeholder,
.copy-idea-form textarea::placeholder {
  color: rgba(100, 113, 104, 0.72);
}

.species-results {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.species-result-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(130, 108, 64, 0.15);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 207, 27, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 251, 235, 0.72));
  box-shadow: 0 12px 26px rgba(18, 50, 37, 0.07);
}

.species-result-main {
  min-width: 0;
}

.species-photo {
  position: relative;
  width: 92px;
  height: 112px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 20px;
  background: rgba(138, 169, 107, 0.16);
  box-shadow:
    0 14px 24px rgba(18, 50, 37, 0.12),
    inset 0 0 0 1px rgba(18, 50, 37, 0.04);
}

.species-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, transparent 54%, rgba(10, 21, 14, 0.26)),
    radial-gradient(circle at 28% 16%, rgba(255, 255, 255, 0.24), transparent 28%);
  pointer-events: none;
}

.species-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.species-result-card.is-unknown {
  border-color: rgba(156, 44, 34, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 251, 230, 0.86), rgba(246, 222, 161, 0.5));
}

.species-feather-wrap {
  --feather-base: #d8cfaa;
  --feather-tip: #f5cf1b;
  --feather-accent: #8aa96b;
  position: relative;
  width: 54px;
  height: 104px;
  align-self: flex-start;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.55), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(245, 239, 210, 0.2));
}

.species-feather {
  position: relative;
  display: block;
  width: 34px;
  height: 92px;
  transform: rotate(-8deg);
  filter: drop-shadow(0 12px 14px rgba(18, 50, 37, 0.14));
}

.species-feather::before,
.species-feather::after {
  position: absolute;
  top: 2px;
  bottom: 8px;
  width: 19px;
  content: "";
  background:
    linear-gradient(180deg, var(--feather-tip), var(--feather-base) 46%, var(--feather-accent)),
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.22) 0 3px, rgba(20, 32, 25, 0.05) 4px 5px);
  background-blend-mode: normal, soft-light;
}

.species-feather::before {
  left: 1px;
  border-radius: 95% 16% 62% 72%;
  clip-path: polygon(100% 0, 76% 4%, 48% 12%, 24% 25%, 8% 43%, 0 62%, 13% 78%, 48% 92%, 100% 100%);
}

.species-feather::after {
  right: 1px;
  border-radius: 16% 95% 72% 62%;
  clip-path: polygon(0 0, 28% 4%, 56% 12%, 80% 25%, 94% 43%, 100% 62%, 86% 79%, 52% 92%, 0 100%);
  opacity: 0.9;
}

.feather-shaft {
  position: absolute;
  top: 4px;
  left: 50%;
  z-index: 2;
  width: 3px;
  height: 92px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(80, 68, 42, 0.58));
  transform: translateX(-50%) rotate(2deg);
  transform-origin: top center;
  box-shadow: 0 0 0 1px rgba(20, 32, 25, 0.06);
}

.species-result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.species-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.species-feedback-link {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 0 2px;
  color: rgba(100, 113, 104, 0.7);
  font-size: 12px;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: rgba(100, 113, 104, 0.26);
  text-underline-offset: 3px;
}

.species-result-card h2 {
  margin: 3px 0 0;
  color: var(--deep);
  font-size: 21px;
  font-weight: 950;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.species-en,
.species-scientific,
.species-feature,
.sighting-place {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.species-en,
.species-scientific {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.species-scientific {
  margin-top: 1px;
  color: rgba(100, 113, 104, 0.82);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-style: italic;
  font-weight: 600;
}

.species-feature {
  color: #435145;
  font-weight: 650;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.species-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.species-tags span {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--leaf);
  background: rgba(138, 169, 107, 0.16);
  font-size: 12px;
  font-weight: 900;
}

.species-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.species-actions button {
  min-height: 36px;
  border: 1px solid rgba(18, 50, 37, 0.12);
  border-radius: 999px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 950;
}

.species-actions button[data-action="record"] {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--deep), var(--leaf));
}

.species-empty,
.sightings-empty,
.guide-empty-note {
  padding: 18px;
  border: 1px dashed rgba(130, 108, 64, 0.24);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.42);
  text-align: center;
}

.species-empty strong,
.sightings-empty strong,
.guide-empty-note strong {
  color: var(--deep);
  font-size: 17px;
  font-weight: 950;
}

.species-empty p,
.sightings-empty p,
.guide-empty-note p {
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.sightings-empty button {
  min-height: 36px;
  margin-top: 12px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fffdf2;
  background: var(--leaf);
  font-size: 13px;
  font-weight: 950;
}

.guide-empty-note {
  grid-column: 1 / -1;
}

.selected-species-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
}

.sighting-form-modal,
.all-sightings-modal,
.login-modal,
.profile-edit-modal,
.species-feedback-modal,
.copy-idea-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.copy-idea-modal {
  z-index: 5000;
}

.sighting-form-modal {
  z-index: 1002;
}

.sighting-form-modal.open,
.all-sightings-modal.open,
.login-modal.open,
.profile-edit-modal.open,
.species-feedback-modal.open,
.copy-idea-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.sighting-form-backdrop,
.all-sightings-backdrop,
.login-backdrop,
.profile-edit-backdrop,
.species-feedback-backdrop,
.copy-idea-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 16, 10, 0.44);
  backdrop-filter: blur(8px);
}

.sighting-form-sheet,
.all-sightings-sheet,
.login-sheet,
.profile-edit-sheet,
.species-feedback-sheet,
.copy-idea-sheet {
  position: relative;
  width: min(480px, 100%);
  max-height: min(86vh, 720px);
  padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
  overflow-y: auto;
  border-radius: 30px 30px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background:
    var(--paper-texture),
    linear-gradient(180deg, #fffdf2, #efe5c8);
  background-size: 18px 18px, 100% 100%;
  box-shadow: 0 -24px 80px rgba(4, 15, 9, 0.34);
  transform: translateY(18px);
  transition: transform 240ms ease;
}

.copy-idea-sheet {
  background: linear-gradient(180deg, #fffdf2 0%, #efe5c8 100%);
  background-color: #fffdf2;
}

.sighting-form-modal.open .sighting-form-sheet,
.all-sightings-modal.open .all-sightings-sheet,
.login-modal.open .login-sheet,
.profile-edit-modal.open .profile-edit-sheet,
.species-feedback-modal.open .species-feedback-sheet,
.copy-idea-modal.open .copy-idea-sheet {
  transform: translateY(0);
}

.selected-species-photo {
  width: 74px;
  height: 74px;
  border-radius: 18px;
}

.selected-species-feather {
  width: 54px;
  height: 72px;
}

.selected-species-feather .species-feather {
  transform: scale(0.72) rotate(-8deg);
}

.selected-species-card strong {
  display: block;
  margin-top: 3px;
  color: var(--deep);
  font-size: 22px;
  font-weight: 950;
}

.selected-species-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.sighting-form,
.login-form,
.profile-edit-form,
.species-feedback-form,
.copy-idea-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.sighting-form label,
.login-form label,
.profile-edit-form label,
.species-feedback-form label,
.copy-idea-form label,
.sighting-field {
  display: grid;
  gap: 7px;
  padding: 12px 14px;
  border: 1px solid rgba(18, 50, 37, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.sighting-form label span,
.login-form label span,
.profile-edit-form label span,
.species-feedback-form label span,
.copy-idea-form label span,
.sighting-field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.login-intro,
.login-status,
.profile-edit-status,
.species-feedback-intro,
.species-feedback-status,
.copy-idea-intro,
.copy-idea-status {
  margin: 10px 0 0;
  color: #435145;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.48;
}

.login-code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}

.login-code-button {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--leaf);
  background: rgba(138, 169, 107, 0.16);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.login-status {
  min-height: 20px;
  color: rgba(100, 113, 104, 0.9);
}

.login-reset-button {
  justify-self: center;
  min-height: 34px;
  padding: 0 10px;
  color: rgba(13, 63, 45, 0.72);
  background: transparent;
  font-size: 13px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.login-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(18, 50, 37, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.54);
}

.login-mode-tabs button {
  min-height: 38px;
  border-radius: 14px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 950;
}

.login-mode-tabs button.active {
  color: var(--deep);
  background: var(--warm);
  box-shadow: 0 8px 18px rgba(181, 150, 64, 0.18);
}

.login-consent-row {
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 10px;
}

.login-consent-row input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--leaf);
}

.login-consent-row span {
  color: #435145;
  font-size: 12px;
  line-height: 1.45;
}

.profile-avatar-editor {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(18, 50, 37, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.profile-avatar-editor p {
  margin: 0;
  color: rgba(67, 81, 69, 0.88);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.profile-avatar-preview {
  width: 84px;
  height: 84px;
}

.profile-edit-status {
  min-height: 20px;
  color: rgba(100, 113, 104, 0.9);
}

.species-feedback-status {
  min-height: 20px;
  color: rgba(100, 113, 104, 0.9);
}

.location-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}

.location-detect-button {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--leaf);
  background: rgba(138, 169, 107, 0.16);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.location-detect-button:disabled {
  opacity: 0.58;
}

.location-detect-status {
  min-height: 16px;
  margin: 0;
  color: rgba(100, 113, 104, 0.82);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}

.sighting-form textarea,
.species-feedback-form textarea,
.copy-idea-form textarea {
  min-height: 86px;
  resize: vertical;
  line-height: 1.5;
}

.species-feedback-form select {
  appearance: none;
  min-height: 42px;
  padding: 0 34px 0 12px;
  border-radius: 14px;
  color: var(--deep);
  background:
    linear-gradient(45deg, transparent 50%, rgba(18, 50, 37, 0.66) 50%) calc(100% - 18px) 18px / 6px 6px no-repeat,
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 251, 235, 0.66));
  font-weight: 850;
}

.sightings-list {
  display: grid;
  gap: 10px;
}

.all-sightings-entry-button {
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  border: 1px solid rgba(18, 50, 37, 0.12);
  border-radius: 16px;
  color: rgba(18, 50, 37, 0.78);
  background: rgba(255, 255, 255, 0.46);
  font-size: 13px;
  font-weight: 900;
}

.all-sightings-entry-button[hidden] {
  display: none;
}

.all-sightings-sheet {
  display: flex;
  flex-direction: column;
  max-height: min(88vh, 760px);
}

.all-sightings-search {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding: 0 13px;
  border: 1px solid rgba(18, 50, 37, 0.1);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.62);
}

.all-sightings-search svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--leaf);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.all-sightings-search input {
  width: 100%;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 16px;
  outline: none;
}

.all-sightings-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
  padding: 5px;
  border: 1px solid rgba(18, 50, 37, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
}

.all-sightings-tabs button {
  min-height: 38px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 950;
}

.all-sightings-tabs button.active {
  color: var(--deep);
  background: var(--warm);
  box-shadow: 0 8px 18px rgba(181, 150, 64, 0.16);
}

.all-sightings-summary {
  margin: 10px 2px 8px;
  color: rgba(67, 81, 69, 0.78);
  font-size: 12px;
  font-weight: 850;
}

.all-sightings-content {
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.species-sightings-list {
  display: grid;
  gap: 10px;
}

.species-sighting-card {
  display: grid;
  width: 100%;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  text-align: left;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(130, 108, 64, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
}

.species-sighting-card:active {
  transform: scale(0.99);
}

.species-sighting-card .species-sighting-thumb {
  width: 76px;
  height: 76px;
  margin: 0;
  border-radius: 18px;
}

.species-sighting-body {
  min-width: 0;
}

.species-sighting-body strong {
  color: var(--deep);
  font-size: 19px;
  font-weight: 950;
}

.species-sighting-body span {
  flex: 0 0 auto;
  color: var(--leaf);
  font-size: 12px;
  font-weight: 950;
}

.species-sighting-body p {
  margin: 6px 0 0;
  color: #435145;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.species-sighting-body small {
  display: block;
  margin-top: 5px;
  color: rgba(67, 81, 69, 0.68);
  font-size: 12px;
  font-weight: 850;
}

.species-first-added {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(67, 81, 69, 0.72);
}

.species-first-added span,
.sighting-first-added span {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 0 8px;
  border-radius: 999px;
  color: #16432f;
  background: rgba(226, 237, 197, 0.86);
  border: 1px solid rgba(47, 111, 69, 0.14);
  font-size: 11px;
  font-weight: 950;
}

.species-history-head {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.species-history-head > button {
  justify-self: start;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  color: rgba(18, 50, 37, 0.78);
  background: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  font-weight: 950;
}

.species-history-head > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(130, 108, 64, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
}

.species-history-thumb {
  width: 72px;
  height: 72px;
  margin: 0;
  border-radius: 17px;
}

.species-history-head strong {
  color: var(--deep);
  font-size: 22px;
  font-weight: 950;
}

.species-history-head p {
  margin: 4px 0 0;
  color: rgba(67, 81, 69, 0.76);
  font-size: 13px;
  font-weight: 800;
}

.species-history-list {
  padding-bottom: 8px;
}

.sighting-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(130, 108, 64, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
}

.sighting-card .sighting-thumb {
  width: 72px;
  height: 72px;
  margin: 0;
  border-radius: 17px;
}

.sighting-card .species-feather-wrap.sighting-thumb {
  display: grid;
  place-items: center;
  background: rgba(245, 207, 27, 0.34);
}

.sighting-body {
  min-width: 0;
}

.sighting-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.sighting-title-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.sighting-body strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--deep);
  font-size: 19px;
  font-weight: 950;
}

.sighting-title-row time {
  flex: 0 0 auto;
  color: rgba(67, 81, 69, 0.68);
  font-size: 12px;
  font-weight: 900;
}

.sighting-edit-button,
.sighting-delete-button {
  min-height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  color: rgba(67, 81, 69, 0.58);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(130, 108, 64, 0.12);
  font-size: 11px;
  font-weight: 850;
}

.sighting-edit-button {
  color: rgba(22, 67, 47, 0.7);
  background: rgba(226, 237, 197, 0.46);
  border-color: rgba(47, 111, 69, 0.13);
}

.sighting-edit-button:active,
.sighting-delete-button:active {
  transform: scale(0.96);
}

.sighting-edit-button:focus-visible,
.sighting-delete-button:focus-visible {
  outline: 2px solid rgba(47, 111, 69, 0.36);
  outline-offset: 2px;
}

.sighting-body p {
  margin: 6px 0 0;
  color: #435145;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.sighting-first-added {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(67, 81, 69, 0.78);
  font-size: 12px;
  font-weight: 850;
}

.sighting-card.is-first-added {
  border-color: rgba(47, 111, 69, 0.2);
  background: rgba(250, 253, 246, 0.76);
}

@media (max-width: 380px) {
  .sighting-card {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 8px;
  }

  .sighting-card .sighting-thumb {
    width: 62px;
    height: 62px;
    border-radius: 15px;
  }
}

.species-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;
}

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

.species-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 16, 10, 0.48);
  backdrop-filter: blur(9px);
}

.species-detail-sheet {
  position: relative;
  width: min(480px, 100%);
  max-height: min(86vh, 760px);
  padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
  overflow-y: auto;
  border-radius: 30px 30px 0 0;
  background:
    var(--paper-texture),
    linear-gradient(180deg, rgba(255, 253, 242, 0.98), rgba(239, 229, 200, 0.96));
  background-size: 18px 18px, 100% 100%;
  box-shadow: 0 -24px 80px rgba(4, 15, 9, 0.34);
  transform: translateY(18px);
  transition: transform 260ms ease;
}

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

.species-file-cover {
  position: relative;
  margin: 30px 0 14px;
}

.species-file-photo {
  width: 100%;
  height: 220px;
  border-radius: 22px;
  box-shadow: 0 18px 34px rgba(18, 50, 37, 0.15);
}

.species-file-photo img {
  object-position: center 36%;
}

.species-file-hero {
  position: relative;
  z-index: 1;
  width: calc(100% - 28px);
  margin: -42px 14px 0;
  padding: 15px 16px 16px;
  border: 1px solid rgba(47, 111, 69, 0.16);
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 0%, rgba(245, 207, 27, 0.24), transparent 42%),
    linear-gradient(135deg, rgba(255, 253, 239, 0.94), rgba(239, 229, 200, 0.86));
  box-shadow: 0 14px 26px rgba(18, 50, 37, 0.12);
  backdrop-filter: blur(10px);
}

.species-file-label {
  display: inline-flex;
  padding: 3px 12px;
  border: 1px solid rgba(47, 111, 69, 0.22);
  border-radius: 999px;
  color: rgba(18, 50, 37, 0.72);
  background: rgba(245, 207, 27, 0.18);
  font-size: 12px;
  font-weight: 950;
}

.species-file-hero h2 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 30px;
  font-weight: 950;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.species-file-hero p {
  margin: 5px 0 0;
  color: rgba(20, 32, 25, 0.76);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.species-file-grid {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(130, 108, 64, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.species-file-call,
.species-file-copy {
  padding: 13px 14px;
  border: 1px solid rgba(130, 108, 64, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.species-file-grid div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(130, 108, 64, 0.12);
}

.species-file-grid div:last-child {
  border-bottom: 0;
}

.species-file-grid span,
.species-file-call span,
.species-file-copy span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.species-file-grid strong,
.species-file-call strong {
  display: block;
  margin-top: 0;
  color: var(--deep);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.species-file-grid div:first-child strong {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 650;
}

.species-file-call {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 9px;
}

.species-file-call small {
  display: block;
  margin-top: 4px;
  color: rgba(100, 113, 104, 0.72);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.species-file-call button {
  display: inline-flex;
  min-width: 126px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--deep), var(--leaf));
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(18, 50, 37, 0.2);
}

.species-file-call button:disabled {
  opacity: 0.5;
  box-shadow: none;
}

.species-file-call button.playing {
  background: linear-gradient(135deg, var(--cinnabar), #c9912c);
}

.call-wave {
  position: relative;
  width: 18px;
  height: 16px;
}

.call-wave::before,
.call-wave::after {
  position: absolute;
  top: 50%;
  width: 4px;
  border-radius: 999px;
  content: "";
  background: currentColor;
  transform: translateY(-50%);
}

.call-wave::before {
  left: 3px;
  height: 9px;
  box-shadow: 6px -3px 0 currentColor, 12px 2px 0 currentColor;
}

.call-wave::after {
  left: 9px;
  height: 16px;
  opacity: 0.42;
}

.species-file-call button.playing .call-wave {
  animation: callWavePulse 650ms ease-in-out infinite alternate;
}

@keyframes callWavePulse {
  from { transform: scaleY(0.76); }
  to { transform: scaleY(1.12); }
}

.species-file-copy {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}

.species-file-copy p {
  margin: 0 0 8px;
  color: #34443a;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.55;
}

.species-photo-credit {
  display: block;
  margin-top: 2px;
  color: rgba(100, 113, 104, 0.72);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.species-file-record,
.detail-record-button {
  width: 100%;
  margin-top: 12px;
}

.species-file-feedback-link {
  display: block;
  width: max-content;
  max-width: 100%;
  min-height: 30px;
  margin: 8px auto 0;
  padding: 4px 8px;
  color: rgba(100, 113, 104, 0.78);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-color: rgba(100, 113, 104, 0.28);
  text-underline-offset: 3px;
}

.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;
  transform: translateY(2px);
  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(368px, calc(100vw - 24px));
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  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: 12px;
  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: grid;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
}
.countdown-label {
  color: var(--deep);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}
.countdown-time {
  color: rgba(67, 81, 69, 0.72);
  font-size: 13px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-align: center;
}

/* 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: 480px) and (min-height: 780px) {
  .app-shell {
    min-height: 100svh;
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: calc(132px + env(safe-area-inset-bottom));
  }

  #home-screen .home-head {
    min-height: 88px;
  }

  #home-screen .eyebrow {
    margin-bottom: 5px;
    font-size: 12px;
  }

  #home-screen h1 {
    font-size: 31px;
    line-height: 1.02;
  }

  #home-screen .subcopy {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.35;
  }

  #home-screen .ambient-player {
    margin: -2px 0 9px;
    padding: 6px 8px;
    border-radius: 16px;
  }

  #home-screen .ambient-toggle {
    min-height: 34px;
    padding: 0 9px;
    font-size: 13px;
  }

  #home-screen .ambient-tag {
    font-size: 11px;
  }

  #home-screen .draw-stage {
    padding: 14px 14px 13px;
    border-radius: 26px;
  }

  #home-screen .stage-topline {
    font-size: 13px;
  }

  #home-screen .status-pill {
    min-height: 28px;
    padding: 0 12px;
  }

  #home-screen .daily-countdown {
    gap: 8px;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 14px;
  }

  #home-screen .countdown-label {
    font-size: 12px;
  }

  #home-screen .countdown-time {
    font-size: 13px;
    letter-spacing: 0;
  }

  #home-screen .bird-sign {
    margin-top: 8px;
  }

  #home-screen .opened-bird-hero {
    height: clamp(164px, 21svh, 192px);
    margin: 0 auto 12px;
  }

  #home-screen .opened-bird-hero::before {
    inset: 12px 44px 4px;
  }

  #home-screen .opened-bird-hero img {
    max-width: 68%;
    max-height: clamp(130px, 17svh, 154px);
  }

  #home-screen .daily-name {
    font-size: 29px;
    line-height: 1.04;
  }

  #home-screen .look-line {
    margin-top: 5px;
    font-size: 14px;
    line-height: 1.35;
  }

  #home-screen .quote {
    max-width: 292px;
    margin-top: 10px;
    padding: 13px 15px 14px;
    gap: 5px;
    border-radius: 16px;
    line-height: 1.32;
  }

  #home-screen .quote-title {
    font-size: 14px;
  }

  #home-screen .quote-body {
    font-size: 16px;
    line-height: 1.32;
  }

  #home-screen .bird-sign.revealed ~ .primary-actions {
    max-height: 62px;
    margin-top: 14px;
  }

  #home-screen .primary,
  #home-screen .poster-entry {
    min-height: 46px;
    border-radius: 15px;
    font-size: 15px;
  }

  #home-screen .install-tip {
    margin-top: 10px;
    padding: 9px 12px;
    border-radius: 16px;
  }

  #home-screen .install-tip-icon {
    width: 26px;
    height: 26px;
    border-radius: 9px;
    font-size: 18px;
  }

  #home-screen .install-tip p {
    font-size: 12px;
    line-height: 1.35;
  }
}


@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;
  }

  .tile-art {
    height: 110px;
  }

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