/* Void Finance: site-discord.css, loaded after site.css by /commands and the 404 page only. Cut from site.css as it was (2026-10-22), so these pages look the same. */

/* ------------------------------------------------ Discord, in our theme */
/* Discord's layout with the server's custom theme (teal to green, as in the owner's Discord): messages, the bot's
   avatar and badges, cards, buttons, menus and the message box. Shared by the home page's scene (discord.js) and the
   /commands channel (commands.js). */
.dc-theme {
  --dc-text: #DCE4E4;
  --dc-muted: #979AA3;
  --dc-faint: #709493;
  --dc-hint: #B8DCD1;          /* placeholder text on the message box's teal: 4.5:1 or more (studio) */
  --dc-link: #71ACF3;
  --dc-blurple: #5865F2;
  --dc-line: rgba(255, 255, 255, 0.07);
  --dc-spine: #686C75;
  --dc-pop: #0B2A2D;
  background: linear-gradient(135deg, #0E343A 0%, #133B38 48%, #163D32 100%);
  color: var(--dc-text);
  text-align: left;
}
.dc-bar {
  display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; flex: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.28); background: rgba(4, 22, 24, 0.32); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
}
.dc-hash { color: #7F9A9C; font-size: 1.45rem; font-weight: 400; line-height: 1; }
.dc-channel { margin: 0; color: #F2F5F5; font-size: 0.98rem; font-weight: 600; letter-spacing: 0; white-space: nowrap; }
.dc-topic { min-width: 0; margin-left: 6px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, 0.12); color: #8FA7A9; font-size: 0.8rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* A message: avatar left; on the right the reply line (a command's "used"), the name row, then the content. */
.dc-msg { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; padding: 4px 0; }
.dc-reply { position: relative; grid-column: 2; display: flex; align-items: center; gap: 5px; min-width: 0; margin-bottom: 3px; color: #C4CCCD; font-size: 0.82rem; line-height: 18px; white-space: nowrap; }
.dc-reply::before {
  content: ""; position: absolute; left: -38px; top: 9px; width: 32px; height: 14px;
  border-left: 2px solid var(--dc-spine); border-top: 2px solid var(--dc-spine); border-top-left-radius: 6px;
}
.dc-reply-av { display: grid; place-items: center; width: 16px; height: 16px; flex: none; border-radius: 50%; background: #3B6E68; color: #fff; font-size: 0.55rem; font-weight: 700; }
.dc-reply b { color: #C9B3F2; font-weight: 600; }
.dc-cmd-link { display: inline-flex; align-items: center; gap: 3px; overflow: hidden; color: var(--dc-link); font-weight: 500; text-overflow: ellipsis; }
.dc-cmd-link svg { width: 13px; height: 13px; flex: none; fill: currentColor; }
.dc-reply { grid-row: 1; }
.dc-reply ~ .dc-avatar, .dc-reply ~ .dc-body { grid-row: 2; }
.dc-avatar { grid-column: 1; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #fff; }
.dc-avatar-you { display: grid; place-items: center; background: #3B6E68; color: #fff; font-weight: 700; }
.dc-body { grid-column: 2; min-width: 0; }
.dc-head { display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; margin: 0; font-size: 1rem; font-weight: 400; line-height: 22px; letter-spacing: 0; }
.dc-name { color: #fff; font-weight: 600; }
.dc-tag { width: 18px; height: 18px; }
.dc-app { display: inline-flex; align-items: center; padding: 0 5px 0 2px; border-radius: 4px; background: var(--dc-blurple); color: #fff; font-size: 0.64rem; font-weight: 700; line-height: 16px; }
.dc-app svg { width: 15px; height: 15px; flex: none; fill: currentColor; }
.dc-time { margin-left: 2px; color: var(--dc-muted); font-size: 0.74rem; font-weight: 500; }
.dc-text { margin: 2px 0 0; color: var(--dc-text); font-size: 0.95rem; line-height: 1.45; overflow-wrap: anywhere; }
/* A card, as Discord shows an image (at most 550 wide). On /commands it's bigger and opens full size (chat.css). */
.dc-card { position: relative; width: 100%; max-width: 520px; margin-top: 6px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 8px; background: rgba(0, 0, 0, 0.22); }
.dc-card img { width: 100%; height: 100%; object-fit: cover; }
.dc-card-wait { display: grid; place-items: center; }
.dc-thinking { margin: 2px 0 0; color: var(--dc-muted); font-size: 0.9rem; font-style: italic; }
.dc-thinking span { display: inline-block; width: 4px; height: 4px; margin-left: 3px; border-radius: 50%; background: currentColor; vertical-align: middle; }

/* Buttons and menus, as Discord's components: grey, or blurple / green / red (is-primary, is-success, is-danger). */
.dc-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dc-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 2px 16px; border: 0; border-radius: 8px;
  background: rgba(255, 255, 255, 0.12); color: #fff; font: 500 0.875rem/1 var(--font); cursor: pointer;
  transition: background-color 0.15s;
}
.dc-btn:hover { background: rgba(255, 255, 255, 0.19); }
.dc-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.dc-btn.is-primary { background: var(--dc-blurple); }
.dc-btn.is-primary:hover { background: #4752C4; }
.dc-btn.is-success { background: #248046; }
.dc-btn.is-success:hover { background: #1A6334; }
.dc-btn.is-danger { background: #DA373C; }
.dc-btn.is-danger:hover { background: #A12828; }
.dc-btn:active:not(:disabled) { transform: translateY(1px); }
.dc-btn:focus-visible, .dc-select:focus-visible, .dc-opt:focus-visible { outline: 2px solid var(--dc-link); outline-offset: 2px; }
.dc-theme { --dc-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.5 6.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.dc-menuwrap { position: relative; width: 100%; max-width: 400px; margin-top: 8px; }
.dc-select {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 40px; padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.35); border-radius: 8px; background: rgba(0, 0, 0, 0.24); color: var(--dc-text);
  font: 500 0.9rem/1.3 var(--font); text-align: left; cursor: pointer;
}
.dc-select span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dc-select .dc-ph { color: var(--dc-muted); }
.dc-select svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 0.15s; }
.dc-select[aria-expanded="true"] svg { transform: rotate(180deg); }
.dc-options {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 5; max-height: 280px; overflow-y: auto; padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 8px; background: var(--dc-pop); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.dc-options[hidden] { display: none; }
.dc-opt {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 6px;
  background: none; color: var(--dc-text); font: 500 0.9rem/1.3 var(--font); text-align: left; cursor: pointer;
}
.dc-opt:hover, .dc-opt.is-active { background: rgba(255, 255, 255, 0.08); }
.dc-opt small { display: block; color: var(--dc-muted); font-size: 0.78rem; font-weight: 400; }
.dc-opt[aria-selected="true"] { background: rgba(255, 255, 255, 0.05); }
.dc-opt[aria-selected="true"]::after { content: ""; flex: none; width: 14px; height: 14px; margin-left: auto; background: var(--dc-link); -webkit-mask: var(--dc-check) center / contain no-repeat; mask: var(--dc-check) center / contain no-repeat; }

/* An embed (the /help answer): a coloured bar on the left, a darker panel. */
.dc-embed { max-width: 520px; margin-top: 6px; padding: 10px 16px 14px 14px; border-left: 4px solid var(--sky); border-radius: 4px; background: rgba(0, 0, 0, 0.22); font-size: 0.875rem; line-height: 1.5; }
.dc-embed h4 { margin: 2px 0 8px; color: #fff; font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.dc-embed p { margin: 0; }
.dc-embed .dc-field { margin-top: 10px; color: #fff; font-weight: 700; }
.dc-embed .dc-foot { margin-top: 10px; color: var(--dc-muted); font-size: 0.75rem; }
.dc-mention { padding: 0 3px; border-radius: 3px; background: rgba(88, 101, 242, 0.3); color: #C9CDFB; font-weight: 500; cursor: pointer; }
.dc-mention:hover { background: var(--dc-blurple); color: #fff; }
button.dc-mention { margin: 0; border: 0; font: inherit; font-weight: 500; line-height: inherit; }
.dc-chan, .dc-role { padding: 0 3px; border-radius: 3px; background: rgba(88, 101, 242, 0.3); color: #C9CDFB; font-weight: 500; }
.dc-text code { padding: 1px 4px; border-radius: 4px; background: rgba(0, 0, 0, 0.3); font-size: 0.85em; }
.dc-stamp { padding: 0 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); }
.dc-emoji { flex: none; width: 20px; text-align: center; }

/* "Only you can see this": the bot's private answers. */
.dc-msg.is-ephemeral { margin-inline: -16px; padding-inline: 16px; background: rgba(88, 101, 242, 0.07); }
.dc-eph { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--dc-muted); font-size: 0.75rem; }
.dc-eph svg { width: 14px; height: 14px; fill: currentColor; }
.dc-eph button { padding: 0; border: 0; background: none; color: var(--dc-link); font: inherit; cursor: pointer; }
.dc-eph button:hover { text-decoration: underline; }

/* The message box, and the command list that opens above it when you type "/". */
.dc-input { position: relative; display: flex; align-items: center; min-height: 46px; padding: 0 14px; border-radius: 8px; background: linear-gradient(90deg, #1A5553, #1D5851 45%, #215A4A); font-size: 0.95rem; }
.dc-plus { display: grid; place-items: center; width: 24px; height: 24px; flex: none; margin-right: 14px; border-radius: 50%; background: #A4AFB4; color: #1D5851; font-weight: 800; line-height: 1; }
.dc-typed { color: var(--dc-text); font-weight: 500; white-space: pre; }
.dc-caret { width: 1.5px; height: 20px; margin-left: 1px; background: var(--dc-text); }
.dc-placeholder { margin-left: -2px; overflow: hidden; color: var(--dc-hint); white-space: nowrap; text-overflow: ellipsis; }
.dc-placeholder[hidden] { display: none; }
.dc-pick { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 6; padding: 6px; border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 8px; background: var(--dc-pop); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); }
.dc-pick[hidden] { display: none; }
.dc-pick-head { display: flex; align-items: center; gap: 8px; padding: 4px 8px 8px; color: var(--dc-muted); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.dc-pick-head img { width: 16px; height: 16px; border-radius: 50%; }
.dc-pick-item { display: flex; align-items: baseline; gap: 10px; width: 100%; min-height: 38px; padding: 8px 10px; border: 0; border-radius: 6px; background: none; color: var(--dc-text); font: 400 0.9rem/1.3 var(--font); text-align: left; cursor: pointer; }
.dc-pick-item b { color: #fff; font-weight: 600; white-space: nowrap; }
.dc-pick-item span { overflow: hidden; color: var(--dc-muted); font-size: 0.8rem; white-space: nowrap; text-overflow: ellipsis; }
.dc-pick-item.is-on, .dc-pick-item:hover { background: rgba(255, 255, 255, 0.08); }
@media (prefers-reduced-motion: no-preference) {
  .dc-in .dc-card:not(.dc-card-wait) { animation: dc-drop 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .dc-caret { animation: dc-caret 1s steps(1) infinite; }
  .dc-thinking span { animation: dc-dot 1s ease-in-out 4; } /* a few beats while the card loads, never endless */
  .dc-thinking span:nth-child(2) { animation-delay: 0.15s; }
  .dc-thinking span:nth-child(3) { animation-delay: 0.3s; }
}
@keyframes dc-drop { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
@keyframes dc-caret { 50% { opacity: 0; } }
@keyframes dc-dot { 50% { opacity: 0.25; transform: translateY(-2px); } }

/* The home page's scene: one exchange at a time. The feed keeps one height (the card's, from the window's
   width), so nothing below moves while it plays. */
.discord { position: relative; width: 100%; max-width: 620px; margin-inline: auto; container-type: inline-size; }
.discord::before {
  content: ""; position: absolute; inset: 6% -4% 10%; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side at 35% 45%, rgba(150, 192, 140, 0.4), transparent), radial-gradient(closest-side at 70% 55%, rgba(53, 147, 197, 0.45), transparent);
  filter: blur(44px);
}
.dc-window {
  overflow: hidden; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.dc-feed { height: calc((100cqw - 88px) * 2 / 3 + 78px); overflow: hidden; padding: 14px 16px 6px; transition: opacity 0.25s, transform 0.25s; }
.dc-feed.dc-out { opacity: 0; transform: translateY(-10px); }
.dc-window .dc-card { max-width: none; }
.dc-window .dc-input { margin: 8px 16px 16px; }
.dc-window .dc-pick-item { cursor: default; }
/* Pause / Play for the scene, added by its script; with reduced motion nothing moves, so there's no button. */
.motion-toggle {
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%;
  background: rgba(8, 14, 20, 0.72); color: var(--muted); cursor: pointer; transition: color 0.2s, border-color 0.2s;
}
.motion-toggle:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.motion-toggle svg { width: 12px; height: 12px; fill: currentColor; }
.discord > .motion-toggle { position: absolute; top: 8px; right: 10px; border-color: transparent; background: none; border-radius: 8px; color: #B7C4C6; }
.discord > .motion-toggle:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.discord.has-pause .dc-bar { padding-right: 52px; } /* the topic stops short of the button */
@media (pointer: coarse) {
  .motion-toggle { width: 40px; height: 40px; }
  .discord > .motion-toggle { top: 4px; right: 6px; }
  .discord.has-pause .dc-bar { padding-right: 56px; }
}
@media (prefers-reduced-motion: reduce) { .motion-toggle { display: none; } }
/* Under the scene: the way to /commands, where the visitor types the commands. */
.dc-try { display: flex; align-items: center; gap: 8px; width: fit-content; margin: 14px auto 0; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; }
.dc-try .arrow { transition: transform 0.25s; }
.dc-try:hover .arrow { transform: translateX(3px); }
/* The emblem's rings and tick marks stay behind the copy: a soft shade under the text, so no line runs through it. */
.hero-copy .lede, .hero-note { text-shadow: 0 0 10px var(--deep), 0 0 3px var(--deep); }
@media (min-width: 640px) {
  .hero-copy { position: relative; }
  .hero-copy::before {
    content: ""; position: absolute; inset: -12% -14% -12% -30%; z-index: -1; pointer-events: none;
    background: radial-gradient(closest-side, rgba(6, 11, 16, 0.82), rgba(6, 11, 16, 0.5) 60%, transparent);
  }
}

@media (max-width: 899px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 640px; }
}
/* Short laptop screens (1366×768, 1280×720): the channel sized to the screen's height, so the numbers below
   peek over the fold instead of the hero filling the screen as if the page ended there. */
@media (min-width: 900px) and (max-height: 880px) {
  .hero { padding-block: 24px 28px; }
  .discord { max-width: min(620px, calc((100vh - 446px) * 1.5 + 88px)); }
}
/* Phones: the headline, the buttons, then the channel, all above the fold; the rest of the copy after. */
@media (max-width: 639px) {
  .hero { padding-block: 28px 36px; }
  .hero-grid { gap: 0; }
  .hero-copy { display: contents; }
  .hero-copy > * { order: 1; }
  .hero-copy .hero-actions, .hero-copy .hero-note { order: 2; }
  .hero-copy .hero-note { margin-top: 14px; font-size: 0.88rem; }
  .discord { order: 3; margin-top: 26px; }
  .hero-copy .lede { order: 4; margin-top: 24px; }
  .hero-copy .hero-top { width: 100%; }
  .x-chip { gap: 7px; padding-inline: 11px 13px; }
  .x-chip b { display: none; } /* just "Follow", so it fits beside the price */
  .hero-actions { flex-wrap: nowrap; gap: 10px; margin-top: 22px; }
  .hero-actions .btn { flex: 1 1 auto; min-width: 0; padding-inline: 14px; font-size: 0.95rem; }
  .hero-actions .btn .arrow, .hero-actions .btn .live-dot { display: none; }
  .markets { width: 100%; }
  .mkt { flex: 1; justify-content: center; padding: 10px 6px; gap: 6px; font-size: 0.62rem; letter-spacing: 0.04em; }
  .dc-window .dc-topic { display: none; }
  .dc-feed { height: calc((100cqw - 68px) * 2 / 3 + 76px); padding: 12px 12px 6px; }
  .dc-window .dc-msg { grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; }
  .dc-window .dc-avatar { width: 32px; height: 32px; }
  .dc-window .dc-reply::before { left: -30px; width: 26px; }
  .dc-window .dc-input { margin: 6px 12px 12px; }
}

/* SITE-66, kept after the scene's own rules as it was in site.css: touch targets reach 44px. */
@media (pointer: coarse) {
  .dc-try { min-height: 44px; }
  .motion-toggle { width: 44px; height: 44px; }
}

/* motion-journey (docs/design/motion-journey/brief.md): the typing caret blinks three times and holds (nothing loops);
   the answer card drops in within 240 ms (P-mo-02). */
@media (prefers-reduced-motion: no-preference) {
  html[data-flag-motion-journey="on"] .dc-caret { animation-iteration-count: 3; }
  html[data-flag-motion-journey="on"] .dc-in .dc-card:not(.dc-card-wait) { animation-duration: 240ms; animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }
}
