/* Body type loaded here so every page gets consistent, intentional typography
   without depending on each visitor's OS system font. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  /* Surfaces — layered near-black with a faint cool cast */
  --bg: #07080c;
  --bg-2: #0a0c12;
  --surface: #0e1018;
  --surface-2: #141823;
  --surface-3: #1b2030;

  /* Hairlines */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Text */
  --text: #eef0f6;
  --text-2: #c4c9d8;
  --muted: #868da1;

  /* Brand */
  --accent: #14f195;
  --accent-ink: #04140d;
  --accent-dim: #0db87a;
  --purple: #9945ff;
  --purple-dim: #7a35cc;
  --grad: linear-gradient(135deg, #9945ff 0%, #14f195 100%);
  --grad-soft: linear-gradient(135deg, rgba(153, 69, 255, 0.18), rgba(20, 241, 149, 0.18));

  /* Radii */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 24px 64px -20px rgba(0, 0, 0, 0.8);

  /* Layout */
  --maxw: 1040px;

  /* Type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  letter-spacing: -0.005em;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

::selection {
  background: rgba(20, 241, 149, 0.28);
  color: #fff;
}

/* Refined backdrop: one soft brand wash up top + a faint dotted grid that
   fades out, instead of the generic double radial glow. */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(153, 69, 255, 0.16), transparent 60%),
    radial-gradient(90% 50% at 85% 110%, rgba(20, 241, 149, 0.10), transparent 55%);
}

.bg-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 70%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 70%);
}

main,
footer {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

/* Crafted brand mark (sprout) — replaces the emoji so it renders crisply and
   consistently everywhere, including server-side rendered pages. */
.logo-icon {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  font-size: 0;
  color: transparent;
  background-color: var(--surface-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='11' y='9.5' width='2' height='11' rx='1' fill='%2314f195'/%3E%3Cellipse cx='8' cy='10.5' rx='5' ry='2.6' transform='rotate(-35 8 10.5)' fill='%2314f195'/%3E%3Cellipse cx='16' cy='8.5' rx='5' ry='2.6' transform='rotate(35 16 8.5)' fill='%239945ff'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.logo-text .accent {
  color: var(--accent);
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s;
}

nav a:hover {
  color: var(--text);
}

.hero {
  padding: 5rem 0 3.5rem;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.4rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 241, 149, 0.18);
}

h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text);
}

h1 .accent,
h2 .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  max-width: 600px;
  margin: 0 auto 2.25rem;
  color: var(--text-2);
  font-size: 1.12rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-note {
  margin: 1rem auto 0;
  max-width: 36rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-note a {
  color: var(--accent);
}

.landing-stats {
  max-width: 36rem;
  margin: 1.25rem auto 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.landing-stats .stats-line {
  margin: 0;
}

.landing-stats .stats-line strong,
.landing-stats a {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--grad);
  color: var(--accent-ink);
  box-shadow: 0 8px 24px -8px rgba(20, 241, 149, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 12px 30px -8px rgba(20, 241, 149, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  background: var(--surface-2);
  border-color: rgba(20, 241, 149, 0.5);
  color: var(--text);
}

.btn-small {
  padding: 0.5rem 0.9rem;
  font-size: 0.84rem;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-small:hover {
  border-color: rgba(20, 241, 149, 0.5);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
  margin-bottom: 3.5rem;
}

.card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 40%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Cards that lead somewhere (a single link) gently lift on hover. */
.card-grid .card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card h2 {
  margin: 0 0 0.65rem;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text);
}

.card p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card a:not(.btn) {
  color: var(--accent);
}

.offerings {
  margin-bottom: 3rem;
}

.offerings h2,
.tip-jar h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
}

.offering-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.offering-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text-2);
  transition: border-color 0.2s ease;
}

.offering-list li:hover {
  border-color: var(--border-strong);
}

.offering-list a {
  color: var(--text);
  text-decoration: none;
}

.offering-list a:hover {
  color: var(--accent);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  border: 1px solid transparent;
}

.tag-soon {
  background: rgba(153, 69, 255, 0.14);
  border-color: rgba(153, 69, 255, 0.3);
  color: #c79bff;
}

.tag-live {
  background: rgba(20, 241, 149, 0.12);
  border-color: rgba(20, 241, 149, 0.3);
  color: var(--accent);
}

.tag-live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.tip-jar {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 30%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-md);
}

.tip-jar > p {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.address-box label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.address-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
  flex-wrap: wrap;
}

.address-row code {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: clamp(0.7rem, 2.5vw, 0.9rem);
  word-break: break-all;
  color: var(--accent);
}

.copy-feedback {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--accent);
}

.tip-links {
  margin: 1.25rem 0;
}

.tip-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

footer {
  margin-top: 1rem;
  padding: 2.25rem 1.5rem 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.guide-main {
  padding: 2.5rem 0 3rem;
}

.guide-article {
  max-width: 760px;
  margin: 0 auto;
}

/* In article/hub pages the heading is left-aligned, so keep the lead aligned
   with it (the centered hero variant still wins via .hero .lead). */
.guide-article > .lead {
  margin-left: 0;
  margin-right: 0;
  max-width: 640px;
}

.guide-article h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin: 0.5rem 0 1rem;
}

.guide-article .card {
  margin: 1.5rem 0;
}

.guide-steps {
  margin: 0;
  padding-left: 1.25rem;
}

.guide-steps li {
  margin-bottom: 0.85rem;
}

.guide-steps code,
.guide-article code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--accent);
}

.code-block {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}

.code-block code {
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text);
}

.guide-links {
  margin: 0;
  padding-left: 1.25rem;
}

.guide-links li {
  margin-bottom: 0.5rem;
}

.guide-links a {
  color: var(--accent);
}

.guide-faq {
  margin: 0;
}

.guide-faq dt {
  font-weight: 600;
  color: var(--text);
  margin-top: 1rem;
}

.guide-faq dt:first-child {
  margin-top: 0;
}

.guide-faq dd {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.press-quote {
  margin: 0 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  color: var(--text);
  font-size: 1.05rem;
}

.press-block {
  margin: 0 0 1rem;
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}

.press-links {
  margin: 0;
  padding-left: 1.25rem;
}

.press-links li {
  margin-bottom: 0.5rem;
  word-break: break-all;
}

.press-links a {
  color: var(--accent);
}

.press-status-note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.campaign-mount {
  margin-top: 1rem;
}

.campaign-summary {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.campaign-summary.campaign-status-warn {
  border-color: rgba(245, 158, 11, 0.35);
}

.campaign-summary.campaign-status-ok {
  border-color: rgba(34, 197, 94, 0.35);
}

.campaign-hint {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.campaign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.campaign-subhead {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.campaign-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.campaign-table th,
.campaign-table td {
  padding: 0.35rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.campaign-table th {
  color: var(--muted);
  font-weight: 500;
}

.campaign-empty {
  color: var(--muted);
  font-style: italic;
}

.campaign-updated {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.press-priority-card {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.04);
}

.press-start-steps {
  margin: 0 0 0.75rem;
}

.post-now-card {
  border-color: var(--accent);
}

.post-now-lead {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.post-now-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.challenge-stats {
  max-width: 28rem;
  margin: 2rem auto 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.challenge-stats .stats-line {
  margin: 0;
}

.challenge-share {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.challenge-share-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.challenge-win-banner {
  max-width: 28rem;
  margin: 1.25rem auto 0;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--accent);
  background: rgba(20, 241, 149, 0.08);
  box-shadow: 0 0 0 2px rgba(20, 241, 149, 0.2);
  animation: win-banner-pulse 2s ease-in-out infinite;
}

.challenge-win-banner[hidden] {
  display: none !important;
}

.challenge-win-title {
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--accent);
}

.challenge-win-detail {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

@keyframes win-banner-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(20, 241, 149, 0.2); }
  50% { box-shadow: 0 0 0 4px rgba(20, 241, 149, 0.35); }
}

.challenge-sticky-pay {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 11, 15, 0.96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
}

.challenge-sticky-pay[hidden] {
  display: none !important;
}

.challenge-sticky-btn {
  width: 100%;
  max-width: 28rem;
}

body.challenge-sticky-visible .challenge-main {
  padding-bottom: 5rem;
}

body.dice-sticky-visible .dice-main {
  padding-bottom: 5rem;
}

.guide-inline-cta {
  margin: 1.5rem 0 2rem;
  border-color: var(--accent);
}

.guide-inline-cta p {
  margin: 0 0 1rem;
}

.guide-demo-panel {
  margin: 1.5rem 0 2rem;
  border-color: var(--accent);
  text-align: center;
  padding: 1.75rem;
}

.guide-demo-lead {
  margin: 0 0 1.25rem;
  text-align: left;
}

.guide-demo-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.35rem;
  text-align: left;
}

.guide-demo-commit {
  display: block;
  font-size: 0.7rem;
  word-break: break-all;
  margin: 0 0 1rem;
  color: var(--muted);
  text-align: left;
}

.guide-demo-face {
  font-size: clamp(3.5rem, 14vw, 5rem);
  font-weight: 700;
  color: var(--accent);
  margin: 0.5rem 0 1rem;
  line-height: 1;
}

.guide-demo-btn {
  margin-bottom: 0.5rem;
}

.guide-demo-result {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.guide-demo-result-msg {
  margin: 0 0 1rem;
  line-height: 1.45;
}

.guide-demo-actions {
  justify-content: center;
}

.guide-demo-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 1rem 0 0;
  text-align: left;
}

.guide-pay-panel {
  margin: 0 0 2rem;
  text-align: center;
  padding: 1.75rem;
}

.guide-pay-panel.mobile-highlight,
.guide-pay-panel.convert-highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(20, 241, 149, 0.35);
}

.guide-pay-lead {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.field-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: left;
  margin: 0.75rem 0 0.35rem;
}

.dice-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}

.dice-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.verify-roll-btn {
  width: 100%;
  margin-top: 0.5rem;
}

.guide-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 11, 15, 0.96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.guide-sticky-cta[hidden] {
  display: none !important;
}

.guide-sticky-cta .btn {
  flex: 1 1 auto;
  min-width: 8rem;
  max-width: 14rem;
}

body.guide-sticky-visible .guide-main {
  padding-bottom: 5rem;
}

.pay-mode-tabs {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pay-tab {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.pay-tab.active {
  background: var(--surface-3);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.pay-panel {
  margin-top: 1rem;
}

.solana-pay-hint {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.challenge-wallet-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.challenge-wallet-actions .btn {
  flex: 1;
  min-width: 8rem;
}

.challenge-wallet-hint {
  margin-top: 1rem;
  padding: 1rem;
  text-align: left;
  font-size: 0.85rem;
}

.challenge-wallet-hint-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

@media (min-width: 601px) {
  .challenge-sticky-pay {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 2.5rem;
  }
}

/* SOL converter tool */
.converter-grid {
  display: grid;
  gap: 1rem;
}

.converter-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.converter-row .dice-input {
  flex: 1;
  font-family: var(--mono);
}

.converter-swap {
  text-align: center;
  color: var(--muted);
  font-size: 1.25rem;
  margin: 0;
}

.converter-examples {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.converter-examples a {
  color: var(--accent);
}

.field-error {
  font-size: 0.8rem;
  color: #ff6b6b;
  margin: 0.35rem 0 0;
}

.converter-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.9rem;
}

.converter-table th,
.converter-table td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.muted-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* Address validator tool */
.validator-input {
  font-family: var(--mono);
  font-size: 0.85rem;
}

.validator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.validator-result {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
}

.validator-neutral {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
}

.validator-valid {
  background: rgba(46, 213, 115, 0.12);
  border: 1px solid rgba(46, 213, 115, 0.35);
  color: #2ed573;
}

.validator-invalid {
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.35);
  color: #ff6b6b;
}

.validator-details {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.validator-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  margin: 0;
}

.validator-dl dt {
  color: var(--muted);
  font-weight: 500;
}

.validator-dl dd {
  margin: 0;
  word-break: break-all;
}

.validator-hex {
  font-size: 0.75rem;
  line-height: 1.4;
}

/* Guides hub */
.hub-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hub-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.hub-list li:last-child {
  border-bottom: none;
}

.hub-list a {
  color: var(--text);
  text-decoration: none;
}

.hub-list a:hover {
  color: var(--accent);
}

.hub-desc {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.wallet-path {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wallet-path-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.wallet-path-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.wallet-path-step:first-child {
  padding-top: 0;
}

.wallet-path-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-ink);
  background: var(--grad);
  border-radius: var(--radius-sm);
}

.wallet-path-body {
  flex: 1;
  min-width: 0;
}

.wallet-path-body a {
  color: var(--text);
  text-decoration: none;
}

.wallet-path-body a:hover {
  color: var(--accent);
}

.wallet-path-body .hub-desc {
  margin-top: 0.35rem;
}

.landing-wallet {
  max-width: var(--maxw);
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}

.landing-wallet .card {
  margin: 0;
}

.landing-wallet-steps {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.landing-wallet-steps li {
  color: var(--text-2);
  font-size: 0.95rem;
}

.landing-wallet-steps a {
  color: var(--accent);
  text-decoration: none;
}

.landing-wallet-steps a:hover {
  text-decoration: underline;
}

.landing-wallet .hero-actions {
  margin-top: 1.25rem;
}

.wallet-help-nudge {
  max-width: 28rem;
  margin: 1rem auto 0;
  padding: 0.85rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  justify-content: space-between;
  text-align: left;
}

.wallet-help-nudge p {
  margin: 0;
  flex: 1 1 12rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

.wallet-help-nudge p strong {
  color: var(--text);
}

.dice-main > .wallet-help-nudge {
  max-width: var(--maxw);
}

/* ------------------------------------------------------------------ *
 * Finishing layer (added in the Opus design pass)
 * ------------------------------------------------------------------ */

/* Die chip — a crafted, on-brand replacement for the dice emoji used on
   challenge pages (the emoji rendered as a tofu box server-side). */
.die-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(4rem, 16vw, 6rem);
  height: clamp(4rem, 16vw, 6rem);
  border-radius: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 9vw, 3.25rem);
  line-height: 1;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 55%),
    var(--surface-2);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md), inset 0 0 28px -10px rgba(20, 241, 149, 0.4);
}

.challenge-trust {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.25rem auto 0;
  max-width: 28rem;
}

.challenge-share-banner {
  max-width: 28rem;
  margin: 0 auto 1rem;
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(153, 69, 255, 0.1);
  text-align: center;
}

.challenge-share-banner[hidden] {
  display: none !important;
}

.challenge-share-banner-title {
  margin: 0 0 0.25rem;
  font-weight: 600;
  color: var(--text);
}

.challenge-share-banner-detail {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.challenge-hero-actions.demo-first-arrival .btn-primary[data-scroll-demo] {
  order: -1;
}

.challenge-demo-panel.convert-highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(20, 241, 149, 0.35);
}

.press-screenshot-figure {
  margin: 0 0 1rem;
  text-align: center;
}

.press-screenshot-figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.press-screenshot-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.press-screenshot-figure video {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.hub-list strong {
  font-weight: 600;
  color: var(--text);
}

.hub-list a:hover strong {
  color: var(--accent);
}

/* Make the converter/validator inputs feel consistent with the system */
.dice-input:focus,
.validator-input:focus {
  outline: 2px solid rgba(20, 241, 149, 0.7);
  outline-offset: 1px;
  border-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
