:root {
  --bg1: #0f1724;
  --accent-a: #00e0ff; /* ff2d55 */
  --accent-b: #ff6ec7;
  --accent-c: #ffd166;
  --accent-d: #7c3aed;
  --text-light: #ffffff;
  --radius: 18px;
  --btn-h: 60px;
  --font: 'Arial', sans-serif;
}

* {margin:0;padding:0;box-sizing:border-box;}
body, html {
  height:100%;
  width:100%;
  font-family: var(--font);
  background: linear-gradient(270deg, var(--bg1), #1a2433, #0f1724);
  /* background-size: 400% 400%; */
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  overflow-x:hidden;
}
*{font-family: var(--font);}
.bg{
	position:fixed;
	height:100%;
	width:100%;
	top:0;
	left:0;
	z-index:0;
	background: radial-gradient(circle at 30% 30%, #ff6ec7, #2a5298, #ffd166, #1e3c72);
	background-size: 200% 200%;
	animation: gradientMove 15s ease infinite, hueShift 30s linear infinite;
	filter: blur(50px);
}

.front{
	width:100%;
	position:relative;
	z-index:2;
	flex:1;
	display:flex;
	flex-direction:column;
	align-items:center;
	justify-content:center;
}

/* MAIN */
main {
  
}


@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes hueShift {
  0% { filter: hue-rotate(0deg) blur(50px); }
  33% { filter: hue-rotate(90deg) blur(55px); }
  66% { filter: hue-rotate(180deg) blur(50px); }
  100% { filter: hue-rotate(0deg) blur(50px); }
}





.cartoon {
  font-family: "Fredoka One", sans-serif;
  font-variation-settings: "wght" 900, "ital" 1;
  color: transparent;
  color:#fff;
  text-shadow:
  0.125em 0.125em 0em var(--accent-c),
  0.1875em 0.1875em 0em rgba(0,0,0,.2),
  0.25em 0.25em 0em var(--accent-a),
  0.3125em 0.3125em 0em rgba(0,0,0,.2),
  0.375em 0.375em 0em var(--accent-b),
  0.4375em 0.4375em 0.1875em #482896;
  transition: all 0.5s ease;
  cursor: pointer;
  transition: text-shadow 0.3s ease-in-out, -webkit-text-stroke 0.3s ease-in-out;
}

.cartoon:hover {
  /* font-variation-settings: "wght" 100, "ital" 0; */
  text-shadow: 0 0 0 rgba(0,0,0,0);
  color:transparent;
  -webkit-text-stroke: 2px #fff;
}
.title{
	font-size:3.5rem;
	text-align:center;
	display:block;
}
.title:hover{font-size:3.5rem;}
.cartoon_inverse {
  font-family: "Fredoka One", sans-serif;
  font-variation-settings: "wght" 900, "ital" 1;
  text-shadow: 0 0 0 rgba(0,0,0,0);
  color:transparent;
  cursor: pointer;
   -webkit-text-stroke: 2px #fff;
  transition: text-shadow 0.3s ease-in-out, -webkit-text-stroke 0.3s ease-in-out;
}

.cartoon_inverse:hover {
  /* font-variation-settings: "wght" 100, "ital" 0; */
  color:#fff;
  -webkit-text-stroke: 2px #fff;
  text-shadow:
  0.125em 0.125em 0em var(--accent-c),
  0.1875em 0.1875em 0em rgba(0,0,0,.2),
  0.25em 0.25em 0em var(--accent-a),
  0.3125em 0.3125em 0em rgba(0,0,0,.2),
  0.375em 0.375em 0em var(--accent-b),
  0.4375em 0.4375em 0.1875em #482896;
  transition: all 0.5s ease;
}







header {
  width: 100%;
  /* position: sticky; */
  position: absolute;
  top: 0;
  z-index: 999;
  /* background: linear-gradient(90deg, rgba(255,255,255,.1), rgba(0,0,0,.9)); */
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
}

 .logo {
  display: flex;
  flex-direction: row;
  align-items:center;
  gap: 40px;
  position: relative;
}
.logo-txt{font-size:2rem;}
 .slogan {
      font-size: 1rem;
	letter-spacing: 1px;
	opacity: 0.75;
	text-transform: uppercase;
	animation: fadeIn 2s ease forwards;
	color:#fff;
	max-width:100px;
}
@keyframes shine {
	0% { background-position: 0% 0%; -webkit-background-clip: text; }
	100% { background-position: 200% 0%;  -webkit-background-clip: text;}
}

nav {
  display: flex;
  gap: 25px;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
  font-size: 1.2rem;
  font-variation-settings: "wght" 100, "ital" 0;
  text-shadow: 0 0 0 rgba(0,0,0,0);
  transition: text-shadow 0.3s ease-in-out, -webkit-text-stroke 0.3s ease-in-out;
}

nav a:hover {
  -webkit-text-stroke: 2px #fff;
  text-shadow: 1px 1px 3px #000,
				8px 8px 0px var(--accent-c),
               12px 12px 0px rgba(0,0,0,.2),
               -8px -8px 0px var(--accent-a),
               -12px -12px 0px rgba(0,0,0,.2),
               16px 16px 0px var(--accent-b),
               18px 18px 0px rgba(0,0,0,.2),
               0px 10px 50px #482896;
  font-variation-settings: "wght" 100, "ital" 0;
}


nav a::after {
  content:"";
  position:absolute;
  top:-3px;
  left:0;
  width:0%;
  height:0px;
  background: rgba(255,255,255,.5);
  transition:0.3s;
}

nav a:hover::after {
  width:100%;
}

/* Mobil nézet */
@media (max-width: 768px) {
  nav {
	display: none;
	position: absolute;
	top: 70px;
	right: 0;
	background: #111;
	padding: 20px;
	width: 200px;
	border-radius: 0 0 0 10px;
	flex-direction: column;
  }

  nav.active {
	display: flex;
  }

  .menu-btn {
	display: block;
	cursor: pointer;
	font-size: 26px;
	color:white;
  }
}

@media (min-width: 769px) {
  .menu-btn {
	display: none;
  }
}



/* Animated background */
.quiz-background {
  position:fixed; top:0; left:0;
  width:100%; height:100%;
  z-index:-1;
  filter:blur(60px);
}

.quiz-container {
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  width:90%; max-width:1400px;
  padding:2rem;
  min-height:100vh;
  position:relative;
}

.question-card {
  width:100%;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  border-radius: var(--radius);
  padding:2rem;
  color:#071124;
  font-weight:700;
  font-size:2rem;
  text-align:center;
  box-shadow:0 15px 50px rgba(0,0,0,0.5);
  opacity:0;
  transform: scale(0.9);
  animation: questionPop 0.8s forwards;
  box-shadow: 0 4px 0 rgba(69, 69, 69, 0.4), 0 15px 25px rgba(0, 0, 0, 0.4);
}

@keyframes questionPop {0%{opacity:0;transform:scale(0.9);}100%{opacity:1;transform:scale(1);}}

.answers {
  display:flex;
  flex-direction:column;
  gap:1.5rem;
  width:100%;
  margin-top:2rem;
}

.answer-btn {
  background: linear-gradient(135deg, var(--accent-c), var(--accent-d));
  color:#071124;
  border:none;
  padding:1rem;
  font-size:1.2rem;
  font-weight:700;
  border-radius: var(--radius);
  cursor:pointer;
  opacity:0;
  transform: translateY(20px);
  box-shadow: 0 4px 0 rgba(69, 69, 69, 0.4), 0 15px 25px rgba(0, 0, 0, 0.4);
}

.answer-btn.show {
  animation: answerPop 0.5s forwards;
}

@keyframes answerPop {0%{opacity:0; transform:translateY(20px) rotateX(-10deg);}100%{opacity:1; transform:translateY(0) rotateX(0deg);}}



.answer-btn {
  position: relative;
  overflow: visible;
  
}
/* ======= HELYES VÁLASZ ======= */
.answer-btn.correct {
  background: linear-gradient(135deg, #c2ff91, #00ff00);
  border-color: #00f6ff;
  box-shadow: 0 0 25px 5px rgba(0,255,170,0.8), inset 0 0 20px rgba(0,255,255,0.3);
  animation: correctFlash 1.2s ease forwards;
  animation-iteration-count:1;
}

@keyframes correctFlash {
  0%   { transform: scale(1); filter: brightness(1); }
  20%  { transform: scale(1.05); filter: brightness(1.6); }
  40%  { transform: scale(1.03); filter: brightness(1.2); }
  70%  { transform: scale(1.07); filter: brightness(1.8); }
  100% { transform: scale(1.02); filter: brightness(1.2); }
}

/* Fényvonal, ami átsuhan */
.answer-btn.correct::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0.2) 100%);
  animation: shineSweep 1.0s ease forwards;
}

@keyframes shineSweep {
  0% { left: -75%; }
  100% { left: 175%; }
}

/* ======= ROSSZ VÁLASZ ======= */
.answer-btn.wrong {
  background: linear-gradient(145deg, #ff9999, #7a001f);
  border-color: #ff0033;
  box-shadow: 0 0 25px 5px rgba(255,0,80,0.7), inset 0 0 15px rgba(255,0,0,0.4);
  animation: wrongFlash 0.5s ease forwards;
}

@keyframes wrongFlash {
  0%   { transform: rotate(0deg); filter: brightness(1.2); }
  20%  { transform: rotate(-3deg); }
  40%  { transform: rotate(3deg); }
  60%  { transform: rotate(-2deg); }
  80%  { transform: rotate(2deg); }
  100% { transform: rotate(0deg); filter: brightness(0.8); }
}

/* Elszürkülés a rosszaknál, ha akarod */
.answer-btn.dimmed {
  opacity: 0.4;
  filter: grayscale(0.6);
  transform: scale(0.98);
}





/* ======== Képes kérdés elrendezés ======== */
.question-area.kviz_illkviz {
  display: flex;
  flex-direction: column; /* kérdés felül, kép+válasz alatta */
  gap: 20px;
}

/* Kérdés teljes szélesség */
.question-area.kviz_illkviz .question-card {
  width: 100%;
  text-align: center; /* vagy left, ha akarod */
}

/* Kép + válaszok sorban alatta */
.question-area.kviz_illkviz .question-body {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
}

/* Kép balra */
.question-area.kviz_illkviz .question-img {
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  width: 30%;
  padding-top: 30%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  opacity:0;
  transition: all 0.5s ease-out;
}
.question-img.show{opacity:1 !important;}

/* Mobil nézet: kép fölé megy, válaszok alá */
@media (max-width: 768px) {
  .question-area.kviz_illkviz .question-body {
    flex-direction: column;
    gap: 12px;
  }

  .question-area.kviz_illkviz .question-img {
    width: 50%;
    padding-top: 50%;
	margin:auto;
  }
}





.player-tags {
  display: flex;
  flex-direction: row;
  gap: 5px;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.player-tag {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(3px);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.25s ease-out;
  text-shadow:1px 1px 2px black;
}

.player-tag.show {
  opacity: 1;
  transform: scale(1);
}

.player-tag.hide {
  opacity: 0;
  transform: scale(0.5);
}

@keyframes popIn {
  0%   { transform: scale(0.5); opacity: 0; }
  50%  { transform: scale(1.3); opacity: 1; }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

.player-tag.pop {
  animation: popIn 0.4s cubic-bezier(.4,1.4,.6,1) both;
}




/* ✅ HELYES VÁLASZ — zöld fény és pipa animáció */
.player-tag.correct-anim {
  position: relative;
  /* background: rgba(0,255,0,0.9) !important; */
  border-color: rgba(0,0,0,0.8);
  /* color: rgba(0,0,0,1); */
  box-shadow: 0 0 15px rgba(0,255,10,0.4), 0 0 30px rgba(0,255,10,0.1) inset;
  animation: pulseCorrect 1s cubic-bezier(.25,1,.3,1) forwards;
  padding-left:20px;
}

@keyframes pulseCorrect {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); box-shadow: 0 0 30px rgba(0,255,10,0.8); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); box-shadow: 0 0 15px rgba(0,255,10,0.5); }
}

/* Pipa megjelenés */
.player-tag.correct-anim::before {
  content: "✓";
  position: absolute;
  left: 3px;
  top: -3px;
  font-size: 20px;
  /* color: #00ff99; */
  opacity: 0;
  transform: scale(0) rotate(-45deg);
  text-shadow: 0 0 8px rgba(0,255,150,0.7);
  animation: checkAppear 0.6s ease-out 0.3s forwards;
}

@keyframes checkAppear {
  0% { opacity: 0; transform: scale(0) rotate(-45deg); }
  60% { opacity: 1; transform: scale(1.4) rotate(0); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}





/* ROSSZ VÁLASZ — remegés + szétpukkanás + szikrák */
.player-tag.wrong-anim {
  background: rgba(255,50,50,0.2) !important;
  border-color: rgba(255,100,100,0.6);
  color: #ff5555;
  animation: shakeTag 0.6s ease-in-out, shakeTag 0.3s ease-in-out, shakeTag 0.15s ease-in-out; /* , explodeTag 0.7s ease-out 0.4s forwards */
  position: relative;
  overflow: visible;
}

/* Szikrák pseudo-elementekkel */
.player-tag.wrong-anim::before,
.player-tag.wrong-anim::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255,200,50,0.8);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

/* szikrák stílusa */
.spark {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(240,100,100,.8);
  border-radius: 50%;
  pointer-events: none;
  opacity: 1;
  z-index: 9999;
}

/* animáció a szikráknak */
@keyframes sparkExplode {
  0% { transform: translate(0,0) scale(1); opacity:1; }
  100% { transform: translate(var(--x), var(--y)) scale(0.3); opacity:0; }
}


/* Rázkódás */
@keyframes shakeTag {
  0%,100% { transform: translate(0,0) rotate(0); }
  20% { transform: translate(-2px,1px) rotate(-3deg); }
  40% { transform: translate(2px,-1px) rotate(3deg); }
  60% { transform: translate(-3px,2px) rotate(-2deg); }
  80% { transform: translate(3px,-1px) rotate(2deg); }
}

/* Szétpukkanás — "robbanás" hatás blurrel és szóródással */
@keyframes explodeTag {
  0% { opacity: 1; transform: scale(1); filter: brightness(1); }
  40% { opacity: 1; transform: scale(1.3); filter: brightness(1.3); }
  60% { opacity: 0.8; transform: scale(1.6) rotate(10deg); filter: brightness(1.5) blur(1px); }
  100% { opacity: 0; transform: scale(2.5) rotate(-15deg); filter: blur(6px) brightness(2); }
}







.timer {
  margin-top:2rem;
  font-size:1.5rem;
  font-weight:700;
  color:#fff;
  opacity:0;
  transition: opacity 0.5s;
}
#timerbig {
  font-size:15rem;
  font-weight:700;
  color:#fff;
  display:none;
  position:absolute;
  z-index:2;
  transform:translate(-50%,-50%);
  top:50%;
  left:50%;
  /* text-shadow:1px 1px 10px white; */
}



.quiz-main{
  display:flex;
  gap:2rem;
  width:100%;
  justify-content:space-between;
  position:relative;
}

.question-area{
  flex:2;
}

.seoNames {
	background: rgba(255,255,255,0.08);
	backdrop-filter: blur(12px);
	border-radius: 20px;
	padding: 2rem;
	width: 50%;
	margin:auto;
	margin-top:250px;
	text-align: center;
	box-shadow: 0 10px 40px rgba(0,0,0,0.4);
	transition: transform 0.3s, box-shadow 0.3s;
	font-size:.8rem;
}





#scoreboard {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 250px;
  /* background: rgba(0,0,0,0.5); */
  color: #fff;
  border-radius: 12px;
  padding: 10px;
  font-family: sans-serif;
  z-index: 999;
  display:none;
}

#scoreboard h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  text-align: center;
  display:none;
}
.remove-player{
	background-color:red;
	color:white;
	padding:3px 6px;
	border-radius:10px;
	font-size:10px;
	margin:0;
	border:0;
	/* animation: crownPulse 2.0s ease-in-out infinite; */
	cursor:pointer;
	
	position: absolute;
	  left: -12px;
}

#player-scores {
  list-style: none;
  padding: 0;
  margin: 0;
}

#player-scores li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  margin-bottom: 4px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  /* transition: all .3s ease; */
  position: relative;
  font-size:20px;
}

#player-scores li span.name {
  font-weight: bold;
}

#player-scores li span.score {
  background: #00ff99;
  padding: 2px 6px;
  border-radius: 6px;
  color: #000;
  font-weight: bold;
}

/* +pont animáció */
.plus-points {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-60%) scale(1);
  font-size: 14px;
  font-weight: bold;
  background-color: #569e0f;
  color: white;
  padding:3px 6px;
  border-radius:999px;
  opacity: 0;
  animation: floatUp .7s ease-out forwards !important;
  pointer-events: none;
}

@keyframes floatUp {
  0%   { transform: translateY(-60%) scale(0.6); opacity: 0; }
  20%  { transform: translateY(-80%) scale(1.4); opacity: 1; }
  80%  { transform: translateY(-150%) scale(1); opacity: 0.8; }
  100% { transform: translateY(-200%) scale(1); opacity: 0; }
}
.minus-points {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(60%) scale(1);
  font-size: 14px;
  font-weight: bold;
  background-color: #ff0000;
  color: white;
  padding:3px 6px;
  border-radius:999px;
  opacity: 0;
  animation: floatDown .7s ease-out forwards !important;
  pointer-events: none;
}

@keyframes floatDown {
  0%   { transform: translateY(-200%) scale(0.6); opacity: 0; }
  20%  { transform: translateY(-150%) scale(1.4); opacity: 1; }
  80%  { transform: translateY(-80%) scale(1); opacity: 0.8; }
  100% { transform: translateY(-60%) scale(1); opacity: 0; }
}

/* ======= MOBIL NÉZET ======= */
@media (max-width: 768px) {
  #scoreboard {
    width: 90%;
    right: 5%;
    bottom: 10px;
    top: auto;
    flex-wrap: wrap; /* törjön több sorba */
    justify-content: center;
    padding: 6px;
  }

  #player-scores {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    width: 100%;
  }

  #player-scores li {
	flex: 0 1 calc(33.33% - 6px); /* három játékos per sor */
    justify-content: space-between;
    font-size: 13px;
    padding: 4px 6px;
    background: rgba(255,255,255,0.08);
  }
}
/* ======= HELYEZÉSVÁLTOZÁS EFFEKT ======= */
@keyframes rankUp {
  0% { background-color: rgba(0,255,100,0.5); }
  100% { background-color: rgba(255,255,255,0.05); }
}

@keyframes rankDown {
  0% { background-color: rgba(255,60,60,0.5); }
  100% { background-color: rgba(255,255,255,0.05); }
}

#player-scores li.rank-up {
  animation: rankUp 1s ease-out;
}

#player-scores li.rank-down {
  animation: rankDown 1s ease-out;
}

/* ======= KORONA AZ ELSŐNEK ======= */
#player-scores li.first-place .name::before {
  content: "👑";
  margin-right: 6px;
  font-size: 16px;
  animation: crownPulse 2.0s ease-in-out infinite;
  display: inline-block;
}

@keyframes crownPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px gold); }
  50% { transform: scale(1.25); filter: drop-shadow(0 0 10px gold); }
}







/* CATEGORY EXIT */
@keyframes categoryExit {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
  100% { opacity: 0; transform: scale(0.8);}
}

/* CATEGORY EXIT */
@keyframes categoryExitMain {
  0% { overflow:visible; }
  100% { height:150px; overflow:hidden; box-shadow:0 10px 50px rgba(0,0,0,.5); position:absolute; left:0; top:0;}
}

.category-exit{animation: categoryExitMain 1.0s cubic-bezier(0.25, 1, 0.5, 1) forwards;animation-delay:0s;}
.category-exit .category-header {height:150px;}
.category-exit .category-stats {animation: categoryExit .5s ease forwards;animation-delay:0s;}
.category-exit .category-info p{animation: categoryExit .5s ease forwards;animation-delay:0s;}
.category-exit .category-info{top:60%;bottom:initial;transform:translateY(-50%);}
.category-exit .category-overlay-blur{height:0px;}

.quizinprogress header{display:none;}
.quizinprogress #footer_content{display:none !important;}
.quizinprogress .seoNames{display:none;}

/* QUIZ ENTER */
@keyframes quizEnter {
  0% { opacity: 0; transform: translateY(80px) scale(0.9); filter: blur(8px); }
  60% { opacity: 1; transform: translateY(-10px) scale(1.02); filter: blur(0px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.quiz-enter {
  animation: quizEnter 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
body {
  overflow-x: hidden;
}

/* alap styling */
.category-header, .category-stats, .category-action {
  transition: all 0.5s ease;
}
.quiz-container {
  display: none;
  opacity: 0;
}

.fullbg{
	display:none;
	position:fixed;
	left:0;
	top:0;
	width:100vw;
	height:100vh;
	 background: rgba(0,0,0,0.2);
	backdrop-filter: blur(15px);
	z-index:5;
}
.lobby {
  position: fixed;
  width: 100%;
  height: 100vh;
  top:0;
  padding-top:0%;
  z-index:11;
  display:flex;
  justify-content:center;
  align-items:center;
  overflow:hidden;
  font-family: var(--font);
}

.lobby-bg {
  position:absolute;
  top:0;left:0;width:100%;height:100%;
  z-index:0;
}

.lobby-card {
  position:relative;
  z-index:1;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(15px);
  padding:3rem;
  border-radius: 20px;
  text-align:center;
  color:#fff;
  max-width:500px;
  width:90%;
  animation: fadeInScale 1s ease forwards;
}

@media (max-height:900px){
  .lobby-card {
		overflow-y:auto;
		max-height:60vh;
		top:0;
	}
}

@keyframes fadeInScale {
  0%{opacity:0; transform:scale(0.8);}
  100%{opacity:1; transform:scale(1);}
}

.lobby-form {display:flex; gap:1rem; flex-direction:column; margin-bottom:2rem;}
.lobby-form input {padding:0.8rem 1rem; border-radius:12px; border:none; font-size:1rem;}
.lobby-form button {padding:1rem; font-size:1.1rem; border:none; border-radius:50px; background:linear-gradient(135deg,var(--accent-a),var(--accent-b)); cursor:pointer; transition: transform 0.3s;}
.lobby-form button:hover {transform:scale(1.05);}

.players-container {
  display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin-bottom:2rem;
}
.player-bubble {
  padding:0.8rem 1rem; border-radius:50px;
  color:#fff; font-weight:600;
  display:inline-block; opacity:0;
  transform:translateY(20px) scale(0.6);
  animation: bubblePop 0.5s forwards;
  transition: all 1s ease;
  text-shadow:1px 1px 2px black;
  box-shadow: 0 4px 0 rgba(69, 69, 69, 0.4), 0 15px 25px rgba(0, 0, 0, 0.4);
}
@keyframes bubblePop {
  0%{opacity:0; transform:translateY(20px) scale(0.6);}
  60%{opacity:1; transform:translateY(-5px) scale(1.05);}
  100%{opacity:1; transform:translateY(0) scale(1);}
}

.ready-btn {
  display:none;
  margin-top:1rem;
  padding:1rem 2rem;
  font-size:1.1rem;
  border:none; border-radius:50px;
  background:linear-gradient(135deg,var(--accent-c),var(--accent-d));
  cursor:pointer;
  transition:transform 0.3s;
}
.ready-btn.show, .start-btn.show {display:inline-block; animation:fadeInScale 0.7s forwards;}
.ready-btn:hover, .start-btn:hover {transform:scale(1.1);}

/* Modifikátor panel */
#wheel-mod-panel {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-family: sans-serif;
  padding: 10px 15px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 9999;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: auto;
}

#wheel-mod-panel:hover {
  max-width: auto;
}

/* Egyedi modifikátor doboz */
.wheel-mod-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.wheel-mod-color {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.wheel-mod-rounds {
  margin-left: auto;
  font-weight: 400;
  font-size: 0.9rem;
}

.wheel-mod-read {
  font-weight: 400;
  font-size: 0.85rem;
  color: #ddd;
  margin-top: 2px;
  display: none;
}

#wheel-mod-panel:hover .wheel-mod-read {
  display: block;
}


.gamelength-options {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.gamelength-option {
  padding: 15px 25px;
  border-radius: 15px;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  cursor: pointer;
  font-size: 18px;
  backdrop-filter: blur(5px);
  transition: 0.2s;
  user-select: none;
}

.gamelength-option:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.05);
}

.gamelength-option.selected {
  background: #00c853;
  border-color: #00e676;
  color: black;
  font-weight: bold;
  transform: scale(1.1);
}


/* Innentől lefelé nincs játék elem! ================================================================== */
/* Innentől lefelé nincs játék elem! ================================================================== */






.hero {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-direction: column;
  text-align: center;
}

.hero-bg {
  position: absolute;
  top:0; left:0;
  width:100%; height:100%;
  z-index: 0;
}

.hero-content{z-index:1;}
.hero-content h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  color: #ffffff;
  text-shadow: 0 0 20px rgba(0,0,0,0.4);
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-content h1 span {
  opacity: 0;
  transform: translateY(20px) scale(0.6);
  display: inline-block;
  animation: fadeScaleFloat 0.7s forwards;
}

@keyframes fadeScaleFloat {
  0% { opacity: 0; transform: translateY(20px) scale(0.6); }
  60% { opacity: 1; transform: translateY(-5px) scale(1.05); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: #f0f0f0;
  margin-bottom: 2rem;
  text-align:center;
  margin-left:auto;
  margin-right:auto;
}

.hero-btn {
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: #1e3c72;
  background: linear-gradient(135deg, #00e0ff, #ff6ec7);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(255,255,255,0.5);
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 50px rgba(255,255,255,0.8);
}
.hero-btn {
  position: relative;
  overflow: hidden;
}

.hero-btn .btn-sub {
  display: block;
  font-size: 0.7rem;
  opacity: 0.8;
}

.hero-btn::after {
  content: "";
  position: absolute;
  top:0;
  left:-100%;
  width:100%;
  height:100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: 0.5s;
}

.hero-btn:hover::after {
  left:100%;
}
@keyframes pulseGlow {
  0% { box-shadow: 0 0 15px rgba(255,255,255,0.3); }
  50% { box-shadow: 0 0 40px rgba(255,255,255,0.7); }
  100% { box-shadow: 0 0 15px rgba(255,255,255,0.3); }
}

.hero-btn {
  animation: pulseGlow 3s infinite;
}
#scroll-indicator {
	position: absolute !important;
	bottom: 60px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 0.9rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	opacity: 0.6;
	animation: bounce 2s infinite;
	z-index: 5;
}
@keyframes bounce {
  0%,100% { transform:translate(-50%,0); }
  50% { transform:translate(-50%,10px); }
}


/* floating particles */
.hero::before, .hero::after {
  content:"";
  position:absolute;
  border-radius:50%;
  background: rgba(255,255,255,0.1);
  width: 100px;
  height: 100px;
  animation: floatParticles 10s linear infinite;
}

.hero::before { top:10%; left:15%; animation-delay:0s;}
.hero::after { bottom:20%; right:10%; animation-delay:5s;}

@keyframes floatParticles {
  0%{transform:translateY(0) rotate(0deg);}
  50%{transform:translateY(-50px) rotate(180deg);}
  100%{transform:translateY(0) rotate(360deg);}
}

@media (max-width:768px){
  .hero-content h1 {font-size:2rem;}
  .hero-content p {font-size:1rem; max-width:90%;}
  .hero-btn {font-size:1rem; padding:0.8rem 2rem;}
}
.hero-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-badges span {
  font-size: 1rem;
  color: #fff;
  background: rgba(255,255,255,0.08);
  padding: 6px 12px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.1);
}
.hero-lead {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 600;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.3rem);
  opacity: 0.8;
}



/* ===== OVERLAY ===== */
#wheel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  display: none; /* majd JS bekapcsolja */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn .4s ease forwards;
  opacity: 0;
  transition: opacity .3s ease;
  flex-wrap:wrap;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#wheel-txt {
  font-size: 64px;
  color: white;
  text-shadow: 0 0 20px black;
  opacity: 0;
  transition: opacity .5s ease;
  width:100%;
  text-align:center;
  color:var(--accent-c);
  font-weight:bold;
}
#wheel-txt.waiting{
	opacity:.2;
}

/* ===== CONTAINER ===== */
#wheel-container {
  position: relative;
  width: 520px;
  height: 520px;

  transform: scale(0.5);
  opacity: 0;
  animation: popIn .5s ease-out forwards;
}
@media (max-width:1280px){
	#wheel-container {width:420px;height:420px;}
}

@keyframes popIn {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity:1; }
}

@keyframes popBig {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1);  }
}

/* ===== WHEEL ===== */
#wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.45))
          drop-shadow(0 0 25px rgba(255, 255, 255, 0.2));
  transform: rotate(0deg);
  background: radial-gradient(circle at center, #ffffff10, #00000040);
}

/* ===== POINTER ===== */
#pointer {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  width: 0; height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 50px solid #ffeb3b;
  filter: drop-shadow(0 0 5px black)
          drop-shadow(0 0 15px rgba(255,255,0,0.6));
  transition: transform .05s ease-out;
}

/* POINTER “kattogás” */
#pointer.tick {
  transform: translateX(-50%) rotate(165deg);
}

/* ===== WIN HIGHLIGHT ===== */
.highlight {
  animation: pulse 1.1s ease-in-out infinite alternate;
}

@keyframes pulse {
  0%   { filter: drop-shadow(0 0 8px #fff3); }
  100% { filter: drop-shadow(0 0 18px #fff6); }
}







.category-selector {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.category-bg {
  position: absolute;
  top: 0; left: 0;
  width: 200%; height: 100%;
  background-image: url('img/mozaik.jpg');
  background-repeat: repeat-x;
  background-size: contain;
  filter: blur(25px) brightness(0.6);
  animation: scrollBg 60s linear infinite;
  z-index: -1;
}

@keyframes scrollBg {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.selector-title {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-shadow: 0 0 15px #00e0ff;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0px;
  width: 98%;
  max-width: 98vw;
  overflow: visible; 
}

.category-card {
  position: relative;
  /* border-radius: 16px; */
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(0,0,0,1);
  backdrop-filter: blur(8px);
  border-radius:0px;
  transform-origin: center;
}
.category-card .overlay {
  position:absolute;
  top:0;left:0;width:100%;height:100%;
  background:linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0), rgba(0,0,0,.8));
  z-index:0;
}

.category-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.5s;
  filter:brightness(.75);
  display:block;
}

.category-card span {
  position: absolute;
  bottom: 10px; left: 10px;
  color: #fff;
  font-weight: bold;
  font-size:1.0rem;
  text-shadow: 0 0 15px black;
  z-index:0;
}

.category-card:hover, .category-card.clicked{
  transform: scale(1.2) rotateX(0deg);
  box-shadow: 0 0 25px #000;
  z-index:10;
  border-radius:8px;
}

.category-card:hover img{
  transform: scale(1.1);
  filter:brightness(1);
}

.category-card.clicked img{
  transform: scale(1);
  filter:brightness(1);
}

.category-card.clicked{
	transition: transform 1.3s ease;
	/* transform:scale(2) rotateY(10deg); */
	z-index:11;
	box-shadow: 0 0 60px #000;
}







.category-detail {
  display:flex;
  flex-direction:column;
  align-items:center;
  color:white;
  width:100%;
  max-width:1600px;
  margin:0 auto;
  padding-bottom:5rem;
}

.category-header {
  position:relative;
  width:100%;
  height:60vh;
  max-height:500px;
  overflow:hidden;
  border-radius:0 0 0px 0px;
}

.category-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.9);
  transform: scale(1.0);
  animation: zoomPan 20s ease-in-out infinite alternate;
}

@keyframes zoomPan {
  0%{transform:scale(1.05) translateY(0);}
  50%{transform:scale(1.2) translateY(7%);}
  100%{transform:scale(1.05) translateY(0);}
}

.category-overlay-blur {
  position:absolute;
  top:25%;left:0;width:100%;height:50%;
  backdrop-filter: blur(5px);
  filter: brightness(1.2);
}
.category-overlay{
  position:absolute;
  top:0;left:0;width:100%;height:100%;
  background:linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,.5), rgba(0,0,0,1));
}

.category-info {
  position:absolute;
  bottom:40%;
  /* left:50%; */
  /* transform:translateX(-50%); */
  text-align:center;
  z-index:2;
  color:white;
  width:inherit;
}

.category-info h1 {
  font-size:clamp(2rem,5vw,4rem);
  margin-bottom:0.5rem;
  font-family:var(--font) !important;
}

.category-info p {
  font-size:1.2rem;
  opacity:0.9;
}

/* STATS */
.category-stats {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:2rem;
  margin-top:-4rem;
  z-index:5;
  position:relative;
}

.stat-card {
  background:rgba(255,255,255,0.08);
  backdrop-filter:blur(12px);
  border-radius:20px;
  padding:2rem;
  min-width:220px;
  text-align:center;
  box-shadow:0 10px 40px rgba(0,0,0,0.4);
  transition:transform 0.3s, box-shadow 0.3s;
}
.stat-card:hover {
  transform:translateY(-5px);
  box-shadow:0 15px 60px rgba(0,0,0,0.6);
}

.stat-card h3 {
  font-size:1.2rem;
  margin-bottom:0.5rem;
  color:var(--accent-a);
}
.stat-card p{
	color:white;
	font-weight:bold;
	text-transform:uppercase;
}
.stat-card span{
	color:white;
	font-weight:bold;
	text-transform:uppercase;
}

/* ACTION BUTTON */
.category-action {
  margin-top:3rem;
  text-align:center;
}
.category-action a, .category-action a:visited{text-decoration:none;}

.start-btn, .close-btn {
  font-size:1.4rem;
  font-weight:bold;
  padding:1.2rem 3rem;
  border:none;
  border-radius:50px;
  background:linear-gradient(135deg, var(--accent-a), var(--accent-b));
  color:#071124;
  cursor:pointer;
  box-shadow:0 0 30px rgba(255,255,255,0.4);
  transition:transform 0.3s, box-shadow 0.3s;
  position:relative;
  z-index:1;
}
.start-btn:hover, .close-btn:hover {
  transform:scale(1.08);
  box-shadow:0 0 60px rgba(255,255,255,0.6);
}
.close-btn{
	background:linear-gradient(135deg, #f25f5f, #5f0d0d);
	color:white;
	margin:auto;
	margin-top:20px;
	padding:5px 10px;
	font-size:1rem;
	display:block;
	text-transform:uppercase;
	box-shadow: 0 4px 0 #661010, 0 15px 25px rgba(255, 0, 0, 0.4);
}
.kicked-screen{
	color:white;
	position:absolute;
	top:50%;
	left:50%;
	transform:translate(-50%,-50%);
	text-align:center;
}

/* MOBILE */
@media (max-width:768px){
  .category-header {height:40vh;}
  .stat-card {min-width:140px; padding:1rem;}
  .start-btn {font-size:1rem; padding:1rem 2rem;}
}


/* Gomb alapstílus */
.game-btn {
    position: relative;
    outline: none;
    border: none;
    cursor: pointer;
    border-radius: 20px; /* Játékosabb, mint a full kerek */
    padding: 1.2rem 2.5rem;
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    display: inline-block;
}

/* Egyedül gomb - Tüzes/Arany */
.game-btn.startbtn {
    background: linear-gradient(135deg, #ff9000, #ff5e00);
    box-shadow: 0 8px 0 #b34200, 0 15px 25px rgba(255, 94, 0, 0.4);
}

/* Lobby gomb - Királykék/Lila */
.game-btn.lobbybtn {
    background: linear-gradient(135deg, #1368ce, #46178f);
    box-shadow: 0 8px 0 #2b0e5a, 0 15px 25px rgba(70, 23, 143, 0.4);
}

.game-btn.gamebtn {
    background: linear-gradient(135deg, #9df9a7, #1d8828);
    box-shadow: 0 8px 0 #366439, 0 15px 25px rgba(105, 188, 68, 0.4);
}

#nextquestion-btn-wrapper{
	position:absolute;
	z-index:9;
	top:50%;
	left:50%;
	transform:translate(-50%,-50%);
}
#nextquestion-btn[disabled]{
	background: linear-gradient(135deg, rgba(0,0,0,.5), #c52056);
	box-shadow:0 8px 0 #793f62, 0 15px 25px rgba(105, 188, 68, 0.4);
}

.btn-content {
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.2);
}

/* Csillogás effekt, ami átúszik a gombon */
.btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
    z-index: 1;
}

/* --- INTERAKCIÓK --- */

/* Lebegés: Kicsit megemelkedik */
.game-btn:hover {
    transform: translateY(-4px);
    filter: brightness(1.1);
}

.game-btn:hover .btn-shimmer {
    left: 100%;
    transition: 0.6s;
}

/* LENYOMÁS: Itt történik a varázslat */
.game-btn:active {
    transform: translateY(6px); /* Besüllyed */
    box-shadow: 0 2px 0 rgba(0,0,0,0.2), 0 5px 10px rgba(0,0,0,0.2); /* Eltűnik a vastagság */
}

/* Mobilra optimalizálva */
@media (max-width: 600px) {
    .game-btn {
        font-size: 1.1rem;
        padding: 1rem 1.8rem;
        width: 90%; /* Mobilon legyen kényelmesen nyomható */
    }
}








/* Footer */
/* ======================================================================================== */
#footer_wrapper{
	width:100%;
	background-color:transparent;
	height:auto;
}
#footer{
	width:100%;
	margin:auto;
	background-color:rgba(255,255,255,.3);
	border-top:2px solid var(--alt-color);
	border-bottom:2px solid var(--main-color);
}
#footer_content {
	margin-top:50px;
  padding: 3% 5%;
  background: #111;
  color: #ccc;
  font-size: 1rem;
  line-height: 1.6;
  position:relative;
  z-index:1;
  /* animation: fadeUp 1s ease-in-out; */
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

#footer_content fieldset {
  flex: 1 1 250px;
  border: none;
  min-width: 200px;
}

#footer_content fieldset legend {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--main-color);
}

#footer_content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer_content li {
  margin-bottom: .6rem;
}

#footer_content a {
  color: #ccc;
  text-decoration: none;
  transition: all .3s ease;
  position: relative;
}

#footer_content a:hover {
  color: #fff;
  padding-left: 6px;
}

#footer_content a::before {
  content: "›";
  position: absolute;
  left: -14px;
  opacity: 0;
  transition: .3s;
}

#footer_content a:hover::before {
  opacity: 1;
  left: -8px;
  color: var(--main-color);
}

@keyframes fadeUp {
  from {opacity: 0; transform: translateY(40px);}
  to {opacity: 1; transform: translateY(0);}
}

#footer_content p {
  margin: .4rem 0;
}
footer{display:none;}
.up{display:none !important;}

.reveal,
.reveal_slow,
.reveal_slow2,
.reveal_slowultra {
  opacity: 0;
  transform: translateY(var(--translate, 24px));
  transition: opacity .6s ease, transform .6s ease;
}

.reveal { --translate: 24px; transition-duration: 0.6s; }
.reveal_slow { --translate: 48px; transition-duration: 1.2s; }
.reveal_slow2 { --translate: 72px; transition-duration: 1.8s; }
.reveal_slowultra { --translate: 100px; transition-duration: 1.0s !important; }

.reveal.visible,
.reveal_slow.visible,
.reveal_slow2.visible,
.reveal_slowultra.visible {
  opacity: 1;
  transform: translateY(0);
}



















.modern-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  position: relative;
}

/* Hidden checkbox */
.modern-switch-input {
  display: none;
}

/* Slider */
.modern-switch-slider {
  width: 50px;
  height: 26px;
  background: #ccc;
  border-radius: 13px;
  position: relative;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

/* Thumb */
.modern-switch-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Checked state */
.modern-switch-input:checked + .modern-switch-slider {
  background: linear-gradient(135deg, #00e0ff, #ff6ec7);
}

.modern-switch-input:checked + .modern-switch-slider::before {
  transform: translateX(24px);
  background: #fff;
}

/* Optional: hover effect */
.modern-switch-slider:hover::before {
  transform: scale(1.1) translateX(var(--thumb-x,0));
}

/* Smooth appearance for label text */
.modern-switch span {
  transition: color 0.3s;
}

.modern-switch-input:checked ~ span {
  color: #00e0ff;
}



















.endgame {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #d0c356, #ffffff5e);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  z-index: 999999;
  overflow: hidden;
  opacity: 0;
  transform: scale(1.1);
  animation: showEndgame 0.8s ease forwards;
}
.endgame.hidden{display:none;}

@keyframes showEndgame {
  to { opacity: 1; transform: scale(1); }
}

.endgame-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  opacity: 0.3;
  filter: blur(8px);
  display:none;
}

.podium {
  display: flex;
  gap: 40px;
  padding-bottom: 15%;
  transform: translateY(200px);
  animation: riseUp 1.3s ease forwards 0.4s;
}

@keyframes riseUp {
  to { transform: translateY(0); }
}

.place {
  width: 30vw;
  min-width:100px;
  max-width:400px;
  text-align: center;
  transform: scale(0);
  animation: popIn 0.6s ease forwards;
}

.place.second { animation-delay: 0.6s; }
.place.first  { animation-delay: 1.2s; }
.place.third  { animation-delay: 1.8s; }

.place .name{font-size:3rem;}
.place .score{font-size:2rem;}

.first .crown {
  font-size: 50px;
  animation: crownFloat 3s ease-in-out infinite;
}

@keyframes crownFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: gray;
  margin: auto;
  box-shadow: 0 0 25px gold;
  animation: glowPulse 2s infinite;
  display:none;
}

@keyframes glowPulse {
  0% { box-shadow: 0 0 10px gold; }
  50% { box-shadow: 0 0 30px gold; }
  100% { box-shadow: 0 0 10px gold; }
}

.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 9999;
}

/* alap stílus egy konfettidarabnak */
.confetti-piece {
  position: absolute;
  width: 10px;
  height: 14px;
  will-change: transform, opacity;
  opacity: 0.95;
  transform-origin: center;
  border-radius: 2px;
}

/* esés + forgás + oldalra lebegés egyszerre */
@keyframes confettiFall {
  0% {
    transform: translateY(-10vh) rotate(0deg) translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(720deg) translateX(40px);
    opacity: 0;
  }
}

/* finom lebegés (kisebb horizontális mozgás) */
@keyframes confettiSway {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(12px); }
  100% { transform: translateX(0); }
}



.seo-content {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 120px;
  margin-bottom: 80px;
}

.seo-box {
    width: 95%;
    max-width: 1300px;
    background: #fff;
    border-radius: 30px;
    padding: 3rem;
    color: #333;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    line-height: 1.8;
}

/* 1. A főcím maradjon felül, teljes szélességben */
.seo-box h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--accent-d);
    width: 100%;
}

/* 2. Hasábos elrendezés a bevezető szövegeknek és listáknak */
/* Ez csak a közvetlen p, h3 és ul elemekre hat, mielőtt elérnénk a FAQ-t */
.seo-box > h3, 
.seo-box > ul {
    column-count: 2;
    column-gap: 50px;
    column-rule: 1px solid rgba(0,0,0,0.05); /* vékony elválasztó vonal */
}

.seo-box > p{padding:10px;background-color:rgba(0,0,0,.2);border-radius:12px;margin:5px;}

/* Mobilnézetben egy oszlop */
@media (max-width: 800px) {
    .seo-box > p, .seo-box > h3, .seo-box > ul {
        column-count: 1;
    }
}

/* 3. A FAQ és Statisztika szekciók kártyásítása */
/* Mivel ezek div-ekben vannak, Griddel egymás mellé tehetjük őket */
.seo-box .faq,
.seo-box {
    display: flex;
    flex-direction: column;
}

/* Keressük meg a statisztikai és gyakori kérdés div-eket */
.faq, .faq-item {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
    column-span: all; /* Megszakítja a hasábokat, hogy teljes szélességben legyen */
}

.faq-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    border-left: 5px solid var(--accent-b);
    transition: transform 0.2s;
}

.faq-item:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.faq-item h4 {
    margin-top: 0;
    color: var(--accent-b);
    font-size: 1.1rem;
}

/* Hogy a H3 címek ne szakadjanak el a tartalmuktól a hasábokban */
.seo-box h3 {
    break-after: avoid;
    column-span: all; /* Ha a címeket inkább teljes szélességben akarod hagyni */
    margin-top: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
	color:var(--accent-d);
}
.seo-box ul {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-left: 0; /* Alapértelmezett padding törlése */
    list-style-position: inside; /* A pont a szövegen BELÜLRE kerül, így nem lóg ki */
    break-inside: avoid-column; /* Megakadályozza, hogy egy lista kettévágódjon a hasábok között */
}

.seo-box li {
    margin-bottom: 10px;
    display: list-item;
    padding-left: 5px;
    /* Ha még mindig furcsa, használhatunk egyedi ikont is: */
    list-style-type: "• "; 
    color: #444;
}



.topics-wrapper {
  width: 95%;
  max-width: 1400px;
  margin: 80px auto;
  color: #fff;
}

.topics-title {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
  color: var(--accent-a);
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 420px));
  gap: 25px;
  justify-content: center; 
}

.topic-card {
  display: block;
  text-decoration: none;
  color: #333;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
  position: relative;
}

.topic-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.topic-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.topic-content {
  padding: 15px;
}

.topic-content h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.topic-content p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 10px;
}

.topic-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 12px;
}

.topic-cta {
  text-align: center;
  padding: 10px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-d));
  color: #fff;
  text-transform:uppercase;
  font-weight: bold;
  transition: all 0.3s;
  box-shadow:0 4px 0 rgba(69, 69, 69, 0.4), 0 15px 25px rgba(0, 0, 0, 0.4);
}

.topic-card:hover .topic-cta {
  transform: scale(1.05);
}



/* ===== PAGINATION WRAPPER ===== */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align:center;
  gap: 10px;
  margin: 40px auto;
  padding: 15px;
  width: 100%;
  /* max-width: 900px; */
  background: rgba(255,255,255,0);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  /* box-shadow: 0 10px 40px rgba(0,0,0,0.4); */
  color: #fff;
  font-size: 1.5rem;
  margin-bottom:100px;
}

/* ===== TALÁLATOK TEXT ===== */
.pagination > div:first-child {
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
  display:none;
}

/* ===== LINK BUTTONS ===== */
.pagination a, .pagination a:visited {
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  text-transform:uppercase;
  background: rgba(255,255,255,0.08);
  transition: all 0.25s ease;
  font-weight: 600;
  min-width: 40px;
  text-align: center;
  box-shadow:0 4px 0 rgba(69, 69, 69, 0.4), 0 15px 25px rgba(0, 0, 0, 0.4);
  display:none;
}

/* HOVER */
.pagination a:hover {
  background: linear-gradient(135deg, var(--accent-a), var(--accent-d));
  color: #071124;
  transform: translateY(-2px) scale(1.05);
}

/* AKTÍV OLDAL */
.pagination .pagination_actual {
  background: linear-gradient(135deg, var(--accent-c), var(--accent-d));
  color: #071124;
  font-weight: bold;
  box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

/* ===== PREV / NEXT KIEMELÉS ===== */
.pagination a[rel="prev"],
.pagination a[rel="next"] {
  background: linear-gradient(135deg, #ee2e6d, #f2384a);
  color: #fff;
  font-weight: bold;
  display:inline-block;
  width:200px;
}

/* ===== SELECT DROPDOWN ===== */
.pagination select {
  border-radius: 12px;
  padding: 8px 12px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-weight: bold;
  backdrop-filter: blur(10px);
  cursor: pointer;
  display:none;
}

.pagination select option {
  color: #000;
}

/* ===== MOBIL OPTIMALIZÁLÁS ===== */
@media (max-width: 600px) {

  .pagination {
    padding: 10px;
    gap: 6px;
  }

  /* csak pár oldal látszódjon */
  .pagination a {
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  /* számok scrollozhatók */
  .pagination {
    /* overflow-x: auto; */
    /* justify-content: flex-start; */
  }

  .pagination::-webkit-scrollbar {
    height: 6px;
  }

  .pagination::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
  }

  /* select full width */
  .pagination select {
    width: 100%;
    margin-top: 5px;
  }
}

.room-code-widget {
  position: fixed;
  top: 10px;
  right: 15px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.3);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  z-index: 9999;
  transition: 0.2s;
  backdrop-filter: blur(6px);
  display:none;
}

.room-code-widget:hover {
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.5);
}

#room-code-text {
  font-weight: bold;
  letter-spacing: 2px;
}

.section-title {
  display: block;
  width: fit-content;

  margin: 30px 15px 10px;
  padding: 8px 14px;

  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;

  color: #fff;

  background: linear-gradient(
    135deg,
    var(--accent-b),
    var(--accent-d)
  );

  border-radius: 6px;
  box-shadow: none;
}




.slider-wrapper {
    position: relative;
    width: 100%;
	touch-action: pan-y;
}

.quiz-slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 15px 25px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -webkit-overflow-scrolling: touch; /* Sima görgetés iOS-en */
    cursor: grab;
    user-select: none;
}

.quiz-slider::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Vonszolás közbeni állapot PC-n */
.quiz-slider.dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.quiz-slide {
    position: relative;
    flex: 0 0 auto;
    width: 320px;
    height: 160px;
    border-radius: 20px;
    overflow: hidden;
    scroll-snap-align: center;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 10px 15px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
    -webkit-user-drag: none;
    
    /* FIX: Grafikai bugok ellen */
    backface-visibility: hidden;
}

.quiz-slide:hover {
    transform: scale(1.05);
}

.quiz-image img {
    width: 101%; /* Egy hajszálnyit legyen nagyobb */
    height: 101%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    /* Középre igazítjuk a túllógást */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.quiz-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.quiz-overlay {
    position: absolute;
    /* FIX: Az inset: 0 néha elcsúszik, az -1px segít lefedni a széleket */
    inset: -1px; 
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
    pointer-events: none;
}

.quiz-info {
    position: absolute;
    bottom: 10px;
    left: 12px;
    right: 50px;
}

.quiz-info h3 { font-size: 1.5rem; margin: 0; }
.quiz-info p { font-size: 0.8rem; opacity: 0.85; }

.quiz-play {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ffa6, #00c3ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #071124;
}

/* Gombok */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

.slider-btn.left { left: -55px; }
.slider-btn.right { right: -55px; }

@media (max-width: 700px) {
    .slider-btn { display: none; }
    .quiz-slide { width: 75%; height: 150px; }
}








/* ===== CATEGORY CLOUD ===== */
.cat-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 15px;
  justify-content: center;
}

/* ===== CHIP ===== */
.cat-chip {
  position: relative;
  padding: 12px 18px;
  border-radius: 999px;

  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;

  color: #fff;

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);

  border: 1px solid rgba(255,255,255,0.1);

  transition: all 0.25s ease;
  overflow: hidden;
}

/* 🔥 glow effect */
.cat-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
  opacity: 0;
  transition: 0.4s;
}

/* hover */
.cat-chip:hover::before {
  opacity: 1;
}

.cat-chip:hover {
  transform: translateY(-3px) scale(1.05);
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  color: #071124;
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
  border:0;
}

/* tap feedback */
.cat-chip:active {
  transform: scale(0.95);
}








.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px;
    /* max-width: 1300px; */
    margin: 0 auto;
}

.cat-card {
    position: relative;
    height: 200px;
    border-radius: 24px;
    text-decoration: none;
    color: white;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 0 rgba(0,0,0,0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--cat-color);
}

/* Háttérkép stílusa */
.cat-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    z-index: 1;
	opacity:.25;
}

.cat-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.8));
    z-index: 2;
}

.cat-card-inner {
    position: relative;
    z-index: 3;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cat-info-top {
    margin-bottom: auto;
}

.cat-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cat-name {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 5px;
    display: block;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.cat-desc {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-footer {
    margin-top: 15px;
}

.cat-btn {
    font-size: 1.0rem;
    font-weight: 800;
    /* border-bottom: 2px solid white; */
    padding-bottom: 2px;
}

/* Hover effektek */
.cat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 0 rgba(0,0,0,0.1);
}

.cat-card:hover .cat-card-bg {
    transform: scale(1.1);
}

/* Mobilon 2 oszlop, kisebb magasság */
@media (max-width: 600px) {
    .cat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .cat-card {
        height: 180px;
        border-radius: 18px;
    }
    .cat-name { font-size: 1.2rem; }
    .cat-desc { display: none; }
}



.roomcode_outside_wrapper .category-action{margin:0;}
.roomcode_outside_wrapper{
	display:flex;
	gap:25px;
	justify-content:center;
	flex-wrap: wrap;
}
.roomcode_outside{
	font-size:1.5rem;
	background-color:white;
	border:0;
	text-align:center;
	text-transform:uppercase;
	font-weight:bold;
	text-shadow: 0 2px 4px rgba(0,0,0,0.3);
	box-shadow: 0 8px 0 rgba(69, 69, 69, 0.4), 0 15px 25px rgba(0, 0, 0, 0.4);
	border-radius:12px;
}
@media (max-width: 800px) {
	.roomcode_outside_wrapper{flex-wrap:wrap;}
	.roomcode_outside{padding:15px;}
}
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 10px 0;
  color: #aaa;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  flex-basis: 100%;
  color:white;
}

.divider::before,
.divider::after {
	content: "";
  width: 100px;
  height: 1px;
  background: linear-gradient(to right, transparent, #888, transparent);
  box-shadow: 0 0 6px rgba(255,255,255,0.2);
}

.party-info {
  font-size: 13px;
  color: #fff;
  text-align: center;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.08);
  margin-top: 5px;
  align-self: center;
}