:root {
  --green: #2ecc40;
  --yellow: #ffe040;
  --red: #ff4444;
  --blue: #44aaff;
  --purple: #cc44ff;
  --orange: #ff8800;
  --dark: #0a0e1a;
  --darker: #060810;
  --panel: #111624;
  --border: #2a3050;
  --pixel: "Press Start 2P", monospace;
  --round: "Nunito", sans-serif;
  --title: "Cinzel Decorative", serif;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  background: var(--dark);
  color: white;
  font-family: var(--round);
  min-height: 100vh;
  overflow-x: hidden;
  cursor:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%232ecc40' d='M4 0 L4 20 L8 16 L11 23 L13 22 L10 15 L15 15 Z'/%3E%3C/svg%3E")
      0 0,
    auto;
}


body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}


body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(46, 204, 64, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 204, 64, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}


nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(6, 8, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--green);
  box-shadow: 0 0 30px rgba(46, 204, 64, 0.2);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.nav-logo {
  font-family: var(--title);
  font-size: 18px;
  color: var(--green);
  text-shadow: 0 0 16px rgba(46, 204, 64, 0.8);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-links {
  display: flex;
  gap: 6px;
}
.nav-links a {
  font-family: var(--pixel);
  font-size: 7px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}
.nav-links a:hover {
  color: var(--green);
  border-color: var(--green);
  background: rgba(46, 204, 64, 0.1);
  text-shadow: 0 0 8px var(--green);
}
.nav-coins {
  font-family: var(--pixel);
  font-size: 8px;
  color: var(--yellow);
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 0 8px var(--yellow);
}


#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 56px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 40%,
    #0d2a40 0%,
    #0a0e1a 60%
  );
}
.hero-stars {
  position: absolute;
  inset: 0;
}
.hstar {
  position: absolute;
  border-radius: 50%;
  background: white;
  animation: htwinkle ease-in-out infinite alternate;
}
@keyframes htwinkle {
  from {
    opacity: 0.1;
    transform: scale(0.7);
  }
  to {
    opacity: 0.9;
    transform: scale(1.3);
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  width: 100%;
  padding: 0 40px;
}
.hero-text h1 {
  font-family: var(--title);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  color: white;
  text-shadow:
    0 0 30px rgba(46, 204, 64, 0.6),
    4px 4px 0 #0d3b10;
  margin-bottom: 12px;
  animation: hpop 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-text h1 span {
  color: var(--green);
}
@keyframes hpop {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.hero-tagline {
  font-family: var(--pixel);
  font-size: 9px;
  color: var(--yellow);
  letter-spacing: 0.15em;
  text-shadow: 0 0 12px var(--yellow);
  margin-bottom: 28px;
  animation: hpop 0.8s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.game-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  animation: hpop 0.8s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.game-pill {
  font-family: var(--pixel);
  font-size: 7px;
  padding: 8px 14px;
  border-radius: 20px;
  border: 2px solid;
  transition: all 0.2s;
  cursor: default;
}
.game-pill:hover {
  transform: scale(1.1) rotate(-2deg);
}
.pill-roblox {
  color: #ff4444;
  border-color: #ff4444;
  background: rgba(255, 68, 68, 0.1);
}
.pill-fort {
  color: #ffe040;
  border-color: #ffe040;
  background: rgba(255, 224, 64, 0.1);
}
.pill-mine {
  color: #2ecc40;
  border-color: #2ecc40;
  background: rgba(46, 204, 64, 0.1);
}

.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
  animation: hpop 0.8s 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.btn-primary {
  font-family: var(--pixel);
  font-size: 8px;
  padding: 14px 22px;
  border-radius: 8px;
  background: var(--green);
  color: #060810;
  border: none;
  cursor: pointer;
  box-shadow:
    0 4px 0 #0d5c10,
    0 6px 20px rgba(46, 204, 64, 0.4);
  transition: all 0.15s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 0 #0d5c10,
    0 10px 30px rgba(46, 204, 64, 0.5);
}
.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #0d5c10;
}
.btn-secondary {
  font-family: var(--pixel);
  font-size: 8px;
  padding: 14px 22px;
  border-radius: 8px;
  background: transparent;
  color: var(--yellow);
  border: 2px solid var(--yellow);
  cursor: pointer;
  box-shadow: 0 0 16px rgba(255, 224, 64, 0.2);
  transition: all 0.15s;
  text-decoration: none;
  display: inline-block;
}
.btn-secondary:hover {
  background: rgba(255, 224, 64, 0.1);
  box-shadow: 0 0 24px rgba(255, 224, 64, 0.4);
}


.hero-char {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: hpop 0.8s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-char svg {
  animation: charhover 3s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(46, 204, 64, 0.5));
  cursor: pointer;
}
@keyframes charhover {
  0%,
  100% {
    transform: translateY(0) rotate(-0.5deg);
  }
  50% {
    transform: translateY(-14px) rotate(0.5deg);
  }
}
.hero-char svg:hover {
  filter: drop-shadow(0 0 50px rgba(46, 204, 64, 0.9));
  animation:
    charhover 3s ease-in-out infinite,
    charwobble 0.4s ease;
}
@keyframes charwobble {
  0% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(-8deg);
  }
  75% {
    transform: rotate(8deg);
  }
  100% {
    transform: rotate(0);
  }
}
.char-ring {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 2px solid rgba(46, 204, 64, 0.2);
  animation: ring-pulse 3s ease-in-out infinite;
}
.char-ring:nth-child(2) {
  width: 310px;
  height: 310px;
  animation-delay: 0.5s;
  border-color: rgba(46, 204, 64, 0.1);
}
.char-ring:nth-child(3) {
  width: 360px;
  height: 360px;
  animation-delay: 1s;
  border-color: rgba(46, 204, 64, 0.05);
}
@keyframes ring-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.5;
  }
}


.speech-bubble {
  position: absolute;
  top: -20px;
  right: -20px;
  background: var(--yellow);
  color: #0a0e1a;
  font-family: var(--pixel);
  font-size: 7px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 2px solid #c8b000;
  box-shadow: 3px 3px 0 #c8b000;
  display: none;
  white-space: nowrap;
  animation: bubble-pop 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 20;
}
.speech-bubble.show {
  display: block;
}
@keyframes bubble-pop {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}
.speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 20px;
  border: 5px solid transparent;
  border-top-color: var(--yellow);
}


section {
  position: relative;
  z-index: 1;
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-title {
  font-family: var(--pixel);
  font-size: clamp(14px, 2.5vw, 22px);
  color: var(--green);
  text-shadow: 0 0 20px rgba(46, 204, 64, 0.6);
  margin-bottom: 8px;
}
.section-title span {
  color: white;
}
.section-sub {
  font-family: var(--round);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.section-divider {
  width: 100%;
  height: 2px;
  margin: 0 0 80px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--green),
    transparent
  );
  position: relative;
  z-index: 1;
}


#videos {
  padding-top: 20px;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.video-card {
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s;
  cursor: pointer;
  position: relative;
}
.video-card:hover {
  border-color: var(--green);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(46, 204, 64, 0.2);
}
.video-thumb {
  aspect-ratio: 16/9;
  background: #0d1428;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.video-thumb-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  opacity: 0.15;
}
.video-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(46, 204, 64, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 30px rgba(46, 204, 64, 0.5);
  transition: all 0.2s;
}
.video-card:hover .video-play {
  transform: scale(1.15);
  background: var(--green);
}
.video-label {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 4px;
  font-family: var(--pixel);
  font-size: 6px;
  color: white;
  padding: 3px 6px;
}
.video-info {
  padding: 14px;
}
.video-title {
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 4px;
}
.video-meta {
  font-family: var(--pixel);
  font-size: 6px;
  color: rgba(255, 255, 255, 0.3);
}
.video-tag {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--pixel);
  font-size: 6px;
  padding: 3px 8px;
  border-radius: 10px;
}
.tag-roblox {
  background: rgba(255, 68, 68, 0.2);
  color: #ff4444;
  border: 1px solid #ff4444;
}
.tag-fortnite {
  background: rgba(255, 224, 64, 0.2);
  color: #ffe040;
  border: 1px solid #ffe040;
}
.tag-minecraft {
  background: rgba(46, 204, 64, 0.2);
  color: #2ecc40;
  border: 1px solid #2ecc40;
}


.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: var(--panel);
  border: 2px solid var(--green);
  border-radius: 16px;
  padding: 28px;
  width: 90%;
  max-width: 560px;
  transform: scale(0.9);
  transition: transform 0.25s;
}
.modal-overlay.open .modal-box {
  transform: scale(1);
}
.modal-title {
  font-family: var(--pixel);
  font-size: 11px;
  color: var(--green);
  margin-bottom: 20px;
}
.modal-input {
  width: 100%;
  background: #0a0e1a;
  border: 2px solid var(--border);
  border-radius: 8px;
  color: white;
  font-family: var(--round);
  font-size: 14px;
  padding: 12px;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.2s;
}
.modal-input:focus {
  border-color: var(--green);
}
.modal-btns {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}
.btn-cancel {
  font-family: var(--pixel);
  font-size: 7px;
  padding: 10px 16px;
  background: transparent;
  border: 2px solid var(--border);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-cancel:hover {
  border-color: var(--red);
  color: var(--red);
}
.add-video-btn {
  grid-column: 1/-1;
  border: 2px dashed var(--border);
  border-radius: 12px;
  background: transparent;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--pixel);
  font-size: 8px;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s;
}
.add-video-btn:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(46, 204, 64, 0.05);
}


.shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.shot-card {
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  background: #0d1428;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shot-card:hover {
  border-color: var(--yellow);
  transform: scale(1.04);
  box-shadow: 0 8px 30px rgba(255, 224, 64, 0.2);
}
.shot-placeholder {
  font-size: 36px;
  opacity: 0.2;
}
.shot-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s;
}
.shot-card:hover .shot-overlay {
  opacity: 1;
}
.shot-overlay span {
  font-family: var(--pixel);
  font-size: 7px;
  color: white;
}
.shot-game-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: var(--pixel);
  font-size: 5px;
  padding: 3px 7px;
  border-radius: 8px;
}
.add-shot-btn {
  aspect-ratio: 16/9;
  border: 2px dashed var(--border);
  border-radius: 10px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--pixel);
  font-size: 7px;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s;
}
.add-shot-btn:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}


.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  border: 2px solid var(--yellow);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--pixel);
  font-size: 11px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}
.lightbox-close:hover {
  background: var(--red);
}


.lb-container {
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.lb-header {
  background: linear-gradient(135deg, #0d2a10, #1a3a20);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--border);
}
.lb-header-title {
  font-family: var(--pixel);
  font-size: 10px;
  color: var(--green);
}
.lb-tabs {
  display: flex;
  gap: 8px;
}
.lb-tab {
  font-family: var(--pixel);
  font-size: 7px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s;
}
.lb-tab.active {
  background: var(--green);
  color: #060810;
  border-color: var(--green);
}
.lb-row {
  display: grid;
  grid-template-columns: 50px 1fr 120px 80px;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s;
}
.lb-row:hover {
  background: rgba(255, 255, 255, 0.03);
}
.lb-row:last-child {
  border-bottom: none;
}
.lb-rank {
  font-family: var(--pixel);
  font-size: 11px;
  text-align: center;
}
.rank-1 {
  color: var(--yellow);
  text-shadow: 0 0 12px var(--yellow);
}
.rank-2 {
  color: #c0c0c0;
}
.rank-3 {
  color: #cd7f32;
}
.lb-name {
  font-weight: 900;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lb-badge {
  font-size: 16px;
}
.lb-score {
  font-family: var(--pixel);
  font-size: 9px;
  color: var(--green);
  text-align: right;
}
.lb-game {
  font-family: var(--pixel);
  font-size: 6px;
  text-align: right;
}
.lb-me {
  background: rgba(46, 204, 64, 0.05) !important;
  border-left: 3px solid var(--green);
}
.add-score-btn {
  font-family: var(--pixel);
  font-size: 7px;
  padding: 10px 18px;
  border-radius: 8px;
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green);
  cursor: pointer;
  transition: all 0.2s;
  margin: 16px 24px;
  display: block;
}
.add-score-btn:hover {
  background: rgba(46, 204, 64, 0.1);
}


#game-section {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.game-wrapper {
  background: var(--panel);
  border: 3px solid var(--yellow);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(255, 224, 64, 0.15);
}
.game-header {
  background: linear-gradient(135deg, #1a1500, #2a2000);
  padding: 16px 24px;
  border-bottom: 2px solid rgba(255, 224, 64, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.game-title-bar {
  font-family: var(--pixel);
  font-size: 10px;
  color: var(--yellow);
}
.game-stats {
  display: flex;
  gap: 24px;
}
.game-stat {
  font-family: var(--pixel);
  font-size: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.game-stat label {
  color: rgba(255, 255, 255, 0.4);
  font-size: 6px;
}
.game-stat span {
  color: var(--yellow);
}
#gameCanvas {
  display: block;
  width: 100%;
  height: 320px;
  background: #050810;
  cursor: crosshair;
  image-rendering: pixelated;
}
.game-controls {
  padding: 16px 24px;
  border-top: 2px solid rgba(255, 224, 64, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.game-ctrl-hint {
  font-family: var(--pixel);
  font-size: 7px;
  color: rgba(255, 255, 255, 0.3);
}
.game-btn {
  font-family: var(--pixel);
  font-size: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--yellow);
  color: #0a0e1a;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 0 #806000;
  transition: all 0.15s;
}
.game-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #806000;
}
.game-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 #806000;
}
.game-over-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 10;
}
.game-over-overlay.show {
  display: flex;
}
.game-canvas-wrap {
  position: relative;
}


footer {
  position: relative;
  z-index: 1;
  border-top: 2px solid var(--border);
  background: var(--darker);
  padding: 32px 40px;
  text-align: center;
}
.footer-logo {
  font-family: var(--title);
  font-size: 22px;
  color: var(--green);
  text-shadow: 0 0 20px rgba(46, 204, 64, 0.5);
  margin-bottom: 8px;
}
.footer-sub {
  font-family: var(--pixel);
  font-size: 7px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.2em;
}


.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s,
    transform 0.6s;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  background: var(--panel);
  border: 2px solid var(--green);
  border-radius: 12px;
  padding: 14px 20px;
  font-family: var(--pixel);
  font-size: 8px;
  color: var(--green);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}


#introModal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060810;
  animation: intro-bg-in 0.4s ease both;
}
@keyframes intro-bg-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
#introModal.hiding {
  animation: intro-bg-out 0.6s ease forwards;
  pointer-events: none;
}
@keyframes intro-bg-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.intro-inner {
  width: min(900px, 96vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: intro-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
@keyframes intro-rise {
  from {
    transform: translateY(40px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}


.intro-banner {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 2px solid rgba(46, 204, 64, 0.35);
  box-shadow:
    0 0 60px rgba(46, 204, 64, 0.2),
    0 20px 80px rgba(0, 0, 0, 0.8);
}
.ib-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    170deg,
    #060d2e 0%,
    #0d1f5c 20%,
    #1a3a90 40%,
    #2255b0 55%,
    #3a78c8 70%,
    #5aaada 85%,
    #7ac8ee 100%
  );
}
.ib-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ib-star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle ease-in-out infinite alternate;
}
@keyframes twinkle {
  from {
    opacity: 0.12;
    transform: scale(0.7);
  }
  to {
    opacity: 0.9;
    transform: scale(1.3);
  }
}
.ib-moon {
  position: absolute;
  top: 5%;
  right: 6%;
  width: 8%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 35% 35%, #fffad0, #f5d050);
  border-radius: 50%;
  box-shadow:
    0 0 40px rgba(255, 220, 80, 0.7),
    0 0 100px rgba(255, 190, 40, 0.3);
  animation: mpulse2 4s ease-in-out infinite alternate;
}
@keyframes mpulse2 {
  from {
    box-shadow:
      0 0 40px rgba(255, 220, 80, 0.7),
      0 0 100px rgba(255, 190, 40, 0.3);
  }
  to {
    box-shadow:
      0 0 60px rgba(255, 230, 100, 0.9),
      0 0 150px rgba(255, 200, 50, 0.5);
  }
}
.ib-floaty {
  position: absolute;
  animation: ibfloat ease-in-out infinite alternate;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
  font-size: clamp(14px, 3vw, 34px);
}
@keyframes ibfloat {
  from {
    transform: translateY(0) rotate(-4deg);
  }
  to {
    transform: translateY(-14px) rotate(4deg);
  }
}


.ib-castle {
  position: absolute;
  bottom: 24%;
  left: 0;
  right: 0;
  width: 100%;
}
.ib-hills {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}


.ib-shield {
  position: absolute;
  top: 4%;
  left: 3%;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}


.ib-hero {
  position: absolute;
  bottom: 15%;
  left: 5%;
  width: 26%;
  animation: ibhero 3s ease-in-out infinite;
  cursor: pointer;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.7));
}
@keyframes ibhero {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}


.ib-titles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  text-align: center;
  width: 52%;
}
.ib-main {
  font-family: "Cinzel Decorative", serif;
  font-weight: 900;
  font-size: clamp(24px, 5.5vw, 54px);
  color: #fff;
  line-height: 1;
  letter-spacing: 0.04em;
  text-shadow:
    0 0 18px rgba(80, 220, 80, 0.95),
    0 0 50px rgba(40, 180, 40, 0.6),
    3px 3px 0 #145c14,
    6px 6px 0 #0a3a0a,
    8px 8px 18px rgba(0, 0, 0, 0.9);
  animation: tglow2 3s ease-in-out infinite alternate;
}
@keyframes tglow2 {
  from {
    text-shadow:
      0 0 18px rgba(80, 220, 80, 0.95),
      0 0 50px rgba(40, 180, 40, 0.6),
      3px 3px 0 #145c14,
      6px 6px 0 #0a3a0a,
      8px 8px 18px rgba(0, 0, 0, 0.9);
  }
  to {
    text-shadow:
      0 0 35px rgba(100, 255, 100, 1),
      0 0 80px rgba(50, 220, 50, 0.8),
      3px 3px 0 #145c14,
      6px 6px 0 #0a3a0a,
      8px 8px 18px rgba(0, 0, 0, 0.9);
  }
}
.ib-divrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 5px auto;
  width: 85%;
}
.ib-dline {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f0c040, transparent);
}
.ib-tag {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(5px, 0.95vw, 9px);
  color: #ffe840;
  text-shadow:
    2px 2px 0 #806000,
    0 0 16px rgba(255, 220, 40, 0.8);
  letter-spacing: 0.1em;
  animation: tblink2 2.5s step-end infinite;
}
@keyframes tblink2 {
  0%,
  88%,
  100% {
    opacity: 1;
  }
  93% {
    opacity: 0;
  }
}


.ib-pills {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
}
.ib-pill {
  border-radius: 20px;
  padding: 3px 10px;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(4px, 0.7vw, 7px);
  white-space: nowrap;
  border: 1.5px solid;
}
.ib-pill-r {
  background: rgba(224, 32, 32, 0.85);
  border-color: #ff6666;
  color: white;
  box-shadow: 0 2px 10px rgba(224, 32, 32, 0.5);
}
.ib-pill-f {
  background: rgba(247, 224, 48, 0.9);
  border-color: #ffe060;
  color: #1c1c2e;
  box-shadow: 0 2px 10px rgba(247, 224, 48, 0.5);
}
.ib-pill-m {
  background: rgba(90, 171, 42, 0.9);
  border-color: #7acc44;
  color: white;
  box-shadow: 0 2px 10px rgba(90, 171, 42, 0.5);
}


.ib-sub {
  position: absolute;
  bottom: 5%;
  right: 3%;
  background: linear-gradient(135deg, #ff2222, #bb0000);
  border: 3px solid #ff6666;
  border-radius: 10px;
  padding: 5px 13px;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(5px, 0.9vw, 8px);
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6);
  box-shadow:
    0 4px 20px rgba(255, 30, 30, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  animation: subb2 2s ease-in-out infinite;
  white-space: nowrap;
}
@keyframes subb2 {
  0%,
  100% {
    transform: scale(1) rotate(-1deg);
  }
  50% {
    transform: scale(1.06) rotate(1deg);
  }
}


.intro-enter-wrap {
  text-align: center;
}
.intro-enter {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(9px, 1.4vw, 13px);
  padding: 16px 40px;
  border-radius: 10px;
  background: var(--green);
  color: #060810;
  border: none;
  cursor: pointer;
  letter-spacing: 0.08em;
  box-shadow:
    0 5px 0 #0d5c10,
    0 8px 30px rgba(46, 204, 64, 0.5);
  transition: all 0.15s;
  animation: enter-pulse 2s ease-in-out infinite alternate;
}
@keyframes enter-pulse {
  from {
    box-shadow:
      0 5px 0 #0d5c10,
      0 8px 30px rgba(46, 204, 64, 0.5);
  }
  to {
    box-shadow:
      0 5px 0 #0d5c10,
      0 8px 50px rgba(46, 204, 64, 0.8);
  }
}
.intro-enter:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow:
    0 8px 0 #0d5c10,
    0 14px 40px rgba(46, 204, 64, 0.6);
}
.intro-enter:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #0d5c10;
}




@media (max-width: 900px) {
  
  .nav-links a {
    font-size: 6px;
    padding: 5px 7px;
    letter-spacing: 0;
  }
  .nav-logo {
    font-size: 15px;
  }

  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 24px;
    text-align: center;
  }
  .hero-char {
    order: -1;
  }
  .hero-char svg {
    width: 200px;
    height: 230px;
  }
  .char-ring {
    width: 200px;
    height: 200px;
  }
  .char-ring:nth-child(2) {
    width: 240px;
    height: 240px;
  }
  .char-ring:nth-child(3) {
    width: 280px;
    height: 280px;
  }
  .game-pills {
    justify-content: center;
  }
  .hero-ctas {
    justify-content: center;
  }

  
  section {
    padding: 60px 24px;
  }
  #game-section {
    padding: 60px 24px;
  }

  
  .lb-row {
    grid-template-columns: 40px 1fr 100px;
  }
  .lb-game {
    display: none;
  }
  .lb-tabs {
    gap: 4px;
  }
  .lb-tab {
    font-size: 6px;
    padding: 5px 8px;
  }
  .lb-header {
    flex-direction: column;
    gap: 10px;
  }

  
  #gameCanvas {
    height: 260px;
  }

  
  .intro-inner {
    gap: 14px;
  }
  .ib-hero {
    width: 20%;
  }
  .intro-enter {
    font-size: 9px;
    padding: 14px 28px;
  }
}


@media (max-width: 600px) {
  
  nav {
    padding: 0 14px;
  }
  .nav-links {
    display: none;
  }
  .nav-logo {
    font-size: 13px;
  }
  .nav-coins {
    font-size: 7px;
  }

  
  .hero-text h1 {
    font-size: clamp(28px, 8vw, 42px);
  }
  .hero-tagline {
    font-size: 7px;
  }
  .hero-content {
    padding: 16px;
  }
  .hero-char svg {
    width: 160px;
    height: 185px;
  }
  .btn-primary,
  .btn-secondary {
    font-size: 7px;
    padding: 12px 16px;
  }
  .game-pill {
    font-size: 6px;
    padding: 6px 10px;
  }

  
  section {
    padding: 48px 16px;
  }
  #game-section {
    padding: 48px 16px;
  }
  .section-title {
    font-size: clamp(12px, 4vw, 18px);
  }

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

  
  .lb-row {
    grid-template-columns: 36px 1fr 80px;
    padding: 10px 14px;
  }
  .lb-header {
    padding: 14px 16px;
  }
  .lb-score {
    font-size: 8px;
  }
  .lb-name {
    font-size: 13px;
  }
  .lb-header-title {
    font-size: 8px;
  }
  .lb-tabs {
    flex-wrap: wrap;
  }
  .lb-tab {
    font-size: 5px;
    padding: 4px 7px;
  }
  .add-score-btn {
    margin: 12px 16px;
    font-size: 6px;
  }

  
  #gameCanvas {
    height: 220px;
  }
  .game-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .game-stats {
    gap: 14px;
  }
  .game-ctrl-hint {
    font-size: 6px;
  }
  .game-title-bar {
    font-size: 8px;
  }
  .game-stat {
    font-size: 7px;
  }
  .game-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  
  .modal-box {
    padding: 20px 16px;
  }
  .modal-title {
    font-size: 9px;
  }

  
  footer {
    padding: 24px 16px;
  }

  
  .intro-inner {
    gap: 12px;
    padding: 0 8px;
  }
  .ib-hero {
    width: 18%;
    bottom: 10%;
  }
  .ib-shield {
    width: 44px;
  }
  .ib-floaty {
    font-size: clamp(10px, 3.5vw, 20px);
  }
  .ib-titles {
    width: 58%;
  }
  .ib-main {
    font-size: clamp(18px, 5vw, 38px);
  }
  .ib-tag {
    font-size: clamp(4px, 0.9vw, 7px);
  }
  .ib-pills {
    gap: 5px;
  }
  .ib-pill {
    font-size: clamp(3px, 0.7vw, 6px);
    padding: 2px 7px;
  }
  .ib-sub {
    font-size: clamp(4px, 0.8vw, 7px);
    padding: 4px 9px;
  }
  .intro-enter {
    font-size: 8px;
    padding: 12px 22px;
  }

  
  .toast {
    font-size: 7px;
    padding: 10px 14px;
    right: 12px;
    bottom: 12px;
  }
}


@media (max-width: 400px) {
  .hero-char svg {
    width: 130px;
    height: 150px;
  }
  .shots-grid {
    grid-template-columns: 1fr;
  }
  .game-stats {
    gap: 10px;
    flex-wrap: wrap;
  }
  .ib-main {
    font-size: clamp(16px, 6vw, 28px);
  }
  .lb-row {
    grid-template-columns: 30px 1fr 70px;
  }
}
