:root,
html[data-theme="robinhood"] {
  color-scheme: dark;
  --bink-bg: #0B0E0A;
  --bink-fg: #CCFF00;
  --bink-radius-sm: 6px;
  --bink-radius-md: 10px;
  --bink-radius-lg: 14px;
}

html[data-theme="paper"] {
  color-scheme: light;
  --bink-bg: #F5F0E2;
  --bink-fg: #141414;
}

html[data-theme="amber"] {
  color-scheme: dark;
  --bink-bg: #120900;
  --bink-fg: #FFB000;
}

html[data-theme="ice"] {
  color-scheme: dark;
  --bink-bg: #041118;
  --bink-fg: #73F1FF;
}

html[data-theme="forest"] {
  color-scheme: dark;
  --bink-bg: #0E1A14;
  --bink-fg: #8EF0B5;
}

html[data-theme="violet"] {
  color-scheme: dark;
  --bink-bg: #171120;
  --bink-fg: #D4B4FF;
}

html[data-theme="oxide"] {
  color-scheme: dark;
  --bink-bg: #21120F;
  --bink-fg: #FF9B73;
}

html[data-theme="slate"] {
  color-scheme: light;
  --bink-bg: #E7ECF0;
  --bink-fg: #18242E;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bink-bg: #121212;
  --bink-fg: #F5F5F5;
}

html,
body {
  background: var(--bink-bg) !important;
  color: var(--bink-fg) !important;
}

/* Theme-aware ambient background, clipped where the page footer begins. */
.bink-smiley-field {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}

.topnav,
.ticker,
.crumb,
.frames,
body > main,
.manbar.bottom {
  position: relative;
  z-index: 1;
  background: var(--bink-bg);
}

/* Compact trading-terminal footer shared by every page. */
.manbar.bottom {
  display: flex;
  min-height: 24px;
  padding: 3px 12px !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px !important;
  flex-wrap: nowrap !important;
  border-top: 1px solid var(--bink-fg) !important;
  font-size: 9px !important;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.footer-status,
.footer-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.footer-status-dot {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: currentColor;
}

.footer-status [data-footer-market] {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  opacity: .72;
  font-variant-numeric: tabular-nums;
}

.footer-token-logo {
  display: block;
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
}

.footer-status [data-footer-market]::before {
  content: "/";
  margin-right: 8px;
  opacity: .48;
}

.footer-meta > * {
  opacity: .72;
}

.footer-meta > * + * {
  padding-left: 8px;
  border-left: 1px solid color-mix(in srgb, currentColor 34%, transparent) !important;
}

.footer-meta a {
  color: inherit;
  text-decoration: none;
}

.footer-meta a:hover,
.footer-meta a:focus-visible {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.topnav {
  position: sticky;
}

body * {
  border-color: var(--bink-fg) !important;
}

/* restrained application-wide radius system */
.inwrap,
.tabs,
.mode,
.quick,
.creator-presets {
  border-radius: var(--bink-radius-sm);
  overflow: hidden;
}

.status,
.chartbox,
.curvebox,
.review,
.immutable,
.derived,
.receive,
.bond,
.info,
.states,
.creator-console,
.creator-live,
.creator-preview,
.creator-warning,
.setting-card,
.featured-stats,
.tablewrap,
table {
  border-radius: var(--bink-radius-md);
}

.chartbox,
.curvebox,
.review,
.creator-console,
.featured-stats,
.tablewrap,
table {
  overflow: hidden;
}

.featured-card {
  border-radius: var(--bink-radius-lg);
}

table {
  border-collapse: separate !important;
  border-spacing: 0;
}

.tablewrap table {
  border: 0 !important;
  border-radius: 0;
}

.tablewrap {
  overflow-x: auto;
  overflow-y: hidden;
}

thead {
  position: relative;
  z-index: 10;
}

th.metric-help {
  position: relative;
  overflow: visible;
  cursor: help;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.bink-metric-tooltip {
  position: fixed;
  z-index: 10000;
  width: max-content;
  max-width: min(260px, calc(100vw - 32px));
  border: 1px solid var(--bink-fg);
  border-radius: var(--bink-radius-sm);
  padding: 9px 10px;
  background: var(--bink-bg);
  color: var(--bink-fg);
  font: 400 11px/1.45 'IBM Plex Mono', 'Courier New', monospace;
  letter-spacing: normal;
  text-align: left;
  text-decoration: none;
  text-transform: none;
  white-space: normal;
  pointer-events: none;
  animation: bink-tooltip-in 120ms ease both;
}

.bink-metric-tooltip[hidden] { display: none; }

@keyframes bink-tooltip-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

th.metric-help:focus-visible {
  outline: 1px dotted var(--bink-fg);
  outline-offset: -4px;
}

.inwrap:focus-within {
  outline: 2px solid var(--bink-fg);
  outline-offset: 2px;
}

body a,
body button,
body input,
body select {
  color: var(--bink-fg);
}

body button,
body input,
body select {
  background: var(--bink-bg);
}

body a:hover,
body .btn:hover,
body .btn.ghost:hover,
body .quick span:hover {
  background: var(--bink-fg) !important;
  color: var(--bink-bg) !important;
}

body .btn,
body .tabs button.on,
body .ranges .on,
body .submit {
  background: var(--bink-fg) !important;
  color: var(--bink-bg) !important;
}

body .btn.ghost,
body .tabs button,
body .submit:hover {
  background: var(--bink-bg) !important;
  color: var(--bink-fg) !important;
}

.brand svg path,
.chartbox svg circle {
  fill: var(--bink-fg) !important;
}

.chartbox svg line,
.chartbox svg path {
  stroke: var(--bink-fg) !important;
}

.curvebox svg line,
.curvebox svg path {
  stroke: var(--bink-fg) !important;
}

.curvebox svg circle {
  fill: var(--bink-fg) !important;
}

.curvebox svg text {
  fill: var(--bink-fg) !important;
}

body .inwrap,
body .mode button {
  background: var(--bink-bg) !important;
  color: var(--bink-fg) !important;
}

body .mode button.on,
body .quick span.on {
  background: var(--bink-fg) !important;
  color: var(--bink-bg) !important;
}

.frames .panel {
  top: 64px;
}

.theme-highlight {
  background: var(--bink-fg);
  color: var(--bink-bg);
  padding: 0 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.ticker {
  padding: 0 !important;
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: bink-marquee var(--marquee-duration, 34s) linear infinite;
}

.marquee-group {
  flex: none;
  padding: 8px 0;
  white-space: nowrap;
}

.marquee-sequence {
  display: inline-block;
}

.marquee-unknown {
  letter-spacing: 0.04em;
}

@keyframes bink-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 48px;
  padding: 8px 24px;
  border-bottom: 3px double var(--bink-fg);
  background: var(--bink-bg);
  font-size: 13px;
}

.topnav a {
  text-decoration: none;
}

.navbrand {
  display: inline-flex;
  align-items: center;
  color: var(--bink-fg);
}

.navbrand svg {
  display: block;
  width: 34px;
  height: auto;
  fill: currentColor;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-nav a {
  padding: 5px 8px;
}

.primary-nav a[aria-current="page"] {
  background: var(--bink-fg);
  color: var(--bink-bg);
}

.primary-nav a[aria-disabled="true"] {
  cursor: not-allowed;
  text-decoration: line-through;
}

.topnav-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
  white-space: nowrap;
}

.chain-status::before {
  content: "■ ";
}

.bink-socials {
  display: flex;
  align-items: center;
  gap: 5px;
}

.wallet-balance-pill {
  display: inline-flex;
  height: 25px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--bink-fg);
  border-radius: 999px;
  padding: 0 9px;
  background: var(--bink-bg);
  color: var(--bink-fg);
  font: 400 10px/1 'IBM Plex Mono', 'Courier New', monospace;
  letter-spacing: -.02em;
}

.wallet-balance-host {
  display: flex;
  align-items: center;
}

.wallet-balance-host:empty {
  display: none;
}

.wallet-balance-pill strong {
  font-weight: 700;
}

.wallet-balance-pill > span {
  opacity: .68;
}

.social-icon {
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 0;
  color: var(--bink-fg);
  text-decoration: none;
}

.social-icon svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.settings-link svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-icon:hover,
.social-icon:focus-visible {
  border-color: transparent;
  background: transparent;
  color: var(--bink-fg);
  outline: none;
}

.bink-metric-tooltip[data-kind="social"] {
  padding: 5px 7px;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}

.settings-link[aria-current='page'] {
  background: var(--bink-fg);
  color: var(--bink-bg);
}

.social-icon[aria-disabled="true"] {
  cursor: not-allowed;
}

.frames,
.crumb {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  border-left: 1px solid var(--bink-fg);
  border-right: 1px solid var(--bink-fg);
}

#launch,
#trending {
  scroll-margin-top: 64px;
}

.theme-control {
  position: relative;
}

.theme-toggle,
.wallet-button {
  height: 27px;
  border: 0;
  background: var(--bink-bg);
  color: var(--bink-fg);
  font: 700 11px/1 'IBM Plex Mono', 'Courier New', monospace;
  cursor: pointer;
}

.theme-toggle {
  display: grid;
  width: 27px;
  padding: 0;
  place-items: center;
}

.theme-toggle svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.theme-toggle .theme-fill {
  fill: currentColor;
  stroke: none;
}

.theme-toggle:hover,
.theme-toggle[aria-expanded="true"],
.wallet-button:hover,
.wallet-button[data-connected="true"] {
  background: var(--bink-fg);
  color: var(--bink-bg);
}

.theme-toggle:focus-visible,
.wallet-button:focus-visible {
  outline: 1px dotted var(--bink-fg);
  outline-offset: 2px;
}

.theme-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 300;
  display: grid;
  min-width: 150px;
  border: 1px solid var(--bink-fg);
  background: var(--bink-bg);
  padding: 5px;
  box-shadow: none;
}

.theme-menu[hidden] {
  display: none;
}

.theme-menu button {
  border: 0;
  padding: 8px 10px;
  background: var(--bink-bg);
  color: var(--bink-fg);
  font: 700 11px/1 'IBM Plex Mono', 'Courier New', monospace;
  text-align: left;
  cursor: pointer;
}

.theme-menu button:hover,
.theme-menu button:focus-visible,
.theme-menu button[aria-pressed="true"] {
  background: var(--bink-fg);
  color: var(--bink-bg);
  outline: none;
}

.wallet-button {
  padding: 0 10px;
  white-space: nowrap;
}

#bink-wallet-root {
  min-height: 27px;
}

.wallet-button:disabled {
  cursor: default;
}

@media (max-width: 1180px) {
  .topnav {
    gap: 12px;
  }

  .topnav-tools {
    gap: 8px;
  }

  .chain-status {
    display: none;
  }
}

@media (max-width: 1040px) {
  .bink-socials {
    display: flex;
  }

  .bink-socials .social-icon {
    display: none;
  }
}

@media (max-width: 620px) {
  .wallet-balance-pill > span {
    display: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* flat kinetic control system */
button,
.btn,
.social-icon,
.featured-actions a,
.quick span,
.ranges span {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 140ms cubic-bezier(.2,.8,.2,1),
    background-color 180ms ease,
    color 180ms ease,
    filter 180ms ease;
}

.btn,
.submit,
.wallet-button,
.theme-toggle,
.social-icon,
.featured-actions a {
  box-shadow: none;
}

.btn::after,
.submit::after,
.wallet-button::after,
.theme-toggle::after,
.social-icon::after,
.featured-actions a::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: auto;
  right: auto;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: currentColor;
  opacity: .72;
  pointer-events: none;
  transform: none;
  transition: left 320ms cubic-bezier(.2,.8,.2,1);
}

.tabs button,
.mode button,
.quick span,
.ranges span,
.theme-menu button {
  box-shadow: none;
}

@media (hover: hover) {
  .btn:hover,
  .submit:hover,
  .wallet-button:hover,
  .theme-toggle:hover,
  .social-icon:hover,
  .featured-actions a:hover {
    z-index: 2;
    transform: scale(1.018);
    box-shadow: none;
    filter: saturate(1.08);
  }

  .btn:not(.ghost):hover,
  .submit:hover {
    background: var(--bink-bg) !important;
    color: var(--bink-fg) !important;
  }

  .btn:hover::after,
  .submit:hover::after,
  .wallet-button:hover::after,
  .theme-toggle:hover::after,
  .social-icon:hover::after,
  .featured-actions a:hover::after {
    left: 100%;
  }

  .tabs button:hover,
  .mode button:hover,
  .quick span:hover,
  .ranges span:hover,
  .theme-menu button:hover {
    z-index: 2;
    transform: scale(.985);
    box-shadow: none;
  }
}

.btn:active,
.submit:active,
.wallet-button:active,
.theme-toggle:active,
.social-icon:active,
.featured-actions a:active {
  transform: scale(.955);
  box-shadow: none;
  transition-duration: 55ms;
}

.tabs button:active,
.mode button:active,
.quick span:active,
.ranges span:active,
.theme-menu button:active {
  transform: scale(.96);
  box-shadow: none;
  transition-duration: 55ms;
}

button:focus-visible,
.btn:focus-visible,
.social-icon:focus-visible,
.featured-actions a:focus-visible,
.quick span:focus-visible,
.ranges span:focus-visible {
  outline: 2px solid var(--bink-fg);
  outline-offset: 3px;
}

button:disabled,
.social-icon[aria-disabled="true"] {
  filter: saturate(.4);
}

button:disabled {
  transform: none !important;
  box-shadow: none !important;
}

.bink-ripple {
  position: absolute;
  z-index: 5;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  opacity: .32;
  pointer-events: none;
  transform: scale(0);
  animation: bink-ripple 520ms cubic-bezier(.16,.8,.24,1) forwards;
}

@keyframes bink-ripple {
  0% { opacity: .34; transform: scale(0); }
  65% { opacity: .16; }
  100% { opacity: 0; transform: scale(18); }
}

@media (prefers-reduced-motion: reduce) {
  button,
  .btn,
  .social-icon,
  .featured-actions a,
  .quick span,
  .ranges span {
    transition-duration: 1ms !important;
  }

  .bink-ripple {
    display: none;
  }
}

.tabs button,
.mode button,
.creator-presets button,
.quick span,
.ranges span {
  font-family: 'IBM Plex Mono', 'Courier New', monospace !important;
  letter-spacing: normal;
  box-shadow: none !important;
  transform: none;
  transition: background-color 110ms ease, color 110ms ease, transform 70ms ease;
}

@media (hover: hover) {
  .tabs button:hover,
  .mode button:hover,
  .creator-presets button:hover,
  .quick span:hover,
  .ranges span:hover {
    background: var(--bink-fg) !important;
    color: var(--bink-bg) !important;
    transform: none;
    box-shadow: none;
  }
}

.tabs button:active,
.mode button:active,
.creator-presets button:active,
.quick span:active,
.ranges span:active {
  transform: scale(.94);
  box-shadow: none;
}

.bink-ripple {
  display: none !important;
}

/* Stacked-face actions — Uiverse/Voxybuns component, theme-mapped. */
.btn,
.submit,
.creator-action,
.setting-toggle,
.featured-actions a {
  --button_radius: .75em;
  --button_color: var(--bink-bg);
  --button_outline_color: var(--bink-fg);
  display: inline-block;
  box-sizing: border-box;
  font-family: 'IBM Plex Mono', 'Courier New', monospace !important;
  font-size: 17px;
  font-weight: bold;
  line-height: normal;
  text-decoration: none;
  cursor: pointer;
  padding: 0 !important;
  overflow: visible !important;
  border: none !important;
  border-radius: var(--button_radius);
  clip-path: none;
  background: var(--button_outline_color) !important;
  color: var(--button_outline_color) !important;
  box-shadow: none !important;
  transform: none !important;
  transition: none;
}

/* Keep the animated face above a visible theme-colored base. */
body .btn,
body .submit,
body .creator-action,
body .setting-toggle,
body .featured-actions a,
body .btn.ghost,
body .btn:hover,
body .btn.ghost:hover,
body .submit:hover,
body .creator-action:hover,
body .setting-toggle:hover,
body .featured-actions a:hover {
  background: var(--button_outline_color) !important;
  color: var(--button_outline_color) !important;
}

.button_top {
  display: block;
  box-sizing: border-box;
  border: 2px solid var(--button_outline_color);
  border-radius: var(--button_radius);
  padding: .75em 1.5em;
  background: var(--button_color);
  color: var(--button_outline_color);
  transform: translateY(-.2em);
  transition: transform .1s ease;
}

.btn::after,
.submit::after,
.creator-action::after,
.featured-actions a::after {
  display: none !important;
  content: none;
}

.btn:hover .button_top,
.submit:hover .button_top,
.creator-action:hover:not(:disabled) .button_top,
.setting-toggle:hover .button_top,
.featured-actions a:hover .button_top {
  transform: translateY(-.33em);
}

.btn:active,
.submit:active,
.creator-action:active:not(:disabled),
.setting-toggle:active,
.featured-actions a:active {
  transform: none !important;
}

.btn:active .button_top,
.submit:active .button_top,
.creator-action:active:not(:disabled) .button_top,
.setting-toggle:active .button_top,
.featured-actions a:active .button_top {
  transform: translateY(0);
}

.submit,
.creator-action {
  width: 100%;
}

.setting-toggle {
  min-width: 94px;
}

.btn:focus-visible,
.submit:focus-visible,
.creator-action:focus-visible,
.setting-toggle:focus-visible,
.featured-actions a:focus-visible {
  outline: 2px solid var(--bink-fg);
  outline-offset: 4px;
}

/* the complete top navigation keeps its original static interaction */
.topnav button,
.topnav .social-icon {
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
  transition: none !important;
}

.topnav button::after,
.topnav .social-icon::after,
.topnav .bink-ripple {
  display: none !important;
}

::selection {
  background: var(--bink-fg);
  color: var(--bink-bg);
}

@media (max-width: 900px) {
  .topnav {
    grid-template-columns: auto 1fr;
    gap: 8px 14px;
    padding: 8px 14px;
  }

  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    overflow-x: auto;
    border-top: 1px solid var(--bink-fg);
    padding-top: 6px;
  }

  .topnav-tools {
    min-width: 0;
  }

  .chain-status {
    display: none;
  }

  .frames {
    grid-template-columns: 1fr !important;
  }

  .frames > .main,
  .frames > .sidebar {
    border-right: none !important;
  }

  .frames > .sidebar {
    border-bottom: 1px solid var(--bink-fg);
  }

  .frames > .panel {
    position: static !important;
    border-top: 1px solid var(--bink-fg);
  }

}

@media (max-width: 620px) {
  .manbar.bottom {
    min-height: 22px;
    padding: 3px 8px !important;
    gap: 8px !important;
    font-size: 8px !important;
  }

  .footer-status,
  .footer-meta {
    gap: 6px;
  }

  .footer-meta > * + * {
    padding-left: 6px;
  }

  .footer-meta .footer-secondary {
    display: none;
  }

  .footer-status [data-footer-chain],
  .footer-meta > span:nth-last-child(2) {
    display: none;
  }
}

@media (max-width: 480px) {
  .footer-meta a {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bink-smiley-field {
    opacity: 0.72;
  }

  .marquee-track {
    animation-play-state: paused;
  }
}
