:root {
  color-scheme: dark;
  --bg: #03090a;
  --panel: #071113;
  --panel-2: #091719;
  --line: #155b59;
  --line-soft: rgba(37, 198, 187, 0.2);
  --cyan: #33e6dc;
  --cyan-soft: #8eb9b5;
  --yellow: #e9f541;
  --white: #f2f5ed;
  --muted: #76918f;
  --red: #ff5b58;
  --green: #72f58f;
  --max: 1500px;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--white);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(31, 140, 134, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 140, 134, 0.09) 1px, transparent 1px);
  background-size: 52px 52px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: 0;
}

button, input, select { font: inherit; letter-spacing: 0; }
button { color: inherit; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.world-contracts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 24px; margin: 0 0 24px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contract-address-row { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 40px 40px; align-items: center; gap: 8px; }
.contract-address-row > span { grid-column: 1 / -1; color: var(--cyan); font-size: 11px; }
.contract-address-row code { min-width: 0; color: var(--white); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; user-select: all; }
.contract-source-status { grid-column: 1 / -1; min-height: 16px; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 11px; line-height: 1.5; color: var(--cyan-soft); }
.contract-source-status a { color: var(--cyan); text-decoration: underline; }
.contract-source-status a[hidden] { display: none; }
.contract-icon-button { width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0; color: var(--cyan); border: 1px solid var(--line); background: var(--panel); cursor: pointer; }
.contract-icon-button:hover, .contract-icon-button:focus-visible { color: var(--yellow); border-color: var(--cyan); }
.contract-icon-button:disabled { opacity: .4; cursor: not-allowed; }
.contract-icon-button[hidden] { display: none; }
.contract-icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#contractCopyStatus { grid-column: 1 / -1; min-height: 16px; margin: 0; color: var(--cyan-soft); font-size: 11px; }
.scanlines { position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: 0.16; background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,0.035) 3px 4px); }
.app-header { min-height: 82px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 12px max(24px, calc((100vw - var(--max)) / 2)); border-bottom: 1px solid var(--line); background: rgba(3, 9, 10, 0.95); position: sticky; top: 0; z-index: 15; }
.brand { display: flex; align-items: center; gap: 13px; color: var(--white); text-decoration: none; }
.brand img { width: 42px; height: 42px; object-fit: cover; border: 1px solid var(--line); }
.brand span { display: grid; gap: 4px; }
.brand strong { font-size: 17px; }
.brand small, .network, .eyebrow, .panel-head span, .metric-band span, .phase-block span, .quote span, footer { color: var(--cyan); font-size: 11px; }
.header-status { min-width: 250px; display: grid; justify-items: center; gap: 7px; }
.network { display: flex; align-items: center; gap: 9px; color: var(--cyan-soft); }
.network i, .wallet-button > i { width: 8px; height: 8px; flex: 0 0 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 8px var(--green); }
.network i.offline, .wallet-button > i.offline { background: var(--red); box-shadow: 0 0 8px var(--red); }
.network b { color: var(--yellow); }
.action-status { display: flex; align-items: center; gap: 8px; color: var(--yellow); font-size: 9px; text-transform: uppercase; }
.action-status[hidden] { display: none; }
.action-status i { width: 7px; height: 7px; border: 1px solid var(--yellow); animation: pending-pulse 1s steps(2, end) infinite; }
body.action-pending button { cursor: wait; }
@keyframes pending-pulse { 50% { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); } }
.wallet-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.wallet-button { min-height: 42px; padding: 0 15px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--cyan); }
.wallet-copy { min-width: 0; display: grid; gap: 3px; text-align: left; }
.wallet-copy b, .wallet-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-copy small { color: var(--muted); font-size: 9px; }
.section-navigation { max-width: var(--max); margin: 0 auto; padding: 18px 24px 0; display: flex; align-items: stretch; gap: 18px; }
.tabs { min-width: 0; display: flex; flex: 1 1 auto; gap: 0; overflow-x: auto; }
.tab { min-width: 150px; min-height: 46px; padding: 0 18px; border: 1px solid var(--line-soft); background: rgba(3, 9, 10, 0.88); color: var(--muted); text-transform: uppercase; cursor: pointer; }
.tab.active { border-color: var(--cyan); color: var(--yellow); background: var(--panel-2); }
.tab:disabled { opacity: .32; cursor: not-allowed; }
.tab b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 8px; border: 1px solid var(--line); color: var(--cyan); font-size: 10px; }
.hall-nav-button { flex: 0 0 auto; min-width: 184px; border-color: var(--line); color: var(--cyan); background: rgba(7, 17, 19, .96); }
.hall-nav-button > span { margin-right: 8px; color: var(--yellow); font-size: 16px; }
.protocol-bar { max-width: calc(var(--max) - 48px); min-height: 64px; margin: 12px auto 0; padding: 10px 14px; display: grid; grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.2fr) auto auto; align-items: center; gap: 12px; border: 1px solid var(--line); background: rgba(7, 17, 19, .94); }
.protocol-bar[hidden], .tab[hidden] { display: none; }
.protocol-bar > div, .protocol-bar label { min-width: 0; display: grid; gap: 5px; }
.protocol-bar span { color: var(--muted); font-size: 9px; }
.protocol-bar strong { overflow: hidden; color: var(--cyan); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.protocol-bar select, .fusion-selects select { width: 100%; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); outline: 0; background: #020708; color: var(--white); }
.protocol-link { color: var(--cyan); font-size: 11px; text-decoration: none; }
main { max-width: var(--max); margin: 0 auto; padding: 42px 24px 64px; }
.view { display: none; }
.view.active { display: block; }
.create-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr); gap: 22px; margin-top: 24px; }
.stock-selector-panel { grid-row: span 3; }
.asset-toolbar { display: grid; grid-template-columns: 1fr 150px; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
.asset-toolbar label, .form-grid label { display: grid; gap: 8px; }
.asset-toolbar label span, .form-grid label > span, .create-summary span, .launch-checks span { color: var(--muted); font-size: 10px; }
.asset-toolbar input, .form-grid input { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); outline: 0; background: #020708; color: var(--white); }
.asset-toolbar input:focus, .form-grid input:focus { border-color: var(--cyan); }
.form-grid input:disabled { color: var(--muted); opacity: 1; }
.selected-asset { display: grid; align-content: center; gap: 6px; padding: 10px 14px; border-left: 3px solid var(--yellow); background: var(--panel-2); }
.selected-asset span { color: var(--muted); font-size: 10px; }
.selected-asset strong { color: var(--yellow); font-size: 20px; }
.selected-asset small { color: var(--cyan-soft); font-size: 9px; overflow-wrap: anywhere; }
.stock-grid { max-height: 550px; overflow: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 18px 20px; }
.stock-option { min-height: 68px; display: grid; align-content: center; gap: 5px; padding: 10px 12px; border: 1px solid var(--line-soft); background: #050c0d; text-align: left; cursor: pointer; }
.stock-option:hover { border-color: var(--cyan); }
.stock-option.active { border-color: var(--yellow); background: #111a14; }
.stock-option strong { color: var(--white); font-size: 15px; }
.stock-option.active strong { color: var(--yellow); }
.stock-option small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stock-option em { color: var(--cyan-soft); font-size: 9px; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stock-option.has-balance em { color: var(--green); }
.asset-note { margin: 0; padding: 14px 20px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 10px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px; }
.input-suffix { display: grid; grid-template-columns: 1fr auto; border: 1px solid var(--line); background: #020708; }
.input-suffix input { border: 0; }
.input-suffix b { min-width: 74px; display: grid; place-items: center; padding: 0 10px; border-left: 1px solid var(--line); color: var(--cyan); }
.create-summary { display: grid; gap: 7px; margin: 0 20px 20px; padding: 16px; border-left: 3px solid var(--cyan); background: var(--panel-2); }
.create-summary strong { color: var(--yellow); font-size: 21px; }
.create-summary small { color: var(--muted); }
.create-fee-panel { grid-column: 2; }
.create-fee-panel .claim-all { margin: 0 20px; width: calc(100% - 40px); }
.create-fee-panel > .inline-message { margin: 12px 20px 18px; }
.visual-seed-panel { min-width: 0; }
.visual-seed-upload { min-height: 190px; margin: 20px; display: grid; place-items: center; overflow: hidden; border: 1px dashed var(--line); background: #020708; cursor: pointer; }
.visual-seed-upload:hover { border-color: var(--cyan); }
.visual-seed-upload img { width: 100%; height: 190px; object-fit: contain; background: #020708; }
.visual-seed-upload > span { display: grid; gap: 9px; color: var(--cyan); text-align: center; }
.visual-seed-upload > span[hidden] { display: none; }
.visual-seed-upload small { color: var(--muted); font-size: 9px; }
.seed-hash-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0 20px 20px; border: 1px solid var(--line-soft); }
.seed-hash-grid > div { min-width: 0; display: grid; gap: 7px; padding: 10px 12px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.seed-hash-grid > div:nth-child(even) { border-right: 0; }
.seed-hash-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
.seed-hash-grid span { color: var(--muted); font-size: 9px; }
.seed-hash-grid code { overflow: hidden; color: var(--cyan-soft); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.launch-checks { display: grid; grid-template-columns: 1fr 1fr; margin: 0 20px 20px; border: 1px solid var(--line-soft); }
.launch-checks div { min-height: 66px; display: grid; align-content: center; gap: 7px; padding: 10px 12px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.launch-checks div:nth-child(even) { border-right: 0; }
.launch-checks div:nth-last-child(-n+2) { border-bottom: 0; }
.launch-checks strong { color: var(--cyan); font-size: 11px; overflow-wrap: anywhere; }
.difficulty-segments { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line-soft); }
.difficulty-segments button { min-height: 76px; display: grid; place-content: center; gap: 7px; border: 0; border-right: 1px solid var(--line-soft); background: transparent; color: var(--muted); cursor: pointer; }
.difficulty-segments button:last-child { border-right: 0; }
.difficulty-segments button b { color: inherit; font-size: 13px; text-transform: uppercase; }
.difficulty-segments button small { font-size: 10px; }
.difficulty-segments button:hover, .difficulty-segments button.active { background: rgba(62, 238, 255, .06); color: var(--cyan); box-shadow: inset 0 -2px 0 var(--cyan); }
.mint-preset-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line-soft); }
.mint-preset-summary div { min-height: 70px; display: grid; align-content: center; gap: 7px; padding: 12px; border-right: 1px solid var(--line-soft); }
.mint-preset-summary div:last-child { border-right: 0; }
.mint-preset-summary span { color: var(--muted); font-size: 9px; }
.mint-preset-summary strong { color: var(--yellow); font-size: 11px; overflow-wrap: anywhere; }
.mint-phase-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line-soft); }
.mint-phase-summary > div { min-height: 76px; display: grid; align-content: center; gap: 8px; padding: 12px; border-right: 1px solid var(--line-soft); }
.mint-phase-summary > div:last-child { border-right: 0; }
.mint-phase-summary span { color: var(--muted); font-size: 9px; }
.mint-phase-summary strong { color: var(--cyan); font-size: 11px; overflow-wrap: anywhere; }
.custom-mint-fields { padding-top: 18px; border-bottom: 1px solid var(--line-soft); }
.custom-mint-fields[hidden] { display: none; }
.mint-difficulty-note { margin-bottom: 18px; }
.hall-metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin: 24px 0; border: 1px solid var(--line); background: rgba(7, 17, 19, 0.88); }
.hall-metrics > div { min-height: 104px; display: grid; align-content: center; gap: 8px; padding: 18px 20px; border-right: 1px solid var(--line-soft); }
.hall-metrics > div:last-child { border-right: 0; }
.hall-metrics span { color: var(--cyan); font-size: 10px; }
.hall-metrics strong { color: var(--white); font-size: 25px; }
.hall-metrics small { color: var(--muted); }
.hall-toolbar { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hall-toolbar > div { display: grid; gap: 6px; }
.hall-toolbar span { color: var(--cyan); font-size: 10px; }
.hall-toolbar strong { color: var(--cyan-soft); font-size: 12px; }
.hall-toolbar .hall-toolbar-actions { display: flex; align-items: center; gap: 10px; }
.hall-filter { min-height: 44px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.hall-filter button { min-width: 128px; min-height: 42px; padding: 0 14px; border: 0; border-right: 1px solid var(--line-soft); background: #020708; color: var(--muted); cursor: pointer; text-transform: uppercase; font-weight: 700; }
.hall-filter button:last-child { border-right: 0; }
.hall-filter button:hover, .hall-filter button.active { color: var(--yellow); background: var(--panel-2); }
.hall-filter b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; border: 1px solid var(--line); color: var(--cyan); font-size: 9px; }
.world-directory-grid { min-height: 220px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; padding: 20px 0; }
.world-card { min-width: 0; border: 1px solid var(--line); background: rgba(7, 17, 19, 0.94); }
.world-card-visual { width: 100%; aspect-ratio: 1; padding: 0; position: relative; display: grid; place-items: center; overflow: hidden; border: 0; border-bottom: 1px solid var(--line-soft); background-color: #020708; background-image: linear-gradient(rgba(31,140,134,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(31,140,134,.11) 1px, transparent 1px); background-size: 24px 24px; cursor: pointer; }
.world-card-visual:hover { border-color: var(--yellow); filter: brightness(1.08); }
.world-card-visual img { width: 100%; height: 100%; display: block; object-fit: cover; }
.world-card-visual:not(:has(img))::before { content: ""; width: 82px; height: 82px; position: absolute; border: 1px solid var(--cyan); transform: rotate(45deg); opacity: .45; }
.world-card-visual strong { position: relative; color: var(--yellow); font-size: 38px; }
.world-card-visual span, .world-card-visual em { position: absolute; padding: 5px 8px; border: 1px solid rgba(255,255,255,.16); background: rgba(0,0,0,.82); color: var(--white); font-size: 9px; font-style: normal; }
.world-card-visual span { top: 12px; left: 12px; }
.world-card-visual em { right: 12px; bottom: 12px; color: var(--yellow); }
.world-card-copy { display: grid; gap: 12px; padding: 17px; }
.world-card-title { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.world-card-title > div { min-width: 0; display: grid; gap: 6px; }
.world-card-title strong { overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.world-card-title span { color: var(--cyan); font-size: 11px; }
.world-card-title b { flex: 0 0 auto; color: var(--yellow); font-size: 10px; }
.world-card-data { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-soft); }
.world-card-data div { min-width: 0; display: grid; gap: 5px; padding: 10px; }
.world-card-data div + div { border-left: 1px solid var(--line-soft); }
.world-card-data dt { color: var(--muted); font-size: 9px; }
.world-card-data dd { margin: 0; overflow: hidden; color: var(--cyan-soft); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.world-card .button { width: 100%; }
.world-entry-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 24px; padding: 14px; border: 1px solid var(--line); background: rgba(7, 17, 19, 0.88); }
.page-heading { min-height: 156px; display: flex; justify-content: space-between; align-items: end; gap: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.compact-heading { min-height: 128px; }
.eyebrow { margin: 0 0 12px; }
h1 { margin: 0; max-width: 900px; font-size: 56px; line-height: 1; font-weight: 700; }
.page-heading p:not(.eyebrow) { max-width: 760px; margin: 18px 0 0; color: var(--cyan-soft); line-height: 1.6; }
.phase-block, .quote { flex: 0 0 280px; display: grid; gap: 8px; padding: 18px; border-left: 3px solid var(--cyan); background: rgba(7, 17, 19, 0.8); }
.phase-block strong, .quote strong { color: var(--yellow); font-size: 22px; overflow-wrap: anywhere; }
.phase-block small { color: var(--muted); }
.metric-band { display: grid; grid-template-columns: repeat(4, 1fr); margin: 24px 0; border: 1px solid var(--line); background: rgba(7, 17, 19, 0.88); }
.metric-band > div { min-height: 112px; display: grid; align-content: center; gap: 8px; padding: 20px; border-right: 1px solid var(--line-soft); }
.metric-band > div:last-child { border-right: 0; }
.metric-band strong { font-size: 24px; }
.metric-band small { color: var(--muted); }
.two-column { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: 24px; }
.three-column { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 22px; }
.panel { border: 1px solid var(--line); background: rgba(7, 17, 19, 0.94); }
.panel-head { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 20px; border-bottom: 1px solid var(--line-soft); }
.panel-head > div { display: grid; gap: 7px; }
.panel-head strong { font-size: 18px; }
.panel-head > b { color: var(--cyan-soft); font-size: 11px; }
.panel-head .status-ok { color: var(--green); }
.panel-head .status-error { color: var(--red); }
.panel-head .status-live { color: var(--yellow); }
.panel-copy { margin: 0; padding: 20px 20px 0; color: var(--cyan-soft); line-height: 1.6; }
.split-chart { width: 190px; aspect-ratio: 1; position: relative; display: grid; place-items: center; margin: 26px auto 16px; border-radius: 50%; background: conic-gradient(var(--cyan) 0 40%, var(--yellow) 40% 80%, var(--white) 80% 100%); }
.split-chart::before { content: ""; position: absolute; inset: 25px; border-radius: 50%; background: var(--panel); }
.split-chart div { position: relative; display: grid; gap: 4px; text-align: center; }
.split-chart strong { font-size: 32px; }
.split-chart span { color: var(--muted); font-size: 11px; }
.sliders { padding: 8px 20px 20px; display: grid; gap: 18px; }
.sliders label { display: grid; gap: 9px; }
.sliders label > span { display: flex; justify-content: space-between; gap: 12px; }
.sliders b { font-size: 12px; }
.sliders output { color: var(--cyan); font-weight: 700; }
input[type="range"] { width: 100%; accent-color: var(--yellow); }
.panel-footer { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line-soft); }
.panel-footer span { color: var(--muted); font-size: 11px; }
.button { min-height: 44px; padding: 0 18px; border: 1px solid var(--line); background: transparent; cursor: pointer; text-transform: uppercase; font-weight: 700; }
.button:hover:not(:disabled), .tab:hover { border-color: var(--yellow); color: var(--yellow); }
.button:disabled { opacity: 0.35; cursor: not-allowed; }
.button-primary { color: #061012; border-color: var(--yellow); background: var(--yellow); }
.button-secondary { color: var(--cyan); }
.button-warning { color: var(--yellow); border-color: var(--yellow); }
.button-wide { width: 100%; }
.market-progress-panel { padding-bottom: 20px; }
.progress-orbit { width: min(260px, 70%); aspect-ratio: 1; margin: 26px auto; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; position: relative; }
.progress-orbit::before, .progress-orbit::after { content: ""; position: absolute; border-radius: 50%; border: 1px dashed var(--line-soft); }
.progress-orbit::before { inset: 18px; }
.progress-orbit::after { inset: 42px; }
.progress-orbit div { display: grid; gap: 6px; text-align: center; z-index: 1; }
.progress-orbit strong { color: var(--cyan); font-size: 34px; }
.progress-orbit span { color: var(--muted); font-size: 11px; }
.progress-track { height: 10px; margin: 0 20px; border: 1px solid var(--line); background: #020607; overflow: hidden; }
.progress-track i { display: block; width: 20%; height: 100%; background: var(--cyan); transition: width .3s ease; }
.progress-labels { display: flex; justify-content: space-between; padding: 9px 20px 15px; color: var(--muted); font-size: 11px; }
.progress-labels strong { color: var(--yellow); }
.compact-data { margin: 0; padding: 0 20px 20px; }
.compact-data div { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line-soft); }
.compact-data dt { color: var(--muted); }
.compact-data dd { margin: 0; color: var(--cyan); text-align: right; }
.market-progress-panel > .button { width: calc(100% - 40px); margin: 0 20px; }
.graduation-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 20px 12px; }
.trade-layout { margin-top: 24px; }
.trade-panel { padding: 20px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 20px; }
.segmented button { min-height: 48px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; text-transform: uppercase; }
.segmented button.active { background: var(--panel-2); color: var(--yellow); border-color: var(--yellow); }
.amount-field { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--line); }
.amount-field > span, .receive-box span, .raised-block span { color: var(--muted); font-size: 11px; }
.amount-field > .amount-entry { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; }
.amount-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--white); font-size: 34px; }
.amount-field strong { color: var(--cyan); }
.amount-field small { color: var(--muted); }
.amount-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.amount-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(48px, auto)); gap: 6px; }
.amount-shortcuts button { min-height: 28px; padding: 0 10px; border: 1px solid var(--line); background: transparent; color: var(--cyan); cursor: pointer; font: inherit; font-size: 11px; }
.amount-shortcuts button:hover, .amount-shortcuts button:focus-visible { border-color: var(--cyan); background: var(--panel-2); outline: 0; }
.amount-shortcuts button:disabled { color: var(--muted); cursor: not-allowed; opacity: .45; }
.trade-arrow { width: 38px; height: 38px; display: grid; place-items: center; margin: -1px auto; border: 1px solid var(--line); background: var(--bg); color: var(--yellow); }
.receive-box { min-height: 88px; display: grid; align-content: center; gap: 9px; padding: 18px; border: 1px solid var(--line); }
.receive-box strong { color: var(--cyan); font-size: 24px; overflow-wrap: anywhere; }
.trade-breakdown { margin: 18px 0; }
.trade-breakdown div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; }
.trade-breakdown dt { color: var(--muted); }
.trade-breakdown dd { margin: 0; text-align: right; }
.compact-input { display: grid; gap: 8px; margin: 0 0 18px; }
.compact-input > span { color: var(--muted); font-size: 10px; }
.compact-input .input-suffix input { min-height: 42px; padding: 0 12px; outline: 0; background: transparent; color: var(--white); }
.approval-preference { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; margin: -4px 0 18px; padding: 10px 12px; border: 1px solid var(--line); cursor: pointer; }
.approval-preference[hidden] { display: none; }
.approval-preference > span { display: grid; gap: 4px; }
.approval-preference strong { color: var(--white); font-size: 11px; }
.approval-preference small { color: var(--muted); font-size: 9px; }
.approval-preference input { position: absolute; opacity: 0; pointer-events: none; }
.approval-preference i { position: relative; flex: 0 0 42px; width: 42px; height: 22px; border: 1px solid var(--line); background: var(--bg); transition: border-color .15s, background .15s; }
.approval-preference i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; background: var(--muted); transition: transform .15s, background .15s; }
.approval-preference input:checked + i { border-color: var(--cyan); background: var(--panel-2); }
.approval-preference input:checked + i::after { transform: translateX(20px); background: var(--cyan); }
.approval-preference input:focus-visible + i { outline: 2px solid var(--yellow); outline-offset: 2px; }
.inline-message { min-height: 20px; margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.inline-message.success { color: var(--green); }
.inline-message.error { color: var(--red); }
.balance-list { display: grid; grid-template-columns: 1fr 1fr; }
.balance-list div { min-height: 108px; display: grid; align-content: center; gap: 10px; padding: 20px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.balance-list div:nth-child(even) { border-right: 0; }
.balance-list span { color: var(--muted); font-size: 11px; }
.balance-list strong { color: var(--cyan); font-size: 18px; overflow-wrap: anywhere; }
.raised-block { padding: 22px 20px; }
.raised-block > strong { display: block; margin: 10px 0 16px; font-size: 20px; }
.raised-block .progress-track { margin: 0; }
.notice { margin: 0 20px 20px; padding: 16px; border-left: 3px solid var(--yellow); background: #0b1515; }
.notice b { color: var(--yellow); font-size: 11px; }
.notice p { margin: 8px 0 0; color: var(--cyan-soft); line-height: 1.5; font-size: 12px; }
.action-panel { position: relative; padding: 24px; }
.fair-launch-panel { margin: 24px 0 20px; }
.fair-launch-head { min-height: 150px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 280px); align-items: center; gap: 30px; padding: 24px; border-bottom: 1px solid var(--line-soft); }
.fair-launch-head > div { min-width: 0; }
.fair-launch-head > div:first-child { display: grid; gap: 10px; }
.fair-launch-head span { color: var(--cyan); font-size: 11px; }
.fair-launch-head strong { color: var(--yellow); font-size: 36px; }
.fair-launch-head #fairPhaseTitle { max-width: 100%; font-size: 28px; line-height: 1.15; overflow-wrap: anywhere; }
.fair-launch-head p { margin: 0; color: var(--cyan-soft); line-height: 1.5; }
.epoch-clock { min-height: 105px; display: grid; align-content: center; gap: 8px; padding: 16px; border-left: 3px solid var(--cyan); background: var(--panel-2); }
.epoch-clock strong { color: var(--white); font-size: 28px; }
.epoch-clock small { color: var(--muted); }
.fair-progress { height: 8px; margin: -1px 0 0; background: #020607; }
.fair-progress i { display: block; width: 33.33%; height: 100%; background: var(--yellow); transition: width .25s ease; }
.mint-timeline { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line-soft); }
.mint-timeline > div { position: relative; min-height: 92px; display: grid; grid-template-columns: 28px 1fr; align-content: center; gap: 6px 10px; padding: 15px 18px; border-right: 1px solid var(--line-soft); }
.mint-timeline > div:last-child { border-right: 0; }
.mint-timeline b { grid-row: 1 / 3; color: var(--muted); font-size: 18px; }
.mint-timeline span { color: var(--white); font-size: 13px; font-weight: 700; }
.mint-timeline small { color: var(--muted); line-height: 1.35; }
.mint-timeline > div.active { background: rgba(17, 223, 209, .08); box-shadow: inset 0 -3px var(--cyan); }
.mint-timeline > div.active b, .mint-timeline > div.active span { color: var(--cyan); }
.mint-timeline > div.complete b, .mint-timeline > div.complete span { color: var(--green); }
.mint-timeline > div.ready { background: rgba(229, 255, 64, .08); box-shadow: inset 0 -3px var(--yellow); }
.mint-timeline > div.ready b, .mint-timeline > div.ready span { color: var(--yellow); }
.fair-action-callout { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(500px, 1.2fr); border-bottom: 1px solid var(--line-soft); background: #071012; }
.fair-action-callout > div { display: grid; align-content: center; gap: 8px; min-height: 134px; padding: 20px 24px; border-right: 1px solid var(--line-soft); }
.fair-action-callout > div > span { color: var(--muted); font-size: 10px; }
.fair-action-callout > div > strong { color: var(--yellow); font-size: 22px; }
.fair-action-callout > div > p { margin: 0; color: var(--cyan-soft); line-height: 1.5; }
.fair-action-callout dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.fair-action-callout dl div { min-width: 0; display: grid; align-content: center; gap: 7px; padding: 16px 18px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.fair-action-callout dl div:nth-child(even) { border-right: 0; }
.fair-action-callout dl div:nth-last-child(-n+2) { border-bottom: 0; }
.fair-action-callout dt { color: var(--muted); font-size: 9px; }
.fair-action-callout dd { margin: 0; color: var(--cyan); font-size: 13px; overflow-wrap: anywhere; }
.fair-stats { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line-soft); }
.fair-stats div { min-height: 88px; display: grid; align-content: center; gap: 8px; padding: 15px 18px; border-right: 1px solid var(--line-soft); }
.fair-stats div:last-child { border-right: 0; }
.fair-stats span { color: var(--muted); font-size: 10px; }
.fair-stats strong { color: var(--cyan); font-size: 18px; }
.fair-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 18px 20px 8px; }
.fair-launch-panel > .inline-message { margin: 8px 20px 18px; }
.action-panel > span { color: var(--cyan); font-size: 11px; }
.action-panel > strong { display: block; margin: 10px 0 18px; font-size: 20px; }
.action-panel > p { min-height: 58px; color: var(--cyan-soft); line-height: 1.5; }
.action-panel > small { display: block; min-height: 34px; margin-top: 12px; color: var(--muted); line-height: 1.4; }
.panel-number { position: absolute; top: 18px; right: 18px; color: var(--muted); font-size: 28px; }
.nft-preview { aspect-ratio: 16 / 8; display: grid; place-items: center; align-content: center; gap: 12px; margin-bottom: 12px; border: 1px solid var(--line); background-image: linear-gradient(rgba(31,140,134,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(31,140,134,.1) 1px, transparent 1px); background-size: 18px 18px; }
.nft-preview div { color: var(--cyan); font-size: 46px; }
.nft-preview small { color: var(--muted); }
.action-panel .compact-data { padding: 0 0 20px; }
.fusion-formula { min-height: 130px; display: flex; align-items: center; justify-content: center; gap: 18px; border: 1px solid var(--line); }
.fusion-formula b, .fusion-formula strong { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--cyan); font-size: 22px; }
.fusion-formula strong { color: var(--yellow); border-color: var(--yellow); }
.fusion-formula i { font-style: normal; color: var(--muted); }
.fusion-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; }
.fusion-selects label { min-width: 0; display: grid; gap: 6px; }
.fusion-selects span { color: var(--muted); font-size: 9px; }
.fusion-nft-preview { aspect-ratio: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line-soft); background: #020708; }
.fusion-nft-preview img { width: 100%; height: 100%; display: block; object-fit: contain; }
.fusion-nft-preview small { padding: 12px; color: var(--muted); text-align: center; }
.reserve-value { min-height: 130px; display: grid; place-items: center; align-content: center; gap: 8px; border: 1px solid var(--line); }
.reserve-value strong { color: var(--yellow); font-size: 36px; }
.reserve-value span { color: var(--muted); font-size: 11px; }
.nft-ledger { margin-top: 20px; }
.nft-list { min-height: 140px; padding: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.nft-item { min-height: 110px; display: grid; align-content: center; gap: 8px; padding: 14px; border: 1px solid var(--line-soft); background: var(--panel-2); color: inherit; text-decoration: none; }
.nft-item b { color: var(--yellow); }
.nft-item span { color: var(--cyan); }
.nft-item small { color: var(--muted); }
.empty-state { grid-column: 1 / -1; margin: auto; color: var(--muted); }
.rewards-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(360px, .7fr); gap: 24px; margin-top: 24px; }
.reward-total { min-height: 144px; display: grid; align-content: center; gap: 8px; padding: 24px; border: 1px solid var(--line); background: rgba(7,17,19,.94); }
.reward-total > span { color: var(--muted); font-size: 11px; }
.reward-total strong { color: var(--cyan); font-size: 42px; }
.reward-total small { color: var(--muted); }
.reward-rows { margin-top: 14px; display: grid; gap: 12px; }
.reward-rows article { min-height: 94px; display: grid; grid-template-columns: 48px minmax(220px, 1fr) minmax(180px, auto) 120px; align-items: center; gap: 18px; padding: 16px 20px; border: 1px solid var(--line); background: rgba(7,17,19,.94); }
.reward-rows article > b { color: var(--muted); }
.reward-rows article > div { display: grid; gap: 8px; }
.reward-rows article span { color: var(--white); font-weight: 700; }
.reward-rows article small { color: var(--muted); }
.reward-rows article > strong { color: var(--cyan); font-size: 19px; text-align: right; }
.claim-all { width: 100%; min-height: 72px; margin-top: 14px; display: flex; justify-content: space-between; align-items: center; border-color: var(--yellow); background: var(--yellow); color: #071012; font-size: 19px; }
.staking-controls { margin-top: 14px; padding: 18px 20px; display: grid; grid-template-columns: minmax(240px, .85fr) minmax(190px, .55fr) minmax(420px, 1.4fr); align-items: stretch; gap: 14px; border: 1px solid var(--line); background: rgba(7,17,19,.94); }
.staking-controls > div:first-child, .staking-controls label { min-width: 0; display: grid; align-content: center; gap: 7px; }
.staking-controls > div:first-child strong { line-height: 1.35; }
.staking-controls span { color: var(--muted); font-size: 10px; }
.staking-controls input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); outline: 0; background: #020708; color: var(--white); }
.staking-actions { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.staking-actions .button { width: 100%; min-width: 0; min-height: 44px; padding-inline: 12px; white-space: nowrap; }
.staking-controls > small { grid-column: 1 / -1; min-height: 20px; display: flex; align-items: center; color: var(--muted); }
.activity-panel { align-self: start; }
.activity-list { max-height: 430px; overflow: auto; padding: 0 20px; }
.activity-item { display: grid; gap: 7px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); color: inherit; text-decoration: none; }
.activity-item time { color: var(--muted); font-size: 10px; }
.activity-item div { display: flex; justify-content: space-between; gap: 12px; }
.activity-item strong { color: var(--cyan); text-align: right; }
.activity-item small { color: var(--muted); }
footer { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 max(24px, calc((100vw - var(--max)) / 2)); border-top: 1px solid var(--line); background: var(--bg); color: var(--muted); }

@media (max-width: 1050px) {
  .app-header { grid-template-columns: 1fr auto; }
  .header-status { display: none; }
  .two-column, .rewards-layout { grid-template-columns: 1fr; }
  .three-column { grid-template-columns: 1fr 1fr; }
  .create-layout { grid-template-columns: 1fr; }
  .stock-selector-panel { grid-row: auto; }
  .create-fee-panel { grid-column: auto; }
  .stock-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .world-directory-grid { grid-template-columns: 1fr 1fr; }
  .liquidity-panel { grid-column: 1 / -1; }
  .metric-band { grid-template-columns: 1fr 1fr; }
  .hall-metrics { grid-template-columns: 1fr 1fr; }
  .hall-metrics > div:nth-child(2) { border-right: 0; }
  .hall-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .protocol-bar { margin-inline: 24px; grid-template-columns: 1fr 1fr auto; }
  .protocol-bar > div { grid-column: 1 / -1; }
  .staking-controls { grid-template-columns: 1fr 1fr; }
  .staking-actions { grid-column: 1 / -1; }
  .metric-band > div:nth-child(2) { border-right: 0; }
  .metric-band > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
}

@media (max-width: 720px) {
  .world-contracts { grid-template-columns: minmax(0, 1fr); }
  #overviewView .two-column { grid-template-columns: minmax(0, 1fr); }
  #overviewView .panel { min-width: 0; }
  #overviewView .panel-head { flex-wrap: wrap; }
  #overviewView .panel-head > div { min-width: 0; }
  .app-header { min-height: 70px; padding: 10px 14px; }
  .brand small, #refreshButton { display: none; }
  .brand strong { font-size: 13px; }
  .wallet-button { padding: 0 10px; font-size: 11px; }
  .section-navigation { padding: 12px 12px 0; gap: 10px; }
  .tabs { padding: 0; }
  .tab { min-width: 126px; padding: 0 12px; font-size: 11px; }
  .hall-nav-button { min-width: 142px; }
  main { padding: 28px 14px 48px; }
  .page-heading { min-height: 0; display: grid; align-items: start; gap: 24px; }
  h1 { font-size: 40px; }
  .phase-block, .quote { width: 100%; flex-basis: auto; }
  .metric-band, .three-column { grid-template-columns: 1fr; }
  .hall-metrics, .world-directory-grid { grid-template-columns: 1fr; }
  .world-entry-actions { grid-template-columns: 1fr; }
  .hall-metrics > div { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .hall-metrics > div:last-child { border-bottom: 0; }
  .hall-toolbar { align-items: stretch; flex-direction: column; }
  .hall-toolbar .hall-toolbar-actions { align-items: stretch; flex-direction: column; }
  .hall-filter button { min-width: 0; }
  .asset-toolbar, .form-grid, .fair-launch-head { grid-template-columns: 1fr; }
  .difficulty-segments, .mint-preset-summary { grid-template-columns: 1fr 1fr; }
  .difficulty-segments button:nth-child(2), .mint-preset-summary div:nth-child(2) { border-right: 0; }
  .seed-hash-grid { grid-template-columns: 1fr; }
  .seed-hash-grid > div { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .seed-hash-grid > div:last-child { border-bottom: 0; }
  .stock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 430px; }
  .fair-stats { grid-template-columns: 1fr 1fr; }
  .mint-timeline { grid-template-columns: 1fr 1fr; }
  .mint-timeline > div { border-bottom: 1px solid var(--line-soft); }
  .mint-timeline > div:nth-child(2) { border-right: 0; }
  .fair-action-callout { grid-template-columns: 1fr; }
  .fair-action-callout > div { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .fair-stats div { border-bottom: 1px solid var(--line-soft); }
  .fair-actions { grid-template-columns: 1fr 1fr; }
  .metric-band > div { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .metric-band > div:last-child { border-bottom: 0; }
  .liquidity-panel { grid-column: auto; }
  .panel-footer { align-items: stretch; flex-direction: column; }
  .balance-list { grid-template-columns: 1fr; }
  .balance-list div { border-right: 0; }
  .nft-list { grid-template-columns: 1fr 1fr; }
  .reward-rows article { grid-template-columns: 32px minmax(0, 1fr); }
  .reward-rows article > strong { grid-column: 2; text-align: left; overflow-wrap: anywhere; }
  .reward-rows article .claim-button { grid-column: 2; }
  .reward-total strong { font-size: 30px; }
  .protocol-bar { margin-inline: 12px; grid-template-columns: 1fr; }
  .protocol-bar > div, .protocol-bar label { grid-column: auto; }
  .protocol-bar .button, .protocol-link { width: 100%; text-align: center; }
  .fusion-selects, .staking-controls { grid-template-columns: 1fr; }
  .staking-actions { grid-column: auto; display: grid; grid-template-columns: 1fr 1fr; }
  footer { padding: 14px; align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .amount-footer { align-items: stretch; flex-direction: column; }
  .amount-shortcuts { grid-template-columns: repeat(3, 1fr); }
  .mint-timeline, .fair-action-callout dl, .fair-stats, .fair-actions { grid-template-columns: 1fr; }
  .mint-timeline > div, .mint-timeline > div:nth-child(2), .fair-action-callout dl div, .fair-action-callout dl div:nth-child(even) { border-right: 0; }
  .fair-action-callout dl div, .fair-action-callout dl div:nth-last-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .fair-action-callout dl div:last-child { border-bottom: 0; }
  .epoch-clock strong { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
