/* =========================================================
   היכל התהילה של החידון: velvet, marble columns, gold everywhere
   ========================================================= */
.qhof {
  position: relative; overflow: hidden; padding: 30px 0 90px; isolation: isolate;
  background:
    radial-gradient(50% 38% at 50% 0%, rgba(255, 215, 0, 0.22), transparent 70%),
    linear-gradient(180deg, transparent, rgba(40, 10, 60, 0.6) 30%, rgba(20, 6, 36, 0.9));
}
/* light rays from above */
.qhof::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 90%; z-index: -1; pointer-events: none;
  background: conic-gradient(from 180deg at 50% 0%, transparent 0 150deg, rgba(255, 223, 110, 0.13) 160deg, transparent 170deg, rgba(255, 223, 110, 0.1) 180deg, transparent 190deg, rgba(255, 223, 110, 0.13) 200deg, transparent 210deg 360deg);
  animation: qh-rays 12s ease-in-out infinite alternate; transform-origin: 50% 0;
}
@keyframes qh-rays { to { transform: rotate(6deg) scale(1.05); } }
/* marble columns on the sides (desktop) */
.qhof::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 240, 200, 0.16), rgba(255, 240, 200, 0.05) 40%, rgba(255, 240, 200, 0.16)) left 3% top 0 / 64px 100% no-repeat,
    linear-gradient(90deg, rgba(255, 240, 200, 0.16), rgba(255, 240, 200, 0.05) 40%, rgba(255, 240, 200, 0.16)) right 3% top 0 / 64px 100% no-repeat;
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 8px, rgba(0, 0, 0, 0.55) 8px 12px); mask: repeating-linear-gradient(90deg, #000 0 8px, rgba(0, 0, 0, 0.55) 8px 12px);
}
@media (max-width: 900px) { .qhof::after { display: none; } }

.qhof-sparks { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.qhof-sparks i {
  position: absolute; top: -10px; width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle, #fff6c2, #ffd700 45%, transparent 70%); box-shadow: 0 0 10px #ffd700;
  transform: scale(var(--s)); animation: qh-fall var(--d) linear var(--delay) infinite; opacity: 0.8;
}
@keyframes qh-fall { to { transform: translate(40px, 110vh) scale(var(--s)); opacity: 0; } }

/* stats medallions */
.qhof-stats { display: grid; grid-template-columns: 1fr; max-width: 340px; margin: 0 auto 56px; }
.qhof-stats > div {
  text-align: center; padding: 16px 8px; border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 215, 0, 0.16), rgba(255, 215, 0, 0.04)); border: 1px solid rgba(255, 215, 0, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 14px 30px -18px #000;
}
.qhof-stats strong { display: block; font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 900; line-height: 1.1; background: linear-gradient(180deg, #fff3b0, #ffd700 50%, #d99a00); -webkit-background-clip: text; background-clip: text; color: transparent; }
.qhof-stats span { font-size: 0.9rem; color: var(--text-soft); }

/* podium */
.qhof-podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: clamp(8px, 2vw, 22px); max-width: 820px; margin: 0 auto 60px; }
.qhof-step { display: flex; flex-direction: column; align-items: stretch; animation: qh-rise 0.9s var(--ease-spring) both; }
.qhof-step.step-2 { animation-delay: 0.15s; } .qhof-step.step-3 { animation-delay: 0.3s; }
@keyframes qh-rise { from { opacity: 0; transform: translateY(60px); } }
.qhof-seat {
  position: relative; text-align: center; padding: 22px 10px 16px; margin-bottom: -1px; border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)); border: 1px solid rgba(255, 255, 255, 0.14); border-bottom: 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0;
}
.seat-medal { position: absolute; top: -18px; font-size: 2rem; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5)); animation: float 4s ease-in-out infinite; }
.seat-emo { font-size: clamp(2.2rem, 7vw, 3.4rem); animation: qh-bob 3.4s ease-in-out infinite; }
@keyframes qh-bob { 50% { transform: translateY(-6px) rotate(-4deg); } }
.seat-name { font-size: clamp(1rem, 3.2vw, 1.35rem); font-weight: 900; line-height: 1.2; overflow-wrap: anywhere; }
.seat-title { font-size: 0.85rem; color: var(--gold); font-weight: 700; }
.seat-date { font-size: 0.8rem; color: var(--text-mute); }
.qhof-block {
  display: grid; place-items: center; font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 900; color: rgba(0, 0, 0, 0.55);
  border-radius: 0 0 14px 14px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 24px 40px -20px #000;
}
.step-1 .qhof-block { height: 150px; background: linear-gradient(180deg, #fff1a8, #ffd700 40%, #c98f00); }
.step-2 .qhof-block { height: 105px; background: linear-gradient(180deg, #ffffff, #d7dbe4 45%, #9aa2b3); }
.step-3 .qhof-block { height: 75px; background: linear-gradient(180deg, #ffd1a3, #d98c4a 45%, #9a5a26); }
.step-1 .qhof-seat { background: linear-gradient(180deg, rgba(255, 215, 0, 0.28), rgba(255, 215, 0, 0.06)); border-color: rgba(255, 215, 0, 0.55); box-shadow: 0 0 60px -10px rgba(255, 215, 0, 0.55); }
.step-1 .seat-name { font-size: clamp(1.1rem, 3.8vw, 1.6rem); }
.qhof-step.empty .qhof-seat { opacity: 0.55; }
.qhof-step.is-me .qhof-seat { outline: 3px solid #ff7ac6; outline-offset: 4px; }

/* search */
.qhof-tools { display: flex; justify-content: center; margin-bottom: 26px; }
.qhof-tools input {
  width: min(420px, 100%); padding: 12px 20px; border-radius: 999px; font: inherit; color: inherit;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 215, 0, 0.35); outline: none;
}
.qhof-tools input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.18); }

/* the wall of golden plaques */
.qhof-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.qhof-plaque {
  position: relative; overflow: hidden; text-align: center; padding: 26px 14px 16px; border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: linear-gradient(160deg, #3a2410, #1d1208); border: 2px solid transparent;
  background-clip: padding-box; box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.5), inset 0 0 0 4px rgba(255, 215, 0, 0.1), 0 18px 34px -20px #000;
  animation: qh-plaque 0.7s var(--ease-spring) both; animation-delay: calc(var(--i) * 45ms);
}
@keyframes qh-plaque { from { opacity: 0; transform: translateY(24px) scale(0.9) rotateX(30deg); } }
/* shimmer sweep */
.qhof-plaque::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 240, 180, 0.22) 50%, transparent 65%);
  transform: translateX(-120%); animation: qh-shine 5.5s ease-in-out 1; animation-delay: calc(var(--i) * 0.23s);
}
.qhof-plaque:hover::after, .qhof-plaque.is-me::after { animation-iteration-count: infinite; }
@keyframes qh-shine { 30%, 100% { transform: translateX(120%); } }
.qp-num { position: absolute; top: 8px; inset-inline-end: 12px; font-size: 0.75rem; color: rgba(255, 215, 0, 0.7); font-weight: 700; }
.qp-emo { font-size: 2rem; }
.qp-name {
  font-size: 1.2rem; font-weight: 900; line-height: 1.25; overflow-wrap: anywhere;
  background: linear-gradient(180deg, #fff3b0, #ffd700 55%, #d99a00); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.qp-date { font-size: 0.8rem; color: rgba(255, 240, 200, 0.6); }
.qp-me, .qhof-step.is-me .qhof-seat::before {
  position: absolute; top: 8px; inset-inline-start: 10px; font-size: 0.7rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #ff7ac6; color: #fff;
}
.qhof-step.is-me .qhof-seat::before { content: "זה אני!"; }
.qhof-plaque.is-me { box-shadow: 0 0 0 2px #ff7ac6, 0 0 30px rgba(255, 122, 198, 0.45); }

.qhof-empty { text-align: center; padding: 20px 0 10px; }
.qhof-throne { display: grid; justify-items: center; margin-bottom: 14px; }
.qhof-throne-seat { font-size: 3rem; line-height: 1; padding: 22px 34px 16px; border-radius: 24px 24px 0 0; background: linear-gradient(180deg, rgba(255, 215, 0, 0.28), rgba(255, 215, 0, 0.06)); border: 1px solid rgba(255, 215, 0, 0.55); border-bottom: 0; box-shadow: 0 -30px 80px -30px rgba(255, 215, 0, 0.6); animation: float 4s ease-in-out infinite; }
.qhof-throne-block { width: 150px; height: 70px; display: grid; place-items: center; font-size: 2.2rem; font-weight: 900; color: rgba(0, 0, 0, 0.55); border-radius: 0 0 14px 14px; background: linear-gradient(180deg, #fff1a8, #ffd700 40%, #c98f00); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 24px 40px -20px #000; }
.qhof-empty h2 { font-family: var(--font-hand); }
.qhof-empty-crown { font-size: 4rem; animation: float 4s ease-in-out infinite; }
.qhof-cta { text-align: center; margin-top: 44px; }

/* join button inside the certificate dialog */
.hof-join { text-align: center; padding: 6px 16px 18px; }

.hof-join-msg { margin: 8px 0 0; font-size: 0.85rem; color: var(--text-soft); }
.hof-join-msg a { color: var(--gold); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .qhof::before, .qhof-plaque, .qhof-plaque::after, .qhof-step, .seat-emo, .seat-medal, .btn-gold { animation: none; }
}

/* phones */
@media (max-width: 600px) {
  .qhof { padding: 10px 0 60px; }
  .qhof-stats { margin-bottom: 44px; }
  .qhof-stats > div { padding: 12px 8px; }
  .qhof-podium { gap: 6px; margin-bottom: 40px; }
  .qhof-seat { padding: 20px 4px 10px; border-radius: 16px 16px 0 0; }
  .seat-medal { font-size: 1.5rem; top: -14px; }
  .seat-emo { font-size: 1.9rem; }
  .seat-name, .step-1 .seat-name { font-size: 0.92rem; }
  .step-1 .seat-name { font-size: 1rem; }
  .seat-date { font-size: 0.66rem; }
  .step-1 .qhof-block { height: 96px; } .step-2 .qhof-block { height: 68px; } .step-3 .qhof-block { height: 48px; }
  .qhof-block { font-size: 1.8rem; border-radius: 0 0 10px 10px; }
  .qhof-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .qhof-plaque { padding: 22px 8px 12px; border-radius: 14px; }
  .qp-emo { font-size: 1.5rem; }
  .qp-name { font-size: 1rem; }
  .qhof-tools { margin-bottom: 18px; }
  .qhof-empty-crown { font-size: 3rem; }
}
.qhof-note { text-align: center; max-width: 520px; margin: -30px auto 56px; color: var(--text-soft); font-size: 0.95rem; }
@media (max-width: 600px) { .qhof-note { margin: -26px auto 40px; font-size: 0.88rem; padding: 0 8px; } }
.qp-points, .seat-points { font-weight: 900; color: #fff; font-size: 0.95rem; letter-spacing: 0.02em; text-shadow: 0 0 12px rgba(255, 215, 0, 0.6); }
.seat-points { font-size: 1.05rem; }
@media (max-width: 600px) { .seat-points { font-size: 0.85rem; } .qp-points { font-size: 0.85rem; } }
