:root {
  --red: #D62828;
  --mid-red: #421406;
  --dark-red: #B70707;
  --brown: #362C28;
  --light-brown: #c16200;
  --white: #F5D8D6;
  --white2: #fdf4f4;
  --road-yellow: #ffcc00;
  --chicken-orange: #c16200;

  --preview-height: 100%;

  --hero-title-gradient: linear-gradient(90deg, var(--red), var(--dark-red));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Spectral", serif, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
    background-color: var(--white);
    color: #000;
}

body.loading {
    overflow: hidden;
}

.linear-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(180deg, var(--white) 20%, rgba(255, 230, 230, 0.6) 40%, rgba(255, 230, 230, 0) 80%);
    z-index: 2;
}

a {
    text-decoration: none;
    color: inherit;
}

/* NYC RUN */
.video-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: none;
}

.video-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(50px) brightness(0.6);
  transform: scale(1.1);
  z-index: 1;
  opacity: 0.7;
}

.video-main {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

@media (max-width: 768px) {
  .video-main {
    object-fit: contain;
    height: auto;
    max-height: 80vh;
  }
}

.ui-element {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  z-index: 10;
}

/* NAVIGATION OVERLAY */
body.ui-active .ui-element {
    opacity: 1;
    visibility: visible;
}

body.ui-active .video-container {
    cursor: default;
}

/* TEXT OVERLAY */
.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.489);
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.video-overlay h1 {
  font-size: clamp(1.2rem, 8vw, 4rem);
  color: #fff;
  text-shadow: 0 0 20px rgba(0,0,0,0.8);
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
}

.video-controls {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    gap: 15px;
    z-index: 100;
}

.control-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Loader Styles */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.loader-chicken {
    font-size: 40px;
    animation: loaderBounce 1.6s ease-in-out infinite;
}

.loader-text {
    font-size: 48px;
    font-weight: 400;
    font-family: "IM Fell Double Pica", serif;
    color: var(--red);
    letter-spacing: 4px;
    text-shadow: 
        -3px -3px 0 var(--brown),
        3px -3px 0 var(--brown),
        -3px 3px 0 var(--brown),
        3px 3px 0 var(--brown);
    animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader-progress {
    width: 300px;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.loader-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--red), var(--dark-red));
    border-radius: 10px;
    width: 0%;
    animation: loaderProgress 2s ease-in-out infinite;
}

@keyframes loaderBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes loaderPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

@keyframes loaderProgress {
    0% {
        width: 0%;
        left: 0;
    }
    50% {
        width: 70%;
        left: 0;
    }
    100% {
        width: 100%;
        left: 0;
    }
}

.construction-bar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
  background: #ffcc00;
  color: #000;
  font-family: 'Nunito Sans', sans-serif;
  display: flex;
  flex-direction: column;
}

.hazard-stripes {
  height: 3px;
  width: 100%;
  background: repeating-linear-gradient(
    45deg,
    #000,
    #000 10px,
    #ffcc00 10px,
    #ffcc00 20px
  );
}

.construction-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  gap: 15px;
  text-align: center;
}

.construction-content p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.construction-content strong {
  color: #d32f2f;
}

.construction-content .icon {
  font-size: 1rem;
  animation: flicker 2s infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@media (max-width: 600px) {
  .construction-content {
  padding: 4px 8px;
}

  .construction-content p {
    font-size: 0.6rem;
  }
  .construction-content .icon {
    display: none;
  }
}

/* Header Styles */
.header {
    position: fixed;
    top: 38px;
    width: 100%;
    height: 84px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-100px);
    animation: headerSlideDown 0.8s ease-out forwards;
    animation-delay: 0.3s;
    padding: 0 16px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1224px;
    height: 100%;
    margin: 0 auto;
    padding: 8px 16px;
    gap: 20px;
    background: var(--white);
    box-shadow: -5px 5px 0px var(--brown);
}

@keyframes headerSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* BUY Button */
.buy-btn {
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 240px;
    min-width: 120px;
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInLeft 0.6s ease-out forwards;
    animation-delay: 0.5s;
    flex-shrink: 1;
}

.buy-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.buy-btn:hover {
    transform: scale(1.01);
}

.buy-btn-mobile {
    display: none;
}


/* Hamburger Menu Button */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--brown);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -6px);
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 30px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--brown);
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    transition: color 0.3s ease;
    position: relative;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.5s ease-out forwards;
}

.nav-link:nth-child(1) {
    animation-delay: 0.6s;
}

.nav-link:nth-child(2) {
    animation-delay: 0.7s;
}

.nav-link:nth-child(3) {
    animation-delay: 0.8s;
}

.nav-link:hover {
    color: #c16200;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #c16200;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 24px;
    align-items: center;
    height: 54px;
}

.social-icon {
    width: 44px;
    height: 44px;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.6s ease-in-out;
    cursor: pointer;
    opacity: 0;
    transform: translateX(30px) rotate(var(--icon-rotation, 0deg));
    animation: fadeInRight 0.6s ease-out forwards;
}

.social-icon:nth-child(1) {
    animation-delay: 0.5s;
    --icon-rotation: -20deg;
    padding: 2px;
    border-radius: 1000px;
}

.social-icon:nth-child(2) {
    animation-delay: 0.6s;
    padding: 8px;
    border-radius: 1000px;
}

.social-icon:nth-child(3) {
    animation-delay: 0.7s;
    --icon-rotation: 20deg;
    padding: 8px;
    border-radius: 1000px;
}

.social-icon img {
    width: 100%;
}

.social-icon:hover {
    --icon-rotation: 0deg;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    height: calc(100vh - 100px);
    min-height: 600px;
    z-index: 1;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.2s;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0px 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 240px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Main Title */
.hero-title {
    animation: heroTitleEntrance 1.2s ease-out forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.hero-title {
    width: 100%;
    max-width: 1168px;
    margin: 0 auto;
}

.hero-title img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 16px;
    animation: heroTitleFloat 3s ease-in-out infinite;
    animation-delay: 1.7s;
    display: block;
    margin: 0 auto;
}

@keyframes heroTitleEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroTitleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}
/* Slogan */
.slogan {
    font-size: 40px;
    font-weight: 700;
    color: black;
    font-family: "Spectral", serif, 'Times New Roman', serif;
    margin-bottom: 40px;
    text-shadow: 2px 2px 2px rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 1.5s;
}

/* Contract Address Box */
.contract-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #362C28;
    color: var(--white);
    border: 2px solid #000;
    padding: 16px 20px;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 4px 4px 0 rgba(241, 205, 205, 0.8);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: fadeInUpScale 0.8s ease-out forwards;
    animation-delay: 1.8s;
}

.contract-label {
    font-weight: 600;
    font-size: 16px;
}

.contract-address {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    letter-spacing: 0.5px;
    word-break: break-all;
    text-wrap: initial;
    max-width: 500px;
}

.copy-button {
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 8px;
}

.copy-button:hover {
    color: #FFD700;
    transform: scale(1.1);
}

.copy-button:active {
    transform: scale(0.95);
}

/* Lore Text */
.lore-text {
    position: absolute;
    bottom: 40px;
    right: 60px;
    font-size: 80px;
    font-weight: 900;
    color: #FF0000;
    text-shadow: 
        -4px -4px 0 #000,
        4px -4px 0 #000,
        -4px 4px 0 #000,
        4px 4px 0 #000,
        6px 6px 8px rgba(0, 0, 0, 0.5);
    font-family: 'Times New Roman', serif;
    z-index: 3;
    font-style: italic;
    letter-spacing: 6px;
    text-transform: uppercase;
    opacity: 0;
    transform: rotate(-8deg) scale(0.8);
    animation: loreTextEntrance 1s ease-out forwards;
    animation-delay: 2s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px) rotate(var(--icon-rotation, 0deg));
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(var(--icon-rotation, 0deg));
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUpScale {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes loreTextEntrance {
    from {
        opacity: 0;
        transform: rotate(-8deg) scale(0.8);
    }
    to {
        opacity: 1;
        transform: rotate(-8deg) scale(1);
    }
}

/* Lore Section */
.lore-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: var(--white);
    padding: 80px 0;
    z-index: 10;
}

.lore-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

.lore-content {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.3s;
}

.lore-main-title {
  position: relative;
  font-size: 32px;
  font-weight: 700;
  color: #c16200;
  text-align: center;
  margin-bottom: 80px;
  line-height: 1.2;
  letter-spacing: 2px;
  font-family: "Nunito Sans", sans-serif;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
}

.lore-main-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 4px);
    width: 20%;
    height: 3px;
    background: #c16200;
} 

.lore-intro {
    margin-bottom: 20px;
}

.lore-intro p {
    font-size: 24px;
    line-height: 1.8;
    margin: 1em 0;
    color: var(--brown);
    font-weight: 400;
    font-style: italic;
}

.lore-chapter {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.lore-chapter.visible {
    opacity: 1;
    transform: translateY(0);
}

#readMoreBtn {
    color: var(--light-brown);
    background: rgba(193, 98, 0, 0.1);
    border: 1px solid #c16200;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    margin-top: -40px;
}

#readMoreBtn:hover {
    background: rgba(240, 210, 180, 0.1);
}

#lorePreview {
    /* height: 30px; */
    overflow: hidden;
    position: relative;
}

#lorePreview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--preview-height, 100%);
    background: linear-gradient(to bottom, transparent, var(--white));
}

.lore-chapter:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* .lore-chapter-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark-red);
    margin-bottom: 30px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: "Spectral", serif;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.lore-chapter-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--red);
} */

.lore-chapter p {
    font-size: 20px;
    line-height: 1.8;
    /* margin-bottom: 16px; */
    margin: 1em 0;
    color: var(--brown);
    font-weight: 400;
    text-align: left;
    max-width: 100%;
}

.lore-quote {
    font-size: 28px !important;
    font-weight: 600 !important;
    color: #c16200;
    font-style: italic !important;
    /* text-align: center !important; */
    margin: 10px 0 !important;
    padding: 8px;
    background: rgba(193, 98, 0, 0.1);
    border-left: 4px solid #c16200;
    border-radius: 4px;
}

/* .lore-emphasis {
    font-weight: 700 !important;
    color: var(--light-brown) !important;
    font-size: 22px !important;
    font-style: italic !important;
  //  text-align: center !important;
    margin: 24px 0 !important;
} */

/* .lore-final {
    margin-top: 60px;
} */

.lore-final-line {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #c16200 !important;
    text-align: center !important;
    margin-top: 40px !important;
    font-style: italic;
}

/* ROADMAP */
.roadmap {
  background: var(--mid-red);
  padding: 80px 20px;
  color: #fff;
  overflow: hidden;
}

.roadmap p {
  font-style: italic;
  font-weight: 400;
  margin-bottom: 16px;
}

.roadmap h3, h4 {
  font-family: 'Nunito Sans', sans-serif;
  margin-bottom: 12px;
}

.roadmap__title {
  text-align: center;
  font-size: 3rem;
  letter-spacing: -2px;
  margin-bottom: 10px;
  animation: fadeInUp 1s ease-in-out forwards;
  animation-timeline: view();
  animation-range: entry 10% cover 20%;
}

.roadmap__subtitle {
  text-align: center;
  color: #c1c0c0;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease-in-out forwards;
  animation-timeline: view();
  animation-range: entry 10% cover 20%;
}

/* THE ROAD */
.road {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

.road__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  height: 68%;
  width: 4px;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 20px,
    var(--road-yellow) 20px,
    var(--road-yellow) 40px
  );
  transform: translateX(-50%);
}

/* PHASES */
.phase {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  margin-bottom: 40px;
  opacity: 0.4; /* Dim until "active" */
  transition: opacity 0.5s ease;
  animation: fadeInUp linear forwards;
  animation-timeline: view();
  animation-range: entry 10% cover 30%;
}

.phase.live { opacity: 1; }
.phase--left li, .phase--right li, .phase--final li {
  padding-bottom: 4px;
}

.phase--left { margin-left: 0; text-align: right; direction: rtl;}
.phase--right { margin-left: 50%; text-align: left; }
.phase--final { width: 100%; text-align: center; margin-left: 0; opacity: 1; }

.phase__marker {
  position: absolute;
  top: 20px;
  width: 40px;
  height: 40px;
  background: #222;
  border: 2px solid var(--road-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  font-size: 20px;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.phase:hover .phase__marker {
  transform: scale(1.3) rotate(10deg);
  border-color: #fff;
}

.phase--left .phase__marker { right: -22px; }
.phase--right .phase__marker { left: -22px; }
.phase--final .phase__marker { left: 50%; transform: translateX(-50%); top: -50px; }

.phase__content {
  background: rgba(255, 255, 255, 0.03);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.phase__status {
  background: #4CAF50;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: bold;
  vertical-align: middle;
  margin-bottom: 10px;
  display: inline-block;
}

.phase--final li {
  font-style: italic;
}

.lanes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.lane {
  background: rgba(193, 98, 0, 0.1);
  border: 1px solid var(--chicken-orange);
  padding: 24px;
  border-radius: 12px;
  text-align: left;
}

@media (max-width: 768px) {
  .road__line { left: 20px; }
  .phase { width: 100%; margin-left: 0 !important; text-align: left !important; padding-left: 50px; }
  .phase__marker { left: -2px !important; right: auto !important; }
.phase--left { direction: ltr;}

}

/* MEMES SECTION */
.memes {
  padding: 6rem 1rem;
}

.memes__header {
  max-width: 600px;
  margin: 2rem auto 3rem;
  text-align: center;
}

.memes__header h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--light-brown);
  line-height: 1;
  margin-bottom: 0.8rem;
  text-shadow: 1px 1px 0 var(--brown);
}

.memes__header p {
  color: var(--brown);
}

/* GRID */
.memes__grid {
  column-count: 5;
  column-gap: 16px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}


/* MEME CARD */
.meme {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: #1a1a1a;
  min-height: 100px;
  border-radius: 12px;
  cursor: pointer;
  animation: fadeInUpScale 0.8s ease-in-out forwards;
  animation-timeline: view();
  animation-range: entry 10% cover 30%;
}

/* IMAGE */
.meme img {
  width: 100%;
  display: block;
  height: auto;
  transition: filter 0.6s ease-in-out, transform 0.3s ease;
  object-fit: cover;
}

#backToTop {
  display: none; 
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #c16200;
  color: white;
  cursor: pointer;
  padding: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 18px;
  transition: opacity 0.3s;
}

#backToTop:hover {
  background-color: #e07b00;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.meme img.isloaded {
  filter: blur(0) !important;
}

/* HOVER ZOOM */
.meme:hover img {
  transform: scale(1.05);
}

/* OVERLAY */
.meme__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.meme:hover .meme__overlay {
  opacity: 1;
}

/* BUTTONS */
.meme__btn {
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  background: #fff;
  color: #000;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.meme__btn:hover {
  opacity: 0.85;
}

/* MEMES MODAL */
.meme-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: zoom-out;
}

[hidden] {
  display: none !important;
}

.meme-modal img {
  max-width: 90%;
  max-height: 90%;
}

#seeMoreBtn {
    color: var(--light-brown);
    background: rgba(193, 98, 0, 0.1);
    border: 1px solid #c16200;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    margin-top: 40px;
}

#seeMoreBtn:hover {
    background: rgba(240, 210, 180, 0.1);
}

.meme-preview {
  padding: 40px 20px;
  background: hsl(30, 80%, 2%);
  text-align: center;
}

.preview-header h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.8rem;
  text-shadow: -2px 2px 0 var(--light-brown);
}

.preview-header p {
  color: #c1c0c0;
  margin-bottom: 30px;
  font-style: italic;
  font-weight: 400;
}

.meme-preview__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto;
}

/* Teaser Card Styling */
.preview-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1/1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.preview-card:hover {
  transform: translateY(-5px);
  border-color: #ffcc00;
}

.preview-card:hover img {
  filter: brightness(1.1);
}

.seeAll-button {
  display: inline-block;
  color: var(--light-brown);
  background: var(--white);
  border: 1px solid #c16200;
  padding: 16px 40px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
  transition: background-color 0.3s;
  margin-top: 40px;
}

.seeAll-button:hover {
  background: rgba(240, 210, 180, 0.1);
}

/* Responsive Design */
@media (min-width: 1024px) {
  .hero-section {
    height: 180vh;
  }

  .hero-background {
    height: calc(180vh - 100px);
  }
}
@media (max-width: 1024px) {
    .header {
      top: 48px;
        height: 72px;
        padding: 0 12px;
    }
    
    .header-container {
        padding: 6px 12px;
        gap: 15px;
    }
    
    .buy-btn {
        max-width: 180px;
        min-width: 100px;
    }
    
    .nav-link {
        font-size: 20px;
    }
    
    .social-icon {
        width: 40px;
        height: 36px;
    }

    .hero-section {
    height: 140vh;
  }

  .hero-background {
    height: calc(140vh - 100px);
  }
    
  .hero-content {
      margin-top: 200px;
      padding: 0 20px 50px;
  }
  
  .hero-title img {
      max-width: 90%;
  }
  
  .slogan {
      font-size: 32px;
  }
  
  .contract-box {
      max-width: 95%;
      padding: 14px 18px;
  }
  
  .lore-text {
      font-size: 60px;
      bottom: 30px;
      right: 40px;
  }
  
  .lore-section {
      padding: 100px 20px 60px 20px;
  }
  
  .lore-container {
      padding: 0 30px;
  }
  
  .lore-main-title {
      font-size: 40px;
      margin-bottom: 50px;
  }
  
  .lore-chapter p {
      font-size: 18px;
  }
  
  .lore-intro p {
      font-size: 22px;
  }

  .memes__grid {
  column-count: 3;
  }
}

@media (max-width: 768px) {
  .header {
      height: auto;
      min-height: 70px;
      padding: 0 8px;
  }
  
  .header-container {
      flex-wrap: nowrap;
      gap: 12px;
      padding: 8px 16px;
      min-height: 54px;
      position: relative;
  }
  
  .buy-btn {
      display: none;
  }
  
  .hamburger-menu {
      display: flex;
      order: 1;
      flex-shrink: 0;
  }
  
  .nav-links {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      background: var(--white);
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      gap: 0;
      padding-top: 100px;
      z-index: 1000;
      transform: translateX(-100%);
      transition: transform 0.3s ease-in-out;
      box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
      overflow-y: auto;
  }
  
  .nav-links::before {
      content: '';
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: var(--white);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
      z-index: -1;
  }
  
  .nav-links.active {
      transform: translateX(0);
  }
  
  .nav-links.active::before {
      opacity: 1;
      visibility: visible;
  }
  
  .nav-link {
      font-size: 28px;
      padding: 20px 0;
      width: 100%;
      text-align: center;
      border-bottom: 1px solid rgba(54, 44, 40, 0.1);
      opacity: 1;
      transform: translateY(0);
      animation: none;
  }
  
  .nav-link::after {
      display: none;
  }
  
  .nav-link:hover {
      background: rgba(54, 44, 40, 0.05);
      color: var(--red);
  }
  
  .buy-btn-mobile {
      display: block;
      max-width: 260px;
      width: 100%;
      margin-top: 40px;
      padding: 20px 0;
      opacity: 1;
      transform: translateX(0);
      animation: none;
      cursor: pointer;
      transition: all 0.3s ease;
      border-top: 2px solid rgba(54, 44, 40, 0.1);
      padding-top: 30px;
  }
  
  .buy-btn-mobile:hover {
      transform: scale(1.05);
  }
  
  .buy-btn-mobile img {
      width: 100%;
      height: auto;
      object-fit: contain;
      display: block;
  }
  
  .social-icons {
      gap: 12px;
      order: 2;
      margin-left: auto;
      flex-shrink: 0;
      height: 100%;
  }
  
  .social-icon {
      width: 40px;
      height: 40px;
      border-radius: 1000px;
  }
  
  .hero-content {
      margin-top: 160px;
      padding: 0 15px 40px;
  }
  
  .hero-title {
      max-width: 100%;
  }
  
  .hero-title img {
      max-width: 85%;
      margin-bottom: 12px;
  }
  
  .slogan {
      font-size: 24px;
      margin-bottom: 25px;
      padding: 0 10px;
  }
  
  .contract-box {
      flex-direction: row;
      flex-wrap: wrap;
      align-items: center;
      padding: 12px 14px;
      max-width: 95%;
      gap: 8px;
  }
  
  .contract-label {
      font-size: 14px;
  }
  
  .contract-address {
      font-size: 11px;
      max-width: calc(100% - 60px);
      word-break: break-all;
      flex: 1;
      min-width: 200px;
  }
  
  .copy-button {
      margin-left: 0;
      flex-shrink: 0;
  }
  
  .lore-text {
      font-size: 40px;
      bottom: 20px;
      right: 20px;
      transform: rotate(-3deg);
  }
  
  .lore-section {
      padding: 80px 20px 50px 20px;
  }
  
  .lore-container {
      padding: 0 20px;
  }
  
  .lore-main-title {
      font-size: 32px;
      margin-bottom: 40px;
      line-height: 1.2;
  }
  
  .lore-intro p {
      font-size: 18px;
      line-height: 1.7;
  }
  
  .lore-chapter p {
      font-size: 16px;
      line-height: 1.8;
  }
  
  .lore-quote {
      font-size: 22px !important;
      padding: 15px !important;
  }
  
  .lore-emphasis {
      font-size: 18px !important;
  }
  
  .lore-final-line {
      font-size: 20px !important;
  }
  
  .footer {
      padding: 50px 0 25px;
  }
  
  .footer-container {
      padding: 0 20px;
  }
  
  .footer-title {
      font-size: 24px;
  }
  
  .disclaimer-text {
      font-size: 13px;
  }
  
  .footer-links {
      grid-template-columns: repeat(2, 1fr);
      gap: 35px;
  }

  .memes__grid {
  column-count: 2;
  }
}

@media (max-width: 480px) {
  .header {
      padding: 0 4px;
  }
  
  .header-container {
      gap: 8px;
      min-height: 50px;
  }
  
  .buy-btn {
      display: none;
  }
  
  
  .buy-btn-mobile {
      max-width: 200px;
      margin-top: 25px;
  }
  
  .nav-links {
      padding-top: 80px;
  }
  
  .nav-link {
      font-size: 24px;
      padding: 18px 0;
  }

  .linear-gradient {
      background: linear-gradient(180deg, var(--white) 5%, rgba(255, 230, 230, 0.5) 20%, rgba(255, 230, 230, 0) 60%);
      z-index: 2;
  }
  
  .hero-section {
      height: 120vh;
  }
  
  .hero-background {
      top: 0;
      height: calc(120vh - 58px);
      min-height: 450px;
  }
  
  .hero-content {
      margin-top: 180px;
      padding: 0 10px 30px;
  }
  
  .hero-title img {
      max-width: 90%;
      margin-bottom: 10px;
  }
  
  .slogan {
      font-size: 20px;
      margin-bottom: 20px;
      padding: 0 5px;
      line-height: 1.3;
  }
  
  .contract-box {
      padding: 4px 8px;
      gap: 4px;
      max-width: 98%;
      display: flex;
      justify-content: center;
  }
  
  .contract-address {
      max-width: 100%;
      min-width: 100%;
      word-break: break-all;
  }
  
  .copy-button {
      display: none;
  }
  
  .lore-text {
      font-size: 30px;
      bottom: 15px;
      right: 15px;
      transform: rotate(-2deg);
  }
  
  .memes__grid {
  column-count: 2;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
    .header {
        padding: 0 2px;
    }
    
    .header-container {
        padding: 4px 6px;
        gap: 6px;
    }
    
    .buy-btn {
        max-width: 80px;
        min-width: 70px;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .social-icon {
        width: 28px;
        height: 24px;
    }
    
    .social-icon img {
        width: 28px;
        height: 24px;
    }
    
    .hero-content {
        margin-top: 200px;
        padding: 0 8px 25px;
    }
    
    .hero-title img {
        max-width: 95%;
    }
    
    .slogan {
        font-size: 18px;
    }
    
    .contract-box {
        padding: 8px 10px;
    }
    
    .contract-address {
        font-size: 9px;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .header {
        top: 4px;
        height: 60px;
    }
    
    .header-container {
        min-height: 52px;
        padding: 4px 8px;
    }
    
    .nav-links {
        margin-top: 4px;
        padding-top: 4px;
    }
    
    .hero-background {
        top: 64px;
        height: calc(120vh - 64px);
    }

    
    .slogan {
        font-size: 22px;
    }
}

/* Tablet landscape */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .hero-content {
        margin-top: 180px;
    }
    
    .hero-title img {
        max-width: 80%;
    }
}

/* Large screens */
@media (min-width: 1400px) {
    .header-container {
        max-width: 1400px;
    }
    
    .hero-content {
        max-width: 1400px;
    }
}

@media (max-height: 680px) {
    .hero-section {
        min-height: auto;
        height: 100vh;
    }
    
    .hero-background {
        height: 100vh;
        top: 0;
    }
    
    .hero-content {
        margin-top: 130px;
        padding-bottom: 20px;
    }
    
    .slogan {
        font-size: 20px;
        margin-bottom: 15px;
    }
}    
    .lore-container {
        padding: 0 15px;
        font-style: italic;
    }
    
    .lore-main-title {
        margin-bottom: 50px;
        letter-spacing: 1px;
        font-style: normal;
    }
    
    .lore-intro p {
        font-size: 16px;
        line-height: 1.8;
    }
    
    .lore-chapter-title {
      font-size: 1.1em;
      color: var(--brown);
      font-weight: 700 !important;
      color: var(--light-brown) !important;
      font-style: italic !important;
      margin: 24px 0 !important;
    }
    
    .lore-chapter p {
        font-size: 16px;
        line-height: 1.8;
        margin: 1em 0;
    }
    
    .lore-quote {
        font-size: 18px !important;
        padding: 12px !important;
        margin: 20px 0 !important;
    }
    
    .lore-emphasis {
        font-size: 16px !important;
        margin: 18px 0 !important;
    }
    
    .lore-final-line {
        font-size: 18px !important;
        margin-top: 30px !important;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-title {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .disclaimer-text {
        font-size: 12px;
        line-height: 1.7;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
        padding-bottom: 30px;
    }
    
    .footer-heading {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .footer-link {
        font-size: 14px;
    }
    
    .footer-social {
        gap: 12px;
    }
    
    .footer-social-link {
        width: 40px;
        height: 40px;
    }
    
    .footer-social-link img {
        width: 20px;
        height: 20px;
    }
    
    .contract-text {
        font-size: 11px;
        min-width: 100%;
    }
    
    .footer-copyright {
        font-size: 12px;
    }
    
    .footer-tagline {
        font-size: 11px;
    }

.hero-content * {
    position: relative;
}

/* Footer Styles */
.footer {
    background-color: var(--brown);
    color: var(--white);
    padding: 60px 0 30px;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-content {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.3s;
}

.footer-disclaimer {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(245, 216, 214, 0.2);
}

.footer-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: "Spectral", serif;
}

.disclaimer-text {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(245, 216, 214, 0.9);
    font-weight: 400;
    max-width: 900px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(245, 216, 214, 0.2);
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: "Spectral", serif;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-link {
    color: rgba(245, 216, 214, 0.9);
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-link:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--white);
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-social {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 216, 214, 0.1);
    border: 2px solid rgba(245, 216, 214, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-link:hover {
    background: rgba(245, 216, 214, 0.2);
    border-color: var(--white);
    transform: translateY(-3px);
}

.footer-social-link img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.footer-contract {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(245, 216, 214, 0.1);
    padding: 12px 16px;
    border-radius: 4px;
    border: 1px solid rgba(245, 216, 214, 0.2);
    flex-wrap: wrap;
}

.contract-text {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: rgba(245, 216, 214, 0.9);
    margin: 0;
    word-break: break-all;
    flex: 1;
    min-width: 200px;
}

.footer-copy-btn {
    background: transparent;
    border: 1px solid rgba(245, 216, 214, 0.3);
    color: rgba(245, 216, 214, 0.9);
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-copy-btn:hover {
    background: rgba(245, 216, 214, 0.2);
    border-color: var(--white);
    color: var(--white);
    transform: scale(1.05);
}

.footer-copy-btn:active {
    transform: scale(0.95);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
}

.footer-copyright {
    font-size: 14px;
    color: rgba(245, 216, 214, 0.8);
    margin-bottom: 10px;
    font-weight: 400;
}

.footer-tagline {
    font-size: 12px;
    color: rgba(245, 216, 214, 0.6);
    font-style: italic;
    margin: 0;
}

