/* Écran 1 : la toise. Texte sur 5/12 de la grille, scène en aplats jusqu'au bord droit de l'écran. */
.toise { container-type: inline-size; }
.toise__in { --gq: min(1600px, 100cqw - 2 * var(--mg)); margin-left: calc(50cqw - var(--gq) / 2);
  display: grid; grid-template-columns: calc(var(--gq) * 5 / 12) 1fr;
  height: calc(100svh - 36px - var(--utile) - var(--rang) - var(--tete)); min-height: 540px; }
.toise__texte { align-self: center; padding: 24px clamp(24px, 3vw, 56px) 32px 0; display: grid; justify-items: start; }
.toise h1 { font: 500 clamp(44px, 4.1vw, 64px)/1.1 var(--titre); letter-spacing: -.01em; white-space: nowrap; }
.toise__lieu { margin-top: 18px; max-width: 36ch; font-size: 17px; line-height: 1.5; }
.verdict { margin-top: clamp(20px, 3.4vh, 40px); }
.verdict__taille { font: 500 clamp(80px, 7.6vw, 112px)/1 var(--titre); white-space: nowrap; }
.verdict__taille .c { display: inline-block; width: .7em; text-align: center; }
.verdict__taille .v { display: inline-block; width: .32em; text-align: center; }
.verdict__nom { margin-top: 10px; font: 700 22px/1.3 var(--texte); color: var(--rouge); }
.verdict__faits { margin-top: 4px; font-size: 17px; max-width: 40ch; }
.toise__regle { margin-top: 18px; font: 400 20px/1.3 var(--titre); }
.toise__voir { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 14px; font-weight: 700;
  text-decoration: none; border-bottom: 2px solid var(--rouge); }
.curseur { display: none; }

.scene { position: relative; min-width: 0; }
.scene__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.scene__rhune { fill: var(--rouge); }
.scene__antenne { fill: none; stroke: var(--rouge); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.scene__etiquette { fill: var(--blanc); font: 500 5px var(--texte); text-anchor: end; }
.scene__sol, .scene__herbe { fill: var(--encre); }
.scene__regle .rail { fill: var(--encre); }
.scene__regle .traits { fill: none; stroke: var(--encre); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.scene__regle text { fill: var(--encre); font: 500 5px var(--texte); text-anchor: end; }
.scene__corps, .scene__casque { color: var(--encre); fill: var(--encre); }
.scene__quads > svg { opacity: 0; transition: opacity .15s; overflow: visible; }
.scene__quads > svg.est-la { opacity: 1; }
.scene__repere { fill: none; stroke: var(--rouge); stroke-width: 3; vector-effect: non-scaling-stroke; }
.scene__repere--blanc { stroke: var(--blanc); }
.poignee { position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: var(--rouge); border: 3px solid var(--blanc); cursor: grab; touch-action: none; }
.poignee::before, .poignee::after { content: ""; position: absolute; left: 11px; right: 11px; height: 3px; border-radius: 2px; background: var(--blanc); top: 14px; }
.poignee::after { top: 21px; }
.poignee:active { cursor: grabbing; }
.poignee:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; }

@media (max-width: 1023.98px) {
  .toise__in { display: flex; flex-direction: column; height: auto; min-height: 0; margin: 0; padding: 14px var(--mg) 0; }
  .toise h1 { order: 1; } .toise__lieu { order: 2; } .scene { order: 3; } .verdict { order: 4; } .curseur { order: 5; }
  .toise__texte { display: contents; }
  .toise h1 { font-size: clamp(28px, 7.6vw, 34px); }
  .toise__lieu { margin-top: 6px; font-size: 15px; max-width: none; }
  .toise__mode { display: none; }
  .scene { height: 28svh; min-height: 220px; margin: 12px calc(-1 * var(--mg)) 0; }
  .poignee { display: none; }
  .verdict { margin-top: 10px; }
  .verdict__taille { font-size: 64px; }
  .verdict__nom { margin-top: 4px; font-size: 20px; line-height: 1.25; }
  .verdict__faits { margin: 2px 0 0; font-size: 16px; line-height: 1.4; }
  .toise__regle { display: none; }
  .toise__voir { display: none; }
  .curseur { display: block; position: relative; margin: 14px 0 0; padding-bottom: 16px; }
  .curseur input { -webkit-appearance: none; appearance: none; display: block; position: relative; width: 100%; height: 56px; margin: 0; z-index: 1;
    background: linear-gradient(var(--encre), var(--encre)) 0 100% / 100% 3px no-repeat; touch-action: pan-y; }
  .curseur__traits { position: absolute; top: 0; left: 22px; right: 22px; height: 24px; pointer-events: none; }
  .curseur__traits span { position: absolute; top: 0; width: 2px; height: 14px; margin-left: -1px; background: var(--encre); }
  .curseur__traits span:nth-child(odd) { width: 3px; height: 24px; margin-left: -1.5px; }
  .curseur__nums { position: relative; display: block; height: 16px; margin: 6px 22px 0; font: 500 13px/1 var(--texte); color: var(--gris); }
  .curseur__nums span { position: absolute; top: 0; width: 40px; margin-left: -20px; text-align: center; }
  .curseur input::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 44px; margin-top: 6px; border-radius: 50%;
    background: var(--rouge); border: 3px solid var(--blanc); box-shadow: 0 0 0 2px var(--rouge); }
  .curseur input::-moz-range-thumb { width: 38px; height: 38px; border-radius: 50%; background: var(--rouge); border: 3px solid var(--blanc); }
  .curseur input::-webkit-slider-runnable-track { height: 56px; }
}
@media (min-width: 1024px) and (max-width: 1279.98px) { .toise h1 { white-space: normal; font-size: 48px; } }
