/* Oreda – kompletterande stil. Återanvänder temavariabler och .bräde/.bricka från style.css. */

.oreda-karaktar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 4px auto 10px;
  max-width: 460px;
}
.oreda-karaktar img {
  width: 84px; height: 84px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.35));
}
.oreda-bubbla {
  position: relative;
  background: var(--papper);
  color: var(--bläck);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.95rem;
  line-height: 1.4;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.oreda-bubbla::before {
  content: "";
  position: absolute;
  left: -9px; top: 22px;
  border: 9px solid transparent;
  border-right-color: var(--papper);
  border-left: 0;
}

.oreda-hud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin: 6px 0 2px;
  font-size: 0.82rem;
  color: var(--guld-ljus);
}

.oreda-knappar {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
}
.knapp.stor {
  display: block;
  margin: 14px auto 0;
  font-size: 1.05rem;
  padding: 12px 22px;
}

.bricka.oreda-rätt-plats {
  background: linear-gradient(160deg, #BFE3C6 0%, #8FCB9C 60%, #6FB585 100%);
  color: #14361f;
  box-shadow: 0 3px 0 #5a9c6e, 0 5px 10px rgba(0,0,0,0.35);
}
.bricka.oreda-rätt-plats::after {
  content: "✓";
  position: absolute;
  bottom: 3px; left: 6px;
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  color: #14361f;
}

/* Knappen "Vidare" får INTE synas när den är dold (annars övertrumfar .knapp.stor [hidden]) */
.knapp.stor[hidden] { display: none !important; }

.oreda-pratbubbla {
  max-width: 460px;
  margin: 10px auto;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(201, 162, 39, 0.4);
  color: var(--papper);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}
.oreda-pratbubbla p { line-height: 1.5; }
.oreda-slutbild {
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 14px auto;
  border-radius: 12px;
}
.oreda-slutknappar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* Realtidslogg – färgkodning per aktivitet (inuti .modal som de andra spelen) */
.modal .livelogg li.h-djur_klar  { background: #E2F0E5; }
.modal .livelogg li.h-alla_klara { background: #F3E3A8; font-weight: 600; }
.modal .livelogg li.h-fail       { background: #F6DAD5; }
.modal .livelogg li.h-ledtrad    { background: #F6ECC8; }
.livelogg li.h-djur_klar  { background: rgba(62, 124, 79, 0.18); }
.livelogg li.h-alla_klara { background: rgba(201, 162, 39, 0.32); font-weight: 600; }
.livelogg li.h-fail       { background: rgba(168, 69, 58, 0.20); }
.livelogg li.h-ledtrad    { background: rgba(201, 162, 39, 0.18); }

.oreda-raknare { font-weight: 600; color: var(--guld-ljus); margin: 4px 0; }
.panel-delare { border: none; border-top: 1px solid #e2dac6; opacity: 0.4; margin: 12px 0; }

.oreda-progress { list-style: none; padding: 0; margin: 8px 0 0; }
.oreda-progress li {
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.9rem;
  opacity: 0.7;
}
.oreda-progress li.aktiv { background: rgba(201,162,39,0.18); opacity: 1; font-weight: 600; }
.oreda-progress li.klar { opacity: 1; }
.oreda-progress li.klar::after { content: " ✓"; color: var(--grönt); font-weight: 700; }

@media (max-width: 720px) {
  .oreda-karaktar img { width: 64px; height: 64px; }
}
