:root {
  --bg: #050505;
  --panel: rgba(13, 13, 13, 0.9);
  --panel-2: rgba(18, 18, 18, 0.92);
  --line: rgba(255,255,255,.10);
  --text: #f5f5f5;
  --muted: #8d8d8d;
  --red: #ff2b22;
  --green: #12e32e;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.70), rgba(0,0,0,.88)),
    url("assets/oracle-wide.png") center/cover no-repeat;
  filter: saturate(.86);
  transform: scale(1.035);
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.035), transparent 42%), #0004;
  z-index: -1;
}

.page-shell {
  width: min(1440px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.ambient {
  position: absolute;
  width: 520px;
  height: 520px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -45%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.035), transparent 68%);
  pointer-events: none;
}

.brand { text-align: center; margin-bottom: 20px; }
.brand-kicker {
  font-size: 10px;
  letter-spacing: .42em;
  color: #777;
  font-weight: 800;
}
.brand h1 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 58px);
  line-height: .96;
  letter-spacing: -.055em;
  font-weight: 900;
}
.brand h1 span { color: #e9e9e9; font-weight: 300; }
.ticker {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: .46em;
  color: #a7a7a7;
  font-weight: 800;
}

.oracle-stage {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(360px, 540px) minmax(230px, 1fr);
  align-items: center;
  gap: 32px;
}

.link-stack { display: grid; gap: 16px; }
.oracle-link {
  min-height: 88px;
  padding: 13px 16px 13px 13px;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: white;
  background: linear-gradient(145deg, rgba(18,18,18,.97), rgba(9,9,9,.94));
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(0,0,0,.38);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.oracle-link:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.22);
  background: linear-gradient(145deg, rgba(24,24,24,.99), rgba(10,10,10,.97));
}
.oracle-link img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
  background: #050505;
  border: 1px solid rgba(255,255,255,.1);
}
.oracle-link.pump img { background: #fff; }
.oracle-link .link-copy { min-width: 0; }
.oracle-link small {
  display: block;
  color: #767676;
  font-weight: 800;
  font-size: 9px;
  letter-spacing: .24em;
  margin-bottom: 5px;
}
.oracle-link strong {
  display: block;
  font-size: 16px;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.arrow { color: #777; font-size: 18px; }
.oracle-link.pump:hover { border-color: rgba(18,227,46,.42); }
.oracle-link.dex:hover { border-color: rgba(255,255,255,.32); }
.oracle-link.fomo:hover { border-color: rgba(158,148,255,.34); }

.portrait-wrap { position: relative; }
.portrait-frame {
  aspect-ratio: 1 / 1;
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #050505;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 90px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.035);
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portrait-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 80px rgba(0,0,0,.22);
  pointer-events: none;
}
.candle {
  position: absolute;
  top: -17px;
  width: 9px;
  height: 54px;
  border-radius: 3px;
  z-index: 3;
  box-shadow: 0 0 24px currentColor;
}
.candle::before, .candle::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 14px;
  background: currentColor;
}
.candle::before { top: -11px; }
.candle::after { bottom: -11px; }
.candle-red { left: calc(50% - 22px); color: var(--red); background: var(--red); }
.candle-green { left: calc(50% + 20px); color: var(--green); background: var(--green); height: 72px; top: -30px; }

.contract {
  width: min(780px, 100%);
  margin: 20px auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 11px 12px 11px 16px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 15px;
  background: rgba(5,5,5,.78);
  backdrop-filter: blur(14px);
}
.contract-label { font-size: 9px; letter-spacing: .22em; color: #6f6f6f; font-weight: 900; }
.contract code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #b8b8b8;
  font: 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.contract button {
  border: 1px solid rgba(255,255,255,.12);
  background: #151515;
  color: white;
  border-radius: 10px;
  padding: 10px 13px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
}
.contract button:hover { background: #1e1e1e; }
footer {
  margin-top: 18px;
  text-align: center;
  color: #555;
  letter-spacing: .28em;
  font-size: 9px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .page-shell { width: min(760px, calc(100% - 24px)); padding: 24px 0; }
  .oracle-stage { grid-template-columns: 1fr 1fr; gap: 14px; }
  .portrait-wrap { grid-column: 1 / -1; grid-row: 1; width: min(520px, 100%); margin: 0 auto 4px; }
  .link-stack { grid-row: 2; gap: 12px; }
  .oracle-link { min-height: 78px; grid-template-columns: 50px 1fr auto; border-radius: 17px; }
  .oracle-link img { width: 50px; height: 50px; border-radius: 12px; }
}

@media (max-width: 600px) {
  .page-shell { width: calc(100% - 20px); justify-content: flex-start; }
  .brand { margin: 4px 0 16px; }
  .brand h1 { font-size: 34px; }
  .oracle-stage { display: flex; flex-direction: column; gap: 12px; }
  .portrait-wrap { order: 1; width: 100%; }
  .link-stack { order: 2; width: 100%; }
  .oracle-link { min-height: 72px; }
  .contract { grid-template-columns: 1fr auto; margin-top: 12px; }
  .contract-label { grid-column: 1 / -1; }
  footer { padding-bottom: 10px; }
}
