:root {
  --ink: #1f2326;
  --line: rgba(31, 35, 38, 0.2);
  --muted: rgba(31, 35, 38, 0.6);
  --bg: #ffffff;
}

@font-face {
  font-family: "GenSenRounded2TW";
  src: url("../fonts/gensen-rounded2/GenSenRounded2TW-R.subset.woff2") format("woff2"),
       url("../fonts/gensen-rounded2/GenSenRounded2TW-R.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GenSenRounded2TW";
  src: url("../fonts/gensen-rounded2/GenSenRounded2TW-M.subset.woff2") format("woff2"),
       url("../fonts/gensen-rounded2/GenSenRounded2TW-M.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GenSenRounded2TW";
  src: url("../fonts/gensen-rounded2/GenSenRounded2TW-H.subset.woff2") format("woff2"),
       url("../fonts/gensen-rounded2/GenSenRounded2TW-H.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GenSenRounded2TW";
  src: url("../fonts/gensen-rounded2/GenSenRounded2TW-B.subset.woff2") format("woff2"),
       url("../fonts/gensen-rounded2/GenSenRounded2TW-B.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

*,
button,
input,
select,
textarea {
  box-sizing: border-box;
  font-family: inherit;
}

body {
  margin: 0;
  font-family: "GenSenRounded2TW", "源柔黑体", "源柔ゴシック",
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 8px 12px;
  background: transparent;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
}

.logo {
  display: block;
  height: auto;
}

.logo-left {
  display: none;
}

.logo-right {
  width: min(56px, 12vw);
}

main {
  flex: 1;
  padding: 30px 24px 40px;
  background: url("../images/home-hero-bg.svg") center/cover no-repeat fixed #8b9e56;
}

.hero {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 20px;
  padding: 30px;
  padding-bottom: 150px;
  background: url("../images/main-bg.svg") center/cover no-repeat fixed #f5f0e1;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(240px, 1fr);
  gap: 30px;
  align-items: start;
}

.eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #843206;
}

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

.info-list li {
  border-radius: 12px;
  overflow: hidden;
  background: #e6efd8;
  margin-bottom: 4px;
}

.accordion-toggle {
  width: 100%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font: inherit;
  font-weight: 700;
  color: inherit;
  cursor: pointer;
  font-size: 1.6rem;
  touch-action: manipulation;
}

.accordion-toggle span {
  letter-spacing: 0.02em;
}

.accordion-toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.accordion-toggle[aria-expanded="true"]::after {
  transform: rotate(-135deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1.5;
  transition: none;
  opacity: 0;
}

.accordion-toggle[aria-expanded="true"] {
  background: #ffe074;
}

.accordion-panel.show {
  padding: 16px 20px 20px;
  opacity: 1;
  background: #fff5e3;
}

.info-text {
  white-space: pre-line;
  color: #3a3a3a;
}

.structure-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.structure-btn {
  display: inline-block;
  border: none;
  border-radius: 24px;
  background: #396E32;
  padding: 10px 28px;
  font-weight: 700;
  font-size: 1.4rem;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.2s ease;
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
}

.structure-btn:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 8px rgba(57, 110, 50, 0.3));
}

.structure-btn:active {
  transform: scale(0.95);
}

@keyframes btnBounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.15); }
  50% { transform: scale(0.92); }
  70% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes pulseGlow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(57, 110, 50, 0.3)); }
  50% { filter: drop-shadow(0 0 12px rgba(57, 110, 50, 0.5)); }
}

.structure-btn.active {
  background: #2d5828;
  animation: btnBounce 0.4s ease, pulseGlow 2s ease-in-out infinite;
  animation-delay: 0s, 0.4s;
}

.structure-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 16px;
  color: #843206;
}

.structure-hint-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.habitat-tag {
  display: inline-block;
  border-radius: 24px;
  background: #843206;
  padding: 10px 28px;
  font-weight: 700;
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 18px;
}

.habitat-label {
  font-weight: 700;
  font-size: inherit;
  color: #396E32;
  margin-bottom: 12px;
}

.habitat-content {
  display: grid;
  gap: 10px;
  color: #3a3a3a;
}

.habitat-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #3A3A3A;
}

.habitat-bullet {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 50%;
  background: #843206;
  margin-top: 0.45em;
}

.growth-content {
  display: grid;
  gap: 12px;
  color: #3A3A3A;
}

.growth-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #3A3A3A;
}

.growth-bullet {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 50%;
  background: #843206;
  margin-top: 0.45em;
}

.growth-highlight {
  color: #843206;
  font-weight: 700;
}

.growth-stages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.growth-stage-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  border-radius: 24px;
  background: #843206;
  padding: 8px 12px;
  font-weight: 700;
  font-size: clamp(0.7rem, 2vw, 1.4rem);
  color: #ffffff;
}

.growth-stage-arrow {
  font-size: 1.5rem;
  font-weight: 700;
  color: #843206;
}

.repro-content {
  display: grid;
  gap: 16px;
}

.repro-row {
  display: flex;
  align-items: baseline;
  gap: 0;
  white-space: normal;
}

.repro-label {
  font-weight: 700;
  font-size: inherit;
  color: #396E32;
  white-space: nowrap;
  flex-shrink: 0;
}

.repro-text {
  font-size: inherit;
  color: #3A3A3A;
}

.model-box {
  border: 1px solid var(--line);
  border-radius: 16px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  overflow: hidden;
  position: relative;
}

/* ===== 3D 模型載入動畫 ===== */
@keyframes pawWalk {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-8px) scale(1.1); opacity: 1; }
}

@keyframes loadingDots {
  0%, 20% { content: ""; }
  40% { content: "."; }
  60% { content: ".."; }
  80%, 100% { content: "..."; }
}

.model-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  height: 100%;
}

.model-loading-paws {
  display: flex;
  gap: 12px;
}

.model-loading-paw {
  font-size: 1.6rem;
  animation: pawWalk 1.2s ease-in-out infinite;
}

.model-loading-paw:nth-child(2) { animation-delay: 0.2s; }
.model-loading-paw:nth-child(3) { animation-delay: 0.4s; }

.model-loading-text {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.model-loading-text::after {
  content: "";
  animation: loadingDots 1.5s steps(1) infinite;
}

@keyframes modelFlash {
  0% { opacity: 0.6; }
  100% { opacity: 0; }
}

.model-box.flash::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,82,0.4) 0%, transparent 70%);
  border-radius: 16px;
  animation: modelFlash 0.6s ease forwards;
  pointer-events: none;
  z-index: 5;
}

.model-box iframe,
.model-box model-viewer {
  width: 100%;
  height: 100%;
  border: 0;
}

.sketchfab-cached-container {
  position: absolute;
  inset: 0;
}

.model-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  color: #3a3a3a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hint-wrapper {
  position: relative;
  display: inline-flex;
  margin-left: 4px;
  cursor: pointer;
}

.hint-icon {
  width: 28px;
  height: auto;
  transition: transform 0.2s ease;
}

.hint-wrapper:hover .hint-icon {
  transform: scale(1.1);
}

.hint-tooltip {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(58, 58, 58, 0.95);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  white-space: nowrap;
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 10;
}

.hint-wrapper:hover .hint-tooltip,
.hint-wrapper:focus .hint-tooltip {
  opacity: 1;
  visibility: visible;
}

.model-panel {
  display: grid;
  gap: 12px;
}

.section-title {
  max-width: 1100px;
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
}

.section-header {
  position: absolute;
  bottom: -13px;
  left: 30px;
  right: 30px;
  max-width: 1100px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.section-header .section-title {
  margin: 0;
}

.carousel-toggle {
  position: absolute;
  right: 10px;
  z-index: 100;
  border: none;
  background: transparent;
  touch-action: manipulation;
  padding: 0;
  cursor: pointer;
}

.carousel-toggle.is-hidden {
  display: none;
}

.carousel-toggle img {
  display: block;
  width: 100px;
  height: 100px;
}


.carousel {
  flex: 1;
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(24px);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s ease;
}

.carousel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.carousel.is-closing {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transform: translateX(0);
}

.carousel.is-open .nav-btn {
  opacity: 1;
  transition-delay: 0.15s;
}

.carousel.is-closing .nav-btn {
  opacity: 0;
  transition-delay: 0.05s;
}

.nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: transparent center/contain no-repeat;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.2s ease;
  transition-delay: 0s;
  touch-action: manipulation;
}

.nav-btn:hover {
  transform: scale(1.08);
}

#prev-btn {
  background-image: url("../images/carousel-prev.svg");
}

#next-btn {
  background-image: url("../images/carousel-next.svg");
}

.track-viewport {
  overflow: hidden;
  padding: 20px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 50px, black calc(100% - 50px), transparent);
  mask-image: linear-gradient(to right, transparent, black 50px, black calc(100% - 50px), transparent);
}

.track {
  display: flex;
  gap: 30px;
  align-items: center;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.track.no-loop {
  width: fit-content;
  margin: 0 auto;
}

.track.no-transition {
  transition: none !important;
}

.track.is-dragging {
  transition: none;
}

@keyframes subtleBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.animal-card {
  border: 7px solid #ffffff;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  touch-action: manipulation;
  flex-shrink: 0;
  padding: 0;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease, filter 0.3s ease;
  transform: scale(1);
  position: relative;
  animation: subtleBob 3s ease-in-out infinite;
}

.animal-card:nth-child(1) { animation-delay: 0s; }
.animal-card:nth-child(2) { animation-delay: 0.4s; }
.animal-card:nth-child(3) { animation-delay: 0.8s; }
.animal-card:nth-child(4) { animation-delay: 1.2s; }
.animal-card:nth-child(5) { animation-delay: 1.6s; }
.animal-card:nth-child(6) { animation-delay: 2s; }

.animal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  opacity: 1;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.animal-card:hover::after {
  opacity: 0;
}

.animal-card.active::after {
  opacity: 0;
}

.animal-thumb {
  width: 106px;
  height: 106px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0;
  background: #f1f1f1;
  pointer-events: none;
  -webkit-user-drag: none;
}

.animal-name {
  font-size: 0.75rem;
  line-height: 1.2;
}

.animal-card:hover {
  transform: translateY(-2px) scale(1.04);
  will-change: transform;
}

@keyframes sparkleRotate {
  0% { filter: drop-shadow(0 0 4px #ffd166) drop-shadow(0 0 8px rgba(255,209,102,0.3)); }
  50% { filter: drop-shadow(0 0 8px #ffd166) drop-shadow(0 0 16px rgba(255,209,102,0.5)); }
  100% { filter: drop-shadow(0 0 4px #ffd166) drop-shadow(0 0 8px rgba(255,209,102,0.3)); }
}

.animal-card.active {
  transform: scale(1.18);
  will-change: transform;
  z-index: 1;
  border-color: #FFFF52;
  animation: sparkleRotate 2s ease-in-out infinite;
}

.animal-card.active:hover {
  transform: scale(1.22);
}

.home-btn {
  position: fixed;
  right: 1%;
  bottom: 1%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.home-btn:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

.home-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===== 動物切換過場動畫 ===== */
.hero-inner {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-inner.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

.hero-inner.fade-in {
  opacity: 0;
  transform: translateY(-10px);
}

/* ===== 按鈕漣漪效果 ===== */
.ripple-container {
  position: relative;
  overflow: hidden;
}

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.ripple-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: rippleEffect 0.6s ease-out;
  pointer-events: none;
}

/* ===== 入場動畫 ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-inner > div:first-child {
  animation: slideInLeft 0.6s ease both;
  animation-delay: 0.2s;
}

.model-panel {
  animation: slideInRight 0.6s ease both;
  animation-delay: 0.3s;
}

.section-header {
  animation: fadeInUp 0.5s ease both;
  animation-delay: 0.5s;
}

.info-list li:nth-child(1) { animation: fadeInUp 0.5s ease both; animation-delay: 0.35s; }
.info-list li:nth-child(2) { animation: fadeInUp 0.5s ease both; animation-delay: 0.45s; }
.info-list li:nth-child(3) { animation: fadeInUp 0.5s ease both; animation-delay: 0.55s; }
.info-list li:nth-child(4) { animation: fadeInUp 0.5s ease both; animation-delay: 0.65s; }

/* ===== RWD: Tablet (≤900px) ===== */
@media (max-width: 900px) {
  header {
    padding: 10px 20px;
  }

  .logo-left {
    width: min(220px, 45vw);
  }

  .logo-right {
    width: min(84px, 18vw);
  }

  main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    background-attachment: scroll;
  }

  .hero {
    width: 100%;
    padding: 24px;
    padding-bottom: 24px;
    background-attachment: scroll;
  }

  .section-header {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .model-panel {
    order: -1;
  }

  .model-box {
    height: 320px;
  }

  h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }

  .accordion-toggle {
    font-size: 1.4rem;
    padding: 10px 12px;
  }

  .accordion-panel {
    font-size: 1.3rem;
  }

  .accordion-panel.show {
    padding: 14px 16px 18px;
  }

  .structure-btn,
  .habitat-tag {
    font-size: 1.2rem;
    padding: 8px 20px;
  }

  .structure-buttons {
    gap: 12px;
  }

  .growth-stage-tag {
    padding: 6px 10px;
    font-size: clamp(0.65rem, 1.8vw, 1.2rem);
  }

  .carousel {
    grid-template-columns: auto 1fr auto;
  }

  .track {
    gap: 20px;
  }

  .animal-card {
    width: 100px;
    height: 100px;
    border-width: 5px;
  }

  .animal-thumb {
    width: 90px;
    height: 90px;
  }

  .nav-btn {
    width: 38px;
    height: 38px;
  }

  .carousel-toggle img {
    width: 80px;
    height: 80px;
  }

  .home-btn {
    width: 52px;
    height: 52px;
    right: 1%;
    bottom: 1%;
  }
}

/* ===== RWD: Mobile (≤640px) ===== */
@media (max-width: 640px) {
  header {
    padding: 8px 16px;
  }

  .logo-left {
    width: min(170px, 40vw);
  }

  .logo-right {
    width: min(68px, 16vw);
  }

  main {
    padding: 16px 12px 30px;
  }

  .hero {
    padding: 16px;
    border-radius: 16px;
  }

  .hero-inner {
    gap: 20px;
    margin-bottom: 14px;
  }

  .model-box {
    height: 260px;
  }

  .model-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
  }

  h1 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 14px;
  }

  .accordion-toggle {
    font-size: 1.2rem;
    padding: 10px 12px;
  }

  .accordion-panel {
    font-size: 1.1rem;
  }

  .accordion-panel.show {
    padding: 12px 14px 16px;
  }

  .structure-btn,
  .habitat-tag {
    font-size: 1rem;
    padding: 8px 16px;
  }

  .structure-buttons {
    gap: 10px;
  }


  .growth-stages {
    flex-wrap: wrap;
    gap: 6px;
  }

  .growth-stage-tag {
    flex: 0 1 auto;
    padding: 6px 12px;
    font-size: 0.9rem;
  }

  .growth-stage-arrow {
    font-size: 1.2rem;
  }

  .section-header {
    flex-direction: column;
    gap: 12px;
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
  }

  /* 未展開時脫離文檔流，不佔空間 */
  .carousel {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 100%;
    margin-bottom: 12px;
  }

  /* 展開時恢復正常文檔流 */
  .carousel.is-open {
    position: relative;
    bottom: auto;
    margin-bottom: 0;
  }

  .track {
    gap: 14px;
  }

  .animal-card {
    width: 70px;
    height: 70px;
    border-width: 4px;
  }

  .animal-thumb {
    width: 62px;
    height: 62px;
  }

  .animal-card.active {
    transform: scale(1.15);
  }

  .animal-card.active:hover {
    transform: scale(1.18);
  }

  .nav-btn {
    width: 32px;
    height: 32px;
  }

  .carousel-toggle {
    position: static;
    order: 1;
    align-self: flex-end;
  }

  .carousel-toggle img {
    width: 60px;
    height: 60px;
  }

  .home-btn {
    width: 44px;
    height: 44px;
    right: 1%;
    bottom: 1%;
  }
}

/* ===== RWD: Small Mobile (≤480px) ===== */
@media (max-width: 480px) {
  header {
    padding: 6px 12px;
  }

  .logo-left {
    width: min(140px, 38vw);
  }

  .logo-right {
    width: min(60px, 14vw);
  }

  main {
    padding: 12px 10px 24px;
  }

  .hero {
    padding: 14px;
    border-radius: 12px;
  }

  .model-box {
    height: 220px;
  }

  h1 {
    font-size: 1.4rem;
  }

  .accordion-toggle {
    font-size: 1.1rem;
  }

  .accordion-panel {
    font-size: 1rem;
  }

  .structure-btn,
  .habitat-tag {
    font-size: 0.9rem;
    padding: 6px 14px;
  }

  .track {
    gap: 10px;
  }

  .animal-card {
    width: 56px;
    height: 56px;
    border-width: 3px;
  }

  .animal-thumb {
    width: 50px;
    height: 50px;
  }

  .carousel-toggle img {
    width: 50px;
    height: 50px;
  }

  .home-btn {
    width: 40px;
    height: 40px;
    right: 1%;
    bottom: 1%;
  }
}

/* ===== 未探索紅點標記 ===== */
@keyframes newBadgePop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.new-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: #e76f51;
  border-radius: 50%;
  border: 2px solid #fff;
  z-index: 5;
  animation: newBadgePop 0.4s ease both;
}

