@font-face {
  font-family: Inter;
  src: url("/vendor/inter/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Space;
  src: url("/vendor/space/space-grotesk-latin-wght-normal.woff2")
    format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --text: #f5f2fb;
  --heading: Space, Inter, sans-serif;
  --body: Inter, system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.52 var(--body);
  min-width: 300px;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  flex: none;
  vertical-align: middle;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--heading);
  letter-spacing: -0.04em;
}
small {
  font-size: 0.8rem;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9;
  background: var(--lime);
  color: var(--ink);
  padding: 8px 15px;
}
.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--side);
  border-right: 1px solid #292635;
  z-index: 3;
}
.wordmark {
  height: 69px;
  display: flex;
  align-items: center;
  padding: 0 23px;
  border-bottom: 1px solid var(--border);
  flex: none;
  text-align: left;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 25px/1 var(--heading);
  letter-spacing: -0.085em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 8px;
  background: var(--lime);
  color: #202510;
  transform: rotate(-7deg);
}
.brand-mark svg {
  fill: currentColor;
  stroke-width: 0.4;
  transform: rotate(7deg);
}
.brand-period {
  color: var(--lime);
}
.side-body {
  display: flex;
  min-height: 0;
  flex: 1;
}
.rooms-rail {
  width: 65px;
  flex: none;
  background: var(--rail);
  border-right: 1px solid #262332;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 11px;
  padding: 17px 0;
  overflow: auto;
  scrollbar-width: thin;
}
.room-icon {
  width: 39px;
  height: 39px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  background: #211c2c;
  font: 700 22px/1 var(--heading);
}
.room-icon:hover,
.room-icon.selected {
  border-color: #8d66cc;
  color: #d4b7ff;
  background: #352550;
}
.room-icon.selected {
  box-shadow: -4px 0 0 -1px var(--purple);
}
.room-icon.add {
  background: transparent;
  border-style: dashed;
  color: #b38ceb;
}
.room-icon .avatar {
  width: 31px;
  height: 31px;
  background: transparent !important;
  color: inherit !important;
}
.navigation {
  min-width: 0;
  flex: 1;
  overflow: auto;
}
.space-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  width: 100%;
  padding: 16px 14px 15px;
  min-height: 70px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.space-switch span,
.sidebar-account span:not(.avatar) {
  display: grid;
  min-width: 0;
}
.space-switch strong,
.sidebar-account strong {
  font-size: 0.88rem;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}
.space-switch small,
.sidebar-account small {
  color: var(--dim);
  font-size: 0.73rem;
  white-space: nowrap;
}
.nav-group {
  padding: 20px 10px 0;
  display: grid;
  gap: 4px;
}
.nav-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: #8f879f;
  padding: 0 8px 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 7px;
  text-align: left;
  color: #b1aabb;
  border-radius: 7px;
  font-size: 0.81rem;
  min-height: 39px;
  white-space: nowrap;
}
.nav-item:hover,
.space-switch:hover,
.sidebar-account:hover {
  background: #211d2c;
  color: var(--text);
}
.nav-item.current {
  background: #2b203f;
  color: #ddc8ff;
  font-weight: 700;
  box-shadow: inset 2px 0 #b88cff;
}
.nav-item.current svg,
.nav-item:hover svg {
  color: #c59ffc;
}
.nav-badge {
  margin-left: auto;
  background: var(--purple);
  color: #231338;
  border-radius: 12px;
  min-width: 19px;
  text-align: center;
  font-size: 0.7rem;
}
.sidebar-account {
  padding: 13px 17px;
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
  border-top: 1px solid var(--border);
  background: #181621;
  min-height: 68px;
}
.sidebar-account > svg {
  margin-left: auto;
  color: var(--dim);
}
.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}
.avatar.small {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 0.68rem;
}
.avatar.large {
  width: 76px;
  height: 76px;
  border-radius: 21px;
  font: 700 28px var(--heading);
}
.avatar-0 {
  background: #3b2c59;
  color: #d7baff;
}
.avatar-1 {
  background: #244338;
  color: #a9e6c6;
}
.avatar-2 {
  background: #483655;
  color: #e2bfff;
}
.avatar-3 {
  background: #51362e;
  color: #ffc5a0;
}
.avatar-4 {
  background: #293b52;
  color: #b4d4ff;
}
.content-shell {
  min-width: 0;
}
.topbar {
  height: 69px;
  border-bottom: 1px solid #252331;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(28px, calc((100% - 1190px) / 2));
  gap: 12px;
  background: #131219;
}
.breadcrumbs,
.language-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 .5rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}

.language-link:hover,
.language-link:focus-visible {
  color: var(--purple);
}

.auth-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.breadcrumbs {
  color: var(--dim);
  font-size: 0.83rem;
  white-space: nowrap;
}
.breadcrumbs strong {
  color: #e4deee;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crumb-room {
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-avatar {
  border-radius: 10px;
}
.mobile-menu,
.nav-backdrop {
  display: none !important;
}
.main-content {
  max-width: 1246px;
  margin: auto;
  padding: 28px 28px 40px;
}
.hero {
  min-height: 325px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  border-radius: 17px;
  border: 1px solid #46325e;
  background: linear-gradient(105deg, #1c152a 0%, #201632 49%, #2b1747 100%);
  padding: 28px 34px;
}
.hero::before {
  position: absolute;
  content: "";
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(#c49aff0a 1px, transparent 1px),
    linear-gradient(90deg, #c49aff0a 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, transparent 20%, black 100%);
}
.hero-art {
  position: absolute;
  right: -7%;
  top: 50%;
  transform: translateY(-50%);
  z-index: -1;
  width: min(73%, 760px);
  height: auto;
  pointer-events: none;
}
.hero-content {
  max-width: 600px;
  position: relative;
}
.eyebrow {
  color: #c6a1fd;
  font-size: 0.72rem;
  letter-spacing: 0.125em;
  font-weight: 750;
  display: flex;
  gap: 8px;
  align-items: center;
}
.eyebrow i {
  width: 7px;
  height: 7px;
  background: #c898ff;
  display: inline-block;
  border-radius: 50%;
  box-shadow: 0 0 13px #ab61f7;
}
.hero h1,
.auth-side h1 {
  font-size: clamp(2.7rem, 4.6vw, 4.5rem);
  line-height: 0.99;
  letter-spacing: -0.079em;
  margin: 12px 0 13px;
  font-weight: 700;
}
.hero h1 em,
.auth-side h1 em {
  color: var(--purple);
  font-style: normal;
}
.hero-content > p:not(.eyebrow) {
  font-size: 0.96rem;
  color: #c5b9d2;
  max-width: 29rem;
}
.hero-content .actions {
  margin-top: 22px;
}
.hero-tag {
  position: absolute;
  right: 20px;
  bottom: 17px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cdb2ef;
  background: #281c3f;
  border: 1px solid #533d6b;
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 0.67rem;
  letter-spacing: 0.09em;
  font-weight: 750;
}
.actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 9px 13px;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.btn.primary {
  background: var(--lime);
  color: var(--ink);
  border-color: #e2ffa9;
}
.btn.primary:hover:not(:disabled) {
  background: #e5ffad;
}
.btn.secondary {
  background: #211d2c;
  border-color: #3a3149;
  color: #eee8f9;
}
.btn.secondary:hover:not(:disabled) {
  background: #302541;
  border-color: #60467c;
}
.btn.quiet {
  color: #c9a9fc;
  background: transparent;
  border-color: transparent;
}
.btn.quiet:hover:not(:disabled) {
  background: #2c2240;
}
.icon-btn {
  width: 35px;
  height: 35px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: var(--muted);
  flex: none;
}
.icon-btn:hover {
  background: #2c243b;
  color: var(--text);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-top: 14px;
}
.metric,
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 0;
}
.metric {
  padding: 14px 16px 13px;
  display: grid;
  gap: 2px;
}
.metric-title,
.title-with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.metric-title {
  color: #d5cddd;
  font-weight: 550;
  font-size: 0.83rem;
}
.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  flex: none;
  background: #35264d;
  color: #c9a4ff;
}
.feature-icon.mint {
  background: #223d34;
  color: #99e2b9;
}
.feature-icon.orange {
  background: #432f27;
  color: #f0ae82;
}
.feature-icon.purple {
  background: #35264d;
  color: #c9a4ff;
}
.metric > strong {
  font: 700 2rem/1.08 var(--heading);
  letter-spacing: -0.06em;
  margin-top: 5px;
}
.metric > small,
.panel-heading p,
.title-with-icon p {
  color: var(--muted);
  font-size: 0.77rem;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
  gap: 13px;
  margin-top: 15px;
  align-items: start;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.panel-heading h2 {
  font-size: 1.23rem;
  line-height: 1.17;
  margin-bottom: 3px;
}
.list-rows,
.standing-list {
  padding: 2px 14px;
}
.list-row,
.standing {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 2px;
  border-bottom: 1px solid #2b2736;
  text-align: left;
}
.list-row:last-child,
.standing:last-child,
.question-row:last-child {
  border-bottom: 0;
}
button.list-row:hover {
  background: var(--panel-hover);
  border-radius: 7px;
}
.managed-list-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #2b2736;
}
.managed-list-row:last-child,
.managed-list-row > .list-row {
  border-bottom: 0;
}
.list-delete {
  flex-shrink: 0;
}
.list-delete:hover,
.list-delete:focus-visible {
  color: #ff9ba7;
}
.list-row > svg {
  color: #8d839d;
}
.row-label {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}
.row-label strong {
  font-size: 0.86rem;
  font-weight: 650;
}
.row-label small,
.row-end {
  color: var(--muted);
  font-size: 0.74rem;
}
.standing .row-label strong small {
  color: #baa2d8;
  font-weight: 500;
  margin-left: 3px;
}
.place {
  color: #9a90a9;
  font-size: 0.78rem;
  width: 24px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.place-1 {
  color: #f8bb86;
}
.elo-value {
  font: 700 0.99rem var(--heading);
  white-space: nowrap;
}
.elo-value small {
  font: 0.68rem var(--body);
  color: var(--muted);
}
.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 1px 0 19px;
}
.page-heading h1 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -0.07em;
  margin-bottom: 6px;
}
.page-heading p {
  color: var(--muted);
  max-width: 52rem;
}
.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  text-align: center;
  padding: 24px 16px;
  color: var(--muted);
}
.empty strong {
  color: var(--text);
  font-size: 1rem;
}
.empty p {
  font-size: 0.85rem;
  max-width: 30rem;
}
.empty .actions {
  margin-top: 9px;
  justify-content: center;
}
.welcome .empty {
  min-height: 300px;
}
.study-progress {
  padding: 16px 18px;
  margin-bottom: 14px;
}
.study-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.study-progress h2 {
  font-size: 1.2rem;
}
.study-progress p {
  color: var(--muted);
  font-size: 0.83rem;
}
.study-progress p strong {
  color: var(--text);
}
.progress-percent {
  color: var(--lime);
  font: 700 1.64rem var(--heading);
}
.bar {
  height: 7px;
  background: #2d293a;
  border-radius: 20px;
  overflow: hidden;
}
.bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #a2de76, #dbff8c);
  border-radius: inherit;
  transition: width 0.2s;
}
.study-heading {
  flex-wrap: wrap;
}
.hide-toggle,
.inline-check {
  display: flex !important;
  align-items: center;
  gap: 7px;
  color: #d4cbe1;
  font-size: 0.81rem;
}
input[type="checkbox"] {
  accent-color: #bfed82;
  width: 16px;
  height: 16px;
  flex: none;
  margin: 0;
}
.question-list {
  padding: 0 17px;
}
.question-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.question-content {
  min-width: 0;
  flex: 1;
}
.tick {
  margin-top: 3px;
  display: grid;
  place-items: center;
  position: relative;
  width: 23px;
  height: 23px;
  flex: none;
  cursor: pointer;
}
.tick input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.tick span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 1px solid #585068;
  border-radius: 6px;
  color: transparent;
  background: #201b2b;
  pointer-events: none;
}
.tick input:focus-visible + span {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}
.tick input:checked + span {
  color: #263216;
  background: var(--lime);
  border-color: var(--lime);
}
.question-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 650;
}
.difficulty {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #283930;
  color: #b1e9c1;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.69rem;
  font-weight: 700;
  white-space: nowrap;
}
.difficulty i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.difficulty.medium {
  background: #433417;
  color: #f5ce81;
}
.difficulty.hard {
  background: #482638;
  color: #f8a6c2;
}
.formula {
  overflow-wrap: anywhere;
  line-height: 1.48;
  margin: 5px 0;
  white-space: pre-wrap;
}
.formula .katex-display {
  overflow-x: auto;
  overflow-y: hidden;
}
.solution {
  font-size: 0.83rem;
  color: #d5b8ff;
}
.solution summary {
  cursor: pointer;
  width: max-content;
  font-weight: 650;
}
.solution-content {
  color: var(--text);
  margin-top: 6px;
  border-left: 2px solid #865ec2;
  background: #211b2f;
  padding: 7px 10px;
  border-radius: 0 6px 6px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.solution-content p {
  color: var(--muted);
  margin-top: 3px;
}
.done .formula {
  color: #c3bccc;
}
.subject-label {
  padding: 2px 7px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--purple) 16%, var(--panel));
  color: var(--purple);
  font-weight: 700;
}
.question-visual {
  width: fit-content;
  max-width: 100%;
  margin: 10px 0;
  padding: 7px;
  border: 1px solid #d4c8df;
  border-radius: 9px;
  background: #f5f3fa;
  color: #302340;
  font-size: 0.86rem;
}
.question-visual img {
  display: block;
  max-width: 100%;
  max-height: 310px;
  object-fit: contain;
}
.mermaid-visual {
  width: min(100%, 580px);
}
.mermaid-visual img {
  width: 100%;
}
.match-question .question-visual {
  margin: 7px 0 12px;
}
.match-question .question-visual img {
  max-height: min(32vh, 240px);
}
.editor-visual summary {
  cursor: pointer;
  color: var(--purple);
  font-weight: 650;
}
.editor-visual-body {
  display: grid;
  gap: 7px;
  padding: 8px 0;
}
.editor-visual-issue {
  color: #f8aebb;
  font-size: 0.82rem;
}
.profile-hero {
  padding: 19px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.profile-hero > div {
  display: flex;
  align-items: center;
  gap: 13px;
}
.profile-hero h2 {
  font-size: 1.9rem;
  line-height: 1.1;
}
.profile-hero p {
  color: var(--muted);
  margin-top: 4px;
}
.rank-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: 9px;
}
.rank-pill > span {
  display: grid;
}
.rank-pill small {
  color: var(--muted);
}
.after-panel {
  margin-top: 15px;
}
.profile-rooms {
  padding: 0 15px;
}
.profile-room {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.profile-room:last-child {
  border-bottom: 0;
}
.profile-study {
  min-width: min(33%, 225px);
  color: var(--muted);
  font-size: 0.81rem;
}
.profile-study .bar {
  margin-top: 6px;
}
.boot {
  display: grid;
  place-content: center;
  gap: 8px;
  min-height: 90dvh;
  text-align: center;
}
.boot strong {
  font: 700 42px var(--heading);
}
.boot strong span {
  color: var(--lime);
}
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 253px minmax(0, 1fr);
  }
  .rooms-rail {
    width: 54px;
  }
  .main-content {
    padding: 22px;
  }
  .hero {
    padding: 25px;
  }
  .topbar {
    padding: 0 22px;
  }
}
@media (max-width: 850px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 270px;
    transform: translateX(-105%);
    transition: transform 0.2s;
  }
  .nav-open .sidebar {
    transform: translateX(0);
  }
  .mobile-menu {
    display: inline-grid !important;
  }
  .nav-open .nav-backdrop {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 2;
    background: #0008;
  }
  .topbar {
    height: 58px;
  }
  .main-content {
    padding: 17px;
  }
  .dashboard-grid {
    gap: 10px;
  }
}
@media (max-width: 560px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .metric-grid {
    gap: 6px;
  }
  .metric {
    padding: 9px;
  }
  .metric-title {
    gap: 5px;
    align-items: flex-start;
    flex-direction: column;
    font-size: 0.74rem;
  }
  .metric > strong {
    font-size: 1.55rem;
  }
  .metric > small {
    font-size: 0.68rem;
  }
  .hero {
    min-height: 315px;
    padding: 19px;
  }
  .hero-art {
    width: 110%;
    right: -41%;
    opacity: 0.42;
  }
  .hero-tag {
    display: none;
  }
  .hero h1 {
    font-size: clamp(2.55rem, 11vw, 3.6rem);
  }
  .hero-content > p:not(.eyebrow) {
    max-width: 16rem;
  }
  .hero-content .actions {
    margin-top: 15px;
  }
  .topbar {
    padding: 0 9px;
  }
  .breadcrumbs {
    gap: 5px;
  }
  .top-actions {
    gap: 4px;
  }
  .page-heading {
    align-items: start;
    flex-direction: column;
  }
  .profile-hero h2 {
    font-size: 1.4rem;
  }
  .avatar.large {
    width: 53px;
    height: 53px;
    font-size: 1.2rem;
  }
  .profile-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .profile-room {
    align-items: flex-start;
    flex-direction: column;
  }
  .profile-study {
    width: 100%;
  }
}

.euclides {
  --rank-light: #ffe0b6;
  --rank-middle: #c7845d;
  --rank-shadow: #75432f;
  --rank-field: #75452f;
  --rank-deep: #2b1920;
}
.arquimedes {
  --rank-light: #bdffe9;
  --rank-middle: #64b5ad;
  --rank-shadow: #27677b;
  --rank-field: #285e60;
  --rank-deep: #122c39;
}
.euler {
  --rank-light: #fff1b6;
  --rank-middle: #eab965;
  --rank-shadow: #925433;
  --rank-field: #825123;
  --rank-deep: #382618;
}
.newton {
  --rank-light: #d5eaff;
  --rank-middle: #85abf4;
  --rank-shadow: #4451a4;
  --rank-field: #3f5aa4;
  --rank-deep: #182348;
}
.noether {
  --rank-light: #ffe1ff;
  --rank-middle: #d7a2fb;
  --rank-shadow: #7154ca;
  --rank-field: #754aab;
  --rank-deep: #2f2455;
}
.elo-shield {
  display: inline-grid;
  place-items: center;
  width: 33px;
  height: 35px;
  flex: none;
  color: var(--rank-light);
  filter: drop-shadow(
    0 2px 5px color-mix(in srgb, var(--rank-middle) 26%, transparent)
  );
}
.elo-shield svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.shield-rim-light {
  stop-color: var(--rank-light);
}
.shield-rim-middle {
  stop-color: var(--rank-middle);
}
.shield-rim-shadow {
  stop-color: var(--rank-shadow);
}
.shield-field-light {
  stop-color: var(--rank-field);
}
.shield-field-shadow {
  stop-color: var(--rank-deep);
}
.shield-edge {
  stroke: var(--rank-light);
  stroke-opacity: 0.68;
  stroke-width: 1.3;
}
.shield-inset {
  stroke: var(--rank-deep);
  stroke-width: 1.6;
}
.shield-facet {
  fill: var(--rank-light);
  fill-opacity: 0.105;
}
.shield-ornament {
  stroke: var(--rank-light);
  stroke-opacity: 0.7;
  stroke-width: 1.4;
  stroke-linejoin: round;
}
.shield-mark {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.shield-detail {
  stroke-width: 2.5;
}
.shield-symbol-solid {
  fill: var(--rank-deep);
}
.shield-jewel {
  stroke: var(--rank-shadow);
  stroke-width: 1.2;
  fill: var(--rank-light);
}
.elo-shield.medium {
  width: 42px;
  height: 45px;
}
.elo-shield.large {
  width: 58px;
  height: 62px;
}
.elo-shield.big {
  width: 83px;
  height: 88px;
}
.elo-metric {
  position: relative;
  isolation: isolate;
  background: radial-gradient(
    ellipse at 85% 65%,
    color-mix(in srgb, var(--rank-field) 70%, var(--panel)) 0%,
    color-mix(in srgb, var(--rank-deep) 48%, var(--panel)) 57%,
    var(--panel) 100%
  );
  border-color: color-mix(in srgb, var(--rank-middle) 29%, var(--border));
  padding-right: 93px;
  overflow: hidden;
}
.elo-metric .metric-title {
  color: color-mix(in srgb, var(--rank-light) 75%, var(--text));
}
.elo-metric > strong {
  color: var(--rank-light);
  margin-top: 3px;
}
.elo-metric .elo-shield {
  position: absolute;
  top: 50%;
  right: 13px;
  transform: translateY(-50%);
  z-index: -1;
}
.elo-value {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  text-align: right;
}
.elo-tier-label {
  display: block;
  color: var(--rank-light);
  font: 600 0.68rem/1.2 var(--body);
}
.rank-gallery-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 11px;
}
.rank-gallery-item {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 160px;
  padding: 7px 3px 12px;
  border: 1px solid color-mix(in srgb, var(--rank-middle) 30%, var(--border));
  border-radius: 9px;
  color: var(--rank-light);
  background: radial-gradient(
    ellipse at 50% 33%,
    color-mix(in srgb, var(--rank-field) 65%, var(--panel)),
    var(--panel) 83%
  );
  text-align: center;
}
.rank-gallery-item strong {
  font: 700 1.06rem/1.2 var(--heading);
}
.rank-gallery-item small {
  color: var(--muted);
  font-size: 0.72rem;
}
.elo-shield.showcase {
  width: min(96px, 100%);
  height: 102px;
  margin-bottom: 2px;
}
.rank-pill {
  color: var(--rank-light);
  background: color-mix(in srgb, var(--rank-deep) 55%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--rank-middle) 33%, var(--border));
}
.rank-pill strong {
  font: 700 1.44rem/1.05 var(--heading);
  white-space: nowrap;
}
.muted {
  color: var(--muted);
  font-size: 0.86rem;
}
.negative {
  color: #f8aebb !important;
}
input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #3c354a;
  border-radius: 8px;
  background: #14121d;
  padding: 9px 10px;
  min-height: 39px;
}
input::placeholder,
textarea::placeholder {
  color: #8d849d;
  opacity: 1;
}
input:read-only {
  color: #cdb8e9;
}
textarea {
  resize: vertical;
  min-height: 56px;
}
select {
  appearance: none;
  background: #14121d
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23c5b6d3' stroke-width='1.4' fill='none'/%3E%3C/svg%3E")
    right 9px center/16px no-repeat;
  padding-right: 30px;
}
select:disabled,
input:disabled {
  opacity: 0.5;
}
.stacked-form {
  display: grid;
  gap: 13px;
}
.stacked-form label:not(.inline-check),
.stack-label,
.editor-item label {
  display: grid;
  gap: 5px;
  font-size: 0.83rem;
  font-weight: 600;
  color: #e0d8eb;
}
.stacked-form label small {
  color: var(--muted);
  font-weight: 400;
  display: contents;
}
.form-error {
  padding: 8px 9px;
  background: #3c232d;
  color: #ffb6c2;
  border-radius: 7px;
  font-size: 0.82rem;
}
dialog {
  width: min(480px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  padding: 0;
  background: var(--panel);
  color: var(--text);
  border: 1px solid #4c3a61;
  border-radius: 14px;
  box-shadow: 0 19px 75px #000a;
}
.wide-dialog {
  width: min(800px, calc(100% - 24px));
}
.import-dialog {
  width: min(900px, calc(100% - 24px));
}
.import-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}
dialog::backdrop {
  background: #0b0813b8;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 13px;
  padding: 13px 17px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--panel);
  z-index: 1;
}
.dialog-heading h2 {
  font-size: 1.4rem;
  overflow-wrap: anywhere;
}
.dialog-body {
  padding: 16px 17px;
}
.dialog-actions {
  margin-top: 10px;
}
.dialog-body > .muted {
  margin-bottom: 9px;
}
.dialog-room-list {
  margin-bottom: 12px;
}
.access-result {
  display: grid;
  gap: 13px;
}
.invite-qr {
  display: block;
  justify-self: center;
  width: min(188px, 100%);
  height: auto;
  border-radius: 9px;
  background: white;
}
.auth-card > div > .form-error {
  margin-bottom: 10px;
}
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 1fr);
  min-height: 100dvh;
}
.auth-side {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  padding: clamp(22px, 5vw, 68px);
  min-height: 100%;
  background: linear-gradient(130deg, #171020 0%, #241434 60%, #321c51 100%);
  border-right: 1px solid #4a335b;
}
.auth-side h1 {
  font-size: clamp(2.5rem, 5.5vw, 5rem);
}
.auth-side p:not(.eyebrow) {
  color: #d1bedf;
  max-width: 380px;
}
.auth-art {
  position: absolute;
  right: -40%;
  top: 52%;
  transform: translateY(-70%);
  z-index: -1;
  width: 125%;
  opacity: 0.8;
}
.auth-card {
  display: grid;
  place-items: center;
  padding: 27px;
}
.auth-card > div {
  width: min(100%, 375px);
}
.auth-card .brand {
  display: none;
}
.auth-card h2 {
  font-size: 2.25rem;
  margin-bottom: 3px;
}
.auth-card p:not(.form-error) {
  color: var(--muted);
  margin-bottom: 15px;
}
.auth-card .feature-icon {
  margin-bottom: 10px;
}
.auth-toggle {
  font-size: 0.82rem;
  margin: 0 !important;
  color: var(--muted);
  text-align: center;
}
.text-btn,
.setup summary {
  color: #dbbbff;
  font-weight: 650;
  cursor: pointer;
}
.setup {
  font-size: 0.8rem;
}
.setup label {
  margin-top: 5px;
}
.auth-card .btn.quiet {
  margin-top: 5px;
}
.upload-zone {
  padding: 14px;
  text-align: center;
  justify-items: center;
  background: #211930;
  border: 1px dashed #684f86;
  border-radius: 8px;
  cursor: pointer;
}
.upload-zone.is-dragging,
.upload-zone:focus-within {
  border-color: var(--purple);
  background: var(--panel-hover);
}
.upload-zone svg {
  color: #d0adfb;
}
.upload-zone span {
  color: var(--muted);
  font-size: 0.77rem;
}
.upload-zone input[type="file"] {
  padding: 5px !important;
  max-width: 270px;
  font-size: 0.73rem;
  min-height: 32px;
}
.import-file-note,
.import-activity-status,
.import-upload-status {
  font-size: .82rem;
}
.import-files,
.import-events {
  margin: 0;
  padding: 0;
  list-style: none;
}
.import-files li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-block: 7px;
}
.import-files li > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.import-files small,
.import-job summary small {
  display: block;
  font-size: .76rem;
  color: var(--muted);
  margin-top: 2px;
}
.import-files small.negative {
  color: #ff9ba7;
}
.import-activity {
  border-left: 1px solid var(--border);
  padding-left: 18px;
}
.import-activity h3,
.import-activity-status {
  margin: 0 0 9px;
}
.import-job {
  border-bottom: 1px solid var(--border);
  padding-block: 9px;
}
.import-job summary {
  cursor: pointer;
  overflow-wrap: anywhere;
}
.import-job summary small {
  margin-inline-start: 17px;
}
.import-job > p,
.import-job > .btn {
  margin-top: 8px;
}
.import-events {
  max-height: 15rem;
  margin-top: 8px;
  overflow: auto;
  font-size: .78rem;
}
.import-events li {
  display: flex;
  gap: 8px;
  padding: 5px 2px;
}
.import-events time {
  flex: none;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.btn.danger {
  background: #743040;
  border-color: #a6495c;
  color: #ffebef;
}
.btn.danger:hover {
  background: #903e51;
}
@media (max-width: 720px) {
  .import-layout {
    grid-template-columns: 1fr;
  }
  .import-activity {
    border-top: 1px solid var(--border);
    border-left: 0;
    padding: 14px 0 0;
  }
}
.editor-item {
  margin: 0 0 13px;
  min-width: 0;
  border: 1px solid #3d344a;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
}
.editor-item legend {
  color: #cfb1ef;
  font-weight: 650;
  padding: 0 5px;
}
.editor-controls,
.editor-objective {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 8px;
  align-items: end;
}
.editor-objective {
  grid-template-columns: 1fr 1fr;
}
.editor-objective label:last-child {
  grid-column: 1/-1;
}
.editor-controls .btn {
  min-height: 39px;
}
.editor-item input,
.editor-item textarea {
  font-size: 0.8rem;
}
.ranked-grid {
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.8fr);
  margin-top: 0;
}
.filter-list {
  padding: 0 13px;
}
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--border);
}
.filter-row:last-child {
  border-bottom: 0;
}
.filter-row strong {
  font-size: 0.86rem;
}
.level-options {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.level-checkbox {
  position: relative;
  display: flex;
  cursor: pointer;
}
.level-checkbox input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.level-checkbox span {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #b7adc6;
  background: #211c2a;
  border: 1px solid #3b3449;
  border-radius: 7px;
  padding: 5px 7px;
  font-size: 0.73rem;
}
.level-checkbox small {
  font-size: 0.66rem;
  opacity: 0.8;
}
.level-checkbox input:checked + span {
  background: #273629;
  border-color: #56804c;
  color: #d0f3ba;
}
.level-checkbox.medium input:checked + span {
  background: #3d301e;
  border-color: #876b45;
  color: #f7dc9d;
}
.level-checkbox.hard input:checked + span {
  background: #3c2532;
  border-color: #895267;
  color: #ffc3d5;
}
.level-checkbox input:focus-visible + span {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}
.level-checkbox input:disabled + span {
  opacity: 0.55;
  cursor: not-allowed;
}
.ranked-actions {
  padding: 14px;
  display: grid;
  gap: 9px;
}
.ranked-actions > .btn {
  width: 100%;
}
.queue-size {
  margin: 0;
  padding: 0;
  border: 0;
}
.queue-size legend {
  padding: 0;
  margin-bottom: 5px;
  color: #e0d8eb;
  font-size: 0.83rem;
  font-weight: 600;
}
.queue-size > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}
.queue-size .level-checkbox span {
  min-height: 35px;
  width: 100%;
  justify-content: center;
  font-weight: 700;
}
.queue-size .level-checkbox input:checked + span {
  color: #e4cdfd;
  background: #35254c;
  border-color: #8363ad;
}
#member-picker-results:empty {
  display: none;
}
.member-results {
  margin: 0;
  padding: 3px;
  list-style: none;
  border: 1px solid var(--border);
  background: #15131e;
  border-radius: 8px;
  max-height: 180px;
  overflow-y: auto;
}
.member-results button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 6px;
  border-radius: 6px;
  text-align: left;
  font-size: 0.8rem;
}
.member-results button:hover,
.member-results button:focus-visible {
  background: var(--panel-hover);
}
.member-results button > svg {
  margin-left: auto;
  color: var(--purple);
}
.member-search-empty {
  padding: 3px;
}
.member-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.member-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 3px 6px 3px 3px;
  border: 1px solid #523b6b;
  border-radius: 7px;
  background: #292036;
  color: #e3d0f7;
  font-size: 0.75rem;
}
.member-chip:hover:not(:disabled) {
  background: #3c2b4e;
}
.member-chip .avatar {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  font-size: 0.59rem;
}
.selection-counter {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #211c2c;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 8px;
  font-size: 0.82rem;
}
.selection-counter strong {
  font: 700 1.82rem/1 var(--heading);
  color: var(--purple);
}
.separator {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
}
.separator::before,
.separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.queue-banner {
  margin-bottom: 14px;
  border: 1px solid #65518b;
  border-radius: 10px;
  background: #231b35;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.queue-banner > div:first-child {
  display: flex;
  gap: 8px;
  align-items: center;
}
.queue-banner small {
  display: block;
  color: var(--muted);
}
.queue-time {
  font: 700 1.1rem var(--heading);
  color: #e2caff;
  font-variant-numeric: tabular-nums;
}
.challenge-rows,
.admin-rows {
  padding: 0 13px;
}
.challenge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.challenge-row:last-child {
  border-bottom: 0;
}
.challenge-row p {
  color: var(--muted);
  font-size: 0.78rem;
}
.chat-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.36fr);
  gap: 13px;
  align-items: start;
}
.chat-panel {
  display: flex;
  flex-direction: column;
  min-height: 450px;
  height: calc(100dvh - 183px);
}
.messages {
  overflow: auto;
  flex: 1;
  min-height: 0;
  padding: 12px 14px;
}
.message {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 1px;
}
.message strong {
  font-size: 0.83rem;
}
.message time {
  font-size: 0.71rem;
  color: var(--muted);
  margin-left: 4px;
}
.message p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #dbd4e6;
  font-size: 0.88rem;
}
.message > div {
  min-width: 0;
}
.chat-form {
  display: flex;
  gap: 7px;
  border-top: 1px solid var(--border);
  padding: 10px;
}
.chat-form input {
  flex: 1;
}
.chat-people .list-row {
  padding: 6px 11px;
}
.chat-people .list-row strong {
  font-size: 0.8rem;
}
.match-board {
  max-width: 860px;
  margin: auto;
}
.match-players {
  display: grid;
  grid-template-columns: repeat(var(--players), minmax(0, 1fr));
  gap: 7px;
  padding: 8px;
  margin-bottom: 13px;
}
.score-player {
  display: flex;
  gap: 6px;
  min-width: 0;
  align-items: center;
  padding: 6px;
  border: 1px solid #352d43;
  border-radius: 7px;
  background: #211c2b;
}
.score-player.yours {
  border-color: #706048;
  background: #29251f;
}
.score-player > span:not(.avatar) {
  min-width: 0;
}
.match-players strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.85rem;
}
.match-players small {
  display: block;
  color: var(--muted);
  font-size: 0.71rem;
}
.match-players b {
  flex: none;
  margin-left: auto;
  color: var(--lime);
  font: 700 1.36rem var(--heading);
}
.result-board {
  width: min(100%, 370px);
  padding: 2px 9px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #1f1a29;
}
.result-board > div {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.result-board > div:last-child {
  border-bottom: 0;
}
.result-board b {
  margin-left: auto;
  color: var(--lime);
  font-family: var(--heading);
}
.result-board small {
  color: var(--muted);
  margin-left: 3px;
}
.match-question {
  padding: 19px;
}
.round-meta,
.round-meta > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 9px;
}
.round-meta strong {
  color: var(--lime);
  font: 700 1.28rem var(--heading);
  font-variant-numeric: tabular-nums;
}
.game-timer {
  margin: 8px 0 16px;
}
.game-timer > span {
  transition: width 0.1s linear;
}
.round-topic {
  color: var(--muted);
  font-size: 0.82rem;
}
.match-question h1.formula {
  font-size: clamp(1.35rem, 3vw, 2.3rem);
  margin: 5px 0 17px;
  letter-spacing: -0.04em;
}
.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-radius: 7px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 9px 10px;
  min-height: 49px;
  background: #241d30;
  border: 1px solid #463755;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.choice kbd {
  min-width: 26px;
  min-height: 26px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #392b4b;
  color: #ddc5fc;
  font: 700 0.78rem var(--body);
}
.choice:hover:not(:disabled),
.choice.chosen {
  background: #342548;
  border-color: #9974c6;
  opacity: 1;
}
.choice.correct {
  background: #283a2b;
  border-color: #789b66;
  color: #dcffbf;
  opacity: 1;
}
.round-feedback {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.83rem;
  min-height: 27px;
}
.countdown-screen,
.match-finished {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 9px;
  padding: 30px 15px;
}
.match-finished {
  max-width: 620px;
  margin: auto;
}
.countdown-screen h1,
.match-finished h1 {
  font-size: 2.5rem;
}
.countdown-screen p,
.match-finished p {
  color: var(--muted);
}
.countdown-screen > strong,
.match-finished > strong {
  font: 700 3.2rem/1.1 var(--heading);
  color: var(--lime);
}
.match-finished > strong span {
  color: var(--dim);
}
.match-finished .actions {
  margin: 5px 0;
}
.tag {
  border-radius: 6px;
  background: #302344;
  color: #e2c5ff;
  padding: 5px 8px;
  font-size: 0.78rem;
}
.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9;
  max-width: min(375px, calc(100% - 32px));
  padding: 10px 13px;
  background: #2b263a;
  color: var(--text);
  border: 1px solid #624c7a;
  border-radius: 9px;
  box-shadow: 0 8px 25px #0008;
  font-size: 0.86rem;
}
.toast.error {
  border-color: #99536c;
  color: #ffdce6;
  background: #3b2331;
}
@media (max-width: 1060px) {
  .filter-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .chat-grid {
    grid-template-columns: minmax(0, 1fr) minmax(174px, 0.4fr);
  }
}
@media (max-width: 700px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-side {
    display: none;
  }
  .auth-card .brand {
    display: inline-flex;
    margin-bottom: 17px;
  }
  .chat-grid {
    grid-template-columns: 1fr;
  }
  .chat-people {
    display: none;
  }
  .chat-panel {
    min-height: 360px;
    height: calc(100dvh - 145px);
  }
}
@media (max-width: 560px) {
  .rank-gallery-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rank-gallery-item {
    min-height: 124px;
  }
  .elo-shield.showcase {
    width: 66px;
    height: 70px;
  }
  .rank-pill {
    padding: 4px 8px;
  }
  .rank-pill strong {
    font-size: 1.2rem;
  }
  .ranked-grid,
  .choices {
    grid-template-columns: 1fr;
  }
  .match-question {
    padding: 12px;
  }
  .match-players {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .match-players .avatar {
    display: none;
  }
  .chat-form button span {
    display: none;
  }
  .challenge-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .editor-controls {
    grid-template-columns: 1fr 1fr;
  }
  .editor-controls button {
    grid-column: 1/-1;
    justify-self: start;
  }
  .admin-rows .list-row {
    flex-wrap: wrap;
  }
  .standing {
    gap: 5px;
  }
  .standing .row-end {
    display: none;
  }
  .bar {
    height: 6px;
  }
  .topbar .btn {
    min-height: 34px;
    padding: 6px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
  }
}
@media (max-width: 560px) {
  .hero + .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .elo-metric {
    grid-column: 1/-1;
    padding: 10px 58px 10px 12px;
  }
  .elo-metric .metric-title {
    min-height: 0;
  }
  .elo-metric .elo-shield {
    height: 53px;
    width: 49px;
    opacity: 1;
    right: 16px;
    top: 50%;
  }
  .hero + .metric-grid .metric-title {
    align-items: center;
    flex-direction: row;
  }
}
