:root {
  --zk-bg: #0d0a24;
  --zk-bg-2: #1c1448;
  --zk-panel: rgba(30, 21, 72, 0.9);
  --zk-panel-solid: #221958;
  --zk-panel-2: #31256f;
  --zk-line: rgba(255, 255, 255, 0.15);
  --zk-ink: #f7f4ff;
  --zk-muted: #bab0e3;
  --zk-dark: #150b2e;
  --zk-gold: #ffd23f;
  --zk-orange: #ff8b2b;
  --zk-pink: #ff3f7f;
  --zk-cyan: #43e8ff;
  --zk-lime: #9aff55;
  --zk-red: #ff4b5c;
  --zk-purple: #8b5cf6;
  --zk-radius: 14px;
  --zk-gap: 0.75rem;
  --sat: var(--discord-safe-area-inset-top, env(safe-area-inset-top, 0px));
  --sar: var(--discord-safe-area-inset-right, env(safe-area-inset-right, 0px));
  --sab: var(--discord-safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  --sal: var(--discord-safe-area-inset-left, env(safe-area-inset-left, 0px));
  --zk-head: "Avenir Next Condensed", "Bahnschrift", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Impact, system-ui, sans-serif;
  --zk-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --zk-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", monospace;
}

html.discord-mobile[data-orient="portrait"] {
  --sat: max(var(--discord-safe-area-inset-top, 0px), env(safe-area-inset-top, 0px), 40px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: clamp(12.5px, calc(5.4px + 1.58vmin), 26px);
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--zk-bg);
}

body {
  position: fixed;
  inset: 0;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--zk-bg);
  color: var(--zk-ink);
  font-family: var(--zk-body);
  line-height: 1.35;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

button:disabled {
  cursor: default;
}

[hidden] {
  display: none !important;
}

:focus {
  outline: none;
}

:focus-visible,
.zk-pad :focus {
  outline: 3px solid var(--zk-cyan);
  outline-offset: 3px;
}

.zk-pad .zk-modal-box:focus {
  outline: none;
}

noscript {
  position: fixed;
  inset: auto 0 20px 0;
  text-align: center;
}

#app {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

#boot {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font: italic 900 2rem/1.05 var(--zk-head);
  text-align: center;
  color: var(--zk-gold);
  text-shadow: 0 3px 0 var(--zk-dark);
}

#boot small {
  font: 600 0.85rem var(--zk-body);
  color: var(--zk-muted);
}

.zk-view {
  position: absolute;
  inset: 0;
}

.zk-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: var(--sat) var(--sar) var(--sab) var(--sal);
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.035) 0 18px, transparent 18px 46px),
    radial-gradient(120% 70% at 50% -10%, #3a2488 0%, transparent 60%),
    linear-gradient(180deg, var(--zk-bg-2), var(--zk-bg) 70%);
}

.zk-enter {
  animation: zk-enter 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes zk-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
  }
}

.zk-content {
  width: min(100%, 68rem);
  margin: 0 auto;
  padding: 0.6rem 0.75rem 0.75rem;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--zk-gap);
}

.zk-footer {
  display: flex;
  gap: var(--zk-gap);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  flex: none;
  width: min(100%, 68rem);
  margin: 0 auto;
  padding: 0.55rem 0.75rem 0.7rem;
}

.zk-screen > .zk-footer {
  position: sticky;
  bottom: calc(-1 * var(--sab));
  margin-bottom: calc(-1 * var(--sab));
  padding-bottom: calc(var(--sab) + 0.7rem);
  z-index: 6;
  background: linear-gradient(180deg, rgba(13, 10, 36, 0), rgba(13, 10, 36, 0.94) 38%);
}

.zk-footer .zk-btn-primary {
  flex: 1 1 12rem;
  max-width: 26rem;
}

.zk-panel {
  background: var(--zk-panel);
  border: 2px solid var(--zk-line);
  border-radius: var(--zk-radius);
  padding: 0.9rem 1rem;
  box-shadow: 0 10px 28px rgba(3, 0, 18, 0.4);
}

.zk-panel > :first-child {
  margin-top: 0;
}

.zk-panel > :last-child {
  margin-bottom: 0;
}

.zk-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--zk-gap);
}

.zk-column {
  display: flex;
  flex-direction: column;
  gap: var(--zk-gap);
}

.zk-center {
  justify-content: center;
}

.zk-between {
  justify-content: space-between;
}

.zk-grow {
  flex: 1 1 auto;
  min-width: 0;
}

.zk-grid {
  display: grid;
  gap: var(--zk-gap);
  grid-template-columns: repeat(auto-fill, minmax(min(11rem, 100%), 1fr));
}

.zk-input {
  min-height: 44px;
  width: 100%;
  max-width: 24rem;
  padding: 0.55rem 0.8rem;
  border: 2px solid var(--zk-line);
  border-radius: 10px;
  background: rgba(5, 2, 20, 0.5);
  color: var(--zk-ink);
  font-size: max(16px, 1rem);
  user-select: text;
  -webkit-user-select: text;
}

.zk-input:focus {
  border-color: var(--zk-cyan);
}

select.zk-input option {
  background: var(--zk-panel-solid);
}

.zk-muted {
  color: var(--zk-muted);
}

.zk-label {
  font: italic 800 0.72rem var(--zk-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zk-muted);
}

.zk-heading {
  margin: 0;
  font: italic 900 1.25rem var(--zk-head);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.zk-btn {
  --b: #5641b8;
  --b2: #3b2b85;
  --bt: var(--zk-ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 1.15rem;
  border: 2px solid var(--zk-dark);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--b), var(--b2));
  box-shadow: 0 4px 0 var(--zk-dark), 0 8px 16px rgba(2, 0, 14, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.28);
  color: var(--bt);
  font: italic 900 1.15rem/1.05 var(--zk-head);
  letter-spacing: 0.025em;
  text-transform: uppercase;
  transition: transform 0.08s, box-shadow 0.08s, filter 0.15s;
}

.zk-btn:hover:not(:disabled) {
  filter: brightness(1.12);
}

.zk-btn:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--zk-dark), 0 3px 8px rgba(2, 0, 14, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.28);
}

.zk-btn:disabled {
  opacity: 0.45;
}

.zk-btn-primary {
  --b: #ffe55c;
  --b2: #ff9a1f;
  --bt: #2b1200;
}

.zk-btn-ghost {
  --b: rgba(255, 255, 255, 0.14);
  --b2: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 3px 0 rgba(8, 3, 24, 0.7);
}

.zk-btn-danger {
  --b: #ff6c7b;
  --b2: #cf2547;
}

.zk-btn-small {
  min-height: 36px;
  min-width: 36px;
  padding: 0.3rem 0.75rem;
  border-radius: 10px;
  font-size: 0.95rem;
}

.zk-btn-big {
  min-height: 58px;
  padding: 0.7rem 1.6rem;
  font-size: 1.5rem;
}

.zk-btn .zk-icon {
  width: 1.15em;
  height: 1.15em;
}

.zk-btn-label {
  min-width: 0;
}

.zk-btn-sub {
  display: block;
  font: 600 0.68em/1.2 var(--zk-body);
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.82;
}

.zk-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  flex: none;
  padding: 0.45rem 0.75rem;
  position: sticky;
  top: 0;
  z-index: 6;
  background: linear-gradient(180deg, #0d0a24 70%, rgba(13, 10, 36, 0.97));
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

.zk-screen > .zk-header:first-child {
  top: calc(-1 * var(--sat));
  margin: calc(-1 * var(--sat)) calc(-1 * var(--sar)) 0 calc(-1 * var(--sal));
  padding: calc(var(--sat) + 0.45rem) calc(var(--sar) + 0.75rem) 0.45rem calc(var(--sal) + 0.75rem);
}

.zk-title {
  margin: 0;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  font: italic 900 1.5rem/1.2 var(--zk-head);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 3px 0 var(--zk-dark);
}

.zk-back {
  padding: 0.35rem;
  width: 44px;
}

.zk-back .zk-icon {
  width: 1.4rem;
  height: 1.4rem;
}

.zk-header-gap {
  width: 44px;
}

.zk-header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.4rem;
  min-width: 44px;
}

#zk-toasts {
  position: fixed;
  top: calc(var(--sat) + 3.9rem);
  left: var(--sal);
  right: var(--sar);
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.75rem;
  pointer-events: none;
}

.zk-toast {
  max-width: 28rem;
  padding: 0.55rem 1rem;
  border: 2px solid var(--zk-dark);
  border-radius: 999px;
  background: linear-gradient(180deg, #4a37a8, #2b1d70);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  font-weight: 700;
  text-align: center;
  animation: zk-toast 0.28s cubic-bezier(0.2, 1.4, 0.4, 1) both;
  transition: opacity 0.3s, transform 0.3s;
}

.zk-toast.zk-out {
  opacity: 0;
  transform: translateY(-10px);
}

.zk-toast-good {
  background: linear-gradient(180deg, #2fae5a, #17703a);
}

.zk-toast-bad {
  background: linear-gradient(180deg, #e4475c, #99203a);
}

@keyframes zk-toast {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.9);
  }
}

#zk-modals {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.zk-modal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--sat) + 0.75rem) calc(var(--sar) + 0.75rem) calc(var(--sab) + 0.75rem) calc(var(--sal) + 0.75rem);
  background: rgba(6, 3, 20, 0.72);
  pointer-events: auto;
  animation: zk-fade 0.2s both;
}

.zk-modal-box {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: min(100%, 30rem);
  max-height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 1rem;
  border: 3px solid var(--zk-dark);
  border-radius: 18px;
  background: linear-gradient(180deg, #33257a, #1d1450);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14), 0 20px 50px rgba(0, 0, 0, 0.55);
  animation: zk-pop 0.25s cubic-bezier(0.2, 1.3, 0.4, 1) both;
}

.zk-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.zk-modal-title {
  margin: 0;
  font: italic 900 1.35rem var(--zk-head);
  text-transform: uppercase;
}

.zk-modal-close {
  flex: none;
}

.zk-modal-body > :first-child {
  margin-top: 0;
}

.zk-modal-body > :last-child {
  margin-bottom: 0;
}

.zk-modal-text {
  white-space: pre-wrap;
}

.zk-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
  padding-bottom: 4px;
}

.zk-modal-actions .zk-btn {
  flex: 1 1 9rem;
}

@keyframes zk-fade {
  from {
    opacity: 0;
  }
}

@keyframes zk-pop {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(12px);
  }
}

.zk-art svg {
  display: block;
  width: 100%;
  height: 100%;
}

.zk-icon {
  display: inline-block;
  flex: none;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.25em;
}

.zk-portrait {
  position: relative;
  display: inline-block;
  flex: none;
  overflow: hidden;
  width: var(--size, 48px);
  height: var(--size, 48px);
  border: 2px solid var(--c, #fff);
  border-radius: 22%;
  background: radial-gradient(circle at 50% 28%, var(--c, #888), #1a1140 88%);
  vertical-align: middle;
}

.zk-face {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
}

.zk-sprite {
  display: block;
  aspect-ratio: 1;
  background-repeat: no-repeat;
  background-size: 200% 200%;
}

.zk-kart-art {
  display: block;
  width: 100%;
  height: 100%;
}

.zk-picker {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  --c: #ffd23f;
}

.zk-picker-inner {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.5rem;
  min-height: 0;
}

.zk-picker-detail {
  display: flex;
  flex-direction: column;
  flex: none;
  overflow: hidden;
  border: 2px solid var(--c);
  border-radius: var(--zk-radius);
  background: var(--zk-panel);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.zk-picker-stage {
  position: relative;
  container-type: size;
  height: clamp(88px, 17vh, 210px);
  overflow: hidden;
  background:
    repeating-linear-gradient(-65deg, rgba(255, 255, 255, 0.09) 0 12px, transparent 12px 30px),
    linear-gradient(180deg, transparent 74%, rgba(0, 0, 0, 0.35) 74%),
    radial-gradient(120% 120% at 20% 20%, var(--c), #231762 70%);
}

.zk-picker-figure {
  position: absolute;
  left: -2%;
  bottom: 1%;
  height: 108%;
  height: min(108cqh, 56cqw);
  filter: drop-shadow(0 6px 4px rgba(0, 0, 0, 0.4));
}

.zk-picker-kart {
  position: absolute;
  right: 1%;
  bottom: 2%;
  width: 62%;
  height: 96%;
  height: min(96cqh, 46cqw);
}

@container (max-aspect-ratio: 5/4) {
  .zk-picker-figure {
    left: 4%;
    bottom: 38%;
    height: min(64cqh, 78cqw);
  }

  .zk-picker-kart {
    right: 0;
    bottom: 1%;
    width: 92%;
    height: min(50cqh, 62cqw);
  }
}

.zk-picker-looks {
  position: absolute;
  top: 5px;
  right: 5px;
  display: flex;
  gap: 4px;
}

.zk-look {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  padding: 2px 8px 2px 3px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(13, 8, 40, 0.72);
  font: italic 800 0.7rem var(--zk-head);
  white-space: nowrap;
}

.zk-look .zk-portrait {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border-width: 1px;
}

.zk-look.on {
  border-color: var(--zk-gold);
  background: rgba(80, 55, 6, 0.9);
  box-shadow: 0 0 0 1px var(--zk-gold);
}

.zk-picker-info {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.35rem 0.6rem 0.5rem;
}

.zk-picker-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 0.5rem;
}

.zk-picker-name {
  margin: 0;
  font: italic 900 1.5rem/1.05 var(--zk-head);
  color: var(--c);
  text-shadow: 0 2px 0 var(--zk-dark);
}

.zk-picker-name.zk-long {
  font-size: 1.2rem;
}

.zk-picker-title {
  margin: 0;
  font: italic 700 0.74rem var(--zk-head);
  letter-spacing: 0.08em;
  color: var(--zk-muted);
}

.zk-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 0.8rem;
}

.zk-stat {
  display: grid;
  grid-template-columns: 4.9em 1fr;
  align-items: center;
  gap: 0.35rem;
  font: italic 800 0.7rem var(--zk-head);
  letter-spacing: 0.04em;
}

.zk-stat-bar {
  display: flex;
  gap: 3px;
}

.zk-stat-bar i {
  flex: 1;
  height: 0.65em;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
  transform: skewX(-20deg);
}

.zk-stat-bar i.on {
  background: linear-gradient(180deg, #fff0a0, var(--zk-orange));
}

.zk-stat-handling .zk-stat-bar i.on {
  background: linear-gradient(180deg, #c8fbff, #1fb6ff);
}

.zk-stat-accel .zk-stat-bar i.on {
  background: linear-gradient(180deg, #e3ffc9, #4fd14a);
}

.zk-stat-weight .zk-stat-bar i.on {
  background: linear-gradient(180deg, #f2ccff, #b35cff);
}

.zk-picker-kartname {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
}

.zk-picker-move {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.28rem 0.5rem;
  border-radius: 10px;
  background: rgba(5, 2, 24, 0.45);
  font-size: 0.76rem;
  line-height: 1.2;
}

.zk-picker-move > div {
  flex: 1;
  min-width: 0;
}

.zk-picker-move strong {
  display: block;
  font: italic 900 0.9rem var(--zk-head);
  letter-spacing: 0.04em;
  color: var(--zk-gold);
}

.zk-picker-moveicon .zk-icon {
  width: 2rem;
  height: 2rem;
  color: var(--c);
}

.zk-picker-form .zk-portrait {
  width: var(--form-size, 34px);
  height: var(--form-size, 34px);
}

.zk-picker-line {
  margin: 0;
  font-size: 0.76rem;
  font-style: italic;
  color: var(--zk-muted);
}

.zk-picker-line::before {
  content: "\201C";
}

.zk-picker-line::after {
  content: "\201D";
}

.zk-picker-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-content: start;
  flex: 1 1 auto;
  gap: 5px;
  min-height: 112px;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 5px;
}

.zk-racer {
  position: relative;
  display: block;
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 22%;
  background: none;
  transition: transform 0.12s;
}

.zk-racer .zk-portrait {
  width: 100%;
  height: 100%;
}

.zk-racer:hover {
  transform: translateY(-2px);
}

.zk-racer.on {
  z-index: 1;
  transform: scale(1.07);
}

.zk-racer.on .zk-portrait {
  border-color: #fff;
  box-shadow: 0 0 0 3px var(--zk-gold), 0 6px 14px rgba(0, 0, 0, 0.5);
}

.zk-racer-name {
  display: none;
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  overflow: hidden;
  padding: 0 2px;
  border-radius: 6px;
  background: rgba(10, 5, 32, 0.78);
  font: italic 800 0.6rem/1.5 var(--zk-head);
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  pointer-events: none;
}

@container (min-width: 440px) {
  .zk-racer-name {
    display: block;
  }

  .zk-picker-grid {
    grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
  }
}

@container (min-width: 600px) {
  .zk-picker-inner {
    flex-direction: row;
    align-items: stretch;
  }

  .zk-picker-detail {
    width: 46%;
    max-width: 29rem;
    overflow-y: auto;
  }

  .zk-picker-stage {
    flex: 1 1 0;
    height: auto;
    min-height: clamp(84px, 22vh, 260px);
  }

  .zk-picker-info {
    flex: none;
  }

  .zk-picker-grid {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  }
}

@container (min-width: 900px) {
  .zk-picker-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .zk-picker-info {
    padding: 0.6rem 0.9rem 0.8rem;
    gap: 0.45rem;
  }
}

.zk-track {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 3px solid var(--zk-dark);
  border-radius: 14px;
  background: #241a55;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.4);
  color: #fff;
  text-align: left;
  transition: transform 0.12s, box-shadow 0.12s;
}

.zk-track:hover:not(:disabled) {
  transform: translateY(-2px);
}

.zk-track-art {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.zk-track::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 6, 35, 0) 35%, rgba(12, 6, 35, 0.9) 100%);
}

.zk-track .zk-track-map {
  position: absolute;
  z-index: 1;
  top: 4%;
  right: 3%;
  width: 46%;
  height: 66%;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6));
}

.zk-track-text {
  position: absolute;
  z-index: 2;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.4rem;
  display: flex;
  flex-direction: column;
}

.zk-track-text strong {
  font: italic 900 1.1rem/1.1 var(--zk-head);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 0 var(--zk-dark), 0 0 8px rgba(0, 0, 0, 0.7);
}

.zk-track-text small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  font-size: 0.66rem;
  line-height: 1.3;
  color: #e1daff;
}

.zk-track-note {
  color: var(--zk-gold) !important;
  font-weight: 800;
}

.zk-track.on {
  border-color: var(--zk-gold);
  box-shadow: 0 0 0 3px var(--zk-gold), 0 10px 26px rgba(255, 180, 30, 0.35);
}

.zk-track-locked {
  filter: grayscale(0.8) brightness(0.7);
}

.zk-logo {
  display: block;
  width: 100%;
}

.zk-logo-spokes {
  transform-origin: 36px 50px;
  animation: zk-spin 2.4s linear infinite;
}

@keyframes zk-spin {
  to {
    transform: rotate(360deg);
  }
}

.zk-crash {
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.zk-crash-detail {
  user-select: text;
  font: 0.75rem var(--zk-mono);
  color: var(--zk-muted);
}

.zk-seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 2px solid var(--zk-line);
  border-radius: 14px;
  background: rgba(5, 2, 24, 0.4);
}

.zk-seg button {
  min-height: 38px;
  min-width: 44px;
  padding: 0.25rem 0.8rem;
  border: 0;
  border-radius: 10px;
  background: none;
  font: italic 800 0.95rem var(--zk-head);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--zk-muted);
}

.zk-seg button.on {
  background: linear-gradient(180deg, #ffe55c, #ff9a1f);
  box-shadow: 0 3px 0 var(--zk-dark);
  color: #2b1200;
}

.zk-switch {
  position: relative;
  flex: none;
  width: 60px;
  height: 34px;
  padding: 0;
  border: 2px solid var(--zk-dark);
  border-radius: 999px;
  background: #3a2f6e;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.zk-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #d8d2f5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  transition: left 0.16s;
}

.zk-switch[aria-checked="true"] {
  background: linear-gradient(180deg, #72e85a, #2aa94a);
}

.zk-switch[aria-checked="true"]::after {
  left: 29px;
  background: #fff;
}

.zk-range {
  width: 100%;
  height: 34px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  touch-action: pan-y;
}

.zk-range::-webkit-slider-runnable-track {
  height: 10px;
  border: 2px solid var(--zk-dark);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--zk-gold) var(--fill, 50%), #3a2f6e var(--fill, 50%));
}

.zk-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -10px;
  border: 3px solid var(--zk-dark);
  border-radius: 50%;
  background: #fff;
}

.zk-range::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: #3a2f6e;
}

.zk-range::-moz-range-progress {
  height: 10px;
  border-radius: 999px;
  background: var(--zk-gold);
}

.zk-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid var(--zk-dark);
  border-radius: 50%;
  background: #fff;
}

html.zk-still *,
html.zk-still *::before,
html.zk-still *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

html.discord-pip .zk-header,
html.discord-pip .zk-footer {
  display: none;
}

.zk-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.zk-splash {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: pointer;
}

.zk-splash-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  height: 100%;
  padding: var(--sat) calc(var(--sar) + 1rem) calc(var(--sab) + 12vh) calc(var(--sal) + 1rem);
}

.zk-splash-logo {
  width: min(96%, 52rem, 150vh);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
  animation: zk-slam 0.6s cubic-bezier(0.2, 1.3, 0.35, 1) both;
}

@keyframes zk-slam {
  from {
    opacity: 0;
    transform: scale(1.5) rotate(-4deg);
  }
}

.zk-splash-call {
  min-height: 56px;
  padding: 0.75rem 2.2rem;
  border: 3px solid var(--zk-dark);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe55c, #ff9a1f);
  box-shadow: 0 6px 0 var(--zk-dark), 0 0 34px rgba(255, 196, 40, 0.55);
  color: #2b1200;
  font: italic 900 1.5rem var(--zk-head);
  letter-spacing: 0.05em;
  animation: zk-pulse 1.1s ease-in-out infinite alternate;
}

@keyframes zk-pulse {
  to {
    transform: scale(1.07);
  }
}

@media (orientation: landscape) {
  .zk-splash-body {
    padding-bottom: calc(var(--sab) + 25vh);
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .zk-splash-body {
    gap: 0.8rem;
    padding-bottom: calc(var(--sab) + 28vh);
  }

  .zk-splash-logo {
    width: min(80%, 42rem, 118vh);
  }

  .zk-splash-call {
    min-height: 46px;
    padding: 0.5rem 1.8rem;
    font-size: 1.25rem;
  }

  .zk-splash-note {
    display: none;
  }
}

.zk-splash-note {
  margin: 0;
  font: italic 800 1rem var(--zk-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 2px 0 var(--zk-dark), 0 0 10px #000;
}

.zk-title-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.zk-title-layout {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  touch-action: pan-y;
  padding: calc(var(--sat) + 0.5rem) calc(var(--sar) + 0.75rem) calc(var(--sab) + 0.5rem) calc(var(--sal) + 0.75rem);
}

.zk-title-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex: none;
}

.zk-title-corner {
  display: flex;
  gap: 0.45rem;
}

.zk-profile {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  min-height: 48px;
  padding: 0.2rem 0.9rem 0.2rem 0.25rem;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(13, 8, 40, 0.75);
  text-align: left;
}

.zk-profile .zk-portrait {
  border-radius: 50%;
}

.zk-profile > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.zk-profile strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font: italic 900 1.05rem/1.15 var(--zk-head);
  letter-spacing: 0.03em;
}

.zk-profile small {
  font-size: 0.68rem;
  color: var(--zk-muted);
}

.zk-title-main {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.6rem, 2.6vh, 1.6rem);
  padding-top: clamp(0.4rem, 3vh, 2.4rem);
}

.zk-title-logo {
  width: min(100%, 40rem, 105vh);
  flex: none;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.4));
}

.zk-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  width: min(100%, 30rem);
}

.zk-wide {
  grid-column: span 2;
}

.zk-tile {
  --t1: #6a52d6;
  --t2: #432f9c;
  --tt: #fff;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  min-height: 56px;
  padding: 0.4rem 0.75rem;
  border: 2px solid var(--zk-dark);
  border-radius: 15px;
  background: linear-gradient(180deg, var(--t1), var(--t2));
  box-shadow: 0 5px 0 var(--zk-dark), 0 10px 20px rgba(0, 0, 0, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.35);
  color: var(--tt);
  text-align: left;
  transition: transform 0.1s, filter 0.15s;
}

.zk-tile:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.zk-tile:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--zk-dark), inset 0 2px 0 rgba(255, 255, 255, 0.35);
}

.zk-tile > .zk-icon {
  width: 1.9rem;
  height: 1.9rem;
}

.zk-tile-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.zk-tile strong {
  font: italic 900 1.22rem/1.05 var(--zk-head);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.zk-tile small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.86;
}

.zk-tile-gp {
  --t1: #ffe55c;
  --t2: #ff9a1f;
  --tt: #2b1200;
  min-height: 66px;
}

.zk-tile-gp strong {
  font-size: 1.6rem;
}

.zk-tile-gp > .zk-icon {
  width: 2.5rem;
  height: 2.5rem;
}

.zk-tile-quick {
  --t1: #4fd8ff;
  --t2: #1b7fe0;
}

.zk-tile-tt {
  --t1: #8df25a;
  --t2: #1f9a4f;
}

.zk-tile-online {
  --t1: #ff6fb0;
  --t2: #d0246c;
}

.zk-tile-howto,
.zk-tile-settings {
  --t1: #5a4aa8;
  --t2: #35286f;
  min-height: 50px;
}

.zk-tile-howto strong,
.zk-tile-settings strong {
  font-size: 1.02rem;
}

@media (max-width: 380px) {
  .zk-tile-howto small,
  .zk-tile-settings small {
    display: none;
  }
}

@media (orientation: landscape) and (max-height: 620px) {
  .zk-title-main {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3vw;
    padding-top: 0.25rem;
  }

  .zk-title-logo {
    width: min(46vw, 28rem);
    align-self: flex-start;
    margin-top: 6vh;
  }

  .zk-menu {
    width: min(48vw, 27rem);
    gap: 0.5rem;
  }

  .zk-tile {
    min-height: 50px;
  }

  .zk-tile-gp {
    min-height: 56px;
  }

  .zk-tile-howto,
  .zk-tile-settings {
    min-height: 44px;
  }

  .zk-tile-howto small,
  .zk-tile-settings small {
    display: none;
  }
}

.zk-driver-screen {
  overflow: hidden;
}

.zk-driver-screen .zk-content {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 0.3rem;
}

@media (orientation: portrait) and (max-height: 620px) {
  .zk-driver-screen .zk-picker-stage {
    height: 80px;
  }

  .zk-driver-screen .zk-picker-looks {
    top: 3px;
    right: 3px;
    flex-direction: column;
    gap: 3px;
  }

  .zk-driver-screen .zk-look {
    justify-content: center;
    min-height: 35px;
    width: 35px;
    padding: 1px;
  }

  .zk-driver-screen .zk-look > span:last-child {
    display: none;
  }

  .zk-driver-screen .zk-picker-kart {
    right: 40px;
    width: 58%;
  }

  .zk-driver-screen .zk-picker-info {
    gap: 0.18rem;
    padding-block: 0.25rem 0.3rem;
  }

  .zk-driver-screen .zk-picker-line {
    font-size: 0.68rem;
  }

  .zk-screen.zk-driver-screen > .zk-footer {
    padding-block: 0.3rem 0.45rem;
  }

  .zk-driver-screen .zk-footer .zk-btn-big {
    min-height: 44px;
    padding-block: 0.4rem;
    font-size: 1.25rem;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .zk-screen.zk-driver-screen > .zk-footer,
  .zk-screen.zk-cup-screen > .zk-footer,
  .zk-screen.zk-tracks-screen > .zk-footer {
    position: fixed;
    top: calc(var(--sat) + 0.3rem);
    right: calc(var(--sar) + 0.6rem);
    bottom: auto;
    z-index: 8;
    width: auto;
    margin: 0;
    padding: 0;
    background: none;
  }

  .zk-driver-screen .zk-footer .zk-btn,
  .zk-cup-screen .zk-footer .zk-btn,
  .zk-tracks-screen .zk-footer .zk-btn {
    min-height: 40px;
    padding: 0.3rem 1rem;
    font-size: 1.1rem;
  }

  .zk-driver-screen .zk-header,
  .zk-cup-screen .zk-header,
  .zk-tracks-screen .zk-header {
    padding-top: calc(var(--sat) + 0.3rem);
    padding-bottom: 0.3rem;
  }

  .zk-driver-screen .zk-title,
  .zk-cup-screen .zk-title,
  .zk-tracks-screen .zk-title {
    font-size: 1.3rem;
    text-align: left;
  }

  .zk-driver-screen .zk-content {
    padding-top: 0.35rem;
  }

  .zk-driver-screen .zk-picker-line {
    font-size: 0.68rem;
    line-height: 1.2;
  }

  .zk-driver-screen .zk-picker-info {
    gap: 0.18rem;
    padding-block: 0.2rem 0.3rem;
  }
}

@media (min-height: 620px) {
  .zk-cup-screen .zk-content,
  .zk-tracks-screen .zk-content {
    align-content: center;
    justify-content: center;
  }
}

@media (min-width: 1100px) and (min-height: 700px) {
  .zk-tracks-screen .zk-track {
    aspect-ratio: 6 / 5;
  }
}

.zk-cups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: var(--zk-gap);
}

.zk-cup {
  --c: #ffd23f;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.65rem;
  border: 3px solid var(--zk-dark);
  border-radius: 18px;
  background:
    repeating-linear-gradient(-60deg, rgba(255, 255, 255, 0.05) 0 14px, transparent 14px 34px),
    linear-gradient(160deg, rgba(95, 70, 200, 0.75), rgba(30, 20, 70, 0.95));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  text-align: left;
  transition: transform 0.12s;
}

.zk-cup.on {
  border-color: var(--c);
  box-shadow: 0 0 0 3px var(--c), 0 12px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.zk-cup:disabled {
  opacity: 0.5;
}

.zk-cup-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.zk-cup-head strong {
  display: block;
  font: italic 900 1.55rem var(--zk-head);
  text-transform: uppercase;
  color: var(--c);
  text-shadow: 0 3px 0 var(--zk-dark);
}

.zk-cup-trophy {
  width: 3.1rem;
  height: 3.7rem;
  flex: none;
}

.zk-cup-medals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.6rem;
}

.zk-cup-medal {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #8d86b3;
}

.zk-cup-medal.none {
  opacity: 0.45;
}

.zk-cup-medal small {
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--zk-ink);
}

.zk-medal-1 {
  color: #ffc329;
}

.zk-medal-2 {
  color: #cfd6ea;
}

.zk-medal-3 {
  color: #d98545;
}

.zk-cup-tracks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.zk-cup-track small {
  display: block;
  overflow: hidden;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.zk-cup-track.locked {
  filter: grayscale(1) brightness(0.6);
}

.zk-cup-art {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 2px solid var(--zk-dark);
  border-radius: 9px;
  background-size: cover;
  background-position: center;
}

.zk-cup-map {
  position: absolute;
  inset: 6%;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.7));
}

.zk-options-row {
  gap: 0.4rem 1rem;
}

.zk-note {
  margin: 0;
  font-size: 0.82rem;
}

.zk-cup-screen .zk-note {
  text-align: center;
}

.zk-tracks-layout {
  display: flex;
  flex-direction: column;
}

.zk-track-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.zk-track-group h3 {
  margin: 0 0 0.3rem;
}

.zk-track-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.zk-track-side {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.zk-track-detail p {
  margin: 0.15rem 0;
  font-size: 0.82rem;
}

.zk-track-facts {
  font-weight: 700;
  color: var(--zk-gold);
}

.zk-record {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

.zk-record strong {
  display: block;
  font: italic 900 1.4rem var(--zk-head);
  color: var(--zk-gold);
}

.zk-record small {
  font-size: 0.72rem;
  color: var(--zk-muted);
}

@media (min-width: 700px) and (orientation: landscape) {
  .zk-tracks-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem);
    align-items: start;
    max-width: 78rem;
  }

  .zk-track-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .zk-track-side {
    position: sticky;
    top: 3.9rem;
  }
}

.zk-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.9rem;
  padding: 0.35rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.zk-field-label {
  display: flex;
  flex-direction: column;
  min-width: 6.5rem;
  font-weight: 800;
}

.zk-field-label small {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--zk-muted);
}

.zk-field .zk-range {
  flex: 1 1 11rem;
  min-width: 9rem;
}

.zk-field .zk-input {
  flex: 1 1 11rem;
}

.zk-settings {
  width: min(100%, 40rem);
}

.zk-version {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  text-align: center;
}

.zk-settings-modal {
  width: min(100%, 34rem);
}

.zk-howto-wrap {
  width: min(100%, 56rem);
}

.zk-howto {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.6rem;
  min-height: 0;
}

.zk-howto .zk-tabs {
  align-self: center;
  justify-content: center;
}

.zk-howto-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.zk-howto-body p {
  margin: 0;
  text-align: center;
}

.zk-howto-body .zk-heading {
  margin-top: 0.5rem;
}

.zk-drift {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.zk-demo {
  width: 100%;
  height: clamp(150px, 40vh, 330px);
  border: 3px solid var(--zk-dark);
  border-radius: 14px;
}

.zk-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zk-steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.45rem 0.3rem;
  border: 2px solid var(--zk-line);
  border-radius: 12px;
  background: var(--zk-panel);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.zk-steps li b {
  font: italic 900 1.5rem/1 var(--zk-head);
  color: var(--zk-gold);
}

.zk-steps li.on {
  border-color: var(--zk-gold);
  background: #4a3a10;
  transform: scale(1.03);
}

.zk-keys {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.zk-keys th,
.zk-keys td {
  padding: 0.28rem 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.zk-keys th {
  width: 45%;
  font-weight: 800;
}

kbd {
  display: inline-block;
  min-width: 1.9em;
  margin: 0 0.15em;
  padding: 0.05em 0.45em;
  border: 2px solid #fff;
  border-bottom-width: 4px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.12);
  font: 800 0.82rem var(--zk-body);
  text-align: center;
}

.zk-guide {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zk-guide li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.6rem;
  border-radius: 12px;
  background: var(--zk-panel);
}

.zk-guide li > .zk-icon {
  width: 2.4rem;
  height: 2.4rem;
  color: var(--zk-gold);
}

.zk-guide li strong {
  display: block;
  font: italic 900 1rem var(--zk-head);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.zk-guide li span {
  display: block;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--zk-muted);
}

@media (orientation: landscape) and (max-height: 520px) {
  .zk-drift {
    flex-direction: row;
  }

  .zk-demo {
    flex: 1;
    height: 52vh;
    min-width: 0;
  }

  .zk-steps {
    grid-template-columns: 1fr;
    width: 32%;
  }

  .zk-steps li {
    flex-direction: row;
    gap: 0.5rem;
    text-align: left;
  }
}

.zk-confetti {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.zk-podium-screen {
  background-position: center;
  background-size: cover;
}

.zk-podium-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: left;
}

.zk-podium-head h1 {
  margin: 0;
  font: italic 900 2.5rem/1 var(--zk-head);
  color: var(--zk-gold);
  text-shadow: 0 4px 0 var(--zk-dark);
}

.zk-podium-head p {
  margin: 0.1rem 0;
  font-weight: 700;
}

.zk-podium-trophy {
  width: 5rem;
  height: 6rem;
  flex: none;
  animation: zk-pulse 0.9s ease-in-out infinite alternate;
}

.zk-podium {
  display: flex;
  flex: 1 1 auto;
  align-items: flex-end;
  justify-content: center;
  gap: 0.5rem;
  min-height: 11rem;
}

.zk-spot {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  max-width: 15rem;
}

.zk-spot .zk-sprite {
  width: min(100%, 34vh);
  margin-bottom: -2%;
  filter: drop-shadow(0 8px 6px rgba(0, 0, 0, 0.5));
}

.zk-spot-1 .zk-sprite {
  width: min(112%, 38vh);
  animation: zk-hop 0.75s ease-in-out infinite alternate;
}

@keyframes zk-hop {
  to {
    transform: translateY(-9%);
  }
}

.zk-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.25rem 0.3rem;
  border: 3px solid var(--zk-dark);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, var(--c, #888), #241a55 92%);
  text-align: center;
}

.zk-spot-1 .zk-block {
  min-height: 6rem;
}

.zk-spot-2 .zk-block {
  min-height: 4.8rem;
}

.zk-spot-3 .zk-block {
  min-height: 4rem;
}

.zk-block strong {
  font: italic 900 1.8rem/1 var(--zk-head);
  text-shadow: 0 3px 0 var(--zk-dark);
}

.zk-block span {
  max-width: 100%;
  overflow: hidden;
  font: italic 900 0.9rem var(--zk-head);
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 0 2px 0 var(--zk-dark);
}

.zk-block small {
  font-size: 0.7rem;
  font-weight: 800;
}

.zk-spot.me .zk-block {
  border-color: #fff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.55);
}

.zk-rest {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zk-rest li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.6rem 0.15rem 0.45rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--zk-panel);
  font-size: 0.75rem;
  font-weight: 700;
}

.zk-rest li.me {
  border-color: var(--zk-gold);
}

.zk-rest small {
  color: var(--zk-muted);
}

@media (orientation: landscape) and (max-height: 520px) {
  .zk-podium-trophy {
    width: 2.6rem;
    height: 3.1rem;
  }

  .zk-podium-head h1 {
    font-size: 1.7rem;
  }

  .zk-podium {
    min-height: 9rem;
  }

  .zk-spot .zk-sprite {
    width: min(100%, 27vh);
  }

  .zk-spot-1 .zk-sprite {
    width: min(108%, 31vh);
  }

  .zk-spot-1 .zk-block {
    min-height: 3.8rem;
  }

  .zk-spot-2 .zk-block,
  .zk-spot-3 .zk-block {
    min-height: 3.1rem;
  }

  .zk-block strong {
    font-size: 1.2rem;
  }

  .zk-rest {
    display: none;
  }
}

.zk-race {
  --outline: -2px -2px 0 var(--zk-dark), 2px -2px 0 var(--zk-dark), -2px 2px 0 var(--zk-dark), 2px 2px 0 var(--zk-dark), 0 4px 0 var(--zk-dark);
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #07051a;
  touch-action: none;
}

.zk-view3d {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.zk-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.zk-overlays {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.zk-overlays > * {
  pointer-events: auto;
}

.zk-hud {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
  font-family: var(--zk-head);
  font-style: italic;
  font-weight: 900;
}

.hud-tl,
.hud-tr,
.hud-tc {
  position: absolute;
  top: calc(var(--sat) + 0.4rem);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hud-tl {
  left: calc(var(--sal) + 0.55rem);
  align-items: flex-start;
  text-shadow: var(--outline);
}

.hud-tr {
  right: calc(var(--sar) + 0.45rem);
  align-items: flex-end;
}

.hud-tc {
  left: 50%;
  align-items: center;
  transform: translateX(-50%);
}

.hud-pos {
  display: flex;
  align-items: flex-start;
  line-height: 0.86;
}

.hud-pos b {
  font-size: 3.7rem;
}

.hud-pos i {
  margin-top: 0.25rem;
  font-size: 1.5rem;
}

.hud-pos[data-rank="1"] {
  color: #ffd23f;
}

.hud-pos[data-rank="2"] {
  color: #dfe6ff;
}

.hud-pos[data-rank="3"] {
  color: #ffac63;
}

.hud-pos.bump,
.hud-coins.bump {
  animation: hud-bump 0.35s ease-out;
}

@keyframes hud-bump {
  40% {
    transform: scale(1.28);
  }
}

.hud-lap {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.hud-lap b {
  margin-left: 0.15rem;
  font-size: 1.5rem;
}

.hud-coins {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 1.3rem;
  transform-origin: left center;
}

.hud-coins .zk-icon {
  width: 1.35rem;
  height: 1.35rem;
  filter: drop-shadow(0 2px 0 var(--zk-dark));
}

.hud-coins.max {
  color: var(--zk-gold);
}

.hud-ghost {
  display: none;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.95rem;
}

.hud-ghost.show {
  display: flex;
}

.hud-ghost.ahead {
  color: var(--zk-lime);
}

.hud-ghost.behind {
  color: #ff8b96;
}

.hud-time {
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  text-shadow: var(--outline);
}

.hud-item {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.9rem;
  height: 3.9rem;
  border: 3px solid var(--zk-dark);
  border-radius: 15px;
  background: rgba(13, 8, 40, 0.42);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
  opacity: 0;
  transition: opacity 0.2s;
}

.hud-item.rolling,
.hud-item.full {
  background: radial-gradient(circle at 50% 40%, rgba(120, 96, 235, 0.92), rgba(24, 14, 66, 0.92));
  box-shadow: inset 0 0 0 2px #fff, 0 4px 0 rgba(8, 3, 30, 0.6);
  opacity: 1;
}

.hud-item.demo {
  opacity: 0.6;
}

.hud-item.off {
  display: none;
}

.hud-item.rolling .hud-item-art {
  animation: hud-roll 0.08s linear infinite;
}

@keyframes hud-roll {
  from {
    transform: translateY(-14%);
  }

  to {
    transform: translateY(14%);
  }
}

.hud-item.got {
  animation: hud-bump 0.4s ease-out;
}

.hud-item-art {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.hud-item-art .zk-icon {
  width: 84%;
  height: 84%;
}

.hud-item-count {
  position: absolute;
  right: 1px;
  bottom: -3px;
  font-size: 1.15rem;
  text-shadow: var(--outline);
}

.hud-item-name {
  position: absolute;
  top: calc(100% + 2px);
  white-space: nowrap;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: var(--outline);
}

.hud-split {
  min-height: 1.2em;
  white-space: nowrap;
  color: var(--zk-cyan);
  font-size: 0.95rem;
  text-shadow: var(--outline);
  opacity: 0;
}

.hud-split.show {
  animation: hud-split 3s both;
}

.hud-item.got ~ .hud-split {
  margin-top: 1rem;
}

@keyframes hud-split {
  0% {
    opacity: 0;
    transform: scale(1.4);
  }

  8%,
  82% {
    opacity: 1;
    transform: none;
  }

  100% {
    opacity: 0;
  }
}

.hud-pause {
  pointer-events: auto;
}

.zk-race .hud-pause {
  width: 42px;
  min-height: 42px;
  padding: 0.3rem;
  background: rgba(13, 8, 40, 0.65);
}

.hud-map {
  width: clamp(76px, 22vmin, 190px);
  height: clamp(76px, 22vmin, 190px);
  border-radius: 14px;
  background: rgba(13, 8, 40, 0.28);
}

.hud-map.off {
  visibility: hidden;
}

.hud-center {
  position: absolute;
  z-index: 2;
  top: 36%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
}

.hud-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: hud-banner 0.45s cubic-bezier(0.2, 1.5, 0.35, 1) both;
}

.hud-banner strong {
  color: var(--zk-gold);
  font-size: clamp(2.6rem, 13vmin, 6.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: -3px -3px 0 var(--zk-dark), 3px -3px 0 var(--zk-dark), -3px 3px 0 var(--zk-dark), 3px 3px 0 var(--zk-dark), 0 8px 0 var(--zk-dark);
}

.hud-banner > span {
  font-size: 1.3rem;
  text-shadow: var(--outline);
}

.hud-banner.count strong {
  color: #fff;
  font-size: clamp(5rem, 24vmin, 11rem);
}

.hud-banner.tone-go strong {
  color: var(--zk-lime);
}

.hud-banner.tone-final strong {
  animation: hud-flash 0.28s steps(2) infinite;
}

@keyframes hud-flash {
  50% {
    color: var(--zk-pink);
  }
}

.hud-banner.tone-finish strong {
  font-size: clamp(3.4rem, 17vmin, 8.5rem);
}

@keyframes hud-banner {
  from {
    opacity: 0;
    transform: scale(2.1);
  }
}

.hud-lights {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.hud-lights i {
  width: 1.1rem;
  height: 1.1rem;
  border: 3px solid var(--zk-dark);
  border-radius: 50%;
  background: #4c426f;
}

.hud-lights i.on {
  background: #ff3b4f;
  box-shadow: 0 0 12px #ff3b4f;
}

.tone-go .hud-lights i {
  background: var(--zk-lime);
  box-shadow: 0 0 12px var(--zk-lime);
}

.hud-feed {
  position: absolute;
  top: calc(var(--sat) + 8.2rem);
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  width: min(86%, 28rem);
  transform: translateX(-50%);
}

.hud-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.18rem 0.75rem 0.22rem;
  border: 2px solid var(--zk-dark);
  border-radius: 999px;
  background: rgba(32, 22, 82, 0.86);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-align: center;
  animation: zk-toast 0.25s cubic-bezier(0.2, 1.4, 0.4, 1) both;
  transition: opacity 0.3s, transform 0.3s;
}

@media (min-height: 560px) {
  .hud-feed {
    top: calc(var(--sat) + 9.9rem);
  }
}

.hud-line .zk-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.hud-line.out {
  opacity: 0;
  transform: translateY(-8px);
}

.hud-line.tone-gold {
  background: linear-gradient(180deg, #ffe55c, #ff9a1f);
  color: #2b1200;
}

.hud-line.tone-bad {
  background: rgba(196, 34, 66, 0.92);
}

.hud-line.tone-good {
  background: rgba(28, 134, 66, 0.92);
}

.hud-line.tone-cyan {
  background: rgba(8, 112, 156, 0.9);
}

.hud-line.tone-dim {
  background: rgba(13, 8, 40, 0.7);
  font-size: 0.82rem;
}

.hud-wrong {
  position: absolute;
  top: 48%;
  left: 50%;
  display: none;
  flex-direction: column;
  align-items: center;
  color: #fff;
  transform: translateX(-50%);
  text-shadow: var(--outline);
}

.hud-wrong.show {
  display: flex;
  animation: hud-blink 0.55s steps(2) infinite;
}

.hud-wrong .zk-icon {
  width: 4rem;
  height: 4rem;
  color: #ff4b5c;
  filter: drop-shadow(0 3px 0 var(--zk-dark));
}

.hud-wrong strong {
  white-space: nowrap;
  color: #ff5266;
  font-size: clamp(1.8rem, 8vmin, 3.4rem);
}

@keyframes hud-blink {
  50% {
    opacity: 0.35;
  }
}

.zk-hud.cutting .hud-feed {
  visibility: hidden;
}

.hud-cutin {
  position: absolute;
  top: 14%;
  left: 0;
  right: 0;
}

.hud-cut {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: clamp(74px, 19vmin, 150px);
  overflow: hidden;
  padding: 0 1rem;
  border-block: 4px solid var(--zk-dark);
  background:
    repeating-linear-gradient(-60deg, rgba(255, 255, 255, 0.14) 0 14px, transparent 14px 34px),
    linear-gradient(90deg, var(--c) 0%, var(--c) 22%, rgba(22, 12, 62, 0.94) 62%, rgba(22, 12, 62, 0.35) 100%);
  transform: skewY(-3deg);
  animation: hud-cut-in 0.32s cubic-bezier(0.2, 1.2, 0.35, 1) both;
}

.hud-cut .zk-sprite {
  flex: none;
  height: 205%;
  align-self: flex-start;
  margin-top: -2%;
}

.hud-cut small {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-shadow: var(--outline);
}

.hud-cut strong {
  display: block;
  color: var(--zk-gold);
  font-size: clamp(1.7rem, 7.5vmin, 3.8rem);
  line-height: 1.05;
  text-shadow: var(--outline);
}

.hud-cut.out {
  animation: hud-cut-out 0.32s ease-in both;
}

@keyframes hud-cut-in {
  from {
    transform: translateX(-105%) skewY(-3deg);
  }
}

@keyframes hud-cut-out {
  to {
    transform: translateX(105%) skewY(-3deg);
  }
}

.hud-bl {
  position: absolute;
  bottom: calc(var(--sab) + 0.7rem);
  left: calc(var(--sal) + 0.8rem);
}

.hud-move {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-shadow: var(--outline);
}

.hud-move-face {
  position: relative;
  width: 4.4rem;
  height: 4.4rem;
}

.hud-move-face .zk-portrait {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  filter: grayscale(0.65) brightness(0.72);
}

.hud-move.ready .zk-portrait {
  filter: none;
}

.hud-move-text strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
}

.hud-move-text small {
  font: 700 0.75rem var(--zk-body);
  opacity: 0.85;
}

.hud-move.ready .hud-move-text strong {
  color: var(--zk-gold);
}

.tc-ring {
  position: absolute;
  inset: -7px;
  z-index: 2;
  border-radius: 50%;
  background: conic-gradient(var(--zk-gold) calc(var(--fill, 0) * 1%), rgba(10, 5, 36, 0.65) 0);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  mask: radial-gradient(closest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  pointer-events: none;
}

.ready .tc-ring {
  background: conic-gradient(#fff6a8, #ff9a1f, #ff4fa3, #fff6a8);
  animation: zk-spin 1s linear infinite;
}

.ready .hud-move-face,
.tc-special.ready {
  filter: drop-shadow(0 0 9px rgba(255, 214, 60, 0.95));
}

.hud-move.flash,
.tc-special.flash {
  animation: hud-bump 0.5s ease-out 2;
}

.hud-standings {
  position: absolute;
  top: 36%;
  left: calc(var(--sal) + 0.55rem);
  display: none;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hud-standings li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 1px 0.5rem 1px 0.2rem;
  border-radius: 999px;
  background: rgba(13, 8, 40, 0.55);
  font-size: 0.78rem;
}

.hud-standings li b {
  min-width: 1.1em;
  text-align: right;
}

.hud-standings li.me {
  background: rgba(255, 190, 30, 0.92);
  color: #230f00;
}

@media (min-width: 920px) and (min-height: 600px) {
  .hud-standings {
    display: flex;
  }

  .zk-race.touching .hud-standings {
    top: 28%;
  }
}

.hud-drift {
  position: absolute;
  bottom: calc(var(--sab) + 1.1rem);
  left: 50%;
  display: flex;
  gap: 5px;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 0.12s;
}

.hud-drift.show {
  opacity: 1;
}

.hud-drift i {
  width: clamp(2rem, 7vmin, 3.6rem);
  height: 0.85rem;
  border: 2px solid var(--zk-dark);
  border-radius: 4px;
  background: linear-gradient(90deg, var(--tier) var(--fill, 0%), rgba(13, 8, 40, 0.6) var(--fill, 0%));
  transform: skewX(-22deg);
  --tier: #43c9ff;
}

.hud-drift i:nth-child(2) {
  --tier: #ff9a1f;
}

.hud-drift i:nth-child(3) {
  --tier: #ff4fd0;
}

.hud-drift i.full {
  box-shadow: 0 0 12px var(--tier);
}

.hud-speed {
  position: absolute;
  right: calc(var(--sar) + 0.9rem);
  bottom: calc(var(--sab) + 0.6rem);
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  text-shadow: var(--outline);
}

.hud-speed b {
  font-size: 2.6rem;
  font-variant-numeric: tabular-nums;
}

.hud-speed small {
  font-size: 0.85rem;
}

.zk-race.touching .hud-speed,
.zk-hud.with-touch .hud-bl,
.zk-hud.with-touch .hud-speed {
  display: none;
}

.zk-hud.finished .hud-bl,
.zk-hud.finished .hud-speed,
.zk-hud.finished .hud-drift {
  display: none;
}

.zk-race.over .hud-tl,
.zk-race.over .hud-tc,
.zk-race.over .hud-tr,
.zk-race.over .hud-center,
.zk-race.over .hud-standings,
.zk-race.over .hud-feed,
.zk-race.over .hud-bl,
.zk-race.over .hud-speed,
.zk-race.over .hud-drift,
.zk-race.over .hud-cutin,
.zk-race.over .hud-wrong,
.zk-race.over .hud-hint,
.zk-race.over .hud-net {
  display: none;
}

.hud-net {
  position: absolute;
  bottom: calc(var(--sab) + 2.6rem);
  left: 50%;
  display: none;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: rgba(196, 34, 66, 0.94);
  transform: translateX(-50%);
}

.hud-net.show {
  display: flex;
  animation: hud-blink 1s steps(2) infinite;
}

.hud-hint {
  position: absolute;
  bottom: 17%;
  left: 50%;
  width: max-content;
  max-width: 88%;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: rgba(13, 8, 40, 0.8);
  font: 800 0.85rem var(--zk-body);
  text-align: center;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 0.2s;
}

.hud-hint.show {
  opacity: 1;
}

.zk-controls {
  --tc: clamp(60px, 15vmin, 104px);
  z-index: 8;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  touch-action: none;
}

.zk-race.no-controls .zk-controls {
  display: none;
}

.zk-race[data-layout="full"] .zk-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0 calc(var(--sar) + 14px) calc(var(--sab) + 14px) calc(var(--sal) + 14px);
  pointer-events: none;
}

.zk-race[data-layout="dash"] .zk-controls {
  --tc: clamp(60px, 17.5vw, 108px);
  position: relative;
  flex: none;
  align-items: center;
  padding: 12px calc(var(--sar) + 8px) calc(var(--sab) + 12px) calc(var(--sal) + 8px);
  border-top: 4px solid var(--zk-dark);
  background:
    repeating-linear-gradient(-60deg, rgba(255, 255, 255, 0.035) 0 14px, transparent 14px 34px),
    linear-gradient(180deg, #33267a, #150e3a);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.14);
}

html.zk-swap .zk-controls {
  flex-direction: row-reverse;
}

.tc-left,
.tc-right {
  pointer-events: none;
}

.tc-pads,
.tc-drag,
.tc-btn {
  pointer-events: auto;
  touch-action: none;
}

.tc-pads {
  display: flex;
  gap: 8px;
}

.tc-pad {
  display: grid;
  place-items: center;
  width: calc(var(--tc) * 1.14);
  height: calc(var(--tc) * 1.32);
  border: 3px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  background: rgba(22, 13, 60, 0.55);
  box-shadow: 0 5px 0 rgba(8, 3, 30, 0.65);
}

.tc-pad .zk-icon {
  width: 52%;
  height: 52%;
}

.tc-pad.down {
  border-color: #fff;
  background: rgba(255, 196, 40, 0.9);
  box-shadow: 0 2px 0 rgba(8, 3, 30, 0.65);
  color: #2b1200;
  transform: translateY(3px);
}

.tc-drag {
  position: relative;
  width: min(46vw, 21rem);
  height: calc(var(--tc) * 1.6);
  border: 3px dashed rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  background: rgba(22, 13, 60, 0.35);
}

.tc-drag.down {
  border-style: solid;
  background: rgba(60, 44, 140, 0.45);
}

.tc-track {
  position: absolute;
  top: 46%;
  left: 50%;
  width: 128px;
  height: 40px;
  margin: -20px 0 0 -64px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.tc-knob {
  position: absolute;
  top: -12px;
  left: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 3px solid var(--zk-dark);
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #cfc6f5);
  box-shadow: 0 4px 0 rgba(8, 3, 30, 0.65);
  color: var(--zk-dark);
}

.tc-knob .zk-icon {
  width: 1.3rem;
  height: 1.3rem;
}

.tc-drag small {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  font: 800 0.68rem var(--zk-body);
  text-align: center;
  opacity: 0.8;
}

.tc-right {
  display: grid;
  grid-template-areas: "special item" "brake drift";
  align-items: end;
  justify-items: center;
  gap: 10px 8px;
}

.zk-controls.tc-has-gas .tc-right {
  grid-template-areas: ". special item" "brake drift gas";
  gap: 10px 5px;
}

.zk-race[data-layout="dash"] .zk-controls.tc-has-gas {
  --tc: clamp(50px, 15.2vw, 100px);
  padding-right: calc(var(--sar) + 6px);
  padding-left: calc(var(--sal) + 6px);
}

.zk-race[data-layout="dash"] .tc-has-gas .tc-drag {
  width: min(39vw, 18rem);
}

html.zk-swap .tc-right {
  grid-template-areas: "item special" "drift brake";
}

html.zk-swap .zk-controls.tc-has-gas .tc-right {
  grid-template-areas: "item special ." "gas drift brake";
}

.tc-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  box-shadow: 0 5px 0 rgba(8, 3, 30, 0.65);
  font-family: var(--zk-head);
  font-style: italic;
  font-weight: 900;
}

.tc-btn.down {
  filter: brightness(1.3);
  transform: translateY(3px) scale(0.95);
  box-shadow: 0 2px 0 rgba(8, 3, 30, 0.65);
}

.tc-btn small {
  font-size: 0.66rem;
  line-height: 1;
  letter-spacing: 0.04em;
}

.tc-drift {
  grid-area: drift;
  width: calc(var(--tc) * 1.32);
  height: calc(var(--tc) * 1.32);
  background: radial-gradient(circle at 50% 32%, rgba(255, 150, 96, 0.96), rgba(212, 34, 98, 0.92));
}

.tc-drift .zk-icon {
  width: 42%;
  height: 42%;
}

.tc-drift strong {
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.tc-drift.rev {
  background: radial-gradient(circle at 50% 32%, rgba(255, 232, 110, 0.98), rgba(255, 140, 20, 0.95));
  color: #2b1200;
}

.zk-controls.tc-has-gas .tc-drift {
  width: calc(var(--tc) * 1.02);
  height: calc(var(--tc) * 1.02);
}

.tc-brake {
  grid-area: brake;
  align-self: end;
  width: calc(var(--tc) * 0.82);
  height: calc(var(--tc) * 0.82);
  background: radial-gradient(circle at 50% 32%, rgba(126, 116, 180, 0.92), rgba(44, 34, 94, 0.9));
}

.zk-controls.tc-has-gas .tc-brake {
  width: max(42px, calc(var(--tc) * 0.68));
  height: max(42px, calc(var(--tc) * 0.68));
}

.tc-brake .zk-icon {
  width: 44%;
  height: 44%;
}

.tc-gas {
  grid-area: gas;
  display: none;
  width: calc(var(--tc) * 1.16);
  height: calc(var(--tc) * 1.16);
  background: radial-gradient(circle at 50% 32%, rgba(148, 242, 110, 0.96), rgba(24, 142, 72, 0.94));
}

.zk-controls.tc-has-gas .tc-gas {
  display: flex;
}

.tc-gas .zk-icon {
  width: 46%;
  height: 46%;
}

.tc-item {
  grid-area: item;
  width: calc(var(--tc) * 0.98);
  height: calc(var(--tc) * 0.98);
  background: radial-gradient(circle at 50% 32%, rgba(126, 104, 245, 0.95), rgba(40, 24, 110, 0.92));
}

.tc-item-art {
  display: grid;
  place-items: center;
  width: 66%;
  height: 66%;
}

.tc-item-art .zk-icon {
  width: 100%;
  height: 100%;
}

.tc-item.empty .tc-item-art {
  color: rgba(255, 255, 255, 0.5);
  opacity: 0.55;
}

.tc-item.rolling .tc-item-art {
  animation: hud-roll 0.08s linear infinite;
}

.tc-count {
  position: absolute;
  top: -4px;
  right: -2px;
  font-size: 1.1rem;
  text-shadow: var(--outline);
}

.tc-special {
  grid-area: special;
  width: calc(var(--tc) * 0.86);
  height: calc(var(--tc) * 0.86);
  border: 0;
  background: rgba(16, 9, 46, 0.7);
}

.tc-special .zk-portrait {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  filter: grayscale(0.65) brightness(0.68);
  pointer-events: none;
}

.tc-special.ready .zk-portrait {
  filter: none;
}

.tc-special small {
  position: absolute;
  bottom: -5px;
  z-index: 3;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--zk-dark);
}

.tc-special.ready small {
  background: linear-gradient(180deg, #ffe55c, #ff9a1f);
  color: #2b1200;
}

.zk-race[data-layout="full"] .zk-hud.with-touch .hud-drift {
  bottom: calc(var(--sab) + 0.8rem);
}

@media (orientation: landscape) and (max-height: 500px) {
  .zk-controls {
    --tc: clamp(56px, 17vh, 80px);
  }

  .zk-race .hud-pos b {
    font-size: 2.9rem;
  }

  .zk-race .hud-tl {
    gap: 0;
  }

  .zk-race .hud-item {
    width: 3.2rem;
    height: 3.2rem;
  }

  .zk-race .hud-map {
    width: clamp(70px, 26vh, 110px);
    height: clamp(70px, 26vh, 110px);
  }

  .zk-race .hud-tr {
    flex-direction: row-reverse;
    align-items: flex-start;
  }

  .zk-race .hud-feed {
    top: calc(var(--sat) + 6.6rem);
  }
}

.zk-race[data-layout="dash"] .hud-feed {
  top: calc(var(--sat) + 7.8rem);
}

.zk-race[data-layout="dash"] .hud-map {
  width: clamp(76px, 25vw, 150px);
  height: clamp(76px, 25vw, 150px);
}

.zk-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--sat) + 0.7rem) calc(var(--sar) + 0.7rem) calc(var(--sab) + 0.7rem) calc(var(--sal) + 0.7rem);
  background: rgba(8, 4, 28, 0.66);
  animation: zk-fade 0.22s both;
}

.zk-overlay-results {
  background: linear-gradient(180deg, rgba(8, 4, 28, 0.38), rgba(8, 4, 28, 0.72));
}

.zk-dialog {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: min(100%, 24rem);
  max-height: 100%;
  overflow-y: auto;
  touch-action: pan-y;
  text-align: center;
  animation: zk-pop 0.25s cubic-bezier(0.2, 1.3, 0.4, 1) both;
}

.zk-dialog p {
  margin: 0;
}

.zk-dialog .zk-heading {
  font-size: 1.8rem;
}

.zk-pause > * {
  flex: none;
}

.zk-pause-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0.55rem;
  padding-bottom: 4px;
}

.zk-pause-row .zk-btn {
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.45rem 0.25rem;
  font-size: 0.88rem;
}

@media (orientation: landscape) and (max-height: 460px) {
  .zk-pause {
    gap: 0.45rem;
    width: min(100%, 32rem);
  }

  .zk-pause > p {
    display: none;
  }
}

.zk-results {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: min(100%, 33rem);
  max-height: 100%;
  overflow: hidden;
  animation: zk-pop 0.35s cubic-bezier(0.2, 1.2, 0.4, 1) both;
}

.zk-results > * {
  margin: 0;
}

.zk-results-head {
  text-align: center;
}

.zk-results-head p {
  margin: 0;
}

.zk-results-head h2 {
  margin: 0;
  color: var(--zk-gold);
  font: italic 900 2rem/1.1 var(--zk-head);
  text-transform: uppercase;
  text-shadow: 0 3px 0 var(--zk-dark);
}

.zk-results-list {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
  margin: 0;
  padding: 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  list-style: none;
}

.zk-results-list li {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.18rem 0.6rem 0.18rem 0.35rem;
  border: 2px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  animation: zk-slide 0.35s cubic-bezier(0.2, 1.1, 0.4, 1) calc(var(--i, 0) * 55ms) both;
}

@keyframes zk-slide {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
}

.zk-results-list li.me {
  border-color: var(--zk-gold);
  background: rgba(255, 190, 30, 0.26);
}

.zk-rank {
  min-width: 1.4rem;
  font: italic 900 1.35rem var(--zk-head);
  text-align: center;
}

.zk-results-list .zk-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font: italic 900 1.05rem var(--zk-head);
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.zk-time,
.zk-total {
  font: 800 0.9rem var(--zk-mono);
}

.zk-points,
.zk-gain {
  min-width: 2.6rem;
  color: var(--zk-lime);
  font: italic 900 1rem var(--zk-head);
  text-align: right;
}

.zk-standings .zk-total {
  min-width: 3.6rem;
  text-align: right;
}

.zk-results-actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  padding-bottom: 5px;
}

.zk-results-actions .zk-btn {
  flex: 1 1 7rem;
}

.zk-results-actions .zk-btn-primary {
  flex-basis: 11rem;
}

.zk-trial {
  text-align: center;
  overflow-y: auto;
}

.zk-trial > * {
  flex: none;
}

.zk-big-time {
  color: #fff;
  font: italic 900 3.2rem/1 var(--zk-head);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 4px 0 var(--zk-dark);
}

.zk-laps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zk-laps li {
  display: flex;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 0.85rem;
}

.zk-laps li.best {
  border-color: var(--zk-lime);
}

@media (orientation: landscape) and (max-height: 520px) {
  .zk-results {
    display: grid;
    grid-template-areas: "head list" "actions list";
    grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: start;
    width: min(100%, 46rem);
  }

  .zk-results .zk-results-head {
    grid-area: head;
  }

  .zk-results .zk-results-list {
    grid-area: list;
    max-height: calc(100vh - var(--sat) - var(--sab) - 3.6rem);
    align-self: stretch;
  }

  .zk-results .zk-results-actions {
    grid-area: actions;
    flex-direction: column;
    align-self: end;
  }

  .zk-results .zk-results-actions .zk-btn {
    flex: none;
    min-height: 40px;
  }

  .zk-results-list li {
    --face: 28px;
    padding-block: 0.05rem;
  }

  .zk-results.zk-trial {
    display: flex;
    align-items: stretch;
    width: min(100%, 34rem);
    gap: 0.35rem;
  }

  .zk-trial .zk-results-actions {
    flex-direction: row;
  }

  .zk-big-time {
    font-size: 2.2rem;
  }
}

.zk-intro {
  position: absolute;
  bottom: max(8%, calc(var(--sab) + 0.6rem));
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  width: max-content;
  max-width: calc(100% - 1.5rem);
  padding: 0.6rem 1.6rem 0.7rem;
  border: 3px solid var(--zk-dark);
  border-radius: 18px;
  background:
    repeating-linear-gradient(-60deg, rgba(255, 255, 255, 0.06) 0 14px, transparent 14px 34px),
    linear-gradient(180deg, rgba(72, 52, 168, 0.95), rgba(28, 18, 76, 0.95));
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2), 0 12px 30px rgba(0, 0, 0, 0.5);
  text-align: center;
  transform: translateX(-50%);
  animation: zk-intro 0.5s cubic-bezier(0.2, 1.2, 0.35, 1) both;
}

.zk-intro strong {
  color: var(--zk-gold);
  font: italic 900 2.1rem/1.1 var(--zk-head);
  text-transform: uppercase;
  text-shadow: 0 3px 0 var(--zk-dark);
}

.zk-intro span:not(.zk-label) {
  max-width: 24rem;
  font-size: 0.8rem;
  color: var(--zk-muted);
}

.zk-intro small {
  margin-top: 0.2rem;
  font-weight: 800;
  animation: zk-pulse 0.8s ease-in-out infinite alternate;
}

.zk-intro.out {
  opacity: 0;
  transform: translate(-50%, 24px);
  pointer-events: none;
  transition: 0.28s;
}

@keyframes zk-intro {
  from {
    opacity: 0;
    transform: translate(-50%, 40px);
  }
}

.zk-loading {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--sat) + 0.75rem) 1rem calc(var(--sab) + 0.75rem);
  background-position: center;
  background-size: cover;
  transition: opacity 0.4s;
}

.zk-loading.out {
  opacity: 0;
  pointer-events: none;
}

.zk-loading-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  max-width: 30rem;
  text-align: center;
}

.zk-loading h1 {
  margin: 0;
  color: var(--zk-gold);
  font: italic 900 2.6rem/1.05 var(--zk-head);
  text-transform: uppercase;
  text-shadow: 0 4px 0 var(--zk-dark);
}

.zk-loading p {
  margin: 0;
}

.zk-loading-map {
  width: min(12rem, 32vh);
  height: min(12rem, 32vh);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
}

.zk-loading-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.zk-loading-tip {
  max-width: 22rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(13, 8, 40, 0.8);
  font-size: 0.82rem;
  font-weight: 700;
}

.zk-spinner {
  width: 2.4rem;
  height: 2.4rem;
  border: 5px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--zk-gold);
  border-radius: 50%;
  animation: zk-spin 0.8s linear infinite;
}

@media (orientation: landscape) and (max-height: 460px) {
  .zk-loading h1 {
    font-size: 1.9rem;
  }

  .zk-loading-map {
    width: 26vh;
    height: 26vh;
  }
}

.zk-rotate {
  position: absolute;
  top: 23%;
  left: 50%;
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: max-content;
  max-width: calc(100% - 1rem);
  padding: 0.45rem 0.9rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(13, 8, 40, 0.88);
  font-size: 0.75rem;
  font-weight: 800;
  text-align: left;
  transform: translateX(-50%);
  animation: zk-intro 0.5s both;
}

.zk-rotate-phone {
  flex: none;
  width: 13px;
  height: 22px;
  border: 2px solid var(--zk-gold);
  border-radius: 4px;
  animation: zk-rotate 1.7s ease-in-out infinite;
}

@keyframes zk-rotate {
  35%,
  75% {
    transform: rotate(-90deg);
  }
}

.zk-howto-modal {
  width: min(100%, 44rem);
}

html.discord-pip .zk-controls,
html.discord-pip .hud-tr,
html.discord-pip .hud-tc,
html.discord-pip .hud-bl,
html.discord-pip .hud-speed,
html.discord-pip .hud-feed {
  display: none !important;
}

.zk-podium-screen .zk-content {
  flex: 1 1 0;
  min-height: 22rem;
}

.zk-podium-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 10rem;
  overflow: hidden;
  border: 3px solid var(--zk-dark);
  border-radius: 18px;
  background: radial-gradient(circle at 50% 40%, rgba(130, 100, 255, 0.4), rgba(13, 8, 40, 0.85) 70%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.16), 0 14px 34px rgba(0, 0, 0, 0.5);
}

.zk-podium-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s;
}

.zk-podium-stage.ready .zk-podium-canvas {
  opacity: 1;
}

.zk-podium-stage.flat {
  display: flex;
  overflow: visible;
  border: 0;
  background: none;
  box-shadow: none;
}

.zk-podium-stage.flat .zk-podium {
  flex: 1;
}

.zk-podium-stage.flat + .zk-winners {
  display: none;
}

.zk-winners {
  display: grid;
  flex: none;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: end;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zk-winner {
  display: grid;
  grid-template-areas: "face place" "face name" "face points";
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.45rem;
  align-items: center;
  padding: 0.3rem 0.5rem;
  border: 3px solid var(--zk-dark);
  border-radius: 14px;
  background: linear-gradient(150deg, var(--c, #888), #231856 70%);
}

.zk-winner .zk-portrait {
  grid-area: face;
}

.zk-winner b {
  grid-area: place;
  font: italic 900 1.25rem/1 var(--zk-head);
  text-shadow: 0 2px 0 var(--zk-dark);
}

.zk-winner span {
  grid-area: name;
  max-width: 100%;
  padding-right: 0.18em;
  overflow: hidden;
  font: italic 900 0.92rem var(--zk-head);
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 0 2px 0 var(--zk-dark);
}

.zk-winner small {
  grid-area: points;
  font-size: 0.7rem;
  font-weight: 800;
}

.zk-winner-1 {
  padding-block: 0.55rem;
}

.zk-winner.me {
  border-color: #fff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.55);
}

@media (max-width: 520px) {
  .zk-winner {
    grid-template-areas: "face" "place" "name" "points";
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }

  .zk-winner span {
    max-width: 100%;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .zk-podium-screen .zk-content {
    display: grid;
    grid-template-areas: "head stage" "winners stage";
    grid-template-columns: minmax(15rem, 20rem) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    min-height: 0;
  }

  .zk-podium-screen .zk-podium-head {
    grid-area: head;
    justify-content: flex-start;
  }

  .zk-podium-screen .zk-podium-stage {
    grid-area: stage;
  }

  .zk-podium-screen .zk-winners {
    grid-area: winners;
    grid-template-columns: 1fr;
    align-self: end;
  }

  .zk-podium-screen .zk-winner {
    --face: 30px;
    grid-template-areas: "face place name points";
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    justify-items: start;
    padding-block: 0.1rem;
    text-align: left;
  }

  .zk-podium-screen .zk-winner-2 {
    order: 2;
  }

  .zk-podium-screen .zk-winner-1 {
    order: 1;
  }

  .zk-podium-screen .zk-winner-3 {
    order: 3;
  }

  .zk-podium-screen .zk-rest {
    display: none;
  }
}

.zk-podium-screen .zk-footer {
  flex-wrap: nowrap;
}

.zk-podium-screen .zk-footer .zk-btn {
  flex: 1 1 0;
  max-width: 18rem;
  padding-inline: 0.5rem;
  white-space: nowrap;
}

.zk-podium-screen .zk-footer .zk-btn-primary {
  flex-grow: 1.35;
}

@media (max-width: 430px) {
  .zk-podium-screen .zk-footer {
    gap: 0.45rem;
  }

  .zk-podium-screen .zk-footer .zk-btn {
    font-size: 0.95rem;
  }

  .zk-podium-screen .zk-footer .zk-btn .zk-icon {
    display: none;
  }
}

@media (orientation: portrait) and (max-height: 660px) {
  .zk-podium-screen .zk-rest {
    display: none;
  }

  .zk-podium-screen .zk-content {
    min-height: 0;
  }

  .zk-podium-trophy {
    width: 3.2rem;
    height: 3.9rem;
  }

  .zk-podium-head h1 {
    font-size: 1.9rem;
  }

  .zk-winner {
    --face: 30px;
  }
}

@media (orientation: portrait) {
  .zk-podium-screen .zk-content {
    justify-content: center;
  }

  .zk-podium-screen .zk-podium-stage {
    flex: 0 1 auto;
    width: 100%;
    max-height: 52vh;
    aspect-ratio: 4 / 3;
  }
}

.zk-cup-desc {
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--zk-muted);
}

@media (orientation: landscape) and (max-height: 520px) {
  .zk-cup-desc {
    display: none;
  }
}

.zk-track-side .zk-seg {
  flex-wrap: nowrap;
  gap: 2px;
  padding: 3px;
}

.zk-track-side .zk-seg button {
  min-width: 34px;
  padding-inline: 0.55rem;
  font-size: 0.86rem;
}

.zk-track-side .zk-field {
  gap: 0.2rem 0.6rem;
}

.zk-track-side .zk-field-label {
  min-width: 3.6rem;
}

.zk-time.zk-still-racing {
  font: italic 800 0.8rem var(--zk-head);
  color: var(--zk-muted);
}

@media (orientation: landscape) and (max-height: 520px) {
  .zk-intro {
    bottom: calc(var(--sab) + 0.5rem);
    max-width: min(20rem, calc(100% - 22rem));
    min-width: 12rem;
    gap: 0;
    padding: 0.3rem 0.9rem 0.4rem;
  }

  .zk-intro span:not(.zk-label) {
    display: none;
  }

  .zk-intro strong {
    font-size: 1.45rem;
  }

  .zk-intro small {
    margin-top: 0;
  }
}

.zko-hub .zk-content,
.zko-room .zk-content,
.zko-results .zk-content {
  flex: 1 0 auto;
  min-height: auto;
}

.zk-screen.zko-room,
.zk-screen.zko-results {
  scroll-padding-top: 4.5rem;
  scroll-padding-bottom: 8.5rem;
  overflow-anchor: none;
}

.zko-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(8, 4, 30, 0.55);
  color: var(--zk-lime);
  font: italic 900 0.85rem var(--zk-head);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.zko-live:empty {
  display: none;
}

.zko-live::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.zko-live.zko-bad {
  color: var(--zk-orange);
}

.zko-spinner {
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 5px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--zk-gold);
  border-radius: 50%;
  animation: zko-spin 0.9s linear infinite;
}

@keyframes zko-spin {
  to {
    transform: rotate(360deg);
  }
}

.zk-still .zko-spinner {
  animation-duration: 3s;
}

.zko-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  min-width: 0;
}

.zko-chip {
  padding: 0.12rem 0.55rem;
  border: 1px solid var(--zk-line);
  border-radius: 999px;
  background: rgba(7, 4, 28, 0.6);
  color: var(--zk-muted);
  font: italic 800 0.72rem/1.55 var(--zk-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.zko-chip:empty {
  display: none;
}

.zko-chip-gold {
  border-color: rgba(255, 210, 63, 0.55);
  color: var(--zk-gold);
}

.zko-center {
  text-align: center;
}

.zko-bad {
  color: #ff9aa6;
}

.zko-error {
  margin: 0;
  color: #ff9aa6;
  font-weight: 800;
  text-align: center;
}

.zko-error:empty {
  display: none;
}

.zko-link {
  padding: 0.35rem 0.6rem;
  border: 0;
  background: none;
  color: var(--zk-cyan);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.zko-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.zko-form .zk-input {
  max-width: none;
}

.zko-form .zk-btn {
  align-self: stretch;
}

.zko-code-input {
  max-width: none;
  min-height: 64px;
  font: italic 900 2rem var(--zk-head);
  letter-spacing: 0.3em;
  text-align: center;
  text-transform: uppercase;
}

.zko-code-input::placeholder {
  color: #6a5fae;
}

.zko-join {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 0.3rem 0;
  text-align: center;
}

.zko-join-code {
  padding-left: 0.18em;
  color: var(--zk-gold);
  font: italic 900 2.4rem var(--zk-head);
  letter-spacing: 0.18em;
}

.zko-join-code.table {
  padding: 0;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.zko-join-status {
  margin: 0;
  color: var(--zk-muted);
}

.zko-reconnect {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 0.4rem auto 0;
  padding: 0.45rem 0.8rem;
  width: min(calc(100% - 1.5rem), 40rem);
  border: 2px solid var(--zk-dark);
  border-radius: 14px;
  background: linear-gradient(180deg, #8a4a16, #5b2c0b);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  font-weight: 800;
}

.zko-reconnect .zko-spinner {
  width: 1.4rem;
  height: 1.4rem;
  border-width: 3px;
}

.zko-hub-body {
  gap: var(--zk-gap);
}

.zko-me {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.zko-me-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.zko-me-face {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0;
  border: 0;
  background: none;
}

.zko-me-edit {
  color: var(--zk-cyan);
  font: italic 900 0.72rem var(--zk-head);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.zko-me-name {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.zko-name-row {
  display: flex;
  gap: 0.45rem;
  min-width: 0;
}

.zko-name-row .zk-input {
  flex: 1;
  min-width: 0;
  font: italic 900 1.2rem var(--zk-head);
}

.zko-name-row .zk-btn-label {
  display: none;
}

.zko-me-driver {
  font-size: 0.76rem;
}

.zko-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.zko-actions .zk-btn {
  gap: 0.3rem;
  padding-inline: 0.35rem;
  font-size: 1.08rem;
}

.zko-voice.zk-btn,
.zko-rejoin.zk-btn {
  flex-wrap: wrap;
}

.zko-voice.zk-btn .zk-btn-sub,
.zko-rejoin.zk-btn .zk-btn-sub {
  flex-basis: 100%;
}

.zko-open {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.zko-open-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.zko-open-head .zk-btn.busy .zk-icon {
  animation: zko-spin 0.9s linear infinite;
}

.zko-lobbies {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 0.65rem;
}

.zko-lobby {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr) auto;
  grid-template-areas: "art main side" "art foot foot";
  align-items: center;
  gap: 0.35rem 0.65rem;
  min-width: 0;
  padding: 0.6rem;
  border: 3px solid var(--zk-dark);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(76, 55, 168, 0.92), rgba(30, 20, 72, 0.96));
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  text-align: left;
  transition: transform 0.1s;
}

.zko-lobby:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 2px var(--zk-gold), 0 10px 22px rgba(0, 0, 0, 0.4);
}

.zko-lobby:active {
  transform: translateY(1px);
}

.zko-lobby-art {
  grid-area: art;
  align-self: stretch;
  min-height: 4.4rem;
  border-radius: 10px;
  background: #241a55 center / cover;
}

.zko-lobby.racing .zko-lobby-art {
  filter: saturate(0.6) brightness(0.85);
}

.zko-lobby-main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.zko-lobby-main strong {
  overflow: hidden;
  font: italic 900 1.2rem/1.15 var(--zk-head);
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.zko-lobby-main small {
  overflow: hidden;
  color: var(--zk-muted);
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zko-lobby-side {
  grid-area: side;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.zko-lobby-side b {
  font: italic 900 1.05rem var(--zk-head);
}

.zko-join-pill {
  padding: 0.2rem 0.7rem;
  border: 2px solid var(--zk-dark);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffe55c, #ff9a1f);
  color: #2b1200;
  font: italic 900 0.95rem var(--zk-head);
  text-transform: uppercase;
}

.zko-lobby-foot {
  grid-area: foot;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  min-width: 0;
}

.zko-faces {
  display: flex;
}

.zko-faces .zk-portrait + .zk-portrait {
  margin-left: -7px;
}

.zko-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.4rem 1rem;
  border: 2px dashed var(--zk-line);
  border-radius: 16px;
  background: rgba(14, 8, 44, 0.55);
  text-align: center;
}

.zko-empty p {
  margin: 0;
}

.zko-room-body {
  gap: var(--zk-gap);
}

.zko-col {
  display: flex;
  flex-direction: column;
  gap: var(--zk-gap);
  min-width: 0;
}

.zko-code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "main actions" "note note";
  align-items: center;
  gap: 0.35rem 0.75rem;
  padding: 0.7rem 0.85rem;
}

.zko-code-main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.zko-code-big {
  padding: 0;
  border: 0;
  background: none;
  color: var(--zk-gold);
  font: italic 900 clamp(2.2rem, 11vw, 3.1rem)/1.1 var(--zk-head);
  letter-spacing: 0.12em;
  text-shadow: 0 4px 0 var(--zk-dark), 3px 3px 0 var(--zk-pink);
  user-select: text;
  -webkit-user-select: text;
}

.zko-code-table {
  color: var(--zk-cyan);
  font: italic 900 1.6rem var(--zk-head);
  text-transform: uppercase;
}

.zko-code-actions {
  grid-area: actions;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.zko-code-note {
  grid-area: note;
}

.zko-setup {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.zko-setup .zk-seg button {
  min-height: 34px;
  min-width: 38px;
  padding-inline: 0.6rem;
}

.zko-field {
  row-gap: 0.25rem;
}

.zko-cups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0.55rem;
}

.zko-cup {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.5rem 0.55rem;
  border: 3px solid var(--zk-dark);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(78, 58, 170, 0.7), rgba(28, 18, 68, 0.95));
  text-align: left;
}

.zko-cup strong {
  color: var(--c);
  font: italic 900 1.05rem var(--zk-head);
  text-transform: uppercase;
}

.zko-cup small {
  overflow: hidden;
  color: var(--zk-muted);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zko-cup.on {
  border-color: var(--zk-gold);
  box-shadow: 0 0 0 2px var(--zk-gold), 0 8px 20px rgba(255, 180, 30, 0.28);
}

.zko-cup-art {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
}

.zko-cup-art i {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background: #241a55 center / cover;
}

.zko-one-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.zko-one-track .zk-track {
  max-width: 17rem;
}

.zko-track-choices {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.zko-track-choices h3 {
  margin: 0 0 0.35rem;
}

.zko-track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr));
  gap: 0.55rem;
}

.zk-modal-box.zko-wide-modal {
  width: min(100%, 44rem);
}

.zko-notice:empty {
  display: none;
}

.zko-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.8rem;
  border: 2px solid rgba(67, 232, 255, 0.45);
  border-radius: 14px;
  background: rgba(10, 56, 84, 0.6);
  font-weight: 800;
}

.zko-banner .zko-spinner {
  width: 1.4rem;
  height: 1.4rem;
  border-width: 3px;
}

.zko-seats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.zko-seat {
  --c: #fff;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  min-height: 4.6rem;
  padding: 0.4rem 0.45rem;
  border: 3px solid var(--zk-dark);
  border-radius: 14px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--c) 28%, #241862), #1b1248 75%);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.zko-seat.me {
  border-color: var(--zk-gold);
  box-shadow: 0 0 0 2px var(--zk-gold), 0 8px 18px rgba(255, 180, 30, 0.25);
}

.zko-seat.off {
  filter: saturate(0.45);
}

.zko-seat.open {
  border: 2px dashed var(--zk-line);
  background: rgba(12, 7, 40, 0.55);
  box-shadow: none;
}

.zko-seat-face {
  position: relative;
  display: flex;
  padding: 0;
  border: 0;
  background: none;
}

.zko-badge {
  position: absolute;
  right: -0.35rem;
  bottom: -0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45rem;
  height: 1.45rem;
  padding: 0 0.2rem;
  border: 2px solid var(--zk-dark);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe55c, #ff9a1f);
  color: #2b1200;
  font: 900 0.85rem/1 var(--zk-body);
}

.zko-seat-face.empty {
  align-items: center;
  justify-content: center;
  width: var(--zko-seat, 52px);
  height: var(--zko-seat, 52px);
  border: 2px dashed var(--zk-line);
  border-radius: 22%;
  color: var(--zk-muted);
  font: italic 900 1rem var(--zk-head);
}

.zko-seat-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.08rem;
  min-width: 0;
}

.zko-seat-name {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}

button.zko-seat-name {
  min-height: 1.6rem;
}

.zko-pencil {
  flex: none;
  color: var(--zk-cyan);
  font-size: 0.95rem;
}

.zko-seat-copy strong,
.zko-seat-copy > span.zk-muted {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zko-seat-copy strong {
  min-width: 0;
  padding-right: 0.15em;
  font: italic 900 1.02rem/1.15 var(--zk-head);
  letter-spacing: 0.02em;
}

.zko-seat-copy > span.zk-muted {
  font-size: 0.68rem;
}

.zko-crown {
  color: var(--zk-gold);
}

.zko-state {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--zk-muted);
  font: italic 900 0.74rem var(--zk-head);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.zko-state.ready {
  color: var(--zk-lime);
}

.zko-state.host {
  color: var(--zk-gold);
}

.zko-state.off {
  color: var(--zk-orange);
}

.zko-state.race {
  color: var(--zk-cyan);
}

.zko-state em {
  padding: 0 0.35rem;
  border-radius: 6px;
  background: var(--zk-gold);
  color: #2b1200;
  font-style: italic;
}

.zko-bubble {
  position: absolute;
  z-index: 4;
  top: -0.7rem;
  right: 0.4rem;
  padding: 0.2rem 0.65rem;
  border: 2px solid var(--zk-dark);
  border-radius: 12px 12px 12px 2px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  color: #1c1048;
  font: italic 900 0.95rem var(--zk-head);
  white-space: nowrap;
  animation: zko-pop 0.28s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}

@keyframes zko-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.6);
  }
}

.zko-emotes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}

.zko-emote {
  min-height: 36px;
  padding: 0.25rem 0.75rem;
  border: 2px solid var(--zk-line);
  border-radius: 999px;
  background: rgba(12, 6, 40, 0.65);
  font: italic 800 0.9rem var(--zk-head);
  letter-spacing: 0.02em;
}

.zko-emote:active {
  transform: translateY(2px);
  background: rgba(255, 210, 63, 0.25);
}

.zko-mini {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zko-mini li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.zko-mini li span:nth-child(2) {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zko-mini b {
  color: var(--zk-gold);
  font: italic 900 0.95rem var(--zk-head);
}

.zko-last {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.zko-last p {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin: 0;
  min-width: 0;
  font-size: 0.8rem;
}

.zko-menu-face {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
}

.zk-footer.zko-foot {
  position: sticky;
  bottom: 0;
  z-index: 6;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.35rem;
  max-width: none;
  width: 100%;
  background: linear-gradient(180deg, rgba(13, 10, 36, 0.95), var(--zk-bg) 40%);
  border-top: 2px solid rgba(255, 255, 255, 0.08);
}

.zko-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.2rem 0.5rem;
  margin: 0;
  min-height: 1.2rem;
  color: var(--zk-muted);
  font-size: 0.82rem;
  text-align: center;
}

.zko-count {
  color: var(--zk-gold);
}

.zko-count:empty {
  display: none;
}

.zko-foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  width: min(100%, 44rem);
}

.zko-foot-row .zk-btn.zko-main {
  flex: 1 1 11rem;
  max-width: 24rem;
}

.zko-foot-row .zko-is-ready {
  --b: #72e85a;
  --b2: #2aa94a;
  --bt: #062a10;
}

.zko-results-body {
  gap: var(--zk-gap);
}

.zko-headline {
  margin: 0;
  color: var(--zk-gold);
  font: italic 900 clamp(1.6rem, 7vw, 2.6rem)/1.1 var(--zk-head);
  text-align: center;
  text-shadow: 0 4px 0 var(--zk-dark);
  text-transform: uppercase;
}

.zko-sub {
  margin: -0.4rem 0 0;
  text-align: center;
}

.zko-podium {
  min-height: 9rem;
}

.zko-podium .zk-sprite {
  width: min(100%, 22vh);
  margin-bottom: -2%;
  filter: drop-shadow(0 8px 6px rgba(0, 0, 0, 0.5));
}

.zko-podium .zk-spot-1 .zk-block {
  min-height: 4.6rem;
}

.zko-podium .zk-spot-2 .zk-block {
  min-height: 3.8rem;
}

.zko-podium .zk-spot-3 .zk-block {
  min-height: 3.3rem;
}

.zko-next {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.zko-next-art {
  width: 6.5rem;
  aspect-ratio: 16 / 9;
  border: 3px solid var(--zk-dark);
  border-radius: 10px;
  background: #241a55 center / cover;
}

.zko-next strong {
  display: block;
  font: italic 900 1.2rem var(--zk-head);
  text-transform: uppercase;
}

.zko-bubbles {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.zko-bubbles:empty {
  display: none;
}

.zko-say {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.75rem 0.2rem 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #1c1048;
  font-size: 0.85rem;
  animation: zko-pop 0.28s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}

.zko-table {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}

.zko-table li {
  --c: #fff;
  display: grid;
  grid-template-columns: 1.6rem auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  border: 2px solid transparent;
  border-radius: 12px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 22%, transparent), rgba(255, 255, 255, 0.04) 55%);
}

.zko-table li.me {
  border-color: var(--zk-gold);
  background: linear-gradient(90deg, rgba(255, 210, 63, 0.28), rgba(255, 255, 255, 0.06) 70%);
}

.zko-rank {
  font: italic 900 1.2rem var(--zk-head);
  text-align: center;
}

.zko-who {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.zko-who strong,
.zko-who small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zko-who strong {
  font: italic 900 1rem/1.15 var(--zk-head);
}

.zko-who small {
  color: var(--zk-muted);
  font-size: 0.66rem;
}

.zko-time,
.zko-gain {
  color: var(--zk-muted);
  font: 700 0.78rem var(--zk-mono);
  white-space: nowrap;
}

.zko-gain {
  color: var(--zk-lime);
}

.zko-points {
  min-width: 2.6rem;
  color: var(--zk-gold);
  font: italic 900 1.05rem var(--zk-head);
  text-align: right;
  white-space: nowrap;
}

html[data-orient="portrait"] .zko-room-body > .zko-col {
  display: contents;
}

html[data-orient="portrait"] .zko-code {
  order: 1;
}

html[data-orient="portrait"] .zko-notice {
  order: 2;
}

html[data-orient="portrait"] .zko-seats {
  order: 3;
}

html[data-orient="portrait"] .zko-emotes {
  order: 4;
}

html[data-orient="portrait"] .zko-setup {
  order: 5;
}

html[data-orient="landscape"] .zko-hub-body {
  display: grid;
  grid-template-columns: minmax(0, 25rem) minmax(0, 1fr);
  align-content: start;
  align-items: start;
}

html[data-orient="landscape"] .zko-room-body,
html[data-orient="landscape"] .zko-results-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-content: start;
  align-items: start;
}

html[data-orient="landscape"] .zko-driver .zk-footer {
  flex: none;
}

html[data-orient="portrait"] .zko-results .zko-foot-row .zk-btn.zko-main {
  flex-basis: 100%;
  max-width: none;
}

html[data-orient="portrait"] .zko-results .zko-foot-row .zk-btn:not(.zko-main) {
  min-height: 40px;
  padding: 0.3rem 0.85rem;
  font-size: 1rem;
}

html.zk-narrow .zko-foot .zk-btn-big {
  padding-inline: 0.7rem;
  font-size: 1.25rem;
  white-space: nowrap;
}

html.zk-narrow .zko-foot .zk-btn-big .zk-icon {
  display: none;
}

@media (orientation: portrait) and (max-height: 700px) {
  .zk-footer.zko-foot {
    gap: 0.2rem;
    padding-block: 0.3rem 0.45rem;
  }

  .zko-foot .zk-btn-big {
    min-height: 46px;
    padding-block: 0.35rem;
  }

  .zko-foot .zko-hint {
    font-size: 0.74rem;
  }
}

@media (max-width: 359px) {
  .zko-seats {
    grid-template-columns: minmax(0, 1fr);
  }

  .zko-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .zk-footer.zko-foot {
    flex-direction: row;
    justify-content: center;
    padding-block: 0.3rem 0.4rem;
  }

  .zko-foot .zko-hint {
    flex: 1 1 0;
    min-width: 0;
    justify-content: flex-end;
    font-size: 0.74rem;
    text-align: right;
  }

  .zko-foot .zko-foot-row {
    flex: 0 1 auto;
    flex-wrap: nowrap;
    width: auto;
  }

  .zko-foot .zk-btn-big {
    min-height: 44px;
    padding: 0.35rem 1rem;
    font-size: 1.2rem;
  }

  .zko-foot-row .zk-btn.zko-main {
    flex: 0 1 auto;
  }

  .zko-seat {
    --zko-seat: 42px;
    min-height: 3.8rem;
  }

  .zko-podium .zk-sprite {
    width: min(100%, 26vh);
  }
}

html.discord-pip .zko-hub-body,
html.discord-pip .zko-room-body {
  display: none;
}
