@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/instrument-sans-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/instrument-sans-latin-ext.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --background: #000;
  --panel: #0f0f0f;
  --line: #2a2a2a;
  --text: #f4f4f4;
  --muted: #a9a9a9;
  --font: 'Instrument Sans', 'Segoe UI', 'Malgun Gothic', sans-serif;
  --motion-ease: cubic-bezier(.32, .72, 0, 1);
  background: var(--background);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--text); background: var(--background); font: 1rem/1.55 var(--font); }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.15; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
svg { width: 1.15em; height: 1.15em; flex: none; }
.icon-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 2px solid #d8d8d8; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skeleton { display: block; border-radius: .45rem; background: var(--skeleton-color, #2b2b2b); }
.skeleton-label { width: min(100%, 6rem); height: .85rem; margin-block: .27rem; }
.skeleton-help { width: min(100%, 8rem); height: .65rem; margin-block: .28rem; }
.skeleton-title { width: min(80%, 12rem); height: 1.1rem; margin-block: .28rem; }
.skeleton-line { width: min(90%, 15rem); height: .72rem; margin-block: .2rem; }
.skeleton-control, .skeleton-button { height: 2.65rem; border-radius: .7rem; }
.skeleton-button { width: 7.5rem; }
.skeleton-square { flex: none; width: 2.5rem; height: 2.5rem; border-radius: .75rem; }
.skeleton-circle { flex: none; width: 2.05rem; height: 2.05rem; border-radius: 50%; }
.skeleton-textarea { height: 7.45rem; border-radius: .7rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 2.65rem;
  padding: .55rem .95rem;
  border: 1px solid transparent;
  border-radius: .85rem;
  background: transparent;
  font-size: .88rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .2s var(--motion-ease);
}

.button:active:not(:disabled) { transform: scale(.97); }
.button svg { transition: transform .22s var(--motion-ease); }
.button:is(:hover, :focus-visible):not(:disabled) svg { transform: translateY(-1px); }

.glass {
  position: relative;
  isolation: isolate;
  border: 1px solid #ffffff1f;
  background:
    radial-gradient(120% 98% at 18% -40%, #ffffff24, transparent 90%),
    linear-gradient(176deg, #ffffff0a, transparent 48%, #00000024),
    var(--glass-fill, #ffffff0d);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 2px #ffffff14, inset 0 -3px 7px #ffffff08;
}

@supports (mask-composite: exclude) {
  .glass::before {
    content: '';
    position: absolute;
    inset: -1px;
    padding: 1px;
    border-radius: inherit;
    background: conic-gradient(from 26deg, #ffffff0b, #ffffff39 32%, #ffffff5c 48%, #ffffff08 68%, #ffffff66 87%, #ffffff0b);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
  }
}

.glass.button:is(:hover, :focus-visible) {
  border-color: #ffffff40;
  box-shadow: inset 0 1px 2px #ffffff28, inset 0 -3px 7px #ffffff12;
}

.login-button { --glass-fill: #ffffff20; }
.outline-button { background: #ffffff06; border-color: #3b3b3b; }
.outline-button:is(:hover, :focus-visible), .account-link:is(:hover, :focus-visible) { border-color: #606060; background: #ffffff12; }
.text-button { color: var(--muted); }
.text-button:is(:hover, :focus-visible) { color: var(--text); background: #ffffff0d; }
.primary-button { background: #f1f1f1; color: #111; border-color: #f1f1f1; }
.primary-button:is(:hover, :focus-visible) { background: #d9d9d9; }

.home {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
}

.home-sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 53% 44% at 50% 49%, #00000030, #000 83%);
}

.home-content {
  position: relative;
  z-index: 1;
  width: min(94%, 45rem);
  margin-top: -11vh;
  padding-bottom: 3rem;
  text-align: center;
}

.logo-slot { display: grid; justify-items: center; align-items: end; min-height: clamp(3.5rem, 10vh, 6.5rem); margin-bottom: 1rem; }
.logo-slot img { display: block; max-width: min(65vw, 18rem); max-height: 8rem; object-fit: contain; }
.home h1 {
  font-size: clamp(3rem, 8.5vw, 6rem);
  letter-spacing: -.063em;
  font-weight: 570;
  line-height: 1.05;
}

.home-actions { display: flex; justify-content: center; gap: .7rem; margin: 1.9rem auto 0; }
.home-actions .button { min-width: 8.75rem; min-height: 3.3rem; border-radius: 4rem; font-size: .95rem; }
.home-discord-link { display: inline-flex; align-items: center; gap: .46rem; min-height: 2.75rem; margin-top: .72rem; padding: 0 .45rem; border-radius: .5rem; color: var(--muted); font-size: .87rem; transition: color .18s ease; }
.home-discord-link:is(:hover, :focus-visible) { color: var(--text); }
.skeleton-login { width: 8.75rem; height: 3.3rem; border-radius: 4rem; }
.home-status { position: absolute; width: 100%; margin-top: 1.25rem; color: var(--muted); font-size: .9rem; }

.dashboard { min-height: 100svh; }
.welcome-confetti { position: fixed; z-index: 3; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.topbar { border-bottom: 1px solid #1e1e1e; }
.topbar-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: 5.1rem;
  width: min(100% - 3rem, 78rem);
  gap: 1rem;
  margin: auto;
}

.wordmark { width: fit-content; font-size: 1.22rem; font-weight: 650; letter-spacing: -.045em; }
.topnav {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: .25rem;
  padding: .3rem;
  border-radius: 2rem;
}
.topnav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .52rem .9rem;
  border: 1px solid transparent;
  border-radius: 2rem;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color .18s ease;
}

.topnav a[aria-current='page'] { border-color: #ffffff24; background: #ffffff14; color: var(--text); }
.topnav a:is(:hover, :focus-visible) { color: var(--text); }
.nav-indicator { display: none; }

@supports selector(:has(*)) {
  .nav-indicator {
    position: absolute;
    display: block;
    inset: .3rem auto .3rem .3rem;
    width: calc((100% - 1.1rem) / 3);
    border: 1px solid #ffffff28;
    border-radius: 2rem;
    background: linear-gradient(180deg, #ffffff13, #ffffff08);
    box-shadow: inset 0 1px 1px #ffffff13;
    pointer-events: none;
    transform: translateX(var(--nav-offset, 0%));
    transition: transform .28s var(--motion-ease);
  }

  .topnav a[aria-current='page'] { border-color: transparent; background: transparent; box-shadow: none; }
  .topnav:has(#nav-profile[aria-current='page']) { --nav-offset: calc(100% + .25rem); }
  .topnav:has(#nav-rankings[aria-current='page']) { --nav-offset: calc(200% + .5rem); }

  @media (hover: hover) {
    .topnav:has(#nav-profile:hover) { --nav-offset: calc(100% + .25rem); }
    .topnav:has(#nav-rankings:hover) { --nav-offset: calc(200% + .5rem); }
    .topnav:has(#nav-custom:hover) { --nav-offset: 0%; }
  }

  .topnav:has(#nav-profile:focus-visible) { --nav-offset: calc(100% + .25rem); }
  .topnav:has(#nav-rankings:focus-visible) { --nav-offset: calc(200% + .5rem); }
  .topnav:has(#nav-custom:focus-visible) { --nav-offset: 0%; }
}

.account-link { max-width: 100%; color: var(--text); justify-self: end; min-width: 0; border-radius: 2rem; }
.account-link span { overflow: hidden; text-overflow: ellipsis; }
.skeleton-account { width: min(100%, 5.5rem); height: .85rem; margin-right: .95rem; justify-self: end; }

.workspace { width: min(100% - 3rem, 78rem); margin: 0 auto; padding: 3.7rem 0 4rem; }
.page-intro { margin-bottom: 2rem; }
.page-intro h1 { font-size: clamp(2.7rem, 5.5vw, 4.45rem); font-weight: 590; letter-spacing: -.06em; }
.page-intro p { margin-top: .7rem; color: var(--muted); }
.intro-title { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.premium-label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px solid #3a3a3a;
  border-radius: 2rem;
  padding: .23rem .68rem;
  color: #d7d7d7;
  background: #161616;
  font-size: .8rem;
  font-weight: 550;
}

.editor-layout { display: grid; grid-template-columns: minmax(17rem, .85fr) minmax(0, 1.55fr); gap: 1.3rem; align-items: start; }
.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--panel);
}

.panel-heading { padding: 1.33rem 1.4rem 1.07rem; }
.panel-heading h2, .admin-card h2 { font-size: 1.06rem; font-weight: 650; }
.preview-heading { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding-top: .94rem; padding-bottom: .85rem; }
.replay-button { min-height: 2.35rem; padding: .4rem .7rem; }
.replay-button svg { color: #d0d0d0; }

.access-panel, .profile-empty {
  display: grid;
  min-height: 20.5rem;
  justify-items: center;
  align-content: center;
  gap: .85rem;
  padding: 1.4rem;
  text-align: center;
}

.access-panel { margin: 0 1.15rem 1.15rem; border: 1px solid var(--line); border-radius: .95rem; background: #121212; }
.access-panel h3 { font-size: 1.12rem; }
.access-panel p, .profile-empty p { max-width: 26ch; color: var(--muted); font-size: .9rem; }
.access-panel .button, .profile-empty .button { margin-top: .35rem; }
.access-icon {
  display: inline-grid;
  flex: none;
  width: 3.3rem;
  height: 3.3rem;
  place-items: center;
  border: 1px solid #383838;
  border-radius: .95rem;
  background: #202020;
  color: #d9d9d9;
}
.access-icon svg { width: 1.45rem; height: 1.45rem; }

.fields { display: grid; min-inline-size: 0; margin: 0; border: 0; padding: .12rem 1.4rem 1.15rem; gap: 1rem; }
.field { display: grid; gap: .42rem; min-width: 0; }
.field label, .field > span { color: #e5e5e5; font-size: .9rem; font-weight: 600; }
.field input, .field textarea {
  width: 100%;
  min-height: 2.65rem;
  border: 1px solid #363636;
  border-radius: .7rem;
  background: #141414;
  color: var(--text);
  padding: .55rem .75rem;
}
.field input::placeholder, .field textarea::placeholder { color: #8b8b8b; }
.field textarea { resize: vertical; min-height: 6rem; }
.field small, .form-status { color: var(--muted); font-size: .8rem; }
.input-with-icon { position: relative; }
.input-with-icon svg { position: absolute; left: .75rem; top: .78rem; color: #9d9d9d; pointer-events: none; }
.input-with-icon input { padding-left: 2.3rem; }
.upload-row { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.form-footer { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; padding: 1rem 1.4rem; border-top: 1px solid var(--line); }
.form-footer .form-status { margin-right: auto; }

.simulation {
  display: grid;
  grid-template-columns: 3.6rem minmax(7rem, .83fr) minmax(0, 2fr);
  height: 27rem;
  margin: 0 1.05rem;
  border: 1px solid #363636;
  border-radius: .85rem;
  overflow: hidden;
  background: #1a1a1a;
}

.bot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;  
  object-position: center;
}

.sim-rail { background: #131313; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: .65rem; padding-top: .7rem; }
.server-icon, .rail-decoration, .bot-avatar, .welcome-hash {
  display: grid;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  color: #dedede;
  border: 1px solid #434343;
  border-radius: .75rem;
  background: #303030;
  overflow: hidden;
}
.server-icon img { width: 100%; height: 100%; object-fit: cover; }
.small-server-icon { width: 2.65rem; height: 2.65rem; }
.rail-separator { width: 1.65rem; border-top: 1px solid #363636; }
.rail-decoration { background: #202020; color: #aaa; border-color: #303030; }
.sim-channels { background: #191919; min-width: 0; }
.sim-server, .sim-channel-title {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 3rem;
  gap: .5rem;
  padding: .65rem .75rem;
  border-bottom: 1px solid #363636;
  color: var(--text);
  font-weight: 650;
  font-size: .87rem;
}
.sim-server span, .sim-channel span, .sim-channel-title span, .sim-composer span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.channel-list { padding: .85rem .45rem; }
.channel-list p { margin: 0 0 .38rem .36rem; color: var(--muted); font-size: .72rem; font-weight: 600; }
.sim-channel { display: flex; align-items: center; gap: .3rem; min-width: 0; min-height: 1.95rem; padding: .23rem .32rem; color: #b4b4b4; border: 1px solid transparent; border-radius: .38rem; font-size: .83rem; }
.sim-active { color: var(--text); background: #333; border-color: #ffffff12; }
.sim-chat { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; background: #222; border-left: 1px solid var(--line); }
.sim-channel-title { background: #252525; }
.sim-channel-title svg { color: #b5b5b5; }
.sim-chat-content { overflow-y: auto; padding: 1rem .85rem .85rem; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.sim-welcome { display: grid; gap: .35rem; margin-top: auto; padding-bottom: .9rem; border-bottom: 1px solid #3a3a3a; overflow-wrap: anywhere; }
.welcome-hash { margin-bottom: .2rem; border-radius: 50%; background: #303030; color: #dedede; border-color: #444; }
.sim-welcome strong { font-size: clamp(.91rem, 1.4vw, 1.17rem); line-height: 1.25; }
.sim-welcome small { font-size: .76rem; color: #b4b4b4; }
.message-preview { display: flex; gap: .55rem; min-width: 0; }
.bot-avatar { width: 2.05rem; height: 2.05rem; border-radius: 50%; }
.message-content { min-width: 0; }
.message-author { display: flex; align-items: center; gap: .35rem; font-size: .84rem; font-weight: 650; }
.message-author span { padding: .04rem .27rem; border-radius: .24rem; background: #424242; color: #f1f1f1; font-size: .6rem; }
.message-content p { margin-top: .18rem; color: #dedede; font-size: .81rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.sim-composer { display: flex; align-items: center; gap: .45rem; min-width: 0; margin: 0 .83rem .85rem; padding: .48rem .5rem; border-radius: .48rem; background: #2c2c2c; color: #b8b8b8; font-size: .76rem; }
.preview-feedback { margin: .66rem 1.15rem 0; min-height: 1.95rem; color: var(--muted); font-size: .8rem; }

#preview-skeleton { --skeleton-color: #383838; }
.skeleton-channels { display: grid; gap: .55rem; padding-top: 1rem; }
.skeleton-channels .skeleton-label:nth-child(2) { width: min(75%, 4.1rem); }
#preview-skeleton .sim-welcome .skeleton-square { margin-bottom: .2rem; border-radius: 50%; }
.skeleton-message { flex: 1; min-width: 0; }
.skeleton-message .skeleton-label { width: min(40%, 3rem); }
#preview-skeleton .sim-composer { height: 2.15rem; background: var(--skeleton-color); }

.is-replaying .sim-active { animation: show-channel .4s .12s both var(--motion-ease); }
.is-replaying :is(.sim-channel-title, .sim-welcome, .sim-composer) { animation: show-chat .32s .39s both var(--motion-ease); }
.is-replaying .message-preview { animation: show-chat .34s .63s both var(--motion-ease); }
@keyframes show-channel {
  0% { opacity: 0; transform: translateX(-7px); }
  100% { opacity: 1; transform: none; }
}
@keyframes show-chat {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: none; }
}

.profile-view { max-width: 49rem; margin-inline: auto; }
.profile-empty p { max-width: 35ch; }
.identity-card { overflow: hidden; }
.identity-banner {
  height: 7.75rem;
  background: #252525;
}
.identity-body { position: relative; padding: 0 1.55rem 1.45rem; }
.profile-avatar { display: block; width: 5.55rem; height: 5.55rem; margin-top: -2.8rem; border: .32rem solid var(--panel); border-radius: 50%; background: #262626; }
.identity-name { margin: .8rem 0 .95rem; padding-right: 8rem; overflow-wrap: anywhere; }
.identity-name h2 { font-size: 1.8rem; }
.identity-name p { margin-top: .24rem; color: var(--muted); }
.user-id { padding: .72rem .85rem; border: 1px solid var(--line); border-radius: .75rem; background: #141414; overflow-wrap: anywhere; }
.user-id dt { margin-bottom: .15rem; color: var(--muted); font-size: .82rem; }
.user-id dd { font-variant-numeric: tabular-nums; }
.logout-button { position: absolute; top: 3.55rem; right: 1.55rem; }
#profile-feedback:empty { display: none; }
#profile-feedback { margin-top: .65rem; }
.admin-card { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; padding: 1.25rem 1.55rem; }
.admin-card p { min-height: 1.25em; margin-top: .17rem; font: 600 1.8rem/1.25 var(--font); font-variant-numeric: tabular-nums; }
.admin-card button { margin-top: .5rem; }
.join-feedback { margin-bottom: 1rem; padding: .8rem 1rem; color: var(--text); font-size: .9rem; }
.identity-banner.skeleton { border-radius: 0; }
.profile-avatar.skeleton { background: var(--skeleton-color, #2b2b2b); }
.skeleton-name { display: grid; gap: .3rem; padding-top: .25rem; }
.skeleton-name .skeleton-title { height: 1.5rem; }
.skeleton-id { display: grid; gap: .15rem; }

.rankings-view { max-width: 62rem; margin-inline: auto; }
.rankings-results { overflow: clip; }
.rankings-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.rankings-table :is(th, td) { padding: .95rem 1rem; text-align: left; overflow-wrap: anywhere; }
.rankings-table thead { background: #151515; color: var(--muted); font-size: .82rem; }
.rankings-table thead th:first-child { width: 4.8rem; }
.rankings-table thead th:last-child { width: 35%; }
.rankings-table :is(th, td):last-child { text-align: right; }
.rankings-table tbody tr { border-top: 1px solid var(--line); }
.rankings-table tbody th { font-weight: 550; }
.rankings-table tbody td { font-variant-numeric: tabular-nums; }
.rankings-table tbody td:first-child { color: var(--muted); }
.rankings-table tbody td:last-child { font-weight: 650; }
.ranking-current { background: #1b1b1b; }
.ranking-you { margin-left: .25rem; color: var(--muted); font-size: .8rem; font-weight: 400; white-space: nowrap; }
.ranking-account { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .65rem; }
.ranking-avatar { flex: none; width: 2.15rem; height: 2.15rem; border-radius: 50%; background: #363636; object-fit: cover; }
.ranking-avatar-unavailable { visibility: hidden; }
.ranking-name { min-width: 0; }
.ranking-discord-id { color: var(--muted); font-size: .8rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.ranking-tier { padding: .07rem .48rem; border: 1px solid #414141; border-radius: 999px; color: var(--muted); font-size: .73rem; font-weight: 550; white-space: nowrap; }
.ranking-tier-premium { border-color: #777; background: #282828; color: var(--text); }
.rankings-empty { display: grid; justify-items: center; text-align: center; gap: .85rem; padding: 3rem 1rem; }
.rankings-empty p { color: var(--muted); }
.ranking-placeholder { display: grid; align-items: center; grid-template-columns: 2rem minmax(0, 1fr) 3.25rem; gap: 1rem; padding: .9rem 1rem; }
.ranking-placeholder + .ranking-placeholder { border-top: 1px solid var(--line); }

@media (max-width: 940px) {
  .editor-layout { grid-template-columns: minmax(0, .92fr) minmax(0, 1.1fr); gap: .85rem; }
  .simulation { grid-template-columns: 2.8rem minmax(5.5rem, .85fr) minmax(0, 1.7fr); margin-inline: .72rem; }
  .sim-rail :is(.server-icon, .rail-decoration, .skeleton-square) { width: 2rem; height: 2rem; border-radius: .65rem; }
  .panel-heading, .fields, .form-footer { padding-inline: 1.05rem; }
}

@media (max-width: 740px) {
  .editor-layout { grid-template-columns: 1fr; }
  .workspace { padding-top: 2.5rem; }
  .preview-panel { order: 1; }
  .simulation { grid-template-columns: 2.8rem minmax(5.5rem, .85fr) minmax(0, 2.1fr); height: 22.5rem; }
}

@media (max-width: 480px) {
  .topbar-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: auto; width: calc(100% - 1.6rem); gap: .35rem; padding: .55rem 0 .7rem; }
  .topnav { grid-row: 2; grid-column: 1 / -1; width: fit-content; justify-self: center; }
  .topnav a { padding: .42rem .46rem; gap: .32rem; font-size: .82rem; }
  .workspace { width: calc(100% - 1.6rem); padding-top: 2rem; }
  .intro-title { gap: .55rem; }
  .page-intro p { font-size: .91rem; }
  .access-panel { min-height: 16rem; }
  .home-actions { gap: .5rem; }
  .home-actions .button { min-width: 0; padding-inline: 1.05rem; }
  .skeleton-login { width: 6.25rem; }
  .simulation { grid-template-columns: 2.45rem 5.6rem minmax(0, 1fr); }
  .sim-rail :is(.server-icon, .rail-decoration, .skeleton-square) { width: 1.85rem; height: 1.85rem; }
  .sim-server, .sim-channel-title, .sim-chat-content { padding-inline: .45rem; }
  .channel-list { padding-inline: .26rem; }
  .sim-channel { padding-inline: .2rem; }
  .sim-channel svg { width: .95em; height: .95em; }
  .sim-composer { margin-inline: .42rem; }
  .identity-body { padding-inline: 1.05rem; }
  .identity-name { padding-right: 0; }
  .logout-button { position: static; margin-top: .8rem; }
  .rankings-table :is(th, td) { padding: .67rem .58rem; }
  .rankings-table thead th:first-child { width: 3.2rem; }
  .rankings-table thead th:last-child { width: 27%; }
  .ranking-account { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .5rem; }
  .ranking-avatar { width: 1.75rem; height: 1.75rem; }
  .ranking-discord-id, .ranking-tier { grid-column: 1 / -1; justify-self: start; }
  .ranking-discord-id { font-size: .75rem; white-space: nowrap; }
}

@keyframes page-enter {
  from { opacity: 0; transform: translateY(10px); }
}

@keyframes page-exit {
  to { opacity: 0; transform: translateY(-5px); }
}

@keyframes skeleton-pulse {
  to { opacity: .6; }
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  .skeleton { animation: skeleton-pulse 1.25s ease-in-out infinite alternate; }

  .home-content { view-transition-name: console-home; }
  #custom-view { view-transition-name: console-editor; }
  #profile-view { view-transition-name: console-profile; }
  #rankings-view { view-transition-name: console-rankings; }

  :root:not(.has-native-transition) :is(.home-content, .workspace > section, #settings-form, #profile-details) {
    animation: page-enter .32s var(--motion-ease) both;
  }

  ::view-transition { pointer-events: none; }
  ::view-transition-old(root) { display: none; }
  ::view-transition-new(root) { animation: none; }
  ::view-transition-group(*) { animation-duration: .32s; animation-timing-function: var(--motion-ease); }

  ::view-transition-new(console-home),
  ::view-transition-new(console-editor),
  ::view-transition-new(console-profile),
  ::view-transition-new(console-rankings) {
    animation: page-enter .32s var(--motion-ease) both;
  }

  ::view-transition-old(console-home),
  ::view-transition-old(console-editor),
  ::view-transition-old(console-profile),
  ::view-transition-old(console-rankings) {
    animation: page-exit .16s ease-out both;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
