.pilot { display: grid; gap: clamp(22px, 3vw, 32px); min-width: 0; overflow: visible; }
.pilot-card {
  background: linear-gradient(160deg, #141826, #0a0c14);
  border: 2px solid #08070c;
  box-shadow: 6px 6px 0 #08070c;
  padding: clamp(18px, 2.2vw, 28px);
  display: grid;
  gap: 10px;
}
.pilot-card h1, .pilot-card h2 {
  margin: 0;
  font-family: var(--display, Teko, Impact, sans-serif);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(36px, 5vw, 64px);
  line-height: .86;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 #08070c;
}
.pilot-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pilot-meta { color: var(--dim, #f4eee399); margin: 0; font-size: 14px; }
.pilot-page {
  padding: calc(var(--bar, 68px) + clamp(28px, 4vw, 48px)) 0 clamp(70px, 9vw, 120px);
  background:
    radial-gradient(50% 520px at 12% 0, color-mix(in srgb, var(--paint, #d6ff3a) 22%, transparent), transparent 70%),
    radial-gradient(40% 480px at 92% 0, #ff3d8a28, transparent 70%);
  min-height: 70vh;
}

.pilot-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px 12px;
}
.pilot-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0 4px 0 0;
  list-style: none;
  min-width: 0;
}
.pilot-nav button {
  height: 46px;
  padding: 0 18px;
  border: 2px solid #f4eee328;
  background: transparent;
  color: var(--muted, #f4eee3bf);
  font-family: var(--display, Teko, Impact, sans-serif);
  font-style: italic;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transform: skew(-10deg);
  display: inline-flex;
  align-items: center;
}
.pilot-nav button > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transform: skew(10deg);
}
.pilot-ico {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  overflow: visible;
  filter: drop-shadow(1.25px 1.25px 0 #08070c);
}
.pilot-nav button .pilot-ico { width: 20px; height: 20px; }
.pilot-nav button.on .pilot-ico { filter: drop-shadow(1.25px 1.25px 0 #08070c); }
.pilot-nav button:hover { border-color: var(--lime, #d6ff3a); color: var(--cream, #f4eee3); }
.pilot-nav button.on {
  border-color: #08070c;
  background: var(--lime, #d6ff3a);
  color: #08070c;
  box-shadow: 3px 3px 0 #08070c;
}
.pilot-out { margin: 0; display: block; justify-self: end; }
.pilot-out button {
  color: var(--cream, #f4eee3);
  background: #0a0c14c7;
  border-color: #08070c;
  box-shadow: 3px 3px 0 #08070c;
}
.pilot-out button:hover { color: var(--pink, #ff3d8a); border-color: var(--pink, #ff3d8a); }

.pilot-hero[hidden] { display: none !important; }
.pilot-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(18px, 3vw, 34px);
  border: 2px solid #08070c;
  box-shadow: 6px 6px 0 #000;
  background:
    radial-gradient(70% 90% at 20% 30%, color-mix(in srgb, var(--paint, #d6ff3a) 26%, transparent), transparent 70%),
    linear-gradient(160deg, #141826, #0a0c14);
  position: relative;
  isolation: isolate;
}
.pilot-car {
  position: relative;
  align-self: center;
  width: min(100%, 520px);
  margin: 0 auto;
  padding-bottom: 16%;
}
.pilot-floor {
  position: absolute;
  left: 3%;
  right: 3%;
  bottom: 2%;
  height: 34%;
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--paint, #d6ff3a) 45%, #ffe08a);
  background: radial-gradient(closest-side, #16100af2, #0a0806e6);
  box-shadow:
    0 0 34px color-mix(in srgb, var(--paint, #d6ff3a) 45%, transparent),
    0 0 36px color-mix(in srgb, var(--paint, #d6ff3a) 30%, transparent) inset;
  z-index: 0;
}
.pilot-car img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -10%;
  filter: drop-shadow(0 16px 12px #0009);
}
.pilot-id { min-width: 0; position: relative; z-index: 1; }
.pilot-kicker {
  margin: 0 0 8px;
  color: var(--lime, #d6ff3a);
  font-family: var(--display, Teko, Impact, sans-serif);
  font-style: italic;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: none;
  padding: 0;
}
.pilot-id > .pilot-kicker,
.pilot-share-face .pilot-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  height: 28px;
  margin: 0 0 12px;
  padding: 0 14px;
  background: var(--lime, #d6ff3a);
  color: #08070c;
  border: 2px solid #08070c;
  box-shadow: 3px 3px 0 #08070c;
  transform: skew(-10deg);
  font-size: 13px;
  letter-spacing: .14em;
  line-height: 1;
}
.pilot-id > .pilot-kicker span,
.pilot-share-face .pilot-kicker span {
  display: inline-block;
  transform: skew(10deg);
}
.pilot-name {
  margin: 0 0 14px;
  font-family: var(--display, Teko, Impact, sans-serif);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(46px, 6.4vw, 92px);
  line-height: .86;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 #08070c;
  overflow-wrap: anywhere;
}
.pilot-level {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 460px;
}
.pilot-level-n {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 3px solid #08070c;
  background: var(--hot, linear-gradient(180deg, #f4ff8a 0%, #d6ff3a 42%, #8fd40a 100%));
  color: #08070c;
  box-shadow: 4px 4px 0 #08070c;
  font-family: var(--display, Teko, Impact, sans-serif);
  font-style: italic;
  font-weight: 900;
  font-size: 32px;
  line-height: 1;
  transform: skew(-10deg);
}
.pilot-gauge {
  display: block;
  height: 18px;
  border: 2px solid #08070c;
  background: #f4eee31a;
  position: relative;
  overflow: hidden;
  transform: skew(-20deg);
}
.pilot-gauge i {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--p, 0) * 100%);
  background: linear-gradient(90deg, #d6ff3a, #ff3d8a);
  box-shadow: 0 0 14px #d6ff3a66;
}
.pilot-hint { color: var(--dim, #f4eee399); margin: 6px 0 0; font-size: 13.5px; }
.pilot-dim { color: var(--dim, #f4eee399); margin: 14px 0 0; font-size: 14px; }

.pilot-panel { display: none; }
.pilot-panel.on { display: grid; gap: 16px; }
.pilot-panel h2 {
  margin: 4px 0 8px;
  font-family: var(--display, Teko, Impact, sans-serif);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: .9;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #08070c;
}
.pilot-h {
  margin: 4px 0 0;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim, #f4eee399);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pilot-h .pilot-ico { width: 20px; height: 20px; }
.pilot-dash {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.pilot-box {
  background: linear-gradient(160deg, #141826, #0a0c14);
  border: 2px solid #08070c;
  box-shadow: 5px 5px 0 #000, inset 0 0 0 1px #ffffff0a;
  padding: clamp(18px, 2.2vw, 26px);
  position: relative;
}
.pilot-box h3 {
  margin: 0 0 14px;
  font-family: var(--display, Teko, Impact, sans-serif);
  font-style: italic;
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pilot-box h3 small {
  margin-left: auto;
  color: var(--dim, #f4eee399);
  font-family: var(--body, Manrope, system-ui, sans-serif);
  font-style: normal;
  font-size: 11px;
  letter-spacing: .14em;
  font-weight: 800;
}
.pilot-box h3 .pilot-ico { width: 28px; height: 28px; }
.pilot-goal {
  display: grid;
  gap: 2px;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid #f4eee31f;
  width: 100%;
  text-align: left;
  color: inherit;
  cursor: pointer;
  background: none;
  font-family: var(--body, Manrope, system-ui, sans-serif);
}
.pilot-goal:first-of-type { border-top: 0; padding-top: 0; }
.pilot-goal b { font-size: 16px; }
.pilot-goal span { color: var(--dim, #f4eee399); font-size: 13px; }
.pilot-stars { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pilot-stars i {
  width: 14px; height: 14px; border-radius: 3px; background: #f4eee318;
  transform: rotate(45deg);
}
.pilot-stars i.on { background: var(--lime, #d6ff3a); box-shadow: 0 0 8px #d6ff3a88; }
.pilot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.pilot-path { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pilot-list { display: grid; gap: 10px; }
.pilot-item {
  background: linear-gradient(160deg, #141826, #0a0c14);
  border: 2px solid #08070c;
  box-shadow: 4px 4px 0 #000;
  padding: 14px 16px;
  display: grid;
  gap: 4px;
  overflow: hidden;
}
.pilot-item.off { opacity: .42; }
.pilot-item.done { border-color: #d6ff3a; }
.pilot-item.wait { border-color: #ff3d8a; }
.pilot-item.mine { border-color: #d6ff3a; }
.pilot-item.debutant { box-shadow: 4px 4px 0 #08070c, inset 3px 0 0 #d6ff3a; }
.pilot-item.amateur { box-shadow: 4px 4px 0 #08070c, inset 3px 0 0 #3df0ff; }
.pilot-item.confirme { box-shadow: 4px 4px 0 #08070c, inset 3px 0 0 #f4eee3; }
.pilot-item.semi-pro { box-shadow: 4px 4px 0 #08070c, inset 3px 0 0 #ff6a32; }
.pilot-item.pro { box-shadow: 4px 4px 0 #08070c, inset 3px 0 0 #ff3d8a; }
.pilot-item b { display: block; font-size: 16px; }
.pilot-item span { color: var(--dim, #f4eee399); font-size: 12px; }
.pilot-item .n {
  font-family: var(--display, Teko, Impact, sans-serif); font-size: 22px; color: var(--pink, #ff3d8a);
}
.pilot-shot {
  height: 118px; margin: -14px -16px 10px;
  background: #100c18 50% 55%/cover no-repeat;
}
.pilot-cls {
  margin: 6px 0 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim, #f4eee399);
}
.pilot-ghead {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pilot-panel .pilot-ghead h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1;
  letter-spacing: .04em;
  text-shadow: none;
}
.pilot-ghead .pilot-ico {
  width: 32px;
  height: 32px;
}
.pilot-ghead small {
  margin-left: auto;
  color: var(--dim, #f4eee399);
  font-family: var(--body, Manrope, system-ui, sans-serif);
  font-style: normal;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.pilot-mine {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.pilot-mine-card {
  border: 2px solid #f4eee31f;
  background: #ffffff06;
  padding: 14px 16px 16px;
  display: grid;
  gap: 8px;
}
.pilot-mine-card.is-now {
  border-color: var(--lime, #d6ff3a);
  box-shadow: 4px 4px 0 #08070c;
}
.pilot-mine-card.is-next { border-style: dashed; }
.pilot-mine-top {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.pilot-mine-top > img {
  width: 132px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: 50% 80%;
  filter: drop-shadow(0 6px 6px #0007);
  background: radial-gradient(circle at 50% 80%, color-mix(in srgb, var(--paint, #d6ff3a) 32%, transparent), transparent 70%);
}
.pilot-mine-card .pilot-kicker { font-size: 12px; margin: 0 0 4px; }
.pilot-mine-name {
  margin: 0;
  font-family: var(--display, Teko, Impact, sans-serif);
  font-style: italic;
  font-weight: 900;
  font-size: 24px;
  line-height: .95;
  text-transform: uppercase;
}
.pilot-mine-card .pilot-empty { font-size: 13px; margin-top: 6px; }
.pilot-tunes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}
.pilot-tunes li {
  color: var(--dim, #f4eee399);
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
  font-size: 10px;
  display: grid;
  gap: 4px;
}
.pilot-tunes span { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.pilot-tunes i { height: 6px; background: #f4eee31f; }
.pilot-tunes i.on { background: var(--lime, #d6ff3a); }
.pilot-crate {
  position: relative;
  display: block;
  width: 86px;
  aspect-ratio: 4 / 3;
  margin: 0 auto;
}
.pilot-mine-card .pilot-crate { width: 82%; }
.pilot-crate svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 10px 10px #0008);
}
.pilot-crate b {
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -50%);
  font-family: var(--display, Teko, Impact, sans-serif);
  font-style: italic;
  font-weight: 900;
  font-size: 28px;
  color: #3b241266;
  line-height: 1;
}
.pilot-crate i {
  position: absolute;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%) rotate(-5deg);
  font-family: var(--display, Teko, Impact, sans-serif);
  font-style: italic;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .06em;
  color: #28160ccc;
  border: 1.5px solid currentColor;
  padding: 1px 6px 0;
  white-space: nowrap;
}
.pilot-crate.is-next::after {
  content: 'PROCHAINE';
  position: absolute;
  top: 26%;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  background: var(--lime, #d6ff3a);
  color: #08070c;
  font-family: var(--display, Teko, Impact, sans-serif);
  font-style: italic;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .04em;
  padding: 2px 7px 1px;
  border: 2px solid #08070c;
  box-shadow: 2px 2px 0 #08070c;
}
.pilot-reserve { margin-top: clamp(26px, 4vw, 40px); }
.pilot-reserve-h {
  color: var(--muted, #f4eee3bf);
  margin: 0 0 14px;
  font-size: 15px;
}
.pilot-reserve-h b {
  color: var(--cream, #f4eee3);
  font-family: var(--display, Teko, Impact, sans-serif);
  font-style: italic;
  font-weight: 900;
  font-size: 22px;
  text-transform: uppercase;
  margin-right: 6px;
}
.pilot-fleet {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 12px 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.pilot-fleet li {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 8px 6px 10px;
  border: 2px solid #f4eee31f;
  background: radial-gradient(circle at 50% 70%, color-mix(in srgb, var(--paint, #d6ff3a) 28%, transparent), transparent 72%);
  text-align: center;
}
.pilot-fleet img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: 50% 80%;
  filter: drop-shadow(0 5px 5px #0006);
}
.pilot-fleet b {
  font-family: var(--display, Teko, Impact, sans-serif);
  font-style: italic;
  font-weight: 900;
  font-size: 16px;
  line-height: .95;
  text-transform: uppercase;
}
.pilot-fleet span {
  color: var(--dim, #f4eee399);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.pilot-seals {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 12px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pilot-seals li {
  text-align: center;
  border-bottom: 3px solid color-mix(in srgb, var(--paint, #d6ff3a) 22%, transparent);
  padding: 4px 6px 8px;
}
.pilot-seals .pilot-crate { width: 78%; }
.pilot-seals b {
  display: block;
  margin-top: 4px;
  font-family: var(--display, Teko, Impact, sans-serif);
  font-style: italic;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dim, #f4eee399);
}
@keyframes crate-nudge {
  25% { transform: rotate(-2.5deg); }
  50% { transform: translateY(-3px) rotate(2deg); }
  75% { transform: rotate(-1deg); }
}
.pilot-seals li:hover .pilot-crate { animation: crate-nudge .5s ease; }
@media (prefers-reduced-motion: reduce) {
  .pilot-seals li:hover .pilot-crate { animation: none; }
}
.pilot-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pilot .plate {
  border-radius: 0;
  transform: skew(-8deg);
  box-shadow: 3px 3px 0 #000;
}
.pilot .plate > span { display: inline-block; transform: skew(8deg); }
.pilot-empty { color: var(--dim, #f4eee399); margin: 0; line-height: 1.5; }
.pilot-wallet {
  margin: 0 0 8px;
  font-family: var(--display, Teko, Impact, sans-serif);
  font-style: italic;
  font-size: 64px;
  line-height: .85;
  color: var(--lime, #d6ff3a);
  text-shadow: 3px 3px 0 #08070c;
}
.pilot-kvline { margin: 10px 0 0; font-size: 14px; }
.pilot-kvline b { color: var(--lime, #d6ff3a); }
.pilot-marks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.pilot-marks li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--dim, #f4eee399);
}
.pilot-marks li.on { color: var(--cream, #f4eee3); }
.pilot-marks em { font-style: normal; color: var(--lime, #d6ff3a); }
.pilot-marks .pilot-gauge { grid-column: 1 / -1; height: 9px; }
.pilot-line { margin: 0; padding: 8px 0; border-top: 1px solid #f4eee31f; font-size: 13px; }
.pilot-line:first-of-type { border-top: 0; padding-top: 0; }
.pilot-line b { display: block; }
.pilot-line.dim { opacity: .4; }
.pilot-line.on b { color: var(--lime, #d6ff3a); }
.pilot-more {
  margin-top: 10px; background: none; border: 0; padding: 0; color: var(--lime, #d6ff3a);
  font-family: var(--display, Teko, Impact, sans-serif);
  font-style: italic;
  font-weight: 800; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
.pilot-idline {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.pilot-copy {
  height: auto;
  padding: 0;
  margin: 0;
  cursor: pointer;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--lime, #d6ff3a);
  font-family: var(--display, Teko, Impact, sans-serif);
  font-style: italic;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pilot-copy:hover { color: var(--cream, #f4eee3); }
.pilot-kv { display: grid; gap: 10px; }
.pilot-kv p { margin: 0; }
.pilot-kv b { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim, #f4eee399); }
.pilot-set {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pilot-set-card {
  background: #ffffff06;
  border: 2px solid #08070c;
  box-shadow: 4px 4px 0 #000;
  padding: 18px 20px 20px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.pilot-set-card h3 {
  margin: 0;
  font-family: var(--display, Teko, Impact, sans-serif);
  font-style: italic;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pilot-set-card h3 .pilot-ico { width: 26px; height: 26px; }
.pilot-set-card label,
.gate-auth label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim, #f4eee399);
}
.pilot-set-card input,
.gate-auth input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 2px solid #08070c;
  background: #0a0c14;
  color: var(--cream, #f4eee3);
  font-family: var(--body, Manrope, system-ui, sans-serif);
  font-size: 16px;
}
.pilot-set-card input:read-only { color: var(--muted, #f4eee3bf); }
.pilot-set-go,
.pilot .pilot-set-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  margin-top: 4px;
  border: 2px solid #08070c;
  background: var(--lime, #d6ff3a);
  color: #08070c;
  box-shadow: 3px 3px 0 #000;
  font-family: var(--display, Teko, Impact, sans-serif);
  font-style: italic;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transform: skew(-8deg);
}
.pilot-set-go > span { display: inline-block; transform: skew(8deg); }
.pilot-set-go:disabled { opacity: .55; cursor: wait; }
.pilot-set-err, .gate-err {
  margin: 0;
  color: var(--pink, #ff3d8a);
  font-size: 13px;
}
.pilot-share {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 1fr);
  gap: 16px;
  margin-top: 4px;
  padding: 18px;
  border: 2px solid #08070c;
  box-shadow: 5px 5px 0 #000;
  background: linear-gradient(160deg, #141826, #0a0c14);
}
.pilot-share-face {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.pilot-share-car {
  position: relative;
  width: 100%;
  padding-bottom: 18%;
}
.pilot-share-car img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -8%;
  filter: drop-shadow(0 10px 8px #0008);
}
.pilot-share-name {
  margin: 0 0 8px;
  font-family: var(--display, Teko, Impact, sans-serif);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(32px, 4vw, 52px);
  line-height: .86;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 #08070c;
}
.pilot-share-lv {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--dim, #f4eee399);
  font-size: 14px;
}
.pilot-share-lv span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--hot, linear-gradient(180deg, #f4ff8a 0%, #d6ff3a 42%, #8fd40a 100%));
  color: #08070c;
  border: 2px solid #08070c;
  box-shadow: 3px 3px 0 #08070c;
  font-family: var(--display, Teko, Impact, sans-serif);
  font-style: italic;
  font-weight: 900;
  font-size: 20px;
  transform: skew(-10deg);
}
.pilot-share-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--dim, #f4eee399);
  font-size: 13px;
}
.pilot-share-stats b { color: var(--cream, #f4eee3); }
.pilot-share-stats.is-public {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding: 16px 18px;
  border: 2px solid #08070c;
  box-shadow: 4px 4px 0 #000;
  background: #ffffff06;
}
.pilot-share-stats.is-public p { margin: 0; color: var(--dim, #f4eee399); font-size: 13px; }
.pilot-share-stats.is-public b {
  display: block;
  color: var(--cream, #f4eee3);
  font-family: var(--display, Teko, Impact, sans-serif);
  font-style: italic;
  font-size: 28px;
  line-height: .9;
}
.pilot-share-act {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}
.pilot-share-act h3 {
  margin: 0;
  font-family: var(--display, Teko, Impact, sans-serif);
  font-style: italic;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pilot-share-act label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim, #f4eee399);
}
.pilot-share-act input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 2px solid #08070c;
  background: #0a0c14;
  color: var(--cream, #f4eee3);
  font-family: var(--body, Manrope, system-ui, sans-serif);
  font-size: 13px;
}
.pilot-share-go {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.pilot-share-go .pilot-set-go {
  width: auto;
  min-width: 180px;
  padding: 0 22px;
  margin: 0;
}
.pilot-share-go .ghost {
  height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
}
.pilot-card .steam, .pilot-hero .steam {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px;
  background: #1b2838; color: #f4eee3; font-weight: 800; font-size: 14px;
  letter-spacing: .08em; text-transform: uppercase;
  border: 2px solid #08070c; box-shadow: 3px 3px 0 #08070c;
}
html:has(.pilot-page) {
  overflow-x: hidden;
  overflow-y: scroll;
  height: auto;
}
body:has(.pilot-page) {
  overflow: visible;
  height: auto;
  min-height: 100dvh;
  -webkit-overflow-scrolling: touch;
}
html:has(body.is-gate) {
  overflow: hidden;
  height: 100dvh;
}
body.is-gate {
  overflow: hidden;
  height: 100dvh;
}
body.is-gate .foot { display: none; }
body.is-gate .pilot-page {
  padding: 0;
  background: none;
  height: calc(100dvh - var(--bar, 68px));
  min-height: 0;
  overflow: hidden;
}
body.is-gate #pilot-wrap,
body.is-gate #pilot,
body.is-gate .gate {
  width: 100%;
  max-width: none;
  margin: 0;
  height: 100%;
  min-height: 0;
}
.gate {
  display: grid;
  grid-template-columns: 1.2fr minmax(min(100%, 360px), 460px);
  min-height: 0;
  height: 100%;
}
.gate > * { min-width: 0; min-height: 0; }
.gate-shot {
  background-color: #0c0a14;
  background-image:
    linear-gradient(90deg, #0c0a1400 58%, #100c18 100%),
    url("/assets/rixa-hero.jpg");
  background-size: cover;
  background-position: center 42%;
}
.gate-panel {
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 36px 40px 48px;
  background: #100c18;
  border-left: 2px solid #08070c;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.gate-panel .kicker {
  display: inline-block; width: max-content;
  color: var(--lime, #d6ff3a);
  font-family: var(--display, Teko, Impact, sans-serif);
  font-style: italic;
  font-weight: 800; font-size: 15px; letter-spacing: .18em; text-transform: uppercase;
  background: none; padding: 0;
}
.gate-panel h1 {
  margin: 14px 0 12px;
  font-family: var(--display, Teko, Impact, sans-serif);
  font-style: italic;
  font-size: clamp(42px, 5.5vw, 72px);
  line-height: .85; letter-spacing: .03em; text-transform: uppercase;
  text-shadow: 3px 3px 0 #08070c;
}
.gate-panel p { margin: 0 0 18px; color: var(--dim, #f4eee399); }
.gate-go { width: 100%; height: 52px; font-size: 24px; }
.gate-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 14px;
}
.gate-switch button {
  height: 40px;
  border: 2px solid #f4eee328;
  background: transparent;
  color: var(--muted, #f4eee3bf);
  font-family: var(--display, Teko, Impact, sans-serif);
  font-style: italic;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transform: skew(-8deg);
}
.gate-switch button.on {
  border-color: #08070c;
  background: var(--lime, #d6ff3a);
  color: #08070c;
  box-shadow: 3px 3px 0 #08070c;
}
.gate-auth { display: grid; gap: 10px; margin: 0 0 8px; }
.gate-auth[hidden] { display: none !important; }
.gate-auth .gate-go { height: 48px; font-size: 20px; margin-top: 6px; }
.gate-or {
  text-align: center; margin: 8px 0 14px !important;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}
.gate-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px;
  background: #fff; color: #111;
  font-weight: 800; font-size: 14px;
  border: 2px solid #08070c;
  box-shadow: 3px 3px 0 #08070c;
}
.gate-google:hover { filter: brightness(0.96); }
.gate-note, .gate-more { font-size: 13px; }
.gate-more { margin-top: 8px !important; color: var(--cream, #f4eee3) !important; }
@media (max-width: 980px) {
  html:has(body.is-gate) {
    overflow-x: hidden;
    overflow-y: scroll;
    height: auto;
  }
  body.is-gate {
    overflow: visible;
    height: auto;
    min-height: 100dvh;
  }
  body.is-gate .foot { display: block; }
  body.is-gate .pilot-page {
    height: auto;
    min-height: calc(100dvh - var(--bar, 68px));
    overflow: visible;
  }
  body.is-gate #pilot-wrap,
  body.is-gate #pilot,
  body.is-gate .gate {
    height: auto;
    min-height: 0;
  }
  .pilot-nav { grid-template-columns: 1fr; }
  .pilot-out { justify-self: start; }
  .pilot-hero, .pilot-path, .pilot-board, .pilot-set, .pilot-share, .pilot-share-face, .pilot-share-stats.is-public { grid-template-columns: 1fr; }
  .pilot-dash { grid-template-columns: 1fr; }
  .pilot-car { max-width: 320px; margin: -10px auto -20px; }
  .gate { grid-template-columns: 1fr; height: auto; }
  .gate-shot {
    height: min(28vw, 140px);
    max-height: 140px;
    min-height: 0;
  }
  .gate-panel {
    border-left: 0;
    border-top: 2px solid #08070c;
    overflow: visible;
    padding: 28px 20px calc(36px + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width: 760px) {
  .pilot-page {
    padding: calc(var(--bar, 68px) + 16px) 0 calc(48px + env(safe-area-inset-bottom, 0px));
  }
  .pilot-nav {
    position: sticky;
    top: var(--bar, 68px);
    z-index: 20;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin-inline: -16px;
    padding: 8px 16px 10px;
    background: color-mix(in srgb, var(--night, #0c0a14) 92%, transparent);
    backdrop-filter: blur(12px);
  }
  .pilot-out { justify-self: end; }
  .pilot-out button { height: 42px; padding: 0 10px; font-size: 13px; }
  .pilot-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .pilot-tabs::-webkit-scrollbar { display: none; }
  .pilot-nav button { flex: 0 0 auto; }
  .pilot-mine-top { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
}
@media (max-width: 560px) {
  .pilot-nav button { font-size: 14px; padding: 0 12px; height: 42px; }
  .pilot-ico { width: 18px; height: 18px; }
  .gate-shot { height: 96px; max-height: 96px; }
  .gate-panel { padding: 22px 16px calc(28px + env(safe-area-inset-bottom, 0px)); }
  .gate-panel h1 { font-size: clamp(36px, 12vw, 52px); }
  .gate-go { font-size: 20px; }
}
