/* HRQuiz – canlı sahne ve telefon ekranı ekleri (03.11.2026).
   Çizimli arka planlar, lobi şeridi, sonuç ekranı düzeni, sıralama animasyonu, podyum, telefon üst çubuğu ve oyun sonu kartı. */

/* ------------------------------------------------------------ çizimli arka planlar (models.BACKGROUNDS) */
.hq-bg--ofis { background: linear-gradient(rgba(10, 26, 50, .3), rgba(10, 26, 50, .3)), url("../img/sahne/ofis.svg") center bottom / cover no-repeat, #0E2647; }
.hq-bg--toplanti { background: linear-gradient(rgba(10, 26, 50, .3), rgba(10, 26, 50, .3)), url("../img/sahne/toplanti.svg") center bottom / cover no-repeat, #0E2647; }
.hq-bg--sinif { background: linear-gradient(rgba(10, 26, 50, .3), rgba(10, 26, 50, .3)), url("../img/sahne/sinif.svg") center bottom / cover no-repeat, #0E2647; }
.hq-bg--konfeti { background: linear-gradient(rgba(10, 26, 50, .3), rgba(10, 26, 50, .3)), url("../img/sahne/konfeti.svg") center bottom / cover no-repeat, #12285A; }
.hq-bg--sehir { background: linear-gradient(rgba(10, 26, 50, .3), rgba(10, 26, 50, .3)), url("../img/sahne/sehir.svg") center bottom / cover no-repeat, #060E1E; }
.hq-stage:is(.hq-bg--ofis, .hq-bg--toplanti, .hq-bg--sinif, .hq-bg--konfeti, .hq-bg--sehir) { background-attachment: fixed; }
@supports (-webkit-touch-callout: none) {
  .hq-stage:is(.hq-bg--ofis, .hq-bg--toplanti, .hq-bg--sinif, .hq-bg--konfeti, .hq-bg--sehir) { background-attachment: scroll; }
}
.hq-bgpick button:is(.hq-bg--ofis, .hq-bg--toplanti, .hq-bg--sinif, .hq-bg--konfeti, .hq-bg--sehir) { background-size: cover; background-position: center; }

/* ------------------------------------------------------------ lobi: üstte tek şerit, altta katılımcılar */
.hq-sahne-lobi { flex: 1; display: flex; flex-direction: column; gap: 1rem; position: relative; padding-bottom: 4.5rem; }
.hq-sahne-serit {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
  background: #fff; color: var(--hq-navy-900); border-radius: 20px; padding: 1rem clamp(1rem, 3vw, 2rem);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}
.hq-sahne-serit small { display: block; color: var(--hq-ink-2); font-weight: 700; font-size: clamp(.9rem, 1.4vw, 1.15rem); }
.hq-sahne-serit__adres { font-family: var(--hq-font-head); line-height: 1.15; }
.hq-sahne-serit__adres b { display: block; font-weight: 800; font-size: clamp(1.8rem, 4.4vw, 3.4rem); color: var(--hq-navy); letter-spacing: -.01em; }
.hq-sahne-serit__pin { text-align: center; border-left: 2px solid var(--hq-line); padding-left: clamp(1rem, 3vw, 2.5rem); }
.hq-sahne-serit__pin .hq-lobby__pin { font-size: clamp(3rem, 8vw, 6.4rem); margin: 0; }
.hq-sahne-serit__qr svg { width: clamp(130px, 15vw, 220px); height: auto; display: block; }
.hq-sahne-lobi__arac { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.hq-sahne-link { margin: 0; max-width: 420px; flex: 1 1 260px; }
.hq-sahne-link input { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .2); }
.hq-sahne-kilit { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; font-weight: 700; padding: .45em .85em; border-radius: 99px; background: rgba(255, 255, 255, .1); user-select: none; }
.hq-sahne-kilit input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hq-sahne-kilit:focus-within { outline: 3px solid #fff; outline-offset: 2px; }
.hq-sahne-kilit__halka { transition: transform .25s; transform-origin: 16px 10px; transform: rotate(18deg) translate(2px, -2px); }
.hq-sahne-kilit:has(input:checked) { background: #FF5A5F; color: #fff; }
.hq-sahne-kilit:has(input:checked) .hq-sahne-kilit__halka { transform: none; }
.hq-sahne-chips { gap: .75rem; justify-content: center; }
.hq-sahne-chips .hq-chip { font-size: clamp(1.05rem, 1.6vw, 1.35rem); animation: hq-sahne-zipla .7s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes hq-sahne-zipla {
  0% { transform: translateY(-40px) scale(.4); opacity: 0; }
  55% { transform: translateY(6px) scale(1.08); opacity: 1; }
  75% { transform: translateY(-3px) scale(.98); }
  100% { transform: none; }
}
.hq-sahne-lobi #lobbyWait { justify-content: center; }
.hq-sahne-lobi__not { text-align: center; margin: 0; }
.hq-sahne-sayac {
  position: fixed; right: 18px; bottom: 16px; z-index: 5; display: flex; align-items: baseline; gap: .45rem;
  background: rgba(14, 38, 71, .85); border: 1px solid rgba(255, 255, 255, .15); border-radius: 16px; padding: .4rem 1rem;
  font-family: var(--hq-font-head); font-weight: 800;
}
.hq-sahne-sayac span { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; }
.hq-sahne-sayac small { font-size: 1rem; color: #C9D4E3; }
@media (max-width: 900px) {
  .hq-sahne-serit { grid-template-columns: 1fr; text-align: center; }
  .hq-sahne-serit__pin { border-left: 0; padding-left: 0; }
  .hq-sahne-serit__qr svg { margin: 0 auto; }
}

/* ------------------------------------------------------------ sonuç ekranı: "Sonraki" sağ üstte, "Oyunu bitir" sağ altta */
.hq-sahne-ust { display: flex; justify-content: flex-end; align-items: center; gap: .75rem; flex-wrap: wrap; margin: 0 0 .25rem; }
.hq-sahne-ust .hq-btn--lg { font-size: 1.25rem; padding: .7em 1.6em; }
.hq-sahne-alt { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.hq-sahne-alt [data-end] { opacity: .8; }
.hq-sahne-gorsel { position: fixed; inset: 0; z-index: 40; background: rgba(6, 14, 30, .88); display: grid; place-items: center; padding: 3vh 3vw; cursor: zoom-out; animation: hq-fade .25s both; }
.hq-sahne-gorsel img { max-width: 94vw; max-height: 86vh; border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.hq-sahne-gorsel p { margin: .75rem 0 0; color: #C9D4E3; text-align: center; font-weight: 700; }
.hq-son-rozet { display: inline-block; background: #FF5A5F; color: #fff; font-family: var(--hq-font-head); font-weight: 800; letter-spacing: .02em; border-radius: 99px; padding: .3em .9em; animation: hq-sahne-nabiz 1.2s ease-in-out infinite; }
@keyframes hq-sahne-nabiz { 50% { transform: scale(1.07); } }

/* ------------------------------------------------------------ sıralama (sunucu ekranı) */
.hq-sahne-board .hq-board__row { background: rgba(9, 22, 44, .82); color: #fff; border: 1px solid rgba(255, 255, 255, .1); will-change: transform; }
.hq-sahne-board .hq-board__row .hq-board__rank { background: rgba(255, 255, 255, .14); color: #fff; }
.hq-sahne-board .hq-board__row .hq-board__name small { color: #7FE0C8; }
.hq-sahne-board .hq-board__row.is-lider { background: #fff; color: var(--hq-navy-900); border-color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.hq-sahne-board .hq-board__row.is-lider .hq-board__rank { background: #F6C445; color: #4a3500; }
.hq-sahne-board .hq-board__row.is-lider .hq-board__name small { color: var(--hq-ok); }
.hq-sahne-board .hq-move--up { color: #3DDC97; animation: hq-sahne-yuksel 1.1s ease-in-out 2s 3; display: inline-flex; align-items: center; justify-content: center; border-radius: 99px; }
@keyframes hq-sahne-yuksel { 0%, 100% { transform: none; box-shadow: none; } 50% { transform: scale(1.25); box-shadow: 0 0 0 6px rgba(61, 220, 151, .25); } }
.hq-sahne-uyari { text-align: center; margin: 0 0 1rem; font-family: var(--hq-font-head); font-weight: 800; font-size: clamp(1.1rem, 2.2vw, 1.6rem); color: #F6C445; animation: hq-sahne-nabiz 1.4s ease-in-out infinite; }

/* ------------------------------------------------------------ podyum: büyük karakterler basamakların üstünde, madalya rozeti */
.hq-sahne-podyum .hq-podium { height: 46vh; min-height: 280px; }
.hq-sahne-podyum .hq-podium__slot { --av: clamp(60px, min(9vw, 12vh), 130px); }
.hq-sahne-podyum .hq-podium__slot--1 { --av: clamp(72px, min(11vw, 15vh), 156px); }
/* Basamak yüksekliği puan sırasına göre: 1. en yüksek. Blok küçülmez; karakter boyu ekran yüksekliğine göre ayarlanır. */
.hq-sahne-podyum .hq-podium__slot--1 .hq-podium__block { height: 42%; }
.hq-sahne-podyum .hq-podium__slot--2 .hq-podium__block { height: 30%; }
.hq-sahne-podyum .hq-podium__slot--3 .hq-podium__block { height: 20%; }
.hq-sahne-podyum .hq-podium__who { position: relative; margin-bottom: .4rem; }
.hq-sahne-podyum .hq-av--podyum { width: var(--av); height: var(--av); filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .35)); box-shadow: none; }
.hq-sahne-podyum .hq-podium__name + .hq-podium__name .hq-av--podyum { --av: clamp(52px, 6vw, 84px); }
/* madalya rozeti karakterin sağ alt köşesinde */
.hq-sahne-podyum .hq-podium__medal { position: absolute; z-index: 1; margin: 0; width: clamp(40px, 4.4vw, 60px); height: clamp(40px, 4.4vw, 60px);
  top: calc(var(--av) - clamp(40px, 4.4vw, 60px) + .2rem); left: calc(50% + var(--av) / 2 - clamp(40px, 4.4vw, 60px) + .6rem); filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35)); }
.hq-sahne-podyum .hq-podium__slot--1 .hq-podium__block { background: linear-gradient(#F6C445, #C9961A); color: #4a3500; }
.hq-sahne-podyum .hq-podium__slot--2 .hq-podium__block { background: linear-gradient(#DCE3EC, #9AA8BA); color: #263241; }
.hq-sahne-podyum .hq-podium__slot--3 .hq-podium__block { background: linear-gradient(#E8A679, #B0683A); color: #4b2208; }
.hq-sahne-podyum .hq-podium__slot.is-shown .hq-av--podyum { animation: hq-sahne-zipla .8s cubic-bezier(.3, 1.6, .5, 1) .55s both; }
.hq-sahne-podyum__dugmeler { justify-content: center; margin-top: 1rem; }
.hq-sahne-podyum .hq-podium-rest { margin-top: .75rem; }
.hq-sahne-podyum .hq-podium-rest .hq-board__row { padding: .35rem .9rem; }
.hq-sahne-podyum__dugmeler [data-close] { font-size: .85rem; opacity: .8; }

/* ------------------------------------------------------------ telefon */
.hq-me-bar { flex-wrap: nowrap; }
.hq-me-bar .hq-pill { flex: none; font-size: .8rem; padding: .3em .7em; }
.hq-me-bar__name { flex: 1; min-width: 0; display: inline-flex; align-items: center; justify-content: flex-end; gap: .35rem; }
.hq-me-bar__name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hq-sahne-pinpill { letter-spacing: .04em; }
@media (max-width: 360px) { .hq-me-bar .hq-av { display: none; } }
.hq-sahne-motivasyon { margin: .55rem 0 0; font-weight: 700; color: #fff; opacity: .95; }
.hq-sahne-seri { display: inline-block; margin: .6rem 0 0; background: rgba(0, 0, 0, .22); border-radius: 99px; padding: .3em .9em; font-weight: 800; font-size: .95rem; }
.hq-sahne-ayni { text-align: center; margin: 0; color: #C9D4E3; font-weight: 700; }
.hq-sahne-konum { text-align: center; margin: 0; color: #C9D4E3; }
.hq-sahne-konum b { color: #fff; }
.hq-sahne-konum em { font-style: normal; display: inline-block; margin-left: .35rem; background: var(--hq-orange); color: #1d0f04; border-radius: 99px; padding: .1em .65em; font-weight: 800; font-size: .9rem; }
.hq-sahne-konum em.is-zirve { background: #F6C445; }

/* oyun sonu kişisel kart */
.hq-sahne-ozet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-top: .9rem; text-align: left; }
.hq-sahne-ozet div { background: rgba(255, 255, 255, .08); border-radius: 12px; padding: .55rem .7rem; }
.hq-sahne-ozet small { display: block; color: #C9D4E3; font-weight: 700; font-size: .78rem; }
.hq-sahne-ozet b { font-family: var(--hq-font-head); font-size: 1.3rem; }
.hq-sahne-kart-btn { margin-top: .9rem; }

@media (prefers-reduced-motion: reduce) {
  .hq-sahne-chips .hq-chip, .hq-son-rozet, .hq-sahne-uyari, .hq-sahne-board .hq-move--up, .hq-sahne-podyum .hq-podium__slot.is-shown .hq-av--podyum { animation: none; }
}
