/* Doge Soft Explorer - the Dogecoin Internet: landing, address bar view, results header. */

/* Home = the landing. The live ledger sits behind #ledger (and #stream #doginals #coins #blocks). */
body:not(.view-mode):not(.serp-mode):not(.web-mode):not(.ledger-mode) main > :not(#dweb):not(#detailStage),
body:not(.ledger-mode) .live-rail,
body.web-mode .live-rail {
  display: none !important;
}
body.ledger-mode main > #dweb,
body.view-mode main > #dweb,
body.serp-mode main > #dweb,
body.web-mode main > #dweb {
  display: none !important;
}
body.web-mode:not(.view-mode) main > :not(#webView):not(#serp):not(#detailStage) {
  display: none !important;
}
/* 2026-10-28: site views share the results page's full-width bar; no logo / New tab bar of their own. */
body.web-mode #serp {
  padding-bottom: 0;
}
body.web-mode #serp .serp__grid {
  display: none !important;
}
.serp__tabs:empty {
  border-bottom: 0;
  margin: 0;
}
.web__newtab {
  margin-left: auto;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}
.web__newtab:hover,
.web__newtab:focus-visible {
  color: var(--orange);
}
#webView[hidden] {
  display: none !important;
}

.dweb {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 72px);
  padding: 14px 0 32px;
  font-family: "DM Sans", system-ui, sans-serif;
}
.dweb__center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: clamp(8px, 3svh, 40px) 0 14vh;
  text-align: center;
}

/* ƉOGE wordmark: one brand orange/yellow shade per letter, no glow.
   Neither DM Sans nor Space Grotesk has a U+0189 glyph, so the real Ɖ stays in the page (copy, search, screen readers)
   and Space Grotesk's identical capital D-with-stroke draws it. */
/* One fixed stage for the wordmark and SI: the box never changes height, so the bar never moves.
   The wordmark sits a touch above the box middle, where SI's body sits (her shadow fills the bottom). */
.dweb {
  --stage-h: clamp(160px, 24svh, 220px);
}
.dweb__mark {
  display: grid;
  place-items: center;
  width: 100%;
  height: var(--stage-h);
  margin: 0 0 8px;
}
.dweb__brand,
.dweb__si {
  grid-area: 1 / 1;
}
.dweb__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: calc(var(--stage-h) * 0.14);
  transition: opacity 0.4s ease 0.12s, visibility 0s;
}
.dweb__logo {
  display: inline-flex;
  margin: 0;
  font-family: "Space Grotesk", "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(4.4rem, 24vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-shadow: none;
  user-select: none;
}
.dweb__logo span:nth-child(1) { color: #ff7138; }
.dweb__logo span:nth-child(2) { color: #ffcf40; }
.dweb__logo span:nth-child(3) { color: #ff9a3c; }
.dweb__logo span:nth-child(4) { color: #e85a22; }
[data-theme="light"] .dweb__logo span:nth-child(2) { color: #f2b01e; }
.dweb__eth {
  font-size: 0;
  letter-spacing: 0;
}
.dweb__eth::before {
  content: "\0110";
  font-size: clamp(4.4rem, 24vw, 7.4rem);
  letter-spacing: -0.04em;
}
.dweb__tag {
  margin: 10px 0 30px;
  color: var(--muted);
  font: 400 1.05rem/1.4 "DM Sans", system-ui, sans-serif;
  letter-spacing: 0.01em;
}

/* SI Mode: a pure crossfade in the same stage. The wordmark fades out, SI fades in on the same center */
.dweb__si {
  position: relative;
  width: min(100%, 420px);
  height: var(--stage-h);
  margin: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.4s ease 0.12s;
}
.dweb__si[hidden] {
  display: none;
}
.dweb__si .stage-fallback svg {
  width: 150px;
  height: 150px;
}
.si-on .dweb__brand {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.32s ease, visibility 0s linear 0.32s;
}
.dweb__si:not(.is-in) {
  transition-delay: 0s;
  transition-duration: 0.32s;
}
.si-on .dweb__si.is-in {
  opacity: 1;
}

/* Under the bar: the helper line and SI's ideas share one spot and crossfade */
.dweb__below {
  display: grid;
  width: 100%;
  margin: 16px 0 0;
}
.dweb__below > .dweb__hint,
.dweb__below > .dweb__chips {
  grid-area: 1 / 1;
  align-self: start;
  margin: 0;
}
.dweb__hint {
  transition: opacity 0.3s ease 0.12s, visibility 0s;
}
.si-on .dweb__hint {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.dweb__below .dweb__ideas button {
  animation-name: dweb-fade;
}
@keyframes dweb-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Home search bars (normal + SI): Google-style pill, identical in both modes.
   Magnifier left, clear X, SI switch at the end with right padding. Enter submits / asks SI. No arrow. */
.dweb__form,
.dweb__form.search {
  display: block;
  width: 100%;
  max-width: 600px;
  animation: dweb-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.dweb__form[hidden] {
  display: none;
}
/* the two bars are one look: swapping them must not slide or fade anything */
.si-used .dweb__form {
  animation: none;
}
@keyframes dweb-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
/* Border comet (home + SERP): solid fill + static orange rim; a short bright streak rides the 1.5px outline only. */
@property --pill-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes pill-border-wave {
  to { --pill-angle: 360deg; }
}
.dweb__pill,
.serp__pill {
  --pill-angle: 0deg;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  border: 1.5px solid var(--orange);
  border-radius: 99px;
  background: #fff;
  box-sizing: border-box;
}
.dweb__pill {
  padding: 6px 12px 6px 18px;
}
[data-theme="dark"] .dweb__pill,
[data-theme="dark"] .serp__pill {
  background: rgba(255, 255, 255, 0.05);
}
/* Comet ring: clipped to the border only, never covers the fill */
.dweb__pill::before,
.serp__pill::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  padding: 1.5px;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 1;
  background: conic-gradient(
    from var(--pill-angle),
    transparent 0%,
    transparent 82%,
    #ff7138 88%,
    #ffcf40 92%,
    #ff7138 96%,
    transparent 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: pill-border-wave 7s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .dweb__pill::before,
  .serp__pill::before {
    content: none;
    animation: none;
  }
}
.dweb__lens {
  flex: 0 0 auto;
  color: #a39b94;
}
.dweb__form .search-input,
.web__addr .search-input,
.serp__form .search-input {
  font-family: "DM Sans", system-ui, sans-serif;
  box-shadow: none;
}
.dweb__pill input,
.dweb__pill .search-input,
.dweb__pill .search-input:focus {
  flex: 1;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font: 500 16px/1.2 "DM Sans", system-ui, sans-serif;
}
.dweb__pill input::placeholder {
  color: #a39b94;
}
.web__addr .search-input:focus,
.serp__form .search-input:focus {
  border-color: var(--orange);
  box-shadow: none;
}
.dweb__ico,
.dweb__go {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.dweb__ico[hidden] {
  display: none;
}
.dweb__ico,
.dweb__clear {
  background: transparent;
  color: var(--muted);
}
.dweb__clear:hover,
.dweb__ico:hover {
  color: var(--ink);
}
.dweb__mic {
  background: #fff6ec;
  color: #1f1b18;
}
[data-theme="dark"] .dweb__mic {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}
.dweb__mic[aria-pressed="true"] {
  background: var(--yellow);
  color: #1f1b18;
}
.dweb__go {
  background: var(--orange);
  color: #fff;
}
.dweb__form .search-suggest {
  right: 0;
  text-align: left;
}

/* SI Mode: compact on/off switch at the very end of the bar, after the clear X (soft corners, no glow) */
.dweb__switch {
  flex: none;
  display: grid;
  place-items: center;
  width: 54px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.dweb__track {
  position: relative;
  display: block;
  width: 50px;
  height: 28px;
  border: 1.5px solid var(--line);
  border-radius: 99px;
  background: #fff6ec;
  transition: background 0.2s, border-color 0.2s;
}
[data-theme="dark"] .dweb__track {
  background: rgba(255, 255, 255, 0.08);
}
.dweb__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--orange);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s;
}
.dweb__si-lbl {
  position: absolute;
  top: 0;
  right: 7px;
  color: #1f1b18;
  font: 700 11px/25px "Space Grotesk", system-ui, sans-serif;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
[data-theme="dark"] .dweb__si-lbl {
  color: var(--ink);
}
.dweb__switch:hover .dweb__track,
.dweb__switch:focus-visible .dweb__track {
  border-color: var(--orange);
}
.dweb__switch:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}
.dweb__switch[aria-checked="true"] .dweb__track,
[data-theme="dark"] .dweb__switch[aria-checked="true"] .dweb__track {
  border-color: var(--orange);
  background: var(--orange);
}
.dweb__switch[aria-checked="true"] .dweb__knob {
  background: #fff;
  transform: translateX(22px);
}
.dweb__switch[aria-checked="true"] .dweb__si-lbl,
[data-theme="dark"] .dweb__switch[aria-checked="true"] .dweb__si-lbl {
  right: auto;
  left: 8px;
  color: #fff;
}
/* the bar that appears slides its knob in, so the flip reads as one switch */
.si-used .dweb__switch .dweb__knob {
  animation: dweb-knob-off 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.si-used .dweb__switch[aria-checked="true"] .dweb__knob {
  animation-name: dweb-knob-on;
}
@keyframes dweb-knob-on {
  from { transform: none; }
  to { transform: translateX(22px); }
}
@keyframes dweb-knob-off {
  from { transform: translateX(22px); }
  to { transform: none; }
}

/* Top Doge Soft spots: si.dogesoft.io's chip pills, with a line icon each */
.dweb__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 0;
}
.dweb__chips[hidden] {
  display: none;
}
.dweb__chip,
.dweb__ideas button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 15px;
  border: 0;
  border-radius: 99px;
  background: #fff6ec;
  color: #1f1b18;
  font: 500 14px/1 "DM Sans", system-ui, sans-serif;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
  animation: dweb-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.dweb__chip:nth-child(2),
.dweb__ideas button:nth-child(2) { animation-delay: 0.06s; }
.dweb__chip:nth-child(3),
.dweb__ideas button:nth-child(3) { animation-delay: 0.12s; }
.dweb__chip:nth-child(4) { animation-delay: 0.18s; }
.dweb__chip svg {
  flex: none;
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dweb__chip:hover,
.dweb__chip:focus-visible,
.dweb__ideas button:hover {
  background: #ffe9d6;
  color: #1f1b18;
}
[data-theme="dark"] .dweb__chip,
[data-theme="dark"] .dweb__ideas button {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}
[data-theme="dark"] .dweb__chip:hover,
[data-theme="dark"] .dweb__chip:focus-visible,
[data-theme="dark"] .dweb__ideas button:hover {
  background: rgba(255, 113, 56, 0.18);
  color: var(--ink);
}
.dweb__hint {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.dweb__hint span {
  color: var(--ink);
  font-weight: 400;
  opacity: 0.8;
}

/* SI's chat: newest on top, older ones fade, then fold away (si.dogesoft.io's conversation styles) */
.dweb__note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.dweb__note[hidden],
.dweb__thread[hidden],
.dweb__memory[hidden] {
  display: none;
}
.dweb__thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 600px;
  margin-top: 16px;
  text-align: left;
  font: 16px/1.55 "DM Sans", system-ui, sans-serif;
}
.dweb__thread:empty {
  display: none;
}
.dweb__thread .ex {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: opacity 0.35s, transform 0.35s;
}
.dweb__thread .ex.now {
  animation: dweb-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.dweb__thread .ex.prev1 { opacity: 0.72; }
.dweb__thread .ex.prev2 { opacity: 0.5; transform: scale(0.985); transform-origin: top center; }
.dweb__thread .ex.prev2 .reply {
  max-height: 150px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
.dweb__thread .ex.prev1:hover,
.dweb__thread .ex.prev2:hover,
.dweb__thread .ex.prev1:focus-within,
.dweb__thread .ex.prev2:focus-within { opacity: 1; transform: none; }
.dweb__thread .ex.prev2:hover .reply,
.dweb__thread .ex.prev2:focus-within .reply { max-height: none; -webkit-mask-image: none; mask-image: none; }
.dweb__thread .ex + .ex { padding-top: 12px; border-top: 1.5px dashed var(--line); }
.dweb__thread .me {
  align-self: flex-end;
  max-width: 85%;
  padding: 10px 15px;
  border: 0;
  border-radius: 20px 20px 6px 20px;
  background: #ececec;
  color: #1a1a1a;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}
[data-theme="dark"] .dweb__thread .me {
  background: #ececec;
  color: #1a1a1a;
}
.dweb__thread .reply {
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: 6px 22px 22px 22px;
  background: #fff;
  color: #1f1b18;
}
[data-theme="dark"] .dweb__thread .reply {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}
.dweb__thread .reply p { margin: 0 0 8px; }
.dweb__thread .reply p:last-child { margin-bottom: 0; }
.dweb__thread .reply .step-tag {
  margin: 0 0 8px;
  color: var(--orange);
  font: 600 11px/1.2 "Space Grotesk", system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dweb__thread .reply ol.plan { display: grid; gap: 8px; margin: 10px 0 4px; padding: 0; list-style: none; counter-reset: plan; }
.dweb__thread .reply ol.plan li { position: relative; padding-left: 34px; font-size: 15px; counter-increment: plan; }
.dweb__thread .reply ol.plan li::before {
  content: counter(plan);
  position: absolute;
  left: 0;
  top: 1px;
  width: 23px;
  height: 23px;
  border-radius: 8px;
  background: var(--yellow);
  color: #1f1b18;
  font: 700 12px/23px "Space Grotesk", system-ui, sans-serif;
  text-align: center;
}
.dweb__thread .reply .facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 10px 0; font-size: 14px; }
.dweb__thread .reply .facts div { display: contents; }
.dweb__thread .reply .facts dt { color: var(--muted); }
.dweb__thread .reply .facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; word-break: break-all; }
.dweb__thread .reply blockquote {
  margin: 10px 0;
  padding: 10px 14px;
  border-left: 4px solid var(--yellow);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 207, 64, 0.12);
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.dweb__thread .reply pre {
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #1f1b18;
  color: #fff6ec;
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-x: auto;
}
.dweb__thread .reply .preview {
  display: block;
  max-width: 100%;
  max-height: 240px;
  margin: 0 0 12px;
  border-radius: 16px;
  object-fit: contain;
}
.dweb__thread .reply .go-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dweb__thread .reply .go-links a,
.dweb__thread .reply .go-links .ask-chip {
  padding: 10px 13px;
  border: 1.5px solid transparent;
  border-radius: 99px;
  background: #fff6ec;
  color: #1f1b18;
  font: 600 13px/1 "Space Grotesk", system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.dweb__thread .reply .go-links .ask-chip { border-color: var(--line); background: transparent; color: inherit; }
.dweb__thread .reply .go-links .ask-chip:hover { border-color: var(--orange); }
.dweb__thread .reply .go-links a.primary { background: var(--orange); color: #fff; }
.dweb__thread .reply .src { margin-top: 10px; color: var(--muted); font-size: 12px; }
/* SI Mode: the Explorer's results inside SI's reply (chain data first, names and dogesites after) */
.dweb__thread .reply.found { padding: 14px 14px 16px; }
.dweb__thread .reply .found-lead {
  margin: 0 4px 10px;
  color: var(--orange);
  font: 600 12px/1.2 "Space Grotesk", system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dweb__thread .reply .hits { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dweb__thread .reply .hits li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dweb__thread .reply .hit {
  display: flex;
  flex: 1 1 240px;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}
.dweb__thread .reply .hit:hover,
.dweb__thread .reply .hit:focus-visible { border-color: var(--orange); background: rgba(255, 113, 56, 0.06); }
.dweb__thread .reply .hit-img {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255, 207, 64, 0.16);
}
.dweb__thread .reply .hit-badge {
  display: grid;
  place-items: center;
  color: var(--orange);
  font: 700 13px/1 "Space Grotesk", system-ui, sans-serif;
}
.dweb__thread .reply .hit-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dweb__thread .reply .hit-tag {
  color: var(--muted);
  font: 600 11px/1.2 "Space Grotesk", system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dweb__thread .reply .hit-t { font: 600 15px/1.3 "Space Grotesk", system-ui, sans-serif; overflow-wrap: anywhere; }
.dweb__thread .reply .hit-sub { color: var(--muted); font-size: 13px; line-height: 1.35; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dweb__thread .reply .hit-ext {
  flex: none;
  padding: 10px 14px;
  border-radius: 99px;
  background: var(--yellow);
  color: #1f1b18;
  font: 600 13px/1 "Space Grotesk", system-ui, sans-serif;
  text-decoration: none;
}
.dweb__thread .reply .hit-ext:hover { background: var(--orange); color: #fff; }
.dweb__thread .reply.thinking { display: inline-flex; align-self: flex-start; gap: 5px; padding: 14px 16px; }
.dweb__thread .reply.thinking i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); animation: dweb-dots 1s ease-in-out infinite; }
.dweb__thread .reply.thinking i:nth-child(2) { background: var(--yellow); animation-delay: 0.15s; }
.dweb__thread .reply.thinking i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dweb-dots { 50% { transform: translateY(-5px); } }
.dweb__thread .earlier { margin-top: 12px; border: 1.5px solid var(--line); border-radius: 18px; }
.dweb__thread .earlier[hidden] { display: none; }
.dweb__thread .earlier summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: var(--muted);
  font: 600 14px/1 "Space Grotesk", system-ui, sans-serif;
  list-style: none;
  cursor: pointer;
}
.dweb__thread .earlier summary::-webkit-details-marker { display: none; }
.dweb__thread .earlier summary b { padding: 4px 9px; border-radius: 99px; background: rgba(255, 207, 64, 0.16); color: var(--ink); font-size: 12px; }
.dweb__thread .earlier ol { display: flex; flex-direction: column; gap: 6px; max-height: min(55vh, 420px); margin: 0; padding: 0 10px 10px; overflow-y: auto; list-style: none; }
.dweb__thread .ex.compact .me {
  align-self: stretch;
  max-width: none;
  overflow: hidden;
  padding: 9px 13px;
  border-radius: 14px;
  background: rgba(255, 207, 64, 0.14);
  color: var(--ink);
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.dweb__thread .ex.compact .reply { display: none; }
.dweb__thread .ex.compact.open .reply { display: block; }
.dweb__memory {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.dweb__memory button {
  padding: 8px 12px;
  border: 1.5px solid var(--line);
  border-radius: 99px;
  background: transparent;
  color: var(--orange);
  font: 600 13px/1 "Space Grotesk", system-ui, sans-serif;
  cursor: pointer;
}
.dweb__memory button:hover {
  border-color: var(--orange);
}
@media (prefers-reduced-motion: reduce) {
  .dweb__brand,
  .dweb__si,
  .si-on .dweb__brand,
  .dweb__knob,
  .si-used .dweb__switch .dweb__knob,
  .dweb__form,
  .dweb__chip,
  .dweb__ideas button,
  .dweb__thread .ex,
  .dweb__thread .ex.now {
    animation: none;
    transition: none;
  }
}

.web__card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
  font: 700 0.95rem/1.2 "DM Sans", system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.web__card-btn:hover {
  border-color: var(--orange);
}
.web__card-btn--pri {
  border-color: transparent;
  background: var(--yellow);
  color: #17211b;
}
.web__card-btn--pri:hover {
  background: var(--orange);
  border-color: transparent;
  color: #17211b;
}

/* -- Results page: full-width pill search (Google mobile style). Logo and Search button removed; Enter submits. -- */
.serp__bar {
  display: block;
  width: 100%;
  gap: 0;
}
.serp__form,
.serp__form.search {
  display: block;
  position: relative;
  flex: none;
  width: 100%;
  max-width: none;
  gap: 0;
}
.serp__pill {
  /* shared comet styles live with .dweb__pill above; only SERP padding differs */
  padding: 6px 14px 6px 18px;
}
.serp__lens {
  flex: 0 0 auto;
  color: #a39b94;
}
.serp__pill .search-input,
.serp__pill .search-input:focus {
  flex: 1;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font: 500 16px/1.2 "DM Sans", system-ui, sans-serif;
}
.serp__pill .search-input::placeholder {
  color: #a39b94;
}
.serp__clear {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.serp__clear[hidden] {
  display: none;
}
.serp__clear:hover {
  color: var(--ink);
}
.serp__form .search-suggest {
  left: 0;
  right: 0;
}
.serp .serp__tabs {
  padding-left: 0;
}
.serp__menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 10px 0 0;
  padding-left: 0;
  font-size: 0.85rem;
  font-weight: 700;
}
.serp__menu a {
  color: var(--muted);
  text-decoration: none;
}
.serp__menu a:hover,
.serp__menu a:focus-visible {
  color: var(--orange);
}

/* -- Dogecoin web view: a small browser inside the explorer -- */
.web {
  padding: 14px 0 40px;
  font-family: "DM Sans", system-ui, sans-serif;
}
.web__bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.web__logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}
.web__logo img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.web__nav {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
  font: 700 0.9rem/1 "DM Sans", system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.web__nav[hidden] {
  display: none;
}
.web__nav:hover {
  border-color: var(--orange);
}
.web__addr.search {
  flex: 1;
  max-width: none;
  min-width: 0;
}
.web__addr .search-input {
  padding: 12px 16px;
  font-size: 0.95rem;
}
.web__addr .search-btn {
  display: none;
}
.web__where {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 10px 2px 12px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.web__chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 16px;
  background: rgba(255, 207, 64, 0.16);
  color: var(--ink);
  font-size: 0.78rem;
}
.web__chip--name {
  background: rgba(255, 113, 56, 0.16);
}
.web__frame {
  display: block;
  width: 100%;
  height: calc(100svh - 190px);
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.web__card {
  max-width: 640px;
  margin: 18px auto 0;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.web__card-eye {
  margin: 0 0 6px;
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.web__card h2 {
  margin: 0 0 10px;
  font: 700 clamp(1.6rem, 6vw, 2.2rem)/1.05 "Space Grotesk", "DM Sans", system-ui, sans-serif;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}
.web__card p {
  margin: 0 0 14px;
  color: var(--muted);
}
.web__kv {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.web__kv dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}
.web__kv dd {
  margin: 4px 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
  word-break: break-all;
  color: var(--ink);
}
.web__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

@media (min-width: 821px) {
  .dweb {
    --stage-h: clamp(180px, 26svh, 250px);
  }
}
@media (max-width: 820px) {
  .dweb__center {
    padding: 2svh 0 10vh;
  }
  .dweb__pill {
    padding: 4px 10px 4px 14px;
  }
  .serp .serp__tabs,
  .serp__menu {
    padding-left: 0;
  }
  .serp__pill {
    padding: 4px 10px 4px 14px;
  }
  .serp__pill .search-input,
  .serp__pill .search-input:focus {
    padding: 10px 0;
    font-size: 15px;
  }
  .serp__clear {
    width: 36px;
    height: 36px;
  }
  .web__nav--tab span {
    display: none;
  }
  .web__frame {
    height: calc(100svh - 170px);
    min-height: 360px;
  }
  .web__card {
    padding: 22px 18px;
  }
  .web__card-btn {
    flex: 1 1 auto;
  }
}

/* Phones: tighter pill + SI switch, so the input gets the room (no arrow) */
@media (max-width: 600px) {
  .dweb__pill {
    gap: 2px;
    padding: 4px 9px 4px 14px;
  }
  .dweb__lens {
    width: 18px;
    height: 18px;
    margin-right: 4px;
  }
  .dweb__pill input,
  .dweb__pill .search-input,
  .dweb__pill .search-input:focus {
    font-size: 16px;
    padding: 10px 0;
  }
  .dweb__ico,
  .dweb__clear,
  .dweb__go {
    width: 36px;
    height: 36px;
  }
  .dweb__ico svg,
  .dweb__clear svg,
  .dweb__go svg {
    width: 16px;
    height: 16px;
  }
  .dweb__switch {
    width: 42px;
    height: 36px;
    border-radius: 12px;
  }
  .dweb__track {
    width: 38px;
    height: 22px;
  }
  .dweb__knob {
    top: 2.5px;
    left: 2.5px;
    width: 14px;
    height: 14px;
  }
  .dweb__si-lbl {
    right: 5px;
    font-size: 9px;
    line-height: 19px;
  }
  .dweb__switch[aria-checked="true"] .dweb__knob {
    transform: translateX(16px);
  }
  .dweb__switch[aria-checked="true"] .dweb__si-lbl,
  [data-theme="dark"] .dweb__switch[aria-checked="true"] .dweb__si-lbl {
    left: 5px;
  }
  .si-used .dweb__switch .dweb__knob {
    animation-name: dweb-knob-off-sm;
  }
  .si-used .dweb__switch[aria-checked="true"] .dweb__knob {
    animation-name: dweb-knob-on-sm;
  }
  @keyframes dweb-knob-on-sm {
    from { transform: none; }
    to { transform: translateX(16px); }
  }
  @keyframes dweb-knob-off-sm {
    from { transform: translateX(16px); }
    to { transform: none; }
  }
}

@media (max-width: 380px) {
  .dweb__lens {
    display: none;
  }
  .dweb__pill {
    padding-left: 12px;
  }
}

/* Phones: a smaller round arrow so the input gets the room; the hint wraps evenly in up to 2 lines */
@media (max-width: 600px) {
  .dweb__go {
    width: 30px;
    height: 30px;
  }
  .dweb__go svg {
    width: 14px;
    height: 14px;
  }
  .dweb__hint {
    text-wrap: balance;
  }
}

/* Home only: a rare, faint shooting star behind the content (dweb.js adds one every 8-20 s).
   #dweb is display:none on results, ledger and site views, and dweb.js skips SI Mode. */
.dweb {
  isolation: isolate;
}
.dweb__sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.dweb__star {
  position: absolute;
  width: 0;
  height: 0;
  transform: rotate(var(--a, 32deg));
}
.dweb__star::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 130px;
  height: 1.5px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(255, 113, 56, 0), #ff7138);
  opacity: 0;
  animation: dweb-star 1.3s ease-out forwards;
}
@keyframes dweb-star {
  0% { opacity: 0; transform: translateX(-130px); }
  20% { opacity: 0.32; }
  100% { opacity: 0; transform: translateX(var(--d, 280px)); }
}
@media (prefers-reduced-motion: reduce) {
  .dweb__sky { display: none; }
}
