/* Doghouse panel — install one-liners, training placeholder, get-help.
 * One CSS-only running-dog band at the top for flair. Lives as its own
 * file so the install-funnel UX can grow (per-OS detection, copy-state
 * feedback) without churning home.css.
 */

/* --- running dog band ---------------------------------------------------
 * The dog trots across a thin grass strip on a 14s loop. translateX from
 * negative-offscreen to past-the-edge so the loop is seamless. The grass
 * is a single linear-gradient repeating; the dog is an emoji because
 * shipping an SVG mascot for one panel isn't worth the asset weight.
 * Honor `prefers-reduced-motion` by parking the dog mid-frame. */
.dog-field {
  position: relative;
  height: 88px;
  margin: 18px 0 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(var(--accent-rgb), 0.08), transparent 50%),
    linear-gradient(180deg, rgba(var(--slate-rgb), 0.04) 0%, rgba(var(--slate-rgb), 0.10) 100%);
}
.dog-grass {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 14px;
  background-image:
    linear-gradient(to top, rgba(var(--accent-rgb), 0.30) 0%, rgba(var(--accent-rgb), 0.04) 100%),
    repeating-linear-gradient(
      90deg,
      transparent 0 7px,
      rgba(var(--accent-rgb), 0.18) 7px 9px
    );
}
.dog-runner {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 44px;
  height: 44px;
  animation: dog-trot 14s linear infinite;
  /* Slight bob to sell the running motion. */
}
.dog-emoji {
  display: inline-block;
  font-size: 34px;
  line-height: 1;
  animation: dog-bob 0.42s ease-in-out infinite;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.18));
}
@keyframes dog-trot {
  0%   { transform: translateX(-15%); }
  100% { transform: translateX(110vw); }
}
@keyframes dog-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-4px) rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .dog-runner, .dog-emoji { animation: none; }
  .dog-runner { left: 24px; }
}

/* --- play callout ------------------------------------------------------
 * Hero-ish shortcut to the in-browser shell. Sits above the install
 * grid because for most first-touch users the no-install path *is*
 * the answer; install cards are for people who want it on their box. */
.play-callout {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  margin: 0 0 18px;
  background:
    linear-gradient(135deg,
      rgba(var(--accent-rgb), 0.14) 0%,
      rgba(var(--accent-rgb), 0.06) 100%);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.play-callout:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.play-callout-ico {
  font-size: 28px;
  line-height: 1;
  flex: 0 0 auto;
}
.play-callout-body { flex: 1 1 auto; min-width: 0; }
.play-callout-title {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  margin-bottom: 2px;
}
.play-callout-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft);
}
.play-callout-arrow {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 20px;
  font-weight: 600;
  transition: transform 0.15s;
}
.play-callout:hover .play-callout-arrow { transform: translateX(3px); }

/* --- card grid ---------------------------------------------------------- */
.doghouse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}
.doghouse-card {
  padding: 18px 18px 16px;
  background: linear-gradient(180deg,
    rgba(var(--accent-rgb), 0.04) 0%,
    rgba(var(--slate-rgb), 0.03) 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.doghouse-card h2 {
  margin: 6px 0 4px;
  font-size: 16px;
  letter-spacing: 0.02em;
}
.doghouse-card .dh-sub {
  margin: 0 0 12px;
  color: var(--text-soft);
  font-size: 13px;
}
.doghouse-card p { margin: 0 0 10px; font-size: 13px; line-height: 1.5; }
.doghouse-card .fine { color: var(--text-soft); font-size: 12px; }
.doghouse-card .codeblock { font-size: 12px; }

/* Inline SVG icons. We draw the marks ourselves rather than ship logo
   files: keeps the bundle text-only, lets the marks reuse `--accent`
   via `currentColor`, and dodges the "shipping copyrighted logos in
   an internal tool" question. The shapes are recognizable but
   stylized — vibes-of-platform, not endorsed-by. */
.dh-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(var(--accent-rgb), 0.10);
  color: var(--accent);
  flex: 0 0 auto;
  margin-bottom: 4px;
}
.dh-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}
.dh-icon.training { background: rgba(var(--accent-rgb), 0.14); }

/* Numbered steps for the Windows/WSL card. */
.dh-steps {
  margin: 0 0 10px;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}
.dh-steps code {
  background: rgba(var(--accent-rgb), 0.10);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
}

.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-row .pill {
  background: rgba(var(--slate-rgb), 0.08);
  border: 1px solid var(--line);
  color: var(--text-soft);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --- get help ----------------------------------------------------------- */
.get-help {
  margin-top: 8px;
  padding: 18px 20px;
  background: linear-gradient(180deg,
    rgba(var(--accent-rgb), 0.05) 0%,
    rgba(var(--slate-rgb), 0.02) 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.get-help h2 {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.help-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.help-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}
.help-list .help-ico {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1.4;
  width: 22px;
  text-align: center;
}
.help-list code {
  background: rgba(var(--accent-rgb), 0.10);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
}

.reset-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--bg-rgb), 0.85);
  backdrop-filter: blur(4px);
}
.reset-modal[hidden] { display: none; }

.reset-card {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 26px 26px 22px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}
.reset-icon {
  font-size: 2rem;
  margin-bottom: 6px;
}
.reset-card h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: var(--text);
}
.reset-card p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}
.reset-card p.reset-fine {
  font-size: 12px;
  color: var(--text-soft);
}
.reset-card code {
  background: rgba(var(--accent-rgb), 0.10);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
}
.reset-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.reset-cancel,
.reset-confirm {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.reset-cancel:hover { background: rgba(255, 255, 255, 0.04); }
.reset-confirm {
  background: rgb(200, 60, 60);
  border-color: rgb(200, 60, 60);
  color: #fff;
  font-weight: 600;
}
.reset-confirm:hover { background: rgb(220, 75, 75); }
.reset-confirm:disabled,
.reset-cancel:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.reset-status {
  margin: 14px 0 0;
  font-size: 12px;
  color: rgb(220, 90, 90);
}
