.brand-dot { color: #94bff5; }
.mode-button { padding: 8px 14px; background: transparent; }
.mode-button.active { border-color: #d7e9ff; color: #10243f; background: #d7e9ff; }
.mode-button.experiment-mode-button {
  border-color: #d8b4e2;
  color: #24132c;
  background: #c8a2c8;
}
.mode-button.experiment-mode-button:hover,
.mode-button.experiment-mode-button.active {
  border-color: #efd9f5;
  color: #1b0d22;
  background: #ddb8e4;
}

.landing-brand {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 750;
  letter-spacing: -1.4px;
}

.landing-gradient {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(3px, .65vw, 9px);
  min-height: clamp(260px, 46vw, 520px);
  padding: clamp(13px, 2vw, 24px);
  border: 1px solid #465165;
  border-radius: 28px;
  box-shadow: 0 32px 90px #0008;
  background: #191f2a;
  transform: rotate(-2deg);
}

.landing-gradient span { border-radius: 12px; }
.landing-gradient span:nth-child(1) { background: #45406c; }
.landing-gradient span:nth-child(2) { background: #625682; }
.landing-gradient span:nth-child(3) { background: #826e99; }
.landing-gradient span:nth-child(4) { background: #a68aad; }
.landing-gradient span:nth-child(5) { background: #c0a5bd; }
.landing-gradient span:nth-child(6) { background: #d3beca; }
.landing-gradient span:nth-child(7) { background: #e2d5d7; }

.landing-copy h1 {
  max-width: 720px;
  margin: 8px 0 22px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: .98;
  letter-spacing: -.055em;
}

.landing-copy > p:not(.eyebrow) { max-width: 620px; color: #d6dbe5; font-size: clamp(16px, 1.4vw, 19px); }
.landing-copy .landing-detail { color: #aab4c6; font-size: clamp(14px, 1.2vw, 16px); }
.landing-participate {
  min-height: 64px;
  padding: 18px 24px;
  border-color: #efd9f5;
  color: #1b0d22;
  background: #c8a2c8;
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 750;
}
.landing-participate:hover { background: #ddb8e4; }
.landing-skip {
  justify-self: center;
  padding: 5px 8px;
  border: 0;
  color: #98a4b8;
  background: transparent;
  font-size: 13px;
}
.landing-skip:hover { color: #d7e9ff; background: transparent; }
.landing-skip span { display: inline-block; margin-left: 3px; transition: transform .15s ease; }
.landing-skip:hover span { transform: translateX(4px); }
.distance-input { width: 180px; max-width: 180px; }
.stats strong { display: block; font-size: 26px; font-variant-numeric: tabular-nums; }
.stats span { color: #aab4c6; font-size: 14px; }
.board { position: relative; padding: 24px; border: 1px solid #343b49; border-radius: 18px; background: #191f2a; }
.board-help { margin: 0; }
.next-experiment-overlay { position: absolute; z-index: 5; top: 50%; left: 50%; min-width: 150px; box-shadow: 0 10px 35px #000a; transform: translate(-50%, -50%); }

.strip {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  padding: 8px 2px 18px;
  border: 3px solid transparent;
  border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}

.strip.won { border-color: #d4af37; box-shadow: 0 0 18px #d4af3744; }
.tile-slot { display: flex; flex: 1 1 0; min-width: 22px; flex-direction: column; gap: 8px; align-items: center; }

.tile {
  position: relative;
  width: 100%;
  min-width: 0;
  height: clamp(90px, 12vw, 150px);
  padding: 0;
  border: 0;
  border-radius: 6px;
  cursor: grab;
  touch-action: none;
  transition: transform .12s, opacity .12s;
}

.tile:hover { background: var(--color); transform: translateY(-3px); }
.tile[aria-pressed="true"] { outline: 3px solid white; outline-offset: 3px; transform: translateY(-5px); }
.tile.is-dragging { opacity: 0; cursor: grabbing; }
.tile.tap-insertion-target { outline: 2px dashed #fff; outline-offset: 2px; cursor: pointer; }
.strip.reorder-preview .tile-slot {
  transform: translateX(var(--preview-shift, 0));
  transition: transform 160ms cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}
.strip.reorder-preview .drag-source-slot { z-index: 2; }
.strip.reorder-preview .drag-source-slot .tile,
.strip.reorder-preview .drag-source-slot .tile-number { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .strip.reorder-preview .tile-slot { transition-duration: 0ms; }
}
.tile.edge, .tile:disabled { cursor: default; }
.tile:disabled { opacity: 1; }
.tile-number { color: #aab4c6; font-size: 12px; font-variant-numeric: tabular-nums; line-height: 1; }

.debug-values {
  position: absolute;
  inset: 80% auto auto 50%;
  display: grid;
  gap: 2px;
  padding: 4px;
  border-radius: 5px;
  color: #fff;
  background: #10151dcc;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
  pointer-events: none;
  translate: -50% -50%;
}

.tile.wiggle { animation: wiggle .42s ease-in-out; }
.drag-ghost { position: fixed; z-index: 20; border: 2px solid #fff; border-radius: 6px; box-shadow: 0 14px 35px #0008; opacity: 1; pointer-events: none; }

@keyframes wiggle {
  0%, 100% { translate: 0; }
  20% { translate: -5px; }
  40% { translate: 5px; }
  60% { translate: -4px; }
  80% { translate: 4px; }
}

#status { min-height: 28px; margin: 18px 0 0; color: #d7e9ff; }
#sharetext { width: 100%; min-height: 90px; margin-top: 16px; padding: 12px; color: white; background: #191f2a; font: inherit; }
#warning { color: #ffd296; }

.welcome-dialog {
  width: min(520px, calc(100% - 32px));
  max-height: min(680px, calc(100dvh - 32px));
  padding: 28px;
  overflow: auto;
  border: 1px solid #465165;
  border-radius: 20px;
  box-shadow: 0 25px 70px #000b;
  color: #edf0f6;
  background: #191f2a;
}

.welcome-dialog::backdrop { background: #080b10dd; backdrop-filter: blur(3px); }
.welcome-dialog:focus { outline: none; }
.welcome-dialog h2 { margin: 0 0 10px; font-size: clamp(24px, 5vw, 34px); }
.welcome-dialog > p { margin: 10px 0; }
.eyebrow { color: #94bff5; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.instruction-list { display: grid; gap: 12px; margin: 22px 0; padding-left: 24px; line-height: 1.45; }
.welcome-dialog .dialog-actions { margin-top: 24px; }
.display-reminder { padding: 12px 14px; border-radius: 8px; background: #222b39; line-height: 1.5; }
.color-vision-question { display: grid; gap: 14px; margin: 18px 0 0; padding: 0; border: 0; }
.color-vision-question legend { margin-bottom: 10px; font-weight: 700; }
.checkbox-label { display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; }
.checkbox-label input { margin-top: 3px; }
.deficiency-type { display: grid; gap: 7px; color: #c8cfda; font-size: 14px; }
.deficiency-type select { width: 100%; padding: 10px 12px; border: 1px solid #526077; border-radius: 8px; color: #edf0f6; background: #111720; font: inherit; }
.consent-notice { margin: 22px 0 16px; padding: 14px 16px; border-left: 4px solid #94bff5; border-radius: 8px; color: #edf0f6; background: #111720; line-height: 1.5; }
.dialog-links { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.dialog-links a { color: #b8d9ff; text-underline-offset: 3px; }
.dialog-links a:hover { color: white; }
.dialog-links a[aria-disabled="true"] { opacity: .5; cursor: not-allowed; text-decoration: none; }
.feedback-section { margin-top: 24px; }
.feedback-section h3 { margin: 0 0 12px; font-size: 17px; line-height: 1.45; }
.feedback-section textarea { width: 100%; min-height: 150px; resize: vertical; padding: 12px; border: 1px solid #526077; border-radius: 10px; color: #edf0f6; background: #111720; font: inherit; line-height: 1.5; }
.feedback-section textarea:disabled { opacity: .7; }
.feedback-section #feedbackStatus { min-height: 22px; margin: 8px 0 0; }
