/* Shared site chrome. This file is also bundled into the static progress page. */
:root {
  --type-micro: 12px;
  --type-label: 13px;
  --type-caption: 14px;
}

html {
  background: var(--background);
}

body {
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  width: min(calc(100% - var(--page-gutter) * 2), 1440px);
  height: 96px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(16, 18, 22, 0.12);
}

.brand {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.5;
}

/* The mark's 45-degree rotation expands its painted bounds by about 7px. */
.brand > .spark-mark {
  margin-inline: 7px;
}

.spark-mark {
  position: relative;
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  rotate: 45deg;
  transform-origin: center;
  transition:
    rotate 520ms cubic-bezier(0.22, 1, 0.36, 1),
    scale 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.spark-mark > span {
  display: block;
  border-radius: 100% 14% 100% 100%;
  background: #2a4ef6;
}

.spark-mark > span:nth-child(2) {
  background: #ff7a5c;
}

.spark-mark > span:nth-child(3) {
  background: #a3d840;
}

.spark-mark > span:nth-child(4) {
  background: #101216;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 4px;
  color: #545650;
  font-size: 15px;
  line-height: 1.5;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #101216;
}

.site-nav svg {
  width: 14px;
  height: 14px;
}

.site-header-action {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(16, 18, 22, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  padding: 0 20px;
  color: #101216;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  outline: none;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    translate 120ms ease;
}

.site-header-action svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header-action:hover,
.site-header-action:focus-visible {
  border-color: rgba(42, 78, 246, 0.35);
  background: rgba(255, 255, 255, 0.8);
  color: #2a4ef6;
}

.site-header-action:focus-visible {
  box-shadow: 0 0 0 3px rgba(42, 78, 246, 0.2);
}

.site-header-action:hover svg {
  transform: translateX(3px);
}

.site-header-action:active {
  translate: 0 1px;
}

.brand:hover .spark-mark,
.spark-mark:hover {
  rotate: 135deg;
  scale: 1.08;
}

.brand:active .spark-mark,
.spark-mark:active {
  rotate: 225deg;
  scale: 0.94;
  transition-duration: 180ms;
}

.brand:focus-visible {
  border-radius: 6px;
  outline: 3px solid rgba(42, 78, 246, 0.2);
  outline-offset: 3px;
}

.site-footer {
  display: grid;
  width: min(calc(100% - var(--page-gutter) * 2), 1440px);
  min-height: 120px;
  margin: 0 auto;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  border-top: 1px solid rgba(16, 18, 22, 0.14);
}

.site-footer > div {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  color: #656761;
  font-size: var(--type-caption);
  line-height: 1.5;
}

.site-footer > div a:hover {
  color: #2a4ef6;
}

@media (max-width: 767px) {
  .site-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer {
    width: min(100% - 28px, 1440px);
  }

  .site-header {
    height: 80px;
  }

  .site-header-action {
    min-height: 40px;
    padding: 0 16px;
    font-size: 13px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 42px 0;
    text-align: left;
  }

  .site-footer > div {
    justify-content: flex-start;
  }
}

@font-face {
  font-family: 'Spark Google Sans Flex';
  src: url('/fonts/google-sans-flex-latin-v1.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

@font-face {
  font-family: 'Spark Noto Sans SC';
  src: url('/fonts/noto-sans-sc-spark-v1.woff2?v=2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Spark Geist Mono';
  src: url('/fonts/geist-mono-latin-v1.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --background: #f8f7f2;
  --ink: #101216;
  --muted: #686a64;
  --line: rgba(16, 18, 22, 0.14);
  --blue: #2a4ef6;
  --blue-soft: #dce5ff;
  --rdma: #08766c;
  --rdma-soft: #ddf3ec;
  --coral: #ff7a5c;
  --lime: #a3d840;
  --page-gutter: clamp(28px, 3.75vw, 60px);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family:
    'Spark Google Sans Flex', 'Spark Noto Sans SC', 'PingFang SC',
    'Microsoft YaHei', sans-serif;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

::selection {
  background: #cbd5ff;
  color: var(--ink);
}

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

.kicker,
.direction-index,
.meta-label {
  font-family: 'Spark Geist Mono', ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

main {
  width: min(calc(100% - var(--page-gutter) * 2), 1440px);
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  align-items: end;
  gap: clamp(40px, 7vw, 120px);
  padding: clamp(48px, 5vw, 72px) 0 clamp(40px, 4vw, 58px);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 36px;
  font-size: var(--type-label);
  font-weight: 600;
}

.kicker > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 6px rgba(163, 216, 64, 0.15);
}

h1 {
  margin: 0;
  font-size: clamp(42px, 4.1vw, 62px);
  font-weight: 470;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.intro-copy {
  max-width: 470px;
  margin: 0 0 4px;
  color: #60625d;
  font-size: 16px;
  line-height: 1.82;
}

.progress-shell {
  margin-bottom: clamp(72px, 8vw, 120px);
}

.direction-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px 30px 0 0;
  background: var(--line);
}

.direction-tab {
  display: grid;
  min-height: 112px;
  cursor: pointer;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 18px;
  border: 0;
  background: rgba(255, 255, 255, 0.7);
  padding: 22px 26px;
  text-align: left;
  transition:
    color 220ms ease,
    background-color 300ms ease;
}

.direction-tab[data-direction='os'].is-active {
  background: var(--blue-soft);
}

.direction-tab[data-direction='rdma'].is-active {
  background: var(--rdma-soft);
}

.direction-tab:not(.is-active):hover {
  background: #fff;
}

.direction-tab:focus-visible,
.stage-tab:focus-visible,
.pagination button:focus-visible,
.rdma-message a:focus-visible {
  outline: 3px solid rgba(42, 78, 246, 0.22);
  outline-offset: -3px;
}

.direction-index {
  align-self: start;
  color: #666964;
  font-size: var(--type-label);
  font-weight: 600;
}

.direction-name {
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 560;
  letter-spacing: 0.025em;
  line-height: 0.9;
}

.direction-panel {
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 30px 30px;
  background: rgba(255, 255, 255, 0.72);
}

.direction-panel[hidden] {
  display: none;
}

.rank-toolbar {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 20px 28px;
}

.stage-tabs {
  display: inline-flex;
  gap: 5px;
  border-radius: 999px;
  background: #ecebe5;
  padding: 4px;
}

.stage-tab {
  min-width: 96px;
  min-height: 42px;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0 18px;
  color: #646660;
  font-size: 14px;
  font-weight: 590;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.stage-tab.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 3px 12px rgba(16, 18, 22, 0.07);
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-field {
  display: flex;
  width: min(300px, 32vw);
  min-height: 48px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0 16px;
  color: #747670;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.search-field:focus-within {
  border-color: rgba(42, 78, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(42, 78, 246, 0.1);
}

.search-field svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.search-field input::placeholder {
  color: #8b8d87;
}

.pagination button {
  min-height: 46px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0 17px;
  font-size: 13px;
  font-weight: 580;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    background-color 180ms ease;
}

.pagination button:not(:disabled):hover {
  transform: translateY(-2px);
  border-color: rgba(42, 78, 246, 0.35);
  color: var(--blue);
}

.rank-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  border-bottom: 1px solid var(--line);
}

.rank-meta > div {
  display: grid;
  min-height: 96px;
  align-content: center;
  gap: 7px;
  border-right: 1px solid var(--line);
  padding: 20px 28px;
}

.rank-meta > div:last-child {
  border-right: 0;
}

.meta-label {
  color: #777973;
  font-size: var(--type-label);
  font-weight: 600;
}

.rank-meta strong {
  font-size: 17px;
  font-weight: 570;
  letter-spacing: -0.025em;
}

.update-interval {
  color: #777973;
  font-size: var(--type-caption);
}

.table-frame {
  overflow-x: auto;
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.rank-table th {
  height: 58px;
  border-bottom: 1px solid var(--line);
  padding: 0 18px;
  color: #777973;
  font-family: 'Spark Geist Mono', ui-monospace, monospace;
  font-size: var(--type-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.rank-table td {
  height: 82px;
  border-bottom: 1px solid rgba(16, 18, 22, 0.1);
  padding: 14px 18px;
  font-size: 14px;
  vertical-align: middle;
}

.rank-table tbody tr {
  transition: background-color 180ms ease;
}

.rank-table tbody tr:not(.loading-row):not(.empty-state):hover {
  background: rgba(220, 229, 255, 0.36);
}

.rank-table tbody tr:last-child td {
  border-bottom: 0;
}

.rank-table th:first-child,
.rank-table td:first-child {
  width: 88px;
  padding-left: 28px;
}

.rank-table th:nth-child(2),
.rank-table td:nth-child(2) {
  width: 25%;
}

.rank-table th:nth-child(3),
.rank-table td:nth-child(3) {
  width: 150px;
}

.rank-number {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: 'Spark Geist Mono', ui-monospace, monospace;
  font-size: var(--type-label);
  font-weight: 650;
}

tr[data-rank='1'] .rank-number {
  border-color: transparent;
  background: var(--blue);
  color: #fff;
}

tr[data-rank='2'] .rank-number {
  border-color: transparent;
  background: var(--rdma);
  color: #fff;
}

tr[data-rank='3'] .rank-number {
  border-color: transparent;
  background: var(--lime);
}

.participant {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.participant-mark {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: #ecebe5;
  color: #555751;
  font-family: 'Spark Geist Mono', ui-monospace, monospace;
  font-size: var(--type-micro);
  font-weight: 650;
  text-transform: uppercase;
}

.participant-mark img {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  background: #ecebe5;
  object-fit: cover;
}

.participant strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 590;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-value {
  font-family: 'Spark Geist Mono', ui-monospace, monospace;
  font-size: 13px;
  font-weight: 600;
}

.score-value span {
  color: #8a8c86;
  font-size: var(--type-micro);
  font-weight: 500;
}

.progress-cell {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) 42px;
  align-items: center;
  gap: 12px;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8e7e1;
}

.progress-track i {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.progress-cell span {
  color: #666963;
  font-family: 'Spark Geist Mono', ui-monospace, monospace;
  font-size: var(--type-micro);
}

.chapter-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(42px, 1fr));
  gap: 6px;
}

.chapter-list span {
  display: grid;
  min-height: 44px;
  place-content: center;
  gap: 2px;
  border-radius: 10px;
  background: #f0efe9;
  color: #666963;
  font-family: 'Spark Geist Mono', ui-monospace, monospace;
  font-size: var(--type-micro);
  text-align: center;
}

.chapter-list b {
  color: var(--ink);
  font-size: var(--type-micro);
}

.time-value {
  color: #62645f;
  font-size: var(--type-caption);
  white-space: nowrap;
}

.loading-row td {
  height: 300px;
  padding: 46px 8%;
}

.loading-row td > span {
  display: block;
}

.loading-line {
  height: 18px;
  margin: 22px 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ecebe5, #f7f6f1, #ecebe5);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.loading-line:nth-child(2) {
  width: 76%;
}

.loading-line:nth-child(3) {
  width: 88%;
}

.empty-state td {
  height: 260px;
  padding: 50px 24px;
  color: #696b65;
  text-align: center;
}

.empty-state strong,
.empty-state span {
  display: block;
}

.empty-state strong {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 550;
  letter-spacing: -0.035em;
}

.empty-state span {
  font-size: 13px;
}

.pagination {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 16px 28px;
  color: #6e706a;
  font-size: var(--type-caption);
}

.pagination > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pagination button {
  min-height: 40px;
  padding: 0 15px;
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

#page-label {
  min-width: 58px;
  font-family: 'Spark Geist Mono', ui-monospace, monospace;
  font-size: var(--type-micro);
  text-align: center;
}

.rdma-panel {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  background: var(--rdma-soft);
}

.rdma-signal {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: clamp(24px, 4vw, 54px);
  opacity: 0.42;
  pointer-events: none;
  rotate: -7deg;
  scale: 1.1;
}

.rdma-signal span {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rdma), transparent);
}

.rdma-signal span:nth-child(2),
.rdma-signal span:nth-child(4) {
  translate: 12% 0;
}

.rdma-message {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(92px, 10vw, 138px) 0;
  text-align: center;
}

.rdma-message > .direction-index {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(8, 118, 108, 0.24);
  border-radius: 50%;
}

.rdma-message .kicker {
  justify-content: center;
  margin: 24px 0 18px;
  color: #52736d;
}

.rdma-message h2 {
  margin: 0;
  font-size: clamp(30px, 3.3vw, 44px);
  font-weight: 540;
  letter-spacing: -0.035em;
}

.rdma-message > p:last-of-type {
  max-width: 560px;
  margin: 24px auto 30px;
  color: #526761;
  font-size: 15px;
  line-height: 1.8;
}

.rdma-message a {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--rdma);
  padding: 0 22px;
  color: #fff;
  font-size: 14px;
  font-weight: 590;
}

@keyframes shimmer {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -80% 0;
  }
}

@media (max-width: 900px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .intro-copy {
    max-width: 620px;
  }

  .direction-tab {
    min-height: 150px;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 25px;
  }

  .direction-index {
    grid-column: auto;
  }

  .rank-table th:nth-child(2),
  .rank-table td:nth-child(2) {
    width: 210px;
  }

  .rank-table {
    min-width: 820px;
  }
}

@media (max-width: 680px) {
  main {
    width: min(100% - 28px, 1440px);
  }

  .intro {
    padding: 62px 0 46px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 48px);
  }

  .intro-copy {
    font-size: 15px;
  }

  .direction-tabs {
    border-radius: 24px 24px 0 0;
  }

  .direction-tab {
    min-height: 108px;
    padding: 20px;
  }

  .direction-name {
    font-size: clamp(30px, 9vw, 36px);
  }

  .direction-panel {
    border-radius: 0 0 24px 24px;
  }

  .rank-toolbar {
    display: grid;
    min-height: auto;
    padding: 18px;
  }

  .stage-tabs {
    width: 100%;
  }

  .stage-tab {
    width: 50%;
  }

  .toolbar-actions {
    width: 100%;
  }

  .search-field {
    width: 100%;
  }

  .rank-meta {
    grid-template-columns: 1fr 1fr;
  }

  .rank-meta > div {
    min-height: 82px;
    padding: 16px 18px;
  }

  .rank-meta > div:nth-child(2) {
    border-right: 0;
  }

  .rank-meta > div:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }

  .table-frame {
    overflow: visible;
  }

  .rank-table,
  .rank-table tbody,
  .rank-table tr,
  .rank-table td {
    display: block;
    width: 100%;
  }

  .rank-table {
    min-width: 0;
  }

  .rank-table thead {
    display: none;
  }

  .rank-table tbody {
    padding: 8px 18px;
  }

  .rank-table tbody tr {
    position: relative;
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
  }

  .rank-table td,
  .rank-table th:first-child,
  .rank-table td:first-child,
  .rank-table th:nth-child(2),
  .rank-table td:nth-child(2),
  .rank-table th:nth-child(3),
  .rank-table td:nth-child(3) {
    width: auto;
    height: auto;
    border: 0;
    padding: 0;
  }

  .rank-table td[data-label]::before {
    display: block;
    margin-bottom: 6px;
    color: #858781;
    content: attr(data-label);
    font-family: 'Spark Geist Mono', ui-monospace, monospace;
    font-size: var(--type-micro);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .rank-table .cell-rank {
    grid-row: 1 / 3;
  }

  .rank-table .cell-participant {
    grid-column: 2 / 4;
  }

  .rank-table .cell-score {
    grid-column: 2;
  }

  .rank-table .cell-progress,
  .rank-table .cell-chapters {
    grid-column: 2 / 4;
  }

  .rank-table .cell-time {
    grid-column: 3;
    grid-row: 2;
    text-align: right;
  }

  .rank-number {
    width: 42px;
    height: 42px;
  }

  .participant-mark {
    display: none;
  }

  .progress-cell {
    grid-template-columns: minmax(80px, 1fr) 38px;
  }

  .chapter-list {
    grid-template-columns: repeat(5, 1fr);
  }

  .loading-row {
    display: block !important;
  }

  .loading-row td,
  .empty-state td {
    height: 260px;
    padding: 40px 18px;
  }

  .empty-state {
    display: block !important;
    border-bottom: 0 !important;
  }

  .pagination {
    display: grid;
    justify-content: stretch;
    padding: 18px;
  }

  .pagination > div {
    justify-content: space-between;
  }

  .pagination button {
    min-width: 92px;
  }

  .rdma-panel {
    min-height: 480px;
  }

  .rdma-message {
    width: min(100% - 36px, 560px);
  }

  .rdma-message h2 {
    font-size: clamp(30px, 9.5vw, 38px);
  }
}

@media (max-width: 540px) {
  .direction-tab {
    min-height: 118px;
    grid-template-columns: 1fr;
    align-content: space-between;
    gap: 8px;
    padding: 17px;
  }

  .direction-index {
    grid-column: auto;
  }

  .direction-name {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
