/* ============================================
   フェレット検定 - スタイルシート
   ============================================ */

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

:root {
  --primary: #8B5E3C;
  --primary-light: #C4956A;
  --primary-dark: #5C3D28;
  --accent: #E8A849;
  --accent-light: #FFD08A;
  --bg: #FFF9F0;
  --bg-alt: #FFF3E0;
  --bg-card: #FFFFFF;
  --text: #3A2D23;
  --text-light: #7A6B5D;
  --text-muted: #A89888;
  --border: #E8DDD0;
  --success: #4CAF50;
  --error: #E53935;
  --warning: #FF9800;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 2px 12px rgba(90, 60, 30, 0.08);
  --shadow-lg: 0 8px 32px rgba(90, 60, 30, 0.12);
  --font: 'Zen Maru Gothic', 'M PLUS Rounded 1c', 'Hiragino Sans', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* --- Header --- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 249, 240, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.logo { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 1.3rem; color: var(--primary-dark); }
.logo-icon { font-size: 1.6rem; }

.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a { font-size: 0.9rem; font-weight: 500; color: var(--text-light); }
.main-nav a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary); color: #fff !important; padding: 8px 20px;
  border-radius: 24px; font-weight: 700;
}
.nav-cta:hover { background: var(--primary-dark); color: #fff !important; }

.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 24px; position: relative;
}
.menu-toggle span {
  display: block; width: 100%; height: 2px; background: var(--text);
  position: absolute; left: 0; transition: var(--transition);
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 11px; }
.menu-toggle span:nth-child(3) { top: 22px; }
.menu-toggle.active span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 32px; border-radius: 28px; font-weight: 700;
  font-size: 1rem; border: none; cursor: pointer;
  transition: all var(--transition); text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: var(--bg-card); color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }

/* --- Hero --- */
.hero {
  position: relative; overflow: hidden;
  padding: 140px 24px 80px; text-align: center;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 50%, #FFF0D4 100%);
  min-height: 80vh; display: flex; align-items: center; justify-content: center;
}

.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute; border-radius: 50%; opacity: 0.08;
  background: var(--primary);
}
.shape-1 { width: 400px; height: 400px; top: -100px; right: -100px; }
.shape-2 { width: 300px; height: 300px; bottom: -50px; left: -80px; background: var(--accent); }
.shape-3 { width: 200px; height: 200px; top: 30%; left: 10%; background: var(--primary-light); }

.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-badge-top { margin-bottom: 16px; }
.hero-badge-fw {
  display: inline-block; background: var(--primary-dark); color: rgba(255,255,255,0.9);
  font-size: 0.75rem; padding: 6px 20px; border-radius: 24px; font-weight: 700;
  letter-spacing: 2px;
}
.hero-title { margin-bottom: 20px; }
.hero-title-main { display: block; font-size: 3.2rem; font-weight: 900; color: var(--primary-dark); line-height: 1.2; }
.hero-title-badge {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: 1.2rem; padding: 4px 20px; border-radius: 20px; margin-top: 12px;
}
.hero-desc { font-size: 1.1rem; color: var(--text-light); margin-bottom: 24px; line-height: 1.9; }
.hero-stats {
  display: flex; gap: 32px; justify-content: center; margin-bottom: 32px;
}
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 2.5rem; font-weight: 900; color: var(--primary-dark); line-height: 1; }
.hero-stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 700; margin-top: 4px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-ferret { margin-top: 48px; position: relative; display: inline-block; }
.ferret-emoji { font-size: 5rem; animation: ferretBounce 2s infinite ease-in-out; }
.ferret-speech {
  position: absolute; top: -20px; right: -80px;
  background: var(--bg-card); padding: 6px 16px; border-radius: 16px;
  font-size: 0.85rem; color: var(--primary); font-weight: 700;
  box-shadow: var(--shadow);
  animation: speechFloat 3s infinite ease-in-out;
}
.ferret-speech::before {
  content: ''; position: absolute; bottom: -6px; left: 20px;
  width: 12px; height: 12px; background: var(--bg-card);
  transform: rotate(45deg);
}

@keyframes ferretBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes speechFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}

/* --- Sections --- */
.section { padding: 80px 0; }
.section-title {
  text-align: center; font-size: 2rem; font-weight: 900;
  color: var(--primary-dark); margin-bottom: 16px;
  position: relative; padding-bottom: 16px;
}
.section-title::after {
  content: ''; display: block; width: 60px; height: 4px;
  background: var(--accent); border-radius: 2px;
  margin: 16px auto 0;
}
.section-lead {
  text-align: center; max-width: 700px; margin: 0 auto 48px;
  color: var(--text-light); font-size: 1rem; line-height: 2;
}

/* --- Steps --- */
.section-steps { background: var(--bg-card); padding: 60px 0; }
.steps-grid {
  display: flex; align-items: center; justify-content: center; gap: 0;
  flex-wrap: wrap;
}
.step-card {
  text-align: center; padding: 24px 20px; position: relative;
  flex: 0 1 200px;
}
.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 900;
  font-size: 0.85rem; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.step-icon { font-size: 2rem; margin-bottom: 8px; }
.step-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 4px; }
.step-card p { font-size: 0.8rem; color: var(--text-light); line-height: 1.6; }
.step-arrow {
  font-size: 1.5rem; color: var(--accent); font-weight: 900; padding: 0 4px;
  flex-shrink: 0;
}

/* --- Photo Banner --- */
.section-photo-banner { padding: 0; }
.photo-banner { padding: 0; }
.photo-banner-img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* --- About Cards --- */
.about-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.about-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 32px 24px; text-align: center;
  box-shadow: var(--shadow); transition: transform var(--transition);
}
.about-card:hover { transform: translateY(-4px); }
.about-card-icon { font-size: 2.5rem; margin-bottom: 12px; }
.about-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--primary-dark); }
.about-card p { font-size: 0.9rem; color: var(--text-light); }

/* --- Overview --- */
.section-overview { background: var(--bg-alt); }
.overview-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px; margin-bottom: 48px;
}
.overview-item {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 24px; text-align: center; box-shadow: var(--shadow);
}
.overview-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.overview-value { font-size: 1.2rem; font-weight: 900; color: var(--primary-dark); }

.rank-title { text-align: center; font-size: 1.4rem; font-weight: 900; color: var(--primary-dark); margin-bottom: 24px; }
.ranks { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 16px; }
.rank {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 28px; text-align: center; box-shadow: var(--shadow);
  border-top: 4px solid var(--border);
}
.rank-gold { border-color: #FFD700; }
.rank-silver { border-color: #C0C0C0; }
.rank-bronze { border-color: #CD7F32; }
.rank-badge { font-size: 2.5rem; margin-bottom: 8px; }
.rank-name { font-size: 1.2rem; font-weight: 900; color: var(--primary-dark); }
.rank-req { font-size: 0.9rem; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.rank-desc { font-size: 0.85rem; color: var(--text-light); }
.rank-note { text-align: center; font-size: 0.85rem; color: var(--text-muted); }

/* --- Category Grid --- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.category-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.category-num {
  font-size: 2.5rem; font-weight: 900; color: var(--accent-light);
  position: absolute; top: 12px; right: 16px; line-height: 1;
}
.category-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
.category-card p { font-size: 0.85rem; color: var(--text-light); }

/* --- CTA --- */
.section-cta { padding: 60px 0 80px; }
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg); padding: 48px 40px; text-align: center;
  color: #fff;
}
.cta-box h2 { font-size: 1.6rem; font-weight: 900; margin-bottom: 12px; }
.cta-box p { font-size: 1rem; opacity: 0.9; margin-bottom: 28px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-box .btn-secondary { border-color: #fff; color: #fff; background: transparent; }
.cta-box .btn-secondary:hover { background: #fff; color: var(--primary-dark); }
.cta-box .btn-primary { background: var(--accent); color: var(--primary-dark); }
.cta-box .btn-primary:hover { background: var(--accent-light); }
.cta-ferret { font-size: 3rem; margin-bottom: 12px; }

/* --- Supervised Banner --- */
.supervised-banner {
  background: var(--primary-dark); text-align: center; padding: 8px 24px;
  margin-top: 64px;
}
.supervised-text {
  font-size: 0.8rem; color: rgba(255,255,255,0.85); font-weight: 500;
}
.supervised-text a {
  color: var(--accent-light); font-weight: 700; text-decoration: underline;
  text-underline-offset: 2px;
}
.supervised-text a:hover { color: #fff; }

/* --- Hero Price Highlight --- */
.hero-price-highlight {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--bg-card); border-radius: 28px;
  padding: 10px 24px; margin-bottom: 24px;
  box-shadow: var(--shadow); font-size: 0.95rem; font-weight: 500;
}
.price-free { color: var(--success); font-weight: 700; }
.price-divider { color: var(--border); }
.price-paid { color: var(--text-light); }
.price-paid strong { color: var(--primary-dark); font-size: 1.1rem; }

/* --- Buttons (additional) --- */
.btn-accent { background: var(--accent); color: var(--primary-dark); font-weight: 700; }
.btn-accent:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-block { width: 100%; }

/* --- Pricing --- */
.section-pricing { background: var(--bg-alt); }
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; align-items: start;
}
.pricing-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow);
  position: relative; text-align: center;
  transition: transform var(--transition);
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-featured {
  border: 3px solid var(--accent);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}
.pricing-featured:hover { transform: scale(1.03) translateY(-4px); }
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--primary-dark);
  padding: 4px 20px; border-radius: 20px; font-size: 0.8rem; font-weight: 900;
}
.pricing-header { margin-bottom: 24px; }
.pricing-plan-name { font-size: 1.1rem; font-weight: 900; color: var(--primary-dark); margin-bottom: 8px; }
.pricing-price { display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.pricing-currency { font-size: 1.2rem; font-weight: 700; color: var(--text-light); }
.pricing-amount { font-size: 2.5rem; font-weight: 900; color: var(--primary-dark); line-height: 1; }
.pricing-period { font-size: 0.85rem; color: var(--text-muted); }
.pricing-features {
  list-style: none; text-align: left; margin-bottom: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.pricing-features li {
  font-size: 0.9rem; padding-left: 24px; position: relative; color: var(--text);
}
.pricing-features li::before {
  content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700;
}
.pricing-features li.disabled {
  color: var(--text-muted); text-decoration: line-through; opacity: 0.6;
}
.pricing-features li.disabled::before { content: '×'; color: var(--text-muted); }

/* --- Benefits --- */
.section-benefits { background: var(--bg); }
.benefits-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.benefit-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 32px 24px; text-align: center;
  box-shadow: var(--shadow); transition: transform var(--transition);
}
.benefit-card:hover { transform: translateY(-4px); }
.benefit-icon { font-size: 3rem; margin-bottom: 16px; }
.benefit-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
.benefit-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.8; }

/* --- Footer Supervised --- */
.footer-supervised {
  text-align: center; padding-bottom: 16px; margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-supervised p { font-size: 0.9rem; color: rgba(255,255,255,0.8); }
.footer-supervised a { color: var(--accent-light); font-weight: 700; }
.footer-supervised a:hover { color: #fff; }
.footer-supervised-desc { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-top: 4px; }

/* --- Exam Mode Tabs --- */
.exam-mode-tabs {
  display: flex; gap: 16px; justify-content: center;
  margin: 24px 0;
}
.exam-mode-tab {
  background: var(--bg-card); border: 2px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 20px;
  cursor: pointer; transition: all var(--transition);
  flex: 1; max-width: 280px; text-align: center;
  font-family: var(--font);
}
.exam-mode-tab:hover { border-color: var(--primary-light); }
.exam-mode-tab.active {
  border-color: var(--primary); background: #FFF5EB;
}
.exam-mode-tab h3 { font-size: 1rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 4px; }
.exam-mode-tab .mode-price { font-size: 1.5rem; font-weight: 900; color: var(--primary-dark); }
.exam-mode-tab .mode-desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* --- Access Code --- */
.access-code-box {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow);
}
.code-input-group {
  display: flex; gap: 8px; justify-content: center; max-width: 400px; margin: 0 auto;
}
.code-input {
  flex: 1; padding: 12px 16px; border-radius: var(--radius); border: 2px solid var(--border);
  font-size: 1rem; font-family: var(--font); font-weight: 700;
  text-align: center; letter-spacing: 2px; text-transform: uppercase;
  color: var(--primary-dark); background: var(--bg);
  transition: border-color var(--transition);
}
.code-input:focus { outline: none; border-color: var(--primary); }
.code-input::placeholder { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text-muted); font-size: 0.85rem; }

/* --- Footer --- */
.site-footer {
  background: var(--primary-dark); color: rgba(255,255,255,0.7);
  padding: 24px 0;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 1.1rem; }
.footer-copy { font-size: 0.8rem; }

/* ============================================
   Study Page Styles
   ============================================ */
.page-header {
  padding: 100px 24px 40px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
  text-align: center;
}
.page-header h1 { font-size: 2rem; font-weight: 900; color: var(--primary-dark); margin-bottom: 8px; }
.page-header p { color: var(--text-light); }

.study-nav {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-bottom: 32px; padding: 0 24px;
}
.study-nav-btn {
  padding: 8px 20px; border-radius: 24px; border: 2px solid var(--border);
  background: var(--bg-card); color: var(--text-light); font-weight: 700;
  font-size: 0.85rem; cursor: pointer; transition: all var(--transition);
  font-family: var(--font);
}
.study-nav-btn:hover, .study-nav-btn.active {
  border-color: var(--primary); color: var(--primary); background: var(--bg);
}

.study-section { margin-bottom: 40px; }
.study-section-title {
  font-size: 1.3rem; font-weight: 900; color: var(--primary-dark);
  margin-bottom: 16px; padding-left: 16px;
  border-left: 4px solid var(--accent);
}

.question-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 24px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.question-num {
  font-size: 0.75rem; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
}
.question-text { font-size: 1rem; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.choices { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.choice-btn {
  display: block; width: 100%; text-align: left;
  padding: 12px 16px; border-radius: var(--radius); border: 2px solid var(--border);
  background: var(--bg); color: var(--text); font-size: 0.95rem;
  cursor: pointer; transition: all var(--transition);
  font-family: var(--font); font-weight: 500;
}
.choice-btn:hover { border-color: var(--primary-light); background: #fff; }
.choice-btn.correct { border-color: var(--success); background: #E8F5E9; color: var(--success); }
.choice-btn.wrong { border-color: var(--error); background: #FFEBEE; color: var(--error); }
.choice-btn.disabled { pointer-events: none; opacity: 0.6; }
.choice-btn.show-correct { border-color: var(--success); background: #E8F5E9; opacity: 1; }

.explanation {
  margin-top: 12px; padding: 16px; border-radius: var(--radius);
  background: #FFF8E1; font-size: 0.9rem; color: var(--text-light);
  display: none; border-left: 4px solid var(--accent);
}
.explanation.show { display: block; animation: fadeIn 0.3s ease; }

/* ============================================
   Exam Page Styles
   ============================================ */
.exam-intro {
  max-width: 600px; margin: 0 auto; padding: 24px;
  text-align: center;
}
.exam-intro .btn { margin-top: 24px; }

.exam-container { max-width: 800px; margin: 0 auto; padding: 0 24px 80px; }

.exam-progress {
  position: sticky; top: 64px; z-index: 50;
  background: rgba(255, 249, 240, 0.95); backdrop-filter: blur(8px);
  padding: 12px 0; margin-bottom: 24px;
}
.progress-bar-wrap {
  height: 8px; background: var(--border); border-radius: 4px; overflow: hidden;
  margin-bottom: 8px;
}
.progress-bar {
  height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px; transition: width 0.4s ease; width: 0%;
}
.progress-info {
  display: flex; justify-content: space-between; font-size: 0.85rem;
  color: var(--text-light); font-weight: 500;
}

.exam-timer {
  font-size: 1.5rem; font-weight: 900; color: var(--primary-dark);
  text-align: center; margin-bottom: 24px;
  font-variant-numeric: tabular-nums;
}
.exam-timer.warning { color: var(--warning); }
.exam-timer.danger { color: var(--error); animation: timerPulse 1s infinite; }

@keyframes timerPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.exam-question {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow); margin-bottom: 16px;
}
.exam-question .question-num { font-size: 0.85rem; }
.exam-question .question-text { font-size: 1.05rem; }

.exam-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px; gap: 12px;
}
.exam-nav .btn { min-width: 120px; }

.exam-submit-area { text-align: center; margin-top: 32px; }

/* --- Results --- */
.result-container {
  max-width: 600px; margin: 0 auto; padding: 24px; text-align: center;
}
.result-score {
  font-size: 5rem; font-weight: 900; color: var(--primary-dark);
  line-height: 1;
}
.result-score span { font-size: 2rem; }
.result-rank {
  font-size: 1.8rem; font-weight: 900; margin: 16px 0;
}
.result-rank .rank-emoji { font-size: 3rem; display: block; margin-bottom: 8px; }
.result-message { font-size: 1rem; color: var(--text-light); margin-bottom: 32px; line-height: 1.8; }
.result-breakdown {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 24px; margin-bottom: 24px; text-align: left; box-shadow: var(--shadow);
}
.result-breakdown h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; color: var(--primary-dark); }
.breakdown-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.breakdown-row:last-child { border-bottom: none; }
.breakdown-bar {
  width: 100px; height: 8px; background: var(--border);
  border-radius: 4px; overflow: hidden; margin-left: 12px;
}
.breakdown-bar-fill { height: 100%; background: var(--primary); border-radius: 4px; }

.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --- Animations --- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.fade-in { animation: fadeIn 0.5s ease forwards; }

.anim-hidden { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.anim-visible { opacity: 1 !important; transform: translateY(0) !important; }

/* --- Mobile --- */
@media (max-width: 768px) {
  .main-nav {
    display: none; position: fixed; top: 64px; left: 0; right: 0;
    background: var(--bg); flex-direction: column; padding: 24px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .hero { padding: 120px 24px 60px; min-height: auto; }
  .hero-title-main { font-size: 2.2rem; }
  .hero-stats { gap: 20px; }
  .hero-stat-num { font-size: 2rem; }
  .steps-grid { flex-direction: column; gap: 8px; }
  .step-arrow { transform: rotate(90deg); }
  .step-card { flex: none; width: 100%; }
  .photo-banner-img { border-radius: var(--radius); }
  .exam-mode-tabs { flex-direction: column; }
  .exam-mode-tab { max-width: none; }
  .code-input-group { flex-direction: column; }
  .section { padding: 60px 0; }
  .section-title { font-size: 1.5rem; }
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
  .ranks { grid-template-columns: 1fr; }
  .cta-box { padding: 32px 24px; }
  .cta-box h2 { font-size: 1.3rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .exam-nav { flex-direction: column; }
  .exam-nav .btn { width: 100%; }
}
