/* Compte à rebours avant l'ouverture du Donjon de l'Avent (demande de Nicolas du 24/11/2026), d'après sa maquette
   « OSR » : fond bordeaux très sombre, rouge vif, police à empattements, double filet autour du titre. Couleurs fixes,
   lisibles sur tous les thèmes. */
.compte-a-rebours {
  --car-rouge: #ec3b2c;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.9rem 2rem;
  margin: 0 0 1.25rem; padding: 1rem 1.25rem;
  background: #1a0b0c; color: var(--car-rouge);
  font-family: "Source Serif 4", Garamond, Georgia, serif;
}
.compte-a-rebours p { margin: 0; color: var(--car-rouge); }
.compte-a-rebours .car-titre {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0.5rem 1.6rem 0.7rem; border: 7px double var(--car-rouge); line-height: 1.05;
}
.compte-a-rebours .car-sur { font-size: 1rem; }
.compte-a-rebours .car-titre strong { font-size: 2.1rem; font-weight: 400; color: var(--car-rouge); }
.compte-a-rebours .car-droite { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; text-align: center; }
.compte-a-rebours .car-dans { font-size: 1.3rem; }
.compte-a-rebours .car-compteur { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; }
.compte-a-rebours .car-bloc {
  padding: 0.05rem 0.5rem; border: 2px solid var(--car-rouge); font-size: 1.45rem; line-height: 1.3; white-space: nowrap;
}
.compte-a-rebours .car-bloc b { font-weight: 400; font-variant-numeric: tabular-nums; }
.compte-a-rebours .car-gains { font-size: 0.95rem; color: #e9a197; }
.compte-a-rebours .car-gains a { color: var(--car-rouge); }
@media (max-width: 576px) {
  .compte-a-rebours .car-titre strong { font-size: 1.7rem; }
  .compte-a-rebours .car-bloc { font-size: 1.15rem; padding: 0.05rem 0.35rem; }
}

/* Page des t-shirts du concours (Nicolas, 24/11) : aperçus petits et marqués */
.tresor-donjon { max-width: 60rem; margin: 0 auto; }
.tresor-donjon .tresor-sur { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; color: var(--pico-muted-color); margin-bottom: 0.2rem; }
.tresor-grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; margin: 1.25rem 0; }
.tresor-grille figure { margin: 0; text-align: center; }
.tresor-grille img { width: 100%; max-width: 220px; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 0.3rem; user-select: none; -webkit-user-drag: none; }
.tresor-grille figcaption { font-size: 0.85rem; font-weight: 600; margin-top: 0.3rem; }
.tresor-donjon .tresor-note { font-size: 0.9rem; color: var(--pico-muted-color); }
@media (max-width: 768px) { .tresor-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Bandeau du Donjon de l'Avent du 1/12 au 6/01 (Nicolas, 26/11) : « l'entrée du donjon », en pixel art comme le jeu :
   mur de pierre, cadre de bois enneigé du jeu (cadre C), porte voûtée, deux torches qui vacillent. Couleurs fixes,
   lisibles sur tous les thèmes. Images : static/donjon/ (script a_valider/noel_propositions/entree_donjon.py). */
.bandeau-donjon {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 1rem 1.6rem;
  margin: 0 0 1.25rem; padding: 0.9rem 3rem;
  border: 16px solid transparent; border-image: url("../donjon/cadre-sculpte.a62136245bf5.png") 24 round;  /* v2 : style de la référence de Nicolas (28/11) */
  background: #141209 url("../donjon/pierre-ocre.ee8fa2794985.png") repeat 0 0 / 96px 96px;
  image-rendering: pixelated; color: #f3ead6;
  font-family: "Source Serif 4", Garamond, Georgia, serif;
}
.bandeau-donjon[hidden] { display: none; }
.bandeau-donjon p { margin: 0; color: inherit; }
.bandeau-donjon .bd-porte { flex: none; line-height: 0; filter: drop-shadow(0 0 10px rgb(236 120 44 / 0.35)); }
.bandeau-donjon .bd-porte img { width: 80px; height: 104px; image-rendering: pixelated; }
.bandeau-donjon .bd-texte {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem; text-align: center; max-width: 36rem;
  flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere;
  padding: 0.5rem 1rem 0.7rem; background: rgb(4 2 4 / 0.78); border-radius: 0.2rem; box-shadow: inset 0 0 0 2px #4c482f;
}
.bandeau-donjon .bd-titre {
  font-size: 1.55rem; line-height: 1.1; color: #dce0a7; letter-spacing: 0.02em;
  text-shadow: 0 2px 0 #040204, 0 0 12px rgb(236 120 44 / 0.35);
}
.bandeau-donjon .bd-annonce { font-size: 1.12rem; }
.bandeau-donjon .bd-annonce b { color: #e0503a; font-size: 1.15em; }
.bandeau-donjon .bd-gains { font-size: 0.9rem; color: #b5c39f; }
.bandeau-donjon .bd-gains a { color: #dce0a7; }
.bandeau-donjon .bd-entrer {
  margin-top: 0.3rem; padding: 0.35rem 1.1rem; border: 2px solid #040204; border-radius: 0.15rem;
  background: linear-gradient(#7c734e, #4c482f); box-shadow: inset 0 2px 0 #b3b487, inset 0 -2px 0 #26200d, 0 2px 0 #040204;
  color: #f0f2c8; font-size: 1.02rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  text-shadow: 0 1px 0 #2a170c;
}
.bandeau-donjon .bd-entrer:hover, .bandeau-donjon .bd-entrer:focus-visible {
  background: linear-gradient(#8f8d67, #5a4f2c); box-shadow: inset 0 2px 0 #c8c99a, inset 0 -2px 0 #26200d, 0 0 14px rgb(236 140 44 / 0.5);
}
.bandeau-donjon .bd-torche {
  flex: none; width: 36px; height: 72px; background: url("../donjon/torche.c19dd917c001.png") no-repeat center / 36px 72px;
  image-rendering: pixelated; animation: bd-flamme 1.6s steps(4) infinite;
}
.bandeau-donjon .bd-torche-droite { animation-delay: -0.7s; }
@keyframes bd-flamme {
  0%, 100% { filter: brightness(1) drop-shadow(0 -6px 10px rgb(255 150 50 / 0.55)); }
  33% { filter: brightness(1.15) drop-shadow(0 -8px 14px rgb(255 170 60 / 0.7)); }
  66% { filter: brightness(0.92) drop-shadow(0 -5px 8px rgb(255 130 40 / 0.45)); }
}
@media (prefers-reduced-motion: reduce) { .bandeau-donjon .bd-torche { animation: none; } }
.bandeau-donjon .bd-fermer {
  position: absolute; top: 0.2rem; right: 0.3rem; width: 2rem; height: 2rem; margin: 0; padding: 0;
  border: 0; background: rgb(18 12 16 / 0.6); border-radius: 50%; color: #d9c9b0; font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.bandeau-donjon .bd-fermer:hover, .bandeau-donjon .bd-fermer:focus-visible { color: #fff; background: rgb(18 12 16 / 0.9); }
@media (max-width: 576px) {
  .bandeau-donjon { gap: 0.6rem; padding: 0.7rem 0.6rem; border-width: 10px; }
  .bandeau-donjon .bd-torche { display: none; }
  .bandeau-donjon .bd-porte img { width: 48px; height: 62px; }
  .bandeau-donjon .bd-texte { padding: 0.4rem 0.6rem 0.6rem; }
  .bandeau-donjon .bd-titre { font-size: 1.2rem; }
  .bandeau-donjon .bd-annonce { font-size: 1rem; }
  .bandeau-donjon .bd-entrer { white-space: normal; padding: 0.35rem 0.8rem; }
  .bandeau-donjon .bd-fermer { top: -0.1rem; right: -0.1rem; }
  .bandeau-donjon .bd-gains { font-size: 0.82rem; }
}
.bandeau-donjon .bd-blason { display: block; width: 120px; height: 56px; margin: -0.2rem auto 0.1rem; background: url("../donjon/blason.2171f586c3ac.png") no-repeat center / 120px 56px; image-rendering: pixelated; }
@media (max-width: 576px) { .bandeau-donjon .bd-blason { width: 84px; height: 39px; background-size: 84px 39px; } }

/* T89-T91 (Nicolas, 28/11) : entrée de crypte d'après son visuel de référence. Décor en image (colonnes aux crânes,
   torches, fronton au titre, herse, escalier aux yeux qui brillent : a_valider/noel_propositions/entree_crypte.py),
   textes du jour en HTML entre la herse et l'escalier, bouton en encadré pixel. Remplace l'habillage précédent. */
.bandeau-crypte {
  display: block; min-height: 333px; padding: 168px 1rem 1rem; text-align: center;
  border: 0; border-image: none; border-radius: 0.3rem; overflow: hidden;
  background: #000 url("../donjon/entree-crypte.f45e3775b34a.png") no-repeat center top / auto 333px;
  image-rendering: pixelated; color: #eadfbf; font-family: "Courier New", ui-monospace, monospace;
}
.bandeau-crypte .bd-texte { display: block; max-width: 30rem; margin: 0 auto; padding: 0; background: none; box-shadow: none; }
.bandeau-crypte .bd-annonce { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.02em; color: #eadfbf; text-shadow: 0 2px 0 #000; }
.bandeau-crypte .bd-annonce b { color: #d8432c; }
.bandeau-crypte .bd-gains { margin-top: 0.15rem; font-size: 0.85rem; font-weight: 700; color: #c9bb8e; text-shadow: 0 1px 0 #000; }
.bandeau-crypte .bd-gains a { color: #eadfbf; }
.bandeau-crypte .bd-entrer {
  display: inline-block; margin-top: 3.4rem; padding: 0.45rem 1.4rem; border: 3px double #b39a5a; border-radius: 0.6rem;
  background: rgb(10 9 6 / 0.88); box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #3d3420;
  color: #eadfbf; font: 700 1.05rem/1.2 "Courier New", ui-monospace, monospace; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; text-shadow: 0 1px 0 #000;
}
.bandeau-crypte .bd-entrer::before, .bandeau-crypte .bd-entrer::after { content: "▪"; color: #b39a5a; margin: 0 0.6rem; }
.bandeau-crypte .bd-entrer:hover, .bandeau-crypte .bd-entrer:focus-visible { border-color: #e0c77d; color: #fff3cf; box-shadow: 0 0 0 2px #000, 0 0 16px rgb(230 120 40 / 0.55); }
.bandeau-crypte .bd-fermer { background: rgb(0 0 0 / 0.6); color: #c9bb8e; }
@media (max-width: 576px) {
  .bandeau-crypte { min-height: 280px; padding: 141px 0.6rem 0.8rem; background-image: url("../donjon/entree-crypte-centre.98c07ffcce78.png"); background-size: auto 280px; }
  .bandeau-crypte .bd-annonce { font-size: 1rem; }
  .bandeau-crypte .bd-gains { font-size: 0.78rem; }
  .bandeau-crypte .bd-entrer { margin-top: 2.6rem; font-size: 0.9rem; padding: 0.4rem 0.8rem; }
  .bandeau-crypte .bd-entrer::before, .bandeau-crypte .bd-entrer::after { margin: 0 0.35rem; }
}
