@font-face {
  font-family: "Jersey 15";
  src: url("/assets/fonts/jersey-15-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #121312;
  --panel: #1d211f;
  --panel-2: #2d322d;
  --cream: #fff4cf;
  --gold: #f0c85a;
  --green: #5fd28b;
  --blue: #65bdf2;
  --red: #ff7866;
  --shadow: #070807;
  --line: #3d382d;
  --font-body: "Jersey 15";
  --font-display: "Jersey 15";
  --font-copy: "Inter";
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 400;
  font-synthesis: none;
  font-synthesis-weight: none;
  letter-spacing: 0;
}

button,
a {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
b {
  font-weight: 400;
}

button {
  border: 0;
}

.bg-video,
.video-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bg-video {
  object-fit: cover;
  z-index: 0;
  background: #101310 url('/assets/video/bg-video-poster.jpg?v=phase6g1') center / cover no-repeat;
}

.video-overlay {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7, 8, 7, 0.58), rgba(7, 8, 7, 0.78)),
    linear-gradient(90deg, rgba(16, 42, 43, 0.34), rgba(61, 41, 18, 0.18), rgba(19, 29, 49, 0.35));
}

.site-shell {
  position: relative;
  z-index: 2;
  height: 100dvh;
  display: grid;
  grid-template-rows: 82px minmax(0, 1fr);
  overflow: hidden;
}

.topbar {
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(130px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 18px 30px 12px;
}

.brand-link,
.topnav,
.nav-connect,
.play-now,
.stat-box,
.entry-dialog,
.wallet-provider-row,
.guest-entry,
.doc-panel,
.roadmap-card,
.paper-section {
  image-rendering: pixelated;
}

.brand-link {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-shadow: 2px 2px 0 var(--shadow);
}

.brand-link img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.topnav {
  display: inline-flex;
  justify-content: center;
  gap: 10px;
  padding: 6px;
  border: 3px solid var(--line);
  background: rgba(19, 20, 18, 0.74);
  box-shadow: 0 5px 0 var(--shadow);
}

.topnav a,
.nav-connect,
.modal-close {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 2px solid transparent;
  color: var(--cream);
  text-decoration: none;
  cursor: pointer;
}

.topnav a {
  font-weight: 400;
}

.topnav a:hover,
.topnav a[aria-current="page"] {
  border-color: var(--gold);
  background: rgba(240, 200, 90, 0.18);
}

.nav-connect {
  justify-self: end;
  min-width: 116px;
  border: 3px solid var(--line);
  background: var(--blue);
  color: var(--ink);
  font-weight: 400;
  box-shadow: 0 5px 0 var(--shadow);
}

.nav-connect:hover,
.play-now:hover,
.guest-entry:hover,
.wallet-provider-row:hover,
.modal-close:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.landing-main {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 20px 34px;
  text-align: center;
}

.hero-logo {
  width: 178px;
  height: 178px;
  object-fit: contain;
  filter: drop-shadow(0 8px 0 var(--shadow));
}

.landing-main h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.55rem;
  font-weight: 400;
  line-height: 1.35;
  text-shadow: 3px 3px 0 var(--shadow);
}

.play-now {
  min-width: 260px;
  min-height: 70px;
  padding: 18px 28px;
  border: 4px solid var(--line);
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  cursor: pointer;
  box-shadow: 0 8px 0 var(--shadow);
}

.stat-row {
  width: min(560px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat-box {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px;
  border: 3px solid var(--line);
  background: rgba(29, 33, 31, 0.82);
  box-shadow: 0 5px 0 var(--shadow);
}

.stat-box strong {
  color: var(--green);
  font-size: 1.15rem;
  font-weight: 400;
}

.stat-box span {
  color: var(--cream);
  font-size: 0.88rem;
}

.contract-address {
  margin: 0;
  padding: 8px 14px;
  border: 2px solid rgba(255, 244, 207, 0.28);
  background: rgba(7, 8, 7, 0.62);
  color: var(--cream);
  font-weight: 400;
}

.entry-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 8, 7, 0.72);
}

.entry-overlay[hidden] {
  display: none;
}

.entry-dialog {
  width: min(520px, 100%);
  max-height: calc(100dvh - 36px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  padding: 18px;
  border: 4px solid var(--line);
  background: #20241f;
  box-shadow: 0 8px 0 var(--shadow), 0 0 0 3px rgba(255, 244, 207, 0.22) inset;
}

.entry-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 400;
}

.entry-dialog h2,
.doc-heading h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.45;
}

.entry-dialog h2 {
  font-size: 1.35rem;
  font-weight: 400;
}

.modal-close {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 3px solid var(--line);
  background: var(--red);
  color: var(--ink);
  font-weight: 400;
  box-shadow: 0 4px 0 var(--shadow);
}

.custody-note {
  margin: 0;
  padding: 10px;
  border: 2px solid rgba(117, 209, 124, 0.58);
  background: rgba(117, 209, 124, 0.13);
  color: #eaffd7;
  font-family: var(--font-copy);
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.45;
}

.wallet-picker {
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(58dvh, 520px);
  display: grid;
  align-content: start;
  gap: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.wallet-provider-row {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 3px solid var(--line);
  background: #fff4cf;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--shadow);
}

.wallet-provider-row.busy {
  background: #dff6ff;
}

.wallet-provider-row:disabled {
  cursor: wait;
  opacity: 0.8;
}

.wallet-provider-row.missing .provider-action {
  background: var(--red);
}

.provider-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  background: #ffffff;
}

.provider-mark img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.provider-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.provider-copy strong {
  font-size: 1.06rem;
  font-weight: 400;
}

.provider-copy em {
  color: #4d534f;
  font-family: var(--font-copy);
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 400;
  line-height: 1.25;
}

.provider-action {
  padding: 6px 8px;
  border: 2px solid var(--line);
  background: var(--green);
  color: var(--ink);
  font-weight: 400;
  font-size: 0.74rem;
  text-align: center;
}

.wallet-status,
.wallet-error {
  margin: 0;
  padding: 9px;
  border: 2px solid var(--line);
  background: #dff6ff;
  color: var(--ink);
  font-family: var(--font-copy);
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.45;
}

.wallet-error {
  background: #ffe0db;
}

.guest-entry {
  flex: 0 0 auto;
  min-height: 52px;
  border: 3px solid var(--line);
  background: var(--green);
  color: var(--ink);
  font-weight: 400;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--shadow);
}

.doc-main {
  min-height: 0;
  padding: 0 28px 28px;
}

.doc-panel {
  width: min(1120px, 100%);
  height: 100%;
  margin: 0 auto;
  overflow: auto;
  padding: 22px;
  border: 4px solid var(--line);
  background: rgba(29, 33, 31, 0.9);
  box-shadow: 0 8px 0 var(--shadow);
}

.doc-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.doc-heading h1 {
  font-size: 1.35rem;
}

.doc-heading p,
.roadmap-card p,
.paper-section p {
  margin: 0;
  color: #f3ead0;
  font-family: var(--font-copy);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.55;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.roadmap-card,
.paper-section {
  border: 3px solid var(--line);
  background: #fff4cf;
  color: var(--ink);
  box-shadow: 0 5px 0 var(--shadow);
}

.roadmap-card {
  min-height: 180px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
}

.roadmap-card span {
  color: #305141;
  font-weight: 400;
}

.roadmap-card h2,
.paper-section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 400;
  line-height: 1.12;
}

.roadmap-card p,
.paper-section p {
  color: #333832;
}

.roadmap-card.is-live {
  border-color: #315c43;
}

.roadmap-card.is-future {
  border-color: #6a5545;
}

.whitepaper-panel {
  display: grid;
  gap: 12px;
}

.paper-section {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.status-section {
  border-color: var(--red);
}

@media (max-width: 900px) {
  .site-shell {
    grid-template-rows: 76px minmax(0, 1fr);
  }

  .topbar {
    min-height: 76px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 14px 14px 8px;
  }

  .brand-link span {
    display: none;
  }

  .topnav {
    justify-self: center;
    gap: 4px;
    padding: 4px;
  }

  .topnav a,
  .nav-connect {
    min-height: 34px;
    padding: 7px 8px;
    font-size: 0.9rem;
  }

  .nav-connect {
    min-width: 88px;
  }

  .hero-logo {
    width: 132px;
    height: 132px;
  }

  .landing-main h1 {
    font-size: 1.85rem;
  }

  .play-now {
    min-width: 218px;
    min-height: 60px;
    font-size: 1.14rem;
  }

  .roadmap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-shell {
    grid-template-rows: 70px minmax(0, 1fr);
  }

  .topbar {
    min-height: 70px;
    gap: 5px;
    padding: 12px 10px 8px;
  }

  .brand-link img {
    width: 34px;
    height: 34px;
  }

  .topnav {
    gap: 2px;
    padding: 3px;
  }

  .topnav a,
  .nav-connect {
    min-height: 32px;
    padding: 6px 5px;
    font-size: 0.68rem;
  }

  .nav-connect {
    min-width: 78px;
  }

  .landing-main {
    gap: 12px;
    padding-bottom: 18px;
  }

  .hero-logo {
    width: 108px;
    height: 108px;
  }

  .landing-main h1 {
    font-size: 1.42rem;
  }

  .stat-row,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .stat-box {
    min-height: 60px;
    padding: 8px;
  }

  .contract-address {
    font-size: 0.9rem;
  }

  .entry-dialog {
    padding: 14px;
  }

  .doc-main {
    padding: 0 14px 16px;
  }

  .doc-panel {
    padding: 14px;
  }
}
