/* Édition37 — interface équipes alignée sur les panneaux et contrôles partagés du Time’s Up. */
#classic36-root[hidden], #classic36-root [hidden] { display: none !important; }
.classic36-root { width: 100%; margin: 0 auto; }
#classic36-root .classic36-card.panel {
  box-sizing: border-box;
  width: 100%;
  max-width: 540px;
  margin: 22px auto 35px;
  padding: clamp(22px, 4vw, 32px);
}
.classic36-card .gamebar { gap: 12px; flex-wrap: wrap; }
.classic36-card .gamebar span { font-size: .65rem; letter-spacing: .08em; }
.classic36-card label { display: block; margin: 18px 0 6px; font-weight: 700; }
.classic36-card input, .classic36-card select {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line, #b9ccc1);
  border-radius: 12px;
  background: var(--paper, #faf9f2);
  color: inherit;
  font: inherit;
}
.classic36-names { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.classic36-teams { margin: 16px 0; }
.classic36-teams p { margin: 8px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.classic36-card button { width: 100%; margin-top: 12px; }
.text-button,
.classic36-card .text-button,
#two-mode-choice36 > .text-button,
#duel36-root .gamebar .text-button,
#even-choice36 > .text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 12px 14px;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: middle;
}
#two-mode-choice36 { box-sizing: border-box; width: 100%; max-width: 680px; margin: 20px auto 34px; padding: clamp(22px, 5vw, 38px); border-radius: 24px; }
#two-mode-choice36 > .two-mode-home { display: inline-flex; align-items: center; justify-content: center; width: auto; min-height: 44px; margin: 0 0 26px; padding: 11px 16px; border: 2px solid var(--ui22-edge, #111); border-radius: 12px; background: var(--paper, #fffef8); color: var(--ink, #163d31); box-shadow: 3px 4px 0 var(--ui22-shadow, #111); font-size: .9rem; font-weight: 750; line-height: 1.2; }
#two-mode-choice36 > .two-mode-home:focus-visible { outline: 3px solid var(--gold, #d99a41); outline-offset: 3px; }
#two-mode-choice36 .two-mode-heading { margin: 0 0 26px; }
#two-mode-choice36 .two-mode-heading .eyebrow { margin: 0 0 13px; font-size: .68rem; line-height: 1.5; letter-spacing: .13em; }
#two-mode-choice36 .two-mode-heading h1 { margin: 0; font-size: clamp(1.85rem, 7.8vw, 2.8rem); line-height: 1.08; letter-spacing: -.035em; }
#two-mode-choice36 .two-mode-options { display: grid; gap: 18px; }
#two-mode-choice36 .mode-card { box-sizing: border-box; display: grid; grid-template-columns: 56px minmax(0, 1fr) 18px; align-items: center; gap: 16px; width: 100%; min-height: 160px; margin: 0; padding: 22px 20px; text-align: left; }
#two-mode-choice36 .mode-number { width: 56px; height: 56px; min-width: 0; border-radius: 16px; font-size: 1.15rem; }
#two-mode-choice36 .two-mode-card-copy { display: block; min-width: 0; }
#two-mode-choice36 .mode-card strong { display: block; font-size: 1.13rem; line-height: 1.25; letter-spacing: -.015em; }
#two-mode-choice36 .two-mode-device { display: inline-block; max-width: 100%; box-sizing: border-box; margin-top: 9px; padding: 5px 9px; border: 1px solid currentColor; border-radius: 999px; font-size: .66rem; font-weight: 750; line-height: 1.25; }
#two-mode-choice36 .mode-card small { display: block; margin-top: 9px; font-size: .85rem; line-height: 1.55; }
#two-mode-choice36 #two-competition36 small { color: inherit; opacity: 1; }
#two-mode-choice36 .arrow { align-self: start; margin-top: 2px; font-size: 1.05rem; }
#two-mode-choice36 .two-mode-note { margin: 25px 0 0; padding-top: 20px; border-top: 1px solid var(--line, #c7d0c2); font-size: .83rem; line-height: 1.7; }
html[data-appearance="glass"] #two-mode-choice36 > .two-mode-home { border: 1px solid rgba(255,255,255,.52); border-radius: 18px; background: rgba(255,255,255,.13); color: #fff; box-shadow: 0 7px 18px rgba(8,24,74,.22), inset 0 1px 0 rgba(255,255,255,.2); }
html[data-appearance="brutal"] #two-mode-choice36 > .two-mode-home { border: 3px solid #111; border-radius: 7px; background: #fff; color: #111; box-shadow: 5px 5px 0 #111; }
@media (max-width: 370px) {
  #two-mode-choice36 { padding: 20px 17px; border-radius: 20px; }
  #two-mode-choice36 .mode-card { grid-template-columns: 42px minmax(0, 1fr) 14px; gap: 11px; padding: 18px 13px; }
  #two-mode-choice36 .mode-number { width: 42px; height: 48px; border-radius: 12px; font-size: .95rem; }
  #two-mode-choice36 .mode-card strong { font-size: 1.03rem; }
  #two-mode-choice36 .mode-card small { font-size: .8rem; }
  #two-mode-choice36 .two-mode-device { font-size: .61rem; padding: 4px 7px; }
}
.classic36-card .gamebar .text-button { min-height: 44px; }
.classic36-safety {
  padding: clamp(16px, 3.5vw, 22px);
  border: 1px solid var(--line, #b9ccc1);
  border-radius: 16px;
  background: var(--paper, #fffef8);
  box-shadow: 3px 4px 0 var(--line, #dce0d2);
}
.classic36-safety > strong { display: block; margin-bottom: 8px; }
.classic36-play-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 20px 0; }
.classic36-play-head strong:last-child { font-size: 2rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.classic36-word-target {
  display: grid;
  place-items: center;
  min-height: 145px;
  margin: 18px 0;
  padding: 20px;
  border: 1px solid var(--line, #b9ccc1);
  border-radius: 12px;
  background: var(--paper, #fffef8);
  box-shadow: 4px 5px 0 var(--line, #dce0d2);
  color: var(--ink);
  font-size: clamp(2rem, 8vw, 3.8rem);
  font-weight: 850;
  text-align: center;
  overflow-wrap: anywhere;
}
.classic36-answers { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px 0; }
.classic36-answers span {
  display: block;
  padding: 9px 12px;
  border: 1px solid var(--line, #b9ccc1);
  border-radius: 10px;
  background: var(--paper, #fffef8);
  box-shadow: 2px 3px 0 var(--line, #dce0d2);
  color: var(--ink);
  font-weight: 700;
  cursor: default;
  pointer-events: none;
  user-select: none;
}
.classic36-live-scores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 20px 0; }
.classic36-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line, #b9ccc1);
  border-radius: 12px;
  background: var(--paper, #fffef8);
  box-shadow: 3px 4px 0 var(--line, #dce0d2);
}
.classic36-score span { min-width: 0; font-size: .8rem; overflow-wrap: anywhere; }
.classic36-score b { font-size: 1.5rem; }
.classic36-score.active { border-color: var(--accent, #397052); background: #eaf0d7; outline: 2px solid var(--accent, #397052); }
#classic36-status { padding: 10px 0; border-radius: 12px; line-height: 1.5; }
#classic36-status[data-error="true"] { color: #8a3528; }
#classic36-turn-score, #classic36-pool-count { line-height: 1.6; }
#classic36-scoreboard { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
#classic36-turn-review { margin: 18px 0; }
#classic36-turn-review summary { cursor: pointer; }
body:has(#classic36-root:not([hidden])) footer { display: none !important; }
html[data-appearance="dark"] .classic36-card input,
html[data-appearance="dark"] .classic36-card select { background: #151515; color: rgba(255,255,255,.87); }

/* Même surface de jeu que Time’s Up en verre et dans l’apparence solaire. */
html[data-appearance="glass"] #classic36-root .classic36-card,
html[data-appearance="glass"] #even-choice36 {
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 24px;
  background: linear-gradient(145deg,rgba(255,255,255,.21),rgba(255,255,255,.09));
  color: #fff;
  box-shadow: 0 16px 38px rgba(4,24,83,.19), inset 0 1px 0 rgba(255,255,255,.38);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
html[data-appearance="glass"] #classic36-root .classic36-card :is(h1,h2,h3,p,label,.gamebar,.help,.eyebrow),
html[data-appearance="glass"] #even-choice36 :is(h1,h2,h3,p,label,.gamebar,.help,.eyebrow) { color: #fff; }
html[data-appearance="glass"] #classic36-root .classic36-card :is(.classic36-safety,.classic36-word-target,.classic36-answers span,.classic36-score),
html[data-appearance="glass"] #even-choice36 .mode-card {
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 18px;
  background: rgba(255,255,255,.13);
  color: #fff;
  box-shadow: 0 7px 18px rgba(8,24,74,.22), inset 0 1px 0 rgba(255,255,255,.2);
}
html[data-appearance="glass"] #classic36-root .classic36-card :is(.primary,.secondary,.text-button),
html[data-appearance="glass"] #even-choice36 :is(.primary,.secondary,.text-button) {
  min-height: 50px;
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 18px;
  color: #fff;
  background: rgba(255,255,255,.13);
  box-shadow: 0 7px 18px rgba(8,24,74,.22), inset 0 1px 0 rgba(255,255,255,.2);
}
html[data-appearance="glass"] #classic36-root .classic36-card .primary { color: #062e45; background: linear-gradient(135deg,#b5fadd,#d5fff0); }

html[data-appearance="brutal"] #classic36-root .classic36-card,
html[data-appearance="brutal"] #even-choice36 {
  border: 3px solid #111;
  border-radius: 10px;
  background: #fff;
  color: #111;
  box-shadow: 6px 6px 0 #111;
}
html[data-appearance="brutal"] #classic36-root .classic36-card :is(h1,h2,h3,p,label,.gamebar,.help,.eyebrow),
html[data-appearance="brutal"] #even-choice36 :is(h1,h2,h3,p,label,.gamebar,.help,.eyebrow) { color: #111; }
html[data-appearance="brutal"] #classic36-root .classic36-card :is(.classic36-safety,.classic36-word-target,.classic36-answers span,.classic36-score,.classic36-teams p,#classic36-scoreboard),
html[data-appearance="brutal"] #even-choice36 .mode-card {
  border: 3px solid #111;
  border-radius: 8px;
  background: #fff;
  color: #111;
  box-shadow: 4px 5px 0 #111;
}
html[data-appearance="brutal"] #classic36-root .classic36-card :is(.primary,.secondary,.text-button),
html[data-appearance="brutal"] #even-choice36 :is(.primary,.secondary,.text-button) {
  min-height: 52px;
  border: 3px solid #111;
  border-radius: 7px;
  color: #111;
  background: #fff;
  box-shadow: 5px 5px 0 #111;
  font-weight: 850;
}
html[data-appearance="brutal"] #classic36-root .classic36-card .primary { background: #ffd000; color: #111; }
html[data-appearance="brutal"] #classic36-root .classic36-card .classic36-score.active { background: #ffd000; }
html[data-appearance="brutal"] #classic36-root .classic36-card .text-button { width: auto; }
html[data-appearance="brutal"] #classic36-root .classic36-card :is(.primary,.secondary,.text-button):active,
html[data-appearance="brutal"] #even-choice36 :is(.primary,.secondary,.text-button):active { transform: translate(3px,3px); box-shadow: 2px 2px 0 #111; }
html[data-appearance="brutal"] #even-choice36 .mode-card { text-align: left; }

#even-choice36 .mode-card { margin: 16px 0; }
#even-choice36 .mode-card strong { display: block; }
#even-choice36 .mode-card small { display: block; line-height: 1.6; }
@media (min-width: 600px) {
  .classic36-names { grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; align-items: center; }
  .classic36-names label { margin: 0; }
}
@media (max-width: 370px) {
  #classic36-root .classic36-card.panel { padding: 18px 12px; }
  .classic36-live-scores { grid-template-columns: 1fr; }
  .classic36-answers span { padding: 7px 9px; }
}

/* Écran de départ dédié, cohérent avec les autres modes et lisible sur mobile. */
.classic36-countdown{box-sizing:border-box;min-height:360px;margin:20px 0;padding:clamp(24px,6vw,44px);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:2px solid var(--ui22-edge,#111);border-radius:12px;background:var(--paper,#fffef8);box-shadow:5px 6px 0 var(--ui22-shadow,#111)}
.classic36-countdown h2{margin:8px 0 16px;font-size:clamp(23px,5vw,32px)}
.classic36-countdown-number{display:grid;place-items:center;width:clamp(112px,30vw,160px);aspect-ratio:1;border-radius:50%;font-size:clamp(76px,20vw,112px);font-weight:900;font-variant-numeric:tabular-nums;line-height:1;color:var(--ink,#163d31);animation:countdown31-beat 1s cubic-bezier(.18,.8,.3,1) 3 both}
.classic36-countdown .help{max-width:34rem}
html[data-appearance="dark"] .classic36-countdown-number{color:#fff}
html[data-appearance="glass"] .classic36-countdown-number{color:#e1fff2}
html[data-appearance="brutal"] .classic36-countdown-number{color:#111}
#classic36-clock.urgent{color:#c62828}
html .app .classic36-play-head strong.critical-shake{transform-origin:center;animation:urgency31-impact .36s linear infinite}
@media (max-width: 600px) {
  html[data-appearance="glass"] #classic36-root .classic36-card { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* V40 — choix 6/8 : deux cartes égales, sans pastilles-logo. */
#even-choice36 { box-sizing:border-box; width:100%; max-width:680px; margin:20px auto 34px; padding:clamp(20px,5vw,34px); }
#even-choice36 h1 { margin:18px 0; font-size:clamp(1.9rem,7.8vw,3rem); line-height:1.08; letter-spacing:-.035em; }
#even-choice36 > p:not(.eyebrow) { margin:0 0 24px; line-height:1.6; }
#even-choice36 .even36-options { display:grid; grid-auto-rows:1fr; gap:18px; }
#even-choice36 .even36-options .mode-card { box-sizing:border-box; display:grid; grid-template-columns:minmax(0,1fr) 18px; align-items:center; gap:14px; width:100%; min-height:178px; margin:0; padding:22px; text-align:left; }
#even-choice36 .even36-copy { display:block; min-width:0; }
#even-choice36 .mode-card strong { display:block; font-size:1.15rem; line-height:1.25; overflow-wrap:anywhere; }
#even-choice36 .mode-card small { display:block; margin-top:12px; font-size:.88rem; line-height:1.55; overflow-wrap:anywhere; }
#even-choice36 .arrow { align-self:start; margin-top:2px; }
@media(max-width:370px) {
 #even-choice36 { padding:20px 15px; }
 #even-choice36 .even36-options .mode-card { padding:18px 15px; gap:9px; }
 #even-choice36 .mode-card strong { font-size:1.05rem; }
 #even-choice36 .mode-card small { font-size:.83rem; }
}
