/* FLAREON: Požární chaos — izolovaný herní vzhled */

body.page-chaos {
  background: #0b1018;
}

body.page-chaos .page-cable {
  display: none;
}

.chaos-page {
  position: relative;
  padding: 18px 0 56px;
}

.chaos-page .wrap {
  max-width: min(1180px, calc(100% - 2 * var(--page-gutter)));
}

.chaos-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 16px;
  color: #f4f4f2;
}

.chaos-intro h1 {
  margin: 6px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.chaos-intro p {
  margin: 8px 0 0;
  color: rgba(244, 244, 242, 0.72);
  max-width: 42ch;
}

.chaos-best {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f5c518;
  white-space: nowrap;
}

.chaos-stage {
  position: relative;
  isolation: isolate;
  height: min(72vh, 720px);
  min-height: 420px;
  border-radius: 20px;
  overflow: hidden;
  background: #12161c;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  touch-action: none;
  user-select: none;
}

.chaos-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.chaos-hud {
  pointer-events: none;
  position: absolute;
  inset: 14px 108px auto 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  z-index: 3;
}

.chaos-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(12, 16, 22, 0.62);
  color: #fff;
  backdrop-filter: blur(8px);
}

.chaos-stat span {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.chaos-stat strong {
  font-size: 18px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.chaos-lives {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  gap: 6px;
  pointer-events: none;
}

.chaos-heart {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e85a00;
}

.chaos-heart.is-empty {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.chaos-buffs {
  position: absolute;
  right: 14px;
  bottom: 108px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  pointer-events: none;
  max-width: 55%;
}

.chaos-buff {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(232, 90, 0, 0.92);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.chaos-buff.is-eps { background: #2563eb; }
.chaos-buff.is-pbr { background: #f5c518; color: #141414; }
.chaos-buff.is-slow { background: #0f172a; }
.chaos-buff.is-truck { background: #dc2626; }
.chaos-buff.is-shield { background: #64748b; }
.chaos-buff.is-water { background: #0284c7; }

.chaos-float {
  position: absolute;
  left: 50%;
  top: 22%;
  transform: translateX(-50%);
  z-index: 6;
  pointer-events: none;
  text-align: center;
  color: #fff;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.chaos-float.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}

.chaos-float b {
  display: block;
  font-size: clamp(22px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.chaos-float span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f5c518;
}

.chaos-hint {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chaos-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  align-content: start;
  justify-items: center;
  padding: 28px 20px 120px;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(232, 90, 0, 0.28), transparent 52%),
    rgba(10, 12, 16, 0.78);
  backdrop-filter: blur(8px);
}

.chaos-overlay[hidden] {
  display: none !important;
}

.chaos-card {
  width: min(560px, 100%);
  padding: 28px 26px 24px;
  border-radius: 24px;
  background: #fff;
  color: #141414;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.chaos-card .kicker {
  color: var(--red);
}

.chaos-card h2 {
  margin: 4px 0 8px;
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.chaos-card .lede-mini {
  margin: 0 0 18px;
  color: var(--ink-soft);
}

.chaos-quote {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #141414;
  color: #fff;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.chaos-reality {
  text-align: left;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #eef0f4;
}

.chaos-reality h3 {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

.chaos-reality p {
  margin: 0;
  font-size: 14px;
}

.chaos-source {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-soft);
}

.chaos-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 0 18px;
}

.chaos-stats div {
  padding: 10px 8px;
  border-radius: 14px;
  background: #eef0f4;
}

.chaos-stats span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.chaos-stats b {
  font-size: 18px;
}

.chaos-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.chaos-actions .btn {
  min-width: 160px;
  cursor: pointer;
  font-family: inherit;
}

.chaos-exam {
  background: #fff7ed;
}

.chaos-exam p[data-exam-q] {
  font-weight: 700;
  margin-bottom: 8px;
}

.chaos-exam p[data-exam-a]::before {
  content: "Odpověď: ";
  color: var(--red);
  font-weight: 700;
}

.chaos-hasit,
.chaos-slide,
.chaos-mute,
.chaos-pause {
  position: absolute;
  z-index: 6;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.chaos-hasit,
.chaos-slide {
  bottom: 52px;
  min-width: 86px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

.chaos-hasit {
  right: 14px;
  background: #3b9ec9;
}

.chaos-slide {
  right: 112px;
  background: #2a313c;
}

.chaos-hasit:disabled {
  opacity: 0.35;
}

.chaos-mute,
.chaos-pause {
  top: 14px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(12, 16, 22, 0.72);
  color: #fff;
  font-size: 15px;
}

.chaos-mute {
  right: 14px;
}

.chaos-pause {
  right: 60px;
  letter-spacing: 0.08em;
}

.chaos-mute.is-off {
  color: rgba(255, 255, 255, 0.4);
}

.chaos-legal {
  margin-top: 18px;
  font-size: 12px;
  color: rgba(244, 244, 242, 0.55);
  max-width: 72ch;
}

.chaos-flash {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: rgba(220, 38, 38, 0.0);
  transition: background 0.12s linear;
}

.chaos-flash.is-on {
  background: rgba(220, 38, 38, 0.32);
}

.chaos-record {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f5c518;
  color: #141414;
  font-weight: 800;
  letter-spacing: -0.03em;
}

@media (max-width: 820px) {
  .chaos-intro {
    flex-direction: column;
    align-items: flex-start;
  }

  .chaos-hud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chaos-stage {
    height: min(78vh, 640px);
    min-height: 520px;
    border-radius: 18px;
  }

  .chaos-stats {
    grid-template-columns: 1fr 1fr;
  }

  .chaos-hint {
    display: none;
  }

  .chaos-card {
    padding: 18px 16px 16px;
  }

  .chaos-overlay {
    padding: 12px 12px 12px;
  }

  body.page-chaos .cookie-banner {
    padding: 12px 14px 10px;
  }

  body.page-chaos .cookie-banner > p {
    display: none;
  }

  body.page-chaos .cookie-banner h2 {
    font-size: 15px;
    margin-bottom: 8px;
  }
}

/* Homepage teaser */
.chaos-teaser {
  position: relative;
  overflow: hidden;
  margin: 0 var(--page-gutter) 8px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 12% 20%, rgba(232, 90, 0, 0.38), transparent 42%),
    linear-gradient(145deg, #1a2336 0%, #0f172a 52%, #121a2b 100%);
  color: #f4f4f2;
}

.chaos-teaser__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  padding: 48px 0;
}

.chaos-teaser h2 {
  margin: 6px 0 10px;
  font-size: clamp(32px, 4.5vw, 52px);
  letter-spacing: -0.05em;
  line-height: 0.92;
  color: #fff;
}

.chaos-teaser p {
  margin: 0 0 22px;
  color: rgba(244, 244, 242, 0.78);
  max-width: 46ch;
}

.chaos-teaser .kicker {
  color: #ff8a3d;
}

.chaos-teaser__preview {
  min-height: 180px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 18px, transparent 18px 46px),
    #141820;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.chaos-teaser__preview span {
  position: absolute;
  left: 18%;
  bottom: 28%;
  width: 28px;
  height: 52px;
  border-radius: 14px;
  background: #f3efe6;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.35);
}

.chaos-teaser__preview span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 100%;
  height: 7px;
  background: #e85a00;
}

.chaos-teaser__preview span::after {
  content: "";
  position: absolute;
  right: -58px;
  top: 4px;
  width: 18px;
  height: 28px;
  border-radius: 6px;
  background: #3d9a6a;
  animation: chaos-fly 1.8s ease-in-out infinite;
}

@keyframes chaos-fly {
  0%, 100% { transform: translate(0, 0) rotate(-12deg); }
  50% { transform: translate(18px, 14px) rotate(10deg); }
}

.nav-chaos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e85a00;
  color: #fff !important;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-chaos:hover {
  background: #c04800;
}

.nav-chaos.is-active {
  box-shadow: 0 0 0 2px #141414;
}

@media (max-width: 900px) {
  .chaos-teaser__inner {
    grid-template-columns: 1fr;
  }
}
