/* Hra: scéna, otázka, odpovědi, žebřík, nápovědy. */
body.game { overflow-x: hidden; }
body.game main { max-width: 1400px; padding: 10px 20px 20px; }

.game-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 8px 20px; max-width: 1400px; width: 100%; margin: 0 auto;
}
.game-bar .title { font-family: var(--font-head); font-size: 18px; letter-spacing: 1px; color: var(--gold-light); }
.game-bar .tools { display: flex; gap: 6px; flex-wrap: wrap; }
.icon-btn {
  background: rgba(255,255,255,0.08); border: 1px solid var(--faint); color: var(--white); border-radius: var(--radius-sm);
  min-width: 40px; min-height: 40px; padding: 6px 10px; cursor: pointer; font-size: 14px; display: inline-flex; align-items: center; gap: 6px;
}
.icon-btn:hover { background: rgba(255,255,255,0.16); }
.icon-btn[aria-pressed="true"] { border-color: var(--gold); color: var(--gold-light); }

/* Úvod */
.intro { max-width: 720px; margin: 20px auto; text-align: center; }
.intro .set-title { font-size: clamp(30px, 5vw, 56px); margin-bottom: 4px; }
.intro .set-meta { color: var(--muted); margin-bottom: 20px; }
.intro .mode-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 20px 0; }
.intro .mode-pick .card { text-align: left; }
.intro .rules { text-align: left; font-size: 14px; color: var(--muted); }

/* Scéna */
.scene { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; align-items: start; }
.stage { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.qhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.qhead .level { font-family: var(--font-head); font-size: 18px; letter-spacing: 1px; color: var(--gold-light); text-transform: uppercase; }
.qhead .amount { font-family: var(--font-head); font-size: 22px; color: var(--white); }
.qhead .amount b { color: var(--gold); }

.timer { height: 10px; border-radius: 999px; background: rgba(255,255,255,0.12); overflow: hidden; position: relative; }
.timer .fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transition: width 1s linear; }
.timer.low .fill { background: linear-gradient(90deg, var(--err), var(--err-light)); }
.timer-text { font-family: var(--font-head); font-size: 16px; color: var(--muted); text-align: right; }

.question {
  background: var(--panel); border: 2px solid var(--gold-dim); border-radius: var(--radius); padding: 26px 30px;
  font-size: clamp(20px, 2.4vw, 30px); line-height: 1.35; min-height: 110px; display: flex; align-items: center;
  box-shadow: var(--shadow); font-weight: 500; overflow-wrap: anywhere;
}

.answers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.answer {
  display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  background: rgba(0, 16, 80, 0.7); border: 2px solid rgba(200,169,126,0.4); border-radius: var(--radius);
  color: var(--white); padding: 14px 18px; font-size: clamp(17px, 1.8vw, 24px); cursor: pointer; min-height: 64px;
  transition: background 0.2s, border-color 0.2s, transform 0.1s; overflow-wrap: anywhere;
}
.answer:hover:not(:disabled) { background: rgba(0, 30, 140, 0.8); border-color: var(--gold); }
.answer .letter {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 20px; background: var(--gold); color: var(--blue-deep);
}
.answer.selected { background: var(--gold); color: var(--blue-deep); border-color: var(--gold-light); transform: scale(1.01); }
.answer.selected .letter { background: var(--blue-deep); color: var(--gold); }
.answer.correct { background: var(--ok); border-color: var(--ok-light); color: var(--white); animation: pulse 0.6s ease 2; }
.answer.correct .letter { background: var(--white); color: var(--ok); }
.answer.wrong { background: var(--err); border-color: var(--err-light); color: var(--white); }
.answer.wrong .letter { background: var(--white); color: var(--err); }
.answer.removed { opacity: 0.18; pointer-events: none; }
.answer:disabled { cursor: default; }
.answer .poll { margin-left: auto; font-family: var(--font-head); font-size: 18px; color: var(--gold-light); }
.answer.selected .poll, .answer.correct .poll, .answer.wrong .poll { color: inherit; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }

.explanation { border-left: 4px solid var(--gold); background: rgba(200,169,126,0.1); padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: clamp(15px, 1.5vw, 19px); }
.explanation b { color: var(--gold-light); }

.stage-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; min-height: 48px; }
.stage-actions .status { color: var(--muted); font-size: 15px; margin-left: auto; }

/* Postranní panel */
.side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 10px; }
.lifelines { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.lifeline {
  background: rgba(0,16,80,0.7); border: 2px solid var(--gold-dim); color: var(--white); border-radius: var(--radius-sm);
  padding: 10px 6px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; min-height: 64px;
}
.lifeline .ico { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--gold-light); }
.lifeline:hover:not(:disabled) { border-color: var(--gold); background: rgba(0,30,140,0.8); }
.lifeline:disabled { opacity: 0.35; cursor: default; text-decoration: line-through; }

.ladder { list-style: none; margin: 0; padding: 8px; background: var(--panel); border: 1px solid var(--gold-dim); border-radius: var(--radius); display: flex; flex-direction: column-reverse; gap: 2px; }
.ladder li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 10px; border-radius: 6px; font-family: var(--font-head); font-size: 15px; color: var(--muted); }
.ladder li .n { width: 24px; color: var(--gold-dim); }
.ladder li.safe { color: var(--white); }
.ladder li.safe .n { color: var(--gold); }
.ladder li.done { color: rgba(255,255,255,0.4); }
.ladder li.current { background: var(--gold); color: var(--blue-deep); font-weight: 700; }
.ladder li.current .n { color: var(--blue-deep); }
.ladder li.safe::after { content: '●'; font-size: 8px; color: var(--gold); margin-left: 4px; align-self: center; }
.ladder li.current.safe::after { color: var(--blue-deep); }

/* Publikum a telefon */
.poll-chart { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: end; height: 200px; margin: 16px 0; }
.poll-chart .col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.poll-chart .bar { width: 100%; background: linear-gradient(180deg, var(--gold-light), var(--gold)); border-radius: 6px 6px 0 0; transition: height 0.8s ease; min-height: 2px; }
.poll-chart .lbl { font-family: var(--font-head); font-size: 18px; }
.poll-chart .pct { font-size: 14px; color: var(--muted); }
.phone-bubble { background: rgba(255,255,255,0.08); border-radius: 18px 18px 18px 4px; padding: 16px 18px; font-size: 18px; line-height: 1.4; margin: 12px 0; }
.phone-bubble .who { font-size: 13px; color: var(--muted); display: block; margin-bottom: 4px; }

/* Konec */
.result { text-align: center; max-width: 820px; margin: 10px auto; }
.result .big { font-family: var(--font-head); font-size: clamp(40px, 7vw, 84px); color: var(--gold); line-height: 1; margin: 6px 0; text-shadow: 0 0 30px rgba(200,169,126,0.4); }
.result .outcome { font-size: clamp(20px, 3vw, 30px); font-family: var(--font-head); letter-spacing: 1px; }
.result .stats { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; color: var(--muted); margin: 10px 0 18px; }
.review { text-align: left; margin-top: 18px; }
.review li { padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 6px; background: rgba(255,255,255,0.05); border-left: 4px solid var(--faint); }
.review li.ok { border-left-color: var(--ok-light); }
.review li.bad { border-left-color: var(--err-light); }
.review .q { font-weight: 500; }
.review .a { font-size: 14px; color: var(--muted); }

.keys-help { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 0; }

/* Projektorový režim: větší písmo, celá obrazovka */
body.projector .question { font-size: clamp(26px, 3.2vw, 44px); padding: 34px 40px; min-height: 160px; }
body.projector .answer { font-size: clamp(22px, 2.4vw, 34px); min-height: 90px; padding: 18px 24px; }
body.projector .answer .letter { width: 52px; height: 52px; font-size: 26px; }
body.projector .qhead .level { font-size: 22px; }
body.projector .qhead .amount { font-size: 28px; }
body.projector .explanation { font-size: clamp(18px, 1.8vw, 24px); }
body.projector .ladder li { font-size: 17px; }
body.projector .scene { grid-template-columns: minmax(0, 1fr) 300px; }

@media (max-width: 900px) {
  .scene { grid-template-columns: 1fr; }
  .side { position: static; }
  .ladder { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .ladder li { padding: 4px 8px; font-size: 13px; }
  .ladder li .n { display: none; }
  .ladder li:not(.current):not(.safe) { display: none; }
  .lifelines { grid-template-columns: repeat(4, 1fr); }
  .answers { grid-template-columns: 1fr; }
  .answer { min-height: 56px; }
  body.projector .scene { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .icon-btn .lbl { display: none; }
  .game-bar .title { font-size: 15px; }
  .question { padding: 18px; font-size: 19px; min-height: 90px; }
  .lifeline { font-size: 11px; padding: 8px 4px; }
  .game-bar { padding: 8px 12px; }
  body.game main { padding: 8px 12px 20px; }
}
