/* Écrans participant (téléphone) */
.play { max-width: 480px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; padding: 20px 16px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; }
.play h1 { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.15; }
.play .lead { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 24px; }
.topbar .right { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.bottom { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.banner { padding: 12px 14px; border-radius: 12px; background: var(--ink); color: var(--ivory); font-size: 15px; line-height: 1.4; }
.card-ok { padding: 16px; border-radius: 14px; background: var(--green-bg); border: 2px solid var(--green); color: var(--green-ink); display: flex; flex-direction: column; gap: 6px; }
.card-ok .big { font-family: var(--display); font-size: 22px; font-weight: 700; }
.card-ko { padding: 14px 16px; border-radius: 14px; background: var(--red-bg); color: var(--red-ink); font-weight: 600; }
.wait-note { padding: 16px; border-radius: 14px; border: 1.5px dashed var(--border); display: flex; gap: 12px; align-items: center; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress > div { height: 100%; background: var(--green); transition: width 0.3s; }
.row-between > :last-child { white-space: nowrap; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }

/* Rejoindre */
.logo { width: 52px; height: 52px; border-radius: 14px; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.join-title { font-size: 38px !important; line-height: 1.1 !important; }
.code-input { min-height: 60px; font-size: 26px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; border: 2px solid var(--ink); border-radius: 14px; }

/* Tuiles (association, suite, QCM) */
.tile { min-height: 46px; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--border); background: var(--paper); color: var(--ink); font-size: 16px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 6px; text-align: left; width: 100%; transition: background 0.15s, border-color 0.15s; }
.tile.sel { background: var(--blue-bg); border-color: var(--blue); color: var(--blue-ink); }
.tile.ok { background: var(--green-bg); border-color: var(--green); color: var(--green-ink); }
.tile.ko { background: var(--red-bg); border-color: var(--red); color: var(--red-ink); }
.tile.used { background: var(--ivory-2); border-color: var(--ivory-2); color: #6B665C; }
.tile:disabled { cursor: default; }
.badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--green); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.col { display: flex; flex-direction: column; gap: 8px; }
.memo-row { min-height: 46px; padding: 8px 14px; border-radius: 12px; background: var(--paper); border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 16px; font-weight: 600; }
.num { width: 30px; height: 30px; flex-shrink: 0; border-radius: 15px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.flash-word { flex-grow: 1; min-height: 280px; border-radius: 20px; background: var(--paper); border: 1.5px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.flash-word .w { font-family: var(--display); font-size: 44px; font-weight: 700; }

/* Suite : cases numérotées */
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.slot { min-height: 58px; border-radius: 12px; border: 2px dashed var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); padding: 4px; text-align: center; }
.slot .n { font-size: 11px; font-weight: 700; }
.slot .w { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
.slot.ok { border-style: solid; border-color: var(--green); background: var(--green-bg); color: var(--green-ink); }
.slot.next { border-style: solid; border-color: var(--blue); background: var(--blue-bg); color: var(--blue-ink); }
.sep { height: 1px; background: var(--line); }

/* QCM */
.opt { min-height: 58px; padding: 12px 16px; border-radius: 14px; font-size: 17px; justify-content: flex-start; gap: 12px; }
.opt .letter { width: 30px; height: 30px; flex-shrink: 0; border-radius: 15px; border: 1.5px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.steps { display: flex; gap: 6px; }
.steps > div { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.steps > .cur { background: var(--blue); }
.steps > .done { background: var(--green); }

/* Cases à remplir (mots) */
.fill-row { min-height: 52px; padding: 0 8px 0 10px; border-radius: 12px; border: 2px solid var(--border); background: var(--paper); display: flex; align-items: center; gap: 10px; }
.fill-row .num { width: 28px; height: 28px; font-size: 13px; }
.fill-row input { flex-grow: 1; min-width: 0; height: 44px; border: none; background: transparent; font-size: 18px; font-weight: 600; padding: 0 4px; }
.fill-row input:focus { outline: none; }
.fill-row:focus-within { box-shadow: 0 0 0 3px #AFC0FF; }
.fill-row.ok { border-color: var(--green); background: var(--green-bg); color: var(--green-ink); }
.fill-row.ok .num { background: var(--green); }
.fill-row.ko { border-color: var(--red); background: var(--red-bg); color: var(--red-ink); }
.fill-row.ko .num { background: var(--red); }
.fill-row .fix { display: flex; align-items: center; gap: 6px; flex-shrink: 0; font-size: 13px; font-weight: 600; }
.result-bar { padding: 12px 14px; border-radius: 12px; background: var(--ink); color: var(--ivory); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.result-bar b { font-size: 19px; }
.result-bar .g { color: #7FD4A2; }
.result-bar .r { color: #F4A58A; }

/* Cases à remplir (nombres) */
.num-wrap { padding: 18px 14px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); display: flex; flex-wrap: wrap; column-gap: 10px; row-gap: 6px; align-content: flex-start; }
.num-cell { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.num-cell input { height: 52px; padding: 0; border-radius: 10px; border: 2px solid var(--border); background: var(--paper-2); font-size: 22px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.num-cell input.ok { border-color: var(--green); background: var(--green-bg); color: var(--green-ink); }
.num-cell input.ko { border-color: var(--red); background: var(--red-bg); color: var(--red-ink); }
.num-cell .note { height: 16px; font-size: 12px; font-weight: 700; }
.num-cell .note.ok { color: var(--green); }
.num-cell .note.ko { color: var(--red-ink); }
.memo-numbers { display: flex; flex-wrap: wrap; gap: 10px; }
.memo-numbers span { padding: 10px 14px; border-radius: 10px; background: var(--paper); border: 1.5px solid var(--border); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Score final (fond sombre) */
body.dark { background: var(--ink); color: var(--ivory); }
.final .stat-big { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 0; border-radius: 20px; background: var(--dark-2); }
.final .stat-big .n { font-family: var(--display); font-size: 72px; font-weight: 700; line-height: 1; }
.final .stat-big .n small { font-size: 32px; color: #BDB6A6; }
.final .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; }
.final .stats > div { padding: 14px; border-radius: 14px; background: var(--dark-2); display: flex; flex-direction: column; gap: 4px; }
.final .stats b { font-size: 22px; }
.final .stats span { font-size: 13px; color: #BDB6A6; }
.final .eyebrow { color: #BDB6A6; }
.final .wait-note { border-color: #6B665C; color: #D9D3C5; }

/* Porte de sortie « Je ne sais pas » */
.btn-skip { align-self: center; min-height: 44px; border: 1.5px dashed var(--border); background: transparent; color: var(--ink-2); font-size: 15px; }
.btn-skip.armed { border-style: solid; border-color: var(--red); color: var(--red-ink); background: var(--red-bg); }
.card-info { padding: 14px 16px; border-radius: 14px; background: var(--gold-bg); color: var(--gold-ink); font-size: 15px; line-height: 1.45; display: flex; flex-direction: column; gap: 4px; }
.card-info .big { font-family: var(--display); font-size: 20px; font-weight: 700; }
.slot.miss { border-style: solid; border-color: #B98A2E; background: var(--gold-bg); color: var(--gold-ink); }
.restart-banner { padding: 12px 14px; border-radius: 12px; background: var(--blue-bg); border: 1.5px solid var(--blue); color: var(--blue-ink); display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.4; }
.flash-word .w.num-flash { font-family: var(--sans); font-variant-numeric: tabular-nums; font-size: 56px; }
.flash-bar { width: 60%; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.flash-bar > div { height: 100%; width: 100%; background: var(--blue); }
