@font-face {
  font-family: 'Anton';
  src: url('anton.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Archivo';
  src: url('archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --fg: #fff;
  --dim: #9a9a9a;
  --line: #2c2c2c;
  --accent: #f2ff00;
  --display: 'Anton', 'Arial Black', 'Helvetica Neue', sans-serif;
  --body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ---------- nav ---------- */
nav { border-bottom: 2px solid var(--fg); position: sticky; top: 0; background: #000; z-index: 40; }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 14px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 30px; letter-spacing: .04em; line-height: 1; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.navlinks { display: flex; align-items: center; gap: 22px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.navlinks a { color: #cfcfcf; }
.navlinks a:hover { color: var(--accent); }
.navlinks a[data-lang-toggle] { border: 2px solid var(--fg); padding: 6px 12px; color: var(--fg); }
.navlinks a[data-lang-toggle]:hover { background: var(--accent); border-color: var(--accent); color: #000; }

/* ---------- hero ---------- */
.hero { padding: 54px 0 0; border-bottom: 2px solid var(--fg); }
.hero .logo-big { width: 110px; height: 110px; object-fit: contain; margin-bottom: 18px; }
.kicker {
  display: inline-block; background: var(--accent); color: #000; font-weight: 900;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding: 8px 14px; margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--display); font-size: clamp(68px, 16.5vw, 208px);
  line-height: .82; letter-spacing: -.01em; text-transform: uppercase; margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { max-width: 760px; font-size: 19px; line-height: 1.6; color: #d6d6d6; padding-bottom: 34px; }

.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px solid var(--fg); background: transparent; color: var(--fg);
  font-family: var(--display); font-size: 20px; letter-spacing: .06em; text-transform: uppercase;
  padding: 14px 26px; cursor: pointer; line-height: 1.15;
  transition: transform .08s linear, background .1s linear, color .1s linear;
}
.btn:hover { background: #fff; color: #000; }
.btn:active { transform: translate(2px, 2px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #000; box-shadow: 6px 6px 0 #fff; }
.btn.primary:hover { background: #fff; border-color: #fff; box-shadow: 6px 6px 0 var(--accent); }
.btn:disabled { opacity: .3; cursor: not-allowed; box-shadow: none; }
.btn:disabled:hover { background: transparent; color: var(--fg); }
.btn.primary:disabled { background: var(--accent); border-color: var(--accent); color: #000; }
.btn.primary:disabled:hover { background: var(--accent); box-shadow: none; }
.btn.wide { width: 100%; }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden; background: var(--accent); color: #000;
  border-top: 2px solid #000; border-bottom: 2px solid #000;
  padding: 10px 0; white-space: nowrap;
}
.marquee .inner { display: inline-flex; gap: 40px; animation: slide 26s linear infinite; }
.marquee span { font-family: var(--display); font-size: 26px; letter-spacing: .05em; text-transform: uppercase; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: #000; border-bottom: 2px solid var(--fg); }
.gallery figure { background: #000; overflow: hidden; position: relative; }
.gallery img { width: 100%; height: 260px; object-fit: cover; filter: grayscale(1) contrast(1.2); transition: filter .2s linear, transform .3s ease; }
.gallery figure:hover img { filter: grayscale(0); transform: scale(1.03); }
.gallery figcaption { position: absolute; left: 10px; bottom: 8px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; background: #000; padding: 4px 8px; }

/* ---------- sections ---------- */
section { padding: 76px 0; border-bottom: 2px solid var(--fg); }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
h2.sec { font-family: var(--display); font-size: clamp(42px, 6vw, 84px); line-height: .9; text-transform: uppercase; letter-spacing: -.01em; }
h2.sec em { font-style: normal; color: var(--accent); }
.sec-num { font-family: var(--display); font-size: 20px; color: var(--dim); }

.grid { display: grid; gap: 4px; background: var(--line); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }

.cell { background: #000; padding: 30px 26px 34px; }
.cell .k { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.cell .v { font-family: var(--display); font-size: clamp(40px, 5vw, 64px); line-height: 1; margin: 14px 0 12px; text-transform: uppercase; }
.cell .s { font-size: 15px; color: #b6b6b6; line-height: 1.6; }

.list div { border-top: 2px solid var(--line); padding: 26px 0; display: flex; gap: 22px; font-size: 18px; line-height: 1.55; }
.list div:last-child { border-bottom: 2px solid var(--line); }
.list b { color: var(--accent); }
.list .n { font-family: var(--display); font-size: 24px; color: var(--accent); }

/* ---------- prompt card ---------- */
.prompt { border: 2px solid var(--fg); padding: 30px; background: #070707; }
.prompt h3 { font-family: var(--display); font-size: clamp(26px, 3.4vw, 40px); line-height: 1.05; text-transform: uppercase; margin-bottom: 12px; }
.prompt p { font-size: 16px; color: #c2c2c2; max-width: 780px; }
.prompt textarea {
  width: 100%; margin-top: 18px; background: #000; border: 2px solid var(--line); color: #d9d9d9;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.75; padding: 16px; resize: vertical;
}
.prompt details { margin-top: 18px; }
.prompt summary { cursor: pointer; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.prompt summary:hover { color: var(--accent); }

/* ---------- mint page ---------- */
.mint-hero { padding: 46px 0 0; border-bottom: 2px solid var(--fg); }
.mint-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.mint-head h1 { font-family: var(--display); font-size: clamp(72px, 15vw, 190px); line-height: .8; text-transform: uppercase; }
.mint-head .sub { font-size: 16px; color: #b8b8b8; padding-bottom: 10px; max-width: 360px; }
.tag { display: inline-block; background: var(--accent); color: #000; font-weight: 900; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; padding: 6px 12px; margin-bottom: 12px; }

.bigstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 30px 0 0; }
.bigstats > div { background: #000; border-top: 2px solid var(--line); padding: 18px 0 22px; }
.bigstats .bk { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #9a9a9a; }
.bigstats .bv { font-family: var(--display); font-size: clamp(34px, 4.4vw, 58px); line-height: 1; margin-top: 8px; }
.bigstats .bv.sm { font-size: clamp(26px, 3vw, 38px); }

.progress { height: 12px; background: #151515; border: 2px solid var(--line); margin: 18px 0 34px; }
.progress > i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .4s ease; }

.mint-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; padding: 44px 0 0; align-items: start; }

.card { border: 2px solid var(--fg); padding: 28px; background: #050505; }
.card.side { background: #000; }

label.fl, .lbl { display: block; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #a5a5a5; margin: 22px 0 10px; }
.card > .lbl:first-child { margin-top: 0; }

input[type=text] {
  width: 100%; background: #000; border: 2px solid var(--line); color: #fff;
  font-family: var(--body); font-size: 20px; font-weight: 700; padding: 16px;
}
input[type=text]:focus { outline: 0; border-color: var(--accent); }
input::placeholder { color: #565656; font-weight: 600; }
.hint { font-size: 13px; color: #8f8f8f; line-height: 1.6; margin-top: 10px; }

.qty { display: flex; align-items: center; gap: 0; }
.qty button {
  width: 62px; height: 62px; border: 2px solid var(--fg); background: transparent; color: #fff;
  font-family: var(--display); font-size: 30px; line-height: 1; cursor: pointer;
}
.qty button:hover { background: var(--accent); border-color: var(--accent); color: #000; }
.qty .n { flex: 1; text-align: center; font-family: var(--display); font-size: 44px; line-height: 1; border-top: 2px solid var(--fg); border-bottom: 2px solid var(--fg); padding: 8px 0; }

.totalrow { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 18px; border-top: 2px solid var(--line); }
.totalrow .k { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #a5a5a5; }
.totalrow .v { font-family: var(--display); font-size: clamp(34px, 4vw, 52px); line-height: 1; }

.card .actions { margin: 22px 0 0; }
.card .actions .btn { flex: 1 1 auto; }

.status { margin-top: 18px; font-size: 14px; line-height: 1.6; border-left: 4px solid var(--line); padding: 4px 0 4px 14px; color: #cfcfcf; word-break: break-word; min-height: 22px; }
.status.err { border-color: #ff3b30; color: #ff9e97; }
.status.ok { border-color: var(--accent); color: var(--accent); }

.side-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.side-row:first-of-type { padding-top: 0; }
.side-row .k { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #9a9a9a; }
.side-row .v { font-family: var(--display); font-size: 26px; line-height: 1; }

.invite-code {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; letter-spacing: .1em;
  color: var(--accent); word-break: break-all; margin: 12px 0 16px;
  border: 2px dashed var(--line); padding: 12px;
}

/* ---------- sheet ---------- */
.sheet { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: none; align-items: center; justify-content: center; z-index: 60; padding: 20px; }
.sheet.on { display: flex; }
.sheet .box { background: #000; border: 2px solid var(--fg); padding: 30px; max-width: 520px; width: 100%; }
.sheet h3 { font-family: var(--display); font-size: 34px; line-height: 1; text-transform: uppercase; margin-bottom: 14px; }
.sheet p { font-size: 15px; color: #bdbdbd; line-height: 1.7; }
.sheet .actions { margin: 22px 0 0; }

footer { padding: 50px 0; color: #8a8a8a; font-size: 14px; line-height: 1.9; }
footer a { color: #d0d0d0; border-bottom: 1px solid #444; }
footer a:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery img { height: 200px; }
  .grid.c3, .grid.c2 { grid-template-columns: 1fr; }
  .bigstats { grid-template-columns: repeat(2, 1fr); }
  .mint-grid { grid-template-columns: 1fr; }
  .navlinks { gap: 12px; font-size: 11px; }
  .hero .lead { font-size: 17px; }
  section { padding: 56px 0; }
  .card { padding: 22px; }
}

@media (max-width: 560px) {
  .brand { font-size: 24px; }
  .brand img { width: 32px; height: 32px; }
  .navlinks a:not([data-lang-toggle]):not(#connectTop) { display: none; }
  .hero h1 { font-size: clamp(54px, 17vw, 90px); }
  .mint-head h1 { font-size: clamp(60px, 19vw, 110px); }
  .marquee span { font-size: 20px; }
  .btn { font-size: 17px; padding: 13px 20px; }
  .qty button { width: 54px; height: 54px; }
  .qty .n { font-size: 38px; }
}
