/* Shared presentation layer. Does not change feeds, addresses or draw behavior. */
body { line-height: 1.6; }
button, input { font: inherit; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
html { scroll-padding-top: 110px; }
.shell { border: 0; padding: 22px 32px 0; }
.pad { padding-left: 0; padding-right: 0; }
section { border: 0; }
a { border: 0; text-underline-offset: 4px; }
a:hover { color: var(--lime); }
h1, h2, h3, h4, h5, h6 { font-family: var(--display); font-weight: 900; letter-spacing: 0; font-synthesis: none; overflow-wrap: anywhere; }
h1 { font-size: clamp(28px, 3vw, 40px); line-height: 1.35; margin-bottom: 16px; }
h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.4; }
h3 { font-size: 19px; line-height: 1.5; }
em { font-style: normal; color: var(--lime); }
h1 em, h2 em { color: var(--lime); }
.lede { font-size: 16px; line-height: 1.75; max-width: 58ch; margin: 0; }
.tag { font-size: 12px; letter-spacing: .08em; margin-bottom: 14px; }
.tag::before { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.head { padding: 34px 0 30px; gap: 36px; }

/* A quiet header with real navigation on narrow screens, too. */
.nav { background: rgb(10 12 14 / 96%); border-bottom: 1px solid var(--line-soft); backdrop-filter: blur(16px); }
.nav-in { padding: 16px 32px; min-height: 84px; gap: 24px; flex-wrap: nowrap; }
.brand { gap: 9px; flex: none; }
.brand img { width: 64px; height: 64px; object-fit: contain; border-radius: 0; image-rendering: auto; }
.brand b { font-family: var(--display); font-size: 24px; line-height: 1.25; letter-spacing: 0; font-weight: 900; font-synthesis: none; }
.nav-links { gap: 5px; font-size: 12px; letter-spacing: .01em; white-space: nowrap; }
.nav-links a { padding: 9px 11px; border-radius: 999px; color: var(--dim); }
.nav-links a:hover { background: var(--panel); color: var(--lime); }
.nav-links a[aria-current="page"] { border: 0; background: var(--accent); color: var(--ink); font-weight: 100; }
/* Reference order: quiet social icon, lime CA action, outlined PONS action. */
.nav-right { gap: 12px; align-items: center; }
.nav-ca-actions { display: flex; align-items: center; gap: 12px; min-width: 0; }
.token-ca-wrap { min-width: 0; }
.token-ca { display: block; max-width: 230px; height: 42px; min-height: 42px; padding: 0 16px; border: 1px solid var(--accent); border-radius: 3px; background: var(--accent); color: var(--ink); font: 100 12px/1.4 var(--mono); letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: none; }
.token-ca:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--ink); }
.token-ca:disabled { opacity: 1; background: var(--panel); color: var(--muted); border-color: var(--line); }
.token-ca-status { border-radius: 3px; background: var(--panel); color: var(--text); box-shadow: 0 8px 24px #00000055; font-size: 13px; }
.nav-social-link { width: 40px; height: 42px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: var(--muted); font-size: 20px; }
.nav-social-link img { width: 24px; height: 24px; }
.nav-social-link:hover { background: var(--accent); color: var(--ink); text-decoration: none; }
.nav-pons-link { width: auto; flex: none; gap: 8px; padding: 0 16px; border-color: var(--line); color: var(--text); font: 100 14px/1 var(--sans); }
.nav-pons-link:hover { border-color: var(--muted); }
.btn { min-height: 42px; padding: 12px 17px; border: 1px solid var(--line); border-radius: 11px; font: 100 14px var(--sans); text-transform: none; letter-spacing: -.01em; justify-content: center; background: var(--panel); transition: background .15s, border-color .15s; }
.btn:hover:not(:disabled) { background: var(--accent-soft); border-color: var(--accent); }
.btn:disabled { opacity: .55; }
.btn-solid { background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 100; }
.btn-solid:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--ink); }
.btn .dot-sq { border-radius: 50%; }
.nav #connectBtn { min-height: 42px; height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--text); box-shadow: none; }
.nav #connectBtn:hover:not(:disabled) { background: var(--panel); border-color: var(--muted); color: var(--text); }

/* Prize cards on the left, a compact fee/draw card on the right. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 355px; align-items: start; gap: 30px; }
.hero-l { padding: 8px 0 0; min-width: 0; }
.hero-r { border: 0; background: transparent; padding: 0; min-width: 0; }
.hero-actions { margin-top: 20px; gap: 8px; }
.hero-actions .btn { font-size: 13px; min-height: 39px; }
.stats { margin-top: 24px; gap: 10px; border: 0; }
.stats > div { border: 0; background: var(--panel); border-radius: 13px; padding: 15px; min-width: 0; }
.stats .k { font-size: 12px; letter-spacing: 0; text-transform: none; }
.stats .v { font-size: 21px; line-height: 1.4; font-weight: 100; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; margin-top: 9px; }
.stats .v .tick { font-size: 12px; letter-spacing: 0; }
.stats #floor { font-size: 16px; }
.console { border: 0; border-radius: 21px; overflow: hidden; background: var(--panel); }
.con-top { padding: 17px 20px; font-size: 12px; letter-spacing: 0; text-transform: none; gap: 12px; align-items: flex-start; }
.con-top > span:first-child { flex: none; }
.con-top #status { text-align: right; font-size: 12px; color: var(--lime); background: var(--accent-soft); border-radius: 7px; padding: 3px 8px; overflow-wrap: anywhere; }
.con-body { padding: 24px 22px 20px; border: 0; text-align: left; }
.fee-hero { border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 23px; }
.fee-hero .potline { display: flex; align-items: flex-start; flex-direction: column; gap: 5px; padding: 0; margin: 10px 0 14px; }
.fee-hero .pot-usd { font-size: clamp(32px, 3.8vw, 44px); font-weight: 100; letter-spacing: -.055em; line-height: 1.1; color: var(--lime); overflow-wrap: anywhere; }
.fee-hero .potline .v { font-size: 18px; line-height: 1.4; letter-spacing: -.025em; color: var(--dim); overflow-wrap: anywhere; }
.potline .u { font-size: 13px; letter-spacing: 0; }
.clock-label { font-size: 13px; text-transform: none; letter-spacing: 0; margin-bottom: 8px; }
.clock { font-family: var(--sans); font-size: 43px; letter-spacing: -.055em; font-weight: 100; font-variant-numeric: tabular-nums; color: var(--text); }
.clock.drawing { font-size: 27px; letter-spacing: -.03em; }
.clock-sub { font-size: 13px; line-height: 1.65; margin-top: 10px; }
.stock-note { color: var(--muted); font-size: 13px; line-height: 1.65; margin-top: 14px; }
.draw-eligible { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 17px 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); font-size: 13px; }
.draw-eligible strong { font-size: 25px; line-height: 1.2; color: var(--lime); font-weight: 100; }
.con-body > a { display: flex; justify-content: center; align-items: center; min-height: 42px; border-radius: 10px; background: var(--accent); color: var(--ink); font-size: 14px; font-weight: 100; margin-top: 16px; }
.con-body > a:hover { background: var(--accent-hover); }
.con-rows { padding: 6px 8px; }
.con-rows > div { font-size: 12px; padding: 12px; gap: 16px; }
.con-rows > div > :last-child { text-align: right; overflow-wrap: anywhere; }
.con-rows .k { font-size: 12px; letter-spacing: 0; text-transform: none; flex: none; }
.bar { height: 3px; }
.bar > i { background: var(--accent); }
.stock-market { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line-soft); }
.stock-market .market-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.stock-market h2 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: 0; margin: 0; }
.market-heading .tag { margin: 0 0 10px; font-size: 12px; letter-spacing: .08em; }
.stock-count { color: var(--ink); flex: none; padding: 8px 11px; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent); font-size: 14px; white-space: nowrap; }
.stock-intro { color: var(--dim); font-size: 16px; line-height: 1.65; margin: 12px 0 20px; }
.stock-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.stock-tile { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 18px; min-width: 0; min-height: 160px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 3px 12px #00000040; transition: border-color .18s, background .18s, box-shadow .18s; }
.stock-tile:hover { background: var(--panel-2); border-color: var(--accent); box-shadow: 0 6px 18px #00000059; }
.stock-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.stock-tile strong { display: block; min-width: 0; min-height: 0; font-family: var(--display); font-size: 22px; font-weight: 900; font-synthesis: none; line-height: 1.4; letter-spacing: 0; margin: 0; color: var(--lime); background: transparent; border: 0; border-radius: 0; overflow-wrap: anywhere; }
.stock-number { color: var(--muted); font: 12px var(--mono); flex: none; }
.stock-name { font-size: 16px; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; margin-bottom: 18px; }
.stock-tile small { display: flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 14px; line-height: 1.4; color: var(--dim); }
.stock-type::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.stock-empty { grid-column: 1 / -1; padding: 24px; border-radius: 16px; background: var(--panel); color: var(--muted); font-size: 16px; }

/* Method, positions and history share the same low-contrast market surfaces. */
.card { border: 0; border-radius: 18px; padding: 24px; min-width: 0; }
.cards { gap: 14px; padding-bottom: 32px; }
.card .step { font-size: 12px; letter-spacing: .03em; color: var(--lime); margin-bottom: 20px; }
.card p { font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.card p + p { margin-top: 14px; }
.card .meta { font-size: 12px; text-transform: none; letter-spacing: 0; flex-wrap: wrap; }
.kv { font-size: 14px; flex-wrap: wrap; }
.kv .k { font-size: 12px; letter-spacing: .02em; }
.big { font-size: 32px; font-weight: 100; overflow-wrap: anywhere; color: var(--lime); }
.big .u { font-size: 13px; font-weight: 100; letter-spacing: 0; line-height: 1.6; }
#play, #method-details { background: var(--bg-alt) !important; }
#play .card { min-height: 275px; }
.integrated-data { padding-bottom: 24px; }
.integrated-data .data-toolbar { font-size: 14px; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.data-toolbar label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.data-toolbar input { width: 16px; height: 16px; margin: 0; }
.integrated-data .data-table { border: 0; border-radius: 16px; background: transparent; padding-bottom: 4px; }
.integrated-data table { border-collapse: separate; border-spacing: 0 8px; }
.integrated-data th { font-size: 12px; font-weight: 100; padding: 12px 16px; letter-spacing: .035em; border: 0; }
.integrated-data td { font-size: 14px; padding: 20px 16px; border: 0; background: var(--panel); }
.integrated-data td:first-child { border-radius: 12px 0 0 12px; }
.integrated-data td:last-child { border-radius: 0 12px 12px 0; }
.integrated-data tr:hover td { background: var(--panel-2); }
.integrated-data td a { color: var(--lime); }
.integrated-data td a:hover { text-decoration: underline; }
.integrated-data .sub { font-size: 12px; line-height: 1.5; }
.integrated-data .badge { display: inline-flex; border: 1px solid var(--line); background: var(--panel-2); border-radius: 8px; padding: 6px 10px; font-size: 12px; font-weight: 100; }
.integrated-data .tx { font-size: 12px; }
.integrated-data .delivery-usd { font-size: 22px; font-weight: 100; color: var(--lime); }
.integrated-data .delivery-quantity, .integrated-data .delivery-usd.unavailable { font-size: 13px; }
.integrated-data > .pad > .muted { font-size: 14px; }
.log-empty { background: var(--panel); border-radius: 14px; font-size: 14px; padding: 32px 24px; }
.source-wallets { gap: 16px; }
.source-wallets a { font-size: 13px; }
.manifesto { color: var(--ink); margin-top: 32px; background: var(--accent); border-radius: 18px; padding: 32px; text-align: left; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.manifesto p { font-size: 16px; line-height: 1.65; margin: 0; max-width: none; letter-spacing: -.01em; }
.manifesto em { color: var(--ink); border-bottom: 1px solid rgb(10 12 14 / 45%); }
footer { padding: 42px 0 24px; margin-top: 24px; border-top: 1px solid var(--line-soft); }
.foot-grid { gap: 36px; }
.foot-grid h4 { font: 900 14px/1.6 var(--display); letter-spacing: 0; text-transform: none; color: var(--text); }
.foot-grid li { font-size: 13px; word-break: normal; overflow-wrap: anywhere; }
.foot-grid p.muted { font-size: 13px !important; }
.foot-note { font-size: 12px; text-transform: none; letter-spacing: 0; margin-top: 26px; }
.toast { background: var(--panel-2); color: var(--text); border-radius: 12px; font-size: 14px; box-shadow: 0 8px 32px #00000066; }
.banner { color: var(--amber); background: rgb(229 187 101 / 12%); border-color: rgb(229 187 101 / 38%); font-size: 13px; border-radius: 12px; }
input[type=number] { border-radius: 9px; font-family: var(--sans); font-size: 16px; }

@media (max-width: 1200px) {
  .nav-in { gap: 14px; flex-wrap: wrap; }
  .nav-links { gap: 2px; }
  .token-ca { max-width: 210px; }
  .nav-right:has(#connectBtn:not([hidden])) { flex-wrap: wrap; justify-content: flex-end; }
  .c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .shell { padding: 18px 24px 0; }
  .nav-in { padding: 12px 24px; }
  .nav-links { display: flex; order: 3; width: 100%; gap: 6px; overflow-x: auto; padding: 2px 0 4px; }
  .nav-links a { flex: none; }
  .nav-right { margin-left: auto; }
  .token-ca { max-width: 280px; }
  .hero { grid-template-columns: minmax(0, 1fr) 315px; gap: 22px; }
  .stats { grid-template-columns: 1fr; gap: 6px; }
  .stats > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 11px 14px; }
  .stats .v { margin: 0; font-size: 18px; text-align: right; }
  .stock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .con-body { padding: 20px 18px; }
}
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .hero-l { display: contents; }
  .play-intro { grid-row: 1; }
  .hero-r { grid-row: 2; border: 0; }
  .stock-market { grid-row: 3; margin-top: 6px; }
  .stock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats > div { display: block; padding: 13px; }
  .stats .v { text-align: left; margin-top: 7px; }
  .head { padding-top: 25px; grid-template-columns: 1fr; gap: 16px; }
  .c3, .c4 { grid-template-columns: 1fr; }
  .manifesto { grid-template-columns: 1fr; gap: 14px; padding: 25px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .shell { padding: 16px 16px 0; }
  .nav-in { padding: 12px 16px; }
  .brand b { font-size: 19px; }
  .brand img { width: 48px; height: 48px; border-radius: 0; }
  .nav-right { gap: 8px; max-width: 100%; }
  .nav-ca-actions { gap: 8px; }
  .token-ca-wrap { min-width: 0; }
  .token-ca { max-width: 100%; padding: 0 10px; }
  .nav-socials { gap: 4px; }
  .nav-social-link { height: 42px; }
  .nav-x-link { width: 32px; }
  .nav-pons-link { padding: 0 12px; }
  .nav-social-link img { width: 22px; height: 22px; }
  .nav-links { gap: 2px; }
  .nav-links a { font-size: 12px; padding: 9px 10px; }
  .hero-actions .btn { flex: 1 1 auto; white-space: normal; }
  .stock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats .k { font-size: 12px; }
  .stats #floor { font-size: 14px; }
  .stats > div { padding: 11px; }
  .stock-market h2 { font-size: 22px; }
  .stock-market .market-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .stock-tile { padding: 14px; min-height: 158px; }
  .stock-tile strong { font-size: 20px; }
  .stock-card-top { gap: 5px; }
  .stock-name { font-size: 14px; }
  .stock-grid { gap: 10px; }
  .market-heading .tag { font-size: 12px; }
}
@media (max-width: 640px) {
  .nav-right { flex: 1 0 100%; max-width: 100%; margin-left: 0; flex-wrap: wrap; }
  .nav-ca-actions { flex: 1 1 100%; width: 100%; }
  .token-ca-wrap { flex: 1; min-width: 0; }
  .token-ca { width: 100%; max-width: 100%; }
}
@media (max-width: 360px) {
  .stock-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
