:root {
  --bg: #120a04;
  --panel: #fbf3e0;
  --ink: #2f2410;
  --ink-soft: #6d5a37;
  --cream: #fff8ea;
  --gold: #f5a623;
  --gold-2: #ffd54a;
  --gold-3: #ffe9a8;
  --gold-deep: #b9770f;
  --line: rgba(180, 140, 60, 0.22);
  --card: rgba(255, 255, 255, 0.7);
  --shadow: 0 24px 60px rgba(120, 80, 20, 0.16);
  --shadow-lg: 0 40px 90px rgba(120, 80, 20, 0.22);
  --radius: 22px;
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* page enter */
@keyframes pagein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
body { animation: pagein .45s ease both; }

/* scroll reveal */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  body, .rv { animation: none; transition: none; opacity: 1; transform: none; }
}
body {
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 620px at 50% -8%, #fff6e0 0%, rgba(255,246,224,0) 62%),
    linear-gradient(180deg, #fdf6e6 0%, #f6e7c6 100%);
  min-height: 100vh; overflow-x: hidden; line-height: 1.58;
}
a { color: inherit; }
code { background: rgba(185,119,15,.14); padding: 1px 6px; border-radius: 6px; font-size: .92em; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 18px;
  padding: 13px clamp(16px, 4vw, 46px);
  background: rgba(253, 246, 230, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; box-shadow: 0 5px 16px rgba(185,119,15,.4); }
.brand-name { font-family: "Fraunces", serif; font-weight: 700; font-size: 23px; letter-spacing: .3px; }
.nav-links { display: flex; gap: 24px; margin-left: 14px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 15px; position: relative; }
.nav-links a:hover { color: var(--gold-deep); }
.nav-links a.active { color: var(--gold-deep); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -18px; height: 3px;
  border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--gold-2), var(--gold)); }

/* PAGE HEADER (inner pages) */
.page-head { max-width: var(--maxw); margin: 0 auto; padding: clamp(44px, 7vw, 78px) 20px 10px; text-align: center; }
.page-title { font-family: "Fraunces", serif; font-weight: 900; font-size: clamp(40px, 7vw, 72px); line-height: 1.02;
  background: linear-gradient(180deg, #7a5410, var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-sub { color: var(--ink-soft); font-size: 18px; margin: 12px auto 0; max-width: 600px; }
.page-actions { margin-top: 24px; }
.section.pt0 { padding-top: 28px; }
.stats-bar.solo { margin-top: 30px; box-shadow: var(--shadow); }
.stats-bar.solo { grid-template-columns: repeat(4, 1fr); }

/* NAV CARDS (home) */
.nav-card { display: block; padding: 30px 26px; text-decoration: none; color: var(--ink); transition: transform .13s ease, border-color .13s ease; }
.nav-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.nav-card h3 { font-family: "Fraunces", serif; font-size: 24px; margin: 12px 0 8px; }
.nav-card p { color: var(--ink-soft); font-size: 15px; }
.card-go { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--gold-deep); }

/* BUTTONS */
.btn {
  font-family: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  border: 1px solid transparent; border-radius: 999px; padding: 11px 22px;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .13s ease, box-shadow .13s ease, background .13s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn-gold { color: #402a06; background: linear-gradient(180deg, var(--gold-2), var(--gold)); box-shadow: 0 12px 28px rgba(245,166,35,.42); }
.btn-gold:hover { box-shadow: 0 16px 36px rgba(245,166,35,.58); }
.btn-glass { color: #402a06; background: rgba(255,255,255,.88); border-color: rgba(255,255,255,.9); backdrop-filter: blur(6px); box-shadow: 0 10px 26px rgba(120,80,20,.18); }
.btn-glass:hover { background: #fff; }
.btn-connect { margin-left: auto; color: #402a06; background: linear-gradient(180deg,#fff,#ffeec2); border-color: var(--line); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.full { grid-column: 1 / -1; width: 100%; }

/* HERO */
.hero {
  position: relative; min-height: 82vh; display: grid; place-items: center;
  text-align: center; padding: 70px 20px 90px; overflow: hidden;
  background-image: url("assets/banner.png");
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 400px at 50% 20%, rgba(255,240,190,.35), rgba(255,240,190,0) 70%),
    linear-gradient(180deg, rgba(60,38,8,.28) 0%, rgba(80,52,12,.30) 45%, rgba(253,246,230,.96) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero-mark { width: 122px; height: 122px; border-radius: 28px; object-fit: cover;
  box-shadow: var(--shadow-lg); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-title { font-family: "Fraunces", serif; font-weight: 900; font-size: clamp(64px, 13vw, 128px);
  line-height: .92; margin-top: 16px; color: #fff;
  text-shadow: 0 6px 30px rgba(120,70,10,.45), 0 1px 0 rgba(255,255,255,.3); }
.hero-tag { font-family: "Fraunces", serif; font-style: italic; font-weight: 500;
  font-size: clamp(20px, 4vw, 30px); color: var(--cream); margin-top: 4px; text-shadow: 0 3px 14px rgba(90,55,8,.5); }
.hero-sub { font-size: clamp(16px, 2.3vw, 19px); color: #4a3a1c; margin: 22px auto 0; max-width: 600px; font-weight: 500; }
.hero-sub strong { color: var(--gold-deep); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* TICKER */
.ticker { background: linear-gradient(90deg, var(--gold-deep), var(--gold)); overflow: hidden; padding: 12px 0; }
.ticker-row { display: flex; align-items: center; gap: 26px; width: max-content;
  animation: marquee 26s linear infinite; }
.ticker-row span { color: #2a1c04; font-family: "Fraunces", serif; font-weight: 700; font-size: 15px; letter-spacing: 1.4px; }
.ticker-row i { width: 7px; height: 7px; border-radius: 50%; background: #2a1c04; opacity: .55; display: inline-block; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* STATS BAR */
.stats-bar { max-width: var(--maxw); margin: 30px auto 0; position: relative; z-index: 5;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow); }
.stat { background: rgba(255,252,244,.92); padding: 20px 14px; text-align: center; }
.stat b { display: block; font-family: "Fraunces", serif; font-weight: 700; font-size: clamp(20px,2.4vw,28px); color: var(--gold-deep); }
.stat span { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .6px; }

/* SECTIONS */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(52px, 8vw, 96px) 20px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.section-title { font-family: "Fraunces", serif; font-weight: 700; font-size: clamp(30px, 5vw, 48px); line-height: 1.05; }
.section-title.center { text-align: center; }
.section-lead { color: var(--ink-soft); font-size: 17px; margin-top: 10px; max-width: 620px; }
.section-lead.center { text-align: center; margin-inline: auto; }

/* CARD base */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(10px); box-shadow: var(--shadow); }

/* BOARD — image-first cards */
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-top: 30px; }
.tok { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  backdrop-filter: blur(10px); box-shadow: var(--shadow); transition: transform .13s ease, border-color .13s ease; }
.tok:hover { transform: translateY(-3px); border-color: var(--gold); }
.tok-img { position: relative; aspect-ratio: 1 / 1; background: linear-gradient(180deg, var(--gold-3), var(--gold-2));
  display: grid; place-items: center; }
.tok-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.tok:hover .tok-img img { transform: scale(1.05); }
.tok-letter { font-family: "Fraunces", serif; font-weight: 700; font-size: 64px; color: #4a3208; }
.tok-img .tok-chg { position: absolute; top: 10px; right: 10px; backdrop-filter: blur(4px); }
.tok-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; }
.tok-name { font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tok-sym { color: var(--ink-soft); font-size: 13px; font-weight: 600; font-family: ui-monospace, monospace; }
.tok-mcrow { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 8px; }
.tok-mc { font-family: "Fraunces", serif; font-weight: 700; font-size: 19px; color: var(--ink); }
.tok-mc i { font-style: normal; font-family: "Manrope", sans-serif; font-weight: 700; font-size: 11px; color: var(--ink-soft); letter-spacing: .4px; }
.tok-age { color: var(--ink-soft); font-size: 12px; }
.tok-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.tok-avatar { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center;
  font-family: "Fraunces", serif; font-weight: 700; font-size: 20px; color: #4a3208; overflow: hidden;
  background: linear-gradient(180deg, var(--gold-3), var(--gold-2)); }
.tok-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tok-addr { color: var(--ink-soft); font-size: 12px; font-family: ui-monospace, monospace; margin-top: 6px; }

.board-empty { grid-column: 1 / -1; text-align: center; padding: 26px 0 8px; }
.board-empty p { color: var(--ink-soft); font-size: 16px; }
.skel { pointer-events: none; }
.skel .tok-avatar, .skel .tok-img, .skel .sk-line { background: linear-gradient(90deg, rgba(212,160,70,.14), rgba(212,160,70,.28), rgba(212,160,70,.14));
  background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skel .tok-avatar { color: transparent; }
.sk-line { height: 12px; border-radius: 6px; margin-top: 8px; }
.sk-line.w1 { width: 60%; } .sk-line.w2 { width: 40%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* LAUNCH */
.launch-wrap { display: grid; grid-template-columns: 1.25fr .9fr; gap: 20px; margin-top: 36px; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 30px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-weight: 700; font-size: 14px; }
.form label.full { grid-column: 1 / -1; }
.form label small { color: var(--ink-soft); font-weight: 500; display: block; margin-top: 2px; }
.form input { font-family: inherit; font-size: 16px; padding: 14px 15px; border-radius: 13px;
  border: 1px solid var(--line); background: rgba(255,255,255,.85); color: var(--ink); }
.form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,166,35,.22); }
.form-msg { text-align: center; font-size: 14px; min-height: 20px; margin: 0; }
.form-msg.err { color: #b3402a; } .form-msg.ok { color: #1f7a3d; }
.banner-note { grid-column: 1 / -1; background: rgba(245,166,35,.14); border: 1px solid var(--line);
  border-radius: 13px; padding: 13px 16px; text-align: center; color: var(--gold-deep); font-weight: 600; }
.launch-side { padding: 28px; }
.launch-side h3 { font-family: "Fraunces", serif; font-size: 22px; margin-bottom: 14px; }
.ticklist { list-style: none; display: grid; gap: 12px; }
.ticklist li { position: relative; padding-left: 28px; font-size: 15px; color: var(--ink); }
.ticklist li::before { content: ""; position: absolute; left: 0; top: 3px; width: 17px; height: 17px; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); box-shadow: inset 0 0 0 4px rgba(255,255,255,.7); }
.side-note { margin-top: 18px; font-size: 13px; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 16px; }

/* STEPS + ECON */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 40px; }
.step { padding: 30px 26px; }
.step-num { font-family: "Fraunces", serif; font-weight: 900; font-size: 34px; color: var(--gold);
  -webkit-text-stroke: 1px var(--gold-deep); }
.step h3 { font-family: "Fraunces", serif; font-size: 24px; margin: 12px 0 8px; }
.step p { color: var(--ink-soft); font-size: 15px; }
.econ-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: 40px; }
.econ { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; text-align: center; backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.econ b { display: block; font-family: "Fraunces", serif; font-size: 32px; color: var(--gold-deep); }
.econ span { color: var(--ink-soft); font-size: 14px; margin-top: 8px; display: block; }

/* FAQ */
.faq { max-width: 820px; }
.qa { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; margin-top: 14px; box-shadow: var(--shadow); }
.qa summary { cursor: pointer; font-weight: 700; font-size: 17px; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-family: "Fraunces", serif; font-size: 24px; color: var(--gold-deep); }
.qa[open] summary::after { content: "–"; }
.qa p { color: var(--ink-soft); padding: 0 0 18px; font-size: 15px; }

/* FOOTER */
.footer { text-align: center; padding: 70px 20px 60px; border-top: 1px solid var(--line); }
.foot-mark { width: 54px; height: 54px; border-radius: 14px; margin-bottom: 12px; box-shadow: var(--shadow); }
.foot-name { font-family: "Fraunces", serif; font-weight: 700; font-size: 26px; }
.foot-tag { font-family: "Fraunces", serif; font-style: italic; color: var(--gold-deep); }
.foot-small { color: var(--ink-soft); font-size: 13px; max-width: 520px; margin: 12px auto 0; }

/* BOARD SUB-NAV (filter tabs + search) */
.board-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.tabs { display: flex; gap: 8px; background: rgba(255,255,255,.6); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px; box-shadow: var(--shadow); }
.tab { font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer; border: none;
  background: transparent; color: var(--ink-soft); padding: 9px 18px; border-radius: 999px; transition: all .12s ease; }
.tab:hover { color: var(--gold-deep); }
.tab.active { color: #402a06; background: linear-gradient(180deg, var(--gold-2), var(--gold)); box-shadow: 0 6px 16px rgba(245,166,35,.4); }
.board-search input { font-family: inherit; font-size: 15px; padding: 12px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.85); color: var(--ink); min-width: 240px; }
.board-search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,166,35,.2); }
.preview-note { margin-top: 16px; font-size: 13px; color: var(--gold-deep); background: rgba(245,166,35,.12);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; text-align: center; }

/* rich token card */
.tok-chg { flex: none; font-weight: 800; font-size: 13px; padding: 3px 9px; border-radius: 999px; }
.tok-chg.up { color: #17703a; background: rgba(240,255,246,.92); }
.tok-chg.down { color: #b3402a; background: rgba(255,243,240,.92); }
.tok-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  color: var(--ink-soft); font-size: 13px; }
.tok-meta b { color: var(--ink); font-weight: 700; }

/* ===== FEATURED (launchpad) ===== */
.featured-wrap { margin-top: 8px; }
.featured { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px;
  position: relative; padding: 40px 26px 22px; border-radius: var(--radius); text-decoration: none; color: var(--ink);
  background: linear-gradient(120deg, rgba(255,235,180,.9), rgba(255,247,225,.9));
  border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.featured:hover { border-color: var(--gold); }
.ft-badge { position: absolute; top: 0; right: 26px; font-size: 11px; font-weight: 800; letter-spacing: .6px;
  text-transform: uppercase; color: #402a06; background: linear-gradient(180deg, var(--gold-2), var(--gold));
  padding: 5px 13px 4px; border-radius: 0 0 10px 10px; }
.ft-id { display: flex; align-items: center; gap: 14px; }
.tok-avatar.lg { width: 58px; height: 58px; border-radius: 16px; font-size: 26px; }
.ft-name { font-family: "Fraunces", serif; font-weight: 700; font-size: 24px; }
.ft-sym { color: var(--gold-deep); font-weight: 700; }
.ft-spark { display: grid; place-items: center; }
.ft-stats { display: flex; gap: 26px; }
.ft-stats span { display: block; color: var(--ink-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.ft-stats b { font-family: "Fraunces", serif; font-size: 20px; }
.ft-stats b.up { color: #17703a; } .ft-stats b.down { color: #b3402a; }

/* ===== CREATE PAGE (ritual) ===== */
.ritual-wrap { position: relative; padding: 46px 20px 90px; overflow: hidden; }
.ritual-sky { position: absolute; left: 0; right: 0; top: 0; height: 430px;
  background: url("assets/banner.png") center/cover; }
.ritual-sky::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(80,52,12,.16) 0%, rgba(253,246,230,.65) 55%, #fdf6e6 96%); }
.ritual-grid { position: relative; max-width: 1020px; margin: 0 auto; display: grid;
  grid-template-columns: 1fr 300px; gap: 44px; align-items: start; }
.ritual-grid > * { min-width: 0; }
.ritual { width: 100%; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 15px;
  background: rgba(255,252,244,.86); backdrop-filter: blur(16px); border: 1px solid var(--line);
  border-radius: 28px; padding: 46px 42px 38px; box-shadow: var(--shadow-lg); }
.ritual .banner-note { width: 100%; }
.up-circle { position: relative; width: 134px; height: 134px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; overflow: visible;
  background: linear-gradient(180deg, var(--gold-3), var(--gold-2));
  box-shadow: 0 16px 44px rgba(245,166,35,.45); transition: transform .16s ease; }
.up-circle:hover { transform: scale(1.05); }
.up-circle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.up-plus { font-size: 46px; font-weight: 300; color: #7a5410; line-height: 1; }
.up-ring { position: absolute; inset: -8px; border-radius: 50%; border: 2px dashed rgba(185,119,15,.5);
  animation: spin 26s linear infinite; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.up-hint { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.in-name { font-family: "Fraunces", serif; font-size: clamp(26px, 4vw, 36px); font-weight: 700; text-align: center;
  border: none; background: transparent; border-bottom: 2px solid var(--line); padding: 6px 10px;
  width: 100%; max-width: 440px; color: var(--ink); }
.in-name::placeholder { color: rgba(109,90,55,.4); }
.in-name:focus { outline: none; border-color: var(--gold); }
.in-sym-wrap { display: flex; align-items: baseline; gap: 2px; font-family: ui-monospace, monospace;
  font-weight: 700; font-size: 20px; color: var(--gold-deep); }
.in-sym { font-family: ui-monospace, monospace; font-size: 20px; font-weight: 700; text-transform: uppercase;
  border: none; background: transparent; border-bottom: 2px solid var(--line); width: 140px; padding: 3px 6px;
  color: var(--gold-deep); }
.in-sym::placeholder { color: rgba(185,119,15,.4); text-transform: none; }
.in-sym:focus { outline: none; border-color: var(--gold); }
.in-line { font-family: inherit; font-size: 14px; text-align: center; border: none; background: transparent;
  border-bottom: 1px solid var(--line); padding: 7px 6px; width: 100%; max-width: 420px; color: var(--ink); }
.in-line:focus { outline: none; border-color: var(--gold); }
.soc-row { display: flex; gap: 10px; width: 100%; max-width: 440px; margin-top: 4px; }
.soc-row input { flex: 1; min-width: 0; font-family: inherit; font-size: 13px; padding: 9px 13px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.8); color: var(--ink); }
.soc-row input:focus { outline: none; border-color: var(--gold); }
.terms-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  font-size: 11px; font-weight: 800; letter-spacing: .6px; color: var(--gold-deep); text-transform: uppercase; margin-top: 8px; }
.terms-row i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold-deep); opacity: .45; }
.gate-btn { width: 100%; max-width: 440px; padding: 16px; font-size: 17px; margin-top: 10px; }
.adv-min { width: 100%; max-width: 440px; text-align: center; }
.adv-min summary { cursor: pointer; font-size: 12px; color: var(--ink-soft); font-weight: 700; list-style: none; }
.adv-min summary::-webkit-details-marker { display: none; }
.adv-min input { width: 100%; margin-top: 8px; font-family: inherit; font-size: 13px; padding: 9px 13px;
  border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.8); color: var(--ink); }
.ritual-side { position: sticky; top: 92px; }
.pv-caption { font-size: 11px; text-transform: uppercase; letter-spacing: 1.6px; color: var(--ink-soft);
  font-weight: 800; margin-bottom: 12px; text-align: center; }
.pv-card { max-width: 280px; margin: 0 auto; }
#pvDesc { font-family: "Manrope", sans-serif; }

/* ===== CREATE PAGE (old grid, kept for shared bits) ===== */
.create-wrap { display: grid; grid-template-columns: 1.3fr .8fr; gap: 20px; align-items: start; margin-top: 34px; }
.create-side { display: grid; gap: 16px; position: sticky; top: 84px; }
.logo-field { display: flex; align-items: center; gap: 16px; }
.logo-pick { width: 84px; height: 84px; flex: none; border-radius: 18px; display: grid; place-items: center; cursor: pointer;
  font-family: "Manrope", sans-serif; font-weight: 700; font-size: 13px; color: #7a5410; overflow: hidden; text-align: center;
  background: linear-gradient(180deg, var(--gold-3), var(--gold-2)); border: 2px dashed rgba(185,119,15,.45);
  transition: border-color .12s ease, transform .12s ease; }
.logo-pick:hover { border-color: var(--gold-deep); transform: translateY(-2px); }
.logo-pick img { width: 100%; height: 100%; object-fit: cover; }
.logo-copy { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.logo-title { font-weight: 700; font-size: 14px; }
.logo-note { font-size: 12px; color: var(--ink-soft); }
.logo-copy input { font-family: inherit; font-size: 15px; padding: 11px 14px; border-radius: 12px; margin-top: 6px;
  border: 1px solid var(--line); background: rgba(255,255,255,.85); color: var(--ink); }
.logo-copy input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,166,35,.2); }
.form textarea { font-family: inherit; font-size: 15px; padding: 13px 15px; border-radius: 13px; resize: vertical;
  border: 1px solid var(--line); background: rgba(255,255,255,.85); color: var(--ink); }
.form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,166,35,.22); }
.adv { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 12px; }
.adv summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--gold-deep); }
.adv label { margin-top: 12px; }
.preview-card { padding: 20px; }
.preview-label { font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--ink-soft); }
.tok.pv { margin-top: 12px; box-shadow: none; padding: 14px; gap: 10px; overflow: visible; }
.tok.pv .tok-head { display: flex; align-items: center; gap: 12px; }
.tok.pv .tok-title { flex: 1; flex-direction: column; align-items: flex-start; gap: 0; }
.tok.pv .tok-meta { border-top: 1px solid var(--line); padding-top: 10px; }
.tok.pv .tok-chg.up { background: rgba(23,112,58,.12); }
.pv-desc { margin-top: 14px; color: var(--ink-soft); font-size: 14px; }
.mini-econ { padding: 8px 20px; }
.me-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.me-row:last-child { border-bottom: none; }
.me-row span { color: var(--ink-soft); }
.me-row b { font-weight: 700; }

/* ===== TOKEN DETAIL PAGE ===== */
.tok-page { max-width: var(--maxw); margin: 0 auto; padding: 26px 20px 40px; }
.back-link { display: inline-block; color: var(--ink-soft); text-decoration: none; font-weight: 600; margin-bottom: 20px; }
.back-link:hover { color: var(--gold-deep); }
.tok-header { display: grid; grid-template-columns: 1fr auto; gap: 16px 20px; align-items: center; padding: 22px 24px; margin-bottom: 18px; }
.tok-id { display: flex; align-items: center; gap: 18px; }
.tok-photo { width: 88px; height: 88px; flex: none; border-radius: 20px; display: grid; place-items: center;
  font-family: "Fraunces", serif; font-weight: 700; font-size: 36px; color: #4a3208; overflow: hidden;
  background: linear-gradient(180deg, var(--gold-3), var(--gold-2));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 10px 22px rgba(185,119,15,.28); }
.tok-photo img { width: 100%; height: 100%; object-fit: cover; }
.tok-h-top { display: flex; align-items: center; gap: 10px; }
.tok-h-top h1 { font-family: "Fraunces", serif; font-weight: 700; font-size: clamp(26px, 4vw, 38px); }
.demo-badge { font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  color: var(--gold-deep); background: rgba(245,166,35,.16); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; }
.tok-h-sym { color: var(--gold-deep); font-weight: 700; font-size: 18px; margin-top: 4px; }
.tok-price { text-align: right; }
.tok-p-val { font-family: "Fraunces", serif; font-weight: 700; font-size: clamp(26px, 4vw, 36px); }
.tok-price .tok-chg { font-size: 15px; margin-top: 4px; display: inline-block; }
.tok-statline { grid-column: 1 / -1; display: flex; gap: 26px; flex-wrap: wrap; padding-top: 16px;
  border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 14px; }
.tok-statline b { color: var(--ink); font-weight: 700; }

.tok-layout { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }
.chart-card { padding: 18px 18px 8px; }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.chart-id { display: flex; align-items: center; gap: 12px; }
.chart-name { font-family: "Fraunces", serif; font-weight: 700; font-size: 20px; }
.chart-name .tok-h-sym { font-size: 14px; }
.tok-photo.sm { width: 40px; height: 40px; border-radius: 12px; font-size: 18px; }

/* token page: chart header + stats + rail */
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.tok-main-col { display: grid; gap: 16px; align-content: start; }
.tchead { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.tchead-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tchead-name { font-family: "Fraunces", serif; font-weight: 700; font-size: 21px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.tchead-sub { color: var(--ink-soft); font-size: 13px; margin-top: 3px; }
.ca-copy { font-size: 12px; color: var(--gold-deep); background: rgba(245,166,35,.12); border: 1px solid var(--line);
  border-radius: 8px; padding: 2px 8px; cursor: pointer; }
.ca-copy:hover { background: rgba(245,166,35,.22); }
.pair-badge { flex: none; font-size: 12px; font-weight: 700; color: var(--ink); background: rgba(255,255,255,.7);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; }
.tstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.tstat { background: rgba(255,252,244,.7); border: 1px solid var(--line); border-radius: 13px; padding: 11px 14px; }
.tstat span { display: block; color: var(--ink-soft); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.tstat b { font-family: "Fraunces", serif; font-size: 19px; }

/* trades table */
.trades-card { padding: 20px 22px; }
.tc-title { font-family: "Fraunces", serif; font-weight: 700; font-size: 19px; margin-bottom: 12px; }
.trades { width: 100%; border-collapse: collapse; font-size: 13px; }
.trades th { text-align: left; color: var(--ink-soft); font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
  padding: 7px 8px; border-bottom: 1px solid var(--line); }
.trades td { padding: 8px; border-bottom: 1px solid rgba(180,140,60,.1); }
.trades tr:last-child td { border-bottom: none; }
.trades .buy { color: #17703a; font-weight: 700; }
.trades .sell { color: #b3402a; font-weight: 700; }

/* side boxes */
.sidebox { padding: 18px 20px; }
.sb-head { font-family: "Fraunces", serif; font-weight: 700; font-size: 17px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sb-note { font-family: "Manrope", sans-serif; font-size: 12px; font-weight: 700; color: var(--gold-deep); }
.sb-sub { color: var(--ink-soft); font-size: 13px; margin-top: 6px; }
.sb-rows { display: grid; gap: 0; margin-top: 10px; }
.sb-rows > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0;
  border-bottom: 1px solid rgba(180,140,60,.12); font-size: 13px; }
.sb-rows > div:last-child { border-bottom: none; }
.sb-rows span { color: var(--ink-soft); }
.sb-rows b { font-weight: 700; text-align: right; }
.holders { display: grid; gap: 9px; margin-top: 12px; }
.holder { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 10px; font-size: 12px; }
.holder span { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.holder b { font-weight: 700; }
.hbar { height: 7px; border-radius: 4px; background: rgba(180,140,60,.14); overflow: hidden; }
.hbar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--gold-2), var(--gold)); }

/* side rail: token info box + trade */
.tok-side { display: grid; gap: 16px; align-content: start; }
.idbox { padding: 20px 22px; }
.idbox-top { display: flex; align-items: center; gap: 13px; }
.idbox-top .tok-photo { width: 54px; height: 54px; font-size: 24px; border-radius: 15px; }
.idbox-name .tok-h-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.idbox-name h1 { font-family: "Fraunces", serif; font-weight: 700; font-size: 21px; }
.idbox-price { display: flex; align-items: baseline; gap: 12px; margin: 16px 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.idbox-price .tok-p-val { font-family: "Fraunces", serif; font-weight: 700; font-size: 30px; }
.idbox-price .tok-chg { font-size: 15px; }
.idbox-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.idbox-stats span { display: block; color: var(--ink-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.idbox-stats b { font-family: "Fraunces", serif; font-size: 19px; }
.tf, .trade-tabs { display: inline-flex; gap: 4px; background: rgba(255,255,255,.6); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.tf-btn { font-family: inherit; font-weight: 700; font-size: 13px; cursor: pointer; border: none; background: transparent;
  color: var(--ink-soft); padding: 6px 14px; border-radius: 999px; }
.tf-btn.active { color: #402a06; background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
.chart { width: 100%; height: 360px; }

.trade-card { padding: 20px; }
.trade-tabs { display: flex; width: 100%; margin-bottom: 16px; }
.trade-tab { flex: 1; font-family: inherit; font-weight: 800; font-size: 15px; cursor: pointer; border: none;
  background: transparent; color: var(--ink-soft); padding: 11px; border-radius: 999px; }
.trade-tab.active { color: #17542c; background: rgba(23,163,74,.16); }
.trade-tab[data-side="sell"].active { color: #7a2a12; background: rgba(194,65,12,.16); }
.trade-label { display: grid; grid-template-columns: 1fr auto; gap: 8px 0; font-weight: 700; font-size: 14px; align-items: center; }
.pay-cur { color: var(--gold-deep); font-weight: 800; }
.trade-label input { grid-column: 1 / -1; font-family: inherit; font-size: 22px; padding: 14px 16px; border-radius: 13px;
  border: 1px solid var(--line); background: rgba(255,255,255,.85); color: var(--ink); }
.trade-label input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,166,35,.2); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.quick button { font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer; padding: 9px 0;
  border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.7); color: var(--ink); }
.quick button:hover { border-color: var(--gold); }
.trade-out { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--ink-soft);
  padding: 12px 4px; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); margin-bottom: 16px; }
.trade-out b { font-family: "Fraunces", serif; font-size: 18px; color: var(--ink); }
.btn-gold.sell { background: linear-gradient(180deg, #ff9a6b, #e0561f); color: #fff; box-shadow: 0 12px 28px rgba(194,65,12,.3); }
.trade-note { font-size: 12px; color: var(--ink-soft); text-align: center; margin-top: 12px; }
.trade-note.flash { color: var(--gold-deep); font-weight: 700; }

@media (max-width: 860px) {
  .tok-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .chart-id { display: none; }              /* name shown in the info box below the chart */
  .chart-head { justify-content: flex-end; }
  .chart { height: 260px; }
}

@media (max-width: 860px) {
  .launch-wrap { grid-template-columns: 1fr; }
  .create-wrap { grid-template-columns: 1fr; }
  .create-side { position: static; }
  .ritual-grid { grid-template-columns: 1fr; gap: 30px; }
  .ritual { padding: 34px 22px 30px; }
  .ritual-side { position: static; }
  .stats-bar, .stats-bar.solo { grid-template-columns: repeat(2, 1fr); }
  .featured { grid-template-columns: 1fr; gap: 16px; }
  .ft-spark { justify-items: start; }
  .ft-stats { gap: 22px; }
}
@media (max-width: 640px) {
  /* keep the navbar visible on phones: links wrap to a scrollable second row */
  .nav { flex-wrap: wrap; row-gap: 8px; }
  .brand { order: 1; }
  .btn-connect { order: 2; }
  .nav-links { order: 3; width: 100%; margin: 0; gap: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding-bottom: 4px; justify-content: flex-start; }
  .nav-links a.active::after { bottom: -4px; }
  .form { grid-template-columns: 1fr; }
  .hero { min-height: 72vh; }
  .board-search input { min-width: 0; width: 100%; }
  .board-search { width: 100%; }
}
