/* epreuve.v2.css — l'épreuve hebdomadaire du Championnat (06/11/2026), d'après la maquette constellation v7 du conseil. */
.tr { --tr-gold: #e6b450; --tr-amber: #d9823b; --tr-red: #d4544c; --tr-green: #7fc7a1; --tr-line: #4a5480; --tr-muted: #9aa0bd; --tr-ink: #e8e4d6; --tr-sky: #0b1024; --tr-panel: #121834; --tr-edge: #2a3360; padding-bottom: 32px; }
.tr-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 8px 0 12px; }
.tr-head h1 { margin: 0; font-size: clamp(22px, 3vw, 30px); }
.tr-sub { margin: 2px 0 0; color: var(--tr-muted); font-size: 13px; }
.tr-board { display: flex; align-items: center; gap: 18px; }
.tr-clock { font-family: var(--font-mono, ui-monospace, monospace); font-size: 24px; color: var(--tr-gold); font-variant-numeric: tabular-nums; }
.tr-clock.is-low { color: var(--tr-red); }
.tr-score { color: var(--tr-muted); font-size: 14px; }
.tr-score b { font-family: var(--font-mono, ui-monospace, monospace); font-size: 20px; color: var(--tr-gold); }
.tr-scene { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.tr-sky { min-width: 0; background: var(--tr-sky); border: 1px solid var(--tr-edge); border-radius: 10px; overflow: hidden; }
.tr-scroll { overflow-x: auto; }
#tr-map { display: block; width: 100%; height: auto; }
.tr-dust { fill: #c9cbe0; opacity: .35; }
.tr-twinkle { animation: tr-pulse 3s ease-in-out infinite; }
@keyframes tr-pulse { 0%, 100% { opacity: .25; } 50% { opacity: .9; } }
.tr-link { stroke: var(--tr-line); stroke-width: 1.5; stroke-dasharray: 4 6; opacity: .7; }
.tr-link.is-on { stroke: var(--tr-gold); stroke-dasharray: none; opacity: .9; stroke-width: 2; }
.tr-pill { fill: var(--tr-sky); stroke: var(--tr-line); }
.tr-pill.is-on { stroke: var(--tr-gold); }
.tr-pill-l { text-anchor: middle; font-family: ui-monospace, monospace; font-size: 14px; fill: var(--tr-muted); }
.tr-pill-l.is-on { fill: var(--tr-gold); }
.tr-star { cursor: pointer; }
.tr-star:focus { outline: none; }
.tr-star:focus-visible .tr-halo { stroke: var(--tr-ink); stroke-width: 2; }
.tr-halo { fill: rgba(140, 150, 200, .08); stroke: var(--tr-edge); }
.tr-halo.is-res { fill: rgba(230, 180, 80, .18); }
.tr-halo.is-sel { stroke: var(--tr-ink); stroke-width: 2; }
.tr-ring { fill: none; stroke: var(--tr-muted); stroke-width: 3; }
.tr-ring.is-on { stroke: var(--tr-amber); }
.tr-shape { fill: #c7cbe6; opacity: .75; }
.tr-shape.is-res { fill: var(--tr-gold); opacity: 1; }
.tr-shape.is-frozen { fill: var(--tr-amber); opacity: 1; }
.tr-num { fill: var(--tr-sky); stroke: var(--tr-gold); }
.tr-num-l { text-anchor: middle; font-family: ui-monospace, monospace; font-size: 12px; fill: var(--tr-gold); }
.tr-label { text-anchor: middle; font-family: ui-monospace, monospace; font-size: 15px; fill: var(--tr-muted); letter-spacing: 2px; }
.tr-label.is-res { fill: var(--tr-ink); }
.tr-got { text-anchor: middle; font-family: ui-monospace, monospace; font-size: 12px; fill: var(--tr-gold); }
.tr-relay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; border-top: 1px solid var(--tr-edge); background: rgba(0, 0, 0, .25); }
.tr-relay-lib { color: var(--tr-ink); font-size: 15px; letter-spacing: .06em; }
.tr-relay-help { color: var(--tr-muted); font-size: 12px; }
.tr-cases { display: flex; gap: 6px; }
.tr-case { position: relative; display: grid; place-items: center; width: 30px; height: 36px; border: 1px solid var(--tr-gold); border-radius: 4px; color: var(--tr-gold); font-family: ui-monospace, monospace; font-size: 18px; }
.tr-case small { position: absolute; top: -8px; right: -6px; padding: 0 2px; background: var(--tr-sky); color: var(--tr-muted); font-size: 10px; }
.tr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; padding: 10px 14px; border-top: 1px solid var(--tr-edge); }
.tr-list button { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 8px; border: 1px solid var(--tr-edge); border-radius: 6px; background: transparent; color: var(--tr-ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.tr-list button[aria-current="true"] { border-color: var(--tr-ink); }
.tr-list button:focus-visible { outline: 2px solid var(--tr-ink); outline-offset: 2px; }
.tr-list-n { min-width: 14px; color: var(--tr-gold); font-family: ui-monospace, monospace; }
.tr-list-p { margin-left: auto; color: var(--tr-muted); font-family: ui-monospace, monospace; }
.tr-panel { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px; background: var(--tr-panel); border: 1px solid var(--tr-edge); border-radius: 10px; }
.tr-panel h2 { margin: 0; font-size: 20px; letter-spacing: .04em; }
.tr-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tr-empty { margin: 0; color: var(--tr-muted); font-size: 14px; line-height: 1.5; }
.tr-status { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 1px solid var(--tr-edge); border-radius: 999px; font-size: 12px; }
.tr-tag.is-ok { color: var(--tr-green); border-color: var(--tr-green); }
.tr-tag.is-amber { color: var(--tr-amber); border-color: var(--tr-amber); }
.tr-tag.is-gold { color: var(--tr-gold); border-color: var(--tr-gold); }
.tr-clues { display: block; width: 100%; height: auto; border-radius: 6px; }
.tr-target { display: flex; align-items: flex-end; gap: 12px; }
.tr-target-lib { color: var(--tr-muted); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.tr-target-i { color: var(--tr-gold); font-family: ui-monospace, monospace; font-size: 24px; line-height: 1; }
.tr-target-rest { flex: 0 0 90px; margin-bottom: 3px; border-bottom: 2px solid var(--tr-line); }
.tr-known { margin: 0; color: var(--tr-muted); font-size: 13px; line-height: 1.5; }
.tr-points { display: flex; justify-content: space-between; align-items: baseline; color: var(--tr-muted); font-size: 13px; }
.tr-points b { color: var(--tr-ink); font-family: ui-monospace, monospace; font-size: 22px; }
.tr-entry { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--tr-gold); border-radius: 8px; }
.tr-frozen { color: var(--tr-gold); font-size: 13px; }
.tr-entry input { min-width: 0; flex: 1 1 auto; }
.tr-entry .pg-keypad { margin: 0; }
.tr-msg { margin: 0; font-size: 13px; }
.tr-msg.is-ok { color: var(--tr-green); }
.tr-msg.is-ko { color: var(--tr-red); }
.tr-rules ul { margin: 0 0 14px; padding-left: 1.2em; line-height: 1.55; }
.tr-rules li { margin-bottom: 6px; }
.tr-resume { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 4px; max-width: 420px; }
.tr-resume li { display: flex; justify-content: space-between; }

@media (max-width: 860px) {
  .tr-scene { grid-template-columns: minmax(0, 1fr); }
  #tr-map { min-width: 760px; }
  .tr-panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; max-height: 78dvh; overflow-y: auto; border-radius: 14px 14px 0 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -10px 40px rgba(0, 0, 0, .5); transform: translateY(105%); transition: transform .25s ease; }
  .tr-panel.is-open { transform: none; }
  .tr-panel-top { position: sticky; top: -14px; padding-top: 2px; background: var(--tr-panel); z-index: 1; }
  /* une réponse n'a que des lettres : on retire les chiffres de la table pour que tout tienne sur l'écran */
  .tr-entry .kt-key:nth-child(n+27) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tr-twinkle { animation: none; }
  .tr-panel { transition: none; }
}
.ch-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
@media (max-width: 520px) { .ch-actions { grid-column: 1 / -1; justify-content: flex-start; } }
@media (max-width: 860px) {
  .tr-panel { gap: 8px; }
  .tr-entry { gap: 6px; padding: 10px; }
}
.tr-frozen-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tr-frozen-row .btn:disabled { opacity: .4; cursor: not-allowed; }
.tr-frozen-row .btn { padding: 3px 10px; min-height: 0; }
