:root { font-family: -apple-system, system-ui, Segoe UI, Roboto, sans-serif; }
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(1200px 600px at 50% 0%, #fff 0%, #f6f7ff 40%, #f3f3f3 100%);
  padding: 16px;
}
.card {
  width: min(420px, 92vw);
  background: #ffffffcc;
  backdrop-filter: blur(8px);
  padding: 16px;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,.08);
}
h1 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.2px; }
.muted { color: #666; margin: 6px 0 12px; }
.mini { font-size: 13px; margin: 0; }
.label { font-size: 13px; color: #444; display: block; margin: 10px 0 6px; }
.input {
  width: 100%;
  padding: 12px;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  font-size: 16px;
  outline: none;
}
.btn {
  width: 100%;
  border: 1px solid #e6e6e6;
  background: #fff;
  padding: 12px;
  border-radius: 16px;
  font-size: 16px;
  margin-top: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn.primary { border-color: #111; background: #111; color: #fff; }
.error { color: #b00020; margin: 10px 0 0; min-height: 1em; }
.hidden { display: none; }

.shareRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.miniBtn { margin-top: 0; width: auto; padding: 10px 12px; border-radius: 14px; font-size: 14px; }

.laneCard {
  border: 1px solid #eee;
  border-radius: 18px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff, #fafaff);
}
.namesRow { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.namePill {
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #eee;
  background: #fff;
}
.lane {
  position: relative;
  height: 88px;
  border-radius: 16px;
  background: linear-gradient(90deg, #ffe9f3, #eaf2ff);
  border: 1px solid #eaeaea;
  overflow: hidden;
}
.lane::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px;
  top: 50%;
  transform: translateY(-50%);
  height: 0;
  border-top: 2px dashed rgba(0,0,0,.10);
}

.shoe {
  position: absolute;
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%);
  object-fit: contain;
}
.shoeRight { transform: translate(-50%, -50%) scaleX(-1); }

.shoe.rotatedLeft { transform: translate(-50%, -50%) rotate(90deg); }
.shoe.rotatedRight { transform: translate(-50%, -50%) scaleX(-1) rotate(90deg); }

.spark { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); font-size: 22px; }
.turnMsg { margin-top: 10px; font-size: 15px; padding: 10px 12px; border-radius: 14px; background: #f3f3f7; }
.youAre { margin-top: 10px; font-size: 13px; color: #444; padding: 8px 10px; border-radius: 14px; background: #fff; border: 1px solid #eee; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.endMsg { margin-top: 12px; padding: 12px; border-radius: 14px; background: #111; color: #fff; white-space: pre-line; }
