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

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

@font-face {
  font-family: "Roboto";
  src: url("fonts/Roboto/Roboto-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

@font-face {
  font-family: "BurgerFree";
  src: url("fonts/BurgerFree/Burger Free.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* —— Base fixes —— */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  margin: 0;
}

img,
video,
iframe {
  max-width: 100%;
}

/* —— Header nav —— */
.nav-pill-comic {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.nav-pill-comic:hover {
  transform: scale(1.08) rotate(-1deg);
  border-color: #000;
  box-shadow: 4px 8px 0 #000;
}

.nav-mobile-link {
  display: block;
  width: calc(100% - 1rem);
  margin: 0 0.5rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background 0.2s;
}

.nav-mobile-link:hover {
  background: #fef3c7;
}

.header-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: #facc15;
  border: 2px solid #000;
  border-radius: 0.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  color: #000;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

@media (min-width: 640px) {
  .header-social-btn {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .header-social-btn {
    width: 2.5rem;
    height: 2.5rem;
  }
}

.header-social-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* —— Comic buttons (valid <a> tags) —— */
.btn-comic-dark,
.btn-comic-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0.375rem;
  border: 2px solid #000;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-comic-dark {
  background: #000;
  color: #fff;
  box-shadow: 4px 8px 0 #000;
}

.btn-comic-dark:hover {
  transform: translateY(-1px);
  box-shadow: 6px 10px 0 #000;
}

.btn-comic-outline {
  background: #fff;
  color: #000;
  box-shadow: 2px 4px 0 #000;
}

.btn-comic-outline:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
}

/* —— Hero sunburst —— */
.hero-sunburst > div {
  display: none;
}

.hero-sunburst::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(800px, 120vw);
  height: min(800px, 120vw);
  transform: translate(-50%, -55%);
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0.2) 0deg 8deg,
    transparent 8deg 20deg
  );
  border-radius: 50%;
  animation: hero-ray-spin 80s linear infinite;
}

@keyframes hero-ray-spin {
  to {
    transform: translate(-50%, -55%) rotate(360deg);
  }
}

/* —— Marquee —— */
.marquee-tofu {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: tofu-marquee 40s linear infinite;
  padding: 0.75rem 0;
}

.marquee-tofu span {
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(1.25rem, 3vw, 2.375rem);
  line-height: 1.4;
  margin-right: 1.5rem;
  color: rgb(245, 158, 11);
  font-family: "Arial Black", sans-serif;
  text-shadow: rgb(255, 255, 255) 2px 2px 0px;
  white-space: nowrap;
}

@keyframes tofu-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.mask-box {
  overflow: hidden;
}

/* —— About clouds —— */
#about {
  position: relative;
  overflow: visible;
}

#about .absolute.bottom-full {
  line-height: 0;
}

/* —— Chart / stats —— */
#live-chart .grid.grid-cols-1.lg\\:grid-cols-3 {
  align-items: start;
}

#ds-price {
  word-break: break-word;
  line-height: 1.2;
}

/* —— Memory grid —— */
#memory .grid img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
}

/* —— Instagram embed —— */
.instagram-media {
  min-height: 400px !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* —— Lexical editor remnants (read-only) —— */
.lexical-content-editable {
  user-select: text;
  cursor: default;
}

/* —— Invalid nested controls from template —— */
button > a {
  pointer-events: none;
}

/* —— Mobile header layout —— */
@media (max-width: 767px) {
  header .header-shell {
    flex-wrap: nowrap;
  }

  header .header-shell > a[href="#hero"] {
    flex: 0 0 auto;
  }
}
