@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Nunito:wght@400;600;700;800&display=swap');

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  min-height: 100vh;
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 18px;
}

body {
  background: linear-gradient(180deg, #9BF064 0%, #73CC36 50%, #9C32CC 100%);
  position: relative;
  overflow-x: hidden;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(180deg, #9BF064 0%, #73CC36 50%, #9C32CC 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-spinner {
  width: 128px;
  height: 128px;
  border: 16px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: loader-spin 0.8s linear infinite;
}

@keyframes loader-spin {
  to { transform: rotate(360deg); }
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(156, 50, 204, 0.12);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #9C32CC 0%, #7C5EB1 100%);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #b040e0 0%, #8C6EC1 100%);
}

::-webkit-scrollbar-corner {
  background: rgba(156, 50, 204, 0.12);
}

.lang-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgb(255, 255, 255);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  transition: opacity 0.25s ease, transform 0.25s ease, pointer-events 0.25s;
}

.lang-btn.scrolled-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-60px);
}

.lang-icon {
  width: 26px;
  height: 26px;
}

.broke-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-width: 100vw;
  pointer-events: none;
  z-index: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start;
  padding: 0;
  gap: 8px 0;
  overflow: hidden;
  -webkit-user-select: none;  user-select: none;
}

.broke-overlay > div {
  display: flex;
  flex-wrap: nowrap;
  gap: 72px;
  -webkit-user-select: none;  user-select: none;
}

.broke-overlay span {
  font-size: 42px;
  color: rgba(108, 66, 140, 0.18);
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  font-family: 'Press Start 2P', monospace;
  -webkit-user-select: none;  user-select: none;
}

.broke-overlay .row-even {
  transform: translateX(180px);
}

@media (max-width: 900px) {
  .broke-overlay > div { gap: 48px; }
  .broke-overlay span { font-size: 28px; }
  .broke-overlay .row-even { transform: translateX(120px); }
}

@media (max-width: 500px) {
  .broke-overlay > div { gap: 28px; }
  .broke-overlay span { font-size: 21px; }
  .broke-overlay .row-even { transform: translateX(70px); }
}

main {
  position: relative;
  z-index: 1;
  padding: 32px 20px 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero {
  background: rgba(230, 255, 230, 0.25);
  border: 2px solid rgba(155, 240, 100, 0.5);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.hero-header {
  text-align: center;
  margin-bottom: 28px;
}

.hero-header h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: 28px;
  color: #1a1a1a;
  margin-bottom: 14px;
  line-height: 1.5;
}

.hero-header h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: 22px;
  font-weight: 400;
  color: #333;
  margin-bottom: 10px;
}

.hero-header .contract-link {
  font-size: 22px;
  color: #5a2d8a;
  text-decoration: underline;
  cursor: pointer;
  font-family: 'Press Start 2P', monospace;
  display: inline-block;
}

.hero-header .contract-link:hover {
  color: #7C5EB1;
}

.hero-body {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

@media (max-width: 768px) {
  .hero-body {
    display: flex;
    flex-direction: row;    
    align-items: center;    
    gap: 16px;  
  }

  .social-icon{
    width: 32px;
    height: 32px;
  }
    

  .hero-side .char-wrap {
    transform: none !important;
  }
}

.hero-side {
  flex-shrink: 0;
  align-self: flex-start;
}

.hero-side .char-wrap img {
  max-width: 180px;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  animation: char-idle 10s ease-in-out infinite;
}

@keyframes char-idle {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.02); }
}

@media (min-width: 769px) {
  .hero-side .char-wrap img {
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  .hero-side .char-wrap img {
    max-width: 180px;
  }
}

@media (max-width: 500px) {
  .hero-side .char-wrap img {
    max-width: 120px;
  }
}

.hero-right {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

@media (min-width: 769px) {
  .hero-right .background-section {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-right {
    align-items: center;
    flex-direction: row;
    justify-content: center;
  }
}

.actions-row {
  margin: 0;
}

.btn-buy {
  padding: 16px 32px;
  background: linear-gradient(180deg, #9C32CC 0%, #7C5EB1 100%);
  color: #fff;
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  line-height: 1.6; 
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(156, 50, 204, 0.4);
}

.btn-buy:hover {
  box-shadow: 0 0 28px rgba(156, 50, 204, 0.6);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .socials {
    justify-content: center;
  }
}

.hero-right .socials a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #1a1a1a;
  font-size: 17px;
  font-weight: 700;
}

.social-text {
  font-weight: 700;
  color: #1a1a1a;
  font-size: 17px;
  display: none;
}

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.social-icon svg {
  width: 24px;
  height: 24px;
}

.background-section {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

@media (min-width: 769px) {
  .background-section--standalone {
    display: none;
  }
  .hero-right .background-section--inline {
    margin-top: 28px;
    align-items: center;
  }
  .hero-right .background-section .story-box {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .background-section--inline {
    display: none;
  }
  .background-section--standalone {
    display: flex;
    margin-top: 40px;
    align-items: center;
  }
  .hero-right .background-section {
    align-items: center;
  }
}

.background-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 24px;
  color: #1a1a1a;
  margin-bottom: 20px;
  line-height: 1.5;
  text-align: center;
  width: 100%;
}

.story-box {
  width: 100%;
  max-width: 720px;
  text-align: left;
}

.story-block {
  background: rgba(200, 255, 200, 0.35);
  border: 2px solid rgba(115, 204, 54, 0.4);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 16px;
  backdrop-filter: blur(2px);
}

.story-block:last-child {
  margin-bottom: 0;
}

.story-lead {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.6;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.story-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #2a2a2a;
  margin-bottom: 10px;
  font-weight: 500;
}

.story-box .story-body:last-child,
.story-block .story-body:last-child {
  margin-bottom: 0;
}

.story-tagline {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.5;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(115, 204, 54, 0.4);
}

.story-tagline strong {
  color: #5a2d8a;
}

.forever-broke-link {
  color: inherit;
  text-decoration: none;
}

.forever-broke-link:hover {
  text-decoration: underline;
}

.forever-broke-link strong {
  color: #5a2d8a;
}


.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background: rgba(230, 255, 230, 0.95);
  border: 2px solid rgba(155, 240, 100, 0.6);
  border-radius: 16px;
  padding: 28px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  text-align: center;
}

.modal .modal-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 18px;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.modal-message {
  font-size: 17px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 20px;
  font-family: 'Nunito', sans-serif;
}

.modal-ok {
  padding: 14px 32px;
  background: linear-gradient(180deg, #9C32CC 0%, #7C5EB1 100%);
  color: #fff;
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(156, 50, 204, 0.4);
}

.modal-ok:hover {
  box-shadow: 0 0 24px rgba(156, 50, 204, 0.5);
}

.modal-countdown {
  max-width: 420px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 500px) {
  .countdown-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .countdown-seconds {
    display: none !important;
  }
}

.countdown-item {
  background: rgba(155, 240, 100, 0.2);
  border: 2px solid rgba(115, 204, 54, 0.4);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.countdown-value {
  font-family: 'Press Start 2P', monospace;
  font-size: 20px;
  color: #1a1a1a;
}

.countdown-label {
  font-size: 11px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Nunito', sans-serif;
}

.lang-modal .modal {
  max-width: 340px;
}

.lang-modal .modal-title {
  font-size: 18px;
  margin-bottom: 20px;
}

.lang-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.6);
  border: 2px solid rgba(155, 240, 100, 0.5);
  border-radius: 12px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: left;
  transition: background 0.2s, box-shadow 0.2s;
}

.lang-option:hover {
  background: rgba(230, 255, 230, 0.5);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.lang-flag-img {
  width: 40px;
  height: 30px;
  object-fit: cover;
  border-radius: 4px;
}

@media (max-width: 500px) {
  html, body {
    font-size: 16px;
  }
  .hero-header h1 {
    font-size: 22px;
  }
  .hero-header h2 {
    font-size: 18px;
  }
  .hero-header .contract-link {
    font-size: 18px;
  }
  .btn-buy {
    font-size: 12px;
  }
  .background-title {
    font-size: 20px;
  }
}
