/* outmeme.lol — dark board, acid-lime money colour. */
:root {
  --bg:        #08090a;
  --bg-soft:   #0d0f11;
  --card:      #101315;
  --card-hi:   #151a1c;
  --line:      #1d2326;
  --line-soft: #161b1e;
  --text:      #e9ece8;
  --text-dim:  #9aa39f;
  --muted:     #6b7470;
  --acid:      #c9f832;
  --acid-deep: #a5d117;
  --acid-glow: rgba(201, 248, 50, 0.14);
  --hot:       #ff6b2c;
  --danger:    #ff5a5a;
  --radius:    14px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  /* Faint grid so the black does not read as flat. */
  background-image:
    radial-gradient(900px 500px at 50% -180px, rgba(201, 248, 50, 0.07), transparent 70%),
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
  background-attachment: fixed;
}

a { color: inherit; }
button { font: inherit; cursor: pointer; }

.wrap { max-width: 940px; margin: 0 auto; padding: 0 20px 80px; }

/* ------------------------------------------------------------------ head */

.masthead { padding: 40px 0 8px; text-align: center; }

.logo {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 38px; font-weight: 800; letter-spacing: -0.03em;
  text-decoration: none;
}
.logo .word { white-space: nowrap; }
.logo .dot { color: var(--acid); }
.logo .mark {
  width: 62px; height: 62px; display: block;
  /* Pixel art: keep the hard edges instead of letting the browser smudge them. */
  image-rendering: pixelated;
}

.livepill {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 18px 0 6px; padding: 7px 16px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; font-size: 14px; color: var(--text-dim);
  text-decoration: none;
}
.livepill:hover { border-color: var(--acid-deep); }
.livepill b { color: var(--acid); font-variant-numeric: tabular-nums; }
.blip {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--acid); box-shadow: 0 0 0 0 var(--acid-glow);
  animation: blip 2s ease-out infinite;
}
@keyframes blip {
  0%   { box-shadow: 0 0 0 0 rgba(201, 248, 50, 0.5); }
  100% { box-shadow: 0 0 0 11px rgba(201, 248, 50, 0); }
}

.tagline {
  max-width: 620px; margin: 14px auto 0;
  color: var(--text-dim); font-size: 17px;
}
.tagline .hook { color: var(--acid); font-weight: 600; }

/* ------------------------------------------------------------- price dial */

.dial { text-align: center; margin: 40px 0 10px; }
.dial h1 {
  margin: 0; font-size: clamp(30px, 6vw, 46px); font-weight: 800;
  letter-spacing: -0.03em; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center; gap: 14px;
}
.dialrow { display: inline-flex; align-items: center; gap: 14px; }
.dial .amount {
  color: var(--acid); font-family: var(--mono);
  font-variant-numeric: tabular-nums; font-weight: 700;
}
.step {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card);
  color: var(--acid); font-size: 19px; line-height: 1;
  display: grid; place-items: center; padding: 0;
}
.step:hover:not(:disabled) { background: var(--card-hi); border-color: var(--acid-deep); }
.step:disabled { opacity: 0.3; cursor: not-allowed; }

.dial p { color: var(--muted); max-width: 520px; margin: 12px auto 0; font-size: 15px; }

/* ------------------------------------------------------------------ form */

.bidbar { display: flex; gap: 10px; margin-top: 26px; }
.bidbar .field { flex: 1; position: relative; }
.bidbar .field .glyph {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 15px; pointer-events: none;
}

input, select, textarea {
  width: 100%; padding: 15px 18px;
  background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--sans); font-size: 15px; outline: none;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus {
  border-color: var(--acid-deep); box-shadow: 0 0 0 3px var(--acid-glow);
}
.bidbar input { padding-left: 44px; font-family: var(--mono); font-size: 14px; }

.btn {
  padding: 15px 30px; border: none; border-radius: 999px;
  background: var(--acid); color: #0a0c05;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform 0.08s ease, background 0.15s ease;
}
.btn:hover:not(:disabled) { background: #d8ff4d; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.ghost {
  background: transparent; color: var(--text-dim);
  border: 1px solid var(--line);
}
.btn.ghost:hover:not(:disabled) { color: var(--text); border-color: var(--acid-deep); background: var(--card); }

.hint { text-align: center; color: var(--muted); font-size: 13.5px; margin: 12px 0 0; }
.hint a { color: var(--text-dim); }

/* Expanding detail panel */
.details {
  margin-top: 18px; padding: 24px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.details[hidden] { display: none; }
.details h3 { margin: 0 0 4px; font-size: 17px; }
.details .sub { margin: 0 0 20px; color: var(--muted); font-size: 14px; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 13px; color: var(--text-dim); margin: 0 0 6px; font-weight: 500; }
label .opt { color: var(--muted); font-weight: 400; }
.details input, .details select, .details textarea { border-radius: 10px; padding: 12px 14px; }
.details textarea { resize: vertical; min-height: 74px; line-height: 1.5; }
.counter { float: right; color: var(--muted); font-size: 12px; font-family: var(--mono); }

.notice {
  margin: 0 0 18px; padding: 13px 16px; border-radius: 10px;
  font-size: 14px; border: 1px solid;
}
.notice.info { background: rgba(201, 248, 50, 0.06); border-color: rgba(201, 248, 50, 0.28); color: #dcf59a; }
.notice.warn { background: rgba(255, 107, 44, 0.07); border-color: rgba(255, 107, 44, 0.3); color: #ffbb96; }
.notice.err  { background: rgba(255, 90, 90, 0.08); border-color: rgba(255, 90, 90, 0.35); color: #ff9c9c; }
.notice[hidden] { display: none; }

.actions { display: flex; gap: 10px; align-items: center; margin-top: 20px; }
.actions .spacer { flex: 1; }
.due { color: var(--text-dim); font-size: 14px; }
.due b { color: var(--acid); font-family: var(--mono); font-size: 16px; }

/* ----------------------------------------------------------------- board */

.boardhead {
  display: flex; align-items: center; justify-content: space-between;
  margin: 44px 0 12px; gap: 12px;
}
.boardhead .meta { color: var(--muted); font-size: 13.5px; }
.refresh {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  color: var(--text-dim); font-size: 13.5px; font-weight: 500;
}
.refresh:hover { color: var(--text); border-color: var(--acid-deep); }

.board {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden;
}

.row {
  display: grid;
  grid-template-columns: 54px 64px 1fr auto;
  gap: 16px; align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.row:last-child { border-bottom: none; }
.row:hover { background: var(--card-hi); }

/* Top three get a lit frame. */
.row.tier { background: rgba(201, 248, 50, 0.04); border-bottom-color: var(--line); }
.row.tier:hover { background: rgba(201, 248, 50, 0.07); }
.row.tier1 { box-shadow: inset 3px 0 0 var(--acid); }
.row.tier2 { box-shadow: inset 3px 0 0 rgba(201, 248, 50, 0.55); }
.row.tier3 { box-shadow: inset 3px 0 0 rgba(201, 248, 50, 0.3); }

.rank {
  font-family: var(--mono); font-size: 16px; font-weight: 600;
  color: var(--muted); text-align: center;
}
.row.tier .rank {
  background: var(--acid); color: #0a0c05;
  border-radius: 999px; padding: 3px 0; font-weight: 700;
}

.avatar {
  width: 64px; height: 64px; border-radius: 14px;
  object-fit: cover; background: var(--bg-soft);
  display: grid; place-items: center;
  font-weight: 800; font-size: 21px; color: #0a0c05;
  border: 1px solid var(--line); overflow: hidden;
}

.info { min-width: 0; }
.titleline { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.ticker {
  font-family: var(--mono); font-weight: 700; font-size: 16.5px;
  letter-spacing: -0.01em;
}
.row.tier .ticker { color: var(--acid); }
.coinname { color: var(--text-dim); font-size: 14px; }

.chip {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em;
  padding: 3px 8px; border-radius: 6px; text-transform: uppercase;
  border: 1px solid currentColor; opacity: 0.95;
}
.chip[data-chain="solana"]      { color: #b98cff; }
.chip[data-chain="ethereum"]    { color: #8fa2f0; }
.chip[data-chain="base"]        { color: #5b8cff; }
.chip[data-chain="bsc"]         { color: #f0c04b; }
.chip[data-chain="arbitrum"]    { color: #5cc0ff; }
.chip[data-chain="hyperliquid"] { color: #7cf0d4; }

.pitch {
  margin: 5px 0 0; color: var(--text-dim); font-size: 14.5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

.subline {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 8px; font-size: 12.5px; color: var(--muted);
}
.subline .sep { opacity: 0.4; }
.subline b { color: var(--text-dim); font-variant-numeric: tabular-nums; }

.ca {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 12px;
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 2px 8px; border-radius: 6px; color: var(--text-dim);
}
.ca:hover { border-color: var(--acid-deep); color: var(--text); }
.ca.copied { color: var(--acid); border-color: var(--acid-deep); }

.links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.linkbtn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 7px;
  background: var(--bg-soft); border: 1px solid var(--line);
  color: var(--text-dim); font-size: 12.5px; font-weight: 500;
  text-decoration: none;
}
.linkbtn:hover { color: var(--acid); border-color: var(--acid-deep); }

.price { text-align: right; }
.price .amt {
  font-family: var(--mono); font-size: 19px; font-weight: 700;
  color: var(--acid); font-variant-numeric: tabular-nums;
}
.claim {
  display: block; margin-top: 6px;
  background: transparent; border: 1px dashed var(--line);
  color: var(--muted); font-size: 11.5px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  opacity: 0; transition: opacity 0.15s ease;
}
.row:hover .claim { opacity: 1; }
.claim:hover { color: var(--acid); border-color: var(--acid-deep); border-style: solid; }

.empty { padding: 64px 24px; text-align: center; color: var(--muted); }
.empty h3 { color: var(--text); margin: 0 0 8px; }

/* ------------------------------------------------------------ pagination */

.pager { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 28px; }
.pager button {
  min-width: 38px; height: 38px; padding: 0 12px;
  border-radius: 999px; border: 1px solid transparent;
  background: transparent; color: var(--text-dim);
  font-family: var(--mono); font-size: 14px;
}
.pager button:hover:not(:disabled):not(.on) { background: var(--card); color: var(--text); }
.pager button.on { background: var(--acid); color: #0a0c05; font-weight: 700; }
.pager button:disabled { opacity: 0.25; cursor: not-allowed; }

/* ---------------------------------------------------------------- footer */

.foot {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: center; gap: 22px; flex-wrap: wrap;
  color: var(--muted); font-size: 13.5px;
}
.foot a { color: var(--text-dim); text-decoration: none; }
.foot a:hover { color: var(--acid); }

/* --------------------------------------------------------------- article */

.article { max-width: 720px; margin: 0 auto; padding-top: 12px; }
.article h1 { font-size: 34px; letter-spacing: -0.03em; margin: 20px 0 10px; }
.article h2 {
  font-size: 19px; margin: 38px 0 10px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line); color: var(--acid);
}
.article p, .article li { color: var(--text-dim); }
.article li { margin-bottom: 10px; }
.article ul { padding-left: 20px; }
.article strong { color: var(--text); }
.article code {
  font-family: var(--mono); font-size: 13px; background: var(--card);
  border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; color: var(--acid);
}
.back { display: inline-block; margin-top: 18px; color: var(--muted); text-decoration: none; font-size: 14px; }
.back:hover { color: var(--acid); }

/* Success / status screens */
.panel {
  max-width: 560px; margin: 60px auto 0; padding: 40px 34px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; text-align: center;
}
.panel .big {
  font-family: var(--mono); font-size: 58px; font-weight: 800;
  color: var(--acid); line-height: 1; margin: 6px 0 4px;
}
.panel h1 { font-size: 25px; margin: 0 0 8px; }
.panel p { color: var(--text-dim); margin: 0 0 8px; }
.spinner {
  width: 26px; height: 26px; margin: 0 auto 18px;
  border: 2px solid var(--line); border-top-color: var(--acid);
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
  .wrap { padding: 0 14px 60px; }
  .bidbar { flex-direction: column; }
  .bidbar input { border-radius: 12px; }
  .btn { border-radius: 12px; width: 100%; }
  .grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 42px 54px 1fr; row-gap: 10px; padding: 16px; }
  .avatar { width: 54px; height: 54px; font-size: 18px; }
  .price { grid-column: 1 / -1; text-align: left; display: flex; align-items: center; gap: 12px; }
  .claim { opacity: 1; margin-top: 0; }
  .actions { flex-wrap: wrap; }
}

/* ------------------------------------------------------------ stats page */

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 14px; margin-top: 22px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.tile .k { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.tile .v {
  font-family: var(--mono); font-weight: 700; color: var(--acid);
  margin-top: 8px; line-height: 1.15;
  /* Long values like $10,001 must shrink rather than wrap or clip. */
  font-size: clamp(19px, 3.4vw, 28px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tile .s { color: var(--muted); font-size: 12.5px; margin-top: 6px; }

.chartcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; }
.bar { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.bar i {
  display: block; width: 100%; min-height: 2px; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--acid), var(--acid-deep));
  opacity: 0.85; transition: opacity 0.15s ease;
}
.bar:hover i { opacity: 1; }
.axis { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: 12px; font-family: var(--mono); }
.mcap {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--acid); background: rgba(201, 248, 50, 0.09);
  border: 1px solid rgba(201, 248, 50, 0.25);
  padding: 1px 7px; border-radius: 5px;
}
.counter.short { color: var(--hot); }

/* ----------------------------------------------------- rank #1: the champion

   Pulled out of the board entirely and lit up: brighter border, a bigger halo,
   a slow breathing glow and a light sweep across the card. It should read as a
   trophy from across the room, not as the first row of a table. */

.champion { position: relative; margin-bottom: 38px; }
.champion[hidden] { display: none !important; }

.champion .row {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(201, 248, 50, 0.8);
  border-radius: 22px;
  padding: 30px 28px 28px;
  background:
    radial-gradient(130% 170% at 0% 0%, rgba(201, 248, 50, 0.2), transparent 58%),
    linear-gradient(180deg, rgba(201, 248, 50, 0.06), transparent 45%),
    var(--card);
  box-shadow: none;
  animation: champBreathe 3.2s ease-in-out infinite;
}
.champion .row:hover {
  border-color: var(--acid);
  background:
    radial-gradient(130% 170% at 0% 0%, rgba(201, 248, 50, 0.26), transparent 58%),
    linear-gradient(180deg, rgba(201, 248, 50, 0.08), transparent 45%),
    var(--card-hi);
}

@keyframes champBreathe {
  0%, 100% { box-shadow: 0 0 40px -6px rgba(201, 248, 50, 0.42), inset 0 1px 0 rgba(201, 248, 50, 0.25); }
  50%      { box-shadow: 0 0 88px 2px rgba(201, 248, 50, 0.68), inset 0 1px 0 rgba(201, 248, 50, 0.38); }
}

/* Light sweeping across the card every few seconds. */
.champion .row::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 34%, rgba(201, 248, 50, 0.14) 47%, transparent 62%);
  transform: translateX(-110%);
  animation: champSweep 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes champSweep {
  0%, 55% { transform: translateX(-110%); }
  100%    { transform: translateX(110%); }
}

/* Wide halo bleeding out behind the card. */
.champion::before {
  content: "";
  position: absolute; inset: -46px -28px;
  background: radial-gradient(58% 70% at 50% 50%, rgba(201, 248, 50, 0.22), transparent 72%);
  filter: blur(26px);
  pointer-events: none;
  z-index: -1;
}

/* "TOP BID" tag straddling the top border. */
.champion::after {
  content: "TOP BID";
  position: absolute; top: -11px; left: 26px;
  background: var(--acid); color: #0a0c05;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em;
  padding: 4px 12px; border-radius: 999px;
  box-shadow: 0 0 22px rgba(201, 248, 50, 0.7);
  z-index: 2;
}

.champion .rank {
  font-size: 19px;
  box-shadow: 0 0 26px rgba(201, 248, 50, 0.75);
}
.champion .avatar {
  width: 82px; height: 82px;
  box-shadow: 0 0 0 2px rgba(201, 248, 50, 0.5), 0 8px 28px rgba(0, 0, 0, 0.6);
}
.champion .row { grid-template-columns: 60px 82px 1fr auto; }
.champion .ticker { font-size: 21px; text-shadow: 0 0 18px rgba(201, 248, 50, 0.35); }
.champion .price .amt {
  font-size: 30px;
  text-shadow: 0 0 26px rgba(201, 248, 50, 0.7);
}
.champion .pitch { font-size: 15.5px; }
.champion .claim { opacity: 1; border-color: rgba(201, 248, 50, 0.45); color: var(--text-dim); }

.board .row:first-child { border-top: none; }

@media (prefers-reduced-motion: reduce) {
  .champion .row { animation: none; box-shadow: 0 0 60px -4px rgba(201, 248, 50, 0.5); }
  .champion .row::after { animation: none; opacity: 0; }
}

@media (max-width: 720px) {
  .champion { margin-bottom: 30px; }
  .champion .row { grid-template-columns: 42px 64px 1fr; padding: 22px 16px 18px; }
  .champion .avatar { width: 64px; height: 64px; }
  .champion .price .amt { font-size: 24px; }
  .champion .ticker { font-size: 18px; }
  .champion::after { left: 16px; }
}
