:root {
  --ink: #061a24;
  --ink2: #0b2632;
  --ink3: #10303e;
  --line: rgba(255, 255, 255, .09);
  --text: #e9f3f2;
  --muted: #8fb0b6;
  --sand: #f2dca0;
  --coral: #ff6a45;
  --coral2: #ff8a6a;
  --sea: #3fd6c8;
  --deep: #0b2a36;
  --r: 14px;
  --head: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--head); margin: 0; letter-spacing: -.02em; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; border: 0; background: var(--coral); color: #fff; font-weight: 600; transition: transform .15s, background .15s; white-space: nowrap; }
.btn:hover { background: var(--coral2); transform: translateY(-1px); }
.btn.sm { padding: 9px 16px; font-size: 14px; }
.btn.big { padding: 16px 28px; font-size: 17px; width: 100%; }
.btn.dark { background: rgba(6, 26, 36, .82); color: #fff; }
.btn.dark:hover { background: #0b2a36; }
.btn.ghost { background: rgba(6, 26, 36, .55); color: #fff; backdrop-filter: blur(8px); }
.btn.ghost:hover { background: rgba(6, 26, 36, .8); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; gap: 28px; padding: 14px 28px; transition: background .25s, box-shadow .25s; }
.nav.solid { background: rgba(6, 26, 36, .88); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font: 800 20px var(--head); color: var(--deep); transition: color .25s; }
.brand-logo { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.nav.solid .brand, .nav.solid .links a { color: var(--text); }
.links { display: flex; gap: 22px; }
.links a { font-size: 15px; color: var(--deep); opacity: .85; transition: opacity .15s, color .25s; }
.links a:hover { opacity: 1; }
.nav-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.ca { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(6, 26, 36, .18); background: rgba(255, 255, 255, .55); color: var(--deep); font-size: 13px; }
.ca code { font: 600 12px var(--mono); }
.nav.solid .ca { background: rgba(255, 255, 255, .06); border-color: var(--line); color: var(--text); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: #cfe6ef; }
#sea { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
#sea:active { cursor: grabbing; }
.hero-haze { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(232, 244, 247, .9) 0%, rgba(232, 244, 247, .55) 30%, rgba(232, 244, 247, 0) 52%),
    linear-gradient(180deg, rgba(6, 26, 36, 0) 64%, rgba(6, 26, 36, .9) 100%); }
.hero-haze, .hero-copy { transition: opacity .5s; }
.hero.focus .hero-copy { opacity: 0; pointer-events: none; }
.hero.focus .hero-copy > * { pointer-events: none; }
.hero.focus .hero-haze { opacity: .35; }
.hero-copy { position: absolute; left: 56px; top: 50%; transform: translateY(-46%); max-width: 560px; pointer-events: none; color: var(--deep); }
.hero-copy > * { pointer-events: auto; }
/* "Powered by pump.fun + StonkFun" strip above the headline */
.powered { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 16px; padding: 7px 14px 7px 12px; border-radius: 10px; background: rgba(8, 30, 40, .82); backdrop-filter: blur(6px); color: #fff; font: 600 14px var(--body, 'DM Sans', sans-serif); }
.powered .by { color: rgba(255, 255, 255, .72); font-weight: 500; }
.powered .brand-pair { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; letter-spacing: -.01em; }
.powered img { display: block; width: 20px; height: 20px; object-fit: contain; }
.powered .plus { color: rgba(255, 255, 255, .5); font-weight: 500; }
h1 { font-size: clamp(48px, 7vw, 92px); line-height: .95; font-weight: 800; }
h1 em { font-style: normal; color: var(--coral); }
.lede { font-size: 18px; color: #234a57; margin: 22px 0 30px; max-width: 470px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 0; text-shadow: 0 1px 6px rgba(6, 26, 36, .8); display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 22px 56px; pointer-events: none; color: #d6e8ea; font-size: 13px; }
.stats { margin: 0; display: flex; gap: 26px; flex-wrap: wrap; font-family: var(--mono); }
.stats b { color: #fff; font-weight: 600; margin-left: 6px; }
.hint { margin: 0; opacity: .8; }

.labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.isl-label { position: absolute; left: 0; top: 0; pointer-events: auto; border: 0; padding: 5px 9px; border-radius: 6px; background: rgba(6, 26, 36, .78); color: #fff; font: 600 12px var(--mono); white-space: nowrap; will-change: transform; transition: background .15s; }
.isl-label::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 8px; background: inherit; transform: translateX(-50%) rotate(45deg); }
.isl-label:hover { background: var(--coral); }
.isl-label.hq { background: var(--coral); }
.isl-label.open { background: rgba(255, 255, 255, .72); color: var(--deep); font-weight: 400; }
.isl-label .sw { display: inline-block; width: 8px; height: 8px; margin-right: 6px; vertical-align: 0; }

.isl-card { position: absolute; right: 28px; top: 96px; width: 300px; z-index: 5; padding: 20px; border-radius: var(--r); background: rgba(6, 26, 36, .9); backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.isl-card .x { position: absolute; right: 10px; top: 8px; background: none; border: 0; font-size: 22px; color: var(--muted); }
.isl-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.isl-head .sw { width: 40px; height: 40px; border-radius: 8px; flex: none; background-size: cover; background-position: center; }
.isl-head h3 { font-size: 20px; }
.isl-head p { margin: 0; color: var(--muted); font-size: 14px; }
.isl-card dl { margin: 0 0 16px; display: grid; gap: 8px; }
.isl-card dl div { display: flex; justify-content: space-between; font-size: 14px; border-top: 1px solid var(--line); padding-top: 8px; }
.isl-card dt { color: var(--muted); }
.isl-card dd { margin: 0; font-family: var(--mono); font-size: 13px; }
.isl-actions { display: flex; gap: 8px; }
.isl-actions .btn { flex: 1; }

/* ---------- sections ---------- */
.sec { padding: 110px 56px; max-width: 1280px; margin: 0 auto; }
.sec-head { max-width: 640px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1; margin-bottom: 16px; }
.sec-head p { color: var(--muted); font-size: 18px; margin: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { position: relative; border-radius: var(--r); background: linear-gradient(180deg, var(--ink3), var(--ink2)); border: 1px solid var(--line); overflow: hidden; text-align: left; padding: 0; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .2); }
.card .shot { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; background: radial-gradient(circle at 50% 55%, #134557, transparent 70%); }
.card .meta { display: flex; align-items: center; gap: 10px; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.card .ico { width: 32px; height: 32px; border-radius: 7px; flex: none; background: rgba(255, 255, 255, .06); background-size: cover; background-position: center; }
.card h3 { font-size: 16px; line-height: 1.2; }
.card .sub { margin: 0; color: var(--muted); font-size: 13px; }
.card .st { margin-left: auto; font: 600 11px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.card .st i { width: 7px; height: 7px; display: inline-block; background: currentColor; }
.card .st.dig { color: var(--sea); }
.card .st.dig i { animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { padding: 26px 24px 28px; border-radius: var(--r); background: var(--ink2); border: 1px solid var(--line); overflow: hidden; }
.steps .shot { display: block; width: calc(100% + 48px); height: auto; aspect-ratio: 36 / 25; object-fit: cover; margin: -26px -24px 22px; border-bottom: 1px solid var(--line); background: #0b2632; }
.steps .n { font: 600 13px var(--mono); color: var(--coral); }
.steps h3 { font-size: 22px; margin: 18px 0 10px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- launch ---------- */
.launch-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: start; }
.form { display: grid; gap: 18px; padding: 28px; border-radius: var(--r); background: var(--ink2); border: 1px solid var(--line); }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.form input, .form textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .22); color: var(--text); font: 15px var(--body); outline: none; transition: border-color .15s; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--sea); }
.row { display: grid; gap: 14px; }
.row.three { grid-template-columns: repeat(3, 1fr); }
.img-row { grid-template-columns: 132px 1fr; align-items: stretch; }
.img-row .col { display: grid; gap: 12px; }
.img-drop { position: relative; display: grid !important; place-items: center; text-align: center; border-radius: 12px; border: 1px dashed rgba(255, 255, 255, .22); cursor: pointer; overflow: hidden; color: var(--muted); font-size: 14px; min-height: 132px; }
.img-drop:hover { border-color: var(--sea); }
.img-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.img-drop small { opacity: .7; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: 14px; color: var(--muted); margin-bottom: 8px; padding: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0, 0, 0, .2); font: 600 13px var(--mono); }
.chip.on { background: var(--sea); color: var(--ink); border-color: var(--sea); }
.chip.add { color: var(--muted); }
.split { display: grid; gap: 6px; }
.split p { margin: 0; color: var(--muted); font-size: 14px; }
.split b { color: var(--text); font-family: var(--mono); }
input[type=range] { accent-color: var(--coral); padding: 0 !important; border: 0 !important; background: none !important; }
.dev small { color: var(--muted); opacity: .75; font-size: 12px; }
.note { margin: -4px 0 0; color: var(--muted); font-size: 13px; text-align: center; }

.preview { position: sticky; top: 90px; display: grid; gap: 16px; }
.pv-stage { position: relative; aspect-ratio: 1.1; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: radial-gradient(ellipse at 50% 40%, #174b5c, var(--ink2) 72%); }
.pv-stage canvas { width: 100%; height: 100%; display: block; }
.pv-tag { position: absolute; left: 18px; bottom: 14px; margin: 0; color: var(--muted); font-size: 14px; }
.pv-tag b { display: block; color: #fff; font: 700 26px var(--head); }
.pv-sum { margin: 0; display: grid; gap: 0; border-radius: var(--r); background: var(--ink2); border: 1px solid var(--line); padding: 6px 20px; }
.pv-sum div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pv-sum div:last-child { border: 0; }
.pv-sum dt { color: var(--muted); }
.pv-sum dd { margin: 0; font-family: var(--mono); font-size: 13px; text-align: right; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; }
details { border-radius: 12px; background: var(--ink2); border: 1px solid var(--line); padding: 0 22px; }
summary { cursor: pointer; list-style: none; padding: 18px 0; font: 600 18px var(--head); display: flex; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--coral); font-weight: 400; }
details[open] summary::after { content: '–'; }
details p { margin: 0 0 20px; color: var(--muted); }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 32px 56px 40px; border-top: 1px solid var(--line); font-size: 14px; }
.foot p { margin: 0; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { color: var(--text); opacity: .8; }
.foot-links a:hover { opacity: 1; }
.muted { color: var(--muted); }

/* ---------- modal + toast ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(3, 14, 20, .7); backdrop-filter: blur(6px); padding: 16px; }
.modal[hidden] { display: none; }
.modal-box { width: min(420px, 100%); border-radius: var(--r); background: var(--ink2); border: 1px solid var(--line); padding: 26px; }
.modal-box h3 { font-size: 24px; margin-bottom: 16px; }
.msteps { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.msteps li { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 15px; }
.msteps li::before { content: ''; width: 10px; height: 10px; flex: none; border: 1px solid var(--muted); }
.msteps li.run { color: var(--text); }
.msteps li.run::before { border-color: var(--sea); animation: blink .6s steps(2) infinite; background: var(--sea); }
.msteps li.ok { color: var(--text); }
.msteps li.ok::before { background: var(--sea); border-color: var(--sea); }
.mfoot .btn { width: 100%; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; padding: 12px 18px; border-radius: 10px; background: #0f3442; border: 1px solid var(--line); color: var(--text); font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }

/* ---------- enter modal: wallet sign-in + look picker ---------- */
#enterModal { z-index: 60; }
.modal-box.enter { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; }
.modal-box.enter .muted { margin: 0 0 18px; font-size: 15px; }
.modal-box.enter .small { font-size: 13px; margin: 14px 0; }
.mclose { position: absolute; right: 12px; top: 8px; background: none; border: 0; font-size: 24px; color: var(--muted); }
.wallets { display: grid; gap: 8px; }
.wallets button { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); font-weight: 600; text-align: left; }
.wallets button:hover { border-color: var(--sea); background: rgba(63, 214, 200, .08); }
.wallets button span { color: var(--muted); font-weight: 400; font-size: 13px; }
.wallets a { color: var(--sea); }
.wstatus { min-height: 20px; margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.look-wrap { display: grid; grid-template-columns: 190px 1fr; gap: 18px; align-items: start; }
#lookCv { width: 190px; height: 250px; border-radius: 12px; background: radial-gradient(circle at 50% 60%, #1b5568, #0b2632 75%); display: block; }
.look-opts p { margin: 10px 0 6px; font-size: 13px; color: var(--muted); }
.look-opts p:first-child { margin-top: 0; }
.sw-row { display: flex; gap: 6px; flex-wrap: wrap; }
.sw-row button { width: 28px; height: 28px; border-radius: 6px; border: 2px solid transparent; padding: 0; }
.sw-row button.on { border-color: #fff; box-shadow: 0 0 0 2px var(--coral); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--sea); text-decoration: underline; font-size: inherit; }
@media (max-width: 560px) {
  .look-wrap { grid-template-columns: 1fr; }
  #lookCv { width: 100%; height: 200px; }
}

/* ---------- explore mode (HUD lives in css/hud.css) ---------- */
body.exploring { overflow: hidden; }
body.exploring .nav, body.exploring .hero-copy, body.exploring .hero-haze, body.exploring .hero-foot, body.exploring #islCard { display: none !important; }
body.exploring .hero { position: fixed; inset: 0; z-index: 45; height: 100%; min-height: 0; }

/* rewards + leaderboard */
#rewardsModal, #lbModal { z-index: 60; }
.modal-box.rewards { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; }
.rw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.rw-grid div { padding: 14px; border-radius: 10px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); }
.rw-grid span { display: block; font-size: 13px; color: var(--muted); }
.rw-grid b { font: 700 24px var(--head); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.rw-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.rw-table th { text-align: left; font: 600 11px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 6px 4px; border-bottom: 1px solid var(--line); }
.rw-table td { padding: 9px 4px; border-bottom: 1px solid var(--line); }
.rw-table td:last-child, .rw-table th:last-child { text-align: right; font-family: var(--mono); }
.rw-table i { display: inline-block; width: 9px; height: 9px; margin-right: 6px; }
.rw-table tr.me td { color: var(--sand); }
.rw-table td.empty { text-align: center; font-family: inherit; color: var(--muted); padding: 22px 4px; }
.rw-claims { list-style: none; padding: 0; margin: 14px 0 0; font-size: 13px; color: var(--muted); display: grid; gap: 4px; }

#panel { z-index: 60; }
.modal-box.wide { width: min(720px, 100%); }
.modal-box h4 { margin: 18px 0 8px; font: 700 16px var(--head); }
.addr { font: 12px var(--mono); color: var(--muted); word-break: break-all; }
.machines { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.machine { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .2); }
.machine h4 { margin: 0 0 4px; }
.machine .price { font: 700 22px var(--head); color: var(--sand); margin: 0 0 8px; }
.machine ul { list-style: none; margin: 0 0 12px; padding: 0; font-size: 13px; display: grid; gap: 3px; }
.machine li { display: flex; justify-content: space-between; gap: 8px; }
.machine .btn { width: 100%; }
.packs { display: grid; gap: 6px; }
.packs .btn { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 10px; padding: 10px 16px; border-radius: 12px; text-align: left; }
.packs .btn b { font-family: var(--mono); }
.packs .btn small { grid-column: 1 / -1; font-size: 11px; opacity: .8; font-weight: 500; }
.pull-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: 12px; }
.pull-list span { padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .06); font-weight: 600; }
.rar { font-weight: 700; }
.reveal { margin-top: 14px; padding: 16px; border-radius: 12px; text-align: center; border: 2px solid currentColor; animation: pop .5s ease; }
.reveal b { display: block; font: 800 24px var(--head); }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }
.inv { display: grid; gap: 6px; }
.inv-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, .04); font-size: 14px; }
.inv-row .sw { width: 12px; height: 12px; flex: none; }
.inv-row span { flex: 1; }
.inv-row button { padding: 5px 10px; border-radius: 6px; border: 1px solid var(--line); background: none; font-size: 12px; }
.inv-row button[disabled] { opacity: .5; cursor: default; }
.pstatus { min-height: 20px; margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.tok-list { display: grid; gap: 6px; }
.tok-list div { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 8px; background: rgba(255, 255, 255, .04); font-size: 14px; }
.tok-list i { width: 14px; height: 14px; border-radius: 3px; flex: none; }
.tok-list span { flex: 1; }
.tok-list small { color: var(--muted); font-family: var(--mono); }
@media (max-width: 640px) { .machines { grid-template-columns: 1fr; } }

/* token picker (pair / what the island mines) */
.tokpick .more { margin-top: 10px; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .18); }
.tokpick .more[hidden] { display: none; }
.tokpick .more input { margin-bottom: 8px; }
.tokpick .grid-tok { display: flex; flex-wrap: wrap; gap: 6px; max-height: 150px; overflow: auto; }
.tokpick .grid-tok .chip { padding: 6px 10px; font-size: 12px; }
.tokpick .use-mint { margin-top: 8px; font-size: 13px; color: var(--muted); }


/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .launch-wrap { grid-template-columns: 1fr; }
  .preview { position: static; order: -1; }
}
@media (max-width: 760px) {
  .nav { padding: 12px 16px; gap: 12px; }
  .links, .ca, [data-connect] { display: none; }
  .rw-grid b { font-size: 20px; }
  .hero-haze { background: linear-gradient(180deg, rgba(232, 244, 247, .92) 0%, rgba(232, 244, 247, .6) 42%, rgba(232, 244, 247, 0) 62%), linear-gradient(180deg, rgba(6, 26, 36, 0) 78%, rgba(6, 26, 36, .85) 100%); }
  .hero-copy { left: 16px; right: 16px; top: 84px; transform: none; }
  h1 { font-size: 46px; }
  .lede { font-size: 16px; margin: 14px 0 20px; }
  .hero-foot { padding: 16px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .isl-card .btn.sm { padding: 8px 14px; }
  .stats { gap: 6px 16px; }
  .isl-card { left: 16px; right: 16px; top: auto; bottom: 76px; width: auto; padding: 14px 16px; }
  .isl-head { margin-bottom: 8px; }
  .isl-head .sw { width: 32px; height: 32px; }
  .isl-card dl { margin-bottom: 10px; gap: 6px; }
  .isl-card dl div:nth-child(n+3) { display: none; }
  .hero.focus .hero-foot .stats { display: none; }
  .sec { padding: 72px 16px; }
  .steps { grid-template-columns: 1fr; }
  .row.three { grid-template-columns: 1fr; }
  .img-row { grid-template-columns: 104px 1fr; }
  .form { padding: 18px; }
  .foot { padding: 28px 16px; }
}

/* ---------- Shop ---------- */
.tabs { display: flex; gap: 6px; margin: 14px 0 12px; }
.tabs button { flex: 1; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); font-weight: 600; }
.tabs button.on { background: var(--sea); color: var(--ink); border-color: var(--sea); }
.shop-main { display: grid; grid-template-columns: 230px 1fr; gap: 14px; align-items: stretch; }
.try { position: relative; height: 290px; border-radius: 12px; overflow: hidden; background: radial-gradient(circle at 50% 60%, #1b5568, #0b2632 75%); border: 1px solid var(--line); }
.try-cv { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.try-cv:active { cursor: grabbing; }
.try-hint { position: absolute; left: 0; right: 0; bottom: 8px; margin: 0; text-align: center; font-size: 11px; color: var(--muted); pointer-events: none; }
.item-detail { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 16px; border-radius: 12px; border: 1px solid var(--line); border-top: 3px solid var(--rc); background: rgba(0, 0, 0, .2); }
.item-detail .r { font: 600 12px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--rc); }
.item-detail h4 { margin: 2px 0 0; font-size: 26px; }
.item-detail .big { margin: 0; font: 700 20px var(--head); color: var(--sand); }
.item-detail .btn { margin-top: 10px; }
.item-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.item-card { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border-radius: 12px; border: 2px solid transparent; background: rgba(255, 255, 255, .04); text-align: center; transition: border-color .15s, transform .15s; }
.item-card:hover { transform: translateY(-2px); }
.item-card.sel { border-color: var(--rc); background: rgba(255, 255, 255, .08); }
.item-card img { width: 84px; height: 84px; }
.item-card .r { font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--rc); }
.item-card b { font-size: 13px; line-height: 1.2; }
.item-card .st { font-size: 12px; color: var(--muted); }
.item-card .pr { margin-top: 4px; font: 600 12px var(--mono); color: var(--sand); }
.packs.row { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) {
  .shop-main { grid-template-columns: 1fr; }
  .try { height: 240px; }
  .item-grid { grid-template-columns: repeat(2, 1fr); }
  .packs.row { grid-template-columns: 1fr; }
}

/* ---------- human check + guide ---------- */
.hc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.hc-grid button { aspect-ratio: 1; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); display: grid; place-items: center; }
.hc-grid button:hover { border-color: var(--sea); }
.hc-grid i { width: 46%; height: 46%; background: var(--c); transform: rotate(45deg); border-radius: 4px; box-shadow: inset -6px -6px 0 rgba(0, 0, 0, .18), 0 0 16px var(--c); }
.guide-steps { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; }
.guide-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; color: #d6e6e8; }
.guide-list kbd, .modal-box kbd { display: inline-block; margin: 0 2px; padding: 1px 6px; border-radius: 4px; background: rgba(255, 255, 255, .14); font: 600 11px var(--mono); }
#guideOk { margin-top: 16px; }
@media (max-width: 420px) { .hc-grid { grid-template-columns: repeat(2, 1fr); } }

/* small phones: modals and tables keep to the screen */
.toast { width: max-content; max-width: min(440px, calc(100% - 24px)); text-align: center; }
@media (max-width: 420px) {
  .modal { padding: 8px; }
  .modal-box { padding: 18px 16px; }
  .rw-table { font-size: 12px; }
  .rw-table th, .rw-table td { padding: 7px 3px; }
  .rw-table th { font-size: 10px; letter-spacing: 0; }
  .rw-grid { gap: 8px; }
  .rw-grid div { padding: 10px; }
  .rw-grid b { font-size: 17px; }
}

/* ---------- immersive hero: zooming in fades the page UI away ---------- */
:root { --imm: 0; }
.hero-copy, .hero-haze, .hero-foot { opacity: calc(1 - var(--imm)); transition: opacity .2s linear; }
.nav:not(.solid) { opacity: calc(1 - var(--imm)); transition: opacity .2s linear, background .25s, box-shadow .25s; }
body.immersed .hero-copy, body.immersed .hero-copy > *, body.immersed .hero-foot, body.immersed .nav:not(.solid) { pointer-events: none; }
.hero.focus .hero-copy { opacity: 0; }
.hero-reset { position: absolute; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translate(-50%, 12px); z-index: 4; padding: 10px 18px; border: 0; border-radius: 999px; background: rgba(6, 26, 36, .82); color: #fff; font-weight: 600; font-size: 14px; backdrop-filter: blur(8px); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
body.immersed .hero-reset { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.hero.focus .hero-reset { display: none; }
body.exploring .hero-reset { display: none; }

/* ---------- live chart panel ---------- */
.ch-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: -6px 0 12px; }
.ch-head b { font: 800 30px/1.1 var(--mono); letter-spacing: -.02em; }
.ch-head span { font: 700 14px var(--mono); color: var(--muted); }
.ch-head .up, .ch-ohlc .up { color: #2fd08a; }
.ch-head .down, .ch-ohlc .down { color: #ff5d5d; }
.ch-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.ch-stats div { padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); min-width: 0; }
.ch-stats span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-stats b { display: block; font: 700 15px var(--mono); color: var(--sand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-tfs { display: flex; gap: 6px; margin-bottom: 10px; }
.ch-tfs button { flex: 1; min-width: 0; padding: 8px 0; border-radius: 9px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); font: 600 13px var(--mono); }
.ch-tfs button.on { background: var(--sea); color: var(--ink); border-color: var(--sea); }
.ch-ohlc { display: flex; flex-wrap: wrap; gap: 2px 12px; min-height: 20px; margin-bottom: 6px; font: 500 12px var(--mono); color: var(--muted); }
.ch-ohlc b { font-weight: 600; }
.ch-box { position: relative; height: clamp(220px, 46vw, 340px); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #06141b; }
.ch-box canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: crosshair; }
.ch-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ch-links .btn { flex: 1 1 auto; }
.ch-links[hidden] { display: none; }
.ch-src { margin: 10px 0 0; }
@media (max-width: 420px) {
  .ch-head b { font-size: 24px; }
  .ch-stats { gap: 6px; }
  .ch-stats div { padding: 8px 9px; }
  .ch-stats b { font-size: 13px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .ch-box { height: 170px; }
  .ch-head { margin-bottom: 8px; }
  .ch-head b { font-size: 22px; }
}

/* ---------- real launch: pair chips with logos, launch modal states ---------- */
.tokpick .grid-tok .chip.pair { display: inline-flex; align-items: center; gap: 6px; }
.tokpick .grid-tok .chip.pair img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; flex: none; }
.tokpick .grid-tok .chip.pair small { color: var(--muted); font-weight: 500; }
.tokpick .grid-tok .chip.on small { color: inherit; }
.dev input:disabled { opacity: .55; }
#launchBtn:disabled { opacity: .6; cursor: progress; transform: none; }
.msteps li.bad { color: #ff8a7a; }
.msteps li.bad::before { background: #ff5d5d; border-color: #ff5d5d; }
.ferr { margin: 0 0 16px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 93, 93, .1); border: 1px solid rgba(255, 93, 93, .35); color: #ffc2ba; font-size: 14px; overflow-wrap: anywhere; }
.ferr[hidden], .mdone[hidden] { display: none; }
.mdone p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.mlinks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.mlinks .btn { flex: 1 1 auto; }
.mfoot { display: flex; flex-direction: column; gap: 8px; }
.mfoot .btn[hidden] { display: none; }

/* ---------- shared islands: island picker in the launch form, coin list per island ---------- */
.islpick { gap: 6px; }
.islpick .chip.isl { min-width: 44px; padding: 7px 8px; display: inline-flex; align-items: baseline; justify-content: center; gap: 4px; }
.islpick .chip.isl small { font: 600 10px var(--mono); color: var(--muted); }
.islpick .chip.isl.on small { color: inherit; opacity: .75; }
.islpick .chip.isl.outer:not(.on) { border-style: dashed; }
.pick-note { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.isl-coins { display: grid; gap: 6px; margin-top: 12px; max-height: min(52vh, 420px); overflow: auto; }
.isl-coins button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .04); text-align: left; }
.isl-coins button:hover { background: rgba(63, 214, 200, .12); }
.isl-coins .ic { flex: none; width: 34px; height: 34px; border-radius: 8px; background-size: cover; background-position: center; }
.isl-coins .nm { flex: 1; min-width: 0; display: grid; }
.isl-coins .nm b { font: 700 15px var(--mono); }
.isl-coins .nm small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.isl-coins .px { flex: none; display: grid; justify-items: end; font: 700 13px var(--mono); }
.isl-coins .px small { font-size: 11px; color: var(--muted); }
.isl-coins .px small.up { color: #2fd08a; }
.isl-coins .px small.down { color: #ff5d5d; }
.ch-back { margin: -6px 0 8px; padding: 0; border: 0; background: none; color: var(--sea); font: 600 13px var(--body); }

/* island name + "Open island" line on the map labels; island dropdown in the launch form */
.isl-label { text-align: center; }
.isl-label .nm { display: block; }
.isl-label small { display: block; margin-top: 1px; font: 500 10px var(--mono); opacity: .72; letter-spacing: .02em; }
.isl-label.open small { opacity: .8; }
.form select.isl-select { width: 100%; padding: 12px 40px 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .22) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238fb0b6' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px; color: var(--text); font: 15px var(--body); outline: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.form select.isl-select:focus { border-color: var(--sea); }
.form select.isl-select option, .form select.isl-select optgroup { background: #0b2632; color: var(--text); }
