/* Edition 34 : retouches ciblées au hero, au chargeur de transition, au résumé Time’s Up et aux chevrons. */
#home .secret-card > span {
  display: block;
  max-width: calc(100% - 10px);
  font-size: clamp(6px, 1.9vw, 7px);
  font-weight: 900;
  letter-spacing: .8px;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
  transform: rotate(-4deg);
}
#home .spark {
  width: 24px;
  height: 24px;
  font-size: 0;
  line-height: 0;
  pointer-events: none;
}
#home .spark::before,
#home .spark::after {
  position: absolute;
  content: "";
  display: block;
}
#home .spark::before {
  top: 7px;
  left: 5px;
  width: 10px;
  height: 6px;
  border: 2px solid currentColor;
  border-radius: 999px;
  transform: rotate(-28deg);
}
#home .spark::after {
  top: 2px;
  right: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: -13px 15px 0 -1px currentColor;
}
#home .spark.s2::before {
  top: 6px;
  left: 7px;
  width: 7px;
  height: 10px;
  border: 0;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(24deg);
}
#home .spark.s2::after {
  top: 3px;
  right: 1px;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  transform: rotate(45deg);
  box-shadow: -13px 14px 0 -1px currentColor;
}

.appui-select-trigger { align-items: center; }
.appui-select-chevron {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  padding: 0;
  line-height: 0;
}
.appui-select-chevron > svg {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0;
}

.edition34-transition-shade {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background: rgba(20, 31, 27, .36);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.edition34-transition-shade:focus { outline: none; }
.edition34-transition-card {
  box-sizing: border-box;
  width: min(100%, 390px);
  padding: 26px 23px 22px;
  border: 2px solid var(--ink, #111);
  border-radius: 24px;
  background: var(--paper, #fffdf2);
  color: var(--ink, #111);
  box-shadow: 6px 7px 0 var(--ink, #111);
  text-align: center;
}
.edition34-transition-deck {
  position: relative;
  width: 78px;
  height: 74px;
  margin: 0 auto 17px;
}
.edition34-transition-ticket {
  position: absolute;
  inset: 9px 17px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 44px;
  height: 56px;
  border: 2px solid var(--ink, #111);
  border-radius: 10px;
  background: #fffdf2;
  color: #155744;
  font-size: 26px;
  font-weight: 900;
  box-shadow: 2px 3px 0 var(--ink, #111);
  will-change: transform;
}
.edition34-transition-ticket.back { transform: rotate(-18deg) translate(-12px, 3px); animation: edition34-deal-left 1.35s ease-in-out infinite; }
.edition34-transition-ticket.middle { transform: rotate(13deg) translate(11px, 1px); animation: edition34-deal-right 1.35s ease-in-out infinite; }
.edition34-transition-ticket.front { z-index: 1; animation: edition34-deal-front 1.35s ease-in-out infinite; }
.edition34-transition-eyebrow {
  margin: 0 0 8px;
  color: #72551a;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .14em;
}
.edition34-transition-title { margin: 0; font-size: clamp(1.35rem, 6vw, 1.7rem); line-height: 1.2; }
.edition34-transition-detail { margin: 10px auto 20px; max-width: 30ch; color: var(--muted, #53574f); font-size: .96rem; line-height: 1.5; }
.edition34-transition-rail {
  position: relative;
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(21, 87, 68, .15);
}
.edition34-transition-rail::after {
  position: absolute;
  inset: 0;
  width: 38%;
  border-radius: inherit;
  background: #d8a522;
  content: "";
  animation: edition34-load 1.05s ease-in-out infinite;
}
@keyframes edition34-deal-left { 0%,100% { transform: rotate(-18deg) translate(-12px, 3px); } 50% { transform: rotate(-24deg) translate(-16px, 1px); } }
@keyframes edition34-deal-right { 0%,100% { transform: rotate(13deg) translate(11px, 1px); } 50% { transform: rotate(18deg) translate(16px, -2px); } }
@keyframes edition34-deal-front { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes edition34-load { 0% { transform: translateX(-110%); } 100% { transform: translateX(290%); } }

#timesup details.tu-turn-summary { margin: 1.4rem 0 1.7rem; text-align: left; }
#timesup details.tu-turn-summary > summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .7rem;
  box-sizing: border-box;
  width: 100%;
  min-height: 54px;
  padding: .85rem 1rem;
  border: 2px solid var(--ui22-edge, var(--ink));
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ui22-shadow, var(--ink));
  font-size: .95rem;
  font-weight: 800;
  list-style: none;
}
#timesup details.tu-turn-summary > summary::-webkit-details-marker { display: none; }
#timesup details.tu-turn-summary > summary::before { content: "▸"; font-size: 1rem; line-height: 1; }
#timesup details.tu-turn-summary[open] > summary::before { transform: rotate(90deg); }
#timesup .tu-summary25-content { padding-top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  .edition34-transition-ticket,
  .edition34-transition-rail::after { animation: none !important; }
}
html[data-motion="reduce"] .edition34-transition-ticket,
html[data-motion="reduce"] .edition34-transition-rail::after { animation: none !important; }
@media (max-width: 360px) {
  .edition34-transition-card { padding-inline: 18px; }
}

/* Le lecteur complet reste sur l’accueil ; il n’allonge pas les formulaires de configuration ou de jeu. */
body:has(#game:not([hidden])) footer:has(> #rules-reader30-open),
body:has(#timesup:not([hidden])) footer:has(> #rules-reader30-open) { display: none !important; }
