/* ═══════════════════════════════════════
   GLASS (repurposed as white card)
═══════════════════════════════════════ */
.glass {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* ═══════════════════════════════════════
   SECTION HEADER
═══════════════════════════════════════ */
.sec-head {
  padding: 22px 0 16px;
}

.sec-title {
  font-family: "Baloo 2", "Noto Sans Hebrew", "Sora", sans-serif;
  font-size: clamp(24px, 5.5vw, 34px);
  font-weight: 900;
  letter-spacing: -0.4px;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 4px;
}

.sec-sub {
  font-size: clamp(13px, 2.5vw, 15px);
  font-weight: 600;
  color: var(--text-soft);
  direction: rtl;
}

/* ═══════════════════════════════════════
   GLOBAL BUTTONS
═══════════════════════════════════════ */
.btn {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--primary), var(--coral)) border-box;
  color: var(--primary);
  border: 2.5px solid transparent;
  border-radius: 40px;
  padding: 14px 28px;
  font-family: "Baloo 2", "Noto Sans Hebrew", "Sora", sans-serif;
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
  transition: all 0.25s var(--spring);
  box-shadow: 0 4px 16px rgba(108, 79, 246, 0.16);
  min-height: 52px;
}

.btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(108, 79, 246, 0.26);
}

.btn:active {
  transform: scale(0.97);
}

.btn-green {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.28);
}

.btn-green:hover {
  box-shadow: 0 8px 22px rgba(22, 163, 74, 0.38);
}

.btn-back {
  background: var(--bg);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--text-mid);
  font-size: 13px;
  padding: 9px 16px;
}

.btn-back:hover {
  background: var(--surface2);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}


/* ═══════════════════════════════════════
   TOAST
═══════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--text);
  color: white;
  padding: 11px 22px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transition: all 0.4s var(--spring);
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* CONFETTI */
.cbit {
  position: fixed;
  border-radius: 3px;
  animation: cfall var(--dur, 2s) var(--delay, 0s) ease-out forwards;
  pointer-events: none;
  z-index: 9998;
}

@keyframes cfall {
  0% {
    transform: translateY(-60px) rotate(0);
    opacity: 1;
  }

  100% {
    transform: translateY(105vh) rotate(720deg);
    opacity: 0;
  }
}

.fstar {
  position: fixed;
  animation: fup 2s var(--spring) forwards;
  font-size: 20px;
  pointer-events: none;
  z-index: 9999;
}

@keyframes fup {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translateY(-160px) scale(0.4);
    opacity: 0;
  }
}

/* ═══════════════════════════════════════
   LIQUID GLASS HERO CARD
═══════════════════════════════════════ */
.hero-glass-card {
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.85),
    0 12px 40px rgba(73, 54, 232, 0.12);
  border-radius: 32px;
  padding: 16px 24px 28px;
  text-align: center;
  margin: 16px 0;
}
.hero-fox-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 28px;
  margin: 0 auto -4px;
  display: block;
  filter: drop-shadow(0 12px 28px rgba(73,54,232,0.35));
  animation: fox-float 3s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes fox-float {
  from { transform: translateY(0)    rotate(-1.5deg) scale(1); }
  to   { transform: translateY(-12px) rotate(1.5deg) scale(1.04); }
}

/* ═══════════════════════════════════════
   PHASE 1 — #5 UNIFIED GLASS DESIGN
═══════════════════════════════════════ */

/* Section headers — glass card */
.sec-head {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 18px 18px 14px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

/* Word cards — clean white, subtle border on active */
.wcard::after { display: none; }
.wcard:active {
  border-color: rgba(108,79,246,0.30);
  box-shadow: 0 2px 10px rgba(108,79,246,0.12);
}

/* Game cards — colored top accent using --gclr */
.gcard::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gclr, var(--primary));
  border-radius: 4px 4px 0 0;
}
.gcard:active {
  border-color: var(--gclr, var(--primary));
  box-shadow: 0 10px 28px rgba(0,0,0,0.13), 0 0 0 2px var(--gclr, var(--primary));
}

/* Phrase cards — left accent bar */
.pcard {
  border-left: 4px solid var(--primary-mid) !important;
  padding-left: 14px;
}
.pcard:active {
  border-left-color: var(--primary) !important;
  transform: translateX(4px);
}

/* Arenas — polished glass surface */
.arena.active {
  border: none;
  box-shadow: 0 2px 28px rgba(73,54,232,0.11), 0 0 0 1.5px rgba(73,54,232,0.14);
  background: linear-gradient(160deg, #ffffff 0%, #fafafe 100%);
}
.arena-top {
  background: linear-gradient(135deg, rgba(73,54,232,0.07) 0%, rgba(155,111,248,0.04) 100%);
  border-radius: 14px;
  padding: 10px 14px;
  margin: 0 0 18px;
}

