:root {
  --xonto-black: #000000;
  --xonto-blue: #2F80FF;
  --xonto-white: #FFFFFF;
  --xonto-gray-50: #F7F8FA;
  --xonto-gray-100: #EEF0F4;
  --xonto-gray-200: #D9DEE8;
  --xonto-gray-500: #667085;
  --xonto-gray-700: #344054;
  --xonto-gray-900: #101828;
  --font-body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: Montserrat, Sora, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[hidden] {
  display: none !important;
}

body {
  background: var(--xonto-gray-50);
  overscroll-behavior-y: contain;
}

.xonto-main {
  padding-block: 0;
}

.xrunner-button,
.xrunner-game-button,
.xrunner-touch-button {
  min-height: 44px;
  border: 1px solid var(--xonto-gray-200);
  border-radius: 8px;
  color: var(--xonto-gray-900);
  background: var(--xonto-white);
  cursor: pointer;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 140ms ease;
}

.xrunner-button:hover,
.xrunner-game-button:hover,
.xrunner-touch-button:hover {
  border-color: rgba(47, 128, 255, 0.55);
  background: #F3F8FF;
}

.xrunner-button:active,
.xrunner-touch-button:active {
  transform: translateY(1px);
}

.xrunner-button--primary,
.xrunner-touch-button--jump {
  border-color: var(--xonto-blue);
  color: var(--xonto-white);
  background: var(--xonto-blue);
}

.xrunner-button--primary:hover,
.xrunner-touch-button--jump:hover {
  color: var(--xonto-white);
  background: #1F6BE0;
}

.xrunner-hero,
.xrunner-game-layout,
.xrunner-guide,
.xrunner-scoreboard {
  width: min(100% - 32px, 1280px);
  margin-inline: auto;
}

.xrunner-hero {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding-block: 12px 10px;
}

.xrunner-eyebrow {
  margin: 0 0 10px;
  color: var(--xonto-blue);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.xrunner-hero h1 {
  margin: 0;
  color: var(--xonto-black);
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1;
}

.xrunner-claim {
  margin: 6px 0 4px;
  color: var(--xonto-gray-900);
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  font-weight: 850;
  line-height: 1.12;
}

.xrunner-intro {
  max-width: 58ch;
  margin: 0;
  color: var(--xonto-gray-700);
  font-size: 0.92rem;
}

.xrunner-info-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.xrunner-info-chips span {
  min-height: 20px;
  padding: 2px 6px;
  border: 1px solid var(--xonto-gray-200);
  border-radius: 4px;
  color: var(--xonto-gray-500);
  background: var(--xonto-white);
  font-size: 0.68rem;
  font-weight: 650;
}

.xrunner-hero__actions,
.xrunner-overlay__actions,
.xrunner-stage-actions,
.xrunner-submit-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.xrunner-hero__actions {
  margin-top: 14px;
}

.xrunner-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 0 16px;
}

.xrunner-privacy-note {
  max-width: 62ch;
  margin: 18px 0 0;
  color: var(--xonto-gray-500);
  font-size: 0.92rem;
}

.xrunner-side-panel,
.xrunner-stage-panel,
.xrunner-scoreboard {
  border: 1px solid var(--xonto-gray-200);
  border-radius: 8px;
  background: var(--xonto-white);
}

.xrunner-hud__label,
.xrunner-result-grid span {
  display: block;
  color: var(--xonto-gray-500);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.xrunner-game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  scroll-margin-top: calc(var(--xonto-header-height) + 16px);
}

.xrunner-stage-panel {
  min-width: 0;
  padding: 10px;
}

.xrunner-hud {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 8px;
  padding: 5px;
  border: 1px solid var(--xonto-gray-200);
  border-radius: 8px;
  background: var(--xonto-white);
}

.xrunner-hud__item {
  grid-column: span 1;
  min-width: 0;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 5px 7px;
  border: 0;
  border-radius: 6px;
  background: var(--xonto-gray-50);
}

.xrunner-hud__icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: block;
}

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

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

.xrunner-hud__item:nth-child(1),
.xrunner-hud__item:nth-child(2),
.xrunner-hud__item:nth-child(3) {
  grid-column: span 2;
}

.xrunner-hud__item strong {
  display: block;
  margin-top: 0;
  color: var(--xonto-black);
  font-family: var(--font-heading);
  font-size: 0.94rem;
  line-height: 1.1;
  text-align: left;
  white-space: nowrap;
}

.xrunner-hud__item:first-child {
  color: var(--xonto-white);
  background: var(--xonto-gray-900);
}

.xrunner-hud__item:first-child .xrunner-hud__label,
.xrunner-hud__item:first-child strong {
  color: var(--xonto-white);
}

.xrunner-hud__item:first-child strong {
  font-size: 1.12rem;
}

.xrunner-canvas-shell {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #070A10;
  aspect-ratio: 16 / 9;
  touch-action: none;
}

.xrunner-canvas-shell:fullscreen {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  aspect-ratio: auto;
}

.xrunner-canvas-shell:fullscreen #xrunner-canvas {
  width: 100vw;
  height: 100vh;
}

#xrunner-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: #070A10;
  touch-action: none;
}

.xrunner-game-toolbar {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  justify-content: flex-end;
  gap: 5px;
  max-width: calc(100% - 20px);
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
}

.xrunner-canvas-shell.is-countdown .xrunner-game-toolbar,
.xrunner-canvas-shell.is-countdown .xrunner-touch-zones {
  display: none !important;
}

.xrunner-game-button {
  min-width: 0;
  min-height: 34px;
  gap: 6px;
  padding: 0 10px;
  border-color: rgba(255, 255, 255, 0.24);
  border-radius: 7px;
  color: var(--xonto-white);
  background: rgba(7, 10, 16, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  letter-spacing: 0;
}

.xrunner-game-button:hover {
  border-color: rgba(47, 128, 255, 0.72);
  color: var(--xonto-white);
  background: rgba(16, 24, 40, 0.9);
}

.xrunner-game-button[aria-pressed="true"] {
  border-color: rgba(47, 128, 255, 0.86);
  color: var(--xonto-white);
  background: rgba(47, 128, 255, 0.72);
}

.xrunner-game-button--primary,
.xrunner-game-toolbar .xrunner-button--primary {
  border-color: var(--xonto-blue);
  background: rgba(47, 128, 255, 0.92);
}

.xrunner-game-button--tool {
  padding-inline: 9px;
}

.xrunner-touch-zones {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  grid-template-columns: 1fr 1fr;
  pointer-events: none;
}

.xrunner-touch-zone {
  min-width: 0;
  min-height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  pointer-events: auto;
  touch-action: none;
}

.xrunner-touch-zone:focus-visible {
  outline: 3px solid rgba(47, 128, 255, 0.88);
  outline-offset: -8px;
}

.xrunner-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--xonto-white);
  background: rgba(7, 10, 16, 0.62);
}

.xrunner-overlay[hidden] {
  display: none;
}

.xrunner-overlay__box {
  width: min(100%, 360px);
  max-height: min(92%, 430px);
  overflow-y: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
  text-align: center;
}

.xrunner-overlay__label {
  margin: 0 0 5px;
  color: #BBD6FF;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.xrunner-overlay__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.7vw, 1.75rem);
  font-weight: 850;
  line-height: 1.05;
}

.xrunner-overlay__text {
  margin: 7px 0 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

.xrunner-result-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0 12px;
  text-align: left;
}

.xrunner-result-summary[hidden] {
  display: none;
}

.xrunner-result-summary div {
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.xrunner-result-summary dt {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.65rem;
  font-weight: 850;
  text-transform: uppercase;
}

.xrunner-result-summary dd {
  margin: 3px 0 0;
  color: var(--xonto-white);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 850;
}

.xrunner-overlay__actions {
  justify-content: center;
  gap: 7px;
}

.xrunner-overlay__actions .xrunner-button {
  min-width: 98px;
  min-height: 36px;
  padding-inline: 11px;
  font-size: 0.82rem;
}

.xrunner-stage-actions {
  margin-top: 12px;
}

.xrunner-orientation-notice {
  display: none;
  margin: 10px 0 0;
  color: var(--xonto-gray-500);
  font-size: 0.9rem;
  font-weight: 750;
  text-align: center;
}

.xrunner-side-panel {
  align-self: start;
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

.xrunner-side-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--xonto-gray-200);
  background: var(--xonto-gray-100);
}

.xrunner-side-tab {
  min-width: 0;
  min-height: 48px;
  border: 0;
  border-right: 1px solid var(--xonto-gray-200);
  border-radius: 0;
  padding-inline: 10px;
  color: var(--xonto-gray-700);
  background: var(--xonto-gray-100);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
}

.xrunner-side-tab.is-active {
  position: relative;
  color: var(--xonto-black);
  background: var(--xonto-white);
}

.xrunner-side-tab.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--xonto-blue);
}

.xrunner-side-content[hidden] {
  display: none;
}

.xrunner-side-content {
  padding: 16px;
}

.xrunner-panel-section + .xrunner-panel-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--xonto-gray-200);
}

.xrunner-panel-section h2,
.xrunner-scoreboard h2 {
  margin: 0 0 10px;
  color: var(--xonto-black);
  font-family: var(--font-heading);
  font-size: 1.22rem;
  line-height: 1.2;
}

.xrunner-panel-section p {
  margin: 0 0 8px;
  color: var(--xonto-gray-700);
  font-size: 0.94rem;
}

.xrunner-controls-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--xonto-gray-700);
  font-size: 0.9rem;
}

.xrunner-controls-table tr + tr {
  border-top: 1px solid var(--xonto-gray-200);
}

.xrunner-controls-table th,
.xrunner-controls-table td {
  padding: 9px 0;
  vertical-align: top;
}

.xrunner-controls-table th {
  width: 34%;
  padding-right: 12px;
  color: var(--xonto-black);
  font-weight: 850;
  text-align: left;
}

.xrunner-controls-table kbd,
.control-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  margin: 0 5px 5px 0;
  padding: 3px 8px;
  border: 1px solid var(--xonto-gray-200);
  border-bottom-color: rgba(16, 24, 40, 0.28);
  border-radius: 7px;
  color: var(--xonto-gray-900);
  background: var(--xonto-white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1;
}

.control-chip {
  color: var(--xonto-white);
  background: var(--xonto-gray-900);
  border-color: var(--xonto-gray-900);
}

.mouse-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  margin: 0 5px 5px 0;
  padding: 3px 8px 3px 6px;
  border: 1px solid var(--xonto-gray-200);
  border-radius: 7px;
  color: var(--xonto-gray-900);
  background: var(--xonto-white);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1;
}

.mouse-symbol {
  position: relative;
  width: 17px;
  height: 24px;
  display: inline-block;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-radius: 9px 9px 8px 8px;
  background: linear-gradient(currentColor 0 0) 50% 0 / 1px 10px no-repeat;
}

.mouse-symbol::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
}

.mouse-symbol span {
  position: absolute;
  top: 2px;
  width: 6px;
  height: 8px;
  border-radius: 6px 6px 2px 2px;
  background: var(--xonto-blue);
}

.mouse-symbol--left span {
  left: 2px;
}

.mouse-symbol--right span {
  right: 2px;
}

.control-device--touch {
  display: none;
}

.xrunner-guide {
  margin-block: 18px 46px;
  border: 1px solid var(--xonto-gray-200);
  border-radius: 8px;
  background: var(--xonto-white);
  overflow: hidden;
}

.xrunner-guide .xrunner-section-heading {
  margin: 0;
  padding: 16px;
}

.xrunner-guide .xrunner-section-heading p {
  margin: 4px 0 0;
  color: var(--xonto-gray-600, var(--xonto-gray-700));
  font-size: 0.94rem;
}

.xrunner-guide-tabs {
  display: flex;
  flex-wrap: wrap;
  width: fit-content;
  max-width: calc(100% - 32px);
  gap: 0;
  margin: 0 16px 12px;
  padding: 0;
  border: 1px solid var(--xonto-gray-200);
  border-radius: 6px;
  background: var(--xonto-gray-100);
  overflow: hidden;
}

.xrunner-guide-tab {
  position: relative;
  min-width: 76px;
  min-height: 34px;
  border: 0;
  border-right: 1px solid var(--xonto-gray-200);
  border-radius: 0;
  padding-inline: 9px;
  color: var(--xonto-gray-700);
  background: var(--xonto-gray-100);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
}

.xrunner-guide-tab:last-child {
  border-right: 0;
}

.xrunner-guide-tab:hover {
  color: var(--xonto-gray-900);
  background: #F7F8FA;
}

.xrunner-guide-tab.is-active,
.xrunner-guide-tab.is-active:hover {
  color: var(--xonto-black);
  background: var(--xonto-white);
  box-shadow: none;
}

.xrunner-guide-tab.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--xonto-blue);
}

.xrunner-guide-content {
  padding: 16px;
}

.xrunner-guide-content[hidden] {
  display: none;
}

.xrunner-guide-grid,
.xrunner-item-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.xrunner-guide-card,
.xrunner-item-card {
  min-width: 0;
  border: 1px solid var(--xonto-gray-200);
  border-radius: 8px;
  background: var(--xonto-gray-50);
  padding: 14px;
}

.xrunner-guide-card h3,
.xrunner-item-card h3 {
  margin: 0 0 6px;
  color: var(--xonto-black);
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.15;
}

.xrunner-item-phase {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 8px;
  padding: 3px 6px;
  border: 1px solid var(--xonto-gray-200);
  border-radius: 4px;
  color: var(--xonto-gray-600, var(--xonto-gray-700));
  background: var(--xonto-white);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.15;
}

.xrunner-guide-card p,
.xrunner-item-card p {
  margin: 0;
  color: var(--xonto-gray-700);
  font-size: 0.92rem;
  line-height: 1.45;
}

.xrunner-controls-table--wide {
  max-width: 760px;
}

.xrunner-item-preview {
  position: relative;
  height: 76px;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 7px;
  border: 1px solid rgba(16, 24, 40, 0.14);
  background:
    linear-gradient(180deg, #0B1220 0%, #15243A 58%, #EDF3FA 58%, #D8E2EF 100%);
}

.xrunner-item-preview::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 19px;
  height: 3px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 3px 0 #2F80FF;
}

.xrunner-item-preview span {
  position: absolute;
  display: block;
}

.xrunner-item-preview--orb span {
  left: 50%;
  top: 25px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFFFFF 0 18%, #67B7FF 19% 52%, #2F80FF 53% 100%);
  box-shadow: 0 0 0 5px rgba(47, 128, 255, 0.15);
  transform: translateX(-50%);
}

.xrunner-item-preview--gate span {
  left: 34%;
  bottom: 22px;
  width: 34px;
  height: 38px;
  border: 4px dashed #C8D1DE;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  box-shadow: 24px 0 0 -10px rgba(216, 226, 239, 0.22);
}

.xrunner-item-preview--speed span,
.xrunner-item-preview--slow span,
.xrunner-item-preview--jump span {
  left: 26%;
  bottom: 22px;
  width: 58px;
  height: 13px;
  border-radius: 999px;
}

.xrunner-item-preview--speed span {
  background: linear-gradient(90deg, #2F80FF, #38D996);
}

.xrunner-item-preview--slow span {
  background: linear-gradient(90deg, #17243A, #8EA0B8);
}

.xrunner-item-preview--jump span {
  background: linear-gradient(90deg, #38D996, #2F80FF);
}

.xrunner-item-preview--jump span::after {
  content: "";
  position: absolute;
  left: 19px;
  top: -18px;
  width: 16px;
  height: 16px;
  border-left: 3px solid #FFFFFF;
  border-top: 3px solid #FFFFFF;
  transform: rotate(45deg);
}

.xrunner-item-preview--shield span,
.xrunner-item-preview--magnet span,
.xrunner-item-preview--multiplier span {
  left: 50%;
  top: 24px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  transform: translateX(-50%);
}

.xrunner-item-preview--shield span {
  background: #FFFFFF;
  border: 3px solid #17243A;
  border-radius: 50% 50% 45% 45%;
}

.xrunner-item-preview--magnet span {
  background: #38D996;
  box-shadow: inset 0 0 0 8px #17243A;
}

.xrunner-item-preview--magnet span::after {
  content: "";
  position: absolute;
  left: 6px;
  top: -1px;
  width: 14px;
  height: 11px;
  background: #38D996;
}

.xrunner-item-preview--multiplier span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  background: #2F80FF;
  font-size: 0.74rem;
  font-weight: 900;
}

.xrunner-item-preview--multiplier span::before {
  content: "x2";
}

.xrunner-item-preview--barrier span {
  left: 45%;
  bottom: 22px;
  width: 28px;
  height: 38px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(135deg, #17243A, #25344F 72%, #101B2E);
  box-shadow:
    inset 5px 0 0 #2F80FF,
    inset 0 3px 0 rgba(238,240,244,0.58),
    inset 8px 8px 0 rgba(255,255,255,0.16);
}

.xrunner-item-preview--overhead span {
  left: 28%;
  bottom: 47px;
  width: 72px;
  height: 22px;
  border-radius: 5px;
  background: linear-gradient(135deg, #17243A, #25344F 72%, #101B2E);
  box-shadow:
    inset 5px 0 0 #2F80FF,
    inset 7px 0 0 rgba(47,128,255,0.14),
    inset 0 3px 0 rgba(238,240,244,0.58),
    inset 8px 7px 0 rgba(255,255,255,0.14);
}

.xrunner-item-preview--overhead span::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -26px;
  height: 17px;
  border-radius: 50% 50% 45% 45%;
  background: #17243A;
  opacity: 0.78;
}

.xrunner-item-preview--spike span {
  left: 38%;
  bottom: 22px;
  width: 56px;
  height: 34px;
  background: #C8D1DE;
  clip-path: polygon(0 100%, 12% 18%, 25% 100%, 40% 10%, 55% 100%, 72% 18%, 100% 100%);
  box-shadow:
    inset 8px 22px 0 rgba(16,24,40,0.14),
    inset 8px 12px 0 rgba(255,255,255,0.34);
}

.xrunner-item-preview--spike span::before {
  content: "";
  position: absolute;
  left: 1px;
  bottom: 1px;
  width: 4px;
  height: 38px;
  border-radius: 999px;
  background: #2F80FF;
  transform: rotate(16deg);
  transform-origin: bottom center;
}

.xrunner-item-preview--gap::after {
  content: "";
  position: absolute;
  left: 42%;
  bottom: 0;
  width: 48px;
  height: 22px;
  background: #FFFFFF;
  box-shadow: 0 -3px 0 rgba(16, 24, 40, 0.22);
}

.xrunner-item-preview--gap span {
  left: 30%;
  bottom: 29px;
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 45% 45%;
  background: #17243A;
}

.xrunner-tip-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.xrunner-tip-list li {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--xonto-gray-200);
  border-radius: 8px;
  color: var(--xonto-gray-700);
  background: var(--xonto-gray-50);
  font-size: 0.92rem;
  font-weight: 700;
}

.xrunner-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px 12px;
}

.xrunner-result-grid strong {
  color: var(--xonto-black);
  font-family: var(--font-heading);
  font-size: 1rem;
}

.xrunner-best-message {
  min-height: 1.4em;
  color: var(--xonto-blue) !important;
  font-weight: 800;
}

.xrunner-scoreboard {
  margin-block: 18px 46px;
  padding: 20px;
  scroll-margin-top: calc(var(--xonto-header-height) + 16px);
}

.xrunner-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.xrunner-section-heading h2 {
  margin: 0;
}

.xrunner-score-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 -16px;
  border-block: 1px solid var(--xonto-gray-200);
  background: var(--xonto-gray-100);
}

.xrunner-score-tab {
  position: relative;
  min-width: 0;
  min-height: 44px;
  border: 0;
  border-right: 1px solid var(--xonto-gray-200);
  border-radius: 0;
  padding-inline: 10px;
  color: var(--xonto-gray-700);
  background: var(--xonto-gray-100);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
}

.xrunner-score-tab:last-child {
  border-right: 0;
}

.xrunner-score-tab.is-active,
.xrunner-score-tab.is-active:hover {
  color: var(--xonto-black);
  background: var(--xonto-white);
}

.xrunner-score-tab.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--xonto-blue);
}

.xrunner-score-content {
  margin-top: 16px;
}

.xrunner-score-list {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.xrunner-score-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--xonto-gray-200);
  border-radius: 8px;
  background: var(--xonto-gray-50);
}

.xrunner-score-list .score-main {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.xrunner-score-list .score-date {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.xrunner-score-list .score-date span {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 6px;
  border: 1px solid rgba(47, 128, 255, 0.16);
  border-radius: 6px;
  color: var(--xonto-gray-700);
  background: rgba(47, 128, 255, 0.06);
  font-size: 0.72rem;
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
}

.xrunner-side-panel .xrunner-score-list {
  gap: 4px;
  max-height: min(46vh, 430px);
  margin-bottom: 10px;
  padding-right: 4px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.xrunner-side-panel .xrunner-score-list li {
  grid-template-columns: 22px minmax(0, 1fr) minmax(54px, auto);
  gap: 6px;
  min-height: 48px;
  padding: 6px 7px;
  border-radius: 6px;
}

.xrunner-side-panel .xrunner-score-list strong {
  font-size: 0.84rem;
  line-height: 1.1;
}

.xrunner-side-panel .xrunner-score-list .score {
  font-size: 0.9rem;
}

.xrunner-side-panel .xrunner-score-list .meta {
  display: block;
  margin-top: 1px;
  font-size: 0.72rem;
  line-height: 1.1;
}

.xrunner-side-panel .xrunner-score-list .score-date {
  gap: 3px;
  margin-top: 2px;
}

.xrunner-side-panel .xrunner-score-list .score-date span {
  min-height: 16px;
  padding: 1px 4px;
  border-radius: 5px;
  font-size: 0.66rem;
}

.xrunner-side-panel .xrunner-score-list .rank {
  font-size: 0.82rem;
}

.xrunner-score-clear {
  width: 100%;
  min-height: 36px;
  border-color: var(--xonto-gray-200);
  color: var(--xonto-gray-500);
  background: var(--xonto-gray-50);
  font-size: 0.82rem;
}

.xrunner-score-clear:hover {
  border-color: var(--xonto-gray-200);
  color: var(--xonto-gray-700);
  background: var(--xonto-gray-100);
}

.xrunner-mode-actions {
  display: grid;
  gap: 8px;
  margin: 12px 0 14px;
}

.xrunner-mode-actions .xrunner-button {
  width: 100%;
}

.xrunner-daily-copy {
  padding: 10px;
  border: 1px solid var(--xonto-gray-200);
  border-radius: 8px;
  background: var(--xonto-gray-50);
}

.xrunner-mission-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.xrunner-mission-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  min-height: 42px;
  padding: 6px 7px;
  border: 1px solid var(--xonto-gray-200);
  border-radius: 7px;
  background: var(--xonto-gray-50);
}

.xrunner-mission-summary {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid var(--xonto-gray-200);
  border-radius: 8px;
  background: var(--xonto-gray-50);
}

.xrunner-mission-summary strong {
  color: var(--xonto-black);
  font-family: var(--font-heading);
  font-size: 1rem;
}

.xrunner-mission-summary span {
  color: var(--xonto-gray-500);
  font-size: 0.8rem;
  font-weight: 750;
}

.xrunner-mission-list strong,
.xrunner-mission-list .mission-detail,
.xrunner-mission-list i,
.xrunner-mission-list .mission-status span,
.xrunner-mission-list .mission-status b {
  display: block;
}

.mission-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #FFFFFF;
  background: #2F80FF;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.mission-copy {
  min-width: 0;
}

.xrunner-mission-list i {
  height: 3px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--xonto-gray-200);
}

.xrunner-mission-list i::before {
  content: "";
  display: block;
  width: var(--mission-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: #2F80FF;
}

.xrunner-mission-list strong {
  color: var(--xonto-black);
  overflow: hidden;
  font-size: 0.8rem;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xrunner-mission-list .mission-detail {
  max-height: 0;
  overflow: hidden;
  color: var(--xonto-gray-600, var(--xonto-gray-700));
  font-size: 0.72rem;
  line-height: 1.25;
  opacity: 0;
  transition: max-height 150ms ease, opacity 150ms ease;
}

.xrunner-mission-list li:hover .mission-detail,
.xrunner-mission-list li:focus-visible .mission-detail {
  max-height: 42px;
  margin-top: 2px;
  opacity: 1;
}

.xrunner-mission-list .mission-status {
  display: grid;
  justify-items: end;
  gap: 1px;
  color: var(--xonto-gray-500);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
}

.xrunner-mission-list .mission-status span {
  color: #2F80FF;
}

.xrunner-mission-list .mission-status b {
  color: var(--xonto-gray-700);
  font-size: 0.72rem;
  white-space: nowrap;
}

.xrunner-mission-list li.is-complete {
  border-color: #C8D1DE;
  background: #F7F9FC;
}

.xrunner-mission-list li.is-complete .mission-icon {
  color: var(--xonto-gray-900);
  background: #C8D1DE;
}

.xrunner-mission-list li.is-complete .mission-status span {
  color: var(--xonto-gray-600, var(--xonto-gray-700));
}

.xrunner-mission-list li.is-complete i::before {
  background: #C8D1DE;
}

.xrunner-mission-list li.is-daily {
  border-color: #BFD3F7;
  background: #F4F8FF;
}

.xrunner-mission-list li.is-daily .mission-icon {
  background: #2F80FF;
}

.xrunner-mission-list li.is-daily .mission-status span {
  color: #2F80FF;
}

.xrunner-mission-list li.is-daily.is-complete {
  border-color: #A9CDBA;
  background: #F2FAF6;
}

.xrunner-mission-list li.is-daily.is-complete .mission-icon,
.xrunner-mission-list li.is-daily.is-complete i::before {
  background: #7CE3B1;
}

@media (hover: none), (pointer: coarse) {
  .xrunner-mission-list .mission-detail {
    max-height: 42px;
    margin-top: 2px;
    opacity: 1;
  }
}

.xrunner-score-list .rank {
  color: var(--xonto-blue);
  font-family: var(--font-heading);
  font-weight: 900;
}

.xrunner-score-list .meta {
  color: var(--xonto-gray-500);
  font-size: 0.86rem;
}

.xrunner-score-list .score {
  color: var(--xonto-black);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 900;
}

.xrunner-global-status,
.xrunner-form-status {
  color: var(--xonto-gray-700);
}

.xrunner-submit-form {
  max-width: 520px;
}

.xrunner-submit-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--xonto-gray-700);
  font-weight: 800;
}

.xrunner-submit-form input {
  min-width: 0;
  min-height: 44px;
  flex: 1 1 180px;
  border: 1px solid var(--xonto-gray-200);
  border-radius: 8px;
  padding: 0 12px;
}

.xrunner-storage-warning {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid rgba(47, 128, 255, 0.35);
  border-radius: 8px;
  color: var(--xonto-gray-900);
  background: #F3F8FF;
  font-weight: 700;
}

.xrunner-toast {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 40;
  display: flex;
  width: min(360px, calc(100vw - 32px));
  flex-direction: column-reverse;
  gap: 8px;
  pointer-events: none;
}

.xrunner-toast[hidden] {
  display: none;
}

.xrunner-mission-toast {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 66px;
  padding: 10px 11px;
  border: 1px solid rgba(47, 128, 255, 0.38);
  border-left: 4px solid #2F80FF;
  border-radius: 8px;
  color: #FFFFFF;
  background: linear-gradient(135deg, rgba(8, 10, 16, 0.94), rgba(20, 30, 48, 0.94));
  box-shadow: 0 16px 36px rgba(8, 10, 16, 0.22);
  animation: xrunnerMissionToastIn 260ms cubic-bezier(0.18, 0.82, 0.22, 1.18) both;
}

.xrunner-mission-toast.is-leaving {
  animation: xrunnerMissionToastOut 620ms ease both;
}

.xrunner-mission-toast__pulse {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #081018;
  background: #8CC5FF;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 900;
  box-shadow: 0 0 0 0 rgba(140, 197, 255, 0.55);
  animation: xrunnerMissionPulse 1200ms ease-out infinite;
}

.xrunner-mission-toast__copy {
  min-width: 0;
}

.xrunner-mission-toast__copy strong,
.xrunner-mission-toast__copy span {
  display: block;
}

.xrunner-mission-toast__copy strong {
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  line-height: 1.05;
}

.xrunner-mission-toast__copy span {
  margin-top: 3px;
  overflow: hidden;
  color: #D8E2EF;
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xrunner-mission-toast__tag {
  padding: 4px 6px;
  border: 1px solid rgba(216, 226, 239, 0.34);
  border-radius: 6px;
  color: #D8E2EF;
  font-family: var(--font-heading);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0;
}

@keyframes xrunnerMissionToastIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes xrunnerMissionToastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

@keyframes xrunnerMissionPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(140, 197, 255, 0.52);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(140, 197, 255, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .xrunner-mission-toast,
  .xrunner-mission-toast.is-leaving,
  .xrunner-mission-toast__pulse {
    animation: none;
  }
}

.xrunner-live-region {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.xonto-legal-page {
  width: min(100%, 72ch);
  margin-inline: auto;
  padding-block: clamp(28px, 5vw, 56px) 76px;
  overflow-wrap: anywhere;
  word-break: normal;
}

.xonto-legal-page__hero {
  max-width: none;
  margin-inline: 0;
  text-align: left;
}

.xonto-legal-page__eyebrow {
  margin: 0 0 10px;
  color: var(--xonto-blue);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.xonto-legal-page__meta {
  color: var(--xonto-gray-500);
  font-size: 0.94rem;
}

.xonto-legal-page h1 {
  margin: 0 0 22px;
  color: var(--xonto-black);
  font-family: var(--font-heading);
  font-size: clamp(2.05rem, 5vw, 3rem);
  line-height: 1.08;
}

.xonto-legal-page h2 {
  margin: 30px 0 8px;
  color: var(--xonto-black);
  font-family: var(--font-heading);
  font-size: 1.32rem;
  line-height: 1.2;
}

.xonto-legal-page p,
.xonto-legal-page li {
  color: var(--xonto-gray-700);
  font-size: 1rem;
  line-height: 1.68;
}

.xonto-legal-page a {
  color: var(--xonto-blue);
  font-weight: 650;
  text-underline-offset: 0.18em;
}

@media (max-width: 1023px) {
  .xrunner-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .xrunner-game-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .xrunner-stage-panel {
    padding: 12px;
  }

  .xrunner-canvas-shell {
    max-height: min(68vh, 620px);
  }

  .xrunner-side-panel {
    display: block;
  }

  .xrunner-side-content {
    padding: 14px;
  }

  .xrunner-hud {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-bottom: 8px;
  }

  .xrunner-game-toolbar {
    left: 10px;
    right: 10px;
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .xrunner-game-button {
    justify-content: center;
  }

  .xrunner-panel-section + .xrunner-panel-section {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
}

@media (hover: none), (pointer: coarse) {
  .xrunner-touch-zones {
    display: grid;
  }

  .control-device--desktop {
    display: none;
  }

  .control-device--touch {
    display: table-row;
  }

  .xrunner-game-toolbar {
    top: 10px;
    bottom: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .xrunner-game-button {
    min-height: 42px;
  }
}

@media (max-width: 767px) {
  .xrunner-hero,
  .xrunner-game-layout,
  .xrunner-guide,
  .xrunner-scoreboard {
    width: min(100% - 24px, 1280px);
  }

  .xrunner-hero {
    gap: 12px;
    padding-block: 12px 10px;
  }

  .xrunner-hud {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .xrunner-hud__item,
  .xrunner-hud__item:nth-child(1),
  .xrunner-hud__item:nth-child(2),
  .xrunner-hud__item:nth-child(3) {
    grid-column: span 1;
  }

  .xrunner-hud__item:first-child {
    grid-column: 1 / -1;
  }

  .xrunner-hud__item--optional {
    display: block;
  }

  .xrunner-hud__item {
    min-height: 32px;
    padding: 6px 7px;
  }

  .xrunner-hud__icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  .xrunner-hud__item strong {
    font-size: 0.94rem;
  }

  .xrunner-side-panel {
    grid-template-columns: 1fr;
  }

  .xrunner-score-list li {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 10px;
    align-items: start;
    padding: 10px;
  }

  .xrunner-score-list .rank {
    grid-column: 1;
    width: fit-content;
    min-width: 28px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #F3F8FF;
  }

  .xrunner-score-list .score {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

  .xrunner-score-list .score-main {
    grid-column: 1 / -1;
  }

  .xrunner-side-tab,
  .xrunner-score-tab {
    min-height: 42px;
    padding-inline: 6px;
    font-size: 0.78rem;
  }

  .xrunner-guide-tabs {
    width: auto;
    max-width: calc(100% - 24px);
    margin-inline: 12px;
    overflow-x: auto;
  }

  .xrunner-guide-tab {
    flex: 0 0 auto;
    min-height: 34px;
    padding-inline: 8px;
    font-size: 0.76rem;
  }

  .xrunner-guide-grid,
  .xrunner-item-grid,
  .xrunner-tip-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .xrunner-hero h1 {
    font-size: 2.2rem;
  }

  .xrunner-stage-panel,
  .xrunner-scoreboard {
    padding: 12px;
  }

  .xrunner-stage-panel {
    padding: 10px;
  }

  .xrunner-canvas-shell {
    border-radius: 6px;
  }

  .xrunner-overlay__box {
    padding: 14px;
  }

  .xrunner-overlay__actions .xrunner-button {
    flex: 1 1 118px;
    min-width: 0;
  }

  .xrunner-game-toolbar {
    left: 8px;
    right: 8px;
    top: 8px;
    bottom: auto;
    gap: 5px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .xrunner-game-button {
    min-height: 38px;
    padding-inline: 6px;
    font-size: 0.78rem;
  }

  .xrunner-game-button span:last-child {
    display: none;
  }

  .xrunner-result-summary {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-block: 10px 12px;
  }

  .xrunner-orientation-notice {
    display: block;
  }

  .xrunner-submit-form__row {
    display: grid;
  }

  .xrunner-guide .xrunner-section-heading,
  .xrunner-guide-content {
    padding: 12px;
  }

  .xrunner-item-preview {
    height: 64px;
  }
}

@media (orientation: portrait) and (hover: none), (orientation: portrait) and (pointer: coarse) {
  .xrunner-canvas-shell::after {
    content: "Querformat empfohlen";
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 4;
    padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(0, 0, 0, 0.55);
    font-size: 0.78rem;
    font-weight: 800;
  }
}

@media (max-width: 380px) {
  .xrunner-hud__item {
    min-height: 30px;
    padding: 5px 6px;
  }

  .xrunner-hud__item strong {
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xrunner-button,
  .xrunner-guide-tab,
  .xrunner-score-tab,
  .xrunner-side-tab,
  .xrunner-touch-button,
  .xrunner-touch-zone {
    transition: none;
  }
}
