/* ══════════════════════════════════════
       DESIGN TOKENS
    ══════════════════════════════════════ */
:root {
  --green: #055747;
  --green-m: #1a5c43;
  --green-l: #2a7a5a;
  --gold: #d4af37;
  --gold-l: #e8cc6a;
  --gold-d: #a88b22;
  --white: #ffffff;
  --off: #f6f4f0;
  --dark: #07100c;
  --dark-2: #0d1a13;
  --text-muted: #6b7280;

  /* fluid spacing scale */
  --sp-xs: clamp(0.5rem, 1.5vw, 0.75rem);
  --sp-sm: clamp(0.75rem, 2vw, 1rem);
  --sp-md: clamp(1.25rem, 3vw, 2rem);
  --sp-lg: clamp(2rem, 5vw, 4rem);
  --sp-xl: clamp(3rem, 7vw, 6rem);

  /* fluid type scale */
  --t-xs: clamp(0.68rem, 1.5vw, 0.78rem);
  --t-sm: clamp(0.8rem, 2vw, 0.92rem);
  --t-base: clamp(0.9rem, 2.2vw, 1rem);
  --t-md: clamp(1rem, 2.5vw, 1.15rem);
  --t-lg: clamp(1.15rem, 3vw, 1.4rem);
  --t-xl: clamp(1.6rem, 4vw, 2.2rem);
  --t-2xl: clamp(2rem, 5vw, 3rem);
  --t-3xl: clamp(2.4rem, 6vw, 4rem);
  --t-hero: clamp(2.6rem, 7vw, 5rem);
}

/* ══════════════════════════════════════
       RESET & BASE
    ══════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  font-size: var(--t-base);
  line-height: 1.7;
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
  
}

img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
}

/* ══════════════════════════════════════
       CUSTOM CURSOR (desktop only)
    ══════════════════════════════════════ */
.cursor {
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99998;
  opacity: 0.5;
  transition: transform 0.28s cubic-bezier(0.17, 0.67, 0.51, 1.2);
}
@media (pointer: coarse) {
  .cursor,
  .cursor-ring {
    display: none;
  }
  body {
    cursor: auto;
  }
}

/* ══════════════════════════════════════
       MUSIC FLOATING BUTTON
    ══════════════════════════════════════ */
#musicBtn {
  position: fixed;
  bottom: clamp(16px, 4vw, 32px);
  right: clamp(16px, 4vw, 32px);
  z-index: 9000;
  width: clamp(46px, 10vw, 56px);
  height: clamp(46px, 10vw, 56px);
  border-radius: 50%;
  background: var(--gold);
  color: var(--green);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  box-shadow: 0 6px 28px rgba(212, 175, 55, 0.5);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s;
  animation: mPulse 2.8s ease-in-out infinite;
}
#musicBtn:hover {
  transform: scale(1.12);
}
#musicBtn.playing {
  background: var(--green);
  color: var(--gold);
  animation: none;
}
@keyframes mPulse {
  0%,
  100% {
    box-shadow: 0 6px 28px rgba(212, 175, 55, 0.5);
  }
  50% {
    box-shadow:
      0 6px 48px rgba(212, 175, 55, 0.85),
      0 0 0 10px rgba(212, 175, 55, 0.1);
  }
}

/* ══════════════════════════════════════
       SECTION GLOBALS
    ══════════════════════════════════════ */
.section {
  padding: var(--sp-xl) 0;
}

.sec-tag {
  display: inline-block;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-xs);
}
.sec-title {
  font-size: var(--t-2xl);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0;
}
.sec-title span {
  color: var(--gold);
}
.gold-bar {
  width: 48px;
  height: 3px;
  background: linear-gradient(to right, var(--gold), transparent);
  border-radius: 2px;
  margin: var(--sp-sm) 0 var(--sp-md);
}

/* Dark section helpers */
.bg-dark-section {
  background: var(--dark);
  color: var(--white);
}
.bg-dark-section .sec-tag {
  color: var(--gold);
}

/* White section helpers */
.bg-white-section {
  background: var(--white);
  color: var(--dark);
}
.bg-white-section .sec-tag {
  color: var(--green-m);
}
.bg-white-section .sec-title {
  color: var(--dark);
}

/* ══════════════════════════════════════
       REVEAL ANIMATION
    ══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.reveal.from-left {
  transform: translateX(-30px);
}
.reveal.from-right {
  transform: translateX(30px);
}
.reveal.visible {
  opacity: 1;
  transform: translate(0, 0);
}
.reveal.d1 {
  transition-delay: 0.1s;
}
.reveal.d2 {
  transition-delay: 0.2s;
}
.reveal.d3 {
  transition-delay: 0.3s;
}

/* ══════════════════════════════════════
       1. HERO
    ══════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--sp-lg) 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1527529482837-4698179dc6ce?w=1800&q=80")
    center/cover no-repeat;
  animation: hZoom 22s ease-in-out infinite alternate;
}
@keyframes hZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(17, 42, 30, 0.95) 0%,
    rgba(7, 37, 24, 0.88) 40%,
    rgba(15, 61, 46, 0.214) 70%,
    rgba(6, 21, 15, 0.196) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: var(--sp-sm);
  animation: fadeUp 0.8s ease 0.3s both;
}
.hero-title {
  font-size: var(--t-hero);
  font-weight: 900;
  line-height: 1.06;
  margin-bottom: var(--sp-sm);
  animation: fadeUp 0.9s ease 0.5s both;
}
.hero-title .gold {
  color: var(--gold);
}

/* Word rotation animation */
.word-rotate {
  display: inline-block;
  opacity: 1;
  transition: opacity 0.6s ease-in-out;
}

.hero-sub {
  font-size: var(--t-md);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--sp-md);
  animation: fadeUp 0.9s ease 0.7s both;
}
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--green);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: var(--t-xs);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: clamp(12px, 3vw, 16px) clamp(24px, 5vw, 40px);
  border-radius: 50px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
  animation: fadeUp 0.9s ease 0.9s both;
}
.btn-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-110%);
  transition: transform 0.4s ease;
}
.btn-hero:hover::after {
  transform: translateX(0);
}
.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(212, 175, 55, 0.45);
  color: var(--green);
}

/* Hero portrait */
.hero-portrait-col {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeUp 1s ease 0.6s both;
}
.hero-portrait-wrap {
  position: relative;
  display: inline-block;
}
.hero-portrait-img {
  width: clamp(220px, 35vw, 460px);
  height: clamp(300px, 46vw, 580px);
  object-fit: cover;
  border-radius: 200px 200px 160px 160px;
  border: 3px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}
.h-ring {
  position: absolute;
  inset: -12px;
  border-radius: 210px 210px 175px 175px;
  border: 1.5px dashed rgba(212, 175, 55, 0.25);
  animation: spin 32s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.h-badge {
  position: absolute;
  bottom: clamp(14px, 3vw, 22px);
  left: clamp(-30px, -6vw, -14px);
  background: var(--gold);
  color: var(--green);
  font-weight: 800;
  font-size: var(--t-xs);
  padding: 8px 14px;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.5);
  white-space: nowrap;
}

/* Particles */
.particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.particle {
  position: absolute;
  border-radius: 50%;
  animation: floatUp linear infinite;
  opacity: 0;
}
@keyframes floatUp {
  0% {
    transform: translateY(100vh);
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-60px);
    opacity: 0;
  }
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.3);
  font-size: var(--t-xs);
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: fadeUp 1s ease 1.6s both;
}
.s-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(212, 175, 55, 0.8), transparent);
  animation: lPulse 2.2s ease-in-out infinite;
}
@keyframes lPulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

/* ══════════════════════════════════════
       2. ABOUT — WHITE
    ══════════════════════════════════════ */
#about {
  background: var(--white);
  color: var(--dark);
}

.about-img-wrap {
  position: relative;
}
.about-img-frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(15, 61, 46, 0.15);
}
.about-img-frame img {
  width: 100%;
  height: clamp(280px, 45vw, 520px);
  object-fit: cover;
  transition: transform 0.6s ease;
}
.about-img-frame:hover img {
  transform: scale(1.05);
}
.about-deco-ring {
  position: absolute;
  bottom: -14px;
  right: -14px;
  width: 80px;
  height: 80px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  opacity: 0.35;
}
.about-deco-sq {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 52px;
  height: 52px;
  background: rgba(15, 61, 46, 0.07);
  border-radius: 10px;
}
.about-badge-img {
  position: absolute;
  top: 14px;
  right: -14px;
  background: var(--gold);
  color: var(--green);
  font-weight: 800;
  font-size: var(--t-xs);
  padding: 8px 14px;
  border-radius: 50px;
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.4);
}

.about-body .sec-title span {
  color: var(--green);
}
.about-body p {
  font-size: var(--t-base);
  line-height: 1.85;
  color: #4b5563;
  margin-bottom: var(--sp-sm);
}

.feat-card {
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 2vw, 18px);
  padding: clamp(12px, 2.5vw, 18px);
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: var(--off);
  margin-bottom: 12px;
  transition:
    transform 0.3s ease,
    border-color 0.3s,
    box-shadow 0.3s;
}
.feat-card:hover {
  transform: translateX(6px);
  border-color: var(--gold);
  background: #fffdf5;
  box-shadow: 0 4px 22px rgba(212, 175, 55, 0.12);
}
.feat-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(15, 61, 46, 0.09);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: var(--green);
}
.feat-title {
  font-weight: 700;
  font-size: var(--t-sm);
  color: var(--dark);
  margin-bottom: 2px;
}
.feat-desc {
  font-size: var(--t-xs);
  color: #6b7280;
  line-height: 1.65;
}

/* ══════════════════════════════════════
   3. GALLERY — DARK
══════════════════════════════════════ */
#gallery {
  background: #055747;
  padding: var(--sp-xl) 0;
  overflow: hidden;
}
.gallery-header {
  text-align: center;
  margin-bottom: var(--sp-lg);
}
.gallery-hint {
  font-size: var(--t-xs);
  color: rgba(255, 255, 255, 0.38);
  margin-top: var(--sp-xs);
  letter-spacing: 1px;
}

.g-row-wrap {
  overflow: hidden;
  margin-bottom: 14px;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 7%,
    black 93%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 7%,
    black 93%,
    transparent
  );
}
.g-row {
  display: flex;
  gap: 12px;
  width: max-content;
  will-change: transform;
}
.g-row.to-left {
  animation: gLeft 38s linear infinite;
}
.g-row.to-right {
  animation: gRight 38s linear infinite;
}
.g-row.paused,
.g-row.hover-paused {
  animation-play-state: paused !important;
}
@keyframes gLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes gRight {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.g-item {
  flex-shrink: 0;
  width: clamp(180px, 25vw, 270px);
  height: clamp(120px, 16vw, 190px);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  transform: translateZ(0);
}
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.4s ease;
  filter: brightness(0.87) saturate(0.85);
  will-change: transform;
}
.g-item:hover img {
  transform: scale(1.1);
  filter: brightness(1) saturate(1.15);
}
.g-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 1.5px solid rgba(212, 175, 55, 0);
  transition: border-color 0.35s;
  pointer-events: none;
  z-index: 2;
}
.g-item:hover::after {
  border-color: rgba(212, 175, 55, 0.55);
}
.g-zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 40px;
  height: 40px;
  background: rgba(212, 175, 55, 0.9);
  color: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  pointer-events: none;
  transition: transform 0.3s ease;
  z-index: 3;
}
.g-item:hover .g-zoom-icon {
  transform: translate(-50%, -50%) scale(1);
}

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(0, 0, 0, 0.93);
  align-items: center;
  justify-content: center;
}
#lightbox.open {
  display: flex;
}
#lb-img {
  max-width: min(88vw, 900px);
  max-height: 85vh;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  animation: lbIn 0.3s ease both;
}
@keyframes lbIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
#lb-close {
  position: absolute;
  top: 20px;
  right: 28px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.8rem;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s;
}
#lb-close:hover {
  color: var(--gold);
}

/* ══════════════════════════════════════
       4. QUIZ — WHITE
    ══════════════════════════════════════ */
#quiz {
  background: var(--white);
  color: var(--dark);
  background-image: url(../img/quiz_bg.webp);
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}
#quiz .sec-tag {
  color: var(--green-m);
}
#quiz .sec-title {
  color: var(--dark);
}
#quiz .sec-title span {
  color: var(--green);
}

.quiz-wrap {
  max-width: min(640px, 95%);
  margin: 0 auto;
}

.q-prog-bar {
  height: 4px;
  background: #e5e7eb;
  border-radius: 4px;
  margin-bottom: var(--sp-md);
  overflow: hidden;
}
.q-prog-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--green);
  transition: width 0.5s ease;
}
.q-card {
  background: var(--off);
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: clamp(20px, 5vw, 42px);
}
.q-count {
  font-size: var(--t-xs);
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: 2px;
  text-align: right;
  margin-bottom: var(--sp-sm);
}
.q-emoji {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 10px;
  display: block;
}
.q-text {
  font-size: var(--t-lg);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: var(--sp-md);
}
.q-opts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.q-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: clamp(11px, 2.5vw, 15px) clamp(14px, 3vw, 20px);
  border-radius: 12px;
  border: 1.5px solid #e5e7eb;
  background: var(--white);
  cursor: pointer;
  font-size: var(--t-sm);
  color: #374151;
  font-family: "Montserrat", sans-serif;
  transition:
    transform 0.2s ease,
    border-color 0.2s,
    background 0.2s;
}
.q-opt:hover:not(.disabled) {
  border-color: var(--green);
  background: rgba(15, 61, 46, 0.04);
  transform: translateX(5px);
  color: var(--dark);
}
.q-opt.correct {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #16a34a;
  font-weight: 700;
}
.q-opt.wrong {
  border-color: #dc2626;
  background: #fef2f2;
  color: #dc2626;
}
.q-opt.disabled {
  pointer-events: none;
}
.q-ltr {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 8px;
  border: 1.5px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--t-xs);
  font-weight: 800;
  color: #6b7280;
  flex-shrink: 0;
}
.btn-next {
  display: none;
  margin-top: var(--sp-sm);
  background: var(--green);
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: var(--t-xs);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.btn-next:hover {
  background: var(--green-m);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 61, 46, 0.28);
}
/* Result */
.q-result {
  text-align: center;
  padding: var(--sp-sm) 0;
}
.q-res-icon {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  margin-bottom: var(--sp-xs);
  display: block;
}
.q-res-score {
  font-size: clamp(2.8rem, 7vw, 3.8rem);
  font-weight: 900;
  color: var(--green);
  line-height: 1;
  margin-bottom: var(--sp-xs);
}
.q-res-title {
  font-size: var(--t-xl);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: var(--sp-xs);
}
.q-res-msg {
  font-size: var(--t-sm);
  color: #6b7280;
  line-height: 1.8;
  max-width: 420px;
  margin: 0 auto var(--sp-md);
}
.btn-restart {
  background: none;
  border: 2px solid var(--green);
  color: var(--green);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: var(--t-xs);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 26px;
  border-radius: 50px;
  cursor: pointer;
  transition:
    background 0.3s,
    color 0.3s;
}
.btn-restart:hover {
  background: var(--green);
  color: var(--white);
}

/* ══════════════════════════════════════
       5. MESSAGES — DARK
    ══════════════════════════════════════ */
#messages {
  background: linear-gradient(to bottom, #055747, #0a2c24);
  overflow: hidden;
}
.msg-header {
  text-align: center;
  margin-bottom: var(--sp-lg);
}

.msg-slider {
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 7%,
    black 93%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 7%,
    black 93%,
    transparent
  );
}
.msg-track {
  display: flex;
  gap: 18px;
  animation: msgScroll 55s linear infinite;
  width: max-content;
}
.msg-track:hover {
  animation-play-state: paused;
}
@keyframes msgScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.msg-card {
  flex-shrink: 0;
  width: clamp(240px, 38vw, 300px);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: clamp(18px, 3.5vw, 26px);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s ease,
    border-color 0.35s,
    background 0.35s,
    box-shadow 0.35s;
}
.msg-card::before {
  content: '"';
  position: absolute;
  top: -12px;
  left: 10px;
  font-size: 5rem;
  font-weight: 900;
  color: rgba(212, 175, 55, 0.08);
  line-height: 1;
  pointer-events: none;
}
.msg-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.045);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.4);
}
.msg-av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green-m);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 12px;
}
.msg-name {
  font-weight: 700;
  font-size: var(--t-xs);
  color: var(--gold);
  margin-bottom: 6px;
}
.msg-text {
  font-size: var(--t-xs);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.75;
}
.msg-stars {
  color: var(--gold);
  font-size: 0.68rem;
  margin-top: 10px;
  letter-spacing: 2px;
}


/* ══════════════════════════════════════
       COMPLIMENT — DARK
    ══════════════════════════════════════ */
#compliment {
  background: #055747;
  padding: var(--sp-xl) 0;
  text-align: center;
}
.cmp-wrap {
  max-width: min(560px, 90%);
  margin: 0 auto;
}
.cmp-msg {
  font-size: var(--t-lg);
  font-weight: 600;
  font-style: italic;
  color: var(--gold-l);
  line-height: 1.6;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 14px;
  padding: clamp(16px, 4vw, 24px) clamp(18px, 4vw, 30px);
  margin: var(--sp-md) 0;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.cmp-msg.show {
  opacity: 1;
  transform: translateY(0);
}
.btn-cmp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold-d), var(--gold));
  color: var(--green);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: var(--t-xs);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: clamp(12px, 3vw, 15px) clamp(22px, 5vw, 38px);
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}
.btn-cmp:hover {
  transform: scale(1.06);
  box-shadow: 0 14px 44px rgba(212, 175, 55, 0.42);
}
.btn-cmp:active {
  transform: scale(0.97);
}

/* ══════════════════════════════════════
       FOOTER
    ══════════════════════════════════════ */
footer {
  background: var(--white);
  padding: 8px 0 6px;
  text-align: center;
  border-top: 1px solid rgba(207, 207, 207, 0.3);
}
.f-logo {
  font-size: var(--t-xl);
  font-weight: 900;
  color: var(--green);
  margin-bottom: 8px;
}
.f-tag {
  font-size: var(--t-xs);
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.f-div {
  width: 44px;
  height: 1px;
  background: var(--green);
  opacity: 0.15;
  margin: 0 auto 14px;
}
.f-copy {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════════
       CONFETTI
    ══════════════════════════════════════ */
.cf {
  position: fixed;
  pointer-events: none;
  z-index: 99997;
  animation: cfFall linear forwards;
}
@keyframes cfFall {
  0% {
    transform: translateY(-10px) rotateZ(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotateZ(700deg);
    opacity: 0;
  }
}

/* ══════════════════════════════════════
       TOAST
    ══════════════════════════════════════ */
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(14px);
  background: var(--green);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--white);
  padding: 11px 26px;
  border-radius: 50px;
  font-size: var(--t-xs);
  font-weight: 600;
  z-index: 9500;
  opacity: 0;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  white-space: nowrap;
  pointer-events: none;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ══════════════════════════════════════
       3D ROTATION CARD
    ══════════════════════════════════════ */

.rotation-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 3vw, 32px);
  margin: 20px 0 40px;
}

.rotation-scene {
  perspective: 1200px;
  width: 100%;
  max-width: clamp(280px, 55vw, 460px);
  height: clamp(340px, 50vw, 520px);
}

.rotation-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  cursor: pointer;
}

.rotation-card.is-flipped {
  transform: rotateY(180deg);
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.rotation-card.is-unflipped {
  transform: rotateY(0deg);
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.rc-face {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 2px solid rgba(212, 175, 55, 0.22);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.rc-back {
  transform: rotateY(180deg);
}

.rc-img-wrap {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  transition: transform 0.5s ease;
}

.rc-face:hover .rc-img-wrap {
  transform: scale(1.04);
}

.rc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7, 16, 12, 0.92) 0%,
    rgba(7, 16, 12, 0.367) 40%,
    rgba(7, 16, 12, 0) 75%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  padding: clamp(20px, 4vw, 36px);
}

.rc-message {
  color: var(--white);
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  font-weight: 600;
  line-height: 1.55;
  margin: 0;
  border-left: 3px solid var(--gold);
  padding-left: 14px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease 0.4s, transform 0.4s ease 0.4s;
}

.rc-face.active-face .rc-message {
  opacity: 1;
  transform: translateY(0);
}

.rc-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, width 0.3s ease, border-radius 0.3s ease;
}

.rc-dot.active {
  background: var(--gold);
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .rotation-scene {
    height: clamp(280px, 70vw, 380px);
  }
}

@media (max-width: 480px) {
  .rotation-scene {
    height: clamp(260px, 80vw, 340px);
  }
}
/* ══════════════════════════════════════
       ANIMATIONS
    ══════════════════════════════════════ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--dark);
}
::-webkit-scrollbar-thumb {
  background: var(--green-m);
  border-radius: 10px;
}


/* ══════════════════════════════════════
       COUNTDOWN — À L'ANNÉE PROCHAINE
    ══════════════════════════════════════ */

.cd-sub {
  font-size: var(--t-sm);
  color: #6b7280;
  margin-top: var(--sp-xs);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cd-wrap {
  max-width: min(700px, 100%);
  margin: 0 auto;
  background: var(--off);
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: clamp(24px, 5vw, 52px) clamp(20px, 5vw, 48px);
}

/* Progress bar */
.cd-progress-wrap {
  margin-bottom: clamp(28px, 5vw, 44px);
}

.cd-progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--t-xs);
  color: #9ca3af;
  margin-bottom: 10px;
  gap: 8px;
}

.cd-progress-labels span:nth-child(2) {
  color: var(--gold);
  font-weight: 700;
  font-size: var(--t-sm);
}

.cd-progress-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}

.cd-progress-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(to right, var(--green), var(--gold));
  transition: width 1.2s ease;
  width: 0%;
}

/* Grid */
.cd-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 2vw, 16px);
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.cd-block {
  text-align: center;
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: clamp(14px, 3vw, 24px) clamp(12px, 3vw, 28px);
  min-width: clamp(68px, 15vw, 110px);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.cd-block:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.13);
}

.cd-block--sec {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.04);
}

.cd-num {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 900;
  color: var(--green);
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}

.cd-num--sec {
  color: var(--gold-d);
}

.cd-label {
  font-size: var(--t-xs);
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.cd-sep {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 900;
  color: #d1d5db;
  align-self: flex-start;
  padding-top: clamp(10px, 2vw, 18px);
  user-select: none;
}

/* Footer */
.cd-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(15, 61, 46, 0.06);
  border: 1px solid rgba(15, 61, 46, 0.12);
  border-radius: 14px;
  padding: clamp(14px, 3vw, 20px) clamp(16px, 3vw, 24px);
}

.cd-footer-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--green);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.cd-footer-text {
  font-size: var(--t-xs);
  color: #4b5563;
  line-height: 1.7;
  margin: 0;
}

.cd-footer-text strong {
  color: var(--green);
}

/* Responsive mobile */
@media (max-width: 480px) {
  .cd-sep {
    display: none;
  }
  .cd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .cd-block {
    min-width: unset;
    width: 100%;
  }
  .cd-progress-labels span:first-child,
  .cd-progress-labels span:last-child {
    display: none;
  }
}