* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
:root {
  --paper: #f5f2eb;
  --ink: #192943;
  --muted: #596577;
  --line: #cfcfc8;
  --red: #ae2d32;
  --serif: "Georgia", "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", Arial, sans-serif;
  --mono: Consolas, "Courier New", monospace;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}
body {
  margin: 0;
  min-height: 100svh;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.48;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #1978b6;
  outline-offset: 3px;
}
button {
  border: 0;
}
.mast {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.mast-inner {
  max-width: 1540px;
  padding: 17px clamp(18px, 5vw, 85px);
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand b {
  background: var(--red);
  color: white;
  letter-spacing: -0.09em;
  font:
    900 italic 27px/1 Arial,
    sans-serif;
  padding: 6px 10px 6px 7px;
}
.brand span {
  font: 700 12px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mast nav,
.actions,
.chips {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.quiet {
  background: transparent;
  font-size: 14px;
  font-weight: 650;
  padding: 6px;
}
.quiet:hover,
.link:hover {
  text-decoration: underline;
}
.quiet#fullscreen {
  font-size: 24px;
  line-height: 1;
}
#app {
  max-width: 1540px;
  margin: auto;
  padding: clamp(22px, 4vw, 58px) clamp(16px, 5vw, 85px);
}
.kicker,
.micro {
  font: 700 12px/1.45 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--red);
}
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
}
.kicker:before {
  content: "";
  width: 28px;
  height: 3px;
  background: currentColor;
}
.micro {
  font-size: 11px;
  letter-spacing: 0.08em;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: var(--serif);
  letter-spacing: -0.052em;
  line-height: 1.01;
}
h1 {
  font-size: clamp(44px, 7vw, 108px);
}
h2 {
  font-size: clamp(35px, 4.4vw, 68px);
}
h3 {
  font-size: 18px;
}
p {
  line-height: 1.5;
}
.subtitle {
  font-size: clamp(17px, 1.55vw, 23px);
  color: var(--muted);
  max-width: 43ch;
}
.subtle,
small {
  color: var(--muted);
}
.primary,
.secondary,
.link,
.segment,
.option,
.memberBtn,
.rooms button {
  border-radius: 5px;
  font-weight: 700;
  line-height: 1.25;
}
.primary,
.secondary,
.link {
  padding: 13px 18px;
}
.primary {
  background: var(--red);
  color: white;
  box-shadow: inset 0 -2px 0 #0002;
}
.primary:hover {
  background: #922427;
}
.secondary,
.option,
.rooms button {
  background: #fffefa;
  border: 1px solid var(--line);
}
.secondary:hover,
.option:hover,
.rooms button:hover {
  border-color: var(--ink);
}
.link {
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hero {
  display: grid;
  grid-template-columns: 1.24fr 0.76fr;
  min-height: min(670px, 75svh);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.hero-text {
  align-self: center;
  padding: 40px 6% 38px 1%;
}
.hero h1 {
  margin: 24px 0 19px;
}
.hero h1 em {
  color: var(--red);
  font-weight: 500;
}
.hero .actions {
  margin: 27px 0 36px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 20px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  font: 600 12px var(--mono);
  color: var(--muted);
}
.screen {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 370px;
  background: radial-gradient(ellipse at 50% 47%, #294155, #101c30 70%);
  overflow: hidden;
}
.screen:before,
.screen:after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid #ffffff24;
  pointer-events: none;
}
.screen:after {
  inset: 24px;
  border: 0;
  border-top: 1px solid #ffffff15;
  border-bottom: 1px solid #ffffff15;
}
.screen video {
  display: block;
  max-height: min(67svh, 610px);
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}
.screen.playing {
  background: #101825;
}
.screen.playing:before,
.screen.playing:after {
  display: none;
}
.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 20px;
  margin-bottom: 24px;
}
.section-title .kicker {
  margin-bottom: 10px;
}
.setup {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, 0.9fr);
  gap: clamp(22px, 5vw, 82px);
}
.panel {
  border-top: 1px solid var(--line);
  padding: 17px 0;
}
.panel:first-child {
  border-top: 0;
  padding-top: 0;
}
.row-label {
  display: block;
  font-size: 15px;
  font-weight: 750;
  margin-bottom: 10px;
}
.segments {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.segment {
  min-width: 34px;
  padding: 8px 10px;
  background: #e8e7e2;
  border: 1px solid transparent;
}
.segment[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}
.segment:hover {
  border-color: var(--ink);
}
.team-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.team-edit,
.name-box {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 5px 9px;
}
.team-edit input,
.name-box input {
  border: 0;
  background: transparent;
  min-width: 0;
  width: 100%;
  padding: 6px 2px;
  color: var(--ink);
}
.crest {
  background: var(--team, #445);
  display: inline-grid;
  place-items: center;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  flex: none;
  font-style: normal;
  font-family: "Segoe UI Emoji", sans-serif;
  font-size: 20px;
  text-shadow: 0 1px 2px #0005;
}
.team5 {
  background: linear-gradient(
    125deg,
    #b93457,
    #af7014,
    #397a53,
    #385da4,
    #895599
  ) !important;
}
.team4 .crest-glyph,
.crest.team4 {
  font-variant-emoji: emoji;
}
.setup aside {
  padding: 22px;
  background: #eae7de;
  border-top: 3px solid var(--red);
  align-self: start;
}
.setup aside h3 {
  font: 700 27px/1.1 var(--serif);
  margin: 10px 0 17px;
}
.facts {
  margin: 0 0 18px;
}
.facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #cecbbf;
  padding: 9px 0;
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  font-weight: 750;
  margin: 0;
}
.setup aside .primary {
  width: 100%;
}
.sample {
  height: 145px;
  margin: 0 0 14px;
}
.rooms {
  margin-top: 18px;
}
.rooms button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 12px;
  margin: 6px 0;
}
.form-text {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fffefa;
  width: min(100%, 420px);
}
.portrait {
  display: inline-block;
  background-repeat: no-repeat;
  background-size: 400% 400%;
  aspect-ratio: 1;
  flex: none;
}
.identity {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 4px;
  background-color: #546a75;
  background-size: cover;
  background-position: center;
}
.identity .portrait {
  height: 100%;
  position: absolute;
  right: 0;
  bottom: 0;
}
.identity:before {
  content: "";
  z-index: 0;
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #111e3480, transparent 75%);
}
.caption {
  position: absolute;
  left: 2%;
  bottom: 4%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: max-content;
  max-width: 54%;
  text-align: left;
  overflow-wrap: anywhere;
  line-height: 1.1;
  --fade: .85em;
}
.caption strong, .caption span {
  padding: .06em calc(.25em + var(--fade)) .06em .3em;
}
.caption strong {
  color: white;
  font: bold italic clamp(14px,1.65vw,28px)/1 Georgia,serif;
  background: linear-gradient(90deg,#081e3d 0%,#081e3dea calc(100% - var(--fade)),transparent);
}
.caption span {
  font-size: clamp(11px,1.02vw,17px);
  font-weight: 650;
  color: #0a2343;
  background: linear-gradient(90deg,#fff9f0f5 0%,#fff9f0e0 calc(100% - var(--fade)),transparent);
}
.caption span:last-child { font-weight: 400; }
.playbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 9px;
  margin-bottom: 12px;
}
.playbar .left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.playbar h2 {
  font-size: clamp(23px, 3vw, 42px);
  overflow-wrap: anywhere;
}
.statusline {
  font: 700 12px var(--mono);
  color: var(--muted);
  margin-bottom: 5px;
}
.timer {
  font: 800 clamp(38px, 5.5vw, 78px)/1 var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.08em;
  white-space: nowrap;
}
.timer.urgent {
  color: var(--red);
  animation: pulse 0.65s ease-in-out infinite alternate;
}
@keyframes pulse {
  to {
    opacity: 0.52;
  }
}
.tools {
  display: flex;
  align-items: center;
  gap: 12px;
}
.memory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(var(--rows), minmax(0, 1fr));
  grid-auto-flow: column;
  gap: clamp(3px, 0.65vw, 10px);
  height: min(calc(100svh - 176px), calc(var(--rows) * 14.5vw));
  min-height: calc(var(--rows) * 52px);
}
body.game #app {
  padding-top: 16px;
  padding-bottom: 14px;
}
.question {
  max-width: 950px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.headshot {
  position: relative;
  display: block;
  background-color: #d6d9d7;
  background-position: center;
  background-size: cover;
  border: 1px solid #c9cfc9;
  border-radius: 6px;
  overflow: hidden;
  width: min(100%, clamp(255px, 49vh, 485px));
  aspect-ratio: 2.3;
}
.headshot .portrait {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;
}
.question h2 {
  font: 700 clamp(21px, 2.8vw, 42px)/1.13 var(--serif);
  letter-spacing: -0.035em;
}
.question .actions {
  justify-content: center;
}
.hint {
  min-height: 20px;
  font-size: 15px;
  color: var(--muted);
}
.buzz {
  background: var(--team, #5b6678);
  border-radius: 16px;
  box-shadow:
    inset 0 -5px 0 #0003,
    0 4px 0 #0001;
  color: white;
  min-width: 180px;
  font-weight: 800;
  font-size: 22px;
  padding: 12px 25px 16px;
}
.buzz span {
  display: block;
  font-size: 17px;
  letter-spacing: 4px;
  margin-bottom: 2px;
}
.openalert {
  font-weight: 750;
  color: var(--red);
  min-height: 21px;
}
.answer-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: left;
}
.answer-grid label,
.field-title {
  display: block;
  font-size: 14px;
  font-weight: 750;
  margin-bottom: 5px;
}
.answer-grid input,
.bonusinput {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 20px;
  background: #fffefa;
}
.choice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}
.option {
  padding: 8px 5px;
  overflow-wrap: anywhere;
}
.option.selected {
  background: var(--ink);
  color: #fff;
}
.option:disabled {
  opacity: 0.76;
}
.bonuschoices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.bonuschoices .option {
  min-width: 86px;
  padding: 10px;
}
.bonuschoices .headshot-mini {
  width: clamp(96px, 17vh, 148px);
}
.memberBtn {
  background: #fffefa;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
}
.center {
  max-width: 800px;
  text-align: center;
  margin: clamp(22px, 7vh, 90px) auto;
}
.center .kicker,
.center .actions {
  justify-content: center;
}
.center h2 {
  margin: 12px 0 20px;
}
.center .subtitle {
  margin: 10px auto;
}
.center .primary {
  margin-top: 14px;
}
.result-rows,
.scores {
  display: grid;
  gap: 8px;
  max-width: 670px;
  margin: 18px auto;
}
.result-row,
.score-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  border: 1px solid var(--line);
  background: #fffefa;
  border-radius: 4px;
  padding: 10px 14px;
}
.result-row .subtle {
  font-size: 14px;
}
.result-row strong {
  font-size: 19px;
}
.score-row {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.score-row:before {
  content: "";
  background: var(--team);
  opacity: 0.14;
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--share);
  z-index: -1;
}
.score-left {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-wrap: anywhere;
}
.rank {
  font: 700 21px var(--mono);
  width: 32px;
}
.score-row b:last-child {
  white-space: nowrap;
}
.champions {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
}
.champions .crest {
  width: 70px;
  height: 70px;
  font-size: 40px;
}
.champions strong {
  display: block;
  font: 700 36px var(--serif);
  margin: 8px;
}
dialog {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 26px;
  max-width: min(570px, 94vw);
  max-height: 86svh;
  box-shadow: 0 18px 65px #15253644;
}
dialog::backdrop {
  background: #101d30aa;
}
.dialog-close {
  float: right;
  background: transparent;
  font-size: 25px;
}
.dialog-title {
  font: 700 32px var(--serif);
  margin-bottom: 16px;
}
dialog section + section {
  margin-top: 14px;
}
dialog p,
dialog li {
  line-height: 1.45;
}
dialog ol {
  padding-left: 20px;
}
dialog li {
  margin: 6px 0;
}
.binding {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 8px 0;
}
.binding .secondary {
  padding: 7px 10px;
}
.dialog-actions {
  margin-top: 15px;
}
#notice {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  border-radius: 5px;
  background: var(--ink);
  color: white;
  padding: 12px 20px;
  max-width: 90vw;
}
.lobby-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 18px 0;
}
.lobby-list > div {
  display: flex;
  gap: 8px;
  align-items: center;
}
.winner-icon {
  font-size: 44px;
}
@media (min-width: 1000px) and (max-height: 760px) {
  .mast-inner {
    padding-top: 9px;
    padding-bottom: 9px;
  }
  .question {
    gap: 7px;
  }
  .headshot {
    width: min(100%, clamp(255px, 46vh, 405px));
  }
  .answer-grid .option {
    padding: 5px;
  }
  .memory {
    height: min(calc(100svh - 150px), calc(var(--rows) * 14.5vw));
  }
}
@media (max-width: 720px) {
  .mast-inner {
    padding: 11px 16px;
  }
  .brand {
    gap: 8px;
  }
  .brand span {
    font-size: 9px;
  }
  .mast nav {
    gap: 2px;
  }
  .quiet {
    font-size: 12px;
  }
  .hero {
    grid-template-columns: 1fr 0.72fr;
    min-height: 50vh;
  }
  .hero-text {
    padding: 24px 9px 20px 0;
  }
  .hero .actions {
    margin: 14px 0 20px;
  }
  .hero-meta {
    gap: 6px;
    font-size: 10px;
  }
  .hero h1 {
    font-size: clamp(37px, 8vw, 56px);
    margin: 12px 0;
  }
  .hero .subtitle {
    font-size: 15px;
  }
  .screen {
    min-height: 245px;
  }
  .screen video {
    max-height: 460px;
    min-height: 200px;
  }
  .setup {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .setup aside {
    padding: 15px;
  }
  .sample {
    height: 110px;
  }
  .section-title {
    margin-bottom: 15px;
  }
  .tools {
    gap: 5px;
  }
  .playbar .left {
    gap: 5px;
  }
  .answer-grid {
    gap: 5px;
  }
  .choice-list {
    grid-template-columns: 1fr;
  }
  .score-row,
  .result-row {
    padding: 8px;
  }
  .memory {
    gap: 3px;
  }
  .caption {
    left: 2%;
    bottom: 3%;
  }
  .caption strong {
    font-size: 13px;
  }
  .caption span {
    font-size: 10px;
  }
  .memory .identity .portrait {
    height: min(100%, 18vw);
  }
  .answer-grid input {
    font-size: 16px;
    padding: 6px;
  }
  .team-list {
    gap: 5px;
  }
}
@media (max-width: 460px) {
  #app {
    padding: 15px 10px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .screen {
    min-height: 200px;
  }
  .screen video {
    max-height: 34svh;
    height: 34svh;
  }
  .hero-text {
    padding: 18px 4px;
  }
  .hero h1 br {
    display: none;
  }
  .hero h1 em:before {
    content: " ";
  }
  .hero .actions {
    margin: 12px 0;
  }
  .question .headshot:not(.headshot-mini) {
    width: min(100%, 275px);
  }
  .answer-grid {
    grid-template-columns: 1fr;
  }
  .answer-grid .choice-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .answer-grid .option {
    font-size: 12px;
    min-height: 35px;
  }
  .caption strong {
    font-size: 11px;
  }
  .caption span {
    font-size: 9px;
  }
  .memory {
    min-height: calc(var(--rows) * 70px);
  }
  .memory .identity .portrait {
    bottom: auto;
    top: 0;
  }
  .statusline {
    font-size: 10px;
  }
  .timer {
    font-size: 36px;
  }
  .playbar .secondary {
    padding: 7px;
  }
  .team-edit {
    padding: 4px;
  }
  .crest {
    width: 29px;
    height: 29px;
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
  }
}

.hat {
  display: inline-block;
  position: relative;
  width: 1.2em;
  height: 1em;
  vertical-align: middle;
  background: linear-gradient(160deg, #f8df9b 10%, #b986de 65%, #452960 66%);
  clip-path: polygon(
    2% 85%,
    24% 74%,
    49% 4%,
    70% 10%,
    58% 18%,
    78% 75%,
    97% 85%,
    88% 98%,
    8% 97%
  );
}
.hat:after {
  content: "";
  background: #f5c85c;
  position: absolute;
  left: 31%;
  right: 27%;
  top: 66%;
  height: 10%;
}
.crest.team2,
.buzz.team2 {
  background: #f1be3c;
  color: #372a09;
}
.online-note {
  margin: 12px 0;
  font-size: 14px;
}
.server-link {
  display: block;
  text-align: center;
  text-decoration: none;
}
.bonusinput {
  max-width: 420px;
}
.openalert:empty,
.hint:empty {
  display: none;
}
body:has(.memory) {
  height: 100svh;
  display: flex;
  flex-direction: column;
}
body:has(.memory) #app {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  width: 100%;
}
body:has(.memory) .playbar {
  flex: none;
}
body:has(.memory) .memory {
  flex-shrink: 1;
  min-height: 0;
}

.playbar .action-clock { display: inline; padding: 0; min-width: 0; background: transparent; border: 0; font: inherit; white-space: nowrap; }

.bonus-recap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; margin: 24px auto; }
.bonus-recap h3 { grid-column: 1 / -1; }
.bonus-recap .headshot { width: min(100%, 180px); margin: 8px auto; }

/* Une du flash spécial */
body:has(.hero) {
  --une-unit: min(1vw, 1.74svh);
  --ink: #091e39;
  --red: #a31e24;
  --paper: #f8f0e4;
  position: relative;
  background: var(--paper) url("une/papier.webp") repeat;
  padding: 0 calc(2.65 * var(--une-unit)) calc(2.4 * var(--une-unit));
}
body:has(.hero)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: min(calc(34.2 * var(--une-unit)), 572px);
  aspect-ratio: 572 / 103;
  background: url("une/edition.png") left bottom / contain no-repeat;
  pointer-events: none;
}
body:has(.hero) .mast { background: transparent; border-bottom: 0; }
body:has(.hero) .mast-inner {
  max-width: min(1800px, calc(94.7 * var(--une-unit))); min-height: 40px; height: calc(4.75 * var(--une-unit));
  padding: 0 calc(.9 * var(--une-unit)); border-bottom: 2px solid var(--ink);
}
body:has(.hero) .brand b { font-size: clamp(25px, calc(2.2 * var(--une-unit)), 42px); padding: calc(.4 * var(--une-unit)) calc(.8 * var(--une-unit)); }
body:has(.hero) .brand span { font-size: clamp(11px, calc(1.15 * var(--une-unit)), 20px); }
body:has(.hero) .quiet { font-size: clamp(14px, calc(1.32 * var(--une-unit)), 24px); }
body:has(.hero) .quiet#fullscreen { font-size: 1.75em; }
#app:has(.hero) { max-width: min(1800px, calc(94.7 * var(--une-unit))); padding: calc(1.2 * var(--une-unit)) 0 0; }
.hero {
  border: none; position: relative; isolation: isolate;
  grid-template-columns: minmax(0,1.55fr) minmax(0,1fr);
  gap: calc(2.65 * var(--une-unit)); min-height: 0;
}
.hero::before {
  position: absolute; content: ""; z-index: -1; top: 0; right: 38.3%;
  width: 28%; aspect-ratio: 442 / 396;
  background: url("une/globe.webp") center / contain no-repeat;
  clip-path: polygon(0 0,100% 0,100% 100%,61% 100%,62% 89%,63% 72%,48% 66%,16% 64%,10% 55%,0 55%,4% 36%,0 34%);
  mix-blend-mode: multiply;
}
.hero-text { align-self: center; padding: calc(1 * var(--une-unit)) 0 calc(2.8 * var(--une-unit)) calc(1.35 * var(--une-unit)); }
.hero .kicker { color: #a91c23; font-size: clamp(13px, calc(1.2 * var(--une-unit)), 21px); letter-spacing: .18em; gap: calc(1 * var(--une-unit)); }
.hero .kicker::before { width: calc(3.1 * var(--une-unit)); height: calc(.32 * var(--une-unit)); }
.hero h1 { margin: calc(1.5 * var(--une-unit)) 0 calc(1.8 * var(--une-unit)); font-size: clamp(64px, calc(8.65 * var(--une-unit)), 154px); line-height: .94; letter-spacing: -.048em; }
.hero h1 em { color: #ac131b; white-space: nowrap; }
.hero h1 br { display: initial; }
.hero h1 em::before { content: none; }
.hero .subtitle {
  max-width: none; margin: 0; padding-left: calc(1.65 * var(--une-unit)); border-left: calc(.35 * var(--une-unit)) solid #ac222a;
  font-size: clamp(17px, calc(1.64 * var(--une-unit)), 30px); line-height: 1.34; color: #392f44;
}
.hero .actions { margin: calc(3.05 * var(--une-unit)) 0 calc(2.25 * var(--une-unit)); gap: clamp(10px, calc(1.6 * var(--une-unit)), 26px); }
.hero .actions button { padding: calc(1.08 * var(--une-unit)) calc(1.75 * var(--une-unit)); font-size: clamp(15px, calc(1.53 * var(--une-unit)), 28px); border-radius: calc(.55 * var(--une-unit)); }
.hero .actions .primary { font-size: clamp(19px, calc(1.85 * var(--une-unit)), 32px); min-width: calc(14 * var(--une-unit)); }
.hero .primary::before { content: ""; display: inline-block; border: .38em solid transparent; border-left: .65em solid; border-right: 0; margin-right: .65em; }
.hero .secondary { background: #fffbf580; border-color: #b6a99b; }
.hero .link { padding-inline: calc(.9 * var(--une-unit)); }
.hero-meta { align-items: center; justify-content: space-evenly; flex-wrap: nowrap; gap: 0; padding: calc(1.5 * var(--une-unit)) 0 0; color: var(--ink); font: 650 clamp(12px,calc(1.29 * var(--une-unit)),23px)/1.3 var(--sans); }
.hero-meta span { flex: 1; display: flex; align-items: center; justify-content: center; gap: calc(1 * var(--une-unit)); }
.hero-meta span + span { border-left: 1px solid #82909e; }
.hero-meta span::before { content: ""; width: calc(2.65 * var(--une-unit)); height: calc(2.3 * var(--une-unit)); background: center / contain no-repeat; mix-blend-mode: multiply; }
.hero-meta span:nth-child(1)::before { background-image: url("une/joueurs.webp"); }
.hero-meta span:nth-child(2)::before { background-image: url("une/manches.webp"); }
.hero-meta span:nth-child(3)::before { background-image: url("une/niveaux.webp"); }
.hero .screen {
  align-self: center; background: #071b36; min-height: 0;
  height: min(calc(48 * var(--une-unit)), 83svh, 900px); padding: calc(2 * var(--une-unit)) calc(1 * var(--une-unit));
}
.hero .screen::before { display: block; inset: calc(1 * var(--une-unit)); border: 1px solid #87909e; z-index: 2; }
.hero .screen::after { display: none; }
.hero .screen video { min-height: 0; max-height: 100%; width: auto; max-width: 100%; height: 100%; aspect-ratio: 9/16; object-fit: contain; }
@media (max-width: 800px) and (orientation: portrait) {
  body:has(.hero) { padding: 0 4vw 60px; }
  body:has(.hero)::after { width: 210px; }
  #app:has(.hero) { padding-top: 18px; }
  .hero { grid-template-columns: minmax(0,1fr); gap: 26px; }
  .hero::before { width: 45%; right: 0; }
  .hero-text { padding: 0; }
  .hero h1 { font-size: clamp(56px, 12vw, 96px); margin: 14px 0; }
  .hero .subtitle { font-size: 17px; padding-left: 12px; border-left-width: 3px; }
  .hero .actions { margin: 19px 0; gap: 8px; }
  .hero .actions button { padding: 10px 12px; font-size: 15px; border-radius: 5px; }
  .hero-meta { padding-top: 13px; }
  .hero-meta span::before { width: 20px; height: 20px; }
  .hero .screen { width: min(100%, 460px); height: auto; margin: auto; padding: 16px; }
  .hero .screen video { width: min(100%, 310px); height: auto; }
  .hero .screen::before { inset: 7px; }
}


@media (max-width: 800px) and (orientation: portrait) {
  body:has(.hero) { min-height: 100svh; display: flex; flex-direction: column; padding-bottom: 32px; }
  body:has(.hero) .mast-inner, #app:has(.hero) { max-width: none; width: 100%; }
  #app:has(.hero) { display: flex; flex: 1; padding-top: min(2svh, 15px); }
  .hero { width: 100%; grid-template-rows: auto minmax(160px, 1fr); gap: min(1.5svh, 12px); }
  .hero h1 { font-size: clamp(40px, min(12vw, 6.8svh), 76px); margin: 8px 0; }
  .hero .subtitle { font-size: clamp(14px, 2svh, 17px); }
  .hero .actions { margin: min(1.6svh, 12px) 0; }
  .hero-meta { padding-top: 8px; }
  .hero .screen { align-self: stretch; width: 100%; padding: 8px; margin: 0; }
  .hero .screen video { position: absolute; inset: 8px 0; margin: auto; width: auto; height: calc(100% - 16px); }
  body:has(.hero)::after { width: 165px; }
}
@media (orientation: landscape) and (max-height: 540px) {
  .hero h1 { font-size: min(8vw, 14svh); margin-block: 1svh; }
  .hero .subtitle { font-size: clamp(12px, 3.3svh, 16px); }
  .hero .actions { margin: 2svh 0; gap: 5px; }
  .hero .actions button { padding: 6px 9px; font-size: 13px; }
  .hero-meta { font-size: 11px; }
}
@media (max-width: 800px) and (orientation: portrait) and (max-height: 700px) {
  .hero h1 { font-size: min(9.1vw, 42px); }
  .hero h1 br { display: none; }
  .hero h1 em::before { content: " "; }
  .hero .actions { display: grid; grid-template-columns: .75fr 1fr 1fr; }
  .hero .actions button { min-width: 0; height: 100%; padding: 5px; font-size: 14px; }
}

/* Préparation de la partie, en double page de journal. */
body:has(.press-setup) {
  --ink: #0a2343;
  --press-red: #a72121;
  --spread: min(100%, 184svh, 1800px);
  background: #f2e9db url("une/papier.webp");
  color: var(--ink);
}
body:has(.press-setup) .mast {
  width: var(--spread); margin: auto; position: relative; aspect-ratio: 1672 / 250;
  border: 0; background: url("une/journal.webp") center / 100% 100% no-repeat;
}
body:has(.press-setup) .mast-inner { max-width: none; justify-content: flex-end; padding: .9% 2%; }
body:has(.press-setup) .mast .brand { position: absolute; clip-path: inset(50%); }
body:has(.press-setup) .mast nav { gap: 8px; }
body:has(.press-setup) .quiet { background: #fbf6ed; border: 1.5px solid; border-radius: 7px; font: bold clamp(13px,1.3vw,22px) Georgia,serif; padding: .35em .7em; }
#app:has(.press-setup) { width: var(--spread); max-width: none; margin: auto; padding: .5vw 1vw 1vw; }
.press-setup { display: grid; grid-template-columns: minmax(0,1.31fr) minmax(0,1fr); gap: .9%; align-items: stretch; font-family: Georgia,serif; }
.press-setup .press-sheet {
  min-width: 0; margin: 0; align-self: stretch; border: 1px solid #cdbca5; border-radius: 8px 14px 6px 10px;
  padding: clamp(10px,1.1vw,19px); background: #f9f2e6 url("une/papier.webp");
  box-shadow: inset 0 0 0 4px #fff9, inset 0 0 17px #b18c5f44, 1px 4px 6px #50311e4a;
}
.press-setup .ribbon { display: inline-block; color: white; font: italic bold clamp(23px,min(2.7vw,5svh),46px)/1 Georgia,serif;
  background: linear-gradient(171deg,#bf3732,#941919 70%); clip-path: polygon(3% 0,100% 0,96% 100%,0 100%);
  margin: 0; padding: .12em .95em .18em; letter-spacing: -.04em; }
.press-row { display: grid; grid-template-columns: minmax(128px,37%) minmax(0,1fr); gap: 7px; align-items: center;
  border-bottom: 1px solid #cabba7; padding: clamp(8px,min(1.15vw,2svh),19px) 0; }
.press-label { position: relative; padding-left: clamp(32px,4.5vw,76px); }
.press-label::before { content: ""; position: absolute; left: 1%; top: 50%; transform: translateY(-50%); width: 18%; height: 90%; background: url("une/groupe.webp") center/contain no-repeat; mix-blend-mode: multiply; }
.teams-row .press-label::before { background-image: url("une/drapeau.webp"); }
.level-row .press-label::before { background-image: url("une/degre.webp"); }
.press-label b,.press-label em { display: block; }
.press-label b { font-size: clamp(15px,min(1.45vw,2.8svh),25px); }
.press-label em { font-size: clamp(12px,1.05vw,18px); line-height: 1.25; margin-top: 3px; }
.press-setup .segments { display: flex; flex-wrap: nowrap; gap: clamp(2px,.35vw,7px); }
.press-setup .segment { min-width: 0; flex: 1; padding: .46em .15em; background: linear-gradient(#fffaf1,#e8ded0); border: 1px solid #c8bcac; border-radius: 7px; color: #122442; box-shadow: 0 2px 3px #76594233; font: bold clamp(14px,min(1.35vw,2.7svh),23px)/1.12 Georgia,serif; }
.press-setup .mode-row .segment:first-child { flex: 1.45; }
.press-setup .segment[aria-pressed=true] { color: white; border-color: #173453; background: linear-gradient(#244667,#081d38); }
.press-setup .teams-row .segment { display: grid; justify-items: center; align-content: center; gap: 3px; padding: .4em 1px; font-size: clamp(10px,.82vw,14px); overflow-wrap: anywhere; }
.press-setup .teams-row .segment span { max-width: 100%; }
.press-setup .teams-row .segment[aria-pressed=true] { background: #fff8eb; color: #861a16; outline: 2px solid #ac2624; outline-offset: -2px; }
.press-setup .crest { width: clamp(24px,2.7vw,44px); height: clamp(24px,2.7vw,44px); font-size: clamp(15px,1.6vw,28px); }
.level-row { border: 0; }
.level-row .segment[aria-pressed=true] { background: linear-gradient(#c73330,#981a19); border-color: #9d2725; }
.press-profiles { display: flex; justify-content: space-between; border-top: 2px solid #a39b96; margin-top: 8px; }
.press-profiles .segment { flex: none; box-shadow: none; padding: 4px 8px; border: 0; border-radius: 0 0 4px 4px; font: italic 600 clamp(12px,1vw,17px) Georgia,serif; }
.level-note { display: flex; gap: 3%; align-items: center; margin: 0 4% 8px; background: #d9c5a85c; border-radius: 10px; padding: .6em 3%; font-size: clamp(13px,1.12vw,19px); font-style: italic; }
.level-note > b { text-align: center; padding-right: 5%; border-right: 1px solid #967f62; font-style: normal; }
.level-note strong { display: block; font: bold 1.9em/1 Georgia,serif; }
.level-note div b { font-size: 1.3em; }
.press-setup summary { cursor: pointer; font-weight: bold; text-decoration: underline; padding: 5px; }
#advanced { position: relative; }
#advanced > div {
  position: absolute; bottom: 100%; left: 0; right: 0; z-index: 5;
  display: grid; gap: 8px; padding: 12px; max-height: 38dvh; overflow: auto;
  background: #fbf6eb; border: 1px solid #bcac94; border-radius: 8px;
  box-shadow: 0 3px 12px #34231433;
}
.press-byline { display: flex; justify-content: space-between; align-items: center; gap: 6px; border-bottom: 3px solid #991c20; margin-bottom: 6px; }
.press-byline .ribbon { font-size: clamp(20px,1.85vw,30px); text-transform: uppercase; }
.press-byline time { font-style: italic; font-size: clamp(12px,1.02vw,18px); }
.press-setup .sample { height: auto; aspect-ratio: 2.22; border-radius: 0; margin: 0; }
.press-setup .sample::before { display: none; }
.press-setup .sample .portrait { right: 6%; }
.press-setup .sample .caption strong { font-size: clamp(20px,2.8vw,49px); }
.press-setup .sample .caption span { font-size: clamp(12px,1.45vw,24px); }
.press-setup .facts { display: grid; grid-template-columns: repeat(4,1fr); margin: 2.5% 0 4%; text-align: center; }
.press-setup .facts div { display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 4px; padding: 0 7px; border: 0; }
.press-setup .facts div + div { border-left: 1px solid #c2ac91; }
.press-setup .facts dt { max-width: 10ch; color: var(--ink); font-size: clamp(12px,1.05vw,19px); }
.press-setup .facts dd { font: bold clamp(22px,2vw,34px)/1 Georgia,serif; }
.press-setup aside .primary { display: block; width: 92%; margin: auto; padding: .6em; background: linear-gradient(#c8322e,#971815); box-shadow: 0 4px 0 #731419; border-radius: 12px; font: bold clamp(19px,1.95vw,33px)/1.1 var(--sans); text-align: center; }
@media (max-width: 850px) {
  body:has(.press-setup) { --spread: 100%; }
  body:has(.press-setup) .mast-inner { padding: 0 1%; }
  body:has(.press-setup) .quiet { font: bold clamp(9px,1.65vw,14px) Georgia,serif; padding: .25em .5em; }
  .press-setup { grid-template-columns: minmax(0,1fr); gap: 12px; }
  #app:has(.press-setup) { padding: 8px 2vw 16px; }
  .press-label { padding-left: 32px; }
  .press-label::before { width: 26px; }
  .press-row { grid-template-columns: 34% minmax(0,1fr); }
}
@media (max-width: 560px) {
  .press-row { grid-template-columns: 1fr; }
  .press-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
  .press-setup .teams-row .segment { font-size: 10px; }
  body:has(.press-setup) .mast nav { gap: 2px; }
}
body:has(.press-setup) #fullscreen { display: none; }

.press-setup .facts dt::before { content: ""; display: block; margin: 0 auto .2em; width: 2em; height: 1.7em; background: center / contain no-repeat; mix-blend-mode: multiply; }
.press-setup .facts div:nth-child(1) dt::before { background-image: url("une/fiche.webp"); }
.press-setup .facts div:nth-child(2) dt::before { background-image: url("une/question.webp"); }
.press-setup .facts div:nth-child(3) dt::before { background-image: url("une/reponses.webp"); }
.press-setup .facts div:nth-child(4) dt::before { background-image: url("une/bonus.webp"); }
@media (min-width: 851px) and (max-height: 800px) {
  .press-row { padding-block: min(.8vw,1.3svh); }
  .press-label { padding-left: min(4vw,6svh); }
  .press-setup .press-sheet { padding-block: min(1vw,1.6svh); }
  .press-setup .facts { margin-bottom: 2.4%; }
}
@media (max-width: 850px) and (orientation: landscape) {
  .press-setup {grid-template-columns:minmax(0,1.31fr) minmax(0,1fr)}
  .press-row {grid-template-columns:1fr 1.65fr;padding-block:4px}
  .press-label em {display:none}
}
@media (max-width: 850px) and (orientation: portrait) {
  #app:has(.press-setup) {padding-block:4px}
  .press-setup {gap:5px}
  .press-setup .press-sheet {padding:6px 9px}
  .press-setup .ribbon {font-size:clamp(17px,2.8dvh,25px)}
  .press-row {padding:4px 0;gap:3px}
  .press-label b {font-size:14px}
  .press-label em {display:none}
  .press-setup .segment {padding:.28em .1em}
  .press-setup .sample {height:clamp(66px,16dvh,180px);aspect-ratio:auto}
  .press-setup .facts {margin:4px 0}
  .press-setup .facts div {gap:0}
  .press-setup .facts dt::before {display:none}
  .press-setup .facts dd {font-size:17px}
  .press-setup aside .primary {padding:6px;font-size:18px}
  .press-setup .level-note {margin:2px 0;padding:3px 8px;font-size:12px}
  .press-setup .level-note strong {display:inline;font-size:1.2em;margin-left:4px}
}
.press-setup {margin-inline:auto}
@media (max-height:750px) {
  .press-setup #advanced[open] > div {max-height:20dvh; overflow:auto}
}

@media (max-width:720px) and (orientation:portrait) {
  body:has(.memory) .memory { height: min(100%,calc(var(--rows) * 31vw)); }
  .memory .caption { max-width: 62%; --fade: .48em; }
}
@media (max-width: 380px) and (max-height: 650px) {
  body:has(.memory) .mast-inner { padding-block: 3px; }
  body:has(.memory) #app { padding-block: 3px; }
  body:has(.memory) .playbar { padding-block: 0; margin-bottom: 4px; }
  body:has(.memory) .playbar h2 { font-size: 18px; }
  body:has(.memory) .timer { font-size: 24px; }
  .memory .caption { bottom: 1%; line-height: 1; }
  .memory .caption > * { padding-block: 0; }
}

body:not(:has(.hero, .press-setup)) #help { display: none; }

body:has(.memory) {
  --ink: #0b2545;
  background: #f6edde url("une/papier.webp");
}
body:has(.memory) .mast {
  flex: none;
  margin: 0 2.2vw;
  background: transparent;
  border: 0;
  border-bottom: clamp(4px,.6vw,10px) double var(--ink);
}
body:has(.memory) .mast-inner {
  padding: 0;
  max-width: none;
}
body:has(.memory) .brand b {
  width: clamp(78px,min(14vw,25svh),240px);
  aspect-ratio: 240 / 81;
  background: url("une/memo-logo.webp") center/contain no-repeat;
  color: transparent;
}
body:has(.memory) .brand span {
  border-left: 2px solid; padding-left: 1.2vw;
  font: bold clamp(10px,1.32vw,24px)/1.45 Georgia,serif;
  letter-spacing: .025em;
}
body:has(.memory) #fullscreen { border: 2px solid; padding: .12em .32em; border-radius: .3em; }
body:has(.memory) #app { max-width: none; padding: min(1vw,1.7svh) 3.2vw min(2vw,3.8svh); }
body:has(.memory) .playbar {
  padding: 0 1vw min(1.1vw,2svh); margin-bottom: min(1.2vw,2.2svh);
  border-bottom: clamp(2px,.27vw,5px) solid var(--ink);
}
body:has(.memory) .statusline { color: #9e2324; letter-spacing: .14em; font-size: clamp(11px,1.1vw,20px); }
body:has(.memory) .statusline::before { content: ""; display: inline-block; vertical-align: middle; width: 3vw; height: .22em; background: currentColor; margin-right: 1vw; }
body:has(.memory) .playbar h2 { font: bold italic clamp(24px,min(4.7vw,8.5svh),86px)/1 Georgia,serif; letter-spacing: -.045em; }
body:has(.memory) .timer { font: bold italic clamp(30px,min(6.5vw,12svh),120px)/1 Georgia,serif; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
body:has(.memory) .memory { gap: clamp(3px,.65vw,12px); }
.memory .identity { border: clamp(1px,.24vw,4px) solid #f8efe1; border-radius: clamp(4px,.7vw,12px); box-shadow: 0 2px 5px #54391f55; }
@media(max-width:720px), (max-height:480px) {
  body:has(.memory) #app {padding: 4px 2vw 6px;}
  body:has(.memory) .mast {border-bottom-width:4px;}
  body:has(.memory) .mast-inner {min-height:0;}
  body:has(.memory) .playbar {margin-bottom:5px;padding-bottom:4px;}
  body:has(.memory) .brand span {display:inline;}
}

.memory-page {
  flex: 1;
  min-height: 0;
  container-type: size;
  display: flex;
  flex-direction: column;
  --row-gap: clamp(3px,.65vw,12px);
  --preferred-row: 14.5vw;
  --heading-gap: min(1.2vw,2.2svh);
}
.memory-page > .playbar {
  /* Reserve one equal share for the heading and one for each portrait row. */
  --row-limit: min(var(--preferred-row), calc((100cqh - var(--heading-gap) - (var(--rows) - 1) * var(--row-gap)) / (var(--rows) + 1) - 1px));
  box-sizing: border-box;
  max-height: var(--row-limit);
}
body:has(.memory) .memory-page .playbar {
  margin-bottom: var(--heading-gap);
  padding-bottom: min(1.1vw,calc(.09 * var(--row-limit)));
}
body:has(.memory) .memory-page .statusline {
  font-size: min(clamp(11px,1.1vw,20px),calc(.16 * var(--row-limit)));
  line-height: 1;
  margin-bottom: min(5px,calc(.04 * var(--row-limit)));
}
body:has(.memory) .memory-page h2 {
  font-size: min(clamp(24px,min(4.7vw,8.5svh),86px),calc(.58 * var(--row-limit)));
}
body:has(.memory) .memory-page .timer {
  font-size: min(clamp(30px,min(6.5vw,12svh),120px),calc(.80 * var(--row-limit)));
}
body:has(.memory) .memory-page .memory {
  gap: var(--row-gap);
  height: calc(var(--rows) * var(--preferred-row) + (var(--rows) - 1) * var(--row-gap));
}
@media (max-width:720px) and (orientation:portrait) {
  .memory-page { --preferred-row: 31vw; --heading-gap: 5px; }
}
/* Transition avant la première manche. */
body:has(.ready-page) {display:flex; flex-direction:column; min-height:100svh; background:#f7efe2 url("une/papier.webp");color:#0c2847;}
body:has(.ready-page) .mast {margin:0 2vw;background:transparent;border-bottom:6px double currentColor;}
body:has(.ready-page) .mast-inner {max-width:none;padding:0;min-height:0;}
body:has(.ready-page) .brand b {width:clamp(72px,min(14vw,23svh),235px);aspect-ratio:240/81;color:transparent;background:url("une/memo-logo.webp") center/contain no-repeat;}
body:has(.ready-page) .brand span {border-left:2px solid;padding-left:1vw;font:bold clamp(10px,1.2vw,21px) Georgia,serif;}
body:has(.ready-page) #app {width:100%;max-width:none;flex:1;display:flex;padding:0;}
.ready-page {isolation:isolate;position:relative;width:100%;display:grid;grid-template-rows:auto 1fr auto;align-items:center;text-align:center;font-family:Georgia,serif;padding:clamp(10px,3svh,32px) 2vw 0;background:url("une/ready-left.webp") left top / 12% auto no-repeat,url("une/ready-right.webp") right top / 21.5% auto no-repeat;}
.ready-page::after {content:"";position:absolute;bottom:0;right:0;width:17%;aspect-ratio:290/180;background:url("une/ready-corner.webp") right bottom/contain no-repeat;pointer-events:none;}
.ready-page header p {display:flex;justify-content:center;align-items:center;gap:1em;color:#a32124;text-transform:uppercase;font-size:clamp(14px,1.8vw,30px);font-weight:bold;letter-spacing:.16em;}
.ready-page header p::before,.ready-page header p::after {content:"";width:2em;border-top:4px solid;}
.ready-page h2 {margin:.08em 0;font:bold clamp(38px,min(7.5vw,14svh),136px)/1.1 Georgia,serif;letter-spacing:-.05em;}
.ready-page h2 em {font-style:normal;text-decoration:underline;text-decoration-color:#ac2525;text-underline-offset:.11em;text-decoration-thickness:.04em;}
.ready-steps {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:80%;margin:auto;background:#fff7eb url("une/papier.webp");border:4px solid #fff6e7;border-radius:10px;box-shadow:0 5px 10px #634c3460;padding:1.35vw 0;}
.ready-steps div {display:grid;justify-items:center;align-content:start;gap:.35em;padding:0 1.3em;font:bold clamp(15px,min(2.25vw,4.4svh),40px)/1.12 Georgia,serif;}
.ready-steps div + div,.ready-page footer span + span {border-left:1px solid #bba284;}
.ready-steps div::before {content:"";width:2em;height:1.75em;background:center/contain no-repeat;mix-blend-mode:multiply;}
.ready-steps div:nth-child(1)::before {background-image:url("une/joueurs.webp");}
.ready-steps div:nth-child(2)::before {background-image:url("une/ready-cup.webp");}
.ready-steps div:nth-child(3)::before {background-image:url("une/bonus.webp");}
.ready-page footer {display:flex;justify-content:center;padding:1.3vw 0;border-top:2px solid;font-size:clamp(13px,1.6vw,26px);font-weight:bold;}
.ready-page footer span {padding:.2em 2vw;}
@media(max-width:600px) and (orientation:portrait){
.ready-page {background-size:15% auto,22% auto;}
.ready-page header {padding-top:4svh;}
.ready-steps {grid-template-columns:1fr;width:87%;padding:0 12px;}
.ready-steps div {grid-template-columns:2em 1fr;align-items:center;text-align:left;padding:.85em .45em;}
.ready-steps div + div {border:0;border-top:1px solid #c9b79e;}
.ready-page footer {padding:12px 0 7vw;}
.ready-page::after {width:11%;}
}

body:has(.pause-page) {
  --ink: #0c2544;
  min-height: 100svh; display:flex; flex-direction:column;
  background:#f8f0e4 url("une/papier.webp"); color:var(--ink);
}
body:has(.pause-page) .mast { margin:0 2.5vw; background:transparent; border-bottom:2px solid var(--ink); }
body:has(.pause-page) .mast-inner { max-width:none; padding: min(1vw,1.5svh) 0; }
body:has(.pause-page) .brand b {font-size:clamp(24px,2.3vw,40px);}
body:has(.pause-page) .brand span {font-size:clamp(10px,1.05vw,19px);}
body:has(.pause-page) #fullscreen {background:#fffaf2;border:1px solid;border-radius:8px;padding:.15em .35em;}
body:has(.pause-page) #app {flex:1;display:flex;width:100%;max-width:none;padding:0;}
.pause-page {
  position:relative;isolation:isolate;flex:1;text-align:center;
  padding: min(8.6svh,6vw) 12px 14svh;
  background: url("une/pause-journal.webp") left bottom / 41.3% auto no-repeat,
              url("une/pause-paris.webp") right bottom / 42.5% auto no-repeat;
}
.pause-page::before {content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:url("une/pause-micro.webp") left bottom / contain no-repeat;
  bottom:min(17.9vw,30svh);top:auto;height:min(31.6vw,51svh);width:25%;
}
.pause-copy {width:fit-content;max-width:100%;margin:auto;}
.pause-label {display:flex;align-items:center;justify-content:center;gap:.7em;text-transform:uppercase;color:#b21f2b;font:bold clamp(13px,min(1.45vw,3svh),25px) var(--mono);letter-spacing:.09em;}
.pause-label::before,.pause-label::after {content:"";width:3em;height:.19em;background:currentColor;border-radius:2px;}
.pause-page h2 {font:bold clamp(62px,min(10.6vw,18svh),184px)/1 Georgia,serif;letter-spacing:-.05em;margin:.09em 0 0;}
.pause-page h2::after {content:"";display:block;width:2.25em;height:.16em;margin:0 auto;background:url("une/pause-trait.webp") center/contain no-repeat;}
.pause-page p {margin: min(2vw,3svh) 0 min(3vw,5svh);font:italic clamp(20px,min(2.45vw,4.6svh),43px)/1.16 Georgia,serif;}
.pause-page .primary {padding:.58em 1.65em;border-radius:.35em;background:#b81f2c;box-shadow:0 3px 4px #34231b44;color:white;font:bold clamp(19px,min(2.45vw,4.6svh),42px)/1.25 Georgia,serif;}
.pause-page .primary span {margin-right:.45em;}
.pause-page .primary:hover {background:#a11926;}
@media(max-width:600px) and (orientation:portrait) {
  .pause-page {padding-top:15svh;}
  .pause-page::before {width:16%;height:30svh;bottom:7vw;}
  .pause-page .primary {padding:.75em 1.2em;}
}
/* Scale type to the smaller viewport dimension. The sheet itself always reaches the edges. */
body:has(.ready-page,.pause-page) {
  --u:min(1vw,1.63dvh);
  height:100dvh; min-height:0;
}
body:has(.ready-page) {--u:min(1vw,1.78dvh);}
body:has(.ready-page,.pause-page) .mast {flex:none;margin-inline:2.3vw;}
body:has(.ready-page,.pause-page) .mast-inner {min-height:0;height:clamp(38px,8.2dvh,84px);padding:0;}
body:has(.ready-page,.pause-page) #app {flex:1;width:100%;min-height:0;margin:0;container-type:size;}
.pause-page,.ready-page {
  background:#f9f1e4 radial-gradient(ellipse at 50% 38%,#fbf3e8 10%,transparent 74%) center/cover;
  background-image:radial-gradient(ellipse at 50% 38%,#fbf3e8 10%,transparent 74%),url("une/papier.webp");
  background-size:cover,auto; overflow:clip;min-height:0;
}
.press-art {position:absolute;inset:0;pointer-events:none;}
.press-art i,.ready-page::before,.ready-page::after {
  position:absolute;display:block;background-repeat:no-repeat;background-size:100% 100%;
  mix-blend-mode:multiply;filter:brightness(1.12) contrast(1.28);
}
.press-news,.press-paris,.press-mic {
  mask-image:linear-gradient(to bottom,transparent,#000 6%),linear-gradient(var(--fade),#000 82%,transparent);
  mask-composite:intersect;
}
.press-news {--fade:to right;left:0;bottom:0;width:calc(41.3 * var(--u));aspect-ratio:660/300;background-image:url("une/pause-journal.webp");}
.press-paris {--fade:to left;right:0;bottom:0;width:calc(42.5 * var(--u));aspect-ratio:680/420;background-image:url("une/pause-paris.webp");}
.press-mic {--fade:to right;left:0;bottom:calc(17.6 * var(--u));width:calc(21 * var(--u));aspect-ratio:336/500;background-image:url("une/pause-micro.webp");}
.pause-page::before {content:none;}
.pause-page {padding:0;}
.pause-copy {position:absolute;inset:0;width:100%;}
.pause-label,.pause-page h2,.pause-page p,.pause-page .primary {
  position:absolute;left:50%;transform:translateX(-50%);margin:0;width:max-content;max-width:94%;
}
.pause-label {top:9.4%;font-size:clamp(11px,calc(1.45 * var(--u)),25px);}
.pause-page h2 {top:13.3%;font-size:calc(10.6 * var(--u));line-height:1;}
.pause-page h2::after {background:#bf202b;width:2.25em;height:.09em;border-radius:90% 70% 0 0;clip-path:polygon(0 78%,9% 43%,26% 17%,47% 0,69% 2%,85% 24%,100% 85%,81% 60%,44% 65%,0 100%);}
.pause-page p {top:36%;font-size:calc(2.45 * var(--u));}
.pause-page .primary {top:51%;width:calc(37.2 * var(--u));height:calc(6.1 * var(--u));padding:0;font-size:calc(2.45 * var(--u));}
.trial-complete h2 {top:14%;font-size:calc(8.7 * var(--u));}
.trial-complete h2::after {width:53%;height:.18em;margin-top:.08em;}
.trial-complete .primary {top:54%;width:calc(31 * var(--u));height:calc(7.6 * var(--u));font-size:calc(3 * var(--u));box-shadow:inset 0 -.18em #891919,0 .16em .2em #30201932;}
.trial-complete .press-art::before {
  content:"";position:absolute;inset:auto 0 0;height:15%;background:center bottom/100% 100% no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath fill='%23b51e25' d='M650 100 Q830 29 1000 6 V100Z'/%3E%3Cpath stroke='%23fff9ef' stroke-width='4' fill='%23132844' d='M0 40 Q380 108 535 90 T800 65 Q925 45 1005 50 V104 H0Z'/%3E%3C/svg%3E");
}
.ready-page {display:grid;grid-template-rows:auto minmax(0,1fr) auto;padding:2.8cqh 2vw 0;}
.ready-page::before {content:"";inset:0;pointer-events:none;background-image:url("une/ready-left.webp"),url("une/ready-right.webp");background-position:left top,right top;background-size:calc(12 * var(--u)) auto,calc(21.5 * var(--u)) auto;}
.ready-page::after {width:calc(17 * var(--u));}
.ready-page header,.ready-steps,.ready-page footer {position:relative;}
.ready-page header p {margin:0;font-size:calc(1.8 * var(--u));}
.ready-page h2 {font-size:calc(7.1 * var(--u));}
.ready-steps {width:min(80%,calc(76 * var(--u)));padding:calc(1.25 * var(--u)) 0;}
.ready-steps div {font-size:calc(2.12 * var(--u));}
.ready-page footer {padding:calc(1.3 * var(--u)) 0;font-size:calc(1.62 * var(--u));}
@media (orientation:portrait) {
  .pause-label {top:13%;font-size:clamp(12px,3.5vw,22px);}
  .pause-page h2 {top:20%;font-size:17vw;}
  .trial-complete h2 {font-size:12vw;}
  .pause-page p {top:37%;font-size:5.2vw;}
  .pause-page .primary {width:auto;height:auto;min-height:44px;padding:.65em 1.2em;font-size:5vw;}
  .ready-page header p,.ready-page footer {font-size:clamp(11px,3.25vw,22px);}
  .ready-page h2 {font-size:9vw;}
  .ready-steps {width:85%;padding:1.5vw;}
  .ready-steps div {font-size:clamp(14px,4vw,26px);}
}
.press-news {aspect-ratio:660/286;}
.press-mic {width:calc(24.4 * var(--u));aspect-ratio:390/505;}
.press-art i,.ready-page::after,.ready-steps div::before {filter:url(#press-ink);}
.ready-page::before {content:none;}
.ready-art {position:absolute;inset:0;pointer-events:none;}
.ready-art::before,.ready-art::after {
  content:"";position:absolute;top:0;bottom:0;background:top center/100% auto no-repeat;
  mix-blend-mode:multiply;filter:url(#press-ink);
  mask-image:linear-gradient(var(--fade),#000 86%,transparent);
}
.ready-art::before {left:0;width:calc(12 * var(--u));--fade:to right;background-image:url("une/ready-left.webp");}
.ready-art::after {right:0;width:calc(21.5 * var(--u));--fade:to left;background-image:url("une/ready-right.webp");}
.trial-complete .press-art::before {mask-image:linear-gradient(to right,transparent 28%,#000 40%);}
.press-mic {bottom:calc(17.1 * var(--u));}

/* Question sheet. Artwork stays on the paper edges as the playable area reflows. */
body:has(.question-sheet) {
  --qu:min(1vw,1.60dvh); color:#112c4b;
  background:#faf1e4 url("une/papier.webp");min-height:100dvh;
}
body:has(.question-sheet) .mast {margin-inline:2.6vw;border-bottom:5px double currentColor;background:transparent;}
body:has(.question-sheet) .mast-inner {max-width:none;min-height:40px;height:calc(3.85 * var(--qu));padding:0;}
body:has(.question-sheet) .brand b {
  width:clamp(84px,calc(11 * var(--qu)),190px);aspect-ratio:240/81;padding:0;color:transparent;background:url("une/memo-logo.webp") center/contain no-repeat;
}
body:has(.question-sheet) .brand span {padding-left:1vw;border-left:2px solid;font:bold clamp(10px,calc(1.25 * var(--qu)),22px) Georgia,serif;}
body.game:has(.question-sheet) #app {max-width:none;width:100%;margin:0;padding:0;}
.question-sheet {position:relative;isolation:isolate;display:flex;flex-direction:column;min-height:calc(100dvh - max(40px,3.85 * var(--qu)) - 5px);padding:0 3.45vw max(12px,3dvh);}
.question-art {position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none;}
.question-art::before,.question-art::after {
  content:"";position:absolute;background:top center/contain no-repeat;filter:url(#question-ink);opacity:.7;
}
.question-art {mix-blend-mode:multiply;}
.question-art::before {top:23%;left:0;width:calc(10 * var(--qu));aspect-ratio:1/2.6;background-image:url("une/ready-left.webp");mask-image:linear-gradient(to right,black 65%,transparent);}
.question-art::after {top:18%;right:0;width:calc(18 * var(--qu));aspect-ratio:680/420;background-image:url("une/pause-paris.webp");mask-image:linear-gradient(to left,black 72%,transparent),linear-gradient(black 67%,transparent);mask-composite:intersect;}
.question-sheet .playbar {margin:0;padding:clamp(6px,2.5dvh,30px) 0 clamp(5px,1.4dvh,18px);border-bottom:clamp(2px,.3vw,5px) solid;}
.question-sheet .statusline {font-size:clamp(11px,calc(1.18 * var(--qu)),23px);color:inherit;}
.question-sheet .playbar h2 {font:bold italic clamp(22px,calc(4 * var(--qu)),78px)/1.06 Georgia,serif;}
.question-sheet .playbar .crest {width:clamp(30px,calc(3.6 * var(--qu)),66px);height:auto;aspect-ratio:1;font-size:clamp(18px,calc(2 * var(--qu)),37px);flex:none;}
.question-sheet .tools button {color:inherit;background:#fff7eb;border:0;box-shadow:0 2px 7px #62452255;font-size:clamp(14px,calc(1.45 * var(--qu)),26px);}
.question-sheet .question {width:100%;max-width:none;flex:1;justify-content:flex-start;padding-top:clamp(10px,2.5dvh,32px);gap:clamp(8px,2.2dvh,26px);}
.question-sheet .question > .headshot {
  flex:none;width:min(90%,calc(42.3 * var(--qu)));aspect-ratio:2.2;border:clamp(2px,.35vw,6px) solid #fff6e8;border-radius:clamp(7px,1.3vw,21px);box-shadow:0 .45em .85em #4e372d55;
}
.question-sheet .question h2 {width:min(100%,calc(78 * var(--qu)));text-wrap:balance;font:bold clamp(21px,calc(3.9 * var(--qu)),70px)/1.02 Georgia,serif;letter-spacing:-.045em;}
.question-sheet .buzz {display:inline-flex;align-items:center;justify-content:center;gap:.45em;min-width:min(85%,calc(24 * var(--qu)));padding:.25em .62em;margin-top:1.8dvh;border:clamp(2px,.34vw,6px) solid #fff3e2;border-radius:.48em;box-shadow:inset 0 -.13em #0003,0 .15em .3em #50372055;font:bold italic clamp(25px,calc(3.55 * var(--qu)),64px)/1.15 Georgia,serif;}
.question-sheet .buzz span {margin:0;letter-spacing:0;font:normal .85em/1.1 sans-serif;}
.question-sheet .link {color:inherit;font-weight:750;text-decoration:underline;text-underline-offset:.18em;}
.question-sheet [data-do=pass] {margin-top:1dvh;font-size:clamp(16px,calc(1.85 * var(--qu)),32px);}
.question-sheet:not([data-phase=buzz]) .question {justify-content:center;gap:clamp(7px,1.5dvh,20px);}
.question-sheet:not([data-phase=buzz]) .question > .headshot {width:min(82%,calc(33 * var(--qu)));}
.question-sheet:not([data-phase=buzz]) .question h2 {font-size:clamp(20px,calc(2.75 * var(--qu)),48px);}
.question-sheet .answer-grid,.question-sheet .bonuschoices,.question-sheet .actions {width:min(100%,1100px);}
.question-sheet .bonusinput {max-width:28em;}
.question-sheet .option,.question-sheet .memberBtn {min-width:0;overflow-wrap:anywhere;}
@media(max-width:640px) and (orientation:portrait) {
  .question-sheet .question {padding-top:3dvh;gap:2dvh;}
  .question-sheet .question > .headshot {width:90%;}
  .question-sheet .question h2 {width:100%;font-size:clamp(24px,7.5vw,38px);}
  .question-sheet .buzz {margin-top:1dvh;min-width:52%;font-size:clamp(26px,7.6vw,40px);}
  .question-sheet .answer-grid {grid-template-columns:1fr;}
  .question-sheet .choice-list {grid-template-columns:repeat(2,minmax(0,1fr));}
  .question-sheet .question:has(.answer-grid) > .headshot {width:min(65%,32dvh);}
}
@media(orientation:landscape) and (max-height:500px) {
  .question-sheet:not([data-phase=buzz]) .question:has(> .headshot) {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);align-content:center;align-items:center;justify-items:center;}
  .question-sheet:not([data-phase=buzz]) .question:has(> .headshot) > * {grid-column:2;}
  .question-sheet:not([data-phase=buzz]) .question > .headshot:first-child {grid-column:1;grid-row:1 / span 3;width:min(100%,68dvh);}
}
.question-sheet {background:#faf1e4 url("une/papier.webp");}
.question-sheet[data-phase=buzz] .question h2 {text-wrap:wrap;}
.question-sheet[data-phase=buzz] .playbar h2 {position:relative;}
.question-sheet[data-phase=buzz] .playbar h2::after {content:"";position:absolute;bottom:-.08em;left:9%;width:38%;height:.08em;transform:rotate(-1.5deg);border-radius:80% 30%;background:#ae2427;}
.question-art::before {mask-image:linear-gradient(to right,black 65%,transparent),linear-gradient(to bottom,transparent,black 7%,black 65%,transparent 92%);mask-composite:intersect;}

/* Keep the portrait on the same axis when the answers appear. */
.question-sheet.review-sheet .question {justify-content:flex-start;gap:clamp(10px,2.1dvh,24px);}
.question-sheet.review-sheet .question > .headshot {width:min(90%,calc(42.3 * var(--qu)));}
.review-paper {
  width:min(100%,calc(60 * var(--qu)));padding:0 clamp(12px,1.6vw,28px);
  background:#fff9ef;border-block:2px solid #20364f;box-shadow:0 3px 9px #51381922;
}
.review-lines {margin:0;padding:0;list-style:none;}
.review-line {display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) auto;align-items:center;gap:clamp(8px,1.3vw,22px);padding:clamp(7px,1.1dvh,14px) 0;text-align:left;}
.review-line + .review-line,.review-note {border-top:1px solid #c9bbae;}
.review-value,.review-credit {overflow-wrap:anywhere;}
.review-value small {display:block;font:700 clamp(10px,.9vw,15px) var(--mono);text-transform:uppercase;letter-spacing:.06em;}
.review-value strong {font:bold clamp(17px,calc(1.85 * var(--qu)),32px)/1.08 Georgia,serif;}
.review-credit {display:flex;align-items:center;gap:.55em;font-size:clamp(13px,calc(1.25 * var(--qu)),22px);}
.review-credit .crest {width:1.8em;height:1.8em;flex:none;font-size:1em;}
.review-credit small {display:block;font-size:.88em;}
.review-points {white-space:nowrap;font:bold clamp(16px,calc(1.65 * var(--qu)),29px) Georgia,serif;font-variant-numeric:tabular-nums;}
.review-note {padding:.55em 0;text-align:left;font-size:clamp(12px,1vw,17px);}
@media (max-width:640px) and (orientation:portrait) {
  .question-sheet.review-sheet .question > .headshot {width:90%;}
  .review-paper {width:100%;}
  .review-credit .crest {display:none;}
}
@media (orientation:landscape) and (max-height:500px) {
  .question-sheet.review-sheet .question > .headshot:first-child {width:100%;grid-row:1;}
  .review-paper {width:100%;}
}

/* The scoreboard uses the same paper and masthead as the editorial interludes. */
body:has(.ranking-page) {
  --ru:min(1vw,1.585dvh);background:#faf2e6 url("une/papier.webp");color:#102b49;
  min-height:100dvh;display:flex;flex-direction:column;
}
body:has(.ranking-page) .mast {margin:0 1.85vw;border-bottom:clamp(2px,.27vw,5px) solid;background:transparent;}
body:has(.ranking-page) .mast-inner {max-width:none;min-height:44px;height:calc(5.1 * var(--ru));padding:0;}
body:has(.ranking-page) .brand b {border-radius:.12em;background:linear-gradient(#ce1126,#a90e23);font-size:clamp(23px,calc(2.5 * var(--ru)),46px);}
body:has(.ranking-page) .brand span {font:bold clamp(11px,calc(1.4 * var(--ru)),24px) Georgia,serif;}
body:has(.ranking-page) #app {max-width:none;width:100%;padding:0;margin:0;flex:1;display:flex;}
.ranking-page {position:relative;isolation:isolate;width:100%;display:flex;flex-direction:column;align-items:center;text-align:center;padding:4.5dvh 3vw 12.6dvh;gap:min(5.1dvh,3.3vw);}
.ranking-page::after {content:"";position:absolute;z-index:-1;pointer-events:none;inset:auto 0 0;height:15dvh;background:center bottom/100% 100% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath fill='%23ba1025' stroke='%23fffaf3' stroke-width='5' d='M440 104 C690 99 846 16 1004 9 V105Z'/%3E%3Cpath fill='%230c2949' stroke='%23fffaf3' stroke-width='6' d='M-4 41 C180 97 450 100 623 75 S900 34 1004 43 V106 H-4Z'/%3E%3C/svg%3E");}
.ranking-label {display:flex;align-items:center;justify-content:center;gap:.8em;text-transform:uppercase;color:#a81b29;font:bold clamp(11px,calc(1.5 * var(--ru)),26px) var(--mono);letter-spacing:.05em;}
.ranking-label::before,.ranking-label::after {content:"";width:3em;border-top:.16em solid;}
.ranking-page h2 {margin:.12em 0 0;font:bold clamp(32px,calc(7 * var(--ru)),125px)/1 Georgia,serif;letter-spacing:-.045em;}
.ranking-page .scores {width:min(100%,calc(68.4 * var(--ru)));max-width:none;margin:auto 0 0;gap:clamp(4px,1dvh,12px);}
.ranking-page .score-row {
  display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,2.1fr) minmax(4.3em,.54fr);gap:3.5%;align-items:center;
  min-height:clamp(30px,calc(34dvh / var(--teams)),calc(5.45 * var(--ru)));
  border:1px solid #b9ac99;border-radius:.5em;padding:.14em .55em .14em .8em;
  background:#fffbf5;box-shadow:0 2px 4px #46331e30;font:bold clamp(15px,calc(2 * var(--ru)),36px)/1.1 Georgia,serif;
}
.ranking-page .score-row::before {display:none;}
.ranking-page .score-row[data-rank="1"] {background:color-mix(in srgb,var(--team) 13%,#fffbf7);border-color:color-mix(in srgb,var(--team) 44%,white);}
.ranking-page .score-left {gap:.65em;min-width:0;}
.ranking-page .rank {width:1.5em;flex:none;font-size:1.08em;text-align:center;}
.ranking-page .crest {width:1.65em;height:1.65em;flex:none;font-size:1em;}
.ranking-page .score-track {display:block;overflow:hidden;height:.55em;border-radius:1em;background:#d3cdca;}
.ranking-page .score-track::before {content:"";display:block;width:var(--share);height:100%;background:var(--team);border-radius:inherit;}
.ranking-page .score-row > b {text-align:center;background:color-mix(in srgb,var(--team) 12%,#f6f0e7);border-radius:.45em;padding:.22em .3em;}
.ranking-page footer .primary {font:bold clamp(17px,calc(2.4 * var(--ru)),43px)/1.1 Georgia,serif;background:linear-gradient(#df263c,#af1128);padding:.54em 1.65em .68em;border:2px solid #fff6e8;border-radius:.5em;box-shadow:inset 0 -.16em #970e21,0 3px 6px #53372545;}
@media(max-width:650px) and (orientation:portrait) {
  .ranking-page {padding:5dvh 3vw 12dvh;gap:3dvh;justify-content:center;}
  .ranking-page .scores {width:100%;margin:0;}
  .ranking-page h2 {font-size:11vw;}
  .ranking-page .score-row {grid-template-columns:minmax(0,1.8fr) minmax(20px,.65fr) auto;min-height:clamp(40px,7.8dvh,66px);gap:2%;padding:.3em;}
  .ranking-page .score-left {gap:.3em;}
}
.ranking-page footer {display:grid;place-items:center;min-height:calc(5.7 * var(--ru));}
@media(orientation:landscape) and (max-height:520px) {
  .ranking-page {padding-block:1.5dvh 5dvh;gap:1.4dvh;}
  .ranking-page h2 {font-size:clamp(24px,8dvh,40px);}
  .ranking-page .scores {width:min(80%,680px);gap:3px;}
  .ranking-page .score-row {min-height:0;padding:.05em .55em;font-size:clamp(12px,3.6dvh,17px);}
  .ranking-page footer .primary {padding:.3em 1.2em .42em;}
}
.ranking-page:has(.score-row:nth-child(5)) {padding-bottom:7dvh;}
@media (max-height:520px) and (orientation:landscape) {
  .ranking-page:has(.score-row:nth-child(5)) {padding-bottom:3dvh;}
}

/* Shared layouts for a brief announcement, a room, and the final edition. */
.dispatch-page {justify-content:center;padding-block:5dvh 12dvh;}
.dispatch-page header,.dispatch-copy {width:min(100%,70rem);overflow-wrap:anywhere;}
.dispatch-page h2 {font-size:clamp(30px,calc(5.7 * var(--ru)),100px);text-wrap:balance;}
.dispatch-copy {display:grid;justify-items:center;gap:clamp(10px,3dvh,30px);}
.dispatch-copy p {max-width:44em;font:italic clamp(17px,calc(2 * var(--ru)),32px)/1.25 Georgia,serif;text-wrap:balance;}
.dispatch-copy .primary,.lobby-page .primary,dialog .primary {
  background:linear-gradient(#d62939,#ab1428);border:1px solid #fff7e9;border-radius:.5em;
  box-shadow:inset 0 -.15em #900f1f,0 3px 7px #4930213b;color:white;padding:.65em 1.3em;
  font:bold clamp(16px,calc(1.9 * var(--ru,1vw)),32px)/1.1 Georgia,serif;
}
.dispatch-copy .champions {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(8em,43%),1fr));width:min(100%,54rem);gap:.6em;}
.dispatch-copy .champions > div {background:#fff8ed;border-block:1px solid #b9a997;padding:.6em;border-radius:.4em;}
.dispatch-copy .champions .crest {width:1.7em;height:1.7em;font-size:clamp(18px,3.8dvh,36px);}
.dispatch-copy .champions strong {margin:.25em 0 0;font-size:clamp(16px,3.1dvh,26px);}
.dispatch-copy .champions:has(> :only-child) {max-width:17rem;}
.final-edition,.lobby-page {padding:clamp(9px,2.3dvh,28px) 3vw 5dvh;gap:clamp(10px,2.5dvh,28px);}
.final-edition h2,.lobby-page h2 {font-size:clamp(30px,calc(4.6 * var(--ru)),78px);overflow-wrap:anywhere;}
.final-columns,.lobby-page .setup {width:min(100%,90rem);margin-block:auto;min-width:0;}
.final-columns {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2vw;align-items:center;}
.final-edition .scores {width:100%;margin:0;}
.final-edition .score-row {grid-template-columns:minmax(0,2fr) minmax(1em,.75fr) auto;font-size:clamp(14px,1.65vw,27px);}
.final-edition .bonus-recap {width:100%;margin:0;grid-template-columns:1fr;gap:clamp(4px,.8dvh,10px);text-align:left;}
.final-edition .bonus-recap h3,.lobby-page .setup h3,dialog .dialog-title {font:bold clamp(20px,2vw,34px)/1.1 Georgia,serif;color:#122e4d;}
.final-edition .bonus-recap article,.lobby-page .setup > * {background:#fff9ef;border:1px solid #cbbdab;border-top:3px solid #192f49;border-radius:.4em;box-shadow:0 2px 6px #4c321e22;}
.final-edition .bonus-recap article {display:grid;grid-template-columns:minmax(0,1fr) minmax(5.5em,33%);align-items:center;gap:.25em .8em;padding:clamp(6px,1.4dvh,16px);}
.final-edition .bonus-recap .kicker {grid-column:1/-1;color:#9e2030;}
.final-edition .bonus-recap h4,.final-edition .bonus-recap p {margin:0;overflow-wrap:anywhere;}
.final-edition .bonus-recap h4 {font-size:clamp(13px,1.12vw,20px);}
.final-edition .bonus-recap .headshot {width:100%;margin:0;}
.final-edition .bonus-recap article:has(> .headshot) > p {grid-column:1;}
.lobby-page .setup {text-align:left;gap:2vw;}
.lobby-page .setup > * {padding:clamp(12px,2vw,28px);min-width:0;}
.lobby-page .setup input {max-width:100%;}
.lobby-page figure {margin:0;text-align:center;width:100%;}
.lobby-page figure img {width:clamp(116px,22dvh,176px);height:auto;}
.lobby-page .lobby-list strong,.lobby-page h2 {overflow-wrap:anywhere;}
dialog {background:#fff8ed url("une/papier.webp");border:1px solid #b8a78e;border-top:4px solid #102b49;}
dialog .dialog-title {padding:0 1.1em .4em 0;border-bottom:2px solid #a92232;}
@media(max-width:680px) and (orientation:portrait) {
  .final-columns,.lobby-page .setup {grid-template-columns:1fr;gap:12px;}
  .final-edition,.lobby-page {justify-content:flex-start;}
  .final-edition .score-row {min-height:30px;}
  .final-edition .bonus-recap .headshot {max-width:100px;}
}
@media(max-height:520px) and (orientation:landscape) {
  .final-edition .bonus-recap .headshot {max-width:100px;}
  .final-edition,.lobby-page {gap:5px;padding-block:5px 12px;}
}
body:has(.final-edition,.lobby-page) {height:100dvh;}
body:has(.final-edition,.lobby-page) #app {min-height:0;}
.final-edition,.lobby-page {min-height:0;}
.final-edition > header,.final-edition > footer,.lobby-page > header {flex:none;}
.final-columns,.lobby-page .setup {overflow-y:auto;min-height:0;overscroll-behavior:contain;}

/* Bonus illustrations, prompts and awards share the actual team's colours and emblem. */
.feedback-page,.winner-page {padding-top:13dvh;gap:9dvh;}
.feedback-page h2,.winner-page h2 {margin:.16em 0 0;font-size:clamp(44px,calc(8.4 * var(--ru)),156px);}
.bonus-success h2 {font-size:clamp(52px,calc(10.8 * var(--ru)),180px);}
.bonus-award {display:flex;align-items:center;gap:.6em;padding:.1em 1em;border:2px solid #163151;border-radius:1em;background:#fff3e0;box-shadow:0 .17em .25em #63483140;font:bold clamp(22px,calc(2.8 * var(--ru)),50px) Georgia,serif;}
.bonus-award span {font-size:2em;line-height:1.15;}
.winner-page {padding-top:7.8dvh;gap:7dvh;}
.winner-page .champions {width:min(96%,85rem);display:flex;justify-content:center;align-items:start;gap:clamp(8px,4vw,76px);}
.winner-page .champions > div {min-width:0;max-width:min(44%,16em);overflow-wrap:anywhere;}
.winner-page .champions .crest {width:1.7em;height:1.7em;box-shadow:0 .05em .06em #46332655;font-size:clamp(34px,calc(6 * var(--ru)),110px);}
.winner-page .champions strong {font-size:clamp(23px,calc(3.5 * var(--ru)),60px);}
.winner-page .champions:has(> :nth-child(4)) {gap:2vw;}
.winner-page .champions:has(> :nth-child(4)) > div {width:14%;}
.handoff-page {margin:auto;flex:none;width:83%;min-height:0;justify-content:center;gap:clamp(8px,4dvh,48px);padding:4dvh 4vw 5dvh;background:#fff6e8 url("une/papier.webp");border:2px solid #fff8eb;border-radius:2% 1% 1.5% 2%;box-shadow:.35em .6em 1.1em #70533344;}
.handoff-page::after {content:"🔒";position:static;height:auto;color:#a1202b;background:none;font-size:clamp(15px,2.5dvh,26px);z-index:auto;}
.handoff-page::before {content:"QUESTION BONUS";position:absolute;right:2%;top:5%;max-width:5.6em;transform:rotate(-12deg);border:4px double currentColor;color:#a7292e;font:bold clamp(10px,1.65vw,29px)/1 Georgia,serif;padding:.2em;}
.handoff-page h2 {font-style:italic;overflow-wrap:anywhere;font-size:clamp(30px,calc(7.2 * var(--ru)),119px);}
.handoff-page h2 em {text-decoration:underline #b52229 .045em;text-underline-offset:.13em;}
.handoff-crest {display:block;margin:.18em auto;}
.handoff-crest .crest {width:1.65em;height:1.65em;font-size:.67em;box-shadow:0 0 0 4px #fffcf4,0 0 0 6px #c5b392;}
.handoff-page p {font:italic clamp(17px,calc(2.05 * var(--ru)),34px)/1.2 Georgia,serif;text-wrap:balance;}
.handoff-page .primary {font:bold clamp(18px,calc(2.7 * var(--ru)),46px) Georgia,serif;padding:.5em 1.45em;border-radius:.45em;background:linear-gradient(#c92a32,#a01222);box-shadow:inset 0 -.12em #930f1c,0 3px 6px #4d321c55;}
.question-sheet[data-phase=finalAnswer] .question {flex:0 1 auto;align-self:center;width:min(85%,82rem);margin:auto;padding:clamp(12px,3dvh,40px) 3%;background:#fff6e9 url("une/papier.webp");border:2px solid #fff9ee;border-radius:1.3% 2% 1% 2%;box-shadow:0 .35em .8em #65492544;gap:clamp(6px,2dvh,24px);}
.bonus-mark {display:flex;align-items:center;justify-content:center;gap:.7em;color:#a52631;font-size:clamp(16px,3dvh,36px);}
.bonus-mark::after,.bonus-mark::before {content:"";width:4em;border-top:2px solid;}
.question-sheet[data-phase=finalAnswer] .question h2 {width:100%;font-size:clamp(23px,calc(3.9 * var(--qu)),70px);}
.question-sheet[data-phase=finalAnswer] .bonuschoices {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(20%,10em),1fr));gap:clamp(7px,1.5vw,26px);}
.question-sheet[data-phase=finalAnswer] .option {width:100%;background:#fffbf5;color:inherit;border:1px solid #d0c3af;border-radius:.55em;box-shadow:0 2px 5px #70553644;font:bold clamp(17px,calc(2.5 * var(--qu)),43px)/1.1 Georgia,serif;padding:.45em .22em;}
.question-sheet[data-phase=finalAnswer] .bonuschoices .headshot-mini {width:100%;}
.question-sheet[data-phase=finalAnswer] .question > .headshot {width:min(55%,46dvh);}
.question-sheet[data-phase=finalAnswer] .question-art::after {display:none;}
.final-edition {padding:1.2dvh 2vw 6dvh;gap:1.5dvh;}
.final-edition h2 {font-size:clamp(32px,calc(6.3 * var(--ru)),109px);}
.final-columns {display:flex;flex-direction:column;align-items:center;width:min(96%,84rem);gap:2dvh;}
.final-edition .scores {width:min(94%,calc(60 * var(--ru)));gap:.65dvh;}
.final-edition .score-row {grid-template-columns:minmax(0,1.2fr) minmax(0,2fr) auto;min-height:min(6.6dvh,calc(22dvh / var(--teams)));font-size:clamp(14px,calc(1.7 * var(--ru)),30px);}
.final-edition .bonus-recap {grid-template-columns:repeat(3,minmax(0,1fr));text-align:center;gap:1dvh 0;}
.final-edition .bonus-recap h3 {display:flex;align-items:center;gap:.5em;justify-content:center;font-size:clamp(19px,2vw,34px);}
.final-edition .bonus-recap h3::before,.final-edition .bonus-recap h3::after {content:"";flex:1;border-top:1px solid;}
.final-edition .bonus-recap article {display:flex;flex-direction:column;align-items:center;gap:.55em;padding:1dvh 1vw;background:transparent;border:none;border-radius:0;box-shadow:none;}
.final-edition .bonus-recap article + article {border-left:1px solid #cebeaa;}
.final-edition .bonus-recap h4 {font:bold clamp(15px,calc(1.45 * var(--ru)),26px)/1.12 Georgia,serif;text-wrap:balance;}
.final-edition .bonus-recap .headshot {width:100%;max-width:min(100%,27dvh);}
.final-edition .bonus-recap p,.verified-face {position:relative;background:#fff5e4;border:1px solid #c0ad98;border-radius:.4em;padding:.25em .8em;font:bold clamp(17px,calc(1.8 * var(--ru)),32px) Georgia,serif;}
.final-edition .bonus-recap p::before,.verified-face::after {content:"✔";color:green;margin-right:.5em;}
.verified-face {width:min(100%,27dvh);padding:0;border:3px solid green;}
.verified-face::after {position:absolute;right:-.3em;top:-.5em;margin:0;border-radius:50%;background:green;color:white;padding:0 .2em;border:2px solid white;}
@media(max-width:650px) and (orientation:portrait) {
  .handoff-page {width:94%;padding:6dvh 4vw;gap:3dvh;}
  .handoff-page::before {font-size:9px;top:2%;}
  .winner-page .champions:has(> :nth-child(4)) > div {width:29%;}
  .question-sheet[data-phase=finalAnswer] .question {width:100%;}
  .question-sheet[data-phase=finalAnswer] .bonuschoices {grid-template-columns:repeat(2,minmax(0,1fr));}
  .final-edition .scores {width:100%;}
  .final-edition .bonus-recap {grid-template-columns:1fr;}
  .final-edition .bonus-recap article + article {border-left:none;border-top:1px solid #cebeaa;}
}
@media(orientation:landscape) and (max-height:500px) {
  .question-sheet[data-phase=finalAnswer] .question:has(> .headshot) > .headshot {grid-column:1;grid-row:1 / span 5;width:100%;}
  .question-sheet[data-phase=finalAnswer] .question {width:94%;}
}
@media(min-width:700px) and (orientation:landscape) {
  .final-edition:has(.score-row:nth-child(5)) {padding-block:1dvh 2dvh;gap:1dvh;}
  .final-edition:has(.score-row:nth-child(5)) h2 {font-size:calc(4.9 * var(--ru));}
  .final-edition:has(.score-row:nth-child(5)) .score-row {font-size:clamp(13px,calc(1.42 * var(--ru)),26px);}
  .final-edition:has(.score-row:nth-child(5)) .bonus-recap article {gap:.25em;padding-block:.5dvh;}
  .final-edition:has(.score-row:nth-child(5)) .bonus-recap .headshot,.final-edition:has(.score-row:nth-child(5)) .verified-face {max-width:21dvh;}
}
.question-sheet .relay-warning {display:inline-block;vertical-align:middle;min-width:3em;padding:.18em .4em;border-radius:.35em;text-align:center;color:white;background:#ae192b;font:700 .48em/1.2 var(--mono);letter-spacing:0;animation:relay-pulse 1s ease-in-out infinite;}
.question-sheet .relay-warning:empty {visibility:hidden;animation:none;}
@keyframes relay-pulse {50% {background:#831526;box-shadow:0 0 0 .18em #ae192b38;}}
@media(prefers-reduced-motion:reduce) {.question-sheet .relay-warning {animation:none;}}
.audio-controls {display:inline-flex;align-items:center;gap:3px;flex:none;}
.audio-controls button {position:relative;display:grid;place-items:center;width:clamp(26px,2.55vw,40px);height:clamp(26px,2.55vw,40px);padding:4px;border:1px solid #24395055;border-radius:6px;background:#fff7ec;color:#182f49;}
.audio-controls svg {width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.audio-controls .mute-line {display:none;}
.audio-controls [aria-pressed=false] {color:#7a494a;background:#f3e6db;}
.audio-controls [aria-pressed=false] .mute-line {display:block;stroke:#9d2631;stroke-width:2.5;}
dialog > .audio-controls {margin-bottom:.65rem;}
@media(max-width:520px) {body:has(.audio-controls) .mast .brand {gap:4px;}body:has(.audio-controls) .mast .brand span {max-width:8em;} .mast nav:has(.audio-controls) {gap:3px;flex-wrap:nowrap;}}
body:has(.launch-screen) {height:100dvh;display:flex;flex-direction:column;background:#0a1c32;}
body:has(.launch-screen) .mast {flex:none;}
body.game:has(.launch-screen) #app {display:flex;flex:1;min-height:0;width:100%;max-width:none;padding:0;margin:0;}
.launch-screen {flex:1;min-height:0;display:grid;place-items:center;}
.launch-screen video {width:100%;height:100%;min-height:0;object-fit:contain;}
.ready-page[data-do] {cursor:pointer;}
.ready-page .ready-continue {position:absolute;bottom:12%;left:50%;transform:translateX(-50%);font:700 clamp(13px,min(1.45vw,3.4dvh),24px) Georgia,serif;color:#142e4c;background:#fff7eb;border:1px solid #ab9981;border-radius:.4em;padding:.4em 1em;white-space:nowrap;}
.unlimited-setting {display:inline-flex;align-items:center;gap:.5em;padding:.45em .6em;cursor:pointer;font-weight:700;}
.unlimited-setting input {width:1.1em;height:1.1em;accent-color:#aa2031;}
.manual-continue {padding:.45em .8em;border:1px solid #a52330;border-radius:.5em;background:#ab2030;color:#fff;font:bold clamp(13px,1.4vw,22px)/1.1 Georgia,serif;}
