/* 
 * css/pages/top.css
 * Styles specific to the Top Page (Hero, Home-specific sections)
 */

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
  position: relative;
  /* overflow: hidden; Removed to allow scrolling */
}

.hero::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--accent-glow);
  filter: blur(150px);
  border-radius: 50%;
  top: -100px;
  left: -100px;
  z-index: -1;
  animation: float 10s infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(129, 140, 248, 0.4) 0%,
    transparent 70%
  );
  filter: blur(100px);
  border-radius: 50%;
  bottom: -150px;
  right: -100px;
  z-index: -1;
  animation:
    float 12s infinite alternate-reverse,
    pulse-glow 6s infinite alternate;
}

@keyframes pulse-glow {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(30px, 30px) rotate(5deg);
  }
}

@keyframes float-subtle {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes float-hero-subtle {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

.hero-content .float-icon {
  animation: float-hero-subtle 4s ease-in-out infinite;
  display: inline-block;
}

.hero-content h1 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 4rem;
  margin-bottom: 1rem;
  line-height: 1.1;
  margin-top: 2rem;
  font-weight: 900; /* 極太でインパクトと洗練度をアップ */
  letter-spacing: 0.02em; /* 文字間を美しく調整 */
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Soft drop shadow for depth */
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #94a3b8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Slim Quote Banner Styles */
.quote-banner {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  border: 1px solid rgba(116, 185, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  max-width: 90%;
  transition: all 0.3s ease;
}

.quote-banner:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.02);
  border-color: var(--accent-color);
}

.quote-icon {
  font-size: 1.2rem;
  color: var(--accent-color);
  opacity: 0.6;
}

.quote-text {
  font-size: 1.1rem;
  color: #334155;
  font-weight: 500;
  line-height: 1.4;
  transition: opacity 0.3s ease;
}

.quote-author {
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 700;
  margin-left: 0.8rem;
  flex-shrink: 0;
  padding-left: 0.8rem;
  border-left: 1px solid rgba(100, 116, 139, 0.3);
}

/* --- Homerare (Compliment) Section --- */
.homerare-container {
  background: rgba(255, 255, 255, 0.15); /* もっと透明に */
  backdrop-filter: blur(6px); /* ぼかしも少し弱めて奥が見えるように */
  padding: 2rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.4); /* 枠線も少し薄く */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.homerare-input-group {
  display: flex;
  gap: 0.5rem;
  max-width: 400px;
  margin: 1.5rem auto;
}

.homerare-input-group input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border: 2px solid #f1f5f9;
  border-radius: 12px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s;
}

.homerare-input-group input:focus {
  border-color: var(--accent-color);
}

.homerare-display {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

.homerare-message {
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.6;
  padding: 1.5rem;
  background: #fdf2f8;
  border-radius: 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.homerare-message.active {
  opacity: 1;
  transform: translateY(0);
}

.homerare-message strong {
  color: var(--accent-color);
  font-size: 1.2rem;
}

/* --- Floating Compliment Shower --- */
.homerare-float {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.8rem 1.2rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.15);
  color: #475569;
  font-weight: bold;
  white-space: nowrap;
  border: 1px solid #fce7f3;
  animation: homerare-drift var(--duration) ease-out var(--delay) forwards;
  opacity: 0;
}

.homerare-float strong {
  color: var(--accent-color);
}

@keyframes homerare-drift {
  0% {
    transform: translate(-50%, 20px) scale(0.5);
    opacity: 0;
  }
  15% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + var(--drift-x)), -150px) scale(1.1);
    opacity: 0;
  }
}

/* Decoration Icons */
.homerare-float i {
  margin: 0 0.4rem;
  display: inline-block;
}

.icon-heart {
  color: #f472b6;
  animation: icon-beat 1.5s infinite ease-in-out;
}
.icon-bird {
  color: #60a5fa;
  animation: icon-flap 2s infinite ease-in-out;
}
.icon-clover {
  color: #34d399;
  animation: icon-rotate 4s infinite linear;
}
.icon-star {
  color: #fbbf24;
  animation: icon-pulse 1s infinite alternate;
}
.icon-music {
  color: #8b5cf6;
  animation: icon-bounce 1s infinite alternate;
}

@keyframes icon-beat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}
@keyframes icon-flap {
  0%,
  100% {
    transform: rotate(-10deg);
  }
  50% {
    transform: rotate(10deg);
  }
}
@keyframes icon-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes icon-pulse {
  0% {
    opacity: 0.6;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1.1);
  }
}
@keyframes icon-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Recommendation Ultra Slim */
.recommend-ultra-slim {
  position: relative; /* For icon positioning */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0.8rem auto;
  padding: 0.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.6); /* Slightly more opaque */
  border-radius: 50px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Green Icon Decoration Removed per user request */
/* .recommend-ultra-slim::after {
  content: "🌿";
  ...
} */

.recommend-text {
  font-weight: bold;
  color: #64748b; /* Light slate color */
  font-size: 0.9rem; /* Reduced from 1.1rem */
}

.recommend-text i {
  margin-right: 0.5rem;
  color: #a8a29e; /* Muted icon color or use specific variable */
}

.btn-start-slim {
  display: inline-block;
  padding: 0.6rem 2rem;
  background: linear-gradient(
    to right,
    #60a5fa,
    #a78bfa
  ); /* Blue to Purple gradient */
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: 1px;
}

.btn-start-slim:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(56, 189, 248, 0.3);
}

/* --- Dynamic Interaction Styles --- */
/* (This block replaces the old .recommended-highlight and .recommend-badge) */
.recommended-highlight {
  /* Elegant double glow (inner + outer) */
  border: none !important;
  box-shadow:
    0 15px 40px rgba(116, 185, 255, 0.4),
    inset 0 0 0 2px var(--accent-color),
    inset 0 0 20px rgba(255, 255, 255, 0.9) !important;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    rgba(240, 248, 255, 0.95) 100%
  ) !important;
  transform: translateY(-5px) scale(1.02) !important;
  z-index: 500 !important;
}

.recommend-badge {
  position: absolute;
  top: -18px !important;
  right: -15px !important;
  left: auto !important;
  transform: none !important;
  /* Premium Emerald Gradient */
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
  color: #fff;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  /* Glass and 3D effects */
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 8px 20px rgba(5, 150, 105, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.5),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  animation: pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  z-index: 1000 !important;
  width: max-content;
  max-width: 90vw;
}

/* Ensure parent doesn't clip */
/* Category Grid & Tiles (TOP Page Adaptation) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1100px; /* Slightly narrower to help with square shape */
  margin: 5rem auto 7rem auto; /* メニューと褒められコーナーの間に大きな余白を確保 */
}

.category-tile {
  aspect-ratio: 1 / 0.85;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1.8rem 0.8rem !important;
  border-radius: 28px !important;
  /* 🌟 グラスモーフィズム（すりガラス）調整 🌟 */
  background: rgba(
    255,
    255,
    255,
    0.35
  ) !important; /* 前回0.6からより透明に調整 */
  backdrop-filter: blur(10px) saturate(110%); /* ぼかしで背後の文字を読めなくして可読性を担保 */
  /* ガラスの反射や厚みを表現するボーダー */
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-right: 2px solid rgba(255, 255, 255, 0.3) !important;
  /* 浮遊感のある影 */
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.05),
    inset 0 1px 2px rgba(255, 255, 255, 0.8) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  /* Text Balance Refinement */
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  color: #475569 !important;
  text-align: center;
  word-break: keep-all; /* Better for Japanese line breaks */
  overflow-wrap: break-word;
  overflow: visible !important;
  position: relative;
  z-index: 1;
}

.category-tile i {
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    #ffffff,
    #f0f7ff
  ); /* Soft gradient background for icon */
  border-radius: 20px;
  font-size: 1.8rem !important;
  margin-bottom: 1.2rem !important;
  color: var(--accent-color) !important;
  box-shadow:
    0 8px 15px rgba(59, 130, 246, 0.1),
    inset 0 2px 4px rgba(255, 255, 255, 0.8); /* Icon depth */
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.category-tile:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow:
    0 25px 40px -10px rgba(59, 130, 246, 0.3),
    0 10px 20px -5px rgba(0, 0, 0, 0.05),
    inset 0 1px 3px rgba(255, 255, 255, 1),
    inset 0 0 15px rgba(255, 255, 255, 0.6) !important;
  /* ガラスの透明感を残しつつ、フチと内側を発光させる */
  background: rgba(255, 255, 255, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
  border-bottom-width: 1px !important;
}

.category-tile:hover i {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: #ffffff !important;
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* Removed redundant .category-tile.recommended-highlight definition */

.recommend-badge i {
  color: #fff;
  margin-right: 5px;
}

@keyframes pop-in {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.5);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

/* --- Styles moved from index.html (Externalization) --- */

/* 3D背景を画面全体に固定するスタイル */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  background-color: #fdfcff;
  pointer-events: none;
}

/* 全体をまとめるコンテナは透明に */
#home .hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* タイトルと説明文専用のすりガラス枠 */
.hero-header-glass {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  padding: 2rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin: 2rem auto;
  width: calc(100% - 2rem);

  /* 🌟 3D演出用 🌟 */
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

/* 🌟 マウス追従の光（シャインエフェクト） 🌟 */
.shine-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: translate(-50%, -50%);
  mix-blend-mode: overlay;
  z-index: 0;
}

/* 🌟 文字がクルッ！フワッ！と現れるアニメーション 🌟 */
#dynamic-hero-title span.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px) rotateX(-90deg);
  animation: hero-char-enter 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
  animation-delay: calc(var(--char-index) * 0.06s + 0.1s);
  transform-origin: bottom center;
  position: relative;
  z-index: 2; /* 光より上に */
}

@keyframes hero-char-enter {
  0% {
    opacity: 0;
    transform: translateY(30px) rotateX(-90deg) scale(0.8);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
  }
}

/* 🌟 コンテンツを光より手前に 🌟 */
.hero-header-glass h1,
.hero-header-glass p {
  position: relative;
  z-index: 2;
}

/* 🌟 「もっと元気に。」が脈打つ生命力アニメーション 🌟 */
.gradient-text {
  display: inline-block;
  /* 文字が出現し終わった後（2秒後）から、ゆっくりと鼓動を始める */
  animation: breathe-energy 3s ease-in-out infinite alternate 2s;
  transform-origin: center center;
}

@keyframes breathe-energy {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0px rgba(96, 165, 250, 0));
  }
  100% {
    transform: scale(1.03);
    /* 元気があふれ出すような、淡く青いオーラ（後光） */
    filter: drop-shadow(0 0 15px rgba(96, 165, 250, 0.5));
  }
}

/* Concept Section */
.concept-section {
  margin: 4rem auto 5rem auto; /* 余白を増やして深呼吸できるスペースを確保 */
  max-width: 700px;
  text-align: center;
}

.concept-title {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.concept-text {
  line-height: 1.8;
  color: #555;
  margin-bottom: 2rem;
}

/* Quote Banner overrides */
#daily-quote {
  margin: 0 auto;
}

/* Update Recommend Text Icon Color */
.recommend-text i {
  color: #7dd3fc; /* Updated from inline style */
}

/* Homerare Section Updates */
.homerare-container {
  /* Existing styles remain, ensuring overrides */
  max-width: 600px;
  margin: 5rem auto 3rem auto; /* さらなる余白で独立した特別なコーナーを演出 */
  text-align: center;
  position: relative; /* Anchor for floating chip */
}

.homerare-title {
  color: var(--text-color);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.homerare-description {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1rem;
}

/* Est Date Footer */
.est-date-footer {
  text-align: center;
  margin-top: 2rem;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: 4px;
  font-size: 0.9rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.game-chip.floating-chip {
  position: absolute;
  background: rgba(255, 255, 255, 0.1); /* 限りなく透明に近い背景 */
  backdrop-filter: blur(8px); /* ガラスのような質感 */
  -webkit-backdrop-filter: blur(8px);
  color: var(--accent-color);
  font-size: 0.7rem;
  padding: 4px 15px;
  border-radius: 50px;
  letter-spacing: 2px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* 影もより控えめに */
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.3); /* 輪郭を際立たせる薄い線 */
  text-decoration: none;
  z-index: 20;
  animation: float-chip 4s ease-in-out infinite;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden; /* For shimmer clip */
}

/* 💎 Holo Shimmer Effect 💎 */
.game-chip.floating-chip::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(100, 200, 255, 0.1) 25%,
    rgba(255, 100, 255, 0.1) 50%,
    rgba(100, 200, 255, 0.1) 75%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 400% 400%;
  animation: holo-move 10s linear infinite;
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0.5;
}

@keyframes holo-move {
  0% { transform: translate(-25%, -25%) rotate(0deg); }
  100% { transform: translate(-25%, -25%) rotate(360deg); }
}

.chip-game {
  top: 10%;
  right: -140px;
}

.chip-zen {
  top: 35%;
  right: -140px;
  animation-delay: -0.5s !important;
}

.chip-rakuten {
  top: 60%;
  right: -140px;
  animation-delay: -1.5s !important;
}

.chip-amazon {
  top: 85%;
  right: -140px;
  animation-delay: -2.5s !important;
}

@keyframes float-chip {
  0%, 100% { transform: translate3d(var(--mag-x, 0), calc(-50% + var(--mag-y, 0)), 0) rotate(3deg); }
  50% { transform: translate3d(var(--mag-x, 0), calc(-75% + var(--mag-y, 0)), 0) rotate(-3deg); }
}

.game-chip.floating-chip:hover {
  transform: scale(1.1) translate3d(var(--mag-x, 0), calc(-60% + var(--mag-y, 0)), 0);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
  background: var(--accent-color);
  color: #fff;
}

/* Top Page Footer */
.top-footer {
  text-align: center;
  padding: 2rem;
  background: transparent;
  width: 100%;
  color: #64748b;
  margin-top: 2rem;
}

/* 🌟 背景アニメーション停止ボタン（フローティング） 🌟 */
.bg-toggle-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #64748b;
  padding: 0.8rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.bg-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--accent-color);
  border-color: #fff;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(59, 130, 246, 0.15);
}

.bg-toggle-btn.stopped {
  background: rgba(241, 245, 249, 0.7);
  border-color: rgba(226, 232, 240, 0.8);
  color: #94a3b8;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  transform: translateY(0) scale(1);
}

.bg-toggle-btn.stopped:hover {
  transform: translateY(-2px);
}

/* --- Responsive Adjustments --- */
@media screen and (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media screen and (max-width: 768px) {
  .hero-header-glass {
    padding: 1.5rem 1rem;
    margin: 1rem auto;
    border-radius: 20px;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-content p {
    font-size: 1rem;
    padding: 0 1rem;
  }
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin: 2rem auto;
  }
  .category-tile {
    padding: 1rem 0.4rem !important;
    font-size: 0.75rem !important;
    border-radius: 20px !important;
  }
  .category-tile i {
    width: 46px;
    height: 46px;
    font-size: 1.4rem !important;
    margin-bottom: 0.6rem !important;
    border-radius: 14px;
  }
  .quote-banner {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
  .quote-author {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    margin-top: 0.5rem;
    display: block;
  }
  .homerare-input-group {
    flex-direction: column;
  }
  .homerare-input-group button {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  .category-tile {
    padding: 0.8rem 0.2rem !important;
    font-size: 0.68rem !important;
    border-radius: 16px !important;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  .category-tile i {
    width: 40px;
    height: 40px;
    font-size: 1.2rem !important;
    margin-bottom: 0.4rem !important;
    border-radius: 12px;
  }
  .concept-section {
    padding: 0 1rem;
  }
}
