:root {
  color-scheme: dark;
  --bg: #080f1c;
  --panel: #111d30;
  --surface: #17263d;
  --line: #30425f;
  --text: #f0f5ff;
  --muted: #afbed4;
  --blue: #91caff;
  --electric: #2b66e9;
  font:
    16px/1.6 system-ui,
    sans-serif;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(ellipse at 75% 4%, #182c51, transparent 48rem), var(--bg);
}
main {
  width: min(100% - 48px, 1280px);
  margin: auto;
  padding-bottom: 32px;
}
h1,
h2,
h3,
p {
  margin: 0 0 0.65em;
  overflow-wrap: anywhere;
}
h1,
h2,
h3 {
  letter-spacing: -0.035em;
  line-height: 1.14;
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}
h3 {
  font-size: 1.25rem;
}
p,
small {
  color: var(--muted);
}
a {
  color: var(--blue);
  text-underline-offset: 0.25em;
}
header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 78px;
  padding: 12px 0;
}
header h1 {
  margin: 0;
  font-size: clamp(1rem, 2.7vw, 1.35rem);
}
header p {
  margin: 0;
}
.identity,
.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.identity-home {
  min-height: 44px;
  color: inherit;
  text-decoration: none;
  border-radius: 12px;
}
.identity img {
  width: 43px;
  height: 43px;
  border-radius: 12px;
}
html:has(#topMenu:not([hidden])) {
  scroll-padding-top: 88px;
}
.top-menu {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #101c30;
}
.top-menu:has(.online-count:not([hidden])) {
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(56px, 0.8fr);
}
.top-menu:has(.founder-menu:not([hidden])) {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.top-menu:has(.founder-menu:not([hidden])):has(.online-count:not([hidden])) {
  grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(45px, 0.8fr);
  gap: 3px;
}
.top-menu .founder-menu.preview-active {
  background: #244b86;
  border-color: #679eea;
}
.founder-settings {
  width: min(460px, calc(100% - 24px));
  max-height: 85dvh;
  overflow: auto;
  padding: clamp(14px, 4vw, 22px);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: var(--panel);
}
.founder-settings::backdrop {
  background: #080f1cbb;
}
.founder-settings nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-block: 12px;
}
.founder-settings nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  text-decoration: none;
  overflow-wrap: anywhere;
}
#founderProfileSettings:not([hidden]) {
  margin-bottom: 12px;
}
.top-menu .online-count {
  display: grid;
  place-content: center;
  justify-items: center;
  min-width: 0;
  padding: 3px 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #dce8f8;
  font-size: 0.75rem;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
}
.top-menu .online-count:hover,
.top-menu .online-count[aria-expanded="true"] {
  border-color: #679eea;
  background: #244b86;
}
.online-roster {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: min(250px, 100%);
  max-height: 55vh;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #101c30;
  box-shadow: 0 12px 24px #080f1c99;
}
.online-roster h2 {
  margin: 0;
  font-size: 1rem;
}
.online-roster p {
  margin: 8px 0 0;
  font-size: 0.88rem;
}
.online-roster ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.online-roster li {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.online-roster li:last-child {
  border-bottom: 0;
}
.online-count strong {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #d4ffed;
  font-variant-numeric: tabular-nums;
}
.online-count strong::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #62dda5;
}
.top-menu button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  min-width: 0;
  margin: 0;
  padding: 4px;
  background: transparent;
  border-color: transparent;
}
.top-menu button[aria-pressed="true"] {
  color: #fff;
  background: #244b86;
  border-color: #679eea;
}
.top-menu .icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
@media (max-width: 720px) {
  .top-menu button {
    flex-direction: column;
    gap: 1px;
    font-size: 0.79rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
}
.language-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 0.875rem;
}
.language-control select {
  width: auto;
  margin: 0;
  padding-inline: 8px;
  font-size: 1rem;
}
.site-nav a,
.console-nav a {
  text-decoration: none;
  font-weight: 650;
}
.site-nav a:hover,
.console-nav a:hover {
  text-decoration: underline;
}
section,
article,
.tile,
.discover,
.metrics > div,
.workspace > aside {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  padding: clamp(16px, 3vw, 30px);
}
section,
article {
  margin: 20px 0;
}
.hero {
  position: relative;
  display: flex;
  min-height: clamp(460px, 54vw, 690px);
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  padding: clamp(26px, 6vw, 86px);
  border-color: #48628d;
  border-radius: 26px;
  background: #192b47;
  box-shadow: 0 30px 90px #0207118c;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero::before {
  background: url("/kingdom.webp") 66% center / cover no-repeat;
  filter: grayscale(1);
  mix-blend-mode: luminosity;
}
.hero::after {
  background:
    linear-gradient(90deg, #070e1df5 0%, #091326d0 30%, #0c193c44 61%, #172e621b 100%),
    linear-gradient(0deg, #080e1c90, transparent 36%);
}
.hero-content {
  width: min(100%, 590px);
}
.hero h2 {
  font-size: clamp(3.35rem, 8vw, 7rem);
  font-weight: 820;
  letter-spacing: -0.077em;
  line-height: 0.96;
  margin: 0.22em 0;
  color: #fff;
}
.hero--home .hero-content {
  width: min(100%, 660px);
}
.hero--home h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.055em;
  line-height: 1.05;
}
.hero em {
  color: #97caff;
  font-style: normal;
}
.hero p {
  max-width: 39ch;
  color: #e0ebfb;
  font-size: clamp(1rem, 2vw, 1.17rem);
}
.hero--home p {
  font-size: clamp(0.95rem, 1.5vw, 1.06rem);
}
.eyebrow,
.section-label,
.side-label {
  color: var(--blue);
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero a,
.primary,
button:not(.secondary):not(.profile-toggle):not(.install-link):not([data-kind]):not([data-mobile]) {
  background: #2257d3;
  color: #fff;
  border-color: #5488fe;
}
.hero a {
  display: inline-flex;
  gap: 1rem;
  align-items: center;
  margin-top: 12px;
  padding: 13px 18px;
  border: 1px solid;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 750;
}
.hero a:hover,
button:not(:disabled):hover {
  filter: brightness(1.19);
}
.signed-in .hero {
  display: none;
}
.intro-heading {
  margin: 44px 0 16px;
}
.intro-grid,
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.tile {
  background: linear-gradient(145deg, #17263e, #101a2b);
  color: var(--muted);
}
.tile strong {
  display: block;
  font-size: 1.02rem;
  color: var(--text);
  margin: 9px 0 3px;
}
.icon {
  width: 1.35em;
  height: 1.35em;
  flex: none;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tile .icon {
  width: 1.8rem;
  height: 1.8rem;
  color: var(--blue);
}
.app-install {
  margin: 20px 0;
}
.app-install:has(#installApp[hidden]) {
  display: none;
}
.install-hint {
  margin-top: 9px;
  max-width: 62ch;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.install-paths {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.install-paths p {
  margin: 2px 0 0;
}
#installNow {
  margin: 0 0 12px;
}
#auth,
#profile {
  max-width: 690px;
  margin: 32px auto;
}
#profile {
  margin-top: 0;
}
label {
  display: block;
  font-weight: 550;
  color: #dce8f8;
  margin: 6px 0;
}
button,
input,
textarea,
select,
summary {
  font: inherit;
}
input,
select,
textarea,
button {
  min-height: 44px;
  padding: 9px 12px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0c1628;
}
input,
select,
textarea {
  width: 100%;
  margin-top: 4px;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
button {
  cursor: pointer;
  margin: 5px 5px 5px 0;
  background: var(--surface);
  font-weight: 650;
}
button:disabled {
  opacity: 0.56;
  cursor: default;
}
:focus-visible {
  outline: 2px solid #9ed5ff;
  outline-offset: 3px;
}
summary {
  cursor: pointer;
  color: var(--blue);
  padding: 6px;
}
#notice:not(:empty) {
  margin: 14px 0;
  padding: 10px 14px;
  background: #172b49;
  border-left: 3px solid #78b9ff;
  border-radius: 4px;
  color: #e6f1ff;
}
#notice:empty {
  display: none;
}
.section-heading,
.quick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}
.workspace > aside {
  position: sticky;
  top: 74px;
  padding: 14px;
}
.workspace > aside button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: transparent;
  border-color: transparent;
}
.workspace > aside button.active,
.mobile-bar button.active,
.category-strip button.active {
  background: #244b86;
  color: #fff;
  border-color: #679eea;
}
#member {
  background: none;
  border: 0;
  margin-top: 0;
  padding: 0;
}
.discover {
  background: linear-gradient(130deg, #1b3153, #101d32);
}
[data-scene="home"] {
  --scene-image: url("/illustrations/accueil.webp");
  --scene-point: 76% 57%;
}
[data-scene="tutorial"] {
  --scene-image: url("/illustrations/guides.webp");
  --scene-point: 67% 63%;
}
[data-scene="discussion"] {
  --scene-image: url("/illustrations/forum.webp");
  --scene-point: 72% 61%;
}
[data-scene="profile"] {
  --scene-image: url("/illustrations/profil.webp");
  --scene-point: 77% 59%;
}
.section-banner {
  min-height: clamp(110px, 16vw, 170px);
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  padding: clamp(16px, 3vw, 28px);
  margin-bottom: 16px;
  border: 1px solid #6f9bcc80;
  border-radius: 14px;
  background:
    linear-gradient(93deg, #081323be 4%, #10213b44 58%, #10213b0a 85%),
    var(--scene-image) var(--scene-point) / cover no-repeat #111d30;
}
.section-banner h2 {
  margin: 0;
  text-shadow: 0 2px 8px #081120;
}
.section-banner .profile-toggle {
  margin: 0;
}
[data-scene] > .icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 6px;
  color: #eef7ff;
  border: 1px solid #88b8ee66;
  border-radius: 11px;
  background:
    linear-gradient(145deg, #213e657a, #07101fb8),
    var(--scene-image) var(--scene-point) / 148px auto no-repeat #111d30;
}
#profileLink:not([hidden]) {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
#profileLink > .icon {
  width: 28px;
  height: 28px;
  padding: 5px;
}
.quick input {
  min-width: 0;
}
.quick button {
  flex: none;
}
.actions,
.category-strip,
.console-nav,
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.category-strip button {
  font-size: 0.86rem;
  padding: 7px 10px;
}
.actions button {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 9px;
  text-align: left;
}
.actions button .icon {
  grid-row: span 2;
  align-self: center;
}
.actions small {
  grid-column: 2;
  color: #e6efff;
}
.results-heading {
  margin: 24px 0 6px;
}
.results-heading span,
.post-date,
.side-note,
.editor-help {
  color: var(--muted);
  font-size: 0.875rem;
}
#compose {
  margin-top: 8px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 14px;
}
.post-card p,
#feed article p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}
.post-tag {
  background: #203d65;
  color: #d1e8ff;
  border-radius: 20px;
  padding: 1px 9px;
  font-size: 0.8rem;
}
.reply-card {
  border-left: 2px solid var(--line);
  padding: 8px 12px;
  margin: 10px 0;
}
.photo-preview,
#feed article div:has(> a > img) {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.photo-preview img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}
#feed img {
  max-width: min(100%, 360px);
  max-height: 360px;
  border-radius: 10px;
  object-fit: contain;
}
.empty {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
}
.profile-grid,
.form-grid,
.rights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}
.profile-grid button,
.form-grid button {
  justify-self: start;
}
.metrics > div {
  padding: 17px 20px;
  background: var(--surface);
}
.metrics strong {
  display: block;
  font-size: 2rem;
  color: var(--blue);
  line-height: 1.1;
}
.console-nav {
  margin: 14px 0;
}
.console-nav a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}
.console .hero {
  min-height: 245px;
  padding: 34px;
}
.console .hero h2 {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
}
.console #member {
  background: var(--panel);
  padding: clamp(16px, 3vw, 30px);
  border: 1px solid var(--line);
}
.console #feed article {
  background: #0e1929;
}
.console .rights-grid {
  grid-template-columns: 2fr 1.5fr 1fr;
}
.console .toolbar label {
  min-width: min(100%, 240px);
}
.console .toolbar label:first-child {
  flex: 1;
}
.mobile-bar {
  display: none;
}
footer {
  margin-top: 40px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 720px) {
  main {
    width: calc(100% - 28px);
    padding-bottom: 28px;
  }
  .signed-in main {
    padding-bottom: calc(78px + env(safe-area-inset-bottom) + var(--editor-keyboard-inset, 0px));
  }
  .hero {
    min-height: clamp(460px, 120vw, 570px);
    align-items: end;
    padding: 24px;
    border-radius: 18px;
  }
  .hero::before {
    background-position: 63% center;
  }
  .hero::after {
    background:
      linear-gradient(0deg, #070e1dfb 6%, #081325bd 38%, #142a5833 83%),
      linear-gradient(90deg, #0b14296b, transparent);
  }
  .hero h2 {
    font-size: clamp(3rem, 11vw, 5.2rem);
  }
  .hero--home h2 {
    font-size: clamp(1.55rem, 6.5vw, 2.8rem);
  }
  .hero--home::after {
    background: linear-gradient(0deg, #070e1df8 2%, #081325ad 36%, #142a580d 78%);
  }
  .intro-grid,
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workspace {
    display: block;
  }
  .workspace > aside {
    display: none;
  }
  .mobile-bar:not([hidden]) {
    position: fixed;
    z-index: 3;
    inset: auto 0 0;
    padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: #0d182bf5;
    border-top: 1px solid var(--line);
  }
  .editor-focused .mobile-bar:not([hidden]),
  body:has(#compose[open]:not([hidden])) .mobile-bar {
    display: none;
  }
  .mobile-bar button {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 2px;
    padding: 5px 1px;
    margin: 0 2px;
    line-height: 1.25;
    background: transparent;
    border: 1px solid transparent;
    font-size: 0.73rem;
  }
  .console .rights-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 390px) {
  .quick {
    align-items: stretch;
    flex-direction: column;
  }
  .quick button {
    align-self: start;
  }
  .profile-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
}
#notice:not(:empty) {
  position: sticky;
  top: 8px;
  z-index: 4;
}
.post-photo {
  margin: 12px 0;
}
.post-photo img {
  display: block;
}
.post-photo button {
  font-size: 0.86rem;
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}
.password-field button {
  margin: 0;
}
.form-error:empty {
  display: none;
}
.form-error {
  color: #ffb8bf;
  margin: 8px 0;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 14px;
}
.filter-row select {
  width: auto;
  max-width: 100%;
  margin: 0;
}
.search-panel .quick input,
.search-panel .quick button {
  margin: 0;
}
.actions button {
  display: flex;
  align-items: center;
  gap: 8px;
}
.actions button + button {
  background: #19345c;
  border-color: #6386be;
}
.profile-open #mobileProfile {
  background: #244b86;
  border-color: #679eea;
}
#profile #logout {
  margin-top: 20px;
}
.console-nav a[aria-current="page"] {
  color: #fff;
  background: #244b86;
  border-color: #679eea;
}
.console-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.metric-link {
  position: relative;
  padding: 17px 38px 17px 20px;
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.metric-link:hover {
  border-color: var(--blue);
}
.metric-arrow {
  position: absolute;
  right: 12px;
  top: 16px;
  color: var(--blue);
}
.console .toolbar button {
  align-self: end;
}
@media (max-width: 720px) {
  .signed-in:not(.profile-open) #profileLink:not([hidden]) {
    display: none;
  }
  .hero {
    min-height: clamp(345px, 106vw, 510px);
  }
  .actions button {
    min-height: 48px;
  }
  .filter-row label {
    margin: 0;
  }
  .console-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.account-options {
  margin-block: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.account-options summary {
  cursor: pointer;
  min-height: 34px;
  font-weight: 650;
}
.account-options .notification-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.account-options input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--electric);
}
.account-options p[role="status"]:empty {
  display: none;
}
#phoneAccess {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
#phoneAccess form {
  margin-top: 10px;
}
.console-nav {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 8px 0;
  background: var(--bg);
}
.console #dashboard > section {
  scroll-margin-top: 68px;
}
@media (max-width: 720px) {
  .console #dashboard > section {
    scroll-margin-top: 160px;
  }
}

.membership-card .actions {
  margin-top: 12px;
}
.membership-card .actions a {
  margin-right: 8px;
  overflow-wrap: anywhere;
}
.membership-message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.duel-today {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
  padding: clamp(14px, 2.8vw, 22px);
  border: 1px solid #6f9bcc80;
  border-radius: 14px;
  background:
    linear-gradient(90deg, #0d1b32 0%, #111f37ed 58%, #1426429e 100%),
    url("/illustrations/themes/duel.webp") center right / cover no-repeat #111d30;
}
.duel-today p {
  margin-bottom: 5px;
  color: #e6effc;
}
.duel-today .eyebrow {
  color: var(--blue);
}
.duel-today h3 {
  margin-bottom: 5px;
}
.duel-today small {
  display: block;
}
.duel-today-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.duel-today-actions button {
  min-height: 44px;
  margin: 0;
}
#contributeActions:not([hidden]) {
  margin-block: 0 14px;
}
#backToDuelProgramme {
  margin-top: 12px;
}
.duel-day[aria-current="date"]:not([aria-pressed="true"]) {
  border-color: #679eea;
}
.post-options {
  padding: 8px 12px;
  margin: 10px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.post-options summary {
  cursor: pointer;
  min-height: 28px;
  font-weight: 600;
}
@media (max-width: 720px) {
  .duel-today-actions button {
    flex: 1 1 9rem;
  }
}
.guide-shortcuts {
  margin: 18px 0;
}
.guide-shortcuts > h3 {
  margin-bottom: 10px;
}
.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
}
.theme-card {
  min-width: 0;
  overflow: hidden;
  background: #101d31;
  border: 1px solid var(--line);
  border-radius: 12px;
}
[data-theme="chateau"] {
  --theme-image: url("/illustrations/themes/chateau.webp");
}
[data-theme="duel"] {
  --theme-image: url("/illustrations/themes/duel.webp");
}
[data-theme="tech"] {
  --theme-image: url("/illustrations/themes/tech.webp");
}
[data-theme="heros"] {
  --theme-image: url("/illustrations/themes/heros.webp");
}
[data-theme="alliance"] {
  --theme-image: url("/illustrations/themes/alliance.webp");
}
[data-theme="ressources"] {
  --theme-image: url("/illustrations/themes/ressources.webp");
}
.duel-program {
  grid-column: 1 / -1;
}
.duel-program-heading {
  padding: clamp(16px, 3vw, 26px);
  min-height: 100px;
  display: grid;
  align-content: end;
}
.duel-program-heading h4 {
  margin: 0;
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  line-height: 1.25;
}
.duel-program-heading p {
  margin: 4px 0 0;
  color: #d3e2f5;
}
.duel-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(126px, 100%), 1fr));
  gap: 7px;
  padding: 10px 10px 0;
  margin: 0;
  list-style: none;
}
.duel-days li {
  display: flex;
  min-width: 0;
}
.duel-day {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  margin: 0;
  padding: 8px 10px;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}
.duel-day span {
  color: #d3e2f5;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
}
.duel-day[aria-pressed="true"] {
  background: #244b86;
  border-color: #87b9ff;
}
.theme-card summary,
.duel-program-heading {
  background:
    linear-gradient(90deg, #0d1b32 5%, #0d1b32a6 49%, #152c4d2e),
    var(--theme-image) right center / cover no-repeat #142642;
}
.theme-card summary {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 74px;
  padding: 10px 38px 10px 14px;
  color: var(--text);
  list-style: none;
}
.theme-card summary::-webkit-details-marker {
  display: none;
}
.theme-card summary::after {
  position: absolute;
  inset: calc(50% - 5px) 16px auto auto;
  width: 7px;
  height: 7px;
  border: solid var(--blue);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  content: "";
}
.theme-card[open] summary::after {
  transform: rotate(225deg);
}
.theme-card summary:focus-visible {
  outline-offset: -3px;
}
.theme-card summary small {
  color: #d3e2f5;
}
@media (max-width: 600px) {
  .theme-grid {
    grid-template-columns: 1fr;
  }
}
.guide-shortcut-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px;
}
.guide-shortcut-buttons button {
  margin: 0;
  padding-inline: 12px;
  border-radius: 999px;
  font-size: 0.87rem;
}
.guide-shortcut-buttons button[aria-pressed="true"] {
  background: #244b86;
  border-color: #87b9ff;
}

.member-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
}
.member-controls:has(> :not([hidden])) {
  margin-bottom: 12px;
}
.member-controls label {
  width: auto;
  min-width: 140px;
  max-width: 100%;
}
#r4QueueButton[aria-pressed="true"] {
  background: #244b86;
  border-color: #87b9ff;
}
#r4QueueCount {
  color: var(--blue);
}
