@font-face {
  font-family: "Lilita";
  src: url("/fonts/lilita.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Pressura";
  src: url("/fonts/gt-pressura-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Pressura";
  src: url("/fonts/gt-pressura-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --rh: #00c805;
  --rh-hot: #00e00a;
  --aqua: #44ffd2;
  --aqua-secondary: #7dff88;
  --black: #001a17;
  --white: #e6fff0;
  --yellow: #00c805;
  --active-yellow: #00e00a;
  --border: #232b2a;
  --red: #d94a4a;
  --green: #00c805;
  --light-green: #5dff62;
  --dark-green: #008f04;
  --off-white: #c8ffc4;
  --off-aqua: #00c805;
  --active-black: #00332d;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--aqua);
  color: var(--black);
  font-family: "Pressura", sans-serif;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; }
:focus { outline: none; }

.page { position: relative; min-height: 100vh; }
.bg-art {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 666px;
  z-index: 0;
  pointer-events: none;
}
.bg-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-gradient {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 148px;
  background: linear-gradient(0deg, var(--aqua), rgba(68, 255, 210, 0));
}
.corner {
  position: absolute;
  top: 0;
  z-index: 1;
  pointer-events: none;
}
.corner.left { left: 0; }
.corner.right { right: 0; transform: scaleX(-1); }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
  padding: 0 3%;
}
.inner { padding-top: 80px; }

/* Header */
.header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: 32px;
}
.socials { display: flex; gap: 4px; align-items: center; }
.logo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.logo-link img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}
.logo-word {
  font-family: "Lilita", sans-serif;
  font-size: 18px;
  letter-spacing: 0.04em;
  line-height: 1;
}
.header-right { display: flex; justify-content: flex-end; position: relative; }
.wallet-wrap { position: relative; }
.wallet-on {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 160px;
  padding: 8px 12px;
  text-transform: none;
}
.wallet-on .av {
  width: 32px; height: 32px;
  border: 1px solid #000;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
}
.wallet-on .av img { width: 100%; height: 100%; object-fit: cover; }
.wallet-on .meta { display: flex; flex-direction: column; text-align: left; line-height: 1; }
.wallet-on .addr { font-family: "Pressura", sans-serif; font-size: 18px; line-height: 18px; text-transform: none; }
.wallet-on .st { font-family: "Pressura", sans-serif; font-size: 14px; line-height: 14px; color: var(--dark-green); text-transform: uppercase; }
.wallet-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 250px;
  background: #fff;
  border: 2px solid #000;
  border-radius: 16px;
  box-shadow: 0 4px 0 0 #001a17;
  overflow: hidden;
  z-index: 30;
  font-family: "Lilita", sans-serif;
  text-transform: uppercase;
  font-weight: 700;
}
.wallet-menu a, .wallet-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border: 0;
  border-bottom: 2px solid #000;
  background: #fff;
  font: inherit;
  text-transform: uppercase;
  cursor: pointer;
  color: inherit;
}
.wallet-menu a:last-child, .wallet-menu button:last-child { border-bottom: 0; }
.wallet-menu a:hover, .wallet-menu button:hover { background: var(--off-white); }
.wallet-menu .danger { color: var(--red); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 2px solid var(--black);
  text-transform: uppercase;
  font-family: "Lilita", sans-serif;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all .15s ease;
  color: var(--black);
  background: var(--white);
}
.btn.primary {
  padding: 16px 32px;
  border-radius: 12px;
  background: var(--rh);
  box-shadow: 0 4px 0 0 #001a17;
}
.btn.primary:hover { background: var(--rh-hot); }
.btn.secondary {
  padding: 16px 32px;
  border-radius: 12px;
  background: var(--black);
  color: var(--white);
  box-shadow: 0 4px 0 0 #001a17;
}
.btn.external {
  padding: 12px;
  border-radius: 16px;
  background: var(--rh);
  box-shadow: inset 0 -4px 0 0 rgba(0,0,0,.25);
}
.btn.external:hover { background: var(--rh-hot); }
.btn.icon { width: 44px; height: 44px; padding: 12px; }
.btn.icon svg { width: 18px; height: 18px; }
.btn.q {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: #000;
  color: #e6fff9;
  box-shadow: 0 4px 0 0 #001a17;
  padding: 0;
}
.btn.q:hover { background: var(--active-black); }
.scale-down { transition: transform .08s ease-in-out; }
.scale-down:active { transform: scale(.95); box-shadow: none !important; }
.elevate { position: relative; top: 0; transition: top .1s ease; }
.elevate:hover { top: -2px; }

/* Type */
.font-lilita { font-family: "Lilita", sans-serif; }
.font-pressura { font-family: "Pressura", sans-serif; }
.title {
  font-family: "Pressura", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 56px;
  line-height: 48px;
  letter-spacing: -1px;
}
.title .stroke {
  color: var(--rh);
  -webkit-text-stroke: 1px #000;
  text-shadow: 0 3px 0 #000;
}
.subtitle {
  font-family: "Pressura", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 32px;
}
.label-title {
  font-family: "Pressura", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 18px;
  line-height: 18px;
}
.p18 { font-size: 18px; line-height: 24px; }
.text-stroked {
  color: var(--rh);
  -webkit-text-stroke: 1px #000;
  text-shadow: 0 3px 0 #000;
}

/* Bubbles */
.bubble {
  background: #fff;
  border: 2px solid #000;
  border-radius: 16px;
  box-shadow: 0 2px 0 0 #001a17;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border: 2px solid #000;
  border-radius: 6px;
  font-size: 16px;
  line-height: 1;
  animation: bounce 1.4s infinite;
}
.panel {
  background: #fff;
  border: 2px solid #000;
  border-radius: 12px;
  box-shadow: 0 2px 0 0 #001a17;
  padding: 10.5px 12px;
  font-family: "Pressura", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

/* Hero */
.hero {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}
.hero-left {
  width: 330px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}
.col380 { width: 100%; max-width: 380px; }
.cta-row { display: flex; gap: 4px; align-items: stretch; }
.cta-row .flex-1 { flex: 1; }
.cta-row .btn.primary { width: 100%; }

.list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.coin-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 2px solid #000;
  border-radius: 16px;
  background: var(--aqua-secondary);
  box-shadow: 0 2px 0 0 #001a17;
  cursor: pointer;
}
.coin-row-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.coin-row-id { display: flex; gap: 8px; align-items: center; flex: 1; }
.avatar {
  width: 48px; height: 48px;
  border: 1px solid #000;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.coin-meta { display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.coin-meta strong { font-weight: 700; }
.raised { text-align: right; }
.raised strong { display: block; line-height: 1; }
.raised span { color: var(--dark-green); font-size: 14px; }

.progress {
  position: relative;
  width: 100%;
  border: 2px solid #000;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  text-align: center;
}
.progress .fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, #71f5aa 0%, #00c805 100%);
  border-right: 2px solid #000;
  z-index: 0;
}
.progress .pct {
  position: relative;
  z-index: 1;
  font-family: "Pressura", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 16px;
  padding: 2px 0;
}

.tx {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 12px;
  border: 2px solid #000;
  border-radius: 16px;
  background: var(--aqua-secondary);
  box-shadow: 0 2px 0 0 #001a17;
  gap: 8px;
}
.tx-left { display: flex; gap: 8px; align-items: center; }
.pill {
  border: 2px solid #000;
  border-radius: 8px;
  padding: 2px 8px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
}
.pill.buy { background: var(--rh); color: #fff; }
.pill.sell { background: var(--red); color: #fff; }
.tx .who { font-weight: 700; text-decoration: underline; }
.tx .amt { color: var(--dark-green); }

.chest {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 2px solid #000;
  border-radius: 6px;
  background: #70a0ff;
  box-shadow: 0 2px 0 0 #70a0ff;
  animation: bounce 1.4s infinite;
}
.chest.high { background: #ff9494; box-shadow: 0 2px 0 0 #ff9494; }
.chest svg { width: 16px; height: 16px; }
.panel-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }

/* Grid */
.toolbar {
  display: flex;
  gap: 12px;
  margin-top: 80px;
}
.search {
  position: relative;
  width: 512px;
  max-width: 100%;
}
.search svg {
  position: absolute;
  top: 18px;
  left: 12px;
  width: 24px;
  height: 24px;
}
.search input {
  width: 100%;
  padding: 16px 16px 16px 40px;
  border: 2px solid var(--border);
  border-radius: 16px;
  background: #fff;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 4px 0 0 #001a17;
}
.search input:focus {
  border-color: var(--rh);
  box-shadow: 0 4px 0 0 #00a004;
}
.search input::placeholder { color: #6b7280; }
.sort {
  padding: 16px 56px 16px 12px;
  border: 2px solid #000;
  border-radius: 16px;
  background: #fff;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 4px 0 0 #001a17;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='292.4' height='292.4'%3E%3Cpath fill='%23131313' d='M287 69.4a17.6 17.6 0 0 0-13-5.4H18.4c-5 0-9.3 1.8-12.9 5.4A17.6 17.6 0 0 0 0 82.2c0 5 1.8 9.3 5.4 12.9l128 127.9c3.6 3.6 7.8 5.4 12.8 5.4s9.2-1.8 12.8-5.4L287 95c3.5-3.5 5.4-7.8 5.4-12.8 0-5-1.9-9.2-5.5-12.8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: .65rem auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.coin-card { cursor: pointer; position: relative; }
.frame-wrap { position: relative; aspect-ratio: 1; }
.frame-wrap .art {
  position: absolute;
  inset: 3%;
  width: calc(94%);
  height: calc(94%);
  object-fit: cover;
  z-index: 1;
}
.frame-wrap .frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 2;
  pointer-events: none;
}
.frame-wrap .shade {
  position: absolute;
  left: 3%; right: 3%; top: 30%; bottom: 3%;
  background: linear-gradient(0deg, rgba(0,0,0,.6), rgba(0,0,0,0));
  z-index: 3;
  pointer-events: none;
  border-radius: 0 0 18px 18px;
}
.card-copy {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px;
  z-index: 5;
  color: var(--off-white);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.card-copy .sym {
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  -webkit-text-stroke: .5px #000;
}
.card-copy .nm {
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-progress { margin-top: 8px; }

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 40px;
}
.pager .box {
  padding: 12px 24px;
  border: 2px solid #000;
  border-radius: 16px;
  background: var(--aqua);
  font-weight: 700;
  box-shadow: inset 0 -4px 0 0 rgba(0,0,0,.25);
}
.pager .nav-btn {
  min-width: 52px;
  display: flex;
  justify-content: center;
  cursor: pointer;
}
.pager .nav-btn.disabled { visibility: hidden; }
.arrow-btn {
  width: 48px; height: 48px;
  border: 2px solid #000;
  border-radius: 16px;
  background: var(--aqua);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 -4px 0 0 rgba(0,0,0,.25);
}

footer.site {
  position: relative;
  border-top: 3px solid #000;
  margin-top: 300px;
  padding: 24px 0;
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.foot-copy { text-transform: uppercase; }
.foot-copy strong { display: block; font-weight: 700; }
.ca-line {
  margin-top: 8px;
  font-weight: 700;
  text-transform: none;
}

/* Create */
.create-hero { max-width: 350px; display: flex; flex-direction: column; gap: 8px; }
.create-form {
  width: 480px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 64px;
}
.field { display: flex; flex-direction: column; }
.field-tab {
  display: inline-block;
  margin-left: 16px;
  padding: 4px 12px;
  background: #fff;
  border: 2px solid #000;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  font-weight: 700;
  font-size: 14px;
  line-height: 14px;
  text-transform: uppercase;
}
.field input, .field textarea {
  background: #fff;
  border: 2px solid #000;
  border-radius: 16px;
  padding: 16px 12px;
  font-weight: 700;
  box-shadow: 0 4px 0 0 #001a17;
}
.field input:focus, .field textarea:focus {
  border-color: var(--rh);
  box-shadow: 0 4px 0 0 #00a004;
}
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.upload {
  min-height: 150px;
  text-align: center;
  background: var(--rh);
  border: 2px dashed #000;
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--black);
}
.upload.has {
  border-style: solid;
  box-shadow: 0 4px 0 0 #001a17;
}
.upload-preview {
  display: flex;
  gap: 8px;
  align-items: center;
  text-align: left;
}
.upload-preview img {
  width: 125px;
  height: 125px;
  object-fit: cover;
  border: 2px solid #000;
  border-radius: 8px;
}

/* Modal */
.modal-bg {
  position: fixed;
  inset: 0;
  background: #001a17ab;
  z-index: 40;
}
.modal {
  position: fixed;
  top: 15%;
  left: 0; right: 0;
  margin: 0 auto;
  width: 380px;
  max-width: calc(100% - 32px);
  z-index: 50;
  background: #fff;
  border: 3px solid #000;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 0 0 #001a17;
}
.toast {
  position: fixed;
  top: 24px;
  left: 0; right: 0;
  z-index: 60;
  text-align: center;
  pointer-events: none;
}
.toast span {
  display: inline-block;
  background: #fff;
  border: 2px solid #000;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  box-shadow: 0 4px 0 0 #001a17;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (max-width: 1100px) {
  .hero { flex-direction: column; }
  .hero-left { width: 100%; max-width: 330px; margin: 0 auto; text-align: center; align-items: center; }
  .hero-right { flex-direction: column; align-items: stretch; max-width: 380px; margin: 40px auto 0; }
  .col380 { max-width: 100%; }
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .header { grid-template-columns: 1fr; justify-items: center; gap: 12px; padding-top: 16px; }
  .socials, .header-right { display: flex; }
  .title { font-size: 42px; line-height: 40px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .toolbar { flex-direction: column; }
  .search { width: 100%; }
  .create-hero { margin: 0 auto; text-align: center; }
  .create-form { width: 100%; margin-top: 32px; }
  .cols2 { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; gap: 40px; }
}
