/* 背景：放你的治癒宇宙圖 public/images/universe-bg.png */
/* --- Derex painting recommendation demo block --- */
.result-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 20px;
  margin: 20px auto;
  width: min(100%, 900px);
  color: #eee;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-family: "Noto Serif TC", serif;
  line-height: 1.8;
}

.result-card h2 {
  color: #ffb3c6;
  margin: 0 0 10px 0;
}

.painting-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.painting-card {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  color: #ddd;
}

.painting-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

html { 
  scroll-behavior: smooth; 
}

/* Top progress bar */
.progress-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.12);
  z-index: 9999;
}
.progress-bar__inner {
  height: 100%;
  background: linear-gradient(90deg, #9bd7ff, #a8a2ff 60%, #f7b9ff);
  width: 0%;
  transition: width 200ms ease;
}

/* Inline (in-form) progress bar variant */
.progress-inline {
  position: static !important;
  height: 6px;
  border-radius: 6px;
  background: rgba(255,255,255,0.16);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.25);
}
.progress-inline .progress-bar__inner {
  border-radius: 6px;
}

/* Skeleton shimmer */
.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.05) 0%,
    rgba(255,255,255,0.18) 20%,
    rgba(255,255,255,0.05) 40%);
  transform: translateX(-100%);
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer {
  100% { transform: translateX(100%); }
}

/* Text skeleton blocks */
.skeleton-line { height: 12px; margin: 10px 0; }
.skeleton-line.lg { height: 16px; }
.skeleton-line.sm { height: 8px; }

/* 全螢幕背景影片 */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  object-fit: cover;
  opacity: 1; /* 一載入就顯示影片背景 */
  transition: opacity 0.8s ease;
  pointer-events: none;
}

/* 影片永遠作為主要背景，若之後需要調亮/調暗再調整透明度 */
body.animated-bg .video-background {
  opacity: 1;
}

body {
  margin: 0;
  color: #f8fafc;
}

.page {
  display: none;
  min-height: 100vh;
  width: 100%;
}

.page.active {
  display: block;
}

.page-home {
  height: 100vh;
  overflow: hidden;
}

.page-form,
.page-results {
  min-height: 100vh;
  padding: 32px 0;
}

.page-form .section,
.page-results .section {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px;
}

.hero-gallery {
  max-width: 100%;
  min-height: 100vh;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.homepage-gallery-card {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.homepage-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  width: 100vw;
  height: 100vh;
}

.homepage-gallery-item {
  border-radius: 0;
  overflow: hidden;
  background: #050816;
  border: 0;
  box-shadow: none;
  height: 100vh;
}

.homepage-carousel-track {
  position: relative;
  height: 100vh;
}

.homepage-carousel-track--single {
  width: 100%;
}

.homepage-slide {
  display: none;
  height: 100%;
}

.homepage-slide.active {
  display: block;
}

.homepage-slide--single {
  display: block;
}

.homepage-gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.homepage-next-page {
  position: absolute;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  width: auto;
  min-width: 132px;
  margin-top: 0;
  padding: 12px 22px;
  z-index: 2;
  transition: none;
  animation: none;
  box-shadow: none;
}

.homepage-next-page:hover,
.homepage-next-page:active,
.homepage-next-page:focus {
  transform: translateX(-50%);
  box-shadow: none;
  filter: none;
}

.card {
  background: rgba(15, 23, 42, 0.85); /* 稍微透明的深色遮罩，讓影片略微透出 */
  border-radius: 16px;
  padding: 24px;
  margin: 20px 0;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.9);
}

h2 { 
  text-align: center; 
  margin: 0 0 18px; 
  font-size: 2rem;
  font-weight: 700;
  color: #f8fafc;
}

h3,
p,
.panel h3,
.panel p,
.card p,
.card h3,
.content,
.content p,
.content li,
.status-line {
  color: rgba(248, 250, 252, 0.96);
}

/* Inputs */
label { 
  display: block; 
  margin-top: 16px; 
  font-weight: 700; 
  color: rgba(248, 250, 252, 0.96);
}

input {
  box-sizing: border-box;
  width: 100%; 
  margin-top: 6px; 
  padding: 14px 16px;
  border-radius: 10px; 
  border: 1px solid rgba(148, 163, 184, 0.9);
  background: rgba(15, 23, 42, 0.85);  /* 稍微透明的黑底輸入框，與文字區一致 */
  color: #f8fafc;       /* 白字／淺灰字，提升在黑底上的可讀性 */
  outline: none;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

input:focus { 
  box-shadow: 0 0 0 6px rgba(148, 163, 184, 0.45); 
  border-color: #f8fafc; 
  background: rgba(15, 23, 42, 0.9);
}

.quick-select {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 8px;
}

.quick-select-chip {
  width: auto;
  min-width: 0;
  margin-top: 0;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 250, 252, 0.96);
  font-size: 1rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
}

.quick-select-chip:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.quick-select-chip.active {
  background: linear-gradient(135deg, rgba(155, 215, 255, 0.9), rgba(247, 185, 255, 0.85));
  color: #0f172a;
  border-color: rgba(255, 255, 255, 0.35);
}

.quick-select-chip--manual {
  border-style: dashed;
}

#h1::placeholder {
  color: rgba(226, 232, 240, 0.55);
  white-space: pre-line;
}

button {
  margin-top: 24px; 
  padding: 16px 20px; 
  width: 100%;
  border-radius: 10px; 
  border: 0; 
  font-size: 18px; 
  font-weight: 800;
  background: linear-gradient(135deg, #9bd7ff, #a8a2ff 60%, #f7b9ff); 
  color: #fff; 
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 74, 173, 0.4);
}

button:active {
  transform: translateY(0);
  filter: grayscale(18%) brightness(0.92);
}

/* Busy/disabled state to avoid double submit */
.btn-busy,
button:disabled,
.btn-primary:disabled {
  filter: grayscale(12%);
  background: linear-gradient(135deg, #7fbfeb, #8f88ff 60%, #eaa7f2) !important;
  cursor: not-allowed !important;
  box-shadow: 0 0 0 rgba(0,0,0,0.1) !important;
  opacity: 0.9;
}

/* status line below the submit button */
.status-line {
  margin-top: 8px;
  min-height: 1.2em;
  font-size: .95rem;
  color: rgba(255,255,255,0.85);
}

.results-actions {
  margin-top: 24px;
}

.results-actions--top {
  margin-top: 0;
  margin-bottom: 12px;
}

.secondary-action {
  width: auto;
  min-width: 168px;
  margin-top: 0;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0;
}

.secondary-action:hover,
.secondary-action:focus,
.secondary-action:active {
  transform: none;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.14);
}

.result-heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2em;
  margin-right: 8px;
  color: #f7b9ff;
  font-size: 0.95em;
  text-shadow: 0 0 12px rgba(247, 185, 255, 0.35);
}

.poetic-block p {
  margin: 0 0 10px;
}

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.recommend-card {
  margin: 0;
  height: 100%;
}

.recommend-card .content h4 {
  margin: 0 0 10px;
  color: rgba(248, 250, 252, 0.98);
  font-size: 1.05rem;
}

.recommend-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.04);
}

#drinkRecommendPrimary,
#drinkRecommendSecondary,
#drinkRecommendThird {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#drinkRecommendPrimary img,
#drinkRecommendSecondary img,
#drinkRecommendThird img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.recommend-grid--soft .recommend-card {
  background: rgba(255, 255, 255, 0.06);
}

.carousel-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.carousel-viewport {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}

.carousel-page {
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.carousel-card {
  min-height: 100%;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.carousel-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.carousel-card-title {
  margin-bottom: 8px;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.98);
}

.carousel-card-text {
  line-height: 1.8;
  color: rgba(248, 250, 252, 0.9);
}

.carousel-card-text--muted {
  margin-top: 8px;
  opacity: 0.85;
}

.carousel-nav {
  width: 46px;
  min-width: 46px;
  height: 46px;
  margin-top: 0;
  padding: 0;
  border-radius: 999px;
  text-transform: none;
  letter-spacing: 0;
}

.carousel-nav:disabled {
  opacity: 0.45;
}

@media (max-width: 900px) {
  .carousel-shell {
    grid-template-columns: 1fr;
  }

  .carousel-nav {
    width: 100%;
    height: auto;
    padding: 10px 14px;
  }

  .carousel-page {
    grid-template-columns: 1fr;
  }
}

/* Flash press feedback */
@keyframes pressFlash {
  0% { filter: brightness(1); }
  50% { filter: brightness(0.8); }
  100% { filter: brightness(1); }
}
.btn-flash {
  animation: pressFlash 180ms ease;
}

/* Inline spinner for busy submit button */
.btn-spinner {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  margin-left: 10px;
  vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Loading placeholder text inside result panels */
.loading {
  opacity: 0.95;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.88);
}

/* Panels */
.panels { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 14px; 
  margin-top: 30px;
}

/* New results grid: Left AI image / Right Deep Analysis */
.results-grid {
  display: grid;
  grid-template-columns: 1fr; /* single column */
  gap: 14px;
  margin-top: 20px;
}

@media (min-width: 900px) {
  .results-grid {
    grid-template-columns: 1fr; /* full width deep analysis */
    align-items: stretch;
  }
}

.image-panel .image-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.image-wrap {
  width: 100%;
  aspect-ratio: 4 / 5; /* match portrait images (e.g., 1024x1280) */
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 不裁切圖片，完整顯示在 4:5 外框內 */
  display: none; /* 生成後由 JS 顯示 */
}

.image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  padding: 16px;
  text-align: center;
  background:
    radial-gradient(600px 400px at 80% 20%, rgba(168, 162, 255, 0.08), transparent 60%),
    radial-gradient(500px 320px at 20% 80%, rgba(155, 215, 255, 0.08), transparent 60%);
}

.image-actions {
  display: flex;
  gap: 10px;
}

.full-on-mobile {
  grid-column: auto;
}

@media (max-width: 899px) {
  .full-on-mobile {
    grid-column: 1 / -1;
  }
}

/* 已移除占位下一頁連結樣式（單一入口頁） */

.panel {
  border: 1px solid rgba(148, 163, 184, 0.9);
  background: rgba(15, 23, 42, 0.85); /* 稍微透明的黑色文字框遮罩，蓋在影片上 */
  border-radius: 16px; 
  overflow: hidden; 
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.panel h3 { 
  margin: 0; 
  padding: 16px; 
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.3rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel .content { 
  padding: 20px; 
  line-height: 1.9; 
  /* 讓內容區塊自動撐高顯示全部文字，不再以高度 + 捲動顯示 */
  max-height: none; 
  overflow: visible;
  color: rgba(248, 250, 252, 0.96);
}

/* Generic content container (also used inside cards) */
.content {
  line-height: 1.9;
  color: rgba(248, 250, 252, 0.96); /* 白字偏亮，搭配黑底文字框 */
}

/* 已移除 mini-grid/mini-card（不再使用三格合併元件） */

/* 以段落與清單呈現 */
.content p { 
  margin: 0 0 16px;
  line-height: 1.8;
}

.content ul { 
  margin: 0 0 16px 20px; 
  padding: 0;
}

.content li { 
  margin: 8px 0;
  position: relative;
  padding-left: 24px;
}

.content li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: #6ea8ff;
  font-size: 1.2em;
  line-height: 1;
}

/* 自定義滾動條 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* 響應式設計 */
@media (min-width: 900px) { 
  .panels { 
    grid-template-columns: 1fr 1fr; 
    gap: 20px;
  } 
  
  .panel.full { 
    grid-column: 1 / -1; 
  } 
  
  .panel .content {
    padding: 24px;
  }
}

/* 載入動畫 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel .content {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Grid helpers for JS-rendered cards */
.grid {
  display: grid;
  gap: 14px;
}

.grid.two {
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .grid.two {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

/* Card header badges (used by app-rendered six-card layout) */
.badge {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 10px;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.12) inset, 0 2px 8px rgba(0,0,0,0.25);
}
.badge.blue   { background: #7fb3ff; }
.badge.pink   { background: #f7b9ff; }
.badge.gold   { background: #ffd66e; }
.badge.orange { background: #ffb085; }
.badge.teal   { background: #7bdcd9; }
.badge.rose   { background: #ff91a4; }

/* Fine-tune card look to match deep-blue glass panel style */
.card {
  background: rgba(15, 23, 42, 0.85); /* 全站統一稍微透明的黑底文字框 */
  border: 1px solid rgba(148, 163, 184, 0.9);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.75);
}

.card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.card .content {
  padding: 16px 16px 18px;
}

/* Mini blocks inside deep analysis */
.mini-item {
  padding: 12px 14px;
  margin: 8px 0 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
}

.mini-item p { margin: 0 0 8px; }

/* Images inside recommendation cards */
.card img {
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

/* 響應式調整 */
@media (max-width: 768px) {
  .hero {
    padding: 100px 20px 60px;
  }

  .hero-gallery {
    padding-top: 0;
    padding-bottom: 0;
  }

  .homepage-gallery-card {
    padding: 0;
  }

  .homepage-carousel,
  .homepage-carousel-track,
  .homepage-gallery-item {
    height: auto;
  }

  .homepage-carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .homepage-carousel-btn.prev {
    left: 14px;
  }

  .homepage-carousel-btn.next {
    right: 14px;
  }

  .homepage-next-page {
    padding: 10px 18px;
    min-width: 120px;
  }

  .recommend-grid {
    grid-template-columns: 1fr;
  }

  .quick-select {
    gap: 10px;
  }

  .quick-select-chip {
    padding: 10px 14px;
    font-size: 0.95rem;
  }

  .section {
    padding: 24px 16px;
  }
  
  .card {
    padding: 18px 16px;
  }
  
  .panel .content {
    max-height: none;
  }

  h2 {
    font-size: 1.45rem;
    margin: 0 0 12px;
    line-height: 1.5;
  }

  h3 {
    font-size: 1rem;
    line-height: 1.5;
  }

  .page-form .card p {
    font-size: 0.95rem;
    margin: 0 0 8px;
    line-height: 1.7;
  }

  .page-form label {
    font-size: 0.95rem;
    margin-top: 12px;
  }

  .page-form input {
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  .page-form button[type="submit"] {
    margin-top: 18px;
    padding: 14px 16px;
    font-size: 16px;
  }
}

button#analyze:disabled {
  background: #c7d2fe;
  cursor: not-allowed;
}

/* 定義滾動條樣式（高寬及背景） */
::-webkit-scrollbar {
  width: 0px; /* 對應直向滾動條的寬度；若是橫向則為高度 */
  background: transparent;
}

/* 定義滾動條軌道（凹槽）樣式 */
::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0);
  border-radius: 3px;
}

/* 定義滾動條滑塊樣式 */
::-webkit-scrollbar-thumb {
  border-radius: 3px;
  height: 100px; /* 滾動條滑塊長度 */
  background-color: transparent;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .panel .content { transition: none; animation: none; }
}

/* Fullscreen loading overlay */
#loading {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}
#loading.hidden { opacity: 0; pointer-events: none; }

/* Bottom status banner shown during analysis */
.bottom-status {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.92);
  color: #e5e7eb;
  font-weight: 700;
  text-align: center;
  padding: 10px 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
  z-index: 10000;
  letter-spacing: .02em;
}
.bottom-status.hidden { display: none; }

body .page-home .hero-gallery {
  max-width: 100%;
  min-height: 100vh;
  height: 100vh;
  padding: 0;
}

body .page-home .homepage-gallery-card {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body .page-home .homepage-carousel,
body .page-home .homepage-carousel-track,
body .page-home .homepage-gallery-item {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  border-radius: 0;
  box-shadow: none;
}

body .page-home .homepage-gallery-item {
  border: 0;
  background: #050816;
}

body .page-home .homepage-gallery-item picture {
  display: block;
  width: 100%;
  height: 100%;
}

body .page-home .homepage-gallery-item picture img,
body .page-home .homepage-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Center the primary drink recommendation card */
.recommend-grid--soft {
  display: flex;
  justify-content: center;
}

.recommend-grid--soft .recommend-card {
  max-width: 420px;
  width: 100%;
}

/* Carousel verse style */
.carousel-card-text--verse {
  margin-top: 8px;
  opacity: 0.7;
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.6;
}

/* Usage counter */
.usage-counter-section {
  margin-top: 32px;
}

.usage-counter-number {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(90deg, #9bd7ff, #a8a2ff 60%, #f7b9ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.04em;
}

.usage-counter-label {
  margin-top: 6px;
  font-size: 1rem;
  opacity: 0.88;
  color: rgba(248, 250, 252, 0.92);
  letter-spacing: 0.03em;
}

@media (max-width: 768px) {
  .page-home {
    height: 100svh;
    overflow: hidden;
  }

  body .page-home .hero-gallery,
  body .page-home .homepage-gallery-card,
  body .page-home .homepage-carousel,
  body .page-home .homepage-carousel-track,
  body .page-home .homepage-gallery-item {
    width: 100%;
    height: 100svh;
    min-height: 100svh;
    padding: 0;
  }

  body .page-home .homepage-gallery-item picture {
    display: block;
    width: 100%;
    height: 100%;
  }

  body .page-home .homepage-gallery-item picture img,
  body .page-home .homepage-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
  }

  body .page-home .homepage-next-page {
    bottom: 64px;
  }
}
