:root {
  color-scheme: light dark;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
  --page: #f5f7fb;
  --shell: #eef2f9;
  --panel: #fff;
  --soft: #f1f4fa;
  --ink: #17213a;
  --muted: #51617d;
  --purple: #4c37cf;
  --purple-hover: #3927af;
  --on-purple: #fff;
  --spin-accent: #19439d;
  --spin-accent-hover: #12337e;
  --spin-accent-disabled: #304472;
  --spin-ring: #f2f6ff;
  --active: #ede9ff;
  --active-ink: #3e2bb2;
  --line: #dce4f1;
  --field: #a4afc4;
  --wheel-dots: #dce4f1;
  --empty-wheel: #dfe7f5;
  --danger: #9b264d;
  --wheel-shadow: #30215b28;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0e1220;
    --shell: #131928;
    --panel: #20283a;
    --soft: #2a344a;
    --ink: #f0f2ff;
    --muted: #adb9d7;
    --purple: #b0a2ff;
    --purple-hover: #c5bbff;
    --on-purple: #231651;
    --active: #352c5d;
    --active-ink: #c3b8ff;
    --line: #3c4861;
    --field: #687696;
    --wheel-dots: #373f56;
    --empty-wheel: #2a344a;
    --danger: #ff9ebd;
    --wheel-shadow: #05061165;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; padding-block-end: var(--keyboard-space, 0px); }
h1, h2, p { margin: 0; }
button, input, textarea, select { font: inherit; }

.site {
  width: min(100% - 2.5rem, 76rem);
  margin-block: 1.25rem;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--shell);
  overflow: clip;
}

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem 1.2rem;
  padding: .65rem clamp(.8rem, 2vw, 1.3rem);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.site-body { padding: 1rem clamp(.8rem, 2vw, 1.3rem) 1.4rem; }

.site-name {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--ink);
  min-height: 2.75rem;
  font-weight: 750;
  text-decoration: none;
}

.site-mark {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}

.masthead-actions {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-inline-start: auto;
  font-size: .9rem;
}
.masthead-actions .header-action, .masthead-actions .language-toggle {
  padding-inline: .65rem;
  color: var(--muted);
  font-weight: 600;
}
.masthead-actions .header-action:hover:not(:disabled), .language-toggle:hover { color: var(--ink); }
.header-action .menu-chevron { width: .8rem; height: .8rem; }
#sound-toggle[aria-pressed="true"] .sound-off,
#sound-toggle[aria-pressed="false"] .sound-on { display: none; }

.wheel-menu, .language-picker { position: relative; }
.wheel-menu-panel, .language-panel {
  position: absolute;
  z-index: 2;
  inset-block-start: calc(100% + .45rem);
  inset-inline-end: 0;
  width: min(18rem, calc(100vw - 3rem));
  max-height: calc(100dvh - 5rem);
  padding: .35rem;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--panel);
  box-shadow: 0 .45rem 1.4rem var(--wheel-shadow);
}
.saved-wheels {
  max-height: min(18rem, 45dvh);
  overflow-y: auto;
}
.wheel-menu-panel .wheel-menu-item {
  width: 100%;
  justify-content: flex-start;
  padding-inline: .65rem;
  text-align: start;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.wheel-menu-item[aria-current="true"] {
  background: var(--soft);
  color: var(--active-ink);
  gap: .65rem;
}
.wheel-menu-item[aria-current="true"]::after {
  content: "";
  flex: none;
  width: .42rem;
  height: .72rem;
  margin-inline-start: auto;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
#wheel-menu-toggle[aria-expanded="true"] { background: var(--soft); color: var(--ink); }
#wheel-menu-toggle[aria-expanded="true"] .menu-chevron { transform: rotate(180deg); }
.language-toggle { list-style: none; white-space: nowrap; }
.language-toggle::-webkit-details-marker { display: none; }
.language-toggle .language-chevron { width: .8rem; height: .8rem; }
.language-picker[open] .language-toggle { background: var(--soft); color: var(--ink); }
.language-picker[open] .language-chevron { transform: rotate(180deg); }
.language-picker[inert] .language-toggle { opacity: .55; }
.language-code { display: none; }
.language-panel {
  display: grid;
  width: min(11rem, calc(100vw - 3rem));
}
.language-link {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .25rem .65rem;
  border-radius: .5rem;
  color: var(--ink);
  text-decoration: none;
}
.language-link:hover { background: var(--soft); }
.language-link:focus-visible { outline-offset: -2px; }
.language-link[aria-current="page"] { color: var(--active-ink); background: var(--active); }

h2 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(.8rem, 1.6vw, 1.25rem);
}

.picker {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: .65rem;
  min-width: 0;
}

.wheel {
  position: relative;
  width: min(100%, 30rem);
}

.wheel-stage {
  position: relative;
  display: grid;
  justify-items: center;
  width: 100%;
  padding: clamp(1.05rem, 2.6vw, 1.8rem);
  overflow: hidden;
  container-type: inline-size;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: radial-gradient(var(--wheel-dots) .65px, transparent .65px) 1px 1px / 12px 12px, var(--panel);
}

.wheel canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 0 .25rem var(--panel), 0 0 0 .32rem var(--line), 0 .55rem 1.35rem var(--wheel-shadow);
}
.wheel canvas.can-spin { cursor: pointer; }

.pointer {
  position: absolute;
  top: -.76rem;
  left: 50%;
  width: clamp(1.5rem, 3.3vw, 2.1rem);
  aspect-ratio: 1.12;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 1px var(--spin-ring));
  pointer-events: none;
}
.pointer::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: var(--spin-accent);
}

.button, .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.button {
  min-height: 2.75rem;
  padding: .55rem .9rem;
  border: 1px solid transparent;
  border-radius: .65rem;
  color: var(--ink);
  line-height: 1.2;
  text-align: center;
  font-weight: 650;
}

.with-icon { gap: .42rem; }
.button-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-primary {
  color: var(--on-purple);
  background: var(--purple);
}

.button-primary:hover:not(:disabled) { background: var(--purple-hover); }
.button-danger { color: var(--panel); background: var(--danger); }
.button-danger:hover:not(:disabled) { filter: brightness(.9); }

.button-outline {
  background: var(--panel);
  border-color: var(--line);
}

.button-outline:hover:not(:disabled), .button-quiet:hover:not(:disabled) { background: var(--soft); }
.button-quiet { background: transparent; }
.button-accent {
  color: var(--active-ink);
  background: var(--active);
}
.button-accent:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--active-ink); }

.button:disabled, .icon-button:disabled, .button[aria-disabled="true"] {
  cursor: default;
  opacity: .55;
}

button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible, [role="tabpanel"]:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

.spin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(4.35rem, 25%, 6.75rem);
  padding: .2rem;
  aspect-ratio: 1;
  border: 3px solid var(--spin-ring);
  border-radius: 50%;
  color: #fff;
  background: var(--spin-accent);
  box-shadow: 0 .18rem .8rem #1d10355c;
  font-size: clamp(.83rem, 3.2cqw, 1.2rem);
}
.spin:hover:not(:disabled, [aria-disabled="true"]) { background: var(--spin-accent-hover); }
.spin:disabled, .spin[aria-disabled="true"] {
  background: var(--spin-accent-disabled);
  opacity: 1;
}
.spin:focus-visible { outline-offset: 2px; }

.confetti { position: fixed; inset: 0; z-index: 10; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; display: block; box-shadow: inset -1px -1px 0 #00000014; }

.winner-dialog {
  --winner-accent: var(--purple);
  --winner-accent-ink: var(--on-purple);
  position: fixed;
  inset: 0;
  width: min(100% - 1.5rem, 30rem);
  height: fit-content;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.winner-dialog.has-photo { width: min(100% - 1.5rem, 44rem); }
.winner-dialog::backdrop {
  background: #0e1220a6;
  backdrop-filter: blur(5px);
}

.winner-card {
  position: relative;
  z-index: 11;
  max-height: calc(100dvh - 1.5rem);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-color: color-mix(in srgb, var(--winner-accent) 32%, var(--line));
  border-radius: 1.3rem;
  text-align: center;
  background: var(--panel);
  box-shadow: 0 1.35rem 4rem #080c1a73, 0 .35rem .95rem #080c1a4d;
}
.winner-close {
  position: absolute;
  z-index: 1;
  inset-block-start: .55rem;
  inset-inline-end: .55rem;
}
.winner-body {
  padding: clamp(1.55rem, 5vw, 2.35rem) clamp(.9rem, 4vw, 1.6rem) clamp(1.4rem, 4.5vw, 2rem);
  background: radial-gradient(ellipse at 50% 0, color-mix(in srgb, var(--winner-accent) 24%, transparent), transparent 75%);
}
.winner-header {
  display: grid;
  justify-items: center;
  gap: .72rem;
}
.winner-emblem {
  display: grid;
  place-items: center;
  width: 3.4rem;
  aspect-ratio: 1;
  border-radius: 1rem;
  background: var(--winner-accent);
  background: linear-gradient(145deg, color-mix(in srgb, var(--winner-accent) 83%, white), var(--winner-accent));
  color: var(--winner-accent-ink);
  box-shadow: inset 0 1px 0 #ffffff59, 0 .45rem 1.2rem color-mix(in srgb, var(--winner-accent) 24%, transparent);
}
.winner-emblem .button-icon { width: 1.65rem; height: 1.65rem; }
.winner-header h2 {
  font-size: .95rem;
  letter-spacing: .01em;
  color: var(--muted);
}
.winner-name {
  margin-top: .45rem;
  font-size: clamp(1.95rem, 6.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.12;
  overflow-wrap: anywhere;
}
.has-photo .winner-body { padding-block: 1rem; }
.has-photo .winner-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .6rem;
}
.has-photo .winner-emblem { width: 2.25rem; border-radius: .7rem; }
.has-photo .winner-emblem .button-icon { width: 1.2rem; height: 1.2rem; }
.has-photo .winner-name { font-size: clamp(1.4rem, 5vw, 2rem); }
.winner-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(56dvh, 35rem);
  margin: .85rem auto 0;
  border: 1px solid var(--line);
  border-radius: .85rem;
  object-fit: contain;
  background: var(--soft);
}
.winner-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  padding: .8rem clamp(.7rem, 3vw, 1.2rem);
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--soft) 55%, var(--panel));
}
.winner-actions .button { min-height: 2.9rem; padding-inline: .45rem; }

@media (prefers-reduced-motion: no-preference) {
  .winner-dialog[open] .winner-card { animation: winner-reveal .23s cubic-bezier(.2, .75, .3, 1) both; }
  @keyframes winner-reveal {
    from { opacity: 0; transform: translateY(.6rem) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
}

.editor {
  container-type: inline-size;
  min-width: 0;
  padding: clamp(.75rem, 1.4vw, 1.05rem);
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: var(--panel);
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .7rem;
}

.editor-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .4rem;
  margin-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}
.editor-tabs {
  display: flex;
  gap: .35rem;
}
.editor-tabs .button {
  margin-bottom: -1px;
  padding-inline: .75rem;
  border-bottom-width: 2px;
  border-radius: .55rem .55rem 0 0;
  color: var(--muted);
  font-size: .9rem;
}
.editor-tabs [aria-selected="true"] { border-bottom-color: var(--purple); color: var(--active-ink); }
#delete-wheel { flex: none; color: var(--danger); font-size: .875rem; }
#delete-wheel-description { margin-top: .65rem; overflow-wrap: anywhere; }

.add-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .55rem;
  margin-bottom: .65rem;
}

input, textarea {
  min-width: 0;
  min-height: 2.75rem;
  padding: .55rem .7rem;
  border: 1px solid var(--field);
  border-radius: .6rem;
  color: var(--ink);
  background: var(--panel);
  line-height: 1.35;
}

input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }

.list-tools {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .85rem;
}
.list-tools .button { font-size: .875rem; padding-inline: .65rem; }
.list-tools:has(+ .film-list:empty) { margin-bottom: 0; }

.film-list {
  display: grid;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.film-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 3.65rem repeat(2, 2.75rem);
  grid-template-areas: "entry weight chance photo remove";
  align-items: center;
  gap: .25rem .4rem;
  padding: .3rem .4rem .3rem .65rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--panel);
}

.film-row[data-winner] { background: var(--active); }
.photo-drop-active { outline: 2px dashed var(--purple); outline-offset: -3px; }
.film-row.photo-drop-active { background: var(--active); }
.film-entry { grid-area: entry; display: flex; align-items: center; gap: .25rem; min-width: 0; }
.icon-button.film-swatch { margin-inline-start: -.35rem; }

.film-marker {
  display: grid;
  place-items: center;
  width: 1.25rem;
  min-height: 1.25rem;
  flex: none;
  border-radius: 50%;
  background: var(--marker);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--marker-ink);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.film-marker:empty { width: 1.05rem; min-height: 1.05rem; }
.film-name { min-width: 0; padding-block: .35rem; overflow-wrap: anywhere; line-height: 1.35; font-weight: 650; }
.film-name img {
  display: inline-block;
  width: 1.65rem;
  aspect-ratio: 1;
  object-fit: contain;
  vertical-align: middle;
  margin-right: .35rem;
  border-radius: .3rem;
  background: var(--soft);
}
.film-name.photo-only img { width: 2.25rem; margin-right: 0; }

.film-weight {
  grid-area: weight;
  display: grid;
  grid-template-columns: 2.75rem 6.5ch 2.75rem;
  align-items: stretch;
  justify-self: start;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: var(--panel);
}
.film-weight .button {
  padding: 0;
  border: 0;
  border-radius: .45rem;
  background: transparent;
  font-size: 1.2rem;
}
.film-weight .button:hover:not(:disabled, [aria-disabled="true"]) { background: var(--soft); }
.film-weight .button:focus-visible { position: relative; outline-offset: -3px; }
.film-weight-value {
  display: grid;
  place-items: center;
  border-inline: 1px solid var(--line);
  font-size: .85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.chance {
  grid-area: chance;
  padding: .25rem;
  color: var(--active-ink);
  background: var(--soft);
  font-size: .825rem;
  font-variant-numeric: tabular-nums;
}

.icon-button {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: .55rem;
  color: var(--muted);
  background: transparent;
  font-size: 1.55rem;
  flex: none;
}

.icon-button:hover:not(:disabled) { color: var(--ink); background: var(--soft); }
.icon-button.photo-button { grid-area: photo; color: var(--ink); }
.icon-button.remove-film { grid-area: remove; color: var(--danger); }
.hint { color: var(--muted); font-size: .9rem; line-height: 1.45; }

.history-list { list-style: none; margin: 0; padding: 0; }
.history-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .6rem;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.history-entry { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.history-entry img {
  width: 3rem;
  height: 2.5rem;
  flex: none;
  object-fit: contain;
  border-radius: .35rem;
  background: var(--soft);
}
.history-list time { flex: none; color: var(--muted); font-size: .85rem; }
.feedback:not(:empty) { margin-top: .55rem; }

dialog {
  width: min(100% - 1.5rem, 30rem);
  max-height: min(90dvh, 40rem);
  padding: clamp(1rem, 4vw, 1.55rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: var(--ink);
  background: var(--panel);
  overflow-y: auto;
}

dialog::backdrop { background: #15182d80; }
.dialog-header { margin-bottom: .65rem; }
textarea { display: block; width: 100%; max-height: 42dvh; margin-top: .45rem; resize: vertical; }

dialog.editing-dialog {
  position: fixed;
  inset-block: var(--editing-viewport-top) auto;
  margin-block: 0;
  max-height: min(90dvh, 40rem, calc(var(--editing-viewport-height) - 1rem));
  transform: translateY(calc((var(--editing-viewport-height) - 100%) / 2));
}
.editing-dialog textarea { max-height: min(42dvh, calc(var(--editing-viewport-height) * .45)); }
.weight-movie { margin-bottom: .9rem; font-weight: 650; overflow-wrap: anywhere; }
.weight-stepper {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 6rem) 2.75rem;
  gap: .45rem;
  margin-block: .45rem;
}
.weight-stepper .button { padding: 0; font-size: 1.35rem; }
.weight-stepper input {
  width: 100%;
  appearance: textfield;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.weight-stepper input::-webkit-inner-spin-button,
.weight-stepper input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.color-palette {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .45rem;
  margin-block: .75rem 1rem;
}
.color-choice {
  padding: 0;
  border-color: var(--line);
  color: var(--swatch-ink);
  background: var(--swatch);
}
.color-choice[aria-pressed="true"]::after { content: "✓"; font-size: 1.2rem; }
.color-choice:hover { box-shadow: inset 0 0 0 2px currentColor; }
.color-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
}
.color-custom input { width: 4rem; padding: .3rem; cursor: pointer; }
.share-url { display: block; width: 100%; margin-top: .75rem; }
#share-description { overflow-wrap: anywhere; }
.share-note {
  margin-top: .65rem;
  padding: .55rem .7rem;
  border-radius: .55rem;
  color: var(--active-ink);
  background: var(--active);
  font-size: .875rem;
  line-height: 1.4;
}
.wheel-name-input { display: block; width: 100%; margin-top: .45rem; }
#share-feedback:not(:empty) { margin-top: .45rem; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: .55rem; margin-top: 1rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 49.01rem) and (max-height: 52rem) {
  .wheel { width: min(100%, 30rem, max(18rem, calc(100svh - 18rem))); }
}

@media (max-width: 49rem) {
  .site { width: min(100% - 1.25rem, 33rem); margin-block: .65rem; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .wheel { width: min(100%, 20rem); }
  .masthead-actions .header-action { width: 2.75rem; padding-inline: 0; }
  .header-action .button-icon { width: 1.25rem; height: 1.25rem; }
  .header-action .compact-label, .header-action .menu-chevron { display: none; }
}

@media (max-width: 31rem) {
  .masthead { gap: .35rem .6rem; }
  .language-name { display: none; }
  .language-code { display: inline; }
  .masthead-actions .language-toggle { min-width: 2.75rem; padding-inline: .3rem; gap: .2rem; }
  .compact-label { display: none; }
  #shuffle, #add-photo, #delete-wheel { min-width: 2.75rem; }
  #delete-wheel { padding-inline: .55rem; }
}

@container (max-width: 24rem) {
  .film-row {
    grid-template-columns: minmax(0, 1fr) repeat(2, 2.75rem);
    grid-template-areas: "entry photo remove" "weight chance chance";
  }
  .chance { min-width: 3.65rem; justify-self: end; }
}

@media (max-width: 24rem) {
  .site { width: calc(100% - .75rem); }
  .site-body, .masthead { padding-inline: .65rem; }
  .masthead { column-gap: .35rem; }
  .masthead .site-name { gap: .35rem; font-size: .9rem; }
  .masthead-actions { gap: .2rem; }
  .editor { padding: .65rem; }
  .add-form .button { min-width: 2.75rem; padding-inline: .45rem; }
  .add-label { display: none; }
  .list-tools { gap: .3rem; }
  .list-tools .button { padding-inline: .45rem; font-size: .825rem; }
  #color-dialog { padding-inline: .65rem; }
  .color-palette { gap: .3rem; }
  .winner-actions .button { font-size: .875rem; }
  .history-list li { flex-wrap: wrap; gap: .15rem .55rem; }
  .dialog-actions .button { flex: 1 1 auto; }
}

@media (max-width: 22rem) {
  .masthead { padding-inline: .45rem; column-gap: .2rem; }
  .masthead .site-name { font-size: .85rem; gap: .3rem; }
  .masthead .site-mark { width: 1rem; height: 1rem; }
  .masthead-actions .language-toggle { padding-inline: .2rem; }
}
