/* =========================================
   GRAVEYARD TRESPASSER
   Clean stylesheet
========================================= */

:root {
  --bg: #020006;
  --panel: #07000f;
  --panel-2: #0b0016;
  --purple: #b72cff;
  --purple-light: #d96bff;
  --green: #62ff00;
  --white: #f7f7ef;
  --muted: #c9a7df;
  --danger: #ff2c78;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: var(--bg);
}

body,
button,
input,
textarea,
select,
a,
p,
span,
strong,
div,
h1,
h2,
h3,
td,
th {
  font-family: "Press Start 2P", monospace;
}

body {
  color: var(--white);
  font-size: 10px;
  line-height: 1.8;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -15%, rgba(183, 44, 255, 0.14), transparent 420px),
    linear-gradient(180deg, #070010 0%, #020006 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.28;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0 1px,
    transparent 1px 4px
  );
}

.page-shell {
  width: 100%;
  margin: 0;
  padding: 0;
}

main {
  width: 100%;
}

/* HERO */

.pixel-hero {
  width: 100%;
  margin: 0;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--purple);
  background: var(--bg);
}

.grave-scene {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #020006;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.graveyard-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

.grave-scene > *:not(.graveyard-video) {
  position: relative;
  z-index: 2;
}

.grave-scene .moon,
.grave-scene .grave,
.grave-scene .fence {
  display: none;
}

/* TITLE */

.grave-scene h1 {
  margin: 0;
  max-width: 1180px;
  font-size: clamp(3rem, 6.4vw, 6rem);
  line-height: 0.96;
  letter-spacing: -2px;
  color: var(--white);
  text-transform: uppercase;
  text-shadow:
    0 3px 0 #eeeeee,
    0 6px 0 #cfcfcf,
    0 9px 0 #868686,
    0 12px 0 #303030,
    7px 18px 0 #000,
    0 0 24px rgba(255, 255, 255, 0.28);
}

.grave-scene h1 span {
  display: block;
  color: var(--purple);
  text-shadow:
    0 3px 0 #efc1ff,
    0 6px 0 #9e1de5,
    0 9px 0 #6b009e,
    0 12px 0 #2c0045,
    7px 18px 0 #000,
    0 0 28px rgba(183, 44, 255, 0.82);
}

/* TIMER */

.hero-tagline {
  display: inline-block;
  margin-top: 24px;
  padding: 8px 24px;
  color: var(--green);
  background: rgba(0, 0, 0, 0.76);
  border: 2px solid #1f4f1f;
  font-size: clamp(0.58rem, 1vw, 0.84rem);
  text-shadow:
    0 0 12px var(--green),
    0 0 20px var(--green);
}

/* BUTTONS */

.hero-login {
  margin-top: 22px;
}

.pixel-btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  background: #090012;
  color: var(--white);
  border: 2px solid var(--purple);
  padding: 12px 14px;
  font-size: 0.55rem;
  line-height: 1.6;
  cursor: pointer;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 16px rgba(183, 44, 255, 0.35);
}

.pixel-btn:hover,
.btn:hover {
  color: var(--green);
  border-color: var(--green);
  box-shadow:
    0 0 18px rgba(57, 255, 20, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.pixel-btn:disabled,
.btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.pixel-btn.danger {
  color: #ffd1df;
  border-color: var(--danger);
}

/* BURNT TOTAL */

.hero-burned {
  margin-top: 24px;
  text-align: center;
}

.hero-burned p {
  margin: 0 0 6px;
  color: var(--white);
  font-size: 0.66rem;
}

.hero-burned strong {
  display: block;
  color: var(--green);
  line-height: 1.45;
  text-shadow:
    0 0 8px var(--green),
    0 0 16px var(--green);
}

/* LOGGED OUT: ONE SCREEN */

body:not(.logged-in) {
  height: 100vh;
  overflow-y: hidden;
}

body:not(.logged-in) .page-shell {
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body:not(.logged-in) .pixel-hero {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}

body:not(.logged-in) .grave-scene {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}

body:not(.logged-in) main {
  flex: 0 0 auto;
}

/* LOGGED IN: NORMAL SCROLL */

body.logged-in {
  min-height: 100vh;
  height: auto;
  overflow-y: auto;
}

body.logged-in .page-shell {
  min-height: 100vh;
  height: auto;
}

body.logged-in .pixel-hero {
  height: auto;
}

body.logged-in .grave-scene {
  height: 500px;
  min-height: 500px;
}

/* USER CARDS */

.user-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 14px;
  background: var(--bg);
}

.info-card {
  padding: 18px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(10, 0, 22, 0.98), rgba(3, 0, 8, 0.98));
  border: 2px solid var(--purple);
  box-shadow:
    0 0 18px rgba(183, 44, 255, 0.18),
    inset 0 0 28px rgba(0, 0, 0, 0.55);
}

.info-card.full-width {
  grid-column: 1 / -1;
}

.info-card h2 {
  margin: 0 0 12px;
  color: var(--purple);
  font-size: clamp(0.9rem, 2vw, 1.35rem);
  line-height: 1.5;
  text-shadow:
    0 0 12px rgba(183, 44, 255, 0.72),
    2px 2px #000;
}

.info-card p {
  margin: 6px 0;
  color: var(--white);
  font-size: 0.62rem;
}

#unlocked-grave,
#total-vesting-grave,
#grave-balance,
#icp-balance,
#user-icp,
#total-icp {
  color: var(--green);
  text-shadow: 0 0 10px var(--green);
}

/* INPUTS */

input[type="number"],
input[type="text"] {
  width: 100%;
  margin: 0 0 12px;
  padding: 12px;
  outline: none;
  background: #030008;
  border: 1px solid var(--purple);
  color: var(--green);
  font-size: 0.55rem;
}

input[type="number"]:focus,
input[type="text"]:focus {
  border-color: var(--green);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.4);
}

input::placeholder {
  color: #866298;
}

/* VESTING */

.hidden-claim-btn {
  display: none !important;
}

.dripping-glow {
  animation: dripPulse 2s infinite;
  color: var(--green) !important;
  text-shadow:
    0 0 15px var(--green),
    0 0 30px var(--green);
}

@keyframes dripPulse {
  0%,
  100% {
    opacity: 0.8;
  }

  50% {
    opacity: 1;
    text-shadow:
      0 0 30px var(--green),
      0 0 50px var(--green);
  }
}

/* NOTIFICATIONS */

.notification {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  max-width: 320px;
  padding: 14px;
  background: #030008;
  border: 2px solid var(--purple);
  color: var(--white);
  box-shadow: 0 0 18px rgba(183, 44, 255, 0.45);
}

.notification.success {
  border-color: var(--green);
}

.notification.error {
  border-color: var(--danger);
}

/* FOOTER */

.footer {
  width: 100%;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 0.62rem;
  background:
    linear-gradient(180deg, rgba(10, 0, 22, 0.98), rgba(3, 0, 8, 0.98));
  border-top: 2px solid var(--purple);
}

.footer a {
  color: var(--purple);
  text-decoration: none;
}

.footer a:hover {
  color: var(--green);
}

.hidden-old-auth {
  display: none;
}

/* RESPONSIVE */

@media (min-width: 640px) {
  body {
    font-size: 11px;
  }

  .user-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .user-section {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  body:not(.logged-in) {
    overflow-y: auto;
    height: auto;
  }

  body:not(.logged-in) .page-shell {
    min-height: 100vh;
    height: auto;
  }

  body:not(.logged-in) .pixel-hero,
  body:not(.logged-in) .grave-scene {
    min-height: 100vh;
  }

  body.logged-in .grave-scene {
    height: 420px;
    min-height: 420px;
  }

  .grave-scene {
    padding: 18px 12px;
  }

  .grave-scene h1 {
    font-size: clamp(1.8rem, 9vw, 3.2rem);
    letter-spacing: -1px;
  }

  .hero-tagline {
    padding: 7px 12px;
    font-size: 0.52rem;
  }

  .pixel-btn,
  .btn {
    max-width: 92vw;
    font-size: 0.5rem;
  }

  .user-section {
    padding: 10px;
  }

  .footer {
    padding: 12px 8px;
    font-size: 0.5rem;
  }
}

@media (max-width: 760px) {
  .graveyard-video {
    object-fit: cover;
    object-position: center;
  }
}



.grave-token-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.grave-token-logo {
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
  object-fit: cover;
  image-rendering: pixelated;
  border-radius: 50%;
  border: 4px solid #000;
  background: #000;
  box-shadow:
    4px 0 0 #000,
    -4px 0 0 #000,
    0 4px 0 #000,
    0 -4px 0 #000,
    4px 4px 0 #000,
    -4px -4px 0 #000,
    4px -4px 0 #000,
    -4px 4px 0 #000;
}



.buy-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 18px;
  padding: 16px 24px;

  background: #62ff00;
  color: #000;

  border: 4px solid #000;

  font-size: 0.72rem;
  text-decoration: none;
  text-transform: uppercase;

  box-shadow:
    4px 0 0 #000,
    -4px 0 0 #000,
    0 4px 0 #000,
    0 -4px 0 #000,
    0 0 18px #62ff00;

  transition: transform 0.1s ease;
}

.buy-more-btn:hover {
  transform: translateY(-2px);
  background: #8dff76;
  color: #000;
}