/* SEACRAFT (was Sea of Memes) — dark navy, loud condensed headlines, yellow + meme-green accents */
:root {
  --bg: #0c1220; --bg2: #111a2b; --card: #141e31; --card2: #1a263c; --line: rgba(255, 255, 255, .09); --line2: rgba(255, 255, 255, .16);
  --text: #eef3fb; --muted: #93a3bb; --dim: #66758c;
  --gold: #ffd23f; --gold2: #f2b51d; --green: #63f05a; --sea: #2f8fd8; --red: #ff5a5f;
  --navy: #0c1220; --glass: rgba(12, 18, 32, .78);
  --head: 'Barlow Condensed', 'Arial Narrow', sans-serif; --body: 'Barlow', 'Plus Jakarta Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); font: 500 15px/1.45 var(--body); -webkit-tap-highlight-color: transparent; user-select: none; }
canvas#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }
button { font: inherit; cursor: pointer; }
kbd { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 5px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-bottom-width: 2px; font: 600 11px var(--body); color: #fff; text-align: center; }
.hl { font-family: var(--head); font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -.01em; }

/* ---------- buttons ---------- */
.btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card2); color: var(--text); font: 700 15px var(--body); transition: transform .12s, filter .12s, background .12s; }
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; pointer-events: none; }
.btn-gold { background: var(--gold); border-color: transparent; color: #191300; box-shadow: 0 8px 26px rgba(255, 210, 63, .25); }
.btn-big { padding: 15px 18px; font: 900 italic 30px/1 var(--head); text-transform: uppercase; letter-spacing: .01em; }
.btn-big .btn-ico { font-size: 22px; font-style: normal; }
.btn-big kbd { margin-left: auto; font-style: normal; background: rgba(0,0,0,.12); border-color: rgba(0,0,0,.2); color: #191300; }
.btn-sea { background: var(--card2); }
.btn-dark { background: rgba(255,255,255,.04); }
.btn-phantom { background: #ab9ff2; border-color: transparent; color: #1b1340; }
.btn-phantom svg { width: 24px; height: 24px; }
.btn-phantom svg path { fill: #1b1340; }
.btn.loading .btn-label::after { content: '…'; }
.btn.no-ext { opacity: .85; }
.link-btn { background: none; border: 0; color: #9fd0ff; padding: 4px; font: 600 13.5px var(--body); }
.link-btn:hover { color: #fff; }
.link-btn.back { display: block; margin: 4px auto 0; }

/* ---------- landing page ---------- */
#title { position: fixed; inset: 0; z-index: 30; overflow-y: auto; overflow-x: hidden; background: var(--bg); transition: opacity .9s; user-select: text; scroll-behavior: smooth; }
#title.leaving { opacity: 0; pointer-events: none; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 12px max(16px, calc(50% - 560px)); background: linear-gradient(180deg, rgba(12,18,32,.92), rgba(12,18,32,0)); }
.tb-logo { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; object-position: 50% 45%; box-shadow: 0 0 0 2px rgba(99,240,90,.55), 0 6px 18px rgba(0,0,0,.45); }
.tb-coin { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 99px; background: rgba(12,18,32,.75); border: 1px solid var(--line2); backdrop-filter: blur(8px); font-weight: 600; color: var(--muted); }
.tb-coin b { font: 900 italic 18px var(--head); color: var(--gold); }
.tb-sp { flex: 1; }
.tb-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(12,18,32,.75); border: 1px solid var(--line2); color: #fff; backdrop-filter: blur(8px); }
.tb-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero { position: relative; margin-top: -70px; height: min(78vh, 640px); overflow: hidden; }
.hero-bg { position: absolute; inset: -40px; background: url(img/logo.webp) center 40% / cover; filter: blur(26px) saturate(1.2) brightness(.75); }
.hero-art { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(820px, 112vw); aspect-ratio: 615 / 538; background: url(img/logo.webp) center / cover; -webkit-mask: radial-gradient(ellipse 50% 58% at 50% 46%, #000 55%, transparent 100%); mask: radial-gradient(ellipse 50% 58% at 50% 46%, #000 55%, transparent 100%); animation: heroIn 1.2s ease-out both; }
@keyframes heroIn { from { opacity: 0; transform: translateX(-50%) scale(1.04); } }
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(180deg, transparent, var(--bg) 92%); }
.page { position: relative; width: min(1120px, 100%); margin: -110px auto 0; padding: 0 16px 40px; }
.top-grid { display: grid; gap: 22px; }
.top-grid > * { min-width: 0; }
@media (min-width: 980px) { .top-grid { grid-template-columns: 1.05fr .95fr; align-items: start; } }
.eyebrow { margin: 0 0 12px; font: 800 13px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.eyebrow i { font-style: normal; color: var(--dim); margin: 0 6px; }
.big { margin: 0; font: 900 italic clamp(50px, 9vw, 92px)/.88 var(--head); text-transform: uppercase; letter-spacing: -.01em; color: #fff; text-shadow: 0 6px 30px rgba(0,0,0,.4); }
.big em { display: block; color: var(--gold); font-style: italic; }
.lede { margin: 16px 0 20px; max-width: 560px; font-size: 16px; color: #c3cfdf; }
.bounty-card { position: relative; padding: 18px 20px; border-radius: 4px 16px 16px 4px; background: linear-gradient(90deg, rgba(255,210,63,.1), rgba(255,255,255,.03) 60%); border-left: 4px solid var(--gold); }
.lbl { font: 800 12.5px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bnum { display: flex; align-items: baseline; gap: 10px; margin: 2px 0; }
.bnum b { font: 900 italic 62px/1 var(--head); color: #fff; }
.bnum em { font: 900 italic 28px var(--head); color: var(--gold); }
.bounty-card .sub { color: var(--muted); font-size: 14px; }
.bounty-card .sub b { color: #fff; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.stats > div { padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.stats span { display: block; font: 800 11.5px var(--body); letter-spacing: .1em; color: var(--muted); }
.stats b { font: 900 italic 30px/1.1 var(--head); color: #fff; }
.play-card { padding: 20px; border-radius: 22px; background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line2); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.pc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.tag-free { font: 800 11px var(--body); letter-spacing: .08em; padding: 4px 10px; border-radius: 99px; background: rgba(99,240,90,.12); color: var(--green); }
.live-line { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.live-line b { color: #fff; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(99,240,90,.7); animation: live 1.8s infinite; flex: none; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(99,240,90,0); } 100% { box-shadow: 0 0 0 0 rgba(99,240,90,0); } }
.card { width: 100%; padding: 20px; border-radius: 20px; color: var(--text); background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line2); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.mscreen { display: flex; flex-direction: column; gap: 12px; }
.mtitle { margin: 0; font: 900 italic 32px/1 var(--head); text-transform: uppercase; color: #fff; }
.mtitle.big { font-size: 46px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: var(--muted); }
.who { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.who b { color: #fff; }
.who .kind { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: rgba(255,255,255,.08); }
.avatar { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--sea); flex: none; background-size: cover; }
.avatar.sm { width: 26px; height: 26px; border-radius: 7px; font-size: 13px; }
#login-name { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(0,0,0,.25); font: 600 18px var(--body); color: #fff; outline: none; }
#login-name:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,210,63,.18); }
.field-lbl { font: 800 12px var(--body); letter-spacing: .1em; color: var(--muted); margin-bottom: -6px; }
.note { margin: -4px 0 0; font-size: 13px; color: var(--muted); }
.err { margin: 0; color: #ff8a8a; font-size: 13px; font-weight: 600; }
.err:empty { display: none; }
.err a { color: #c9b8ff; }
.ship-head { display: flex; align-items: center; gap: 10px; }
.ship-head .hl { font-size: 32px; line-height: 1; }
.rarity { font: 800 11px var(--body); letter-spacing: .08em; padding: 4px 10px; border-radius: 6px; background: var(--sea); color: #fff; }
.meme-pick { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.meme-opt { flex: none; width: 74px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7px 4px 6px; border-radius: 14px; border: 2px solid transparent; background: rgba(255,255,255,.05); color: var(--muted); font: 700 11px var(--body); transition: transform .1s, border-color .1s; }
.meme-opt canvas { width: 52px; height: 52px; border-radius: 12px; background: var(--hull); }
.meme-opt:hover { transform: translateY(-2px); color: #fff; }
.meme-opt.on { border-color: var(--gold); background: rgba(255,210,63,.1); color: #fff; box-shadow: 0 0 18px rgba(255,210,63,.18); }
.sec { margin-top: 64px; }
.sec h2 { margin: 0 0 18px; font: 900 italic clamp(34px, 6vw, 56px)/.95 var(--head); text-transform: uppercase; color: #fff; }
.two { display: grid; gap: 14px; }
@media (min-width: 820px) { .two { grid-template-columns: 1fr 1fr; } }
.list-card { padding: 16px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.list-card header { display: flex; justify-content: space-between; margin-bottom: 6px; }
.lrow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.lrow .n { color: var(--dim); font: 900 italic 18px var(--head); width: 22px; }
.lrow .who2 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow .who2 small { color: var(--muted); }
.lrow .amt { font: 900 italic 22px var(--head); color: #fff; }
.lrow .amt em { font-size: 13px; color: var(--gold); margin-left: 3px; }
.lrow.empty { color: var(--muted); }
.steps { display: grid; gap: 12px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.step .num { font: 900 italic 40px/1 var(--head); color: var(--gold); }
.step b { display: block; margin: 8px 0 6px; font: 900 italic 24px var(--head); text-transform: uppercase; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
.rules { display: grid; gap: 10px; }
@media (min-width: 760px) { .rules { grid-template-columns: repeat(3, 1fr); } }
.rule { padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.rule b { display: block; font: 900 italic 30px var(--head); color: #fff; }
.rule.hot { border-color: rgba(255,210,63,.4); background: linear-gradient(180deg, rgba(255,210,63,.08), var(--card)); }
.rule.hot b { color: var(--gold); }
.rule p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.foot { margin-top: 64px; padding: 26px 0 10px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; color: var(--muted); font-size: 13.5px; }
.foot .brand { display: flex; align-items: center; gap: 10px; font: 900 italic 22px var(--head); color: #fff; text-transform: uppercase; }
.foot .brand img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.foot p { width: 100%; margin: 0; color: var(--dim); }
#sound-hint { position: fixed; bottom: 14px; right: 14px; z-index: 31; background: rgba(12,18,32,.85); color: #fff; border: 1px solid var(--line2); padding: 8px 14px; border-radius: 99px; font-size: 13px; transition: opacity .5s; }
#sound-hint.gone { opacity: 0; pointer-events: none; }
.coin { display: inline-block; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6c0, #ffd23f 40%, #c8860e); box-shadow: inset 0 -2px 0 rgba(0,0,0,.25), 0 0 10px rgba(255,210,63,.4); position: relative; flex: none; }
.coin::after { content: '$'; position: absolute; inset: 0; display: grid; place-items: center; font: 800 14px var(--body); color: #7a4a00; }
.coin.sm { width: 16px; height: 16px; } .coin.sm::after { font-size: 10px; }

/* ---------- HUD ---------- */
#hud, #compass, #killfeed, #map-card, #chat, #helm, #crosshair, #touch { display: none; }
body.playing #hud, body.playing #compass, body.playing #killfeed, body.playing #map-card, body.playing #chat, body.playing #helm, body.playing #crosshair { display: flex; }
body.playing.touch #touch { display: block; }
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(8px); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
#hud { position: fixed; top: max(10px, env(safe-area-inset-top)); left: 10px; right: 10px; z-index: 10; gap: 8px; align-items: flex-start; pointer-events: none; }
#hud > * { pointer-events: auto; }
.player { display: flex; gap: 10px; padding: 8px 12px 8px 8px; align-items: center; min-width: 220px; }
.player .who { display: flex; flex-direction: column; align-items: stretch; gap: 1px; justify-content: flex-start; font-size: 12px; }
.player .who b { font-size: 15px; }
#hud-loc { color: #9fd0e3; font-size: 11.5px; }
.hull { position: relative; width: 160px; height: 14px; border-radius: 99px; background: rgba(0,0,0,.45); overflow: hidden; margin-top: 3px; }
.hull i { position: absolute; inset: 0 auto 0 0; width: 100%; background: linear-gradient(90deg, #2fbf71, #67e29b); transition: width .25s, background .25s; }
.hull i.mid { background: linear-gradient(90deg, #e9a81f, #ffd166); } .hull i.low { background: linear-gradient(90deg, #c92a2a, #ff6b6b); }
.hull span { position: relative; display: block; text-align: center; font-size: 10px; font-weight: 700; line-height: 14px; text-shadow: 0 1px 2px #000; }
.money { padding: 8px 12px; display: flex; flex-direction: column; gap: 5px; min-width: 210px; margin-left: auto; }
.purse { display: flex; align-items: center; gap: 9px; }
.purse b { display: block; font-size: 16px; color: var(--gold); }
.purse small { color: #a8cbd9; font-size: 11px; }
.bar { height: 6px; border-radius: 99px; background: rgba(0,0,0,.4); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold2), var(--gold)); transition: width .4s; }
.bar.big { height: 10px; background: rgba(58,36,16,.18); }
.kd { color: #cfe6f0; font-size: 11.5px; }
.money.pop { animation: pop .6s; }
@keyframes pop { 30% { transform: scale(1.08); box-shadow: 0 0 30px rgba(255,207,74,.6); } }
.actions { display: flex; gap: 2px; padding: 4px; }
.actions button { width: 38px; height: 38px; display: grid; place-items: center; background: none; border: 0; border-radius: 10px; color: #fff; }
.actions button:hover { background: rgba(255,255,255,.1); }
.actions svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#btn-sound .off-i { display: none; } #btn-sound.off .on-i { display: none; } #btn-sound.off .off-i { display: block; }
#compass { position: fixed; top: max(12px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 9; width: 420px; max-width: 34vw; height: 34px; border-radius: 10px; pointer-events: none; }
#killfeed { position: fixed; top: 80px; right: 12px; z-index: 9; flex-direction: column; align-items: flex-end; gap: 4px; pointer-events: none; }
.kf { padding: 5px 10px; border-radius: 8px; background: rgba(5,20,35,.7); border: 1px solid var(--line); font-size: 13px; animation: kfin .3s; }
.kf b { color: #ffb3b3; } .kf .me { color: var(--gold); } .kf em { font-style: normal; color: var(--gold); font-weight: 700; }
@keyframes kfin { from { transform: translateX(30px); opacity: 0; } }
#map-card { position: fixed; right: 12px; bottom: 12px; z-index: 9; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border-radius: 50% 50% 16px 16px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(8px); }
#minimap { width: 180px; height: 180px; border-radius: 50%; }
#radar-text { font-size: 11px; color: #a8cbd9; max-width: 180px; text-align: center; }
#toasts { position: fixed; top: 92px; left: 50%; transform: translateX(-50%); z-index: 20; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; width: min(560px, calc(100% - 32px)); }
.toast { padding: 9px 16px; border-radius: 12px; background: rgba(5,20,35,.86); border: 1px solid var(--line); font-size: 14px; text-align: center; animation: tin .35s; }
.toast.gold { border-color: rgba(255,207,74,.6); color: #ffe9a8; }
.toast.out { opacity: 0; transform: translateY(-8px); transition: .4s; }
@keyframes tin { from { opacity: 0; transform: translateY(-10px); } }
#announce { position: fixed; top: 140px; left: 50%; transform: translateX(-50%) translateY(-20px); z-index: 21; display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 14px; background: linear-gradient(180deg, #ffe07a, #e9a81f); color: #3b2302; font-weight: 700; text-decoration: none; opacity: 0; box-shadow: 0 10px 30px rgba(0,0,0,.4); max-width: calc(100% - 32px); }
#announce.show { animation: ann 7.5s forwards; }
#announce.big { font-size: 18px; }
#announce em { font-style: normal; font-size: 11px; opacity: .7; }
@keyframes ann { 6% { opacity: 1; transform: translateX(-50%) translateY(0); } 90% { opacity: 1; transform: translateX(-50%) translateY(0); } 100% { opacity: 0; } }

#chat { position: fixed; left: 12px; bottom: 12px; z-index: 9; flex-direction: column; gap: 6px; width: min(340px, calc(100% - 230px)); }
#chat-log { display: flex; flex-direction: column; gap: 3px; max-height: 190px; overflow: hidden; justify-content: flex-end; mask-image: linear-gradient(to bottom, transparent, #000 30%); }
.cl { font-size: 13px; text-shadow: 0 1px 3px #000, 0 0 6px rgba(0,0,0,.6); animation: tin .25s; }
.cl b { color: #9fe0ff; } .cl.sys { color: #ffe08a; } .cl.ann { color: var(--gold); font-weight: 600; }
#chat-form { display: none; gap: 6px; }
#chat.open #chat-form { display: flex; }
#chat-input { flex: 1; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(5,20,35,.85); color: #fff; font: inherit; outline: none; }
#chat-form button { width: 40px; border-radius: 10px; border: 0; background: var(--sea); color: #fff; }
#chat-form svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }

/* helm: sails + guns */
#helm { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 9; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.guns { display: flex; gap: 10px; align-items: stretch; }
.gun, .sails { background: var(--glass); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(8px); padding: 8px 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 104px; }
.gun > span { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; color: #a8cbd9; }
.gun.aim { border-color: rgba(255,207,74,.75); box-shadow: 0 0 18px rgba(255,207,74,.25); }
.gun.aim > span { color: var(--gold); }
.pips { display: flex; gap: 5px; }
.pips i { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #777, #111); box-shadow: 0 0 0 2px rgba(255,255,255,.15); }
.gun.empty .pips i { opacity: .25; }
.reload { width: 70px; height: 4px; border-radius: 99px; background: rgba(0,0,0,.45); overflow: hidden; }
.reload i { display: block; height: 100%; width: 100%; background: var(--gold); }
.sails { min-width: 120px; }
.sail-steps { display: flex; flex-direction: column; gap: 3px; }
.sail-steps i { width: 54px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.15); }
.sail-steps i.on { background: linear-gradient(90deg, #f3e3bf, #fff); box-shadow: 0 0 8px rgba(255,255,255,.3); }
.sail-steps i[data-s="0"] { width: 24px; margin: 0 auto; }
.sail-steps i[data-s="0"].on { background: var(--gold); }
#sail-name { font-size: 13px; }
#speed { font-size: 11px; color: #a8cbd9; }
.kits { font-size: 12px; padding: 4px 12px; border-radius: 99px; background: var(--glass); border: 1px solid var(--line); }
.kits.none { opacity: .5; }

#crosshair { position: fixed; left: 50%; top: 50%; z-index: 8; width: 34px; height: 34px; margin: -17px 0 0 -17px; pointer-events: none; align-items: center; justify-content: center; }
#crosshair::before, #crosshair::after { content: ''; position: absolute; background: rgba(255,255,255,.85); box-shadow: 0 0 3px #000; }
#crosshair::before { width: 2px; height: 34px; left: 16px; mask: linear-gradient(#000 35%, transparent 35% 65%, #000 65%); -webkit-mask: linear-gradient(#000 35%, transparent 35% 65%, #000 65%); }
#crosshair::after { height: 2px; width: 34px; top: 16px; mask: linear-gradient(90deg, #000 35%, transparent 35% 65%, #000 65%); -webkit-mask: linear-gradient(90deg, #000 35%, transparent 35% 65%, #000 65%); }
#crosshair i { width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid #fff; }
#crosshair.cool { opacity: .4; }
#hitmark { position: fixed; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; z-index: 8; pointer-events: none; opacity: 0; background:
  linear-gradient(45deg, transparent 46%, #ffcf4a 46% 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, #ffcf4a 46% 54%, transparent 54%); mask: radial-gradient(circle, transparent 8px, #000 9px); -webkit-mask: radial-gradient(circle, transparent 8px, #000 9px); }
#hitmark.show { animation: hm .35s; }
@keyframes hm { 0% { opacity: 1; transform: scale(1.3); } 100% { opacity: 0; transform: scale(1); } }
#vignette { position: fixed; inset: 0; z-index: 7; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at center, transparent 50%, rgba(200,20,20,.6)); transition: opacity .5s; }
#vignette.hit { opacity: 1; transition: none; }
#vignette.low { opacity: .55; animation: throb 1.2s infinite; }
@keyframes throb { 50% { opacity: .3; } }
#storm-fx { position: fixed; inset: 0; z-index: 6; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at center, transparent 30%, rgba(30,30,60,.6)); transition: opacity 1s; }
#storm-fx.on { opacity: 1; }
#storm-fx.flash { background: rgba(230,240,255,.55); transition: none; }
#storm-warn, #spawnprot { position: fixed; top: 30%; left: 50%; transform: translateX(-50%); z-index: 9; padding: 8px 16px; border-radius: 12px; font-weight: 700; pointer-events: none; display: none; text-align: center; max-width: calc(100% - 32px); }
#storm-warn { background: rgba(120,20,20,.85); animation: throb 1s infinite; }
#spawnprot { top: auto; bottom: 150px; background: rgba(30,90,140,.8); font-size: 13px; }
#storm-warn.on, #spawnprot.on { display: block; }
#center-msg { position: fixed; top: 38%; left: 50%; transform: translate(-50%, -50%); z-index: 12; pointer-events: none; text-align: center; font: 400 54px var(--head); color: var(--gold); text-shadow: 0 4px 0 rgba(0,0,0,.4), 0 0 30px rgba(255,207,74,.5); opacity: 0; white-space: nowrap; }
#center-msg small { display: block; font: 700 18px var(--body); color: #fff; }
#center-msg.show { animation: cm 2.6s forwards; }
@keyframes cm { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 20% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%); } }
.dmgnum { position: fixed; z-index: 8; pointer-events: none; font: 800 18px var(--body); color: #ffcf4a; text-shadow: 0 2px 3px #000; animation: dn 1s forwards; }
@keyframes dn { to { transform: translateY(-50px); opacity: 0; } }
#board { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 15; width: min(460px, calc(100% - 32px)); padding: 16px; border-radius: 16px; background: rgba(5,20,35,.92); border: 1px solid var(--line); display: none; }
#board.show { display: block; }
#board h3 { margin: 0 0 10px; font: 400 26px var(--head); color: var(--gold); }
#board h3 small { font: 12px var(--body); color: #a8cbd9; }
.brow { display: grid; grid-template-columns: 26px 1fr auto auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 8px; font-size: 14px; }
.brow:nth-child(odd) { background: rgba(255,255,255,.04); }
.brow.me { background: rgba(255,207,74,.15); }
.brow .tagbot { font-size: 10px; padding: 1px 6px; border-radius: 99px; background: rgba(255,255,255,.12); color: #a8cbd9; margin-left: 6px; }
.brow .hpb { width: 60px; height: 5px; border-radius: 3px; background: rgba(0,0,0,.4); overflow: hidden; } .brow .hpb i { display: block; height: 100%; background: var(--green); }
#death { position: fixed; inset: 0; z-index: 14; display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: radial-gradient(ellipse at center, rgba(5,20,35,.35), rgba(5,20,35,.85)); pointer-events: none; }
#death.show { display: flex; }
#death h2 { margin: 0; font: 400 clamp(40px, 9vw, 72px) var(--head); color: #ff8a8a; text-shadow: 0 4px 0 rgba(0,0,0,.5); }
#death p { margin: 6px 0; font-size: 17px; }
#death .timer { color: #a8cbd9; }

/* touch controls */
#touch { position: fixed; inset: 0; z-index: 8; pointer-events: none; display: none; }
#touch > * { pointer-events: auto; }
#joy { position: absolute; left: 24px; bottom: 120px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.2); }
#joy-knob { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; background: rgba(255,255,255,.35); }
#touch button { position: absolute; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); background: rgba(5,20,35,.55); color: #fff; font-size: 22px; }
#t-fire { right: 210px; bottom: 120px; width: 84px; height: 84px; font-size: 34px; background: rgba(160,40,20,.6); }
#t-repair { right: 220px; bottom: 220px; width: 54px; height: 54px; }
#t-sail-up { left: 160px; bottom: 200px; width: 54px; height: 54px; }
#t-sail-down { left: 160px; bottom: 130px; width: 54px; height: 54px; }
body.touch #joy { left: 16px; bottom: 118px; }
body.touch #t-sail-up { left: 150px; bottom: 186px; } body.touch #t-sail-down { left: 150px; bottom: 120px; }
body.touch #t-fire { right: 16px; bottom: 118px; } body.touch #t-repair { right: 30px; bottom: 214px; }
body.touch #chat { bottom: auto; top: 150px; width: min(240px, 60%); }
body.touch #chat-log { max-height: 80px; }
body.touch #helm { bottom: 6px; transform: translateX(-50%) scale(.82); transform-origin: bottom center; }
body.touch #helm kbd { display: none; }
body.touch #spawnprot { bottom: auto; top: 34%; }
@media (orientation: landscape) and (max-height: 500px) {
  body.touch #chat { top: 70px; } body.touch #joy { bottom: 20px; } body.touch #t-sail-up { bottom: 88px; left: 150px; } body.touch #t-sail-down { bottom: 22px; left: 150px; }
  body.touch #t-fire { bottom: 20px; right: 210px; } body.touch #t-repair { bottom: 110px; right: 220px; }
  body.touch #map-card { top: auto; bottom: 8px; }
}

/* pause + modals */
#pause { position: fixed; inset: 0; z-index: 25; display: grid; place-items: center; background: rgba(5,20,35,.6); backdrop-filter: blur(3px); padding: 16px; }
.pause-card { width: min(400px, 100%); display: flex; flex-direction: column; gap: 12px; text-align: center; }
.pause-warn { margin: -4px 0 0; color: #8a3b10; font-size: 13px; font-weight: 600; }
.pause-keys { margin: 0; font-size: 12px; color: #6b4a26; }
.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(5,20,35,.7); padding: 16px; }
.panel { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 18px 20px; border-radius: 18px; background: linear-gradient(180deg, #13385a, #0b2238); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.5); user-select: text; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.panel-head h2 { margin: 0; font: 400 32px var(--head); color: var(--gold); }
.panel-head button { background: rgba(255,255,255,.1); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 10px; }
.panel h3 { margin: 18px 0 8px; font-size: 14px; color: #a8cbd9; text-transform: uppercase; letter-spacing: .1em; }
.muted { color: #a8cbd9; font-size: 13px; }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.how-step { padding: 12px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.how-step b { display: block; font-size: 16px; margin: 4px 0; color: var(--gold); }
.how-step p { margin: 0; font-size: 13px; color: #cfe6f0; }
.how-step p b { display: inline; font-size: 13px; margin: 0; }
.how-ico { font-size: 26px; }
.how-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-size: 13px; }
.set-row { display: grid; grid-template-columns: 1fr 140px 48px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.set-row.check { grid-template-columns: 1fr auto; }
.set-row input[type=range] { accent-color: var(--gold); }
.set-row input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--gold); }
.wbal { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 4px 0 10px; }
.wbal b { font-size: 40px; color: var(--gold); }
.pump-eq { color: #fff; font-weight: 600; }
.wbal > span:last-child { color: #a8cbd9; font-size: 13px; }
#w-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
#w-form label { font-size: 13px; color: #a8cbd9; }
#w-wallet { width: 100%; margin-top: 4px; padding: 11px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.3); color: #fff; font: 13px ui-monospace, monospace; }
.linked { margin: 0; font-size: 13px; color: #cfe6f0; word-break: break-all; }
.ok { color: var(--green); font-weight: 600; }
.ok:empty { display: none; }
.wh { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.wh .st { font-size: 11px; padding: 1px 8px; border-radius: 99px; background: rgba(255,255,255,.1); }
.wh .st.paid { background: rgba(60,207,122,.2); color: var(--green); } .wh .st.pending { background: rgba(255,207,74,.2); color: var(--gold); } .wh .st.rejected { background: rgba(229,72,77,.2); color: #ff9a9a; }

@media (max-width: 760px) {
  #compass { display: none !important; }
  .money { min-width: 0; } .player { min-width: 0; } .hull { width: 110px; }
  .actions button { width: 32px; height: 32px; }
  #hud { flex-wrap: wrap; }
  #map-card { bottom: auto; top: 140px; padding: 5px; } #minimap { width: 110px; height: 110px; } #radar-text { display: none; }
  #killfeed { top: 270px; }
  .how-steps, .how-keys { grid-template-columns: 1fr; }
  .set-row { grid-template-columns: 1fr 100px 40px; }
  #center-msg { font-size: 38px; }
}
@media (max-width: 480px) {
  .chips { grid-template-columns: 1fr 1fr; } .chips .chip:last-child { grid-column: span 2; }
  .player { padding: 6px; } .player .avatar { display: none; }
  .money { order: 3; width: 100%; flex-direction: row; align-items: center; padding: 6px 10px; } .money .bar, .money .kd { display: none; }
  #map-card { top: 150px; }
}


/* in-game: same voice as the landing page */
#center-msg, #death h2, #board h3, .panel-head h2 { font-family: var(--head); font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -.01em; }
#center-msg { color: var(--gold); }
.panel { background: linear-gradient(180deg, var(--card2), var(--bg2)); border-color: var(--line2); }
.panel-head h2 { color: #fff; font-size: 34px; }
.pause-warn { color: #ffb4a0; } .pause-keys { color: var(--muted); }
.gun.aim { border-color: var(--gold); box-shadow: 0 0 18px rgba(255,210,63,.25); }
.purse b, .wbal b, .chip b { font-family: var(--head); font-style: italic; font-weight: 900; }
.wbal b { font-size: 48px; }
#hud-flag { background-position: center; background-size: cover; }
#talk { position: fixed; left: 50%; bottom: 168px; transform: translateX(-50%); z-index: 9; display: none; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 99px; background: rgba(99,240,90,.16); border: 1px solid rgba(99,240,90,.6); color: #dfffdc; font-weight: 700; pointer-events: none; }
#talk.show { display: flex; } #talk.asking { background: rgba(255,210,63,.15); border-color: var(--gold); }
.talk-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); animation: live 1s infinite; }
.voice-hint { position: fixed; left: 12px; bottom: 214px; z-index: 9; font-size: 12px; color: var(--muted); display: none; }
body.playing:not(.touch) .voice-hint { display: block; }
#t-mic { left: 160px; bottom: 256px; width: 54px; height: 54px; }
body.touch #t-mic { left: 220px; bottom: 150px; }
.topbar.solid { background: rgba(12,18,32,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }

/* ---------- see-through landing page: the live sea shows behind everything ---------- */
#title { background: transparent; }
.hero-bg { display: none; }
.hero::after { background: linear-gradient(180deg, transparent 40%, rgba(12,18,32,.35)); }
.topbar { background: linear-gradient(180deg, rgba(12,18,32,.55), rgba(12,18,32,0)); }
.glassy, .intro, .sec, .foot { background: linear-gradient(180deg, rgba(12,18,32,.58), rgba(12,18,32,.74)); border: 1px solid var(--line); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); border-radius: 24px; }
.intro { padding: 22px; }
.sec { padding: 24px 22px; margin-top: 40px; }
.foot { padding: 20px 22px; margin-top: 40px; }
.big, .sec h2 { text-shadow: 0 4px 24px rgba(0,0,0,.55); }
.stats > div, .list-card, .step, .rule { background: rgba(20,30,49,.72); }
/* the play card is built from blocks so the 3D window in the middle can be truly see-through */
.play-card { padding: 0; background: none; border: 0; box-shadow: none; display: flex; flex-direction: column; filter: drop-shadow(0 24px 40px rgba(0,0,0,.45)); }
.pc-block { padding: 18px 20px; background: linear-gradient(180deg, rgba(26,38,60,.94), rgba(20,30,49,.94)); border: 1px solid var(--line2); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); }
.pc-top { border-radius: 22px 22px 0 0; border-bottom: 0; padding-bottom: 12px; }
.pc-bottom { border-radius: 0 0 22px 22px; border-top: 0; display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }
.play-card.solo .pc-top { border-radius: 22px; border-bottom: 1px solid var(--line2); padding-bottom: 18px; }
.play-card.solo .main-only { display: none; }
.ship-view { position: relative; height: 260px; border-left: 1px solid var(--line2); border-right: 1px solid var(--line2); box-shadow: inset 0 0 50px rgba(0,0,0,.35); cursor: grab; touch-action: pan-y; }
.ship-view:active { cursor: grabbing; }
.ship-view::before, .ship-view::after { content: ''; position: absolute; left: 0; right: 0; height: 26px; pointer-events: none; }
.ship-view::before { top: 0; background: linear-gradient(180deg, rgba(20,30,49,.94), transparent); }
.ship-view::after { bottom: 0; background: linear-gradient(0deg, rgba(26,38,60,.94), transparent); }
.sv-hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 1; white-space: nowrap; font: 700 11.5px var(--body); color: #fff; padding: 4px 11px; border-radius: 99px; background: rgba(0,0,0,.42); pointer-events: none; }
@media (max-width: 480px) { .ship-view { height: 220px; } .sv-hint { font-size: 10.5px; } }

/* no big logo picture: the live sea is the hero */
.hero { height: min(52vh, 460px); }
.hero::after { display: none; }
.page { margin-top: -40px; }
.tb-name { font: 900 italic 22px var(--head); text-transform: uppercase; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.5); white-space: nowrap; }
@media (max-width: 480px) { .tb-name { display: none; } }
a.tb-btn { text-decoration: none; }
a.tb-btn svg { width: 18px; height: 18px; }
a.link-btn { text-decoration: none; }
.btn-x { background: #000; border-color: rgba(255,255,255,.2); text-decoration: none; }
.btn-x svg { width: 18px; height: 18px; }

/* =================== SEACRAFT: blocky, pixel-art UI (same layout, new skin) =================== */
:root {
  --head: 'Press Start 2P', monospace; --body: 'Pixelify Sans', monospace;
  --gold: #ffd84a; --green: #6fe04a; --sea: #3c78d8;
  --bevel: inset 3px 3px 0 rgba(255,255,255,.13), inset -3px -3px 0 rgba(0,0,0,.45);
}
html, body { font: 500 16px/1.45 var(--body); }
img, canvas, .tb-logo, .hero-banner { image-rendering: pixelated; }
*, *::before, *::after { border-radius: 0 !important; }
.hl, .big, .sec h2, .mtitle, .step b, .rule b, .bnum b, .stats b, .tb-name, .tb-coin b, .lrow .amt, .lrow .n, .step .num,
#center-msg, #death h2, #board h3, .panel-head h2, .purse b, .wbal b, .ship-head .hl, .btn-big, .foot .brand { font-family: var(--head) !important; font-style: normal !important; font-weight: 400 !important; letter-spacing: 0 !important; text-transform: none; }
/* blocky panels */
.intro, .sec, .foot, .list-card, .step, .rule, .stats > div, .glass, .gun, .sails, .kits, .kf, .toast, #board, .panel, .card, #map-card, .tb-coin, .tb-btn, #chat-input, .bounty-card {
  border: 3px solid #121212 !important; box-shadow: var(--bevel) !important; }
.intro, .sec, .foot { background: linear-gradient(rgba(20,20,24,.72), rgba(20,20,24,.82)); }
.list-card, .step, .rule, .stats > div { background: rgba(48,48,54,.82); }
.glass, .gun, .sails, .kits, .kf, .toast, #board, #map-card { background: rgba(28,28,32,.82); }
.panel, .card { background: linear-gradient(rgba(30,30,34,.9), rgba(22,22,26,.94)); }
.bounty-card { background: linear-gradient(90deg, rgba(255,216,74,.14), rgba(48,48,54,.82)); border-left: 6px solid var(--gold) !important; }
.tb-coin, .tb-btn { background: rgba(28,28,32,.85); }
.tb-logo { object-fit: cover; object-position: 52% 62%; border: 3px solid #121212; box-shadow: var(--bevel); }
.tb-name { font-size: 17px; text-shadow: 3px 3px 0 #2a2a2a; }
.tb-coin b { font-size: 11px; color: var(--gold); text-shadow: 2px 2px 0 #3d2e00; }
/* hero: the SEACRAFT banner in a block frame */
.hero { height: auto; display: flex; justify-content: center; padding: 84px 16px 0; margin-top: -70px; overflow: visible; }
.hero-banner { width: min(980px, 100%); aspect-ratio: 3 / 1; object-fit: cover; border: 4px solid #121212; box-shadow: var(--bevel), 0 18px 50px rgba(0,0,0,.45); animation: heroIn .9s ease-out both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(12px); } }
.page { margin-top: 22px; }
/* headings: pixel font with a hard drop shadow */
.eyebrow { font: 600 15px var(--body); letter-spacing: .06em; color: var(--gold); text-shadow: 2px 2px 0 #3d2e00; }
.big { font-size: clamp(22px, 4.1vw, 44px); line-height: 1.3; color: #fff; text-shadow: 4px 4px 0 #2a2a2a; }
.big em { color: var(--gold); text-shadow: 4px 4px 0 #3d2e00; margin-top: 8px; }
.lede { font-size: 17px; color: #e4e4e4; }
.sec h2 { font-size: clamp(18px, 2.9vw, 30px); line-height: 1.35; text-shadow: 3px 3px 0 #2a2a2a; }
.lbl { font: 600 13px var(--body); letter-spacing: .08em; color: #c8c8c8; }
.bnum b { font-size: clamp(24px, 3.6vw, 36px); text-shadow: 3px 3px 0 #2a2a2a; }
.bnum em { font: 400 12px var(--head); font-style: normal; color: var(--gold); text-shadow: 2px 2px 0 #3d2e00; }
.stats span { font: 600 12px var(--body); color: #bdbdbd; }
.stats b { font-size: 16px; line-height: 1.7; text-shadow: 2px 2px 0 #2a2a2a; }
.step .num { font-size: 22px; text-shadow: 3px 3px 0 #3d2e00; }
.step b { font-size: 13px; line-height: 1.5; margin: 12px 0 8px; }
.rule b { font-size: 20px; line-height: 1.5; text-shadow: 3px 3px 0 #2a2a2a; }
.lrow .amt { font-size: 13px; } .lrow .amt em { font-family: var(--body); font-size: 12px; }
.lrow .n { font-size: 12px; }
.foot .brand { font-size: 14px; }
.tag-free { font: 600 12px var(--body); background: rgba(111,224,74,.16); color: var(--green); border: 2px solid rgba(111,224,74,.4); }
.rarity { font: 600 12px var(--body); background: var(--sea); border: 2px solid #121212; box-shadow: inset 2px 2px 0 rgba(255,255,255,.2); }
.ship-head .hl { font-size: 18px; text-shadow: 3px 3px 0 #2a2a2a; }
.mtitle { font-size: 17px; line-height: 1.5; text-shadow: 3px 3px 0 #2a2a2a; }
/* the play card is a wooden crate */
.pc-block { background: linear-gradient(rgba(30,18,6,.45), rgba(30,18,6,.6)), var(--tex-planks); background-size: auto, 48px 48px; border: 3px solid #121212 !important; box-shadow: var(--bevel); }
.pc-top { border-bottom: 0 !important; } .pc-bottom { border-top: 0 !important; }
.play-card.solo .pc-top { border-bottom: 3px solid #121212 !important; }
.ship-view { border-left: 3px solid #121212; border-right: 3px solid #121212; box-shadow: inset 0 0 0 3px rgba(0,0,0,.25); }
.ship-view::before { background: linear-gradient(180deg, rgba(30,18,6,.55), transparent); } .ship-view::after { background: linear-gradient(0deg, rgba(30,18,6,.55), transparent); }
.sv-hint { font: 600 12px var(--body); background: rgba(0,0,0,.55); }
.who { color: #e0d6c8; } .who b { color: #fff; }
/* inventory-slot meme picker */
.meme-opt { width: 70px; background: #8b8b8b; border: 3px solid #121212; box-shadow: inset 3px 3px 0 #373737, inset -3px -3px 0 #fff; color: #1d1d1d; font: 700 12px var(--body); padding: 6px 3px 5px; }
.meme-opt canvas { width: 48px; height: 48px; border: 2px solid rgba(0,0,0,.35); }
.meme-opt:hover { background: #a3a3a3; transform: none; color: #000; }
.meme-opt.on { background: #c6c6c6; border-color: #fff; box-shadow: 0 0 0 3px #121212, inset 3px 3px 0 #555, inset -3px -3px 0 #fff; color: #000; }
/* stone buttons, grass-block primary */
.btn { background: var(--tex-stone); background-size: 48px 48px; border: 3px solid #121212 !important; box-shadow: inset 3px 3px 0 rgba(255,255,255,.28), inset -3px -4px 0 rgba(0,0,0,.45); color: #fff; font: 700 17px var(--body); text-shadow: 2px 2px 0 #3a3a3a; }
.btn:hover { filter: brightness(1.12); outline: 3px solid #fff; outline-offset: -6px; transform: none; }
.btn-gold { background: var(--tex-grass); background-size: 54px 54px; background-repeat: repeat-x; background-color: #7a5434; color: #fff; text-shadow: 3px 3px 0 #2a2a2a; box-shadow: inset 3px 3px 0 rgba(255,255,255,.25), inset -3px -4px 0 rgba(0,0,0,.5), 0 6px 0 rgba(0,0,0,.35); }
.btn-big { font-size: 19px; padding: 18px; }
.btn-big kbd { color: #fff; background: rgba(0,0,0,.35); border-color: rgba(0,0,0,.5); font-family: var(--body); }
.btn-phantom { background: #8b7fe0; color: #fff; }
.btn-phantom svg path { fill: #fff; }
.btn-dark { background: rgba(28,28,32,.85); }
.btn-x { background: #000; }
.link-btn { font: 600 14px var(--body); color: #ffe27a; text-shadow: 2px 2px 0 #3d2e00; }
#login-name { border: 3px solid #121212; background: #000; color: #fff; font: 600 18px var(--body); box-shadow: inset 2px 2px 0 #555; }
kbd { font-family: var(--body); }
/* in-game HUD */
.hull { height: 16px; background: #000; border: 2px solid #121212; } .hull i { background: linear-gradient(#7be05a, #46a92f); } .hull i.mid { background: linear-gradient(#ffd84a, #c99b1b); } .hull i.low { background: linear-gradient(#ff6b5a, #b82a1e); }
.hull span { font: 600 11px var(--body); line-height: 12px; }
.purse b { font-size: 11px; color: var(--gold); text-shadow: 2px 2px 0 #3d2e00; line-height: 1.7; }
.bar { background: #000; border: 2px solid #121212; height: 9px; } .bar i { background: linear-gradient(#7be05a, #46a92f); }
.pips i { background: var(--tex-cobble); background-size: 14px; }
.sail-steps i.on { background: var(--tex-wool); background-size: 16px; }
.reload i { background: var(--gold); }
#center-msg { font-size: 28px; text-shadow: 4px 4px 0 #3d2e00; line-height: 1.4; } #center-msg small { font-family: var(--body); font-size: 18px; }
#death h2 { font-size: clamp(22px, 4.5vw, 38px); line-height: 1.4; color: #ff7b6b; text-shadow: 4px 4px 0 #3a0e09; }
#board h3 { font-size: 15px; line-height: 1.6; } .panel-head h2 { font-size: 17px; line-height: 1.5; color: #fff; text-shadow: 3px 3px 0 #2a2a2a; }
.wbal b { font-size: 28px; line-height: 1.5; text-shadow: 3px 3px 0 #3d2e00; }
#announce { border: 3px solid #121212; font-family: var(--body); }
.cl { font-family: var(--body); font-size: 15px; }
.avatar { border: 2px solid #121212; image-rendering: pixelated; }
.coin { background: linear-gradient(#ffe36b, #e7ac1d); box-shadow: inset 2px 2px 0 rgba(255,255,255,.35), inset -2px -2px 0 rgba(0,0,0,.35); } .coin::after { color: #6b4300; font-family: var(--head); font-size: 10px; }
@media (max-width: 480px) { .tb-name { display: none; } .hero { padding-top: 76px; } .big { font-size: 21px; } }
.big, .big em { font-style: normal !important; text-transform: uppercase; }

/* Pump.fun buy buttons */
a.tb-coin { text-decoration: none; }
.tb-buy { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; background: #4fd36a; color: #fff; text-decoration: none; font: 700 15px var(--body); text-shadow: 2px 2px 0 #1f5a2a; border: 3px solid #121212; box-shadow: inset 3px 3px 0 rgba(255,255,255,.3), inset -3px -3px 0 rgba(0,0,0,.3); white-space: nowrap; }
.tb-buy:hover { filter: brightness(1.1); }
.tb-buy svg, .btn-pump svg { width: 18px; height: 18px; flex: none; }
.btn-pump { background: #4fd36a !important; text-decoration: none; text-shadow: 2px 2px 0 #1f5a2a; }
.ca { font-size: 13px; color: #c8c8c8; word-break: break-all; } .ca code { font-family: var(--body); color: #fff; }
@media (max-width: 640px) { .tb-buy span { display: none; } .tb-buy { padding: 0 11px; } }
