/* Custom Design Tokens & Variables */
:root {
  --bg-color: #080a10;
  --text-color: #f1f5f9;
  --text-muted: #94a3b8;
  
  /* Brand Gradients */
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --accent-color: #818cf8;
  
  /* Glassmorphism Settings */
  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glass-blur: blur(12px);
  
  /* Transition timings */
  --ease-fast: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-slow: cubic-bezier(0.25, 1, 0.5, 1);
  
  /* App-specific color systems */
  --color-yokai: #a855f7;
  --color-yokai-gold: #f59e0b;
  --color-nyan: #ff6b6b;
  --color-nyan-peach: #ff8e53;
  --color-histo: #14b8a6;
  --color-histo-teal: #06b6d4;
  --color-subs: #3b82f6;
  --color-buntan: #f43f5e;
  --color-pantry: #10b981;
  --color-whitepuzzle: #ec4899;
  --color-hanabi: #eab308;
  --color-sakura: #ff77a8;
  --color-aipet: #84cc16;
  --color-darts: #f97316;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s var(--ease-fast);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Background Glowing Orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  opacity: 0.45;
  pointer-events: none;
  animation: pulse-orb 20s infinite alternate ease-in-out;
}

.orb-1 {
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, #6366f1 0%, #3b82f6 100%);
  top: -10vw;
  right: -10vw;
}

.orb-2 {
  width: 35vw;
  height: 35vw;
  background: radial-gradient(circle, #a855f7 0%, #ec4899 100%);
  top: 40vh;
  left: -15vw;
  animation-duration: 25s;
}

.orb-3 {
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, #2dd4bf 0%, #06b6d4 100%);
  bottom: -10vh;
  right: -10vw;
  animation-duration: 30s;
}

@keyframes pulse-orb {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
  100% {
    transform: translate(8%, 10%) scale(1.15);
    opacity: 0.55;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.4s var(--ease-fast);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-text {
  background: transparent;
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  border-radius: 0;
  padding: 0.4rem 1rem;
}

.btn-text:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 10, 16, 0.7);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  padding: 1.2rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.5px;
}

.logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.logo-txt {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-sub {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.logo {
  transition: filter 0.3s var(--ease-fast), transform 0.3s var(--ease-fast);
}

.logo:hover {
  filter: brightness(1.2);
  transform: translateY(-0.5px);
}

nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-link:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(129, 140, 248, 0.5);
}

/* Hero Section */
.hero-section {
  padding: 8rem 0 6rem;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

.hero-badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #818cf8;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-btns {
  display: flex;
  gap: 1.2rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img {
  position: relative;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 102, 241, 0.25);
  transition: all 0.5s var(--ease-slow);
  transform: rotate(-1deg) scale(0.98);
}

.hero-img:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(99, 102, 241, 0.35);
}

/* Section Header Shared */
.section-title-wrap {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Quiz Section */
.quiz-section {
  padding: 6rem 0;
  background: radial-gradient(ellipse at center, rgba(17, 24, 39, 0.6) 0%, transparent 80%);
}

.quiz-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  min-height: 480px;
}

.quiz-card {
  position: absolute;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 28px;
  padding: 3.5rem 3rem;
  text-align: center;
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-fast), transform 0.5s var(--ease-fast), visibility 0.5s;
  z-index: 1;
}

.quiz-card.active {
  position: relative;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
  visibility: visible;
  z-index: 2;
}

.quiz-card-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border-radius: 50%;
  padding: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  animation: bounce-slow 3s infinite alternate ease-in-out;
}

.quiz-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes bounce-slow {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.quiz-card h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.quiz-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.2rem;
}

/* Progress bar */
.quiz-progress-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.quiz-progress-bar {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 10px;
  transition: width 0.4s var(--ease-fast);
}

.quiz-q-num {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-color);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.quiz-question-text {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem !important;
  margin-bottom: 2.5rem !important;
  font-weight: 600;
}

.quiz-options {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.btn-quiz {
  flex: 1;
  max-width: 220px;
  padding: 1.2rem 2rem;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s var(--ease-fast);
  color: white;
}

.btn-quiz-icon {
  font-size: 1.4rem;
}

.btn-yes {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.btn-yes:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  border-color: rgba(16, 185, 129, 0.5);
}

.btn-no {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.btn-no:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
  border-color: rgba(239, 68, 68, 0.5);
}

.btn-back {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

.btn-back:hover {
  color: white;
}

/* Result Card Specifics */
.result-card {
  padding: 4rem 3rem 3rem;
  overflow: hidden;
}

.confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.result-badge {
  display: inline-block;
  background: rgba(129, 140, 248, 0.1);
  color: var(--accent-color);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  letter-spacing: 1px;
  margin-bottom: 2.2rem;
}

.result-app-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: center;
  text-align: left;
  margin-bottom: 3rem;
}

.result-app-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.result-app-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.result-app-info h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: white;
}

.result-app-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.result-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.result-links .btn {
  padding: 0.7rem 1.6rem;
  font-size: 0.9rem;
}

.result-footer-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
}

/* App Lineup & Grid */
.lineup-section {
  padding: 6rem 0 8rem;
}

/* Search & Filter Controls */
.controls-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 400px;
  min-width: 280px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.3s ease;
}

.search-box input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 2.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  color: white;
  font-family: inherit;
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.search-box input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(116, 0, 255, 0.5);
  box-shadow: 0 0 20px rgba(116, 0, 255, 0.25);
}

.search-box input:focus ~ .search-icon {
  color: #a855f7;
}

.search-clear-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0;
  display: none;
  line-height: 1;
  transition: color 0.2s ease;
}

.search-clear-btn:hover {
  color: white;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  max-width: 500px;
  margin: 2rem auto;
}

.no-results-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.no-results h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: white;
}

.no-results p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.filter-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 0.6rem 1.8rem;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease-fast);
}

.filter-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.filter-tab.active {
  background: #ffffff;
  color: var(--bg-color);
  border-color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.2rem;
}

/* Individual App Card Styling */
.app-card {
  background: rgba(15, 23, 42, 0.45); /* Refined glass background */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08); /* Super thin, sharp border */
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition: opacity 0.4s var(--ease-fast), 
              transform 0.4s var(--ease-fast), 
              border-color 0.3s ease, 
              box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--app-theme-color, var(--primary-gradient));
  z-index: 6;
}

/* Diagonal hover shimmer effect */
.app-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: none;
  pointer-events: none;
  z-index: 5;
}

.app-card:hover::after {
  left: 125%;
  transition: all 0.75s ease-in-out;
}

.app-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--app-glow-rgb, 99, 102, 241), 0.5); /* Glowing border matching theme */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 
              0 0 30px rgba(var(--app-glow-rgb, 99, 102, 241), 0.25); /* Colored glow backlight */
}

/* Card title hover glow */
.app-card:hover .app-card-name {
  text-shadow: 0 0 10px rgba(var(--app-glow-rgb, 255, 255, 255), 0.45);
}

/* Helper classes for smooth grid filtering transition */
.app-card.fade-in-init {
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: opacity 0.4s var(--ease-fast), transform 0.4s var(--ease-fast);
}

.app-card.fade-in-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.app-card-img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  background: rgba(0,0,0,0.2);
}

.app-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-slow);
}

.app-card:hover .app-card-img-wrap img {
  transform: scale(1.05);
}

.app-card-fallback-art {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.8) 100%);
  gap: 0.8rem;
  color: var(--text-muted);
}

.app-card-fallback-art span.emoji {
  font-size: 3rem;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
  transition: transform 0.5s var(--ease-slow);
}

.app-card:hover .app-card-fallback-art span.emoji {
  transform: scale(1.15) rotate(5deg);
}

.app-card-body {
  padding: 1.8rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.app-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.app-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.app-card-tag.font-accent {
  color: var(--app-theme-color);
}

.app-card-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.app-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
  flex-grow: 1;
  line-height: 1.5;
}

.app-card-footer {
  display: flex;
  gap: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.2rem;
}

.app-card-footer .btn {
  flex: 1;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 12px;
}

/* App store badge specific visual */
.btn-appstore,
.btn-playstore {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-appstore:hover,
.btn-playstore:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-web {
  background: var(--app-theme-color);
  color: white;
}

.btn-web:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 15px rgba(var(--app-glow-rgb), 0.3);
}

/* Footer styling */
footer {
  background: #05060b;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 5rem 0 3rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

/* Social links styling */
.header-socials {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-left: 1.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.social-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s var(--ease-fast);
  cursor: pointer;
}

.social-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.social-icon-btn.x-icon:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
}

.social-icon-btn.tiktok-icon:hover {
  color: #00f2fe;
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
}

.social-icon-btn.note-icon {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  line-height: 1;
}

.social-icon-btn.note-icon:hover {
  color: #2cb696;
  border-color: rgba(44, 182, 150, 0.4);
  box-shadow: 0 0 10px rgba(44, 182, 150, 0.25);
}

.footer-social-link svg,
.footer-social-link span {
  transition: all 0.3s ease;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
}

.footer-brand .logo {
  margin-bottom: 1.2rem;
}

.footer-desc {
  max-width: 400px;
  line-height: 1.6;
}

.footer-links h4 {
  color: white;
  margin-bottom: 1.2rem;
  font-size: 1rem;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 2rem;
  font-size: 0.82rem;
}

.footer-host a {
  color: #a855f7;
  font-weight: 600;
}

.footer-host a:hover {
  text-decoration: underline;
}

/* App Detail Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 6, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-fast), visibility 0.4s var(--ease-fast);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(var(--app-glow-rgb, 99, 102, 241), 0.1);
  width: 90%;
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 3rem 2.5rem 2.5rem;
  position: relative;
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--app-theme-color, var(--primary-gradient));
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2px;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: rotate(90deg);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-app-icon {
  font-size: 2.8rem;
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.modal-title-area {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.modal-app-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-app-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

/* Modal Body content classes */
.modal-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.modal-body p {
  margin-bottom: 1.2rem;
  white-space: pre-line;
}

.modal-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-body h4::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 14px;
  background: var(--app-theme-color, var(--primary-gradient));
  border-radius: 2px;
}

.modal-body ul {
  list-style: none;
  margin-bottom: 1.5rem;
  padding-left: 0.2rem;
}

.modal-body li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
}

.modal-body li::before {
  content: '•';
  color: var(--app-theme-color, #818cf8);
  position: absolute;
  left: 0.2rem;
  font-weight: bold;
}

.modal-footer {
  display: flex;
  gap: 1rem;
  margin-top: 2.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-footer .btn {
  flex: 1;
  padding: 0.8rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Scrollbar Customization for Modal */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Card view details button style */
.btn-details {
  background: var(--primary-gradient);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(var(--app-glow-rgb, 99, 102, 241), 0.2);
  transition: all 0.3s ease;
}

.btn-details:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--app-glow-rgb, 99, 102, 241), 0.35);
  filter: brightness(1.1);
}

/* Adjustments for grid card footer */
.app-card-footer {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.app-card-footer .btn-appstore,
.app-card-footer .btn-playstore,
.app-card-footer .btn-web {
  padding: 0.6rem;
  aspect-ratio: 1;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.app-card-footer .btn-appstore svg,
.app-card-footer .btn-playstore svg,
.app-card-footer .btn-web svg {
  margin: 0;
  width: 18px;
  height: 18px;
}

.app-card-footer .btn-details {
  flex: 1;
}

/* Confetti particles */
.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #f0f;
  border-radius: 50%;
  animation: fall 3s infinite linear;
}

@keyframes fall {
  0% { transform: translateY(-50px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(400px) rotate(360deg); opacity: 0; }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .hero-visual {
    order: -1;
    max-width: 450px;
    margin: 0 auto;
  }
  
  .result-app-layout {
    grid-template-columns: 180px 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .quiz-card {
    padding: 2.5rem 1.5rem;
  }
  
  .result-app-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .result-app-img-wrap {
    max-width: 180px;
    margin: 0 auto;
  }
  
  .result-links {
    justify-content: center;
  }
  
  .result-footer-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .controls-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }

  .search-box {
    max-width: 100%;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
