/* ===== Le blocus de l'École de Noël ===== */
.bl-overlay { position: fixed; inset: 0; z-index: 40; display: grid; place-items: safe center; padding: 10px; overflow: auto; background: rgba(8, 23, 48, .8); }
.bl-box {
  --q: min(13.5vw, 7.4vh, 62px);
  position: relative; width: min(470px, 100%); padding: 16px 16px 14px; border-radius: 22px;
  background: var(--cream); color: var(--ink); border: 3px solid var(--gold); box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  font: 600 14px/1.4 var(--body); animation: bl-pop .35s cubic-bezier(.3, 1.5, .5, 1);
}
@keyframes bl-pop { from { transform: scale(.85); opacity: 0; } }
.bl-x { position: absolute; top: 8px; right: 10px; z-index: 3; border: 0; background: none; font-size: 18px; color: #9b7a52; cursor: pointer; padding: 6px; }

.bl-story { text-align: center; padding: 26px 24px 22px; font-size: 15px; }
.bl-story h2, .bl-head h2 { font: 700 28px/1.1 var(--title); color: var(--red); margin: 0; }
.bl-story h2 { font-size: 32px; margin: 4px 0 12px; }
.bl-big { font-size: 60px; line-height: 1.1; }
.bl-kicker { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.bl-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.bl-row .btn { font-size: 14px; padding: 9px 14px; }

.bl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-right: 30px; margin-bottom: 10px; }
.bl-head span { font-size: 12px; font-weight: 800; color: #9b7a52; white-space: nowrap; }

/* portail */
.bl-gate { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.bl-school { font-size: 44px; line-height: 1; }
.bl-class { --c: #888; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 8px; padding: 8px 12px; border-radius: 14px; background: var(--c); color: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.bl-class b { font-size: 16px; }
.bl-class small { grid-column: 1; font-size: 12px; opacity: .9; }
.bl-seats { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 5px; }
.bl-seats i { width: 24px; height: 24px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .8); display: grid; place-items: center; font-style: normal; font-size: 12px; }
.bl-seats i.on { background: #fff; color: var(--c); border-style: solid; border-color: #fff; animation: bl-seat .3s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes bl-seat { from { transform: scale(.3); } }
.bl-next { display: flex; align-items: center; gap: 4px; }
.bl-next small { font-size: 11px; color: #9b7a52; margin-right: 2px; }
.bl-next i { --c: #888; width: 18px; height: 18px; border-radius: 50%; background: var(--c); color: #fff; font-style: normal; font-size: 9px; display: grid; place-items: center; }

/* banc */
.bl-bench { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0; padding: 6px 10px; border-radius: 14px; background: #f1e2c6; }
.bl-bench small { font-size: 12px; font-weight: 800; color: #7a6652; }
.bl-bench.full { background: #f8d2d2; }
.bl-slots { display: flex; gap: 5px; }
.bl-slot { width: calc(var(--q) * .66); height: calc(var(--q) * .66); border-radius: 10px; background: #fff; border: 2px dashed #d9c39c; display: grid; place-items: center; }
.bl-slot.taken { border-style: solid; background: #e3d3b4; font-size: calc(var(--q) * .4); }
.bl-slot .bl-tok { width: 82%; height: 82%; font-size: calc(var(--q) * .26); }

/* cour */
.bl-grid { --w: 6; display: grid; grid-template-columns: repeat(var(--w), var(--q)); justify-content: center; gap: 4px; padding: 10px; border-radius: 16px; background: linear-gradient(#dcecfb, #f4f9ff); border-top: 5px solid var(--green); }
.bl-cell { width: var(--q); height: var(--q); border-radius: 12px; background: rgba(255, 255, 255, .55); display: grid; place-items: center; position: relative; }
.bl-cell.wall { background: #cbb894; font-size: calc(var(--q) * .56); }
.bl-cell.chain { background: #d9e7d2; font-size: calc(var(--q) * .56); }
.bl-cell.chain b { position: absolute; right: -3px; bottom: -3px; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 10px; background: var(--red); color: #fff; font: 800 12px/20px var(--body); text-align: center; border: 2px solid #fff; }

.bl-tok {
  --c: #999; width: 86%; height: 86%; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 28%, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 62%);
  color: #fff; font: 800 calc(var(--q) * .36)/1 var(--body); text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  box-shadow: 0 3px 0 color-mix(in srgb, var(--c) 65%, #000), 0 5px 8px rgba(0, 0, 0, .2); position: relative;
}
.bl-tok::before { content: ""; position: absolute; top: -9%; left: 50%; width: 30%; height: 30%; margin-left: -15%; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }   /* pompon du bonnet */
.bl-tok.elf::before { width: 0; height: 0; margin-left: -18%; top: -24%; border-radius: 0; background: none; box-shadow: none; border: calc(var(--q) * .16) solid transparent; border-bottom: calc(var(--q) * .26) solid #1f7a4d; }   /* chapeau pointu de lutin */
button.bl-tok { cursor: pointer; transition: transform .12s, filter .2s; }
button.bl-tok.can { animation: bl-bob 1.4s ease-in-out infinite; }
button.bl-tok.can:hover { transform: scale(1.12); }
button.bl-tok.wait { opacity: .85; }
button.bl-tok.stuck { opacity: .5; cursor: default; }   /* coincé : pâle, mais la couleur reste lisible */
.bl-tok.myst { --c: #a9b6c6; }
.bl-tok.hint { animation: bl-hint .5s ease-in-out infinite alternate; }
.bl-tok.no { animation: bl-no .3s; }
.bl-ghost { position: fixed; z-index: 41; pointer-events: none; transform-origin: 0 0; }
@keyframes bl-bob { 50% { transform: translateY(-3px); } }
@keyframes bl-hint { from { box-shadow: 0 0 0 0 #ffd257; } to { box-shadow: 0 0 0 7px #ffd257; transform: scale(1.12); } }
@keyframes bl-no { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* Pimprenelle */
.bl-talk { display: flex; align-items: center; gap: 8px; margin-top: 10px; min-height: 44px; }
.bl-talk span { font-size: 32px; line-height: 1; }
.bl-talk p { margin: 0; padding: 7px 12px; border-radius: 14px 14px 14px 4px; background: #e6f3ea; color: #1b4d33; font-weight: 700; font-size: 13px; }
.bl-talk.pop p { animation: bl-seat .3s cubic-bezier(.3, 1.6, .5, 1); }

.bl-veil { position: absolute; inset: 0; z-index: 2; border-radius: 19px; background: rgba(255, 246, 230, .82); display: grid; place-items: center; }
.bl-lost { display: grid; gap: 8px; text-align: center; padding: 18px; }
.bl-lost b { font: 700 34px var(--title); color: var(--red); }
.bl-lost p { margin: 0 0 6px; }

@media (prefers-reduced-motion: reduce) { button.bl-tok.can, .bl-box { animation: none; } }
