/* ============================================================
   VÕ LÂM 1 HÀO KIỆT — Green RPG Theme  v19
   Fonts: Cinzel (ornament) · Philosopher (headings) · Lora (body)
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- CSS Variables ---------- */
:root {
  --gold:          hsl(44, 95%, 60%);
  --gold-glow:     rgba(250, 200, 20, 0.35);
  --green:         hsl(142, 65%, 44%);
  --green-bright:  hsl(142, 70%, 58%);
  --green-dark:    hsl(142, 55%, 10%);
  --green-glow:    rgba(34, 197, 94, 0.38);
  --green-border:  rgba(74, 222, 128, 0.30);
  --bg-deep:       #020c03;
  --bg-mid:        #041208;
  --card-bg:       rgba(4, 22, 9, 0.90);
  --text-main:     hsl(120, 6%, 91%);
  --text-muted:    hsl(120, 4%, 62%);
  --font-title:    'Philosopher', 'Taviraj', serif;
  --font-deco:     'Playfair Display', serif;
  --font-body:     'Lora', 'Spectral', serif;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: linear-gradient(160deg, var(--bg-deep) 0%, var(--bg-mid) 60%, #031006 100%);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-title);
  letter-spacing: 1px;
}
h4 { font-family: var(--font-title); }

a { text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Scrollbar hidden */
body::-webkit-scrollbar,
section::-webkit-scrollbar { display: none; }
section { width: 100%; overflow-x: hidden; }


/* ============================================================
   HEADER
   ============================================================ */
.game-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(2, 10, 3, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--green-border);
  box-shadow: 0 2px 24px rgba(34, 197, 94, 0.07);
  padding: 10px 28px;
  transition: box-shadow 0.3s;
}
.game-header.scrolled {
  box-shadow: 0 4px 36px rgba(34, 197, 94, 0.14);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  gap: 16px;
}

/* Social icons left */
.header-social {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-social a img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  opacity: 0.85;
  border-radius: 50%;
  transition: opacity 0.25s, transform 0.2s;
}
.header-social a img:hover {
  opacity: 1;
  transform: scale(1.14);
  background: #fff;
}

/* Center title — absolutely positioned so it's always visually centred */
.header-title-wrap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}
.header-game-title {
  font-family: var(--font-deco);
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 4px;
  text-shadow: 0 0 14px var(--gold-glow);
  text-decoration: none;
  transition: text-shadow 0.25s;
}
.header-game-title:hover {
  text-shadow: 0 0 22px var(--gold-glow), 0 0 8px var(--gold);
}

/* Nav right */
.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-link {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  color: hsl(120, 10%, 80%);
  letter-spacing: 0.5px;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.nav-link:hover {
  color: var(--green-bright);
  border-bottom-color: var(--green);
}
.nav-btn-login {
  font-family: var(--font-deco);
  font-size: 12px;
  font-weight: 700;
  color: #061a09;
  background: linear-gradient(135deg, var(--green), hsl(80, 65%, 52%));
  padding: 8px 20px;
  border-radius: 6px;
  letter-spacing: 1px;
  box-shadow: 0 0 16px var(--green-glow);
  transition: filter 0.25s, transform 0.25s, box-shadow 0.25s;
}
.nav-btn-login:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 0 26px var(--green-glow);
}

@media (max-width: 820px) {
  .game-header { padding: 8px 14px; }
  .header-inner { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .header-title-wrap {
    position: static;
    transform: none;
    order: -1;
    width: 100%;
  }
  .header-game-title { font-size: 13px; letter-spacing: 3px; }
  .header-social a img { width: 30px; height: 30px; }
  .nav-link { font-size: 12px; }
  .nav-btn-login { font-size: 11px; padding: 6px 12px; }
  .header-nav { gap: 12px; }
}
@media (max-width: 430px) {
  .header-game-title { font-size: 11px; letter-spacing: 2px; }
  .header-social a img { width: 26px; height: 26px; }
  .header-nav { gap: 8px; }
  .nav-link { font-size: 11px; }
  .nav-btn-login { font-size: 10px; padding: 5px 10px; }
}


/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('public/img/bg2.jpg');
  background-size: cover;
  background-position: center top;
  will-change: transform;
  transition: transform 0.15s linear;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(2, 14, 4, 0.62) 0%,
    rgba(2, 18, 5, 0.34) 30%,
    rgba(2, 18, 5, 0.44) 65%,
    rgba(2, 10, 3, 0.92) 100%
  );
}

/* Floating ambient orbs */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.hero-particles span {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.26), transparent 70%);
  animation: floatOrb linear infinite;
  opacity: 0;
}
.hero-particles span:nth-child(1) { width: 90px;  height: 90px;  left: 8%;  top: 25%; animation-duration: 13s; animation-delay: 0s; }
.hero-particles span:nth-child(2) { width: 55px;  height: 55px;  left: 82%; top: 18%; animation-duration: 19s; animation-delay: -4s; }
.hero-particles span:nth-child(3) { width: 130px; height: 130px; left: 58%; top: 55%; animation-duration: 16s; animation-delay: -7s; }
.hero-particles span:nth-child(4) { width: 44px;  height: 44px;  left: 28%; top: 68%; animation-duration: 21s; animation-delay: -11s; }
.hero-particles span:nth-child(5) { width: 70px;  height: 70px;  left: 72%; top: 38%; animation-duration: 15s; animation-delay: -5s; }
.hero-particles span:nth-child(6) { width: 38px;  height: 38px;  left: 44%; top: 8%;  animation-duration: 23s; animation-delay: -9s; }
@keyframes floatOrb {
  0%   { transform: translateY(0) scale(1);   opacity: 0; }
  12%  { opacity: 0.65; }
  50%  { transform: translateY(-70px) scale(1.15); opacity: 0.4; }
  88%  { opacity: 0.2; }
  100% { transform: translateY(-130px) scale(0.8); opacity: 0; }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 110px 24px 70px;
  width: 100%;
  max-width: 960px;
}

.hero-logo-wrap {
  margin-bottom: 22px;
  filter: drop-shadow(0 6px 40px rgba(34, 197, 94, 0.22)) drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}
.hero-logo-img {
  width: 300px;
  max-width: 82vw;
  height: auto;
}

/* Tagline */
.hero-tagline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 6px 0 34px;
}
.tagline-deco {
  color: var(--green-bright);
  opacity: 0.55;
  font-size: 16px;
  letter-spacing: -3px;
}
.tagline-line {
  font-family: var(--font-deco);
  font-size: 14px;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 3px;
  text-shadow: 0 0 20px var(--gold-glow), 0 1px 4px rgba(0,0,0,0.8);
}

/* Download buttons */
.hero-download-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-bottom: 48px;
}
.rpg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s ease;
}
.rpg-btn img {
  display: block;
  height: 104px;
  width: auto;
  filter: drop-shadow(0 2px 10px rgba(34, 197, 94, 0.28));
  transition: filter 0.3s ease;
}
.rpg-btn:hover { transform: translateY(-4px) scale(1.06); }
.rpg-btn:hover img {
  filter: drop-shadow(0 6px 20px rgba(34, 197, 94, 0.65)) brightness(1.1);
}
.rpg-btn-gold img { filter: drop-shadow(0 2px 10px rgba(250, 204, 21, 0.3)); }
.rpg-btn-gold:hover img {
  filter: drop-shadow(0 6px 20px rgba(250, 204, 21, 0.65)) brightness(1.1);
}

/* Scroll hint */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: breathe 2.2s ease-in-out infinite;
  cursor: pointer;
}
.scroll-label {
  font-family: var(--font-deco);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green-bright);
  opacity: 0.75;
}
.scroll-chevron {
  width: 18px;
  height: 18px;
  border-right: 2px solid var(--green-bright);
  border-bottom: 2px solid var(--green-bright);
  transform: rotate(45deg);
  animation: chevronBounce 1.6s ease-in-out infinite;
  opacity: 0.75;
}
@keyframes breathe {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}
@keyframes chevronBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%      { transform: rotate(45deg) translateY(5px); }
}

@media (max-width: 820px) {
  .hero-logo-img { width: 220px; }
  .tagline-line  { font-size: 11px; letter-spacing: 2px; white-space: normal; }
  .rpg-btn img   { height: 88px; }
  .hero-download-group { gap: 12px; }
}
@media (max-width: 430px) {
  .hero-logo-img { width: 170px; }
  .rpg-btn img   { height: 76px; }
  .tagline-deco  { display: none; }
}


/* ============================================================
   FEATURE STRIP
   ============================================================ */
.feature-strip {
  position: relative;
  z-index: 5;
  background: rgba(2, 16, 6, 0.97);
  border-top: 1px solid var(--green-border);
  border-bottom: 1px solid var(--green-border);
  padding: 44px 0;
}
.feature-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(34,197,94,0.04) 50%, transparent 100%);
  pointer-events: none;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 18px;
  background: rgba(8, 36, 14, 0.70);
  border: 1px solid var(--green-border);
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 36px rgba(34, 197, 94, 0.2);
  border-color: var(--green);
}
.feature-icon { font-size: 34px; flex-shrink: 0; line-height: 1; }
.feature-text h3 {
  font-family: var(--font-deco);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}
.feature-text p {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 820px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 430px) {
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .feature-item { flex-direction: column; text-align: center; gap: 8px; padding: 14px 10px; }
  .feature-icon { font-size: 26px; }
  .feature-text h3 { font-size: 11px; }
  .feature-text p  { font-size: 11px; }
}


/* ============================================================
   FACTION SECTION  — RPG character-select style
   ============================================================ */
.faction-section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.faction-scene-bg {
  position: absolute;
  inset: 0;
  background: url('public/img/bg.jpg') center center / cover no-repeat;
  z-index: 0;
}
.faction-scene-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(2, 14, 6, 0.84) 0%,
    rgba(3, 20, 8, 0.70) 40%,
    rgba(2, 14, 6, 0.90) 100%
  );
}

.faction-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 90px 40px 70px;
  display: flex;
  flex-direction: column;
  gap: 52px;
}

/* Section heading */
.faction-heading { text-align: center; }
.faction-heading h2 {
  font-family: var(--font-title);
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  margin: 8px 0 14px;
  text-shadow: 0 0 28px var(--gold-glow);
}

/* Shared decoratives */
.section-ornament {
  font-family: var(--font-deco);
  font-size: 20px;
  color: var(--green-bright);
  text-shadow: 0 0 12px var(--green-glow);
  display: block;
  margin-bottom: 4px;
  letter-spacing: 4px;
}
.divider {
  width: 110px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--green), var(--gold), var(--green), transparent);
  margin: 0 auto;
}
.section-subtitle {
  margin-top: 14px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-style: italic;
  font-size: 14px;
}

/* Showcase: portrait + info */
.faction-showcase {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 52px;
  align-items: center;
}

/* Portrait */
.faction-portrait { display: flex; justify-content: center; }
.portrait-frame {
  position: relative;
  width: 300px;
  height: 390px;
  border-radius: 20px;
  border: 2px solid var(--green);
  box-shadow:
    0 0 0 1px rgba(74,222,128,0.10),
    0 16px 64px rgba(34, 197, 94, 0.28),
    inset 0 0 40px rgba(34, 197, 94, 0.05);
  overflow: hidden;
  background: rgba(6, 30, 12, 0.60);
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s ease;
}
.portrait-frame:hover img { transform: scale(1.04); }

/* Info panel */
.faction-info { display: flex; flex-direction: column; justify-content: center; }
.faction-info-inner {
  padding: 38px 44px;
  background: rgba(4, 20, 8, 0.84);
  border: 1px solid var(--green-border);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55), inset 0 1px 0 rgba(74,222,128,0.10);
}

.faction-name-badge { margin-bottom: 12px; }
.faction-element-tag {
  display: inline-block;
  font-family: var(--font-deco);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid var(--green-border);
  color: var(--green-bright);
}

.faction-info-inner h3 {
  font-family: var(--font-title);
  font-size: 40px;
  font-weight: 700;
  color: var(--green-bright);
  margin-bottom: 6px;
  text-shadow: 0 0 22px var(--green-glow);
  line-height: 1.1;
}

.faction-weapons {
  font-family: var(--font-deco);
  font-size: 10px;
  letter-spacing: 3px;
  font-weight: 400;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 22px;
  opacity: 0.82;
}

.faction-divider-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--green), transparent);
  margin-bottom: 22px;
  border-radius: 2px;
}

.faction-desc-text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.9;
  color: hsl(120, 6%, 82%);
}

/* Elemental tab grid: 5 columns */
.faction-tabs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.element-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.element-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 10px 10px 0 0;
  border-bottom: 2px solid;
  margin-bottom: 6px;
}
.element-icon { font-size: 17px; }
.element-name {
  font-family: var(--font-deco);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.element-kim  .element-header { background: rgba(251,191,36,0.10); border-color: #fbbf24; color: #fbbf24; }
.element-moc  .element-header { background: rgba(74,222,128,0.10); border-color: #4ade80; color: #4ade80; }
.element-thuy .element-header { background: rgba(96,165,250,0.10); border-color: #60a5fa; color: #60a5fa; }
.element-hoa  .element-header { background: rgba(248,113,113,0.10); border-color: #f87171; color: #f87171; }
.element-tho  .element-header { background: rgba(217,119,6, 0.12); border-color: #d97706; color: #d97706; }

.faction-tab {
  width: 100%;
  padding: 10px 10px;
  background: rgba(6, 28, 11, 0.82);
  border: 1px solid var(--green-border);
  border-radius: 8px;
  color: hsl(120, 8%, 80%);
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: all 0.26s ease;
  text-align: center;
}
.faction-tab:hover {
  background: rgba(34, 197, 94, 0.20);
  border-color: var(--green);
  color: var(--green-bright);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(34,197,94,0.28);
}
.faction-tab.active {
  background: linear-gradient(135deg, rgba(34,197,94,0.36), rgba(74,222,128,0.20));
  border-color: var(--green-bright);
  color: var(--green-bright);
  animation: tabGlow 1.8s infinite alternate;
}
@keyframes tabGlow {
  from { box-shadow: 0 0 6px rgba(34,197,94,0.35); }
  to   { box-shadow: 0 0 20px rgba(74,222,128,0.85); }
}

/* Responsive */
@media (max-width: 1100px) {
  .faction-showcase { grid-template-columns: 260px 1fr; gap: 32px; }
  .portrait-frame { width: 240px; height: 310px; }
}
@media (max-width: 820px) {
  .faction-inner { padding: 70px 20px 50px; gap: 36px; }
  .faction-showcase { grid-template-columns: 1fr; justify-items: center; }
  .portrait-frame { width: 220px; height: 280px; }
  .faction-info-inner { padding: 24px 20px; }
  .faction-info-inner h3 { font-size: 28px; }
  .faction-heading h2 { font-size: 28px; }
  .faction-tabs-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}
@media (max-width: 600px) {
  .faction-tabs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 430px) {
  .faction-tabs-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .faction-tab { font-size: 12px; padding: 8px 6px; }
  .portrait-frame { width: 180px; height: 230px; }
  .faction-info-inner h3 { font-size: 24px; }
}


/* ============================================================
   COMMUNITY / SOCIAL SECTION
   ============================================================ */
.social-section {
  padding: 80px 0 50px;
  background: linear-gradient(180deg, rgba(2,12,4,0.99) 0%, rgba(3,18,7,0.97) 100%);
  border-top: 1px solid var(--green-border);
  position: relative;
}
.social-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 240px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.social-header { text-align: center; margin-bottom: 36px; }
.social-header h2 {
  font-family: var(--font-title);
  font-size: 34px;
  font-weight: 700;
  color: var(--gold);
  margin: 8px 0 14px;
  text-shadow: 0 0 24px var(--gold-glow);
}
.social-header p {
  margin-top: 12px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 15px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.social-link {
  background: rgba(8, 36, 14, 0.75);
  border: 1px solid var(--green-border);
  border-radius: 14px;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  min-width: 190px;
  justify-content: center;
  transition: all 0.3s ease;
}
.social-link:hover {
  background: rgba(34, 197, 94, 0.18);
  border-color: var(--green);
  transform: translateY(-5px);
  box-shadow: 0 10px 36px rgba(34, 197, 94, 0.22);
}
.social-icon-img { width: 32px; height: 32px; object-fit: contain; }
.social-text { font-family: var(--font-title); font-size: 14px; font-weight: 700; color: hsl(120, 10%, 88%); }

.age-rating-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 40px 0 10px;
}
.age-badge {
  background: var(--green-dark);
  color: var(--green-bright);
  border: 1px solid var(--green);
  padding: 6px 16px;
  border-radius: 6px;
  font-family: var(--font-deco);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}
.age-text {
  line-height: 1.55;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 13px;
}

@media (max-width: 500px) {
  .social-text { display: none; }
  .social-link { padding: 18px; min-width: unset; }
}


/* ============================================================
   ANIMATIONS & UTILITIES
   ============================================================ */
.kenburns {
  will-change: transform;
  animation: kenburns 20s ease-in-out both;
}
@keyframes kenburns {
  0%   { transform: scale(1.03) translateY(0); }
  50%  { transform: scale(1.09) translateY(10px); }
  100% { transform: scale(1.05) translateY(0); }
}

.float-y { animation: floatY 6s ease-in-out infinite; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

.btn-animated { position: relative; overflow: hidden; isolation: isolate; }
.btn-animated::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  animation: glowPulse 2.8s ease-in-out infinite;
  z-index: -1;
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.14); }
  50%      { box-shadow: 0 0 22px 4px rgba(74, 222, 128, 0.40); }
}

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  opacity: 0.45;
  background: radial-gradient(closest-side, rgba(74,222,128,0.5), rgba(34,197,94,0.15), transparent 70%);
  animation: rippleAnim 480ms ease-out forwards;
  pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(1); opacity: 0; } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .65s ease; }
.reveal.reveal-show { opacity: 1; transform: translateY(0); }

.fade-out { opacity: 0; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease; }
.fade-in  { opacity: 1 !important; transform: translateY(0) !important; }

.divider.reveal-show { position: relative; overflow: hidden; }
.divider.reveal-show::before {
  content: "";
  position: absolute;
  top: -120%; left: -30%;
  width: 60%; height: 340%;
  transform: rotate(25deg);
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.38), transparent);
  animation: sweep 1.6s ease-out 0.2s forwards;
  pointer-events: none;
}
@keyframes sweep { to { left: 110%; } }

.social-link { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
