/* Sinecura v2 — inner pages (hall, launch, seat, my seats, docs, 404) and the components JS renders
   (wallet picker, wallet menu, result card, coin logos). Tokens and shared parts live in v2.css. */

/* ---------------------------------------------------------------- page frame */
.page { padding: 132px 0 120px; min-height: 80vh; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; margin-bottom: 40px; }
.page-head .lede { margin-top: 18px; }
.muted { color: var(--muted); }
.lnk { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .28); text-underline-offset: 3px; transition: text-decoration-color .3s; }
.lnk:hover { text-decoration-color: var(--fluo); }
.hint { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 12px 0 0; }
.warn { color: var(--text); font-weight: 600; }
code { font: 500 13px/1.4 var(--sans); font-variant-numeric: tabular-nums; }
.spin { display: inline-block; width: 14px; height: 14px; border: 1.5px solid rgba(255, 255, 255, .18); border-top-color: var(--fluo); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) { .page { padding: 104px 0 90px; } .page-head { margin-bottom: 28px; } }

/* "doors open soon" notice */
.prelaunch { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--card); border-radius: var(--r-sm); padding: 14px 14px 14px 20px; margin: 0 0 14px; }
.prelaunch .live { width: 8px; height: 8px; border-radius: 50%; background: var(--fluo); flex: none; box-shadow: 0 0 0 4px rgba(204, 255, 0, .16); }
.prelaunch p { margin: 0; color: var(--muted); flex: 1; min-width: 220px; font-size: 15px; }
.prelaunch b { color: var(--text); font-weight: 600; }

/* coin logo */
.clogo { width: 36px; height: 36px; border-radius: 50%; flex: none; background: var(--card-3) center / cover no-repeat; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--muted); overflow: hidden; }
.clogo.lg { width: 52px; height: 52px; font-size: 13px; }

/* ---------------------------------------------------------------- the Hall */
.hall-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; margin-bottom: 14px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card); }
.seg button { height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; transition: background .3s var(--ease), color .3s var(--ease); }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--text); color: var(--bg); }
.legend { display: flex; gap: 18px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; }
.legend .t { background: var(--fluo); }
.legend .l { background: var(--card); box-shadow: inset 0 0 0 2px #FFFFFF; }
.legend .f { background: rgba(255, 255, 255, .2); }
.hall-meta { font-size: 14px; color: var(--muted); }
.hall-meta b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.hall-wrap { position: relative; border-radius: var(--r); background: radial-gradient(120% 90% at 50% 30%, #1C1B16 0%, #0E0D0A 55%, #050504 100%); }
.hall-wrap canvas { width: 100%; height: min(70vh, 740px); min-height: 380px; display: block; touch-action: manipulation; }
.hall-wrap canvas.pointer { cursor: pointer; }
.tip { position: absolute; z-index: 5; width: 280px; background: rgba(26, 25, 20, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: var(--r-sm); padding: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55), inset 0 0 0 1px var(--line); transform: translate(-50%, calc(-100% - 16px)); }
.tip .no { font-size: 34px; line-height: 1; font-weight: 500; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.tip .row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.tip .row span:first-child { color: var(--muted); }
.tip .coin { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; font-weight: 600; }
.tip .pill { width: 100%; justify-content: center; margin-top: 14px; }
.tip .free-note { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
@media (max-width: 600px) {
  .tip { position: fixed; left: 16px !important; right: 16px; top: auto !important; bottom: 16px; width: auto; transform: none !important; }
  .hall-wrap { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .hall-wrap::-webkit-scrollbar { display: none; }
  .hall-wrap canvas { width: 820px; height: 560px; min-height: 0; }
  .legend { display: none; }
}

/* ---------------------------------------------------------------- launch form */
.launch { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.panel { border-radius: var(--r); background: var(--card); padding: clamp(22px, 3vw, 34px); }
.panel + .panel { margin-top: 12px; }
.panel h3 { margin: 0 0 6px; font-size: 22px; font-weight: 500; letter-spacing: -.015em; }
.panel .sub { margin: 0 0 24px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.field { display: block; margin-bottom: 18px; }
.field > span { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.field > span small { font-size: 13px; color: var(--dim); }
.input { width: 100%; height: 52px; border-radius: 14px; border: 1px solid var(--line); background: #0A0A08; color: var(--text); padding: 0 16px;
  font: 500 16px var(--sans); outline: none; transition: border-color .25s, box-shadow .25s; }
textarea.input { height: 100px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.input:hover { border-color: var(--line-2); }
.input:focus { border-color: var(--fluo); box-shadow: 0 0 0 4px rgba(204, 255, 0, .16); }
.input::placeholder { color: var(--dim); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .row2, .row3 { grid-template-columns: 1fr; gap: 0; } }
.drop { display: flex; align-items: center; gap: 18px; border: 1px dashed var(--line-2); border-radius: 16px; padding: 14px; cursor: pointer; background: #0A0A08; transition: border-color .25s; }
.drop:hover, .drop:focus-visible { border-color: var(--fluo); outline: none; }
.drop .thumb { width: 68px; height: 68px; border-radius: 50%; background: var(--card-2) center / cover no-repeat; flex: none; display: grid; place-items: center; color: var(--muted); }
.drop .thumb svg { width: 22px; height: 22px; }
.drop b { display: block; font-weight: 600; font-size: 15px; }
.drop small { color: var(--muted); font-size: 13.5px; }
.taxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.taxes button { height: 66px; border-radius: 16px; border: 1px solid var(--line); background: #0A0A08; cursor: pointer; font: 600 18px var(--sans); letter-spacing: -.01em;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s; }
.taxes button small { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); margin-top: 2px; letter-spacing: 0; }
.taxes button:hover { border-color: var(--line-2); }
.taxes button.on { background: var(--fluo); color: var(--on-fluo); border-color: var(--fluo); }
.taxes button.on small { color: rgba(0, 0, 0, .6); }
.amt { position: relative; }
.amt .unit { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 15px; font-weight: 500; }
.quick { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.quick button { height: 36px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--card-2); color: var(--muted); cursor: pointer; font: 600 13px var(--sans); transition: background .3s, color .3s; }
.quick button:hover { color: var(--text); }
.quick button.on { background: var(--text); color: var(--bg); }
.sum { margin-top: 24px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.sum div span:first-child { color: var(--muted); }
.sum div.total { font-weight: 600; font-size: 17px; border-bottom: 0; }
.sum div.total span:first-child { color: var(--text); }
.go { width: 100%; justify-content: center; margin-top: 18px; }
.sticky { position: sticky; top: 96px; }
@media (max-width: 900px) {
  .launch { grid-template-columns: 1fr; }
  .launch .sticky { position: static; order: -1; }
}

/* result card after a launch */
.result { border-radius: var(--r); background: var(--card-2); box-shadow: inset 0 0 0 1px rgba(204, 255, 0, .45); padding: 26px; margin-top: 16px; }
.result h3 { margin: 0 0 8px; font-size: 28px; font-weight: 500; letter-spacing: -.025em; }
.result p { color: var(--muted); margin: 0 0 18px; }
.result .links { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- the seat card (launch preview, seat page) */
.seatcard { position: relative; overflow: hidden; border-radius: var(--r); padding: 26px; background: radial-gradient(140% 110% at 0% 0%, #26251E 0%, #15140F 45%, #0E0D0A 100%); box-shadow: inset 0 0 0 1px var(--line); }
.sc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; color: var(--muted); }
.sc-tag { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--text); font-size: 13px; }
.sc-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--fluo); }
.sc-no { display: flex; align-items: flex-start; font-size: clamp(84px, 9vw, 140px); font-weight: 500; letter-spacing: -.06em; line-height: .86; margin: 72px 0 26px; }
.sc-no small { font-size: .28em; letter-spacing: 0; color: var(--muted); margin: .2em .22em 0 0; font-weight: 500; }
.sc-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.sc-bar i { display: block; height: 100%; width: 0; min-width: 6px; background: var(--fluo); border-radius: 4px; transition: width .8s var(--ease); }
.sc-pos { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.sc-foot { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.sc-foot b { display: block; font-size: 17px; font-weight: 600; }
.sc-foot div span { color: var(--muted); font-size: 14px; }
.seatcard.big { padding: 30px; }
.seatcard.big .sc-no { font-size: clamp(110px, 13vw, 210px); margin: 120px 0 30px; }
@media (max-width: 900px) { .sc-no { margin: 40px 0 22px; } .seatcard.big .sc-no { margin: 70px 0 24px; } }

/* ---------------------------------------------------------------- seat page */
.seat-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.seat-page .lede { max-width: 520px; }
.kv { border-top: 1px solid var(--line); }
.kv > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.kv > div > span:first-child { color: var(--muted); }
.kv .big { font-size: 34px; font-weight: 500; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.coins { display: flex; flex-direction: column; gap: 8px; margin: 18px 0 28px; }
.coinrow { display: flex; align-items: center; gap: 14px; border-radius: var(--r-sm); background: var(--card); padding: 12px 12px 12px 14px; }
.coinrow b { display: block; font-weight: 600; }
.coinrow small { color: var(--muted); }
.coinrow .pill { margin-left: auto; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.actions .pill { height: 48px; padding: 0 22px; }
.list-form { display: flex; gap: 8px; margin-top: 12px; }
.list-form .input { height: 52px; }
@media (max-width: 900px) { .seat-page { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- my seats */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.mycard { border-radius: var(--r); background: var(--card); padding: 22px; display: flex; flex-direction: column; gap: 12px; transition: background .3s var(--ease), transform .4s var(--ease); }
a.mycard:hover { background: var(--card-2); transform: translateY(-2px); }
.mycard .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mycard .no { font-size: 44px; line-height: 1; font-weight: 500; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.mycard .kv2 { display: flex; justify-content: space-between; font-size: 14.5px; padding-top: 10px; border-top: 1px solid var(--line); }
.mycard .kv2 span:first-child { color: var(--muted); }
.mycard .pill { justify-content: center; margin-top: 6px; }
.empty { border-radius: var(--r); background: var(--card); padding: clamp(40px, 6vw, 72px) 28px; text-align: center; color: var(--muted); }
.empty p { margin: 0 0 22px; font-size: 17px; }
.empty .pill { margin: 4px; }
.group-title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 56px 0 16px; }

/* ---------------------------------------------------------------- docs */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; }
.docs nav { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 2px; }
.docs nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 15px; transition: color .3s, background .3s; }
.docs nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.docs article { max-width: 760px; }
.docs article section { padding: 0 0 26px; margin-bottom: 30px; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.docs article section:last-child { border-bottom: 0; }
.docs article h2 { font-size: 32px; line-height: 1.1; font-weight: 500; letter-spacing: -.03em; margin: 0 0 18px; }
.docs article p, .docs article li { color: var(--muted); font-size: 16.5px; line-height: 1.6; }
.docs article strong { color: var(--text); font-weight: 600; }
.docs article ul { padding-left: 20px; }
.docs article li::marker { color: var(--fluo); }
.docs table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.docs td { padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.docs td:first-child { color: var(--muted); width: 38%; padding-right: 16px; }
.docs td code { word-break: break-all; color: var(--text); }
@media (max-width: 900px) {
  .docs { grid-template-columns: 1fr; gap: 24px; }
  .docs nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .docs nav a { background: var(--card); padding: 8px 14px; font-size: 14px; }
}

/* ---------------------------------------------------------------- 404 */
.nf .nf-card { border-radius: var(--r); background: radial-gradient(120% 90% at 50% 30%, #1C1B16 0%, #0E0D0A 55%, #050504 100%); padding: clamp(36px, 7vw, 100px) clamp(24px, 5vw, 72px); min-height: 62vh; display: flex; flex-direction: column; justify-content: flex-end; }
.nf .nf-no { font-size: clamp(110px, 20vw, 300px); line-height: .8; font-weight: 700; letter-spacing: -.07em; color: var(--fluo); margin-bottom: 36px; }
.nf .lede { margin-top: 16px; }
.nf .ctas { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 30px; }

/* ---------------------------------------------------------------- wallet picker, wallet menu */
.wpick { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .74); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; padding: 16px; }
.wpick-card { width: min(400px, 100%); background: var(--card-2); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 40px 90px rgba(0, 0, 0, .6), inset 0 0 0 1px var(--line); }
.wpick-card b { font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.wpick-card .hint { margin: 0 0 14px; }
.wpick-list { display: flex; flex-direction: column; gap: 6px; }
.wpick-list button { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--card-3); cursor: pointer; text-align: left; font-weight: 600; transition: background .25s; }
.wpick-list button:hover, .wpick-list button:focus-visible { background: #302F27; outline: none; }
.wpick-list img { width: 28px; height: 28px; border-radius: 8px; }
.wpick-list small { margin-left: auto; color: var(--fluo); font-size: 12px; font-weight: 600; }
.wpick-dot { width: 28px; height: 28px; border-radius: 8px; background: var(--card); }
.wpick-x { margin-top: 10px; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 10px; font-weight: 600; }
.wpick-x:hover { color: var(--text); }
.wmenu { position: fixed; z-index: 60; background: var(--card-2); border-radius: var(--r-sm); padding: 6px; display: flex; flex-direction: column; min-width: 210px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55), inset 0 0 0 1px var(--line); }
.wmenu button { background: none; border: 0; text-align: left; padding: 12px 14px; cursor: pointer; border-radius: 10px; font-size: 14px; font-weight: 500; }
.wmenu button:hover { background: rgba(255, 255, 255, .06); }
.hdr .wallet.on { background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line-2); text-transform: none; letter-spacing: 0; font-variant-numeric: tabular-nums; }

/* footer brand: keep the logo and the word on one line (v2's .foot a { display:block } would stack them) */
.foot a.brand { display: inline-flex; align-items: center; color: var(--text); padding: 0; }
