:root {
  --bg: #08080a;
  --panel: #111114;
  --panel-2: #17171b;
  --line: #24242a;
  --line-2: #2e2e36;
  --text: #f4f4f6;
  --muted: #9a9aa6;
  --faint: #6b6b76;
  --green: #86efac;
  --green-ink: #0b2a17;
  --red: #f0566a;
  --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

.lt-wrap { max-width: 1120px; margin: 0 auto; padding: 28px 16px 64px; }
.lt-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.lt-brand { display: flex; align-items: baseline; gap: 12px; }
.lt-logo { font-weight: 800; letter-spacing: 0.06em; font-size: 22px; color: var(--green); text-shadow: 0 0 18px rgba(134, 239, 172, 0.35); }
.lt-tag { color: var(--muted); font-size: 13px; }
.lt-price { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.lt-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

.lt-hero { margin: 8px 0 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 32px; align-items: center; }
@media (max-width: 880px) { .lt-hero { grid-template-columns: minmax(0, 1fr); gap: 22px; } }
.lt-hero h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.06; letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 650; text-wrap: balance; }
.lt-hero h1 em { font-style: normal; color: var(--green); }
.lt-hero p { margin: 0 0 22px; color: var(--muted); max-width: 520px; font-size: 15px; line-height: 1.55; }
.lt-hero-card { aspect-ratio: 840 / 570; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #0c0c10; box-shadow: 0 30px 80px -30px rgba(82, 111, 255, .35); transform: rotate(1.5deg); }
.lt-hero-card canvas { width: 100%; height: 100%; display: block; }
@media (max-width: 880px) { .lt-hero-card { transform: none; } }

.lt-ca { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 560px; min-height: 46px; padding: 6px 6px 6px 8px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); text-align: left; transition: border-color .15s, background .15s; }
.lt-ca:hover { border-color: #45454f; background: var(--panel-2); }
.lt-ca-tag { flex-shrink: 0; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--green-ink); background: var(--green); border-radius: 6px; padding: 4px 7px; }
.lt-ca-addr { flex: 1; min-width: 0; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-ca-copy { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; background: var(--text); color: #0a0a0c; font-size: 13px; font-weight: 600; }
.lt-ca.done .lt-ca-copy { background: var(--green); color: var(--green-ink); }

.lt-grid { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 880px) { .lt-grid { grid-template-columns: minmax(0, 1fr); } }

.lt-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.lt-card + .lt-card { margin-top: 14px; }
.lt-card h2 { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin: 0 0 14px; }

.lt-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.lt-field label { font-size: 12px; color: var(--muted); font-weight: 500; }
.lt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lt-input {
  height: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2);
  padding: 0 12px; font-size: 15px; outline: none; transition: border-color .15s, background .15s; width: 100%;
}
.lt-input:focus { border-color: #4b4b57; background: #1b1b20; }
.lt-suffix { position: relative; }
.lt-suffix .lt-input { padding-right: 46px; }
.lt-suffix span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--faint); pointer-events: none; }

.lt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 14px; }
.lt-chip {
  height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent;
  font-size: 12.5px; font-weight: 500; color: var(--muted); transition: all .15s;
}
.lt-chip:hover { color: var(--text); border-color: #45454f; }
.lt-chip.on { background: var(--green); color: var(--green-ink); border-color: var(--green); }
.lt-chip.neg:hover { border-color: rgba(240, 86, 106, .6); }

.lt-result { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.lt-result .big { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lt-result .sub { font-size: 13px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.pos { color: var(--green); }
.neg { color: var(--red); }

.lt-pfp { display: flex; align-items: center; gap: 12px; }
.lt-pfp-btn { width: 52px; height: 52px; border-radius: 10px; border: 1px dashed var(--line-2); background: var(--panel-2) center/cover no-repeat; flex-shrink: 0; display: grid; place-items: center; color: var(--faint); font-size: 20px; }
.lt-pfp-btn.has { border-style: solid; }
.lt-link { background: none; border: 0; color: var(--muted); font-size: 12px; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

.lt-tools { display: grid; grid-template-columns: 1fr; gap: 14px; }
.lt-tool { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; text-align: left; padding: 0; transition: border-color .15s, transform .15s; }
.lt-tool:hover { border-color: #3a3a44; transform: translateY(-1px); }
.lt-tool:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.lt-tool canvas, .lt-tool img { width: 100%; height: auto; display: block; aspect-ratio: 3 / 2; object-fit: cover; background: #0c0c0f; }
.lt-tool-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; gap: 10px; }
.lt-tool-name { font-weight: 600; font-size: 15px; }
.lt-tool-hint { font-size: 12px; color: var(--muted); }
.lt-open { height: 32px; padding: 0 14px; border-radius: 999px; background: var(--text); color: #0a0a0c; font-size: 13px; font-weight: 600; border: 0; display: inline-flex; align-items: center; gap: 6px; }

.lt-foot { margin-top: 36px; color: var(--faint); font-size: 12px; text-align: center; line-height: 1.6; }

.lt-toast {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%) translateY(-8px); z-index: 99999;
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px;
  background: #1c1c20; border: 1px solid #2c2c33; color: #f5f5f5; font-size: 12px; font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45); opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
}
.lt-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.lt-toast i { font-size: 15px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* v2: hero spacing, card-type tabs, footer CA */
.lt-hero { margin-bottom: 72px; }
.lt-hero h1 { margin-bottom: 26px; }
.lt-seg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 11px; background: var(--panel-2); border: 1px solid var(--line); }
.lt-seg button { height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; transition: background .15s, color .15s; }
.lt-seg button:hover { color: var(--text); }
.lt-seg button.on { background: #26262d; color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset; }
.lt-foot { display: flex; justify-content: center; }
.lt-ca.small { max-width: 520px; }
@media (max-width: 880px) { .lt-hero { margin-bottom: 44px; } }
.lt-with-btn { display: flex; gap: 8px; }
.lt-dice { flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--muted); font-size: 18px; display: grid; place-items: center; transition: color .15s, border-color .15s; }
.lt-dice:hover { color: var(--text); border-color: #45454f; }
.lt-pfp-btn { background-image: url("../assets/x-default-pfp.png"); }
.lt-pfp-btn { position: relative; overflow: hidden; border-style: solid; background-size: cover; background-position: center; }
.lt-pfp-edit { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .45); color: #fff; font-size: 16px; opacity: 0; transition: opacity .15s; }
.lt-pfp-btn:hover .lt-pfp-edit, .lt-pfp-btn:focus-visible .lt-pfp-edit { opacity: 1; }
.lt-logo-img { display: block; height: 30px; width: auto; border-radius: 3px; }
.lt-x { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font-size: 17px; text-decoration: none; transition: border-color .15s, background .15s; }
.lt-x:hover { border-color: #45454f; background: var(--panel-2); }
.lt-price-note { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11.5px; color: var(--faint); }
/* fit: equal columns, left panels stretch so both sides end level (no sticky scrolling) */
.lt-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.lt-left { display: flex; flex-direction: column; }
.lt-left > .lt-card:last-child { flex: 1; }
.lt-card { padding: 16px; }
.lt-card + .lt-card { margin-top: 12px; }
.lt-field { margin-bottom: 10px; }
.lt-pfp-btn { width: 46px; height: 46px; }


/* mobile */
@media (max-width: 880px) {
  .lt-grid { grid-template-columns: minmax(0, 1fr); }
  .lt-hero-card { order: 2; }
}
@media (max-width: 520px) {
  .lt-wrap { padding: 18px 16px 48px; }
  .lt-top { margin-bottom: 20px; }
  .lt-logo-img { height: 26px; }
  .lt-hero { margin-bottom: 36px; }
  .lt-hero h1 { font-size: 31px; margin-bottom: 18px; }
  .lt-ca { min-height: 44px; padding: 5px 5px 5px 7px; gap: 8px; }
  .lt-ca-addr { font-size: 12px; }
  .lt-ca-copy { padding: 0 10px; }
  .lt-seg button { font-size: 12.5px; height: 34px; }
  .lt-input { font-size: 16px; } /* stops iOS zooming into fields */
  .lt-result .big { font-size: 22px; }
  .lt-chip { height: 32px; }
  .lt-tool-bar { padding: 10px 12px; }
}

/* no rubber-band gap, no sideways scroll, footer sits flush */
html { background: var(--bg); overflow-x: clip; overscroll-behavior: none; }
body { overflow-x: clip; overscroll-behavior: none; }
.lt-wrap { padding-bottom: 28px; min-height: 100dvh; display: flex; flex-direction: column; }
.lt-foot { margin-top: auto; padding-top: 32px; }
@media (max-width: 520px) { .lt-wrap { padding-bottom: 24px; } }
.lt-hero-copy { min-width: 0; }
