@font-face {
  font-family: 'Club Display';
  src: url('./assets/club-display.woff2') format('woff2');
  font-style: italic;
  font-weight: 800;
  font-display: swap;
}
:root {
  --chrome: #f8eee0;
  --ui-glow: color-mix(in srgb, var(--accent) 63%, #fb4fa1);
  --club-title: 'Club Display', Impact, 'Arial Black', system-ui, sans-serif;
  --club-mono: ui-monospace, 'SF Mono', Consolas, monospace;
}
body {
  background:
    radial-gradient(ellipse at 15% 83%, #571f451f, transparent 52%),
    repeating-linear-gradient(144deg, transparent 0 168px, #916d8310 169px 170px, transparent 171px 186px),
    var(--bg);
  min-height: 100vh;
}
.top {
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 39%, var(--edge));
  background: linear-gradient(115deg, #141019, #0c0c11 50%, #19111c);
}
.nav { gap: clamp(18px, 3vw, 42px); }
.nav nav {
  gap: clamp(14px, 2.1vw, 30px);
  align-items: center;
  font: italic 800 clamp(15px, 1.65vw, 20px) / 1 var(--club-title);
  text-transform: uppercase;
}
.nav nav a { padding: 10px 0 8px; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav nav a[aria-current=page] { border-bottom-color: var(--accent); }
.primary, .secondary, .wallet {
  font: italic 800 18px / 1.15 var(--club-title);
  letter-spacing: .015em;
  text-transform: uppercase;
  border-radius: 4px;
  min-height: 39px;
}
.primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 78%, white), var(--accent));
  box-shadow: 3px 4px #09060b;
}
.primary span, .secondary span { font: 800 .94em / 1 system-ui, sans-serif; }
.secondary, .wallet { background: #1d1523; }
.wallet { border-color: var(--accent); color: var(--paper); }
.ctas a {
  font-size: clamp(20px, 2.5vw, 29px);
  padding: 14px 24px;
  min-width: 184px;
  border-radius: 5px;
}
.hero-copy { gap: clamp(18px, 3vw, 39px); }
[data-layout=street-meet] .hero { min-height: clamp(490px, 52vw, 735px); }
[data-layout=street-meet] .hero-art {
  background:
    linear-gradient(0deg, var(--bg), transparent 26%),
    radial-gradient(ellipse at 50% 48%, #1a10275c, transparent 60%),
    url('./assets/street-meet.jpg') center 38% / cover, #322131;
}
.coin-section, .home-guide { width: min(var(--wide), calc(100% - 72px)); margin: 0 auto 48px; scroll-margin-top: 18px; }
.coin-section { padding-top: 8px; }
.section-head, .club-heading { align-items: center; gap: 18px; }
.section-head h2, .view-head h1 {
  font-family: var(--club-title);
  font-style: italic;
  font-weight: 800;
  letter-spacing: .01em;
}
.section-head h2 { font-size: clamp(30px, 4vw, 53px); line-height: 1; margin: 0; white-space: nowrap; }
.section-head::after {
  content: '';
  height: 2px;
  flex: 1;
  background: linear-gradient(90deg, var(--ui-glow), transparent);
  order: 1;
}
#coin-search {
  order: 2;
  border-color: var(--edge);
  background: #15101b;
  max-width: 320px;
}
.empty, .treasury-strip, .guide-card {
  background: linear-gradient(156deg, color-mix(in srgb, var(--panel) 88%, #7d365c), var(--panel) 66%);
  border: 1px solid var(--edge);
  border-radius: 6px;
  box-shadow: 3px 4px #0d081260;
}
.empty { padding: 16px 18px; gap: 15px; }
.empty strong, .guide-copy h3, .treasury-strip h3 {
  font: italic 800 clamp(22px, 2.4vw, 31px) / 1 var(--club-title);
  text-transform: uppercase;
  color: var(--chrome);
}
.coin-icon { width: 48px; height: 48px; background: transparent; border: 1px solid var(--edge); overflow: hidden; }
.coin-icon img { width: 100%; height: 100%; object-fit: cover; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.guide-art { aspect-ratio: 2.08; min-height: 120px; overflow: hidden; border-bottom: 1px solid var(--edge); background: #281725; }
.guide-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.guide-copy { padding: 17px 19px 15px; display: flex; flex-direction: column; align-items: start; flex: 1; gap: 10px; }
.guide-copy p, .treasury-strip p { color: var(--muted); line-height: 1.55; }
.guide-copy a { font: 700 12px / 1.3 var(--club-mono); color: var(--accent); padding-top: 5px; margin-top: auto; }
.guide-copy a:hover, .foot-links a:hover, .text-action:hover { text-decoration: underline; text-underline-offset: 3px; }
.treasury-strip { display: flex; align-items: center; gap: 16px; padding: 15px 18px; margin-top: 25px; }
.treasury-strip img { border: 1px solid var(--edge); border-radius: 4px; }
.treasury-strip h3 { margin-bottom: 3px; }
.treasury-strip .secondary { margin-left: auto; flex-shrink: 0; justify-content: center; }

.club-view { --banner: url('./assets/garage.jpg'); }
.club-view[data-view=launch], .setup-view { --banner: url('./assets/garage.jpg'); }
.club-view[data-view=rewards] { --banner: url('./assets/overhead.jpg'); }
.club-view[data-view=treasury] { --banner: url('./assets/rooftop.jpg'); }
.club-view .view-head {
  position: relative;
  isolation: isolate;
  min-height: 204px;
  margin: 0 0 22px;
  padding: 27px clamp(17px, 3vw, 40px) 31px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border: 1px solid var(--edge);
  border-bottom-color: color-mix(in srgb, var(--accent) 55%, var(--edge));
  border-radius: 7px 7px 0 0;
  background:
    linear-gradient(90deg, #120d19fa 4%, #160e1ace 38%, #21132d47 78%),
    linear-gradient(0deg, #1b111a91, transparent 56%),
    var(--banner) center 44% / cover;
}
.club-view .view-head h1 { line-height: .98; margin: 9px 0; color: var(--chrome); text-shadow: 2px 3px #150b18; }
.club-view .view-head p { color: #e2d4d7; max-width: 57ch; }
.club-view .view-head .text-action { margin-left: 0; }
.panel-grid { align-items: start; column-gap: clamp(13px, 2vw, 23px); }
.club-view .panel {
  padding: clamp(16px, 2.5vw, 28px);
  background: linear-gradient(148deg, color-mix(in srgb, var(--panel) 86%, #67324f), var(--panel) 67%);
  border: 1px solid var(--edge);
  border-top-color: color-mix(in srgb, var(--accent) 47%, var(--edge));
  border-radius: 6px;
  box-shadow: 4px 5px #0c071264;
}
.panel h2, .dialog-head h2, .ledger-title {
  font-family: var(--club-title);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .014em;
}
.panel h2 { font-size: clamp(25px, 3vw, 38px); line-height: 1; }
.form-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 15px; }
.form-head h2 { margin: 0; }
.pair-tag { border: 1px solid var(--edge); background: #151019; padding: 5px 8px; color: var(--accent); white-space: nowrap; font: 700 11px var(--club-mono); text-transform: uppercase; }
.club-view input, .club-view textarea { background: #15101b; }
.drop {
  min-height: 94px;
  justify-content: flex-start;
  background: repeating-linear-gradient(135deg, #141017 0 17px, #1d15214f 18px 19px, #141017 20px 36px);
  border-color: color-mix(in srgb, var(--accent) 44%, var(--edge));
}
.drop-mark { color: var(--accent); display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--edge); border-radius: 4px; font-size: 21px; }
.drop:has(img:not([hidden])) .drop-mark { display: none; }
#pick { margin-left: auto; }
.split-meter { display: grid; grid-template-columns: 4fr 1fr; gap: 3px; height: 12px; margin: 19px 0; border: 1px solid var(--edge); padding: 2px; border-radius: 2px; }
.split-meter span:first-child { background: var(--accent); }
.split-meter span:last-child { background: #cf579b; }
.split-readouts dd { color: var(--accent); }
.split-readouts div:last-child dd { color: #ff91c4; }
.panel.claim-panel, .panel.fee-panel {
  background:
    linear-gradient(100deg, var(--panel) 7%, color-mix(in srgb, var(--panel) 87%, transparent) 60%, #26112a91),
    url('./assets/guide-claim.jpg') center 50% / cover,
    var(--panel);
  min-height: 240px;
}
.claim-amount {
  color: var(--accent);
  font: italic 800 clamp(45px, 6vw, 68px) / 1 var(--club-title);
  letter-spacing: -.01em;
  text-shadow: 2px 3px #130a17;
}
.readouts dd, #window-clock { color: var(--accent); font-family: var(--club-mono); font-variant-numeric: tabular-nums; }
#window-countdown { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 12px; }
#window-clock { font-size: 21px; }
dialog {
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--edge));
  border-radius: 7px;
  background: linear-gradient(157deg, #2b1b2c, var(--panel) 50%);
}
.dialog-head h2 { font-size: 32px; }
.club-foot { padding: 18px 0 22px; flex-wrap: wrap; border-top-color: var(--edge); }
.club-foot .mast img { width: 103px; }
.foot-links { display: flex; gap: 15px; align-items: center; }
#network-label { color: var(--accent); font: 700 11px var(--club-mono); }

@media (max-width: 850px) {
  .nav { column-gap: 17px; height: auto; min-height: 77px; padding: 10px 0; flex-wrap: wrap; }
  .nav nav { order: 3; flex: 1 0 100%; overflow-x: auto; margin-top: 0; gap: 20px; }
  .nav nav a { padding: 5px 0; }
  .coin-section, .home-guide { width: calc(100% - 34px); }
  .guide-grid { gap: 10px; }
  .guide-copy { padding-inline: 12px; }
}
@media (max-width: 620px) {
  .nav nav { gap: 14px; font-size: 15px; }
  .top-actions { gap: 12px; }
  .ctas a { min-width: 0; font-size: 20px; padding: 11px 14px; }
  .section-head { flex-direction: row; flex-wrap: wrap; align-items: center; }
  #coin-search { max-width: 100%; order: 3; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-art { max-height: 190px; }
  .guide-copy { padding: 15px; }
  .treasury-strip { flex-wrap: wrap; }
  .treasury-strip > div { flex: 1 1 60%; }
  .treasury-strip .secondary { margin-left: 0; }
  .empty { flex-wrap: wrap; }
  .club-view .view-head { min-height: 174px; background-position: 57% center; }
  .foot-links { gap: 10px; flex-wrap: wrap; }
}
.mint-display { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; margin-top: 3px; color: var(--muted); }
.mint-display code { overflow-wrap: anywhere; user-select: all; color: var(--paper); }
.mint-display button { color: var(--accent); }
.treasury-strip > div { min-width: 0; }
