/* Colors and type from fomo.family: Aeonik, #060510, #f7f7f7, #516af6. */

@font-face {
  font-family: Aeonik;
  src: url("fonts/Aeonik-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Aeonik;
  src: url("fonts/Aeonik-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Aeonik;
  src: url("fonts/Aeonik-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html,
body,
button,
input,
textarea,
select,
.font-plus-jakarta-sans,
.font-inter,
.font-inter-display,
.font-atyp-display {
  font-family: Aeonik, ui-sans-serif, system-ui, sans-serif !important;
}

body.dark {
  font-weight: 500;
  background: #060510;
  color: #f7f7f7;
}

.dark {
  --color-static-static-white: #f7f7f7;
  --color-static-static-black: #060510;
  --color-bg-white-0: 6, 5, 16;
  --color-bg-weak-50: #12111a;
  --color-bg-strong-950: #f7f7f7;
  --color-bg-surface-800: 247, 247, 247;
  --color-bg-soft-200: 22, 21, 34;
  --color-bg-sub-300: #221d4b;
  --color-text-strong-950: #f7f7f7;
  --color-text-sub-600: #9899a3;
  --color-text-disabled-300: #474b52;
  --color-text-white-0: #060510;
  --color-text-soft-400: #9899a3;
  --color-text-soft-500: #9899a3;
  --color-logo: #f7f7f7;
  --color-icon-strong-950: #f7f7f7;
  --color-icon-sub-600: #9899a3;
  --color-icon-disabled-300: #474b52;
  --color-icon-white-0: #060510;
  --color-icon-soft-400: #9899a3;
  --color-icon-soft-500: #9899a3;
  --color-stroke-soft-200: #2a2936;
  --color-stroke-strong-950: #f7f7f7;
  --color-stroke-white-0: #060510;
  --color-stroke-sub-300: #474b52;
  --color-overlay-overlay: rgba(6, 5, 16, 0.72);
  --color-state-information-base: #516af6;
  --color-state-information-light: #516af63d;
  --color-state-information-dark: #6f85ff;
  --color-state-information-lighter: #516af628;
  --color-state-success-base: #21c95e;
  --color-state-success-dark: #21c95e;
  --color-state-success-light: #21c95e33;
  --color-state-highlighted-base: #516af6;
  --color-state-highlighted-dark: #f7f7f7;
  --color-state-verified-base: #516af6;
  --color-state-verified-dark: #6f85ff;
  --color-primary-base: 81, 106, 246;
  --color-primary-darker: 63, 84, 214;
  --color-primary-dark: 47, 64, 176;
  --color-state-buy-green-dark: #21c95e;
  --color-state-buy-red-dark: #ff622e;
  --color-outcome-0: 81, 106, 246;
  --color-outcome-1: 247, 247, 247;
  --color-outcome-multiple: 81, 106, 246;
}

.btn-outcome-0 {
  background: #516af61f;
  border: 1px solid rgba(81, 106, 246, 0.45);
  color: #516af6;
}

.btn-outcome-0:hover {
  border-color: #516af6;
}

.btn-outcome-1 {
  background: #f7f7f714;
  border: 1px solid rgba(234, 237, 255, 0.4);
  color: #f7f7f7;
}

.btn-outcome-1:hover {
  border-color: #f7f7f7;
}

.bg-gradient-candy-outcome-0 {
  background: #516af6;
  box-shadow: 0 1px 1px 1px #f7f7f740 inset;
}

.bg-gradient-candy-outcome-1 {
  background: #f7f7f7;
  box-shadow: 0 1px 1px 1px #ffffff55 inset;
}

.card-yesno {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 16px;
}

.card-yes,
.card-no {
  appearance: none;
  border: 0;
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
  cursor: pointer;
}

.duel-flag {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 1;
  border-radius: 999px;
  background: rgba(8, 10, 20, 0.78);
  color: #eaedff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 8px;
}

.card-yes {
  background: #12352a;
  color: #21c95e;
}

.card-no {
  background: #3a1518;
  color: #ff4d4d;
}

.card-yes:hover,
.card-no:hover {
  filter: brightness(1.12);
}

.card-yes:focus-visible,
.card-no:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.card-yesno-stack {
  margin: 8px 0 4px;
}

.delulu-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f7f7f7 !important;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.delulu-brand img {
  width: 40px;
  height: 40px;
  display: block;
  border-radius: 10px;
}

.delulu-share-icon {
  width: 14px;
  height: 14px;
  display: block;
  border-radius: 3px;
  object-fit: cover;
}

.delulu-slip-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 80;
}

.delulu-slip {
  position: fixed;
  z-index: 81;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(420px, calc(100% - 32px));
  background: #12111a;
  color: #f7f7f7;
  border: 1px solid #2a2936;
  border-radius: 20px;
  padding: 20px;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.idea-primary {
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  background: #516af6;
  color: #f7f7f7;
}

.idea-primary:hover {
  background: #3f54d6;
}

.idea-field {
  display: block;
  width: 100%;
  margin-top: 6px;
  border-radius: 12px;
  border: 1px solid #2a2936;
  background: #12111a;
  color: #f7f7f7;
  padding: 10px 12px;
}

.idea-modal {
  position: fixed;
  z-index: 81;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(920px, calc(100% - 32px));
  max-height: calc(100% - 48px);
  overflow: auto;
  background: #12111a;
  color: #f7f7f7;
  border: 1px solid #2a2936;
  border-radius: 20px;
  padding: 20px;
}

.idea-choice {
  border-radius: 999px;
  border: 1px solid #2a2936;
  color: #9899a3;
  padding: 6px 12px;
  font-size: 13px;
}

.idea-choice[aria-checked="true"] {
  border-color: #516af6;
  color: #f7f7f7;
  background: #516af628;
}

.idea-arrow {
  color: #9899a3;
  width: 36px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.idea-arrow[aria-pressed="true"] {
  color: #516af6;
  background: #516af61f;
}

.idea-arrow[data-vote="-1"][aria-pressed="true"] {
  color: #f7f7f7;
  background: #f7f7f714;
}

#market-grid {
  align-items: start;
}

#ideas-app,
#admin-app {
  max-width: none;
}

.idea-board {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 72px;
}

.idea-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.idea-top h1 {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 600;
  color: #f7f7f7;
}

.idea-top p,
.idea-by,
.idea-preview-note,
.idea-empty-search {
  color: #9aa3c7;
  font-size: 14px;
}

.idea-top p {
  margin-top: 6px;
}

.idea-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  min-height: 36px;
  padding: 0 12px;
  border-top: 1px solid #1c2444;
  border-bottom: 1px solid #1c2444;
  color: #c9d0ea;
  font-size: 13px;
  overflow: hidden;
  white-space: nowrap;
}

.idea-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8b93a7;
  flex: none;
}

.idea-dot.is-upvote { background: #516af6; }
.idea-dot.is-downvote { background: #c45c5c; }
.idea-dot.is-idea,
.idea-dot.is-milestone { background: #8b93a7; }

.idea-feature {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 8px 20px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid #516af6;
  border-radius: 20px;
  background: #161522;
  box-shadow: 0 0 0 1px rgba(81, 106, 246, 0.28), 0 16px 40px rgba(81, 106, 246, 0.12);
}

.idea-feature-kicker {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #9eb0ff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.idea-feature .idea-thumb {
  width: 220px;
  height: 220px;
}

.idea-feature .idea-title {
  font-size: 26px;
  line-height: 1.2;
  -webkit-line-clamp: 3;
}

.idea-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}

.idea-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.idea-pill {
  border: 1px solid #2a2936;
  border-radius: 999px;
  padding: 7px 12px;
  color: #c9d0ea;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
}

.idea-pill.is-on {
  background: #516af6;
  border-color: #516af6;
  color: #f7f7f7;
}

.idea-search {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 220px;
  color: #9aa3c7;
  font-size: 12px;
}

.idea-search input,
.idea-field[type="date"] {
  color-scheme: dark;
}

.idea-search input {
  border: 1px solid #2a2936;
  background: #12111a;
  color: #f7f7f7;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 14px;
}

.idea-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 16px;
}

.idea-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid #2a2936;
  border-radius: 16px;
  background: #161522;
  transition: transform 160ms ease, border-color 160ms ease;
}

.idea-card:hover {
  transform: translateY(-2px);
  border-color: #6d86ff;
}

.idea-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: #1c2233;
}

.idea-title {
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
  color: #f7f7f7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.idea-title a {
  color: inherit;
}

.idea-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.idea-tag,
.idea-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #2a2936;
  color: #c9d0ea;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
}

.idea-badge {
  border-color: #516af6;
  color: #9eb0ff;
}

.idea-by {
  margin-top: 6px;
  font-size: 12px;
}

.idea-meter {
  margin-top: 10px;
}

.idea-meter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  color: #c9d0ea;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.idea-meter-row.is-feature {
  font-size: 18px;
  color: #f7f7f7;
}

.idea-votes {
  display: inline-flex;
  gap: 2px;
}

.idea-bar {
  height: 6px;
  border-radius: 999px;
  background: #12183a;
  overflow: hidden;
}

.idea-bar.is-large {
  height: 10px;
}

.idea-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: color-mix(in srgb, #516af6 calc(50% + var(--heat) * 50%), #ffffff);
}

.idea-closed {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.idea-notice {
  min-height: 20px;
  margin-top: 10px;
  color: #9aa3c7;
  font-size: 14px;
}

.idea-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 64px 16px;
  color: #c9d0ea;
  text-align: center;
}

.idea-empty p {
  font-size: 18px;
  font-weight: 600;
  color: #f7f7f7;
}

.idea-empty-search {
  padding: 48px 0;
  text-align: center;
}

.idea-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
}

.idea-preview-note {
  margin-top: 8px;
  font-size: 12px;
}

.idea-primary:focus-visible,
.idea-pill:focus-visible,
.idea-arrow:focus-visible,
.idea-choice:focus-visible,
.idea-field:focus-visible,
.idea-search input:focus-visible {
  outline: 2px solid #9eb0ff;
  outline-offset: 2px;
}

@keyframes idea-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-2px); }
}

@keyframes idea-flash {
  0% { box-shadow: 0 0 0 2px #516af6; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes idea-swap {
  from { opacity: 0.35; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.idea-card.is-new { animation: idea-shake 0.45s ease; }
.idea-card.is-flash { animation: idea-flash 0.7s ease; }
.idea-feature.is-swap { animation: idea-swap 0.35s ease; }

@media (min-width: 700px) {
  .idea-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .idea-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1360px) {
  .idea-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .idea-top,
  .idea-toolbar,
  .idea-form-grid,
  .idea-feature {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .idea-feature .idea-thumb,
  .idea-card {
    width: 100%;
  }

  .idea-card {
    display: grid;
    grid-template-columns: 1fr;
  }

  .idea-thumb,
  .idea-feature .idea-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .idea-search {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .idea-card,
  .idea-card.is-new,
  .idea-card.is-flash,
  .idea-feature.is-swap {
    animation: none;
    transition: none;
  }
}

.detail {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 8px 48px;
  font-family: Aeonik, ui-sans-serif, system-ui, sans-serif;
}

.detail h1,
.detail h2,
.detail h3,
.detail p,
.detail li,
.detail button,
.detail input,
.detail label {
  font-family: Aeonik, ui-sans-serif, system-ui, sans-serif;
}

.detail-main {
  min-width: 0;
  flex: 1;
}

.detail-back {
  color: #9eb0ff;
  font-size: 13px;
  font-weight: 600;
}

.detail-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
}

.detail-head img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  flex: none;
}

.detail-head h1 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  color: #f7f7f7;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 6px;
  color: #9aa3c7;
  font-size: 13px;
}

.detail-quote {
  margin-top: 22px;
}

.detail-quote strong {
  display: block;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 700;
  color: #f7f7f7;
}

.detail-quote span,
.detail-fine,
.detail-empty {
  color: #9aa3c7;
  font-size: 14px;
}

.detail-ranges {
  display: flex;
  gap: 6px;
  margin-top: 16px;
}

.detail-range,
.detail-tab,
.detail-mode {
  border: 0;
  background: transparent;
  color: #9aa3c7;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
}

.detail-range.is-on {
  background: #f7f7f7;
  color: #0b0e18;
}

.detail-chart {
  margin-top: 8px;
  border-top: 1px solid #1c2444;
  padding-top: 12px;
}

.detail-chart svg {
  width: 100%;
  height: 220px;
  display: block;
}

.detail-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 8px;
}

.duel-chart-note {
  margin: 8px 0 0;
  color: #9aa3c7;
  font-size: 14px;
  line-height: 1.45;
}

#duel-detail .detail-chart {
  height: auto;
}

.detail-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c9d0ea;
  font-size: 12px;
}

.detail-key i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.detail-block {
  margin-top: 28px;
}

.detail-block h2,
.detail-trade h2 {
  font-size: 20px;
  font-weight: 700;
  color: #f7f7f7;
}

.detail-block p {
  margin-top: 10px;
  color: #c9d0ea;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.detail-terms {
  color: #8b93a7;
}

.detail-terms a,
.detail-fine a,
.terms-page a {
  color: #516af6;
}

.terms-page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.terms-page h1 {
  margin: 12px 0 16px;
  font-size: 28px;
  font-weight: 700;
  color: #f7f7f7;
}

.terms-page h2 {
  margin: 28px 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #f7f7f7;
}

.terms-page p {
  margin: 0 0 12px;
  color: #9899a3;
  font-size: 15px;
  line-height: 1.55;
}

.detail-credit {
  margin: 6px 0 0;
  color: #8b93a7;
  font-size: 13px;
}

.detail-amount textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  border-radius: 12px;
  border: 1px solid #2a2936;
  background: #12111a;
  color: #f7f7f7;
  padding: 10px 12px;
  resize: vertical;
  min-height: 84px;
  font: inherit;
}

.comment-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.comment-list li {
  padding: 12px 0;
  border-top: 1px solid #1c2444;
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #8b93a7;
  font-size: 12px;
}

.comment-list p {
  margin-top: 6px;
  white-space: pre-wrap;
}

.detail-time a {
  color: #516af6;
}

.detail-time {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.detail-time li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid #1c2444;
  color: #c9d0ea;
  font-size: 14px;
}

.detail-tabs,
.detail-modes {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  border-bottom: 1px solid #1c2444;
}

.detail-tab.is-on,
.detail-mode.is-on {
  color: #f7f7f7;
  box-shadow: inset 0 -2px 0 #516af6;
  border-radius: 0;
}

.detail-feed {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.detail-feed li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #1c2444;
  color: #f7f7f7;
  font-size: 14px;
}

.detail-trade {
  border: 1px solid #2a2936;
  background: #161522;
  border-radius: 16px;
  padding: 8px 16px 16px;
}

.detail-modes {
  margin-top: 4px;
}

.detail-pair,
.detail-choices {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.detail-pair {
  grid-template-columns: 1fr 1fr;
}

.detail-choice {
  border-radius: 999px;
  min-height: 42px;
  padding: 8px 14px;
  font-weight: 600;
}

.detail-row-bet {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 8px;
}

.detail-choices .detail-choice {
  display: flex;
  justify-content: space-between;
  width: 100%;
  border-radius: 12px;
}

.detail-choice.is-on {
  box-shadow: 0 0 0 1px currentColor;
}

.detail-amount {
  display: block;
  margin-top: 14px;
  color: #c9d0ea;
  font-size: 13px;
}

.detail-amount input {
  display: block;
  width: 100%;
  margin-top: 6px;
  border-radius: 12px;
  border: 1px solid #2a2936;
  background: #12111a;
  color: #f7f7f7;
  padding: 10px 12px;
  color-scheme: dark;
}

.detail-place {
  width: 100%;
  margin-top: 14px;
}

.detail-fine {
  margin-top: 12px;
}

.detail-empty {
  margin-top: 16px;
}

@media (min-width: 960px) {
  .detail {
    flex-direction: row;
    align-items: flex-start;
  }

  .detail-trade {
    width: 320px;
    flex: none;
    position: sticky;
    top: 24px;
  }
}

.detail-range:focus-visible,
.detail-tab:focus-visible,
.detail-mode:focus-visible,
.detail-choice:focus-visible,
.detail-amount input:focus-visible {
  outline: 2px solid #9eb0ff;
  outline-offset: 2px;
}

.news-fallback {
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background: #12111a;
  color: #8b93a7;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spark { width: 80px; height: 28px; display: block; margin: 4px 16px 0; }
.liq-note { margin: 8px 16px 0; color: #8b93a7; font-size: 12px; }
.impact-warn { color: #f0c36a; font-size: 12px; margin: 8px 0 0; }
.quote-grid { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin-top: 12px; font-size: 13px; }
.quote-grid dt { color: #8b93a7; }
.detail-chart { height: 220px; }
.treasury-panel, .fund-row { border: 1px solid #1c2444; border-radius: 16px; padding: 16px; margin-bottom: 12px; }
.fund-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.fund-row button, .treasury-panel button { border-radius: 999px; padding: 8px 14px; background: #516af6; color: white; border: 0; }
.fund-row input { width: 88px; margin-left: 8px; background: #111; color: white; border: 1px solid #2a2a2a; border-radius: 8px; padding: 6px 8px; }

.delulu-copy {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wallet-modal { position: fixed; inset: 0; z-index: 220; display: grid; place-items: center; font-family: Aeonik, sans-serif; }
.wallet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.62); border: 0; }
.wallet-card { position: relative; width: min(360px, calc(100% - 32px)); background: #12111a; color: #f7f7f7; border: 1px solid #2a2936; border-radius: 16px; padding: 20px; display: grid; gap: 10px; }
.wallet-card h2 { margin: 0; font-size: 20px; font-weight: 500; }
.wallet-card p { margin: 0; color: #9899a3; font-size: 13px; }
.wallet-card button { background: #161522; color: #f7f7f7; border: 1px solid #2a2936; border-radius: 999px; padding: 12px 14px; text-align: left; cursor: pointer; font-family: inherit; }
.wallet-card button:hover { border-color: #516af6; }
.wallet-error { color: #ffb4b4; }
.detail-tx { min-height: 1.2em; color: #9899a3; font-size: 12px; margin: 8px 0 0; }

/* Phones, tablets, and Android. Desktop sidebar and grid stay as they are. */
html {
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
}

button,
a,
input,
textarea,
select,
summary {
  touch-action: manipulation;
}

#market-grid,
#duel-grid {
  grid-template-columns: minmax(0, 1fr);
  overflow: visible;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) and (min-width: 720px) {
  [data-market-card],
  [data-duel-card] {
    transform-origin: center;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  }

  [data-market-card]:hover,
  [data-duel-card]:hover {
    transform: scale(1.25);
    z-index: 5;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
  }

  #market-grid > [data-market-card]:nth-child(4n + 1),
  #duel-grid > [data-duel-card]:nth-child(4n + 1) {
    transform-origin: left center;
  }

  #market-grid > [data-market-card]:nth-child(4n),
  #duel-grid > [data-duel-card]:nth-child(4n) {
    transform-origin: right center;
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) and (min-width: 720px) and (max-width: 1099px) {
  #market-grid > [data-market-card]:nth-child(4n + 1),
  #market-grid > [data-market-card]:nth-child(4n),
  #duel-grid > [data-duel-card]:nth-child(4n + 1),
  #duel-grid > [data-duel-card]:nth-child(4n) {
    transform-origin: center;
  }

  #market-grid > [data-market-card]:nth-child(odd),
  #duel-grid > [data-duel-card]:nth-child(odd) {
    transform-origin: left center;
  }

  #market-grid > [data-market-card]:nth-child(even),
  #duel-grid > [data-duel-card]:nth-child(even) {
    transform-origin: right center;
  }
}

#latest-news > article {
  flex: 1 1 100%;
  max-width: 100%;
  min-width: 0;
}

@media (min-width: 720px) {
  #market-grid,
  #duel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #latest-news > article {
    flex-basis: calc(50% - 32px);
  }
}

@media (min-width: 1100px) {
  #market-grid,
  #duel-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #latest-news > article {
    flex-basis: calc(33.333% - 32px);
  }
}

@media (max-width: 1279px) {
  aside[aria-label="Sidebar"] {
    transform: translateX(-105%);
    top: calc(56px + env(safe-area-inset-top));
    bottom: 0;
    height: auto;
    z-index: 120;
  }

  body.nav-open aside[aria-label="Sidebar"] {
    transform: translateX(0);
  }

  body.nav-open .z-sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
    z-index: 110;
  }

  header[aria-label="Global"],
  .jono-phone-bar {
    z-index: 130;
    padding-top: env(safe-area-inset-top);
  }

  .jono-phone-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    position: sticky;
    top: 0;
    height: calc(56px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 8px 0 4px;
    background: #060510;
    color: #f7f7f7;
    border-bottom: 1px solid #2a2936;
  }

  .jono-phone-bar button {
    background: transparent;
    color: inherit;
    border: 0;
    padding: 0;
  }

  .jono-phone-bar a.inline-flex::before {
    content: "";
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: url("logo-delulu.jpg") center / cover no-repeat;
  }

  button[aria-label="Close sidebar"],
  button[aria-label="Open menu"],
  button[aria-label="Close menu"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  header[aria-label="Global"] a.inline-flex > svg {
    display: none;
  }

  header[aria-label="Global"] a.inline-flex::before {
    content: "";
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: url("logo-delulu.jpg") center / cover no-repeat;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (min-width: 640px) and (max-width: 1279px) {
  aside[aria-label="Sidebar"] {
    top: calc(68px + env(safe-area-inset-top));
  }
}

@media (max-width: 1023px) {
  main .flex.gap-2.w-full:has(> .min-w-48) {
    flex-wrap: wrap;
  }

  main .flex.gap-2.w-full:has(> .min-w-48) > .hidden.lg\:flex {
    display: block;
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }

  main .flex.gap-2.w-full:has(> .min-w-48) > .hidden.lg\:flex .overflow-auto {
    flex-wrap: nowrap;
    justify-content: flex-start;
    max-width: 100%;
  }

  main .flex.gap-2.w-full:has(> .min-w-48) > .lg\:hidden {
    display: none;
  }

  input,
  textarea,
  select {
    font-size: 16px;
  }

  #search-button {
    min-width: 0;
    flex: 1;
  }
}

@media (max-width: 959px) {
  .detail-main {
    display: contents;
  }

  .detail-trade {
    order: 2;
  }

  .detail-block,
  .detail-tabs,
  .detail-feed,
  .detail-fine,
  .detail-empty,
  button.detail-place {
    order: 3;
  }

  .detail {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 720px) {
  .detail {
    gap: 20px;
    padding-left: 0;
    padding-right: 0;
  }

  .detail-head {
    align-items: flex-start;
  }

  .detail-head h1 {
    font-size: 22px;
  }

  .detail-quote strong {
    font-size: 26px;
  }

  .detail-chart,
  .detail-chart svg {
    height: 180px;
  }

  .detail-time li,
  .detail-feed li,
  .comment-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  [data-market-card] > div.border-t {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  [data-card-layout="list"] .w-\[132px\] {
    width: 108px;
  }

  .idea-board {
    padding: 16px 16px calc(96px + env(safe-area-inset-bottom));
  }

  .idea-top h1 {
    font-size: 24px;
  }

  .idea-feature .idea-thumb {
    aspect-ratio: 16 / 9;
    max-height: 220px;
    object-fit: cover;
  }

  .idea-pill,
  .idea-arrow,
  .detail-choice,
  .detail-place,
  .fund-row button,
  #news-more {
    min-height: 44px;
  }

  .idea-arrow {
    width: 44px;
    height: 44px;
  }

  .fund-row {
    flex-wrap: wrap;
    align-items: stretch;
  }

  #news-more {
    width: 100%;
  }

  #latest-news img,
  #latest-news .news-fallback {
    height: 180px;
  }

  .wallet-card,
  .idea-modal {
    max-height: calc(100dvh - 24px - env(safe-area-inset-bottom));
    overflow: auto;
  }

  .delulu-slip {
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 639px) {
  .z-mobile-nav {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .z-mobile-nav a,
  .z-mobile-nav button {
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  aside[aria-label="Sidebar"],
  .z-sidebar-overlay {
    transition: none;
  }
}

#ideas-app {
  --bg: #060510;
  --surface: #12111a;
  --surface-2: #161522;
  --line: #2a2936;
  --line-strong: #474b52;
  --fg: #f7f7f7;
  --muted: #9899a3;
  --faint: #474b52;
  --accent: #516af6;
  --accent-hi: #6f85ff;
  --accent-soft: rgba(81, 106, 246, 0.16);
  --up: #21c95e;
  --down: #ff622e;
  --font-ui: Aeonik, ui-sans-serif, system-ui, sans-serif;
  --font-num: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--fg);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

#ideas-app button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

#ideas-app button:focus-visible,
#ideas-app input:focus-visible,
#ideas-app textarea:focus-visible,
#ideas-app a:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 2px;
}

#ideas-app .num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

#ideas-app .page {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: 20px;
  padding-block: 28px 64px;
}

#ideas-app .head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

#ideas-app .head h1 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}

#ideas-app .head p {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 46rem;
  text-wrap: pretty;
}

#ideas-app .head .hook {
  margin: 8px 0 0;
  max-width: 28rem;
  color: var(--fg);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}

#ideas-app .btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s, transform 0.15s;
}

#ideas-app .btn-primary {
  background: var(--accent);
  color: #fff;
}

#ideas-app .btn-primary:hover {
  background: var(--accent-hi);
}

#ideas-app .btn-ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--fg);
}

#ideas-app .btn-ghost:hover {
  border-color: var(--accent);
}

#ideas-app .stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 22px;
  padding-block: 14px;
  border-block: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

#ideas-app .stats b {
  color: var(--fg);
  font-weight: 600;
  margin-right: 5px;
}

#ideas-app .stats .live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

#ideas-app .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 0 rgba(63, 214, 154, 0.5);
  animation: ideas-pulse 2s infinite;
}

@keyframes ideas-pulse {
  70% { box-shadow: 0 0 0 7px rgba(63, 214, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 214, 154, 0); }
}

#ideas-app .grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  margin-top: 26px;
}

#ideas-app .feat {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(91, 108, 255, 0.16), transparent 55%), var(--surface);
}

#ideas-app .feat .eyebrow {
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-hi);
  font-weight: 600;
}

#ideas-app .feat h2 {
  margin: 6px 0 8px;
  font-family: var(--font-ui);
  font-size: 21px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--fg);
}

#ideas-app .feat .meta {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}

#ideas-app .feat .actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

#ideas-app .ring {
  position: relative;
  width: 132px;
  height: 132px;
}

#ideas-app .ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

#ideas-app .ring .center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

#ideas-app .ring .center b {
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
}

#ideas-app .ring .center span {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

#ideas-app .toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  border-bottom: 1px solid var(--line);
}

#ideas-app .tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

#ideas-app .tab {
  background: none;
  border: 0;
  padding: 12px 12px 13px;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  display: flex;
  gap: 7px;
  align-items: center;
}

#ideas-app .tab[aria-selected="true"] {
  color: var(--fg);
  border-bottom-color: var(--accent);
}

#ideas-app .tab .count {
  font-family: var(--font-num);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
}

#ideas-app .tools {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-bottom: 8px;
}

#ideas-app .seg {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
}

#ideas-app .seg button {
  background: none;
  border: 0;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

#ideas-app .seg button[aria-pressed="true"] {
  background: var(--surface-2);
  color: var(--fg);
}

#ideas-app .search {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--fg);
  font: inherit;
  font-size: 13px;
  width: 180px;
}

#ideas-app .search::placeholder {
  color: var(--faint);
}

#ideas-app .list {
  list-style: none;
  margin: 0;
  padding: 0;
}

#ideas-app .row {
  display: grid;
  grid-template-columns: 34px 48px minmax(0, 1fr) 60px;
  gap: 14px;
  align-items: center;
  padding: 16px 10px;
  border-bottom: 1px solid var(--line);
  border-radius: 12px;
  transition: background 0.15s;
}

#ideas-app .list .row:hover {
  background: var(--surface);
}

#ideas-app .rank {
  font-family: var(--font-num);
  color: var(--faint);
  font-size: 16px;
  text-align: center;
}

#ideas-app .list .row:nth-child(-n + 3) .rank {
  color: var(--fg);
}

#ideas-app .thumb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}

#ideas-app .t-traders { background: #1a1636; color: #b3a8ff; }
#ideas-app .t-coins { background: #2a2112; color: #f5c76a; }
#ideas-app .t-clans { background: #0f2626; color: #6fe0cf; }
#ideas-app .t-other { background: #1e1e26; color: #b9bccb; }

#ideas-app .body { min-width: 0; }

#ideas-app .title {
  font-weight: 650;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#ideas-app .desc {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

#ideas-app .meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 9px;
  font-size: 12px;
  color: var(--muted);
}

#ideas-app .tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}

#ideas-app .who {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#ideas-app .av {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex: none;
}

#ideas-app .velo {
  color: var(--up);
  font-family: var(--font-num);
}

#ideas-app .earned { color: var(--up); font-weight: 600; }

#ideas-app .shares {
  display: inline-flex;
  gap: 10px;
}

#ideas-app .shares button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent-hi);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

#ideas-app .shares button:hover { text-decoration: underline; }

#ideas-app .shares button:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 2px;
}

#ideas-app .prog {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

#ideas-app .bar {
  position: relative;
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: var(--surface-2);
  overflow: hidden;
}

#ideas-app .bar i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #3446d6, var(--accent));
  transition: width 0.4s ease;
}

#ideas-app .bar.hot i {
  background: linear-gradient(90deg, var(--accent), var(--accent-hi));
  box-shadow: 0 0 12px rgba(135, 148, 255, 0.55);
}

#ideas-app .bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(33.333% - 1px), rgba(5, 6, 8, 0.9) calc(33.333% - 1px) 33.333%);
}

#ideas-app .prog .num {
  font-size: 12px;
  color: var(--muted);
  min-width: 64px;
  text-align: right;
}

#ideas-app .prog .num b {
  color: var(--fg);
  font-weight: 600;
}

#ideas-app .vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

#ideas-app .up {
  width: 56px;
  height: 60px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: all 0.15s;
}

#ideas-app .up:hover { border-color: var(--accent); }
#ideas-app .up svg { width: 16px; height: 16px; }
#ideas-app .up .num { font-size: 14px; font-weight: 600; }

#ideas-app .up[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

#ideas-app .dn {
  background: none;
  border: 0;
  color: var(--faint);
  padding: 2px 8px;
  border-radius: 6px;
}

#ideas-app .dn:hover { color: var(--down); }
#ideas-app .dn[aria-pressed="true"] { color: var(--down); }
#ideas-app .dn svg { width: 14px; height: 14px; display: block; }

#ideas-app .badge {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 8px;
  text-align: center;
}

#ideas-app .b-review { background: rgba(245, 199, 106, 0.12); color: #f5c76a; }
#ideas-app .b-live { background: rgba(63, 214, 154, 0.12); color: var(--up); }
#ideas-app .b-rej { background: rgba(255, 107, 125, 0.1); color: var(--down); }

#ideas-app .trade {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

#ideas-app .trade .odds {
  font-family: var(--font-num);
  font-size: 13px;
}

#ideas-app .trade-btn {
  padding: 6px 12px;
  font-size: 12px;
}

#ideas-app .empty {
  padding: 48px 10px;
  color: var(--muted);
}

#ideas-app .empty b {
  display: block;
  color: var(--fg);
  font-size: 16px;
  margin-bottom: 6px;
}

#ideas-app aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#ideas-app .panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 18px;
}

#ideas-app .reward-panel {
  border-color: #3d4ec4;
  background: linear-gradient(180deg, var(--accent-soft), var(--surface) 72%);
}

#ideas-app .reward-panel p {
  margin: 0;
  color: var(--fg);
  font-size: 14px;
  line-height: 1.45;
}

#ideas-app .panel h3 {
  margin: 0 0 14px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fg);
}

#ideas-app .steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: ideas-step;
}

#ideas-app .steps li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  counter-increment: ideas-step;
}

#ideas-app .steps li::before {
  content: counter(ideas-step);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--muted);
}

#ideas-app .steps b { display: block; font-size: 13px; }
#ideas-app .steps span { color: var(--muted); font-size: 12.5px; }

#ideas-app .steps li.earn::before {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-hi);
}

#ideas-app .leader {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

#ideas-app .leader li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

#ideas-app .leader li:first-child {
  border-top: 0;
  padding-top: 0;
}

#ideas-app .leader .r {
  font-family: var(--font-num);
  color: var(--faint);
  font-size: 12px;
}

#ideas-app .leader .w {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

#ideas-app .leader .w span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#ideas-app .leader .e {
  font-family: var(--font-num);
  color: var(--up);
}

#ideas-app .leader small {
  display: block;
  color: var(--faint);
  font-size: 11px;
}

#ideas-app .leader li.empty-creator {
  display: block;
  color: var(--muted);
  font-size: 13px;
  padding: 0;
  border: 0;
  white-space: normal;
}

#ideas-app .note {
  font-size: 11.5px;
  color: var(--faint);
  margin-top: 12px;
}

#ideas-app .scrim {
  position: fixed;
  inset: 0;
  background: rgba(3, 4, 6, 0.72);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 180;
}

#ideas-app .modal {
  width: min(860px, 100%);
  max-height: calc(100% - 32px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

#ideas-app .form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#ideas-app .form h2 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 20px;
  color: var(--fg);
}

#ideas-app .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#ideas-app .field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

#ideas-app .field input,
#ideas-app .field textarea {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  resize: vertical;
}

#ideas-app .cats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

#ideas-app .cats button {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

#ideas-app .cats button[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--fg);
  background: var(--accent-soft);
}

#ideas-app .preview {
  background: var(--bg);
  border-left: 1px solid var(--line);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#ideas-app .preview .lbl {
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
}

#ideas-app .preview .row {
  border: 1px solid var(--line);
  grid-template-columns: 48px minmax(0, 1fr) 60px;
  background: var(--surface);
  pointer-events: none;
}

#ideas-app .fine {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

#ideas-app .fine.err { color: var(--down); }

#ideas-app .modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 4px;
}

#ideas-app .toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  z-index: 190;
}

@media (max-width: 960px) {
  #ideas-app .grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  #ideas-app .modal { grid-template-columns: 1fr; }
  #ideas-app .preview { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 560px) {
  #ideas-app .feat { grid-template-columns: 1fr; }
  #ideas-app .ring { width: 112px; height: 112px; }
  #ideas-app .search { width: 100%; }
  #ideas-app .tools { width: 100%; flex-wrap: wrap; }
  #ideas-app .row {
    grid-template-columns: 40px minmax(0, 1fr) 56px;
    gap: 12px;
    padding: 14px 4px;
  }
  #ideas-app .rank { display: none; }
  #ideas-app .thumb { width: 40px; height: 40px; font-size: 14px; }
  #ideas-app .desc { display: none; }
  #ideas-app .up { width: 56px; height: 60px; }
}

@media (max-width: 720px) {
  #ideas-app .field input,
  #ideas-app .field textarea,
  #ideas-app .search { font-size: 16px; }
}

@media (max-width: 639px) {
  #ideas-app .page { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  #ideas-app .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  #ideas-app * { animation: none !important; transition: none !important; }
}

.home-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  width: 100%;
  min-height: 300px;
  margin: 0;
  padding: 28px 0 0 16px;
  background: #4f6efc;
  overflow: hidden;
}

.home-intro-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: none;
  padding: 32px 40px 32px 0;
}

.home-intro h1,
.home-intro p {
  font-family: Aeonik, ui-sans-serif, system-ui, sans-serif;
  font-weight: 500;
  font-style: normal;
}

.home-intro h1 {
  text-wrap: balance;
}

.home-intro p {
  text-wrap: pretty;
}

.home-intro .intro-break {
  display: none;
}

.home-intro h1 {
  color: #eaedff;
}

.home-intro p {
  color: rgba(209, 216, 255, 0.6);
}

.home-intro h1 {
  margin: 0;
  font-size: 36px;
  line-height: 40px;
  letter-spacing: -0.05em;
}

.home-intro p {
  margin: 12px 0 0;
  max-width: 36rem;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: -0.025em;
}

@media (min-width: 800px) {
  .home-intro h1 {
    font-size: 72px;
    line-height: 76px;
  }

  .home-intro p {
    max-width: 22em;
    font-size: 28px;
    line-height: 36px;
    text-wrap: wrap;
  }

  .home-intro .intro-break {
    display: inline;
  }
}

.home-intro-cat {
  display: block;
  height: 320px;
  width: auto;
  max-width: 46vw;
  pointer-events: none;
  user-select: none;
}

@media (min-width: 768px) {
  .home-intro { padding-left: 24px; }
}

@media (max-width: 639px) {
  .home-intro { min-height: 0; padding: 20px 0 0 16px; }
  .home-intro-copy { padding: 16px 12px 20px 0; }
  .home-intro-cat { height: 200px; max-width: 46vw; }
}

.fomo-pnl {
  display: none;
  align-items: center;
  gap: 20px;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 0 0 28px;
  color: #eaedff;
}

header[aria-label="Global"] .w-full:has(.fomo-pnl) {
  overflow: hidden;
}

header[aria-label="Global"] .w-full:has(.fomo-pnl) > div:first-child {
  flex: none;
  margin-right: 0;
}

header[aria-label="Global"] .w-full:has(.fomo-pnl) > .ml-auto {
  flex: 0 0 auto;
  margin-left: 56px;
  position: relative;
  z-index: 2;
}

.fomo-pnl-label {
  flex: none;
  margin: 0;
  font-family: Aeonik, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(234, 237, 255, 0.5);
}

.fomo-pnl-viewport {
  overflow: hidden;
  min-width: 0;
  flex: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 80px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 80px), transparent);
}

.fomo-pnl-track {
  display: flex;
  width: max-content;
  animation: fomo-pnl-move 70s linear infinite;
}

.fomo-pnl:hover .fomo-pnl-track,
.fomo-pnl:focus-within .fomo-pnl-track {
  animation-play-state: paused;
}

.fomo-pnl-set {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
}

.fomo-pnl-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-family: Aeonik, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.fomo-pnl-item img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.fomo-pnl-name {
  color: #eaedff;
}

.fomo-pnl-amt {
  color: #21c95e;
  font-variant-numeric: tabular-nums;
}

@keyframes fomo-pnl-move {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (min-width: 900px) {
  .fomo-pnl { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .fomo-pnl-track { animation: none; }
  .fomo-pnl-set[aria-hidden="true"] { display: none; }
  .fomo-pnl-viewport { overflow-x: auto; }
}

.duel-nav-new {
  margin-left: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #516af6;
}

#duel-app {
  --bg: #060510;
  --surface: #12111a;
  --line: #2a2936;
  --fg: #f7f7f7;
  --muted: #9899a3;
  --faint: #474b52;
  --accent: #516af6;
  --accent-hi: #6f85ff;
  --up: #21c95e;
  --b: #9aa3c7;
  --font: Aeonik, ui-sans-serif, system-ui, sans-serif;
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
}

#duel-app button,
#duel-app input { font: inherit; color: inherit; }

#duel-app button { cursor: pointer; }

#duel-app button:focus-visible,
#duel-app input:focus-visible,
#duel-app a:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 2px;
}

#duel-app .page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 20px 72px;
}

#duel-app .kicker {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-hi);
}

#duel-app h1 {
  margin: 0;
  max-width: 16ch;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

#duel-app .lede {
  margin: 12px 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

#duel-app .tabs {
  display: flex;
  gap: 20px;
  margin: 28px 0 20px;
  border-bottom: 1px solid var(--line);
}

#duel-app .tabs button {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 10px 0 12px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

#duel-app .tabs button[aria-selected="true"] {
  color: var(--fg);
  border-bottom-color: var(--fg);
}

#duel-app .layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.7fr);
  gap: 20px;
  align-items: start;
}

#duel-app .stage,
#duel-app .rail,
#duel-app .rules {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

#duel-app .stage { padding: 24px; }

#duel-app .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#duel-app .meta strong { color: var(--fg); font-weight: 500; }

#duel-app .stage h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

#duel-app .match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

#duel-app .side { min-width: 0; }

#duel-app .side.b { text-align: right; }

#duel-app .who {
  display: flex;
  align-items: center;
  gap: 12px;
}

#duel-app .side.b .who { flex-direction: row-reverse; }

#duel-app .mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 14px;
  background: #1c274d;
  color: #d1d8ff;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

#duel-app .side.b .mark { background: #23232e; color: var(--b); }

#duel-app .who b {
  display: block;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

#duel-app .ret {
  display: block;
  margin-top: 2px;
  color: var(--up);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

#duel-app .ret.pending { color: var(--muted); font-size: 15px; }

#duel-app .vs {
  color: var(--faint);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

#duel-app .fine {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

#duel-app .track { display: grid; gap: 10px; margin-top: 18px; }

#duel-app .track-row { display: grid; gap: 6px; }

#duel-app .track-row span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

#duel-app .track-row b { color: var(--fg); font-weight: 500; }

#duel-app .bar,
#duel-app .potbar {
  height: 8px;
  border-radius: 99px;
  background: #23232e;
  overflow: hidden;
}

#duel-app .bar i,
#duel-app .potbar i {
  display: block;
  height: 100%;
  background: var(--up);
  border-radius: inherit;
}

#duel-app .pot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

#duel-app .pot p { margin: 0; color: var(--muted); font-size: 13px; }

#duel-app .pot-total {
  margin: 4px 0 12px;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

#duel-app .potbar { display: flex; background: var(--b); }

#duel-app .potbar i { background: var(--accent); }

#duel-app .legend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

#duel-app .legend span { display: inline-flex; align-items: center; gap: 8px; }

#duel-app .legend i {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--accent);
}

#duel-app .legend .b i { background: var(--b); }

#duel-app .bet { margin-top: 22px; }

#duel-app .bet p,
#duel-app .field label {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

#duel-app .choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

#duel-app .choices button,
#duel-app .presets button,
#duel-app .share {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
  min-height: 44px;
}

#duel-app .choices button { font-size: 15px; font-weight: 500; }

#duel-app .choices button[aria-checked="true"] {
  border-color: var(--accent);
  background: rgba(81, 106, 246, 0.16);
}

#duel-app .field { margin-top: 14px; }

#duel-app .wager-line { display: flex; gap: 8px; }

#duel-app input[type="number"] {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #060510;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

#duel-app input[type="number"]::-webkit-outer-spin-button,
#duel-app input[type="number"]::-webkit-inner-spin-button { appearance: none; margin: 0; }

#duel-app input[type="number"] { appearance: textfield; -moz-appearance: textfield; }

#duel-app .presets { display: flex; gap: 8px; }

#duel-app .presets button { padding: 0 12px; color: var(--muted); }

#duel-app .presets button[aria-pressed="true"] { color: var(--fg); border-color: var(--faint); }

#duel-app .quote { margin-top: 18px; }

#duel-app .quote p { margin: 0; color: var(--muted); font-size: 13px; }

#duel-app .payout {
  margin: 4px 0;
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

#duel-app .profit { margin: 0 0 8px; font-size: 16px; }

#duel-app .profit b { font-weight: 500; color: var(--up); }

#duel-app .share {
  margin-top: 16px;
  padding: 0 14px;
  color: var(--fg);
}

#duel-app .toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--fg);
  color: var(--bg);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
}

#duel-app .rail { padding: 8px; }

#duel-app .rail h2,
#duel-app .rules h2 {
  margin: 12px 12px 4px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

#duel-app .pick,
#duel-app .past {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 12px;
  padding: 12px;
  color: inherit;
}

#duel-app .pick[aria-current="true"] { background: rgba(247, 247, 247, 0.04); }

#duel-app .pick b,
#duel-app .past b { font-weight: 500; }

#duel-app .pick small,
#duel-app .past small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

#duel-app .rules {
  margin-top: 20px;
  padding: 8px 20px 20px;
}

#duel-app .rules ol { margin: 8px 0 0; padding: 0 0 0 18px; }

#duel-app .rules li { margin: 8px 0; }

#duel-app .rules a { color: var(--accent-hi); }

#duel-app .rules .review {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 860px) {
  #duel-app h1 { font-size: 30px; }
  #duel-app .stage h2 { font-size: 26px; }
  #duel-app .layout { grid-template-columns: 1fr; }
  #duel-app .match { grid-template-columns: 1fr; justify-items: start; }
  #duel-app .side.b,
  #duel-app .side.b .who { text-align: left; flex-direction: row; }
  #duel-app .vs { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  #duel-app * { transition: none !important; }
}
