/* ---------- Scroll progress ---------- */
#progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%; z-index: 60;
  background: linear-gradient(90deg, var(--gold), var(--sun) 60%, var(--ember));
  box-shadow: 0 0 12px rgba(255, 138, 61, .7);
  transition: width .1s linear;
}

/* ---------- Sunset countdown ---------- */
.sunset-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  max-width: 860px; margin: 46px auto 0;
}
@media (max-width: 700px) { .sunset-strip { grid-template-columns: 1fr; gap: 12px; } }
.sunset-cell {
  text-align: center; padding: 26px 18px; border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 138, 61, .07), rgba(255, 255, 255, .01));
}
.sunset-cell .sv {
  font-family: "Cormorant Garamond", serif; font-size: 2.5rem; line-height: 1;
  color: var(--gold); font-variant-numeric: tabular-nums;
}
.sunset-cell .sl {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-dim); margin-top: 10px;
}
.geo-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 26px;
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03); color: var(--ink-dim);
  font-size: 13.5px; font-family: inherit; cursor: pointer;
  transition: color .25s, border-color .25s, transform .25s var(--ease);
}
.geo-btn:hover { color: var(--ink); border-color: var(--gold); transform: translateY(-2px); }

/* ---------- Sheep Oracle ---------- */
.oracle-shell { max-width: 720px; margin: 0 auto; text-align: center; }
.oracle-ring {
  position: relative; width: 132px; height: 132px; margin: 0 auto 32px;
  border-radius: 50%; overflow: hidden; border: 1px solid rgba(255, 209, 102, .35);
  box-shadow: 0 0 60px rgba(255, 138, 61, .28);
}
.oracle-ring img { width: 100%; height: 100%; object-fit: cover; }
.oracle-ring.thinking { animation: oracleGlow 1.1s ease-in-out infinite; }
@keyframes oracleGlow {
  0%, 100% { box-shadow: 0 0 40px rgba(255, 138, 61, .25); }
  50%      { box-shadow: 0 0 80px rgba(255, 209, 102, .65); }
}
.oracle-form { display: flex; gap: 10px; max-width: 560px; margin: 0 auto; }
@media (max-width: 560px) { .oracle-form { flex-direction: column; } }
.oracle-form input {
  flex: 1; padding: 15px 22px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
  color: var(--ink); font-family: inherit; font-size: 15px; outline: none;
  transition: border-color .25s;
}
.oracle-form input::placeholder { color: rgba(183, 168, 148, .7); }
.oracle-form input:focus { border-color: var(--gold); }
.oracle-form button {
  padding: 15px 30px; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(120deg, var(--gold), var(--sun) 55%, var(--ember));
  color: #1a0e08; font-family: inherit; font-weight: 600; font-size: 15px;
  transition: transform .25s var(--ease), box-shadow .25s;
  box-shadow: 0 8px 24px rgba(224, 73, 47, .32);
}
.oracle-form button:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(224, 73, 47, .48); }
.oracle-answer {
  margin-top: 36px; min-height: 92px;
  font-family: "Cormorant Garamond", serif; font-style: italic;
  font-size: clamp(1.35rem, 3vw, 1.95rem); line-height: 1.4; color: var(--ink);
  opacity: 0; transform: translateY(12px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.oracle-answer.in { opacity: 1; transform: none; }
.oracle-answer .oa-src { display: block; margin-top: 14px; font-style: normal;
  font-family: "Inter", sans-serif; font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold); }
.oracle-share {
  margin-top: 8px; opacity: 0; pointer-events: none; transition: opacity .5s;
  display: inline-flex; gap: 10px;
}
.oracle-share.in { opacity: 1; pointer-events: auto; }
.oracle-share button {
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03); color: var(--ink-dim);
  font-family: inherit; font-size: 13px; cursor: pointer;
  transition: color .25s, border-color .25s;
}
.oracle-share button:hover { color: var(--ink); border-color: var(--gold); }

/* ---------- Meme Forge ---------- */
.forge-grid { display: grid; grid-template-columns: 1fr 300px; gap: 26px; align-items: start; }
@media (max-width: 880px) { .forge-grid { grid-template-columns: 1fr; } }
.forge-stage {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 26px 60px rgba(0, 0, 0, .45);
  background: linear-gradient(180deg, #16111f, #2a1d3a);
}
#memeCanvas { display: block; width: 100%; height: auto; cursor: grab; touch-action: none; }
#memeCanvas:active { cursor: grabbing; }
.forge-panel { display: flex; flex-direction: column; gap: 14px; }
.forge-field label {
  display: block; font-size: 11.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-dim); margin-bottom: 7px;
}
.forge-field input[type="text"] {
  width: 100%; padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
  color: var(--ink); font-family: inherit; font-size: 14px; outline: none;
}
.forge-field input[type="text"]:focus { border-color: var(--gold); }
.forge-field input[type="range"] { width: 100%; accent-color: var(--sun); }
.forge-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.forge-btn {
  padding: 13px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03); color: var(--ink);
  font-family: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  text-align: center; transition: border-color .25s, transform .25s var(--ease);
}
.forge-btn:hover { border-color: var(--gold); transform: translateY(-2px); }
.forge-btn.primary {
  border: 0; color: #1a0e08; font-weight: 600;
  background: linear-gradient(120deg, var(--gold), var(--sun) 55%, var(--ember));
  box-shadow: 0 8px 24px rgba(224, 73, 47, .3);
}
.forge-hint { font-size: 12.5px; color: var(--ink-dim); line-height: 1.5; }
.forge-presets { display: flex; gap: 8px; flex-wrap: wrap; }
.forge-presets button {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03); color: var(--ink-dim);
  font-family: inherit; font-size: 12.5px; cursor: pointer; transition: color .2s, border-color .2s;
}
.forge-presets button:hover { color: var(--ink); border-color: var(--gold); }

/* ---------- Time-of-day phase tinting ---------- */
:root[data-phase="night"] { --night: #0d0a17; --night-2: #161226; --sun: #ff9d5c; --gold: #ffd98c; }
:root[data-phase="dawn"]  { --night: #16111f; --night-2: #241a30; --sun: #ff9a6b; --gold: #ffd9a0; }
:root[data-phase="day"]   { --night: #14121f; --night-2: #1f1a30; --sun: #ffa24d; --gold: #ffdc85; }
:root[data-phase="dusk"]  { --night: #150f1e; --night-2: #1f1730; --sun: #ff8a3d; --gold: #ffd166; }
.phase-chip {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px;
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); font-size: 12.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-dim);
}
.phase-chip b { color: var(--gold); font-weight: 600; letter-spacing: .1em; }

/* ---------- The Path (roadmap) ---------- */
.path-list { max-width: 760px; margin: 0 auto; position: relative; }
.path-list::before {
  content: ""; position: absolute; left: 21px; top: 14px; bottom: 14px; width: 1px;
  background: linear-gradient(180deg, var(--gold), var(--sun) 45%, rgba(224,73,47,.12));
}
@media (max-width: 620px) { .path-list::before { left: 17px; } }
.path-step { position: relative; padding: 0 0 46px 66px; }
.path-step:last-child { padding-bottom: 0; }
@media (max-width: 620px) { .path-step { padding-left: 54px; } }
.path-dot {
  position: absolute; left: 10px; top: 4px; width: 23px; height: 23px; border-radius: 50%;
  background: var(--night); border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--gold); font-weight: 600;
}
@media (max-width: 620px) { .path-dot { left: 6px; } }
.path-step.done .path-dot { background: linear-gradient(120deg, var(--gold), var(--ember)); color: #1a0e08; border: 0; }
.path-step h3 { font-family: "Cormorant Garamond", serif; font-size: 1.65rem; font-weight: 500; margin-bottom: 8px; }
.path-step p { color: var(--ink-dim); font-size: 1.02rem; }
.path-step .ptag {
  display: inline-block; margin-bottom: 10px; font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--sun);
}

/* ---------- FAQ (native details, no JS) ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 26px 44px 26px 0; position: relative;
  font-family: "Cormorant Garamond", serif; font-size: 1.45rem; color: var(--ink);
  transition: color .25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold); }
.faq-item summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: "Inter", sans-serif; font-size: 1.5rem; color: var(--sun); transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .faq-a { padding: 0 44px 26px 0; color: var(--ink-dim); font-size: 1.02rem; }

/* ---------- Downloads ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 940px; margin: 0 auto; }
@media (max-width: 820px) { .dl-grid { grid-template-columns: 1fr; } }
.dl-card {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,209,102,.05), rgba(255,255,255,.01));
  display: flex; flex-direction: column; transition: transform .3s var(--ease), border-color .3s;
}
.dl-card:hover { transform: translateY(-5px); border-color: rgba(255,209,102,.42); }
.dl-thumb { aspect-ratio: 16/10; overflow: hidden; background: #1a1330; }
.dl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dl-thumb.contain { display: flex; align-items: center; justify-content: center; padding: 14px; }
.dl-thumb.contain img { width: auto; height: 100%; object-fit: contain; }
.dl-body { padding: 22px 24px 26px; }
.dl-body h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 5px; }
.dl-body p { color: var(--ink-dim); font-size: .92rem; margin-bottom: 16px; }
.dl-body a {
  display: inline-block; padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; color: var(--ink);
  transition: border-color .25s, transform .25s var(--ease);
}
.dl-body a:hover { border-color: var(--gold); transform: translateY(-2px); }

/* ---------- Mobile nav strip ---------- */
@media (max-width: 720px) {
  header.nav { padding: 10px 14px; gap: 10px; }
  .nav-links { gap: 14px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links .hide-sm { display: inline-block; white-space: nowrap; font-size: 13px; }
  .nav-cta { flex: none; padding: 8px 15px; font-size: 13px; }
  .brand span:last-child { font-size: 14px; }
}

/* ---------- Easter egg stampede ---------- */
.stampede { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.stampede img {
  position: absolute; height: 76px; width: auto;
  animation: runAcross linear forwards;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.5));
}
@keyframes runAcross {
  from { transform: translateX(-140px) scaleX(-1); }
  to   { transform: translateX(105vw) scaleX(-1); }
}

/* ---------- Live token ticker ---------- */
.ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255,138,61,.08), rgba(255,209,102,.04) 50%, rgba(255,138,61,.08));
  backdrop-filter: blur(8px);
}
.ticker-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap;
}
.tk { display: flex; flex-direction: column; gap: 3px; min-width: 88px; }
.tk .tl { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-dim); }
.tk .tv {
  font-family: "Cormorant Garamond", serif; font-size: 1.55rem; line-height: 1;
  color: var(--gold); font-variant-numeric: tabular-nums;
}
.tk .tv.up { color: #9bcf6a; } .tk .tv.down { color: #e0492f; }
.tk-cta {
  flex-direction: row; align-items: center; gap: 8px; min-width: 0;
  padding: 11px 22px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: linear-gradient(120deg, var(--gold), var(--sun) 55%, var(--ember));
  color: #1a0e08; box-shadow: 0 6px 20px rgba(224,73,47,.3);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.tk-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(224,73,47,.46); }
.tk-live { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-dim); }
@media (max-width: 760px) {
  .ticker-inner { gap: 16px 22px; justify-content: flex-start; }
  .tk { min-width: 74px; }
  .tk .tv { font-size: 1.3rem; }
  .tk-cta { width: 100%; justify-content: center; }
}
