body.hl-page {
  --hl-gold: #f2d7a4;
  --hl-muted: #c2b6ca;
  color: #fff4e3;
  background: radial-gradient(ellipse at 78% 5%, #302044 0, transparent 54%),
    radial-gradient(ellipse at 10% 60%, #241b3d 0, transparent 45%), #100e16;
}
.hl-page::before { opacity: .16; }
.hl-page button, .hl-page select, .hl-page input {
  color: #fff4e3;
  background: #201928;
  border: 1px solid #675274;
  font: inherit;
  border-radius: 10px;
}
.hl-page button:disabled { cursor: default; }
.hl-page .hl-accent, .hl-tabs button[aria-pressed=true] {
  background: #eacd98;
  color: #24162c;
  border-color: #efd6ac;
  font-weight: 700;
}
.hl-page button:not(:disabled):hover { border-color: #f2d7a4; }
.hl-page .hl-shell { width: min(calc(100% - 28px), 850px); }
.hl-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .9rem; }
.hl-heading h1 { margin: 0; color: var(--hl-gold); font-size: clamp(2rem, 6vw, 3.9rem); }
.hl-tools { display: flex; gap: .55rem; flex-wrap: wrap; }
.hl-tools button svg { height: 14px; width: 14px; vertical-align: -.12em; }
.hl-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: 1.15rem 0; }
.hl-score { color: var(--hl-muted); text-align: center; margin: 1.6rem 0 .4rem; }
.hl-question { margin: 0 0 1rem; text-align: center; font-size: clamp(1.4rem,4vw,2.4rem); }
.hl-pair {
  --hl-card-width: clamp(116px, 37vw, 218px);
  display: grid;
  grid-template-columns: repeat(2,minmax(0,var(--hl-card-width)));
  justify-content: center;
  gap: clamp(10px,3.4vw,30px);
}
.hl-card { min-width: 0; text-align: center; }
.hl-page .hl-portrait {
  display: block; position: relative; width: 100%; aspect-ratio: 1 / 1;
  padding: 0; overflow: hidden; border-radius: 17px;
  background: radial-gradient(ellipse at 60% 60%, #4c375c, #231a30 75%);
  border: 1px solid #9b7aad;
  box-shadow: 0 12px 25px #05040866;
}
.hl-page .hl-card + .hl-card .hl-portrait {
  background: radial-gradient(ellipse at 55% 55%, #533c36, #2a2027 75%);
  border-color: #a98468;
}
.hl-portrait img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hl-number { position: absolute; top: 8px; inset-inline-start: 8px; min-width: 1.65em; padding: .1em .35em; border-radius: 5px; background: #1a1421ea; color: #ffdf9c; font: 700 1rem system-ui; border: 1px solid #bd9b72; }
.hl-card h3 { color: #fff4e3; font: 700 clamp(.85rem,2.6vw,1.23rem)/1.22 system-ui; margin: .55rem 0 0; overflow-wrap: anywhere; }
.hl-rank { color: #efd7af; margin: .35rem 0; min-height: 1.35em; }
.hl-mark { position: absolute; top: 8px; inset-inline-end: 8px; display: grid; place-items: center; min-width: 1.45em; border-radius: 50%; color: #102119; font: 800 clamp(1.35rem, 4vw, 2.35rem)/1.45 system-ui; }
.hl-mark:empty { display: none; }
.hl-card[data-result="correct"] .hl-portrait { border-color: #79e4ab !important; }
.hl-card[data-result="correct"] .hl-mark { background: #92efb9; }
.hl-card[data-result="wrong"] .hl-portrait { border-color: #fa8495 !important; }
.hl-card[data-result="wrong"] .hl-mark { background: #ff9dad; color: #4c0b21; }
.hl-round { padding-top: .4rem; text-align: center; min-height: 4rem; }
.hl-round p { margin: .45rem 0; }
.hl-source { margin: 1.5rem auto 0; text-align: center; color: var(--hl-gold); font-size: .9rem; }
.hl-page .hl-dialog { width: min(calc(100% - 24px), 610px); padding: 18px; color: #fff4e3; background: #21192c; border: 1px solid #795e8a; border-radius: 18px; }
.hl-dialog::backdrop { background: #0c0813b5; }
.hl-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.hl-dialog-head h2 { margin: 0; }
.hl-dialog label, .hl-dialog select, .hl-dialog input { display: block; width: 100%; }
.hl-dialog label { margin: .6rem 0; }
.hl-dialog select, .hl-dialog input { padding: .55rem; }
.hl-dialog .hl-tools { margin-top: .9rem; }
.hl-help { color: var(--hl-muted); }
.hl-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 10; }
.hl-obs {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff4e3; text-align: center; pointer-events: none;
}
.hl-obs-stage {
  width: min(94vw, 1050px); padding: clamp(9px, 2.2vw, 32px);
  border: 1px solid #bd9b72; border-radius: 24px;
  background: radial-gradient(ellipse at 65% 20%, #2b1e3a, #120e1bf2 76%);
}
.hl-obs-stage header {
  display: flex; justify-content: space-between; gap: 12px;
  color: #f2d7a4; font-size: clamp(.82rem, 1.6vmin, 1.4rem);
}
.hl-obs-stage h1 { margin: .15em 0 .5em; font-size: clamp(1.2rem, 4.3vmin, 3.6rem); }
.hl-obs-stage .hl-pair { --hl-card-width: min(34vw, 44vh, 318px); }
.hl-obs-stage .hl-portrait {
  position: relative; width: 100%; aspect-ratio: 1; overflow: hidden;
  border-radius: 17px; border: 1px solid #a783ad;
  background: radial-gradient(ellipse at center, #48335a, #251c30 75%);
}
.hl-obs-stage .hl-card + .hl-card .hl-portrait {
  border-color: #a98468; background: radial-gradient(ellipse at center, #5b423a, #2a2027 75%);
}
.hl-obs-status { min-height: 1.5em; margin: .3em 0 0; color: #ffdda4; font-size: clamp(.83rem, 2vmin, 1.6rem); }
