/* welcome/welcome.css
   The first-run flow. Everything here uses the theme's own variables
   (shared/css/base.css), so it follows light and dark mode like every
   other page. Prefixed wl- so nothing leaks into the shared styles. */

.wl-wrap{
  max-width: 880px;
  margin: 0 auto;
  padding: 8px 0 48px;
}

/* ---------- progress ---------- */

.wl-steps{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 8px;
  padding: 0;
  margin: 0 0 32px;
}

.wl-steps li{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.wl-steps li + li::before{
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--border);
  margin-right: 2px;
}

.wl-n{
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
}

.wl-steps li.on{ color: var(--text); }
.wl-steps li.on .wl-n{ border-color: var(--accent); background: var(--accent); color: #fff; }
.wl-steps li.done .wl-n{ border-color: var(--ok); background: var(--ok); color: var(--bg); }

/* ---------- type ---------- */

.wl-hello{
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 8px;
}

.wl-h1{
  font-family: var(--sans);
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.wl-h2{
  font-family: var(--sans);
  font-size: 23px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.wl-lead{
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.55;
  margin: 0 0 28px;
}

.wl-lead.wl-tight{ margin-bottom: 6px; }

.wl-aside{
  margin-top: 26px;
  color: var(--muted);
  font-size: 14px;
}

.wl-aside a{ color: var(--accent-2); }

.wl-label{
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
}

/* ---------- the three big choices ---------- */

.wl-choices{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.wl-choice{
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  cursor: pointer;
  font: inherit;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.wl-choice:hover,
.wl-choice:focus-visible{
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--glow-accent);
  outline: none;
}

.wl-em{
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 26px;
}

.wl-em-site{ background: color-mix(in srgb, var(--type-website) 14%, transparent); }
.wl-em-game{ background: color-mix(in srgb, var(--type-game) 14%, transparent); }
.wl-em-pc{ background: color-mix(in srgb, var(--type-worker) 14%, transparent); }

.wl-t{ font-size: 18px; font-weight: 700; }
.wl-s{ color: var(--muted); font-size: 14px; line-height: 1.5; }

.wl-eg{
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12.5px;
}

/* ---------- cards, questions, fields ---------- */

.wl-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.wl-q{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}

.wl-opt{
  text-align: left;
  background: var(--surface2);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.wl-opt:hover,
.wl-opt:focus-visible{ border-color: var(--accent); outline: none; }
.wl-opt b{ display: block; font-size: 15.5px; margin-bottom: 4px; }
.wl-opt span{ color: var(--muted); font-size: 13.5px; line-height: 1.5; }

.wl-os{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.wl-os-opt{ text-align: center; padding: 14px; }
.wl-os-opt b{ margin: 0; }
.wl-os-opt span{ display: block; margin-top: 2px; font-size: 12px; }
.wl-os-opt[aria-checked="true"]{ border-color: var(--accent); background: var(--accent-dim); }

.wl-card .field{ margin-top: 20px; }

/* plain, friendly labels: the shared ones are the small monospace kind */
.wl-card .field label{
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  margin-bottom: 7px;
}

.wl-card .field input:not([type="checkbox"]):not([type="radio"]){ font-size: 15px; padding: 12px 14px; border-width: 1.5px; border-radius: var(--radius-sm); }

.wl-card .field-hint{
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.wl-card .field-hint b{ color: var(--text); font-weight: 600; }
.wl-card .field-hint.wl-bad{ color: var(--danger); }

/* focus moves to each screen's heading so a screen reader announces it;
   a box drawn round the heading would only confuse everyone else */
.wl-screen h1:focus,
.wl-screen h2:focus{ outline: none; }

.wl-note{
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.wl-note b{ color: var(--text); }

.wl-btns{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.wl-btns.wl-center{ justify-content: center; }

/* ---------- connecting ---------- */

.wl-how{
  margin: 22px 0 6px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.wl-how li{ padding-left: 6px; }
.wl-how li > b{ display: block; font-size: 16px; margin-bottom: 6px; }
.wl-how li > span{ color: var(--muted); font-size: 14px; line-height: 1.6; }
.wl-how li > span b{ color: var(--text); }

.wl-how kbd{
  background: var(--surface2);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 6px;
  font: 12.5px var(--sans);
  color: var(--text);
}

.wl-copy-row{
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 10px 10px 14px;
  color: var(--muted);
  font-size: 14px;
}

.wl-copy-row span{ flex: 1; min-width: 0; }

.wl-peek{
  color: var(--muted);
  font-size: 13px;
  margin: 14px 0 4px;
}

.wl-peek summary{ cursor: pointer; }

.wl-peek code{
  display: block;
  margin: 8px 0;
  padding: 8px 10px;
  font: 12px var(--mono);
  color: var(--accent-2);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow-x: auto;
  white-space: nowrap;
}

.wl-wait{
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--surface2);
  border: 1px dashed var(--border);
}

.wl-wait b{ display: block; }
.wl-wait span span{ color: var(--muted); font-size: 13.5px; }

.wl-pulse{
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  animation: wl-pulse 1.6s infinite;
}

@keyframes wl-pulse{
  0%{ box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  70%{ box-shadow: 0 0 0 14px transparent; }
  100%{ box-shadow: 0 0 0 0 transparent; }
}

.wl-wait.wl-ok{
  border-style: solid;
  border-color: color-mix(in srgb, var(--ok) 45%, transparent);
  background: color-mix(in srgb, var(--ok) 8%, transparent);
}

.wl-wait.wl-ok .wl-pulse{ background: var(--ok); animation: none; }
.wl-wait.wl-slow .wl-pulse{ background: var(--warn); }

@media (prefers-reduced-motion: reduce){
  .wl-pulse{ animation: none; }
  .wl-choice{ transition: none; }
}

/* ---------- a rented game, found ---------- */

.wl-found{
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--type-game) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--type-game) 40%, transparent);
}

.wl-found.wl-searching{
  background: var(--surface2);
  border: 1px dashed var(--border);
}

.wl-found.wl-quiet{
  background: color-mix(in srgb, var(--warn) 8%, transparent);
  border-color: color-mix(in srgb, var(--warn) 40%, transparent);
}

.wl-big{
  font-size: 30px;
  font-weight: 800;
  color: var(--type-game);
  white-space: nowrap;
}

.wl-big small{ font-size: 15px; color: var(--muted); font-weight: 500; }
.wl-found span{ color: var(--muted); font-size: 13.5px; }

/* ---------- done ---------- */

.wl-done{ text-align: center; padding: 40px 28px; }
.wl-done .wl-lead{ max-width: 520px; margin: 0 auto; }

.wl-tick{
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 38px;
  color: var(--ok);
  background: color-mix(in srgb, var(--ok) 12%, transparent);
  border: 2px solid var(--ok);
}

.wl-next{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 26px;
  text-align: left;
}

.wl-next a.wl-opt{ text-decoration: none; display: block; }

/* ---------- phones ---------- */

@media (max-width: 760px){
  .wl-choices,
  .wl-q,
  .wl-next{ grid-template-columns: 1fr; }
  .wl-h1{ font-size: 26px; }
  .wl-card{ padding: 20px 18px; }
  .wl-os{ grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .wl-os-opt{ padding: 12px 6px; }
  .wl-os-opt span{ display: none; }
  .wl-steps li + li::before{ width: 12px; }
}
