/* Żywiec Zdrój / Cztery Żywioły: style własne tego case'u. Wspólny układ jest w src/css/case.css. */

body.case .hero-die {
  position: absolute;
  top: 16%;
  right: 7%;
  width: min(34vw, 400px);
  height: auto;
  opacity: 0.4;
  pointer-events: none;
}

body.case .hero-die rect,
body.case .hero-die circle {
  fill: none;
  stroke: var(--lime-dim);
  stroke-width: 1.5;
}

body.case .board-map {
  margin-top: 2.5rem;
}

body.case .elements {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 2.5rem;
}

body.case .element {
  background: var(--dark-card);
  padding: 1.75rem 1.5rem 2rem;
  border-top: 2px solid transparent;
  transition: border-color 0.4s, background 0.4s;
}

body.case .element:hover {
  background: var(--mid);
  border-color: var(--lime);
}

body.case .element {
  overflow: hidden;
}

body.case .element-img {
  display: block;
  width: calc(100% + 3rem);
  max-width: none;
  height: auto;
  margin: -1.75rem -1.5rem 1.25rem;
}

body.case .element-prize {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--light);
}

body.case .element-name {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 0.8rem;
}

body.case .element-desc {
  color: var(--grey);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.6;
}

body.case .turn {
  margin: 3rem 0 0;
}

body.case .turn svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

body.case .turn-field {
  fill: #151513;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1.5;
}

body.case .turn-field.prize {
  stroke: var(--lime);
  stroke-width: 2;
}

body.case .turn-prize-glow {
  fill: rgba(200, 230, 14, 0.18);
}

body.case .turn-star {
  fill: var(--lime);
}

body.case .turn-pawn {
  fill: #3a3a36;
}

body.case .turn-pawn.active {
  fill: var(--lime);
}

body.case .turn-die {
  fill: #151513;
  stroke: var(--light);
  stroke-width: 2;
}

body.case .turn-pip {
  fill: var(--light);
}

body.case .turn-code-box {
  fill: none;
  stroke: rgba(255, 255, 255, 0.24);
  stroke-width: 1.5;
}

body.case .turn-code {
  font-family: var(--font-mono);
  font-size: 30px;
  letter-spacing: 0.12em;
  fill: var(--light);
}

body.case .turn-label {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.14em;
  fill: var(--grey);
}

body.case .turn-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 2rem;
  counter-reset: step;
}

body.case .turn-step {
  background: var(--dark-card);
  padding: 1.5rem;
  color: var(--grey);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.6;
}

body.case .turn-step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--lime);
  margin-bottom: 0.6rem;
}

body.case .turn-step strong {
  color: var(--light);
  font-weight: 600;
}

body.case .tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem 0 0;
}

body.case .tile-zoom {
  margin: 0;
}

body.case .tile-zoom svg {
  display: block;
  width: 100%;
  height: auto;
  background: #121210;
}

body.case .tile-zoom line {
  stroke: var(--lime);
  stroke-opacity: 0.5;
  stroke-width: 0.8;
}

body.case .tile-zoom figcaption {
  margin-top: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--grey);
}

@media (max-width: 800px) {
  body.case .hero-die {
    top: 31%;
    right: -14%;
    width: 50%;
    opacity: 0.2;
  }

  body.case .elements,
  body.case .turn-steps {
    grid-template-columns: 1fr 1fr;
  }

  body.case .tiles {
    gap: 0.5rem;
  }

  body.case .tile-zoom line {
    stroke-width: 1.4;
  }

  body.case .tile-zoom figcaption {
    font-size: 0.6rem;
    letter-spacing: 0.06em;
  }

  body.case .turn-label {
    font-size: 26px;
  }
}

@media (max-width: 620px) {
  body.case .tile-zoom line {
    stroke-width: 2.8;
  }

  body.case .elements {
    grid-template-columns: 1fr;
  }
}
