/* ============================================
   ЗБОРЦИ - Main Stylesheet
   ============================================
   Colors (from logo):
   - Orange:  #f76100  (primary accent — "ци*")
   - Plum:    #3e1630  (headings, buttons — "збор")
   - Cream:   #faeddd  (background)
   - Black:   #111111  (body text)
   - Gray:    #6E6E6E  (secondary text)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@700;800;900&family=Space+Mono:wght@400&display=swap');

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* prevent viewport shift on iOS Safari when any element overflows */
}

body {
  font-family: 'Inter', sans-serif;
  background: #faeddd;
  color: #111111;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.font-display {
  font-family: 'Manrope', sans-serif;
}

.font-mono {
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

/* Colors */
.text-red { color: #f76100; }
.text-blue { color: #3e1630; }
.text-black { color: #111111; }
.text-gray { color: #6E6E6E; }
.text-white { color: #ffffff; }

.bg-red { background: #f76100; }
.bg-blue { background: #3e1630; }
.bg-cream { background: #faeddd; }
.bg-white { background: #ffffff; }
.bg-black { background: #111111; }

/* ---- Utility ---- */
.text-center    { text-align: center; }
.logo-star      { color: #f76100; }
.btn-full       { width: 100%; }
#userNav        { display: none; }
.section-header { text-align: center; margin-bottom: 60px; }

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 14px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: #3e1630;
  color: white;
}

.btn-primary:hover {
  background: #200A18;
  box-shadow: 0 8px 24px rgba(47, 27, 63, 0.35);
}

.btn-red {
  background: #f76100;
  color: white;
}

.btn-red:hover {
  background: #d45400;
  box-shadow: 0 8px 24px rgba(232, 114, 12, 0.35);
}

.btn-outline {
  background: transparent;
  color: #111111;
  border: 2px solid #111111;
}

.btn-outline:hover {
  background: #111111;
  color: white;
}

.btn-white {
  background: white;
  color: #3e1630;
}

.btn-white:hover {
  background: #faeddd;
}

/* ============================================
   RESULT ICON CIRCLE (modals)
   ============================================ */

.result-icon-circle {
  width: 72px; height: 72px; border-radius: 50%;
  margin: 0 auto 14px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(247,97,0,0.25);
}
.result-icon-circle.win {
  background: linear-gradient(135deg, #f76100, #fa8533);
  color: white;
}
.result-icon-circle.lose {
  background: linear-gradient(135deg, #3e1630, #5a1f44);
  color: #faeddd;
  box-shadow: 0 10px 24px rgba(62,22,48,0.3);
}

/* ============================================
   LETTER CHIPS (for kids!)
   ============================================ */

.letter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 16px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #111111;
  min-width: 48px;
  height: 48px;
  padding: 0 16px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.1);
  user-select: none;
}

.letter-chip.red {
  background: #f76100;
  color: white;
}

.letter-chip.blue   { background: #3e1630; color: white; }
.letter-chip.orange { background: #f76100; color: white; }
.letter-chip.dark   { background: #3e1630; color: white; }

/* ============================================
   CARDS
   ============================================ */

.card {
  background: white;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Manrope', sans-serif;
  font-weight: 900;
  font-size: 24px;
  color: #3e1630;
  transition: color 0.2s;
}

.logo span {
  color: #f76100;
}

.logo:hover {
  color: #f76100;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #111111;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #f76100;
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: #3e1630;
}

/* --- Featured nav items --- */
.nav-links a.nav-game {
  color: #fff;
  background: linear-gradient(135deg, #ff8a2b 0%, #f76100 100%);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(247, 97, 0, 0.35);
  animation: navGameGlow 2.4s ease-in-out infinite;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-links a.nav-game::after { display: none; }

.nav-links a.nav-game:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(247, 97, 0, 0.55);
}

.nav-links a.nav-game.active {
  color: #fff;
  box-shadow: 0 6px 22px rgba(247, 97, 0, 0.6);
}

@keyframes navGameGlow {
  0%, 100% { box-shadow: 0 4px 14px rgba(247, 97, 0, 0.35); }
  50%      { box-shadow: 0 4px 24px rgba(247, 97, 0, 0.7); }
}

.nav-links a.nav-zbor {
  color: #3e1630;
  font-weight: 700;
}

.nav-links a.nav-zbor::after { background: #3e1630; }

.nav-links a.nav-zbor:hover,
.nav-links a.nav-zbor.active {
  color: #6b2553;
}

/* --- Зборотворба: the star CTA, takes attention from everything else --- */
.nav-links a.nav-zbor-star {
  color: #fff;
  background: #3e1630;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 3px 12px rgba(62, 22, 48, 0.22);
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.nav-links a.nav-zbor-star::after { display: none; }

.nav-links a.nav-zbor-star:hover,
.nav-links a.nav-zbor-star.active {
  color: #fff;
  background: #f76100;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(247, 97, 0, 0.4);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-zbor-side {
  font-size: 14px;
  font-weight: 700;
  color: #3e1630;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid #3e1630;
  transition: background 0.2s, color 0.2s;
}

.nav-zbor-side:hover,
.nav-zbor-side.active {
  background: #3e1630;
  color: #fff;
}

/* --- Игра: translucent outline pill, sits beside the login button --- */
.nav-game-side {
  font-size: 14px;
  font-weight: 700;
  color: #f76100;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(247, 97, 0, 0.55);
  background: rgba(247, 97, 0, 0.07);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.nav-game-side:hover,
.nav-game-side.active {
  background: #f76100;
  border-color: #f76100;
  color: #fff;
}

/* Round the navbar login button to match the Игра / Зборотворба pills */
#guestNav .btn-primary {
  border-radius: 999px;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: white;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}

/* Mobile menu */
.mobile-toggle {
  display: none;
  background: none;
  padding: 8px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 998;
  background: white;
  border-top: 3px solid #f76100;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 8px 0 20px;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu .container {
  display: block !important;
  padding: 0;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #3e1630;
  border-bottom: 1px solid #faeddd;
  transition: background 0.15s, color 0.15s;
  min-height: 48px;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:active {
  background: #faeddd;
}

.mobile-menu a.nav-game {
  color: #f76100;
  font-weight: 800;
}

.mobile-menu a.nav-zbor {
  color: #3e1630;
  font-weight: 700;
}

.mobile-menu a.nav-zbor-star {
  color: #fff;
  background: #3e1630;
  font-weight: 800;
  justify-content: center;
  margin: 8px 16px;
  border-radius: 14px;
  border-bottom: none;
}

/* ============================================
   MASCOT
   ============================================ */

.mascot {
  width: 160px;
  height: auto;
}

.mascot-small {
  width: 80px;
}

.mascot-large {
  width: 240px;
}

#mascot-svg {
  animation: mascotFloat 5s ease-in-out infinite;
  transform-origin: center bottom;
  will-change: transform;
}

@keyframes mascotFloat {
  0%   { transform: translateY(0px)   rotate(0deg); }
  20%  { transform: translateY(-10px) rotate(1.2deg); }
  45%  { transform: translateY(-6px)  rotate(-0.6deg); }
  65%  { transform: translateY(-13px) rotate(0.8deg); }
  80%  { transform: translateY(-5px)  rotate(-1deg); }
  100% { transform: translateY(0px)   rotate(0deg); }
}

/* ============================================
   ANIMATIONS (smooth & varied)
   ============================================ */

/* Fade in from bottom */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade in from left */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade in from right */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scale in */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Gentle float */
@keyframes gentleFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Letter bounce */
@keyframes letterBounce {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-6px) rotate(-2deg);
  }
  75% {
    transform: translateY(-3px) rotate(2deg);
  }
}

/* Pulse glow — used by mascot-wrap::before and mascot-card-wrap::before */
@keyframes pulseGlow {
  0%, 100% { transform: scale(1);    opacity: 0.6; }
  50%       { transform: scale(1.08); opacity: 0.9; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.7s ease-out forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.7s ease-out forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 0.7s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.6s ease-out forwards;
}

.animate-float {
  animation: gentleFloat 3s ease-in-out infinite;
}

.animate-bounce-letter {
  animation: letterBounce 2s ease-in-out infinite;
}

/* Stagger delays */
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }
.delay-5 { animation-delay: 0.5s; opacity: 0; }

/* ============================================
   MODAL / POPUP
   ============================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(47, 27, 63, 0.55);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: 28px;
  padding: 40px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(47, 27, 63, 0.2);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

/* ---- Auth form (login / signup modal) ---- */
.auth-form  { display: flex; flex-direction: column; gap: 14px; }
.auth-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.auth-input {
  width: 100%; padding: 14px 18px; border-radius: 14px;
  border: 2px solid #e5e5e5; background: #faeddd;
  font-family: inherit; font-size: 15px; outline: none;
  transition: all 0.2s; box-sizing: border-box;
}
.auth-input:focus   { border-color: #3e1630; background: white; }
.auth-error         { color: #E43D2B; font-size: 13px; text-align: center; margin: 0; min-height: 18px; }
.auth-link          { color: #3e1630; font-weight: 600; }
.otp-email-addr     { font-weight: 700; font-size: 15px; color: #3e1630; margin-bottom: 4px; }

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #faeddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #f76100;
  color: white;
}

/* ============================================
   TAB PANELS
   ============================================ */

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeInUp 0.4s ease;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ============================================
   SECTION SPACING
   ============================================ */

.section {
  padding: 80px 0;
}

.section-large {
  padding: 120px 0;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: #3e1630;
  color: white;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  align-items: start;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  padding-left: 0;
}

.footer-col ul li { margin-bottom: 8px; }

.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: white; }

.footer-col-brand h3 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 10px;
  color: white;
}

.footer-col-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 260px;
}

.footer-social { display: flex; gap: 10px; margin-top: 14px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-heart    { color: #f76100; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer: 2 cols on tablet */
  footer .container > div:first-child {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
    align-items: start !important;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }
}

/* ── Navbar tightening for 769px–920px ── */
@media (max-width: 920px) and (min-width: 769px) {
  .navbar { padding: 10px 0; }

  .logo { font-size: 20px; }

  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 12px;
    white-space: nowrap;
  }

  .nav-links a.nav-game {
    padding: 6px 12px;
  }

  /* Compact Зборотворба pill for this range */
  .nav-zbor-side {
    font-size: 11px;
    padding: 6px 10px;
    white-space: nowrap;
  }

  .nav-game-side {
    font-size: 11px;
    padding: 6px 12px;
    white-space: nowrap;
  }

  .nav-user { gap: 8px; }

  /* Keep Најави се on one line */
  #guestNav .btn-primary {
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
  }

  .user-badge {
    font-size: 13px;
    padding: 6px 12px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  /* Hide Зборотворба & Игра pills from navbar on mobile (they're in the mobile menu) */
  .nav-zbor-side,
  .nav-game-side {
    display: none !important;
  }

  /* Login button: icon-only on mobile to avoid navbar crowding */
  #guestNav .btn-primary {
    padding: 8px !important;
    font-size: 0 !important;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50% !important;
    justify-content: center;
    gap: 0 !important;
  }
  #guestNav .btn-primary i,
  #guestNav .btn-primary svg {
    width: 20px !important;
    height: 20px !important;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 60px 0;
  }

  .section-large {
    padding: 80px 0;
  }

  .modal {
    padding: 24px;
  }

  .mascot {
    width: 120px;
  }

  /* Footer: 2 cols, copyright centered */
  footer { padding: 44px 0 22px !important; }
  footer .container > div:first-child {
    grid-template-columns: 1fr 1fr !important;
    gap: 26px 18px !important;
    align-items: start !important;
  }
  footer .container > div:last-child {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    gap: 4px !important;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 26px 18px !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 6px !important;
  }
  /* Hero button row: stacked on mobile */
  .hero-btn-row {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .hero-btn-row .btn { width: 100%; justify-content: center; }

}

@media (max-width: 480px) {
  .letter-chip {
    min-width: 40px;
    height: 40px;
    font-size: 16px;
    padding: 0 12px;
  }

  .word-slot {
    width: 44px;
    height: 52px;
    font-size: 20px;
  }

  .letter-tile {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  /* Footer: still 2 cols, tighter gap */
  footer { padding: 36px 0 18px !important; }
  footer .container > div:first-child {
    grid-template-columns: 1fr 1fr !important;
    gap: 22px 14px !important;
    align-items: start !important;
  }
  footer .container > div:first-child ul { padding-left: 0; }

}

/* ============================================
   GRAIN OVERLAY
   ============================================ */

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #faeddd;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* ============================================
   FOOTER SOCIAL BUTTONS
   ============================================ */

.social-btn {
  width: 44px;
  height: 44px;
  background: #1e1e1e;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.social-btn i {
  transition: transform 0.25s ease, color 0.25s ease;
  color: #888;
  position: relative;
  z-index: 1;
}

.social-btn:hover {
  transform: translateY(-4px) scale(1.1);
}

/* Instagram — gradient pink/purple */
.social-btn-instagram:hover {
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 70%, #285AEB 100%);
  box-shadow: 0 8px 24px rgba(214, 36, 159, 0.45);
}

.social-btn-instagram:hover i {
  color: white;
  transform: rotate(-8deg) scale(1.15);
}

/* TikTok — sleek black */
.social-btn-tiktok:hover {
  background: #010101;
  box-shadow: 0 8px 24px rgba(105, 201, 208, 0.5);
}

.social-btn-tiktok:hover i,
.social-btn-tiktok:hover svg {
  color: white;
  transform: scale(1.15);
}

/* Facebook — brand blue */
.social-btn-facebook:hover {
  background: #1877F2;
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.45);
}

.social-btn-facebook:hover i {
  color: white;
  transform: scale(1.15);
}

/* ============================================
   AMBIENT BACKGROUND SYSTEM
   ============================================ */

.ambient-layer { 
  position: absolute; 
  inset: 0; 
  overflow: hidden; 
  pointer-events: none; 
  z-index: 0; 
}

.ambient-orb {
  position: absolute; 
  border-radius: 50%;
  filter: blur(60px); 
  opacity: 0.35;
  animation: orbDrift 18s ease-in-out infinite;
}

.ambient-orb.o1 { 
  width: 340px; 
  height: 340px; 
  top: -80px; 
  left: -120px;
  background: radial-gradient(circle, #f76100, transparent 70%); 
  animation-delay: 0s; 
}

.ambient-orb.o2 { 
  width: 280px; 
  height: 280px; 
  top: 30%; 
  right: -100px;
  background: radial-gradient(circle, #3e1630, transparent 70%); 
  animation-delay: -6s; 
  opacity: 0.25; 
}

.ambient-orb.o3 { 
  width: 260px; 
  height: 260px; 
  bottom: -80px; 
  left: 30%;
  background: radial-gradient(circle, #fa8533, transparent 70%); 
  animation-delay: -12s; 
}
@keyframes orbDrift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(40px,-30px) scale(1.08); }
  66%     { transform: translate(-30px,40px) scale(0.94); }
}
.ambient-grid {
  position: absolute; 
  inset: 0;
  background-image:
    linear-gradient(rgba(62,22,48,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62,22,48,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6), transparent 70%);
}

/* ============================================
   GRADIENT SHINE TITLES
   ============================================ */

@keyframes titleShine {
  0%   { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}
.hero-gradient-title {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  font-weight: 900;
  font-family: 'Manrope', sans-serif;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #3e1630 0%, #f76100 40%, #fa8533 60%, #3e1630 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; 
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShine 6s linear infinite;
  margin-bottom: 20px;
}

.section-gradient-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 3.5vw, 42px);
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, #3e1630 0%, #f76100 50%, #3e1630 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShine 6s linear infinite;
}

/* ============================================
   PILL LABELS
   ============================================ */

.pill-label {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: #3e1630;
  color: #fff;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.pill-label.orange { 
  background: linear-gradient(135deg, #f76100, #fa8533); 
}
.pill-label.light  {
   background: rgba(250,237,221,0.15); 
   color: rgba(250,237,221,0.9); 
   border: 1px solid rgba(250,237,221,0.2); 
  }

.pill-label.gold   { 
  background: linear-gradient(135deg, #d97706, #f59e0b); 
}

/* ============================================
   DECORATIVE ELEMENTS
   ============================================ */

.deco-letter {
  position: absolute;
  opacity: 0.55;
  pointer-events: none;
  animation: gentleFloat 4s ease-in-out infinite;
  z-index: 0;
}
.deco-letter .letter-chip { 
  transform: scale(0.7); 
  box-shadow: 0 6px 16px rgba(62,22,48,0.14); 
}

@media (max-width: 900px) { 
  .deco-letter { display: none; } 
}

.big-deco-letter {
  position: absolute;
  font-family: 'Manrope', sans-serif;
  font-weight: 900;
  color: rgba(250,237,221,0.06);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  line-height: 1;
}

@keyframes rotateDash {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ============================================
   MASCOT GLOW SYSTEM
   ============================================ */

.mascot-wrap { 
  position: relative; 
  display: inline-block; 
}

.mascot-wrap::before {
  content: '';
  position: absolute; inset: -40px;
  background: radial-gradient(circle, rgba(247,97,0,0.12), transparent 70%);
  filter: blur(40px);
  z-index: 0;
  animation: pulseGlow 3s ease-in-out infinite;
}

.mascot-wrap > svg 
{ position: relative;
   z-index: 1; 
  }

.mascot-card-wrap {
   position: relative;
    display: inline-block; 
  }

.mascot-card-wrap::before {
  content: '';
  position: absolute; inset: -30px;
  background: radial-gradient(circle, rgba(247,97,0,0.12), transparent 70%);
  filter: blur(35px);
  z-index: 0;
  animation: pulseGlow 3s ease-in-out infinite;
}

.mascot-card-wrap > svg { 
  position: relative;
   z-index: 1; 
  }

/* ============================================
   SHARED UTILITIES
   ============================================ */

.btn-shimmer { 
  position: relative;
   overflow: hidden; 
  }

.btn-shimmer::after {
  content: '';
  position: absolute; top: 0; left: -150%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.8s ease;
}

.btn-shimmer:hover::after {
   left: 160%; 
  }

.otp-inputs {
   display: flex;
    gap: 10px;
     justify-content: center;
      margin: 20px 0 8px; 
    }

.otp-input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  border: 2px solid #e5e5e5; 
  border-radius: 14px;
  background: #faeddd; 
  outline: none;
  transition: border-color 0.2s; 
  background: 0.2s;
}
.otp-input:focus {
  border-color: #3e1630; 
  background: #fff; 
}

@keyframes successPop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.18); }
  100% { transform: scale(1); opacity: 1; }
}

/* ============================================
   HOME PAGE — index.html
   ============================================ */

.home-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #faeddd 0%, #fff 50%, #faeddd 100%);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 48px;
}

.home-hero > .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.home-hero .hero-gradient-title {
  font-size: clamp(44px, 5.2vw, 76px);
  line-height: 1.03;
}

/* Hero two-column grid (desktop) */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

/* Hero CTA button row */
.hero-btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0;
}

/* Mascot column — relative so floating chips anchor to it */
.hero-mascot-col {
  position: relative;
  text-align: center;
}

/* Decorative elements — visible on desktop */
.hero-float-chip   { display: block; }
.hero-mascot-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(247,97,0,0.15);
  font-size: 13px;
  color: #3e1630;
  font-weight: 600;
}

/* Zbor letter chip row + stats — visible on desktop */
.hero-zbor-chips {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.hero-stats-row {
  display: flex;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: nowrap;
}

/* Mascot size on desktop */
.hero-mascot-col .mascot-large { width: 240px; }

/* Feature two-column grid (desktop) */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-stat {
  flex: 1;
  min-width: 0;
  position: relative;
  padding: 12px 16px 12px 20px;
  border-radius: 16px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(247,97,0,0.1);
  transition: transform 0.3s ease;
}

.hero-stat::before {
  content: ''; 
  position: absolute; 
  left: 0; 
  top: 20%; 
  bottom: 20%;
  width: 3px; 
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #f76100, #fa8533);
}

.hero-stat.plum::before { 
  background: linear-gradient(180deg, #3e1630, #5a1f44); 
}

.hero-stat:hover { transform: translateY(-4px); }

.hero-stat-num       { font-family: 'Manrope', sans-serif; font-weight: 900; font-size: 30px; color: #f76100; line-height: 1; }
.hero-stat-num.plum  { color: #3e1630; }
.hero-stat-label     { font-size: 12px; color: #6E6E6E; font-weight: 600; margin-top: 4px; }

.step-card {
  background: #fff; 
  border: 2px solid transparent; 
  border-radius: 22px;
  padding: 32px 26px; 
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  transition: all 0.35s cubic-bezier(.2,.8,.2,1);
  position: relative; 
  overflow: hidden;
}
.step-card::before {
  content: ''; 
  position: absolute; 
  left: 0; 
  top: 0; 
  right: 0; 
  height: 4px;
  background: linear-gradient(90deg, #f76100, #fa8533);
  transform: scaleX(0); 
  transform-origin: left; 
  transition: transform 0.4s ease;
}

.step-card.s2::before { 
  background: linear-gradient(90deg, #3e1630, #5a1f44); 
}

.step-card.s3::before { 
  background: linear-gradient(90deg, #10b981, #34d399); 
}

.step-card:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 22px 46px rgba(62,22,48,0.12); 
  border-color: #f7c9aa; 
}

.step-card:hover::before { 
  transform: scaleX(1); 
}

.step-num-circle {
  width: 72px; 
  height: 72px; 
  border-radius: 22px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  margin: 0 auto 22px;
  font-family: 'Manrope', sans-serif; 
  font-weight: 900; 
  font-size: 30px; 
  color: white;
  position: relative; 
  transition: transform 0.35s ease;
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
}

.step-card:hover .step-num-circle { 
  transform: scale(1.08) rotate(-6deg); 
}

.step-num-circle::after {
  content: ''; 
  position: absolute; 
  inset: -5px; 
  border-radius: 26px;
  border: 2px dashed currentColor; 
  opacity: 0.25;
}
.step-num-circle.n1 { 
  background: linear-gradient(135deg, #f76100, #fa8533); 
}
.step-num-circle.n2 { 
  background: linear-gradient(135deg, #3e1630, #5a1f44); 
}
.step-num-circle.n3 { background: linear-gradient(135deg, #10b981, #34d399); }

.step-card h3 { font-size: 20px; margin-bottom: 12px; }
.step-card p  { color: #6E6E6E; font-size: 15px; line-height: 1.6; }

.feature-image-card { 
  border-radius: 28px; 
  overflow: hidden; 
  box-shadow: 0 24px 64px rgba(62,22,48,0.18); 
  position: relative; 
  border: 4px solid #fff; 
}
.feature-image-card::after {
  content: ''; 
  position: absolute; 
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(62,22,48,0.25)); 
  pointer-events: none;
}
.feature-badge {
  position: absolute; 
  bottom: 16px; 
  left: 16px; 
  right: 16px;
  background: rgba(255,255,255,0.95); 
  backdrop-filter: blur(10px);
  border-radius: 16px; 
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1;
}
.feature-badge-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, #f76100, #fa8533);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(247,97,0,0.3);
}
.feature-badge-icon i,
.feature-badge-icon svg { width: 20px; height: 20px; color: white; }
.feature-badge-title { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 14px; color: #3e1630; }
.feature-badge-sub   { font-size: 12px; color: #6E6E6E; }

.community-section {
  position: relative;
  overflow: hidden;
  background: #2a0c1e;
  color: white;
}
.community-section h2 {
  font-size: clamp(32px, 4vw, 52px);
  margin: 10px 0 20px;
  color: white;
  font-weight: 900;
  line-height: 1.1;
}
.community-desc    { opacity: 0.9; max-width: 520px; margin: 0 auto 32px; font-size: 17px; line-height: 1.7; }
.community-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.community-section .btn-white   { color: #f76100; }
.community-section .btn-outline { color: #fff; border-color: rgba(250,237,221,0.3); }
.community-section > .container { 
  position: relative; 
  z-index: 1; 
}
.newsletter-card {
  max-width: 680px; 
  margin: 0 auto; 
  text-align: center; 
  padding: 56px 44px;
  background: #fff; 
  border-radius: 28px; 
  position: relative; 
  overflow: hidden;
  box-shadow: 0 20px 54px rgba(62,22,48,0.10); 
  border: 2px solid #f7c9aa;
}
.newsletter-card::before {
  content: ''; 
  position: absolute; 
  top: -80px; 
  right: -80px;
  width: 240px; 
  height: 240px; 
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247,97,0,0.18), transparent 70%);
}
.newsletter-card::after {
  content: ''; 
  position: absolute; 
  bottom: -60px; 
  left: -60px;
  width: 180px; 
  height: 180px; 
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62,22,48,0.12), transparent 70%);
}
.newsletter-card > * { 
  position: relative; 
  z-index: 1; 
}
.newsletter-icon {
  width: 70px;
  height: 70px;
  border-radius: 22px;
  background: linear-gradient(135deg, #f76100, #fa8533);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 10px 24px rgba(247,97,0,0.35);
  color: white;
}
.newsletter-input {
  flex: 1; min-width: 200px; padding: 14px 20px;
  border-radius: 14px; border: 2px solid #e5e5e5;
  background: #faeddd; font-family: inherit; font-size: 15px;
  outline: none; transition: all 0.2s;
}
.newsletter-input:focus { border-color: #3e1630; background: white; }
.newsletter-benefits   { display: flex; justify-content: center; gap: 20px; margin-top: 20px; flex-wrap: wrap; font-size: 12px; color: #6E6E6E; }
.newsletter-benefit    { display: inline-flex; align-items: center; gap: 6px; }
.newsletter-benefit i,
.newsletter-benefit svg { width: 14px; height: 14px; color: #10b981; }

@media (max-width: 1024px) {
  .home-hero { 
    padding-top: 110px !important; 
    padding-bottom: 60px !important; 
  }
  .hero-grid { 
    gap: 30px !important; 
  }
  .hero-grid > div:first-child .deco-letter { 
    display: none !important; 
  }
  .mascot-large { 
    width: 200px !important; 
  }
  .feature-grid { 
    grid-template-columns: 1fr !important;
    gap: 36px !important; 
  }
  .feature-image-card img { 
    height: 360px !important; 
  }
  .big-deco-letter { 
    font-size: 220px !important; 
    opacity: 0.05; 
  }
  .footer-grid { 
    grid-template-columns: 1fr 1fr !important; 
    gap: 32px !important; 
  }
  .newsletter-card { 
    padding: 44px 32px !important; 
  }
}
@media (max-width: 768px) {
  .home-hero { 
    padding-top: 130px !important; 
    padding-bottom: 64px !important; 
  }
  .hero-grid { 
    grid-template-columns: 1fr !important; 
    gap: 0 !important; 
  }
  .hero-grid > div:first-child 
  { position: relative; 
    z-index: 2; 
  }
  .hero-mascot-col { 
    position: absolute !important; 
    top: 130px; 
    right: 18px; 
    width: auto !important; 
    z-index: 1; 
    text-align: center !important; 
  }
  .mascot-large { 
    width: 115px !important; 
  }
  .mascot-wrap::before { 
    display: none; 
  }
  .hero-float-chip { 
    display: none !important; 
  }
  .hero-mascot-badge { 
    display: none !important; 
  }
  .hero-grid .pill-label { 
    font-size: 10px !important; 
    padding: 5px 12px !important; 
    letter-spacing: 1.5px !important; 
    margin-bottom: 16px !important; 
  }
  .home-hero .hero-gradient-title { 
    font-size: clamp(40px, 11.5vw, 64px) !important; 
    line-height: 1.0 !important; 
    margin-bottom: 22px !important; 
    padding-right: 130px; 
  }
  .hero-grid > div:first-child p 
  { font-size: 15px !important; 
    line-height: 1.6 !important; 
    margin-bottom: 26px !important; 
    max-width: 100% !important; 
    padding-right: 130px !important; 
  }
  .hero-grid > div:first-child > div[style*="gap: 16px"],
  .hero-btn-row {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: stretch !important;
  }
  .hero-grid .btn { 
    width: 100%; 
    justify-content: center; 
  }
  .hero-grid .btn-red { 
    font-size: 15px !important; 
    padding: 14px 18px !important; 
  }
  .hero-grid .btn-outline { 
    font-size: 14px !important; 
    padding: 12px 16px !important; 
  }
  .hero-zbor-chips { 
    display: none !important; 
  }
  .hero-stats-row { 
    display: none !important; 
  }
  .hero-grid > div:first-child .deco-letter { 
    display: none !important; 
  }
  .step-card { 
    padding: 26px 20px; 
  }
  .step-num-circle { 
    width: 60px; 
    height: 60px; 
    font-size: 26px; 
  }
  .feature-image-card img { 
    height: 240px !important; 
  }
  .big-deco-letter { 
    display: none !important; 
  }
  .community-section .container h2 br { 
    display: none; 
  }
  .newsletter-card { 
    padding: 36px 22px !important; 
   }
  .newsletter-card form { 
    flex-direction: column; 
  }
  .newsletter-card form input, .newsletter-card form button { 
    width: 100% !important; 
  }
}
@media (max-width: 480px) {
  .home-hero { 
    padding-top: 120px !important; 
    padding-bottom: 52px !important; 
  }
  .hero-mascot-col { 
    top: 115px !important; 
    right: 14px !important; 
  }
  .mascot-large { 
    width: 95px !important; 
  }
  .home-hero .hero-gradient-title { 
    font-size: clamp(34px, 10vw, 48px) !important; 
    padding-right: 108px !important; 
  }
  .hero-grid > div:first-child p { 
    font-size: 14px !important; 
  }
  .feature-image-card img { 
    height: 200px !important; 
  }
  .newsletter-card { 
    padding: 30px 18px !important; 
  }
  .newsletter-icon { 
    width: 56px; 
    height: 56px; 
  }
}

/* ============================================
   ABOUT PAGE — pages/about.html
   ============================================ */

.about-hero { 
  position: relative; 
  overflow: hidden; 
}
.about-hero > .container { 
  position: relative; 
  z-index: 1; 
}
.about-hero .hero-gradient-title {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
}

/* Hero inner 2-col grid — controlled via CSS so media queries can override */
.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

/* Hero team photo */
.about-hero-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

/* Mission/Vision 2-col grid */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* Section padding shared across about-page sections */
.about-section {
  padding: 100px 0;
}

.mv-card {
  background: #fff; 
  border: 2px solid #f0e0c8; 
  border-radius: 24px; 
  padding: 36px 34px;
  position: relative; 
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease;
}
.mv-card::before {
  content: ''; 
  position: absolute; 
  left: 0; top: 12%; 
  bottom: 12%;
  width: 5px; 
  border-radius: 0 5px 5px 0;
  background: linear-gradient(180deg, #f76100, #fa8533);
}
.mv-card.plum::before { 
  background: linear-gradient(180deg, #3e1630, #5a1f44); 
}
.mv-card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 20px 44px rgba(62,22,48,0.10); 
}
.mv-icon-box {
  width: 64px; 
  height: 64px; 
  border-radius: 20px;
  display: flex; 
  align-items: center; 
  justify-content: center; 
  margin-bottom: 24px;
  background: linear-gradient(135deg, #faeddd, #fff);
  box-shadow: 0 8px 20px rgba(247,97,0,0.12), inset 0 0 0 1px rgba(247,97,0,0.18);
  color: #f76100; 
  transition: transform 0.3s ease;
}
.mv-card.plum .mv-icon-box { 
  color: #3e1630; 
  box-shadow: 0 8px 20px rgba(62,22,48,0.14), inset 0 0 0 1px rgba(62,22,48,0.2); 
}
.mv-card:hover .mv-icon-box { 
  transform: scale(1.08) rotate(-4deg); 
}
.value-card {
  background: #fff; 
  border: 2px solid transparent; 
  border-radius: 20px; 
  padding: 28px 22px;
  text-align: center; 
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  transition: all 0.3s cubic-bezier(.2,.8,.2,1); 
  position: relative; 
  overflow: hidden;
}
.value-card::before {
  content: ''; 
  position: absolute; 
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(247,97,0,0.05));
  opacity: 0; 
  transition: opacity 0.3s ease;
}
.value-card:hover { 
  transform: translateY(-6px); 
  box-shadow: 0 20px 40px rgba(62,22,48,0.12); 
  border-color: #f7c9aa; 
}
.value-card:hover::before { 
  opacity: 1; 
}
.value-icon { 
  width: 60px; 
  height: 60px; 
  border-radius: 18px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  margin: 0 auto 20px; 
  transition: transform 0.3s ease; 
}
.value-card:hover .value-icon { 
  transform: scale(1.1) rotate(-6deg); 
}
.value-icon.v1 { 
  background: linear-gradient(135deg, #fce7e6, #fde5c8); 
  color: #f76100; 
  box-shadow: 0 6px 16px rgba(247,97,0,0.18); }
.value-icon.v2 { 
  background: linear-gradient(135deg, #fde5c8, #fff); 
  color: #3e1630; 
  box-shadow: 0 6px 16px rgba(62,22,48,0.15); 
}
.value-icon.v3 { 
  background: linear-gradient(135deg, #d1fae5, #fff); 
  color: #10b981; 
  box-shadow: 0 6px 16px rgba(16,185,129,0.18); }
.value-icon.v4 { 
  background: linear-gradient(135deg, #fef3c7, #fff); 
  color: #d97706; 
  box-shadow: 0 6px 16px rgba(217,119,6,0.18); }

.step-row {
  display: flex; 
  gap: 28px; 
  align-items: flex-start; 
  padding: 22px;
  border-radius: 20px; 
  background: #fff; 
  border: 2px solid transparent;
  margin-bottom: 20px; 
  transition: all 0.3s cubic-bezier(.2,.8,.2,1);
  position: relative; 
  overflow: hidden;
}
.step-row:hover { 
  transform: translateX(6px); 
  border-color: #f7c9aa; 
  box-shadow: 0 14px 34px rgba(62,22,48,0.08); 
}
.step-num {
  min-width: 68px; 
  height: 68px; 
  border-radius: 22px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-family: 'Manrope', sans-serif; 
  font-weight: 900; 
  font-size: 28px; 
  color: white; 
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(0,0,0,0.15); 
  position: relative; 
  transition: transform 0.3s ease;
  will-change: transform;
}
.step-row:hover .step-num { 
  transform: rotate(-6deg) scale(1.04); 
}
.step-num::after { 
  content: ''; 
  position: absolute; 
  inset: -4px; 
  border-radius: 26px; 
  border: 2px dashed currentColor; 
  opacity: 0.2; 
}
.step-num.n1 { 
  background: linear-gradient(135deg, #f76100, #fa8533); 
}
.step-num.n2 { 
  background: linear-gradient(135deg, #3e1630, #5a1f44); 
}
.step-num.n3 { 
  background: linear-gradient(135deg, #10b981, #059669); 
}
.step-num.n4 { 
  background: linear-gradient(135deg, #d97706, #92400e); 
}

.step-row.step-active .step-num { 
  animation: stepNumPop 0.75s cubic-bezier(.2,1.5,.4,1) both; 
}
.step-row.step-active .step-num::after {
   animation: stepRingPulse 1.2s ease-out 0.45s both;
   }
.step-row.step-active > div:not(.step-num) { 
  animation: stepTextSlide 0.6s cubic-bezier(.2,.8,.2,1) 0.25s both; 
}
.step-row.step-active .step-num > span { 
  display: inline-block; 
  animation: stepNumBreath 3.6s ease-in-out 1.3s infinite; 
}
.step-row.step-active:hover .step-num { 
  animation: none; transform: rotate(-6deg) scale(1.04); 
  transition: transform 0.3s ease; 
}
.step-row.step-active:hover .step-num::after { 
  animation: none; 
}
.step-row.step-active:hover .step-num > span { 
  animation: none; 
}

@keyframes stepNumPop {
  0%   { transform: scale(0.35) rotate(-170deg); }
  55%  { transform: scale(1.22) rotate(12deg); }
  78%  { transform: scale(0.94) rotate(-5deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes stepRingPulse {
  0%   { inset: -4px;  opacity: 0.2; }
  45%  { inset: -20px; opacity: 0.7; }
  100% { inset: -4px;  opacity: 0.2; }
}
@keyframes stepTextSlide {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes stepNumBreath {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .step-row.step-active .step-num,
  .step-row.step-active .step-num::after,
  .step-row.step-active > div:not(.step-num),
  .step-row.step-active .step-num > span { 
    animation: none !important; 
  }
}

.team-card {
  background: #fff; 
  border: 2px solid transparent; 
  border-radius: 22px; 
  padding: 32px 24px;
  text-align: center; 
  position: relative; 
  overflow: hidden;
  transition: all 0.35s cubic-bezier(.2,.8,.2,1); 
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.team-card:hover { 
  transform: translateY(-6px); 
  box-shadow: 0 22px 48px rgba(62,22,48,0.14); 
  border-color: #f7c9aa; }
.team-avatar {
  width: 104px; 
  height: 104px; 
  border-radius: 50%; 
  margin: 0 auto 20px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  position: relative; 
  z-index: 1; 
  transition: transform 0.35s ease;
}
.team-card:hover .team-avatar { 
  transform: scale(1.06); 
}
.team-avatar::after {
  content: ''; 
  position: absolute; 
  inset: -6px; 
  border-radius: 50%;
  border: 2px dashed rgba(247,97,0,0.3);
  animation: rotateDash 20s linear infinite;
}

.partner-tile {
  width: 170px; 
  height: 110px;
  background: linear-gradient(135deg, #faeddd, #fff); 
  border-radius: 22px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  transition: all 0.3s cubic-bezier(.2,.8,.2,1); 
  position: relative; 
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.partner-tile::before {
  content: ''; 
  position: absolute; 
  top: 0; 
  left: -120%;
  width: 60%; 
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(247,97,0,0.25), transparent);
  transform: skewX(-20deg); 
  transition: left 0.8s ease;
}
.partner-tile:hover { 
  transform: translateY(-6px) scale(1.04); 
  box-shadow: 0 18px 36px rgba(0,0,0,0.25); 
}
.partner-tile:hover::before { 
  left: 140%; 
}
.cta-card {
  max-width: 720px; 
  margin: 0 auto; 
  text-align: center; 
  padding: 60px 40px;
  background: #fff; 
  border-radius: 28px; 
  position: relative; 
  overflow: hidden;
  box-shadow: 0 20px 54px rgba(62,22,48,0.10); 
  border: 2px solid #f7c9aa;
}
.cta-card::before {
  content: ''; 
  position: absolute; 
  top: -80px; 
  right: -80px;
  width: 240px; 
  height: 240px; 
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247,97,0,0.18), transparent 70%);
}
.cta-card::after {
  content: ''; 
  position: absolute; 
  bottom: -60px; 
  left: -60px;
  width: 180px; 
  height: 180px; 
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62,22,48,0.12), transparent 70%);
}
.cta-card > * { 
  position: relative; 
  z-index: 1; 
}
@media (max-width: 820px) {
  .step-row { 
    flex-direction: column; 
    gap: 16px; }
}
@media (max-width: 900px) {
  .about-hero {
    padding-top: 110px !important;
    padding-bottom: 56px !important;
  }
  .about-hero .hero-gradient-title {
    font-size: clamp(28px, 6vw, 48px) !important;
    margin-bottom: 18px !important;
  }
  .mv-card {
    padding: 28px 26px !important;
  }
  /* Collapse hero grid to single column */
  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  /* Image slightly shorter */
  .about-hero-img {
    height: 360px;
  }
  /* Tighter section padding — !important beats the broad "main > section" rule */
  .about-section {
    padding: 72px 0 !important;
  }
  /* Collapse mission/vision grid */
  .mv-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@media (max-width: 640px) {
  .about-hero {
    padding-top: 96px !important;
    padding-bottom: 40px !important;
  }
  .about-hero .hero-gradient-title {
    font-size: clamp(24px, 7vw, 36px) !important;
  }
  /* Hide floating deco letters — they overflow on narrow screens */
  .about-hero .deco-letter {
    display: none !important;
  }
  /* Compact hero grid */
  .about-hero-grid {
    gap: 20px;
  }
  /* Much shorter image on small screens */
  .about-hero-img {
    height: 220px;
    border-radius: 20px;
  }
  /* Tighter section padding — !important beats the broad "main > section" rule */
  .about-section {
    padding: 52px 0 !important;
  }
  .mv-card {
    padding: 24px 20px !important;
  }
  .mv-icon-box {
    width: 52px !important;
    height: 52px !important;
    border-radius: 16px !important;
  }
  .value-card {
    padding: 22px 18px !important;
  }
  .step-num {
    min-width: 56px !important;
    height: 56px !important;
    font-size: 22px !important;
    border-radius: 18px !important;
  }
  .step-row {
    padding: 18px !important;
  }
  .team-card {
    padding: 24px 18px !important;
  }
  .team-avatar {
    width: 84px !important;
    height: 84px !important;
  }
  .partner-tile {
    width: 140px !important;
    height: 90px !important;
  }
  .cta-card {
    padding: 40px 22px !important;
  }
  .cta-chips-row .letter-chip {
    width: 34px !important;
    height: 34px !important;
    font-size: 14px !important;
    border-radius: 9px !important;
  }
  .cta-chips-row {
    gap: 5px !important;
  }
}
@media (min-width: 1025px) {
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1024px) {
  .team-grid .team-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 10px);
    justify-self: center;
  }
}

@media (max-width: 460px) {
  /* Team and value cards: 1 column on very small screens */
  .about-section .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  .cta-chips-row .letter-chip {
    width: 28px !important;
    height: 28px !important;
    font-size: 12px !important;
  }
  .about-section {
    padding: 40px 0 !important;
  }
  .about-hero-img {
    height: 180px;
  }
}

/* ============================================
   VOTE PAGE — pages/vote.html
   ============================================ */

.vote-hero {
  padding-top: 140px; 
  padding-bottom: 60px;
  background: linear-gradient(135deg, #faeddd 0%, #fff 50%, #faeddd 100%);
  position: relative; 
  overflow: hidden;
}
.vote-hero > .container { 
  position: relative; 
  z-index: 1; 
}
.vote-hero .hero-gradient-title { 
  font-size: clamp(36px, 5vw, 56px); 
  line-height: 1.05; 
}
.vote-card {
  background: white; 
  border: 2px solid transparent; 
  border-radius: 20px; 
  padding: 24px 26px;
  transition: all 0.3s cubic-bezier(.2,.8,.2,1); 
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04); 
  position: relative; 
  overflow: hidden;
}
.vote-card::before {
  content: ''; 
  position: absolute; 
  left: 0; 
  top: 18%; 
  bottom: 18%;
  width: 4px; 
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #f76100, #fa8533); 
  opacity: 0; 
  transition: opacity 0.25s ease;
}
.vote-card:hover { 
  border-color: #f76100; 
  box-shadow: 0 16px 38px rgba(247,97,0,0.15); 
  transform: translateY(-3px); 
}
.vote-card:hover::before { 
  opacity: 1; 
}
.vote-card.voted-for { 
  border-color: #10b981; 
  background: linear-gradient(135deg, #f0fdf4, #fff); 
}
.vote-card.voted-for::before { 
  background: linear-gradient(180deg, #10b981, #059669);
  opacity: 1; 
}
.vote-card.own-sub { 
  border-color: #3e1630; 
  background: linear-gradient(135deg, #faf5ff, #fff); 
}
.vote-card.own-sub::before { 
  background: linear-gradient(180deg, #3e1630, #5a1f44); 
  opacity: 1; 
}
.vote-card.rank-gold { 
  border-color: #fbbf24; 
  box-shadow: 0 8px 28px rgba(251,191,36,0.18); 
}
.vote-card.rank-gold::after {
  content: ''; 
  position: absolute; 
  top: 0; 
  left: -120%;
  width: 60%; 
  height: 3px;
  background: linear-gradient(90deg, transparent, #fbbf24, transparent);
  animation: goldShimmer 3.5s ease-in-out infinite;
}
@keyframes goldShimmer { 0%,50% { left: -120%; } 100% { left: 140%; } }
.vote-card .letters-row { 
  display: flex; 
  gap: 6px; 
  flex-wrap: wrap; 
  margin-bottom: 14px; 
}
.vote-card .word-title { 
  font-family: 'Manrope', sans-serif; 
  font-weight: 900; 
  font-size: 26px; 
  letter-spacing: 0.04em; 
  margin-bottom: 6px; 
  color: #111; 
}
.vote-card .word-def { 
  color: #6E6E6E; 
  font-size: 14px; 
  line-height: 1.5; 
  margin-bottom: 14px; 
}
.vote-card .word-foot { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding-top: 14px; 
  border-top: 1px dashed #f0d9c0; 
  gap: 12px; 
  flex-wrap: wrap; 
}
.vote-card .word-author { 
  color: #6E6E6E; 
  font-size: 13px; 
  display: inline-flex; 
  align-items: center; 
  gap: 6px; 
}
.vote-card .vote-count { 
  font-weight: 800; 
  color: #f76100; 
  padding: 2px 8px; 
  border-radius: 999px; 
  background: #fff3e6; 
  display: inline-block; 
  margin-left: 4px; 
}
.vote-btn {
  background: linear-gradient(135deg, #f76100, #fa8533); 
  color: white; 
  border: none; 
  border-radius: 12px;
  padding: 11px 20px; 
  font-family: 'Manrope', sans-serif; 
  font-weight: 800; 
  font-size: 13px;
  cursor: pointer; 
  transition: all 0.2s; 
  display: inline-flex; 
  align-items: center; 
  gap: 6px;
  white-space: nowrap; 
  position: relative; 
  overflow: hidden; 
  box-shadow: 0 4px 12px rgba(247,97,0,0.25);
}
.vote-btn::after {
  content: ''; 
  position: absolute; 
  top: 0; 
  left: -120%;
  width: 50%; 
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg); 
  transition: left 0.6s ease;
}
.vote-btn:hover:not(:disabled) { 
  transform: translateY(-2px); 
  box-shadow: 0 10px 24px rgba(247,97,0,0.38); 
}
.vote-btn:hover:not(:disabled)::after { 
  left: 140%; 
}
.vote-btn:disabled { 
  background: #e5e5e5; 
  color: #999; 
  cursor: default; 
  transform: none; 
  box-shadow: none; }
.vote-btn.voted { 
  background: linear-gradient(135deg, #10b981, #059669); 
  box-shadow: 0 4px 12px rgba(16,185,129,0.25); }
.vote-btn.own { 
  background: linear-gradient(135deg, #3e1630, #5a1f44); 
  box-shadow: 0 4px 12px rgba(62,22,48,0.25); 
}
.chip-sm {
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  min-width: 32px; 
  height: 32px; 
  border-radius: 9px;
  font-weight: 800; 
  font-size: 14px; 
  font-family: 'Manrope', sans-serif;
  box-shadow: 0 3px 0 rgba(0,0,0,0.08); 
  transition: transform 0.2s ease;
}
.vote-card:hover .chip-sm { 
  transform: translateY(-1px); 
}
.chip-sm.c1 { 
  background: linear-gradient(135deg, #f76100, #fa8533); 
  color: white; 
}
.chip-sm.c2 { 
  background: linear-gradient(135deg, #3e1630, #5a1f44); 
  color: white; 
}
.chip-sm.c3 { 
  background: #faeddd; 
  color: #3e1630; 
}
.winner-row {
  display: flex; 
  align-items: center; 
  gap: 12px; 
  padding: 14px 8px;
  border-radius: 12px; 
  transition: background 0.2s ease;
}
.winner-row:hover { 
  background: #faeddd; 
}
.winner-row + .winner-row { 
  border-top: 1px dashed #f0d9c0; 
}
.medal-pill {
  flex-shrink: 0; 
  width: 36px; 
  height: 36px; 
  border-radius: 50%;
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-weight: 900; 
  font-size: 15px; 
  font-family: 'Manrope', sans-serif;
  color: #fff; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.medal-pill.m1 { 
  background: linear-gradient(135deg, #fbbf24, #d97706); 
}
.medal-pill.m2 { 
  background: linear-gradient(135deg, #d1d5db, #9ca3af); color: #111; 
}
.medal-pill.m3 { 
  background: linear-gradient(135deg, #d97706, #92400e); 
}
.countdown-pill {
  display: inline-flex; 
  align-items: center; 
  gap: 10px;
  background: linear-gradient(135deg, #3e1630, #5a1f44); 
  color: white;
  border-radius: 50px;
  padding: 14px 28px; 
  font-family: 'Space Mono', monospace; 
  font-size: 14px;
  box-shadow: 0 10px 28px rgba(62,22,48,0.34); 
  position: relative;
}
.countdown-pill::before {
  content: ''; 
  position: absolute; 
  inset: -3px; 
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(247,97,0,0.5), transparent, rgba(62,22,48,0.5));
  z-index: -1; 
  filter: blur(8px); 
  opacity: 0.7;
}
.sidebar-card {
  background: white; 
  border-radius: 20px; 
  padding: 24px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.06); 
  border: 2px solid #f0e0c8;
  position: relative; 
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.sidebar-card::before {
  content: ''; 
  position: absolute; 
  left: 0; 
  top: 14%;
  bottom: 14%;
  width: 4px; 
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #f76100, #fa8533); 
  opacity: 0.8;
}
.sidebar-card.accent-plum::before { 
  background: linear-gradient(180deg, #3e1630, #5a1f44);
 }
.sidebar-card.accent-gold::before { 
  background: linear-gradient(180deg, #fbbf24, #d97706); 
}
.sidebar-card:hover { 
  box-shadow: 0 14px 36px rgba(0,0,0,0.09); 
}
.sidebar-label {
  font-family: 'Space Mono', monospace; 
  text-transform: uppercase;
  letter-spacing: 0.08em; 
  font-size: 11px;
  color: #6E6E6E; 
  font-weight: 700;
  margin-bottom: 14px; 
  display: block;
}
/* ============================================================
   SUBMIT FORM
   ============================================================ */

.submit-form label {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #3e1630;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.submit-form input,
.submit-form textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 2px solid #e5e5e5;
  background: #faeddd;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}

.submit-form input:focus,
.submit-form textarea:focus {
  border-color: #f76100;
  background: white;
  box-shadow: 0 0 0 3px rgba(247, 97, 0, 0.12);
}

.submit-form textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

.submit-form .field + .field {
  margin-top: 14px;
}


/* ============================================================
   VOTE DOTS
   ============================================================ */

.vote-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.vdot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f76100, #fa8533);
  box-shadow: 0 2px 6px rgba(247, 97, 0, 0.4);
  transition: all 0.3s ease;
}

.vdot.used {
  background: #e5e5e5;
  box-shadow: none;
  transform: scale(0.75);
}


/* ============================================================
   EMPTY PILL
   ============================================================ */

.empty-pill {
  text-align: center;
  padding: 60px 24px;
  color: #6E6E6E;
  background: white;
  border-radius: 20px;
  border: 2px dashed #f0d9c0;
  position: relative;
  overflow: hidden;
}

.empty-pill .big-emoji {
  font-size: 52px;
  margin-bottom: 14px;
  display: block;
  animation: gentleFloat 3s ease-in-out infinite;
}


/* ============================================================
   HOW IT WORKS
   ============================================================ */

.how-it-works {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.hw-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: white;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  color: #3e1630;
  border: 1.5px solid #f0d9c0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hw-step:hover {
  transform: translateY(-2px);
  border-color: #f76100;
}

.hw-step .num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f76100, #fa8533);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 2px 6px rgba(247, 97, 0, 0.3);
}


/* ============================================================
   VOTE BAR
   ============================================================ */

.vote-bar-track {
  height: 6px;
  background: #faeddd;
  border-radius: 4px;
  margin-bottom: 6px;
  overflow: hidden;
}

.vote-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #f76100, #fa8533);
  transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 10px rgba(247, 97, 0, 0.4);
}


/* ============================================================
   RANK BADGE
   ============================================================ */

.rank-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: 50px;
  color: white;
  font-family: 'Manrope', sans-serif;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rank-badge.r1 {
  background: linear-gradient(135deg, #fbbf24, #d97706);
}

.rank-badge.r2 {
  background: linear-gradient(135deg, #d1d5db, #9ca3af);
  color: #111;
}

.rank-badge.r3 {
  background: linear-gradient(135deg, #d97706, #92400e);
}


/* ============================================================
   VOTE PAGE — RESPONSIVE
   ============================================================ */

@media (max-width: 820px) {
  .vote-hero {
    padding-top: 100px !important;
    padding-bottom: 36px !important;
  }

  .vote-hero .hero-gradient-title {
    font-size: clamp(26px, 6.5vw, 42px) !important;
    margin-bottom: 12px !important;
  }

  .countdown-pill {
    font-size: 13px !important;
    padding: 11px 22px !important;
  }

  .how-it-works {
    gap: 6px !important;
    margin-top: 12px !important;
  }

  .hw-step {
    font-size: 11px !important;
    padding: 7px 13px !important;
  }

  #main-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 0 !important;
  }

  #main-grid > div:last-child {
    position: static !important;
    top: auto !important;
  }

  .sidebar-card {
    padding: 20px !important;
  }

  .vote-card {
    padding: 18px 16px !important;
  }

  .vote-card .word-title {
    font-size: 22px !important;
  }

  .rank-badge {
    top: 10px !important;
    right: 10px !important;
    font-size: 10px !important;
  }

  .vote-btn {
    font-size: 12px !important;
    padding: 9px 14px !important;
  }
}

@media (max-width: 540px) {
  .vote-hero {
    padding-top: 88px !important;
    padding-bottom: 28px !important;
  }

  .vote-hero .hero-gradient-title {
    font-size: clamp(22px, 7vw, 34px) !important;
  }

  .countdown-pill {
    font-size: 12px !important;
    padding: 10px 18px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: center !important;
  }

  .how-it-works {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .hw-step {
    justify-content: flex-start !important;
  }

  .vote-card {
    padding: 16px 14px !important;
    margin-bottom: 10px !important;
  }

  .vote-card .word-title {
    font-size: 20px !important;
  }

  .chip-sm {
    min-width: 28px !important;
    height: 28px !important;
    font-size: 13px !important;
  }

  .vote-btn {
    font-size: 12px !important;
    padding: 8px 12px !important;
  }
}


/* ============================================================
   CONTACT PAGE — pages/contact.html
   ============================================================ */

.contact-hero {
  padding-top: 140px;
  padding-bottom: 70px;
  background: linear-gradient(135deg, #faeddd 0%, #fff 50%, #faeddd 100%);
  position: relative;
  overflow: hidden;
}

.contact-hero > .container {
  position: relative;
  z-index: 1;
}

.contact-hero .hero-gradient-title {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
}

.contact-hero .section-gradient-title {
  font-size: clamp(24px, 2.6vw, 30px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  grid-template-rows: auto auto;
  column-gap: 32px;
  row-gap: 20px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info-main {
  grid-column: 1;
  grid-row: 1;
}

.contact-info-plum {
  grid-column: 1;
  grid-row: 2;
}

.contact-grid .form-card {
  grid-column: 2;
  grid-row: 1 / 3;
}

.contact-field label {
  display: block;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  margin-bottom: 8px;
  color: #3e1630;
  letter-spacing: 0.02em;
}

.contact-field label .req {
  color: #f76100;
}

.contact-field input,
.contact-field textarea,
.contact-field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid #eadfd0;
  background: #faeddd;
  font-family: inherit;
  font-size: 14px;
  color: #111;
  outline: none;
  transition: all 0.25s;
  box-sizing: border-box;
}

.contact-field input:focus,
.contact-field textarea:focus,
.contact-field select:focus {
  border-color: #f76100;
  background: white;
  box-shadow: 0 0 0 4px rgba(247, 97, 0, 0.12);
}

.contact-field textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.5;
}

.contact-field + .contact-field {
  margin-top: 18px;
}


/* ============================================================
   INFO CARD
   ============================================================ */

.info-card {
  background: white;
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 12px 32px rgba(62, 22, 48, 0.06);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14%;
  bottom: 14%;
  width: 5px;
  border-radius: 0 5px 5px 0;
  background: linear-gradient(180deg, #f76100, #fa8533);
}

.info-card.plum::before {
  background: linear-gradient(180deg, #3e1630, #5a1f44);
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(62, 22, 48, 0.10);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  transition: transform 0.3s ease;
}

.info-item:hover {
  transform: translateX(4px);
}

.info-item + .info-item {
  border-top: 1px dashed #f0d9c0;
}

.info-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f76100, #fa8533);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(247, 97, 0, 0.25);
  transition: transform 0.3s ease;
}

.info-item:hover .info-badge {
  transform: scale(1.08) rotate(-6deg);
}

.info-badge.plum {
  background: linear-gradient(135deg, #3e1630, #5a1f44);
  box-shadow: 0 6px 16px rgba(62, 22, 48, 0.25);
}

.info-badge.green {
  background: linear-gradient(135deg, #10b981, #34d399);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.25);
}

.info-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: #111;
  margin-bottom: 3px;
}

.info-desc {
  color: #6E6E6E;
  font-size: 13px;
  line-height: 1.5;
}


/* ============================================================
   FORM CARD
   ============================================================ */

.form-card {
  background: white;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 16px 44px rgba(62, 22, 48, 0.08);
  border: 2px solid #f0e0c8;
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 97, 0, 0.12), transparent 70%);
  pointer-events: none;
}

.form-card > * {
  position: relative;
  z-index: 1;
}

.form-footer-note {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: #6E6E6E;
}


/* ============================================================
   SUCCESS STATE
   ============================================================ */

.success-state {
  display: none;
  text-align: center;
  padding: 40px 24px;
}

.success-state .tick {
  width: 94px;
  height: 94px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #10b981, #34d399);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 32px rgba(16, 185, 129, 0.4);
  animation: successPop 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}

.success-state .tick::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(16, 185, 129, 0.35);
  animation: rotateDash 14s linear infinite;
}


/* ============================================================
   CONTACT PAGE — RESPONSIVE
   ============================================================ */

@media (max-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 24px;
  }

  .contact-info-main {
    grid-column: auto;
    grid-row: auto;
    order: 2;
  }

  .contact-info-plum {
    grid-column: auto;
    grid-row: auto;
    order: 1;
  }

  .contact-grid .form-card {
    grid-column: auto;
    grid-row: auto;
    order: 3;
    padding: 28px 22px;
  }

  .two-col {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 900px) {
  .contact-hero {
    padding-top: 110px !important;
    padding-bottom: 50px !important;
  }

  .contact-hero .hero-gradient-title {
    font-size: clamp(28px, 6vw, 48px) !important;
  }
}

@media (max-width: 640px) {
  .contact-hero {
    padding-top: 96px !important;
    padding-bottom: 36px !important;
  }

  .contact-hero .hero-gradient-title {
    font-size: clamp(24px, 7vw, 36px) !important;
  }

  .hero-chips-row .letter-chip {
    width: 36px !important;
    height: 36px !important;
    font-size: 14px !important;
    border-radius: 9px !important;
  }

  .hero-chips-row {
    gap: 5px !important;
  }

  .info-card {
    padding: 22px 18px !important;
  }

  .info-badge {
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
  }

  .form-card {
    padding: 24px 18px !important;
    border-radius: 18px !important;
  }

  .contact-field input,
  .contact-field textarea,
  .contact-field select {
    padding: 12px 14px !important;
    border-radius: 12px !important;
  }

  .contact-field textarea {
    min-height: 120px !important;
  }
}

@media (max-width: 400px) {
  .hero-chips-row .letter-chip {
    width: 30px !important;
    height: 30px !important;
    font-size: 12px !important;
  }

  .hero-chips-row {
    gap: 4px !important;
  }
}


/* ============================================================
   ARCHIVE PAGE — pages/archive.html
   ============================================================ */

.archive-hero {
  padding-top: 140px;
  padding-bottom: 70px;
  background: linear-gradient(135deg, #faeddd 0%, #fff 50%, #faeddd 100%);
  position: relative;
  overflow: hidden;
}

.archive-hero > .container {
  position: relative;
  z-index: 1;
}

.archive-hero .hero-gradient-title {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
}

.arch-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 680px;
  margin: 0 auto 32px;
}

.arch-stat-card {
  background: #fff;
  border: 2px solid #f0e0c8;
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.arch-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.arch-stat-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16%;
  bottom: 16%;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #f76100, #fa8533);
}

.arch-stat-card.s-used::before {
  background: linear-gradient(180deg, #fbbf24, #d97706);
}

.arch-stat-card.s-unused::before {
  background: linear-gradient(180deg, #3e1630, #5a1f44);
}

.arch-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #faeddd, #fff);
  color: #f76100;
  box-shadow: inset 0 0 0 1px rgba(247, 97, 0, 0.18);
}

.arch-stat-card.s-used .arch-stat-icon {
  color: #d97706;
  box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.25);
}

.arch-stat-card.s-unused .arch-stat-icon {
  color: #3e1630;
  box-shadow: inset 0 0 0 1px rgba(62, 22, 48, 0.2);
}

.arch-stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #6E6E6E;
  margin-bottom: 2px;
}

.arch-stat-val {
  font-family: 'Manrope', sans-serif;
  font-weight: 900;
  font-size: 26px;
  color: #f76100;
  line-height: 1;
}

.arch-stat-card.s-used .arch-stat-val {
  color: #d97706;
}

.arch-stat-card.s-unused .arch-stat-val {
  color: #3e1630;
}

.arch-filter-btn {
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 800;
  border: 2px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.arch-filter-btn.active {
  background: linear-gradient(135deg, #3e1630, #5a1f44);
  color: white;
  border-color: #3e1630;
  box-shadow: 0 8px 20px rgba(62, 22, 48, 0.28);
}

.arch-filter-btn.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  animation: filterShimmer 3.5s ease-in-out infinite;
}

@keyframes filterShimmer {
  0%, 60% { left: -120%; }
  80%      { left: 140%; }
  100%     { left: 140%; }
}

.arch-filter-btn:not(.active) {
  background: white;
  color: #555;
  border-color: #e5e5e5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.arch-filter-btn:not(.active):hover {
  border-color: #f76100;
  color: #f76100;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(247, 97, 0, 0.12);
}

.filter-count-pill {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 11px;
  font-family: 'Space Mono', monospace;
}

.arch-filter-btn:not(.active) .filter-count-pill {
  background: #faeddd;
  color: #f76100;
}

.arch-card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.arch-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #f76100, #fa8533);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.arch-card.used::before {
  background: linear-gradient(180deg, #fbbf24, #d97706);
  opacity: 0.8;
}

.arch-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(62, 22, 48, 0.15);
  border-color: #f7c9aa;
}

.arch-card:hover::before {
  opacity: 1;
}

.arch-card:hover .arch-chip {
  transform: translateY(-2px);
}

.arch-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  margin-bottom: 16px;
  width: 100%;
  overflow: hidden;
}

.arch-chip {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  font-family: 'Manrope', sans-serif;
  transition: transform 0.25s ease;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}

.arch-chip.c0 { background: #faeddd; color: #3e1630; }
.arch-chip.c1 { background: linear-gradient(135deg, #f76100, #fa8533); color: white; }
.arch-chip.c2 { background: linear-gradient(135deg, #3e1630, #5a1f44); color: white; }

.arch-word {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
  font-family: 'Manrope', sans-serif;
  color: #111;
}

.arch-def {
  color: #6E6E6E;
  font-size: 14px;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}

.arch-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 14px;
  border-top: 1px dashed #f0d9c0;
}

.arch-used-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 50px;
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-used {
  background: linear-gradient(135deg, #fff3e6, #ffe4cc);
  color: #d97706;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.15);
}

.badge-unused {
  background: linear-gradient(135deg, rgba(62, 22, 48, 0.08), rgba(62, 22, 48, 0.12));
  color: #3e1630;
}

.arch-skeleton {
  background: white;
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.arch-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(247, 97, 0, 0.08), transparent);
  animation: skelSweep 1.6s ease-in-out infinite;
}

@keyframes skelSweep {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.skel-line {
  background: linear-gradient(90deg, #f0f0f0, #e5e5e5, #f0f0f0);
  background-size: 200% 100%;
  animation: skelPulse 1.8s ease-in-out infinite;
  border-radius: 8px;
  height: 14px;
  margin-bottom: 10px;
}

@keyframes skelPulse {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

.arch-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  color: #aaa;
  background: white;
  border-radius: 20px;
  border: 2px dashed #f0d9c0;
}

.arch-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #faeddd, #fff3e6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f76100;
  box-shadow: 0 10px 24px rgba(247, 97, 0, 0.12);
  animation: gentleFloat 3s ease-in-out infinite;
}


/* ============================================================
   ARCHIVE PAGE — RESPONSIVE
   ============================================================ */

@media (max-width: 820px) {
  .archive-hero {
    padding-top: 100px !important;
    padding-bottom: 36px !important;
  }

  .archive-hero .hero-gradient-title {
    font-size: clamp(26px, 6.5vw, 42px) !important;
  }

  .arch-stats {
    gap: 10px;
  }

  .arch-stat-card {
    padding: 14px 16px !important;
  }

  .arch-stat-val {
    font-size: 22px !important;
  }

  .arch-filter-btn {
    padding: 9px 18px !important;
    font-size: 12px !important;
  }

  .arch-card {
    padding: 20px !important;
  }
}

@media (max-width: 540px) {
  .archive-hero {
    padding-top: 88px !important;
    padding-bottom: 28px !important;
  }

  .archive-hero .hero-gradient-title {
    font-size: clamp(22px, 7vw, 32px) !important;
  }

  .arch-stats {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    gap: 10px;
  }

  .arch-filter-btn {
    padding: 8px 14px !important;
    font-size: 11px !important;
    gap: 5px !important;
  }

  #archGrid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .arch-card {
    padding: 16px 14px !important;
  }

  .arch-word {
    font-size: 20px !important;
  }

  .arch-def {
    font-size: 13px !important;
  }
}


/* ============================================================
   PROFILE PAGE
   ============================================================ */

.profile-main {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.profile-main .hero-gradient-title {
  font-size: clamp(28px, 4vw, 40px);
}

.profile-main .section-gradient-title {
  font-size: clamp(22px, 2.6vw, 28px);
}

.profile-main > .container {
  position: relative;
  z-index: 1;
}

.profile-header-card {
  background: white;
  border: 2px solid #f0e0c8;
  border-radius: 24px;
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(62, 22, 48, 0.08);
}

.profile-header-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 97, 0, 0.15), transparent 70%);
  pointer-events: none;
}

.profile-header-card > * {
  position: relative;
  z-index: 1;
}

.profile-avatar-wrap {
  position: relative;
}

.profile-avatar {
  width: 110px;
  height: 110px;
  background: linear-gradient(135deg, #f76100, #fa8533);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px rgba(247, 97, 0, 0.35);
  position: relative;
  z-index: 1;
  color: white;
}

.profile-avatar-wrap::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 32px;
  border: 2px dashed rgba(247, 97, 0, 0.3);
  animation: rotateDash 20s linear infinite;
}

.mini-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #faeddd, #fff);
  border: 1px solid rgba(247, 97, 0, 0.15);
  transition: transform 0.3s ease;
}

.mini-stat:hover {
  transform: translateY(-2px);
}

.mini-stat .num {
  font-family: 'Manrope', sans-serif;
  font-weight: 900;
  font-size: 15px;
}

.stat-card {
  background: white;
  border: 2px solid transparent;
  border-radius: 22px;
  padding: 26px 20px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f76100, #fa8533);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.stat-card.s2::before { background: linear-gradient(90deg, #3e1630, #5a1f44); }
.stat-card.s3::before { background: linear-gradient(90deg, #10b981, #34d399); }
.stat-card.s4::before { background: linear-gradient(90deg, #d97706, #f59e0b); }

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(62, 22, 48, 0.12);
  border-color: #f7c9aa;
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  transition: transform 0.35s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(-6deg);
}

.stat-icon.i1 { background: linear-gradient(135deg, #fce7e6, #fde5c8); color: #f76100; box-shadow: 0 6px 16px rgba(247, 97, 0, 0.18); }
.stat-icon.i2 { background: linear-gradient(135deg, #fde5c8, #fff); color: #3e1630; box-shadow: 0 6px 16px rgba(62, 22, 48, 0.15); }
.stat-icon.i3 { background: linear-gradient(135deg, #d1fae5, #fff); color: #10b981; box-shadow: 0 6px 16px rgba(16, 185, 129, 0.18); }
.stat-icon.i4 { background: linear-gradient(135deg, #fef3c7, #fff); color: #d97706; box-shadow: 0 6px 16px rgba(217, 119, 6, 0.18); }

.stat-num {
  font-family: 'Manrope', sans-serif;
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #3e1630, #111);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-lbl {
  color: #6E6E6E;
  font-size: 13px;
  font-weight: 600;
}

.panel-card {
  background: white;
  border: 2px solid #f0e0c8;
  border-radius: 24px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(62, 22, 48, 0.06);
}

#guestPrompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tabs-row {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: #faeddd;
  border-radius: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tabs-row .tab {
  flex: 1;
  min-width: 120px;
  padding: 10px 18px;
  background: transparent;
  border: none;
  border-radius: 12px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #6E6E6E;
  cursor: pointer;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tabs-row .tab:hover {
  color: #3e1630;
  background: rgba(255, 255, 255, 0.5);
}

.tabs-row .tab.active {
  background: linear-gradient(135deg, #f76100, #fa8533);
  color: white;
  box-shadow: 0 8px 20px rgba(247, 97, 0, 0.3);
}

.lb-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.lb-pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: #faeddd;
  color: #3e1630;
  border: 1px solid rgba(62, 22, 48, 0.1);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lb-pill:hover {
  transform: translateY(-2px);
}

.lb-pill.active {
  background: linear-gradient(135deg, #f76100, #fa8533);
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(247, 97, 0, 0.3);
}

.lb-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #faeddd, #fff);
  margin-bottom: 8px;
  transition: transform 0.25s ease;
  border: 2px solid transparent;
}

.lb-row:hover {
  transform: translateX(4px);
}

.lb-row.me {
  border-color: #3e1630;
  background: linear-gradient(135deg, #fff, #faeddd);
}

.lb-rank {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-weight: 900;
  font-size: 15px;
  background: #fff;
  color: #3e1630;
  flex-shrink: 0;
}

.lb-rank.gold   { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: white; box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3); }
.lb-rank.silver { background: linear-gradient(135deg, #d1d5db, #9ca3af); color: white; box-shadow: 0 6px 16px rgba(156, 163, 175, 0.3); }
.lb-rank.bronze { background: linear-gradient(135deg, #f97316, #c2410c); color: white; box-shadow: 0 6px 16px rgba(194, 65, 12, 0.3); }

.badge-card {
  background: white;
  border: 2px solid transparent;
  border-radius: 18px;
  padding: 20px 16px;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.badge-card.earned {
  border-color: #f7c9aa;
  background: linear-gradient(135deg, #faeddd, #fff);
}

.badge-card.locked {
  opacity: 0.55;
  background: #f8f6f3;
}

.badge-card.earned:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(247, 97, 0, 0.15);
}

.badge-emoji {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 26px;
  background: linear-gradient(135deg, #fde5c8, #fff);
  box-shadow: 0 6px 16px rgba(247, 97, 0, 0.18);
  transition: transform 0.35s ease;
}

.badge-card.earned:hover .badge-emoji {
  transform: scale(1.1) rotate(-8deg);
}

.badge-card.locked .badge-emoji {
  background: #e5e7eb;
  box-shadow: none;
}

.history-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #faeddd;
  margin-bottom: 8px;
  transition: transform 0.25s ease;
}

.history-row:hover {
  transform: translateX(4px);
}

.history-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
}

.history-badge.win  { background: #d1fae5; color: #065f46; }
.history-badge.lose { background: #fde5e5; color: #991b1b; }

.btn-logout {
  padding: 12px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fee2e2, #fef2f2);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.2);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-logout:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.2);
}


/* ============================================================
   PROFILE PAGE — FAMILY TAB
   ============================================================ */

@media (max-width: 640px) {
  #family-has-family > div:first-child {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

/* ============================================================
   PROFILE PAGE — RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .profile-main {
    padding-top: 100px !important;
    padding-bottom: 60px !important;
  }
}

/* Tablet: tighten guest-prompt card padding (desktop has 60px 40px inline) */
@media (max-width: 768px) {
  #guestPrompt {
    padding: 48px 28px !important;
  }

  /* Deco letters in profile header have negative offsets (left:-30px, right:-30px)
     that cause horizontal overflow on narrower screens — hide them. */
  .profile-main .deco-letter {
    display: none !important;
  }

  /* On tablet the profile header card wraps — give it a slightly tighter gap */
  .profile-header-card {
    gap: 22px !important;
  }
}

@media (max-width: 640px) {
  .profile-main {
    padding-top: 88px !important;
    padding-bottom: 48px !important;
  }

  .profile-header-card {
    padding: 20px !important;
    gap: 18px !important;
    flex-wrap: wrap !important;
  }

  .profile-avatar {
    width: 80px !important;
    height: 80px !important;
    border-radius: 22px !important;
  }

  .profile-avatar-wrap::after {
    border-radius: 26px !important;
    inset: -5px !important;
  }

  .profile-header-card > div:nth-child(2) {
    min-width: 0 !important;
    flex: 1 1 200px !important;
  }

  #profileActions {
    width: 100% !important;
  }

  /* When stat row is hidden (guest view) the header card looks cleaner
     without the large gap the empty profileActions div leaves behind */
  #hdrStatRow {
    gap: 8px !important;
  }

  .mini-stat {
    padding: 6px 10px !important;
    font-size: 12px !important;
  }

  .btn-logout {
    width: 100% !important;
    justify-content: center !important;
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  .stat-card {
    padding: 18px 14px !important;
    border-radius: 18px !important;
  }

  .stat-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 13px !important;
    margin-bottom: 10px !important;
  }

  .stat-num {
    font-size: 26px !important;
  }

  .stat-lbl {
    font-size: 12px !important;
  }

  .panel-card {
    padding: 18px 14px !important;
    border-radius: 20px !important;
  }

  .tabs-row {
    gap: 6px !important;
    padding: 5px !important;
  }

  .tabs-row .tab {
    padding: 8px 10px !important;
    font-size: 12px !important;
    min-width: 0 !important;
    gap: 5px !important;
  }

  .lb-filters {
    gap: 6px !important;
  }

  .lb-pill {
    padding: 7px 11px !important;
    font-size: 12px !important;
    gap: 5px !important;
  }

  .lb-row {
    padding: 10px 12px !important;
    gap: 10px !important;
    border-radius: 14px !important;
  }

  .lb-rank {
    width: 32px !important;
    height: 32px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
  }

  .history-row {
    padding: 10px 12px !important;
    gap: 10px !important;
    border-radius: 12px !important;
  }

  #guestPrompt {
    padding: 40px 18px !important;
    border-radius: 20px !important;
  }
}

@media (max-width: 400px) {
  .profile-header-card {
    padding: 16px !important;
    gap: 14px !important;
  }

  .profile-avatar {
    width: 68px !important;
    height: 68px !important;
  }

  .grid-4 {
    gap: 10px !important;
  }

  .stat-num {
    font-size: 22px !important;
  }

  .mini-stat {
    padding: 6px 10px !important;
  }
}


/* ============================================================
   ZBOROTVORBA PAGE
   ============================================================ */

.zbr-hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 96px 0 48px;
}

.zbr-hero .hero-gradient-title {
  font-size: clamp(42px, 5.5vw, 72px);
  margin-bottom: 20px;
}

.zbr-hero > .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.year-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f76100, #fa8533);
  color: white;
  font-family: 'Manrope', sans-serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 28px rgba(247, 97, 0, 0.4);
  margin-bottom: 28px;
}

/* About-the-competition 2-col grid — CSS-controlled for responsive override */
.zbr-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.about-card {
  background: white;
  border: 2px solid #f0e0c8;
  border-radius: 24px;
  padding: 44px 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(62, 22, 48, 0.07);
}

.about-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 5px;
  border-radius: 0 5px 5px 0;
  background: linear-gradient(180deg, #f76100, #fa8533);
}

.about-card::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 97, 0, 0.1), transparent 70%);
  pointer-events: none;
}

.criteria-card {
  background: white;
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 26px 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.criteria-card:hover {
  transform: translateX(6px);
  border-color: #f7c9aa;
  box-shadow: 0 14px 34px rgba(62, 22, 48, 0.10);
}

.criteria-num {
  min-width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  will-change: transform;
}

.criteria-card:hover .criteria-num {
  transform: scale(1.08) rotate(-6deg);
}

.criteria-num.n1 { background: linear-gradient(135deg, #f76100, #fa8533); }
.criteria-num.n2 { background: linear-gradient(135deg, #3e1630, #5a1f44); }
.criteria-num.n3 { background: linear-gradient(135deg, #10b981, #059669); }

.criteria-card.criteria-active .criteria-num {
  animation: criteriaNumPop 0.75s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}

.criteria-card.criteria-active > div:not(.criteria-num) {
  animation: criteriaTextSlide 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s both;
}

.criteria-card.criteria-active .criteria-num > span {
  display: inline-block;
  animation: criteriaNumBreath 3.6s ease-in-out 1.3s infinite;
}

.criteria-card.criteria-active:hover .criteria-num {
  animation: none;
  transform: scale(1.08) rotate(-6deg);
  transition: transform 0.3s ease;
}

.criteria-card.criteria-active:hover .criteria-num > span {
  animation: none;
}

@keyframes criteriaNumPop {
  0%   { transform: scale(0.35) rotate(-170deg); }
  55%  { transform: scale(1.22) rotate(12deg); }
  78%  { transform: scale(0.94) rotate(-5deg); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes criteriaTextSlide {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes criteriaNumBreath {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .criteria-card.criteria-active .criteria-num,
  .criteria-card.criteria-active > div:not(.criteria-num),
  .criteria-card.criteria-active .criteria-num > span {
    animation: none !important;
  }
}

.prize-card {
  background: white;
  border: 2px solid transparent;
  border-radius: 24px;
  padding: 36px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.prize-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 52px rgba(62, 22, 48, 0.15);
}

.prize-card.first  { border-color: #fbbf24; background: linear-gradient(180deg, #fffbeb, #fff); }
.prize-card.second { border-color: #d1d5db; background: linear-gradient(180deg, #f9fafb, #fff); }
.prize-card.third  { border-color: #f97316; background: linear-gradient(180deg, #fff7ed, #fff); }

.prize-medal {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 36px;
  position: relative;
  transition: transform 0.3s ease;
}

.prize-card:hover .prize-medal {
  transform: scale(1.1) rotate(-8deg);
}

.prize-medal::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px dashed currentColor;
  opacity: 0.25;
  animation: rotateDash 16s linear infinite;
}

.prize-medal.gold   { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #78350f; box-shadow: 0 12px 28px rgba(245, 158, 11, 0.4); }
.prize-medal.silver { background: linear-gradient(135deg, #e5e7eb, #9ca3af); color: #374151; box-shadow: 0 12px 28px rgba(156, 163, 175, 0.4); }
.prize-medal.bronze { background: linear-gradient(135deg, #fb923c, #ea580c); color: white;   box-shadow: 0 12px 28px rgba(234, 88, 12, 0.4); }

.prize-amount {
  font-family: 'Manrope', sans-serif;
  font-weight: 900;
  font-size: 38px;
  line-height: 1;
  margin-bottom: 6px;
}

.prize-amount.gold-text   { color: #d97706; }
.prize-amount.silver-text { color: #6b7280; }
.prize-amount.bronze-text { color: #ea580c; }

.timeline-section {
  background: #2a0c1e;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.timeline-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px dashed rgba(250, 237, 221, 0.1);
  transition: transform 0.25s ease;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-item:hover {
  transform: translateX(6px);
}

.timeline-dot {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
}

.timeline-dot.d1 { background: linear-gradient(135deg, #f76100, #fa8533); box-shadow: 0 6px 16px rgba(247, 97, 0, 0.4); }
.timeline-dot.d2 { background: linear-gradient(135deg, #3e1630, #5a1f44); border: 1px solid rgba(250, 237, 221, 0.2); }
.timeline-dot.d3 { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4); }
.timeline-dot.d4 { background: linear-gradient(135deg, #d97706, #f59e0b); box-shadow: 0 6px 16px rgba(217, 119, 6, 0.4); }

.form-section {
  background: #faeddd;
  position: relative;
  overflow: hidden;
}

.form-section .form-card {
  padding: 48px 44px;
  max-width: 780px;
  margin: 0 auto;
}

.form-section .form-card::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 97, 0, 0.15), transparent 70%);
  pointer-events: none;
}

.form-section .form-card::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 22, 48, 0.10), transparent 70%);
  pointer-events: none;
}

.form-section .form-card > * {
  position: relative;
  z-index: 1;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #3e1630;
  margin-bottom: 8px;
}

.form-field label .req {
  color: #f76100;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 2px solid #eadfd0;
  background: #faeddd;
  font-family: inherit;
  font-size: 15px;
  color: #111;
  outline: none;
  transition: all 0.25s;
  box-sizing: border-box;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: #f76100;
  background: white;
  box-shadow: 0 0 0 4px rgba(247, 97, 0, 0.12);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.word-input {
  font-family: 'Space Mono', monospace !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.success-tick {
  width: 94px;
  height: 94px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #10b981, #34d399);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 32px rgba(16, 185, 129, 0.4);
  animation: successPop 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}

.success-tick::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(16, 185, 129, 0.35);
  animation: rotateDash 14s linear infinite;
}


/* ============================================================
   ZBOROTVORBA PAGE — RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .zbr-hero {
    padding-top: 110px !important;
    padding-bottom: 56px !important;
  }

  .zbr-hero .hero-gradient-title {
    font-size: clamp(28px, 6vw, 48px) !important;
    margin-bottom: 18px !important;
  }

  /* Collapse 2-col "about competition" layout to single column */
  .zbr-about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-card {
    padding: 30px 22px;
  }

  .prize-grid {
    grid-template-columns: 1fr !important;
    max-width: 400px !important;
    max-width: 400px !important;
    margin: 0 auto !important;
  }

  .timeline-item {
    flex-wrap: wrap;
  }

  .timeline-item > div[style*="margin-left:auto"] {
    margin-left: 64px !important;
    margin-top: -4px;
  }

  .form-card {
    padding: 32px 22px;
  }

  main > section {
    padding: 64px 0 !important;
  }

  .timeline-section,
  .form-section {
    padding: 64px 0 !important;
  }
}

@media (max-width: 640px) {
  .zbr-hero {
    padding-top: 96px !important;
    padding-bottom: 40px !important;
  }

  .zbr-hero .hero-gradient-title {
    font-size: clamp(24px, 7vw, 36px) !important;
  }

  .zbr-hero p[style*="18px"] {
    font-size: 15px !important;
    line-height: 1.75 !important;
  }

  .zbr-chips-row {
    flex-wrap: wrap !important;
    gap: 5px !important;
    justify-content: center !important;
  }

  .zbr-chips-row .letter-chip {
    min-width: 34px !important;
    height: 34px !important;
    font-size: 14px !important;
    padding: 0 10px !important;
    border-radius: 10px !important;
  }

  .year-badge {
    font-size: 18px !important;
    padding: 8px 16px !important;
    margin-bottom: 20px !important;
  }

  .zbr-hero div[style*="gap: 12px"][style*="flex-wrap"] {
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 28px !important;
  }

  .about-card {
    padding: 24px 20px !important;
  }

  .criteria-card {
    padding: 20px 18px !important;
    gap: 14px !important;
  }

  .criteria-num {
    min-width: 44px !important;
    height: 44px !important;
    font-size: 18px !important;
    border-radius: 12px !important;
  }

  .prize-card {
    padding: 28px 22px !important;
  }

  .prize-medal {
    width: 64px !important;
    height: 64px !important;
    font-size: 28px !important;
  }

  .prize-amount {
    font-size: 30px !important;
  }

  .timeline-item {
    gap: 14px !important;
    padding: 14px 0 !important;
  }

  .timeline-dot {
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
  }

  .timeline-item > div[style*="margin-left:auto"] {
    margin-left: 52px !important;
    font-size: 11px !important;
  }

  /* Hide floating deco letters — negative offsets cause overflow on narrow screens */
  .zbr-hero .deco-letter {
    display: none !important;
  }

  .big-deco-letter {
    display: none !important;
  }

  .form-section .form-card {
    padding: 24px 18px !important;
    border-radius: 22px !important;
  }

  .word-input {
    font-size: 16px !important;
  }

  .form-field label {
    font-size: 12px !important;
  }

  .form-field input,
  .form-field textarea,
  .form-field select {
    padding: 12px 14px !important;
    font-size: 14px !important;
    border-radius: 12px !important;
  }

  main > section,
  .timeline-section,
  .form-section {
    padding: 48px 0 !important;
  }

  .success-state {
    padding: 30px 12px !important;
  }

  .success-tick {
    width: 74px !important;
    height: 74px !important;
  }

  #successWord {
    font-size: 22px !important;
  }
}

@media (max-width: 400px) {
  .zbr-chips-row .letter-chip {
    min-width: 28px !important;
    height: 28px !important;
    font-size: 12px !important;
    padding: 0 7px !important;
    border-radius: 7px !important;
  }

  .zbr-hero div[style*="gap: 14px"][style*="flex-wrap"] {
    flex-direction: column !important;
    width: 100% !important;
  }

  .zbr-hero div[style*="gap: 14px"][style*="flex-wrap"] .btn {
    width: 100% !important;
  }

  .prize-medal {
    width: 56px !important;
    height: 56px !important;
    font-size: 24px !important;
  }

  .prize-amount {
    font-size: 26px !important;
  }
}


/* ============================================================
   GAME PAGE
   ============================================================ */

#board-container {
  position: relative;
  overflow: visible;
  width: calc(100% - 100px);
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-radius: 20px;
  border: 2px solid #e5e5e5;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin: 0 auto;
  touch-action: none;
  -ms-touch-action: none;
  overscroll-behavior: contain;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}

#board-container:hover {
  transform: translateY(-2px);
}

#board-container.flash {
  animation: boardFlash 0.5s ease-out;
}

@keyframes boardFlash {
  0%   { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 0 0 0 rgba(247, 97, 0, 0.4); }
  50%  { box-shadow: 0 4px 30px rgba(247, 97, 0, 0.35), 0 0 0 14px rgba(247, 97, 0, 0); }
  100% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); }
}

#board-bg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 12px;
  position: absolute;
  inset: 0;
}

.board-bg-cell {
  background: #faeddd;
  border-radius: 10px;
}

#tile-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tile-2048 {
  position: absolute;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(13px, 2vw, 22px);
  line-height: 1.2;
  text-align: center;
  word-break: break-word;
  overflow-wrap: break-word;
  padding: 4px;
  transition: left 0.13s ease, top 0.13s ease;
  z-index: 2;
  will-change: left, top;
}

.tile-dying {
  z-index: 1 !important;
}

@keyframes tileAppear {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

@keyframes tilePop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.tile-new { animation: tileAppear 0.18s ease-out forwards; }
.tile-pop { animation: tilePop    0.2s  ease    forwards; }

/* Tile colours */
.lv1  { background: #FFF0EE; color: #f76100; border: 2px solid #fdd; }
.lv2  { background: #EEF3FF; color: #3e1630; border: 2px solid #dde; }
.lv3  { background: #E8F8F5; color: #1a9e80; }
.lv4  { background: #FFFBE6; color: #b45309; }
.lv5  { background: #FDE8F0; color: #c0266e; }
.lv6  { background: #EDE8FF; color: #7c3aed; }
.lv7  { background: #E8F6FF; color: #0369a1; }
.lv8  { background: #F0FFF4; color: #15803d; }
.lv9  { background: #FFF7ED; color: #c2410c; }
.lv10 { background: #FDF2F8; color: #9d174d; }
.lv11 { background: #F5F3FF; color: #6d28d9; }
.lv12 { background: #ECFDF5; color: #065f46; }

.win-tile {
  background: linear-gradient(135deg, #f76100, #3e1630);
  color: #fff;
  animation: shimmer 1.2s infinite alternate;
}

@keyframes shimmer {
  from { filter: brightness(1); }
  to   { filter: brightness(1.18); }
}

.game-wrap {
  max-width: 1080px;
  margin: 0 auto;
}

.game-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}

.game-board-col {
  width: 100%;
}

.game-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

main > .container {
  position: relative;
  z-index: 1;
}

.game-sidebar .sidebar-card {
  background: #fff;
  border: 2px solid #e5e5e5;
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.game-sidebar .sidebar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.09);
  border-color: #f7c9aa;
}

.game-sidebar .sidebar-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #f76100, #fa8533);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.game-sidebar .sidebar-card:hover::before {
  opacity: 1;
}

.game-sidebar .sidebar-card.accent-plum::before  { background: linear-gradient(180deg, #3e1630, #5a1f44); opacity: 1; }
.game-sidebar .sidebar-card.accent-orange::before { background: linear-gradient(180deg, #f76100, #fa8533); opacity: 1; }
.game-sidebar .sidebar-card.accent-green::before  { background: linear-gradient(180deg, #22c55e, #16a34a); opacity: 1; }

.game-sidebar .sidebar-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #6E6E6E;
  text-transform: uppercase;
  font-family: 'Space Mono', monospace;
  margin-bottom: 8px;
}

.game-sidebar .sidebar-val {
  font-size: 36px;
  font-weight: 800;
  color: #f76100;
  font-family: 'Manrope', sans-serif;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}

.game-sidebar .sidebar-val.bumped {
  animation: scoreBump 0.45s ease-out;
}

@keyframes scoreBump {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.22); color: #fa8533; }
  100% { transform: scale(1); }
}

.game-sidebar .sidebar-card.accent-plum .sidebar-val {
  color: #3e1630;
}

.sidebar-scores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.score-card-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.score-card-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #faeddd, #fff);
  box-shadow: inset 0 0 0 1px rgba(247, 97, 0, 0.18);
  color: #f76100;
}

.game-sidebar .sidebar-card.accent-plum .score-card-icon {
  color: #3e1630;
  box-shadow: inset 0 0 0 1px rgba(62, 22, 48, 0.2);
}

.score-card-body {
  min-width: 0;
  flex: 1;
}

.game-sidebar .word-slots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
  flex-wrap: nowrap;
}

.game-sidebar .word-slot {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 1 / 1.15;
  border-radius: 9px;
  background: #faeddd;
  border: 2px dashed #f7c9aa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-weight: 900;
  font-size: clamp(11px, 1.5vw, 15px);
  color: transparent;
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.game-sidebar .word-slot.filled {
  background: linear-gradient(135deg, #f76100, #fa8533);
  border-color: #f76100;
  border-style: solid;
  color: #fff;
  box-shadow: 0 6px 14px rgba(247, 97, 0, 0.35);
  animation: slotFlip 0.6s ease-out;
}

@keyframes slotFlip {
  0%   { transform: rotateY(-180deg) scale(0.6); }
  60%  { transform: rotateY(10deg)   scale(1.12); }
  100% { transform: rotateY(0)       scale(1); }
}

.stats-fab {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 1001;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #3e1630;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-weight: 900;
  font-size: 20px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(62, 22, 48, 0.35);
  transition: background 0.2s, transform 0.2s;
}

.stats-fab:hover {
  background: #f76100;
  transform: scale(1.08);
}

.stats-fab.near-footer {
  background: #fff !important;
  color: #3e1630 !important;
  box-shadow: 0 4px 16px rgba(62, 22, 48, 0.25) !important;
}

.stats-fab::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(62, 22, 48, 0.4);
  animation: pulseRing 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes pulseRing {
  0%  { box-shadow: 0 0 0 0    rgba(62, 22, 48, 0.4); }
  70% { box-shadow: 0 0 0 14px rgba(62, 22, 48, 0); }
  100%{ box-shadow: 0 0 0 0    rgba(62, 22, 48, 0); }
}

.stats-popup {
  position: fixed;
  top: 128px;
  right: 20px;
  z-index: 1000;
  width: 260px;
  background: #fff;
  border-radius: 20px;
  border: 2px solid #e5e5e5;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
  padding: 20px;
  display: none;
  animation: popupSlideIn 0.2s ease;
}

.stats-popup.open {
  display: block;
}

@keyframes popupSlideIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.sp-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: #3e1630;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sp-close {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #faeddd;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #6E6E6E;
  transition: background 0.2s;
}

.sp-close:hover {
  background: #f76100;
  color: #fff;
}

.sp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #faeddd;
}

.sp-row:last-of-type {
  border-bottom: none;
}

.sp-lbl {
  font-size: 12px;
  color: #6E6E6E;
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sp-val {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #f76100;
}

.sp-htp {
  margin-top: 12px;
  width: 100%;
  padding: 10px;
  background: #3e1630;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.sp-htp:hover {
  background: #f76100;
}

.unlocked-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin-top: 8px;
  overflow: hidden;
}

.ul-chip {
  flex: 1 1 0;
  min-width: 0;
  height: 30px;
  padding: 0 4px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f76100;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(10px, 1.4vw, 14px);
  animation: chipPop 0.25s ease;
  white-space: nowrap;
  overflow: hidden;
}

@keyframes chipPop {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.ul-chip.just-unlocked {
  animation: chipUnlock 0.9s ease-out;
  box-shadow: 0 0 0 0 rgba(247, 97, 0, 0.7);
}

@keyframes chipUnlock {
  0%   { transform: scale(0.5) rotate(-8deg); box-shadow: 0 0 0 0 rgba(247, 97, 0, 0.8); }
  45%  { transform: scale(1.25) rotate(6deg); box-shadow: 0 0 0 16px rgba(247, 97, 0, 0); }
  100% { transform: scale(1) rotate(0deg); }
}

.result-modal {
  padding: 0 !important;
  overflow: hidden !important;
  position: relative;
}

.result-modal::before {
  content: '';
  position: absolute;
  top: -140px;
  right: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 97, 0, 0.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.result-modal::after {
  content: '';
  position: absolute;
  bottom: 60px;
  left: -100px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 133, 51, 0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.result-modal.lose::before { background: radial-gradient(circle, rgba(62, 22, 48, 0.16), transparent 70%); }
.result-modal.lose::after  { background: radial-gradient(circle, rgba(247, 97, 0, 0.10), transparent 70%); }

.result-modal-body {
  padding: 36px 36px 28px;
  position: relative;
  z-index: 1;
}

.result-modal-header {
  text-align: center;
  margin-bottom: 4px;
}

.result-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 14px;
}

.result-pill.win  { background: linear-gradient(135deg, #f76100, #fa8533); box-shadow: 0 6px 18px rgba(247, 97, 0, 0.32); }
.result-pill.lose { background: linear-gradient(135deg, #3e1630, #5a1f44); box-shadow: 0 6px 18px rgba(62, 22, 48, 0.28); }

.result-eyebrow {
  font-size: 13px;
  color: #8a8a8a;
  margin-bottom: 0;
}

.result-word-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  justify-content: center;
  margin: 18px 0;
  padding: 0 4px;
  width: 100%;
}

.result-word-chips .letter-chip {
  flex: 1 1 0;
  min-width: 0;
  height: auto;
  aspect-ratio: 1 / 1.15;
  padding: 0;
  border-radius: 12px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.08);
  line-height: 1;
}

.result-def {
  text-align: center;
  font-family: 'Manrope', sans-serif;
  font-size: 14.5px;
  line-height: 1.55;
  color: #3e1630;
  font-style: italic;
  background: #faeddd;
  border-radius: 14px;
  padding: 13px 20px;
  margin: 0 0 22px;
}

.result-stats {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.result-stat {
  flex: 1;
  text-align: center;
  padding: 0 12px;
  position: relative;
}

.result-stat + .result-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: #ece4d6;
}

.result-stat-value {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: #3e1630;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 5px;
}

.result-stat-value.accent {
  color: #f76100;
}

.result-stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #9a9088;
  text-transform: uppercase;
}

.share-title {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: #b0a89e;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin: 6px 0 12px;
}

.share-row {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.share-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.share-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.share-btn-copy   { background: #1a1a1a; }
.share-btn-fb     { background: #1877F2; }
.share-btn-x      { background: #000; }
.share-btn-wa     { background: #25D366; }
.share-btn-ig     { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.share-btn-native { background: linear-gradient(135deg, #f76100, #fa8533); }

.share-btn[hidden] {
  display: none;
}

@media (min-width: 1025px) {
  .share-btn-ig {
    display: none;
  }
}

.share-toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(20px);
  background: #111;
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 10000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.share-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.share-preview {
  display: none !important;
}

.result-footer {
  background: linear-gradient(135deg, #3e1630, #5a1f44);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.result-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(250, 237, 221, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 237, 221, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.result-footer > * {
  position: relative;
  z-index: 1;
}

.countdown-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: transparent;
  padding: 0;
  margin: 0;
  text-align: left;
}

.countdown-label {
  font-size: 10px;
  font-family: 'Space Mono', monospace;
  letter-spacing: 1.5px;
  color: rgba(250, 237, 221, 0.6);
  text-transform: uppercase;
}

.countdown-time {
  font-family: 'Space Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: #fa8533;
  letter-spacing: 2px;
  line-height: 1;
}

.result-footer-close {
  background: rgba(250, 237, 221, 0.10);
  color: #faeddd;
  border: 1px solid rgba(250, 237, 221, 0.18);
  padding: 9px 18px;
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.result-footer-close:hover {
  background: rgba(250, 237, 221, 0.2);
  transform: translateX(2px);
}

.htp-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  background: #faeddd;
  border-radius: 14px;
}

.htp-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.htp-step p:first-child {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.htp-step p:last-child {
  font-size: 13px;
  color: #6E6E6E;
}

.rule-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: transform 0.2s ease;
}

.rule-step:hover {
  transform: translateX(3px);
}

.rule-step:hover .rule-num {
  background: #f76100;
  color: #fff !important;
}

.rule-num {
  min-width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #faeddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

#msg-2048 {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 800;
  color: #f76100;
  min-height: 22px;
  text-align: center;
  font-family: 'Manrope', sans-serif;
}

.header-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

@media (max-width: 640px) {
  .header-wrap .deco-letter {
    display: none;
  }
}

.game-title {
  text-align: center;
  margin-bottom: 8px;
  font-family: 'Manrope', sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 4.4vw, 44px);
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #3e1630 0%, #f76100 40%, #fa8533 60%, #3e1630 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShine 6s linear infinite;
}

.game-tagline {
  text-align: center;
  color: #6E6E6E;
  font-size: 14px;
  font-family: 'Space Mono', monospace;
  letter-spacing: 1px;
  margin-bottom: 28px;
}

.game-tagline b {
  color: #f76100;
  font-family: 'Manrope', sans-serif;
}

.combo-hud {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 17px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-weight: 900;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.45);
  transform: scale(0);
  transition: transform 0.25s cubic-bezier(0.2, 1.6, 0.4, 1);
  pointer-events: none;
  z-index: 3;
}

.combo-hud.show {
  transform: scale(1);
}

.combo-hud.bumped {
  animation: comboBump 0.35s ease-out;
}

@keyframes comboBump {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.28) rotate(-4deg); }
  100% { transform: scale(1) rotate(0); }
}

.progress-wrap {
  margin-top: 10px;
  background: #faeddd;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f76100, #fa8533);
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 12px rgba(247, 97, 0, 0.45);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 11px;
  font-family: 'Space Mono', monospace;
  color: #6E6E6E;
}

.progress-count {
  color: #f76100;
  font-weight: 800;
  font-size: 14px;
  font-family: 'Manrope', sans-serif;
}

.float-pts {
  position: absolute;
  font-family: 'Manrope', sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: #22c55e;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  animation: floatUp 0.9s ease-out forwards;
  z-index: 20;
}

@keyframes floatUp {
  0%   { transform: translateY(0) scale(0.6); opacity: 0; }
  15%  { transform: translateY(-8px) scale(1.1); opacity: 1; }
  100% { transform: translateY(-60px) scale(0.9); opacity: 0; }
}

.confetti-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}

.confetti-piece {
  position: absolute;
  top: -12px;
  width: 10px;
  height: 14px;
  border-radius: 2px;
  opacity: 0;
  animation: confettiFall 2.2s ease-out forwards;
}

@keyframes confettiFall {
  0%   { transform: translate(0, -20px) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translate(var(--dx), 380px) rotate(720deg); opacity: 0; }
}

.merge-ripple {
  position: absolute;
  border-radius: 50%;
  border: 3px solid rgba(247, 97, 0, 0.7);
  pointer-events: none;
  animation: rippleOut 0.7s ease-out forwards;
  z-index: 15;
}

@keyframes rippleOut {
  0%   { opacity: 0.9; transform: scale(0.3); }
  100% { opacity: 0; transform: scale(2.4); }
}

.kbd-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  background: #fff;
  border: 1.5px solid #e5e5e5;
  box-shadow: 0 2px 0 #e5e5e5;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: #3e1630;
  font-weight: 700;
}


/* ============================================================
   GAME PAGE — RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .game-layout {
    grid-template-columns: 1fr 280px;
    gap: 20px;
  }

  #board-container {
    width: calc(100% - 60px) !important;
  }

  .game-tagline {
    margin-bottom: 22px;
  }
}

@media (max-width: 780px) {
  main,
  .container,
  .game-wrap,
  .game-layout,
  .game-board-col,
  .game-sidebar,
  .game-sidebar .sidebar-card,
  #board-container,
  .game-sidebar .word-slots,
  .progress-wrap,
  .unlocked-chips,
  .kbd-row {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .container {
    padding: 0 14px !important;
    width: 100% !important;
  }

  .game-wrap {
    width: 100% !important;
  }

  .header-wrap {
    margin-bottom: 14px;
    gap: 4px;
  }

  .game-title {
    font-size: clamp(24px, 6.5vw, 36px) !important;
    margin-bottom: 6px !important;
  }

  .game-tagline {
    font-size: 12px !important;
    margin-bottom: 16px !important;
    letter-spacing: 0.5px !important;
    padding: 0 8px;
  }

  .game-tagline #daily-badge {
    font-size: 10px !important;
    margin-left: 6px !important;
    padding: 2px 8px !important;
  }

  #board-container {
    width: 100% !important;
    margin: 0 auto !important;
  }

  #board-bg {
    gap: 8px;
    padding: 10px;
  }

  .game-layout {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .game-sidebar {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .game-sidebar .sidebar-card {
    flex: 1 1 calc(50% - 5px) !important;
    min-width: 140px !important;
    padding: 16px 18px !important;
  }

  .game-sidebar .sidebar-card:nth-child(2),
  .game-sidebar .sidebar-card:nth-child(3) {
    flex: 1 1 100% !important;
  }

  .game-sidebar .sidebar-val {
    font-size: 28px !important;
  }

  .score-card-icon {
    width: 38px !important;
    height: 38px !important;
  }

  .kbd-row .kbd:not(:last-child) {
    display: none !important;
  }

  .kbd-row {
    margin-top: 8px !important;
  }

  #msg-2048 {
    font-size: 14px !important;
    margin-top: 8px !important;
  }

  .stats-fab {
    top: auto !important;
    bottom: 24px !important;
    right: 18px !important;
    width: 48px !important;
    height: 48px !important;
    font-size: 22px !important;
  }

  .stats-popup {
    top: auto !important;
    bottom: 80px !important;
    right: 16px !important;
    left: auto !important;
    width: calc(100vw - 32px) !important;
    max-width: 320px !important;
  }

  .result-modal-body {
    padding: 24px 22px 20px !important;
  }

  .result-footer {
    padding: 14px 22px !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .countdown-time {
    font-size: 18px !important;
  }

  .result-stat-value {
    font-size: 20px !important;
  }

  .result-def {
    font-size: 13.5px !important;
    padding: 12px 16px !important;
  }

  .htp-step {
    padding: 12px !important;
    gap: 10px !important;
  }

  .htp-icon {
    font-size: 22px !important;
  }

  .htp-step p:first-child {
    font-size: 13px !important;
  }

  .htp-step p:last-child {
    font-size: 12px !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .game-title {
    font-size: clamp(20px, 6vw, 28px) !important;
  }

  .game-tagline {
    font-size: 11px !important;
    margin-bottom: 14px !important;
  }

  .header-wrap {
    margin-bottom: 10px !important;
  }

  .header-wrap .letter-chip {
    transform: scale(0.85);
  }

  #board-bg {
    gap: 6px;
    padding: 8px;
  }

  .game-sidebar .sidebar-card {
    flex: 1 1 100% !important;
    min-width: 0 !important;
    padding: 14px 16px !important;
  }

  .game-sidebar .sidebar-val {
    font-size: 26px !important;
  }

  .score-card-icon {
    width: 34px !important;
    height: 34px !important;
  }

  .stats-popup {
    right: 10px !important;
    left: 10px !important;
    bottom: 76px !important;
    width: auto !important;
    max-width: none !important;
    padding: 16px !important;
  }

  .stats-fab {
    bottom: 18px !important;
    right: 14px !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 20px !important;
  }

  .result-modal-body {
    padding: 22px 18px 18px !important;
  }

  .result-footer {
    padding: 12px 18px !important;
  }

  .result-pill {
    font-size: 10px !important;
    padding: 5px 12px !important;
  }

  .result-eyebrow {
    font-size: 12px !important;
  }

  .result-def {
    font-size: 13px !important;
    padding: 11px 14px !important;
  }

  .share-btn {
    width: 38px !important;
    height: 38px !important;
  }

  .share-btn svg,
  .share-btn i {
    width: 16px !important;
    height: 16px !important;
  }

  .share-row {
    gap: 8px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .htp-step {
    padding: 10px !important;
  }

  .htp-step p:first-child {
    font-size: 12.5px !important;
  }

  .htp-step p:last-child {
    font-size: 11.5px !important;
    line-height: 1.45 !important;
  }
}


/* ============================================================
   ADMIN LOGIN PAGE
   ============================================================ */

body:has(#loginScreen) {
  background: radial-gradient(ellipse at top, #1a0e18 0%, #0a0a0a 60%, #050505 100%);
  min-height: 100vh;
  color: white;
}

body:has(#loginScreen) .grain {
  opacity: 0.04;
}

#loginScreen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  position: relative;
}

.login-deco {
  position: absolute;
  display: flex;
  gap: 8px;
  pointer-events: none;
}

.login-deco.top {
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
}

.login-deco.bottom {
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
}

.login-deco .letter-chip {
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.4);
  opacity: 0.85;
}

.login-card {
  background: linear-gradient(180deg, #1a1015 0%, #120a10 100%);
  border: 1px solid #2a1a24;
  border-radius: 24px;
  padding: 44px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(247, 97, 0, 0.08);
  position: relative;
  z-index: 2;
}

.login-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(247, 97, 0, 0.08);
  border: 1px solid rgba(247, 97, 0, 0.25);
  padding: 6px 14px;
  border-radius: 50px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #f76100;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.login-card h2 {
  color: white;
  font-size: 28px;
  margin-bottom: 8px;
  font-family: 'Manrope', sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.login-card h2 span {
  color: #f76100;
}

.login-card .subtitle {
  color: #8a7880;
  font-size: 14px;
  margin-bottom: 32px;
}

.a-field {
  margin-bottom: 18px;
}

.a-field label {
  display: block;
  color: #bfa5b5;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  font-family: 'Space Mono', monospace;
}

.a-field input {
  width: 100%;
  padding: 14px 18px;
  background: #0a0608;
  border: 1px solid #2a1a24;
  border-radius: 12px;
  color: white;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s;
}

.a-field input:focus {
  border-color: #f76100;
  box-shadow: 0 0 0 3px rgba(247, 97, 0, 0.15);
  background: #0d0709;
}

.a-btn {
  width: 100%;
  padding: 15px;
  background: #f76100;
  color: white;
  border: none;
  border-radius: 14px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 8px 24px rgba(247, 97, 0, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.a-btn:hover {
  background: #e55500;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(247, 97, 0, 0.45);
}

.a-btn:active {
  transform: translateY(0);
}

#loginErr {
  display: none;
  color: #fca5a5;
  font-size: 13px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 10px;
}


/* ============================================================
   ADMIN PANEL
   ============================================================ */

#adminPanel {
  display: none;
}

.admin-nav {
  background: rgba(15, 10, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(247, 97, 0, 0.1);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-nav .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.admin-logo {
  color: white;
  font-family: 'Manrope', sans-serif;
  font-weight: 900;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.admin-logo .logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: adminPulse 2s infinite;
}

@keyframes adminPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.admin-logo span.orange {
  color: #f76100;
}

.admin-logo .admin-tag {
  font-size: 11px;
  font-weight: 700;
  color: #f76100;
  background: rgba(247, 97, 0, 0.12);
  padding: 3px 10px;
  border-radius: 50px;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-tabs {
  display: flex;
  gap: 4px;
  background: #0a0608;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid #2a1a24;
}

.atab {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #8a7880;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
}

.atab:hover {
  color: white;
  background: rgba(247, 97, 0, 0.08);
}

.atab.active {
  color: white;
  background: #f76100;
  box-shadow: 0 4px 12px rgba(247, 97, 0, 0.35);
}

.atab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 50px;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: white;
  font-size: 10px;
  font-weight: 900;
  margin-left: 8px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.5);
}

.logout-btn {
  padding: 9px 16px;
  background: transparent;
  border: 1px solid #2a1a24;
  color: #bfa5b5;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.logout-btn:hover {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.3);
  color: #fca5a5;
}

.admin-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: adminFadeIn 0.3s ease;
}

@keyframes adminFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.admin-content .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title {
  color: white;
  font-family: 'Manrope', sans-serif;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.section-title .icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(247, 97, 0, 0.15), rgba(247, 97, 0, 0.05));
  border: 1px solid rgba(247, 97, 0, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f76100;
}

.a-card {
  background: linear-gradient(180deg, #15090f 0%, #0e0609 100%);
  border: 1px solid #2a1a24;
  border-radius: 18px;
  padding: 26px;
  margin-bottom: 16px;
  transition: all 0.2s;
}

.a-card:hover {
  border-color: rgba(247, 97, 0, 0.3);
}

.a-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.a-card h3 {
  color: white;
  font-size: 17px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
}

.a-card p {
  color: #bfa5b5;
  font-size: 14px;
  line-height: 1.6;
}

.a-meta {
  color: #7a6873;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.a-meta strong {
  color: #e4d5dc;
}

.status-chip {
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Space Mono', monospace;
}

.status-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-unread   { background: rgba(96, 165, 250, 0.1);  color: #60a5fa; border: 1px solid rgba(96, 165, 250, 0.25); }
.status-replied  { background: rgba(74, 222, 128, 0.1);  color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.25); }
.status-pending  { background: rgba(251, 191, 36, 0.1);  color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }
.status-approved { background: rgba(74, 222, 128, 0.1);  color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.25); }
.status-rejected { background: rgba(248, 113, 113, 0.1); color: #f87171; border: 1px solid rgba(248, 113, 113, 0.25); }

.zbr-card {
  background: linear-gradient(180deg, #15090f 0%, #0e0609 100%);
  border: 1px solid #2a1a24;
  border-radius: 18px;
  padding: 26px;
  margin-bottom: 16px;
  transition: all 0.2s;
}

.zbr-card:hover {
  border-color: rgba(247, 97, 0, 0.3);
}

.zbr-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.zbr-word {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: #f76100;
  line-height: 1.1;
}

.zbr-submitter {
  color: #bfa5b5;
  font-size: 13px;
  margin-top: 4px;
  font-family: 'Manrope', sans-serif;
}

.zbr-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.zbr-detail {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid #1e1018;
}

.zbr-detail-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a6873;
  margin-bottom: 5px;
}

.zbr-detail-value {
  color: #e4d5dc;
  font-size: 14px;
  line-height: 1.5;
}

.zbr-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 4px;
}

.zbr-btn {
  padding: 9px 18px;
  border: none;
  border-radius: 10px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.zbr-btn.approve { background: rgba(74, 222, 128, 0.12); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.3); }
.zbr-btn.approve:hover { background: #4ade80; color: #0a2e1a; }

.zbr-btn.reject  { background: rgba(248, 113, 113, 0.1); color: #f87171; border: 1px solid rgba(248, 113, 113, 0.25); }
.zbr-btn.reject:hover  { background: #f87171; color: #2a0a0a; }

.zbr-btn.pending { background: rgba(251, 191, 36, 0.1); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.25); }
.zbr-btn.pending:hover { background: #fbbf24; color: #2a1a00; }

.zbr-ai-result {
  margin-top: 14px;
  padding: 16px 18px;
  background: rgba(168, 85, 247, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: #d4c4cc;
}

.zbr-ai-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a855f7;
}

.zbr-ai-score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 26px;
  border-radius: 8px;
  padding: 0 8px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #a855f7;
  font-family: 'Manrope', sans-serif;
  font-weight: 900;
  font-size: 14px;
}

.zbr-ai-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.zbr-ai-pill {
  flex-shrink: 0;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 800;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2px;
}

.zbr-ai-pill.yes  { background: rgba(74, 222, 128, 0.12); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.3); }
.zbr-ai-pill.no   { background: rgba(248, 113, 113, 0.1); color: #f87171; border: 1px solid rgba(248, 113, 113, 0.25); }
.zbr-ai-pill.part { background: rgba(251, 191, 36, 0.1);  color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }

.zbr-ai-verdict {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  font-family: 'Manrope', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}

.zbr-ai-verdict.approve { background: rgba(74, 222, 128, 0.1);  color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.25); }
.zbr-ai-verdict.reject  { background: rgba(248, 113, 113, 0.08); color: #f87171; border: 1px solid rgba(248, 113, 113, 0.2); }
.zbr-ai-verdict.maybe   { background: rgba(251, 191, 36, 0.08);  color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.25); }

.zbr-ai-btn {
  padding: 9px 16px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
  border-radius: 10px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.zbr-ai-btn:hover:not(:disabled) {
  background: rgba(168, 85, 247, 0.25);
}

.zbr-ai-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.zbr-rating-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid #2a1a24;
  border-radius: 10px;
  padding: 4px 8px 4px 12px;
}

.zbr-rating-wrap label {
  font-size: 10px;
  font-weight: 700;
  color: #7a6873;
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.zbr-rating-input {
  width: 50px;
  padding: 5px 8px;
  background: #0a0608;
  border: 1px solid #2a1a24;
  border-radius: 7px;
  color: white;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 14px;
  outline: none;
  text-align: center;
  transition: all 0.2s;
}

.zbr-rating-input::-webkit-inner-spin-button,
.zbr-rating-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.zbr-rating-input:focus {
  border-color: #f76100;
  box-shadow: 0 0 0 2px rgba(247, 97, 0, 0.15);
}

.zbr-rating-save {
  padding: 5px 10px;
  background: rgba(247, 97, 0, 0.12);
  border: 1px solid rgba(247, 97, 0, 0.3);
  color: #f76100;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  font-family: 'Manrope', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.zbr-rating-save:hover {
  background: #f76100;
  color: white;
}

.zbr-score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
  font-family: 'Manrope', sans-serif;
  font-weight: 900;
  font-size: 15px;
  background: linear-gradient(135deg, rgba(247, 97, 0, 0.25), rgba(247, 97, 0, 0.1));
  border: 1px solid rgba(247, 97, 0, 0.45);
  color: #f76100;
}

.zbr-badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 50px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #2a1a00;
  font-size: 10px;
  font-weight: 900;
  margin-left: 8px;
}

.reply-area {
  margin-top: 16px;
}

.reply-area textarea {
  width: 100%;
  padding: 14px 16px;
  background: #0a0608;
  border: 1px solid #2a1a24;
  border-radius: 12px;
  color: white;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  min-height: 100px;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s;
}

.reply-area textarea:focus {
  border-color: #f76100;
  box-shadow: 0 0 0 3px rgba(247, 97, 0, 0.12);
}

.reply-btn {
  margin-top: 12px;
  padding: 12px 22px;
  background: #f76100;
  color: white;
  border: none;
  border-radius: 12px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 6px 16px rgba(247, 97, 0, 0.25);
}

.reply-btn:hover:not(:disabled) {
  background: #e55500;
  transform: translateY(-1px);
}

.reply-btn:disabled {
  background: #2a1a24;
  color: #7a6873;
  cursor: default;
  box-shadow: none;
}

.msg-body {
  background: #0a0608;
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 14px;
  color: #d4c4cc;
  line-height: 1.65;
  border-left: 3px solid #f76100;
}

.msg-reply {
  margin-top: 14px;
  padding: 14px 16px;
  background: rgba(74, 222, 128, 0.05);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 12px;
  font-size: 13px;
  color: #a7f3d0;
}

.msg-reply strong {
  color: #4ade80;
  display: block;
  margin-bottom: 6px;
  font-family: 'Manrope', sans-serif;
}

.week-block {
  margin-bottom: 36px;
}

.week-label {
  color: #bfa5b5;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  font-family: 'Space Mono', monospace;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(247, 97, 0, 0.08);
  border: 1px solid rgba(247, 97, 0, 0.2);
  border-radius: 50px;
  color: #f76100;
}

#adminPanel .winner-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(180deg, #15090f 0%, #0e0609 100%);
  border: 1px solid #2a1a24;
  border-radius: 14px;
  margin-bottom: 10px;
  transition: all 0.2s;
}

#adminPanel .winner-row:hover {
  border-color: rgba(247, 97, 0, 0.3);
  transform: translateX(4px);
}

.medal {
  font-size: 26px;
}

.winner-word {
  color: white;
  font-family: 'Manrope', sans-serif;
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.05em;
}

.winner-def {
  color: #bfa5b5;
  font-size: 13px;
  margin-top: 3px;
  line-height: 1.5;
}

.winner-meta {
  color: #7a6873;
  font-size: 11px;
  margin-top: 4px;
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.winner-votes {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.votes-pill {
  background: linear-gradient(135deg, #f76100, #fa8533);
  color: white;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(247, 97, 0, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.word-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.word-item {
  background: linear-gradient(180deg, #15090f 0%, #0e0609 100%);
  border: 1px solid #2a1a24;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s;
}

.word-item:hover {
  border-color: rgba(247, 97, 0, 0.4);
  transform: translateY(-2px);
}

.word-item .w-word {
  color: white;
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.word-item .w-def {
  color: #bfa5b5;
  font-size: 13px;
  line-height: 1.5;
  flex: 1;
}

.word-item .w-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.used-chip {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.used-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.chip-used   { background: rgba(96, 165, 250, 0.1); color: #60a5fa; border: 1px solid rgba(96, 165, 250, 0.25); }
.chip-unused { background: rgba(74, 222, 128, 0.1); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.25); }

.del-btn {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid #2a1a24;
  color: #bfa5b5;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.del-btn:hover {
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.4);
  color: #fca5a5;
}

.add-word-form {
  background: linear-gradient(180deg, #15090f 0%, #0e0609 100%);
  border: 1px solid #2a1a24;
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.add-word-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f76100, #3e1630);
}

.add-word-form h3 {
  color: white;
  font-size: 17px;
  margin-bottom: 20px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.add-word-form input,
.add-word-form textarea {
  width: 100%;
  padding: 13px 16px;
  background: #0a0608;
  border: 1px solid #2a1a24;
  border-radius: 12px;
  color: white;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s;
  margin-bottom: 12px;
}

.add-word-form input:focus,
.add-word-form textarea:focus {
  border-color: #f76100;
  box-shadow: 0 0 0 3px rgba(247, 97, 0, 0.12);
}

.add-word-form textarea {
  resize: vertical;
  min-height: 70px;
}

.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: #7a6873;
  background: rgba(247, 97, 0, 0.02);
  border: 2px dashed #2a1a24;
  border-radius: 16px;
}

.empty-state svg {
  margin: 0 auto 18px;
  opacity: 0.4;
}

.empty-state .big-emoji {
  font-size: 52px;
  display: block;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-state p {
  color: #bfa5b5;
  font-size: 14px;
}

.filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap;
  align-items: center;
  padding: 14px;
  background: rgba(15, 10, 13, 0.6);
  border: 1px solid #2a1a24;
  border-radius: 14px;
}

.filter-input {
  padding: 10px 16px 10px 40px;
  background: #0a0608;
  border: 1px solid #2a1a24;
  border-radius: 10px;
  color: white;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  width: 240px;
  transition: all 0.2s;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237a6873' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='11' cy='11' r='8'/%3e%3cpath d='m21 21-4.3-4.3'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: 14px center;
}

.filter-input:focus {
  border-color: #f76100;
  box-shadow: 0 0 0 3px rgba(247, 97, 0, 0.12);
}

.ftab {
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid #2a1a24;
  background: transparent;
  color: #bfa5b5;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.ftab.active {
  background: #f76100;
  border-color: #f76100;
  color: white;
  box-shadow: 0 4px 12px rgba(247, 97, 0, 0.3);
}

.ftab:hover:not(.active) {
  border-color: #f76100;
  color: white;
  background: rgba(247, 97, 0, 0.05);
}


/* ============================================================
   ADMIN PAGE — RESPONSIVE
   ============================================================ */

@media (max-width: 700px) {
  .login-card {
    padding: 32px 24px;
  }

  .admin-tabs {
    display: none;
  }

  .login-deco {
    display: none;
  }

  .section-title {
    font-size: 20px;
  }
}