@import url('https://fonts.googleapis.com/css2?family=Pirata+One&display=swap');

body {
  margin: 0;
  font-family: 'Georgia', serif;
  color: #f5e6c8;

  background:
    radial-gradient(circle at top, rgba(255, 215, 0, 0.18), transparent 28%),
    radial-gradient(circle at 20% 30%, rgba(37, 84, 140, 0.35), transparent 30%),
    radial-gradient(circle at 80% 65%, rgba(8, 38, 70, 0.6), transparent 35%),
    linear-gradient(180deg, #07111f 0%, #05070d 55%, #020308 100%);

  background-attachment: fixed;
}

/* NAVBAR */
nav {
  position: sticky;
  top: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    url("images/sirens.jpeg");
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  z-index: 1000;
  border-bottom: 2px solid gold;
  overflow: visible;
  box-shadow: 0 8px 25px rgba(0,0,0,0.55);
}

nav div:last-child {
  display: flex;
  align-items: center;
}

nav a {
  color: gold;
  text-decoration: none;
  margin: 0 18px;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 6px black, 0 0 8px rgba(255, 215, 0, 0.7);
  transition: transform 0.2s ease, color 0.2s ease;
}

nav a:hover {
  transform: translateY(-2px);
  color: #fff0a8;
}

/* LOGO */
.nav-logo {
  position: relative;
  font-family: 'Pirata One', serif;
  font-size: 30px;
  color: #ffd700;
  text-shadow:
    2px 2px 6px black,
    0 0 10px rgba(255, 215, 0, 0.9),
    0 0 18px rgba(255, 215, 0, 0.6);
  cursor: pointer;
  overflow: visible;
}

/* COIN EFFECT */
.coin {
  position: fixed;
  color: gold;
  font-size: 18px;
  pointer-events: none;
  z-index: 9999;
  animation: coinFall 0.9s ease-in forwards;
  text-shadow: 0 0 8px gold;
}

@keyframes coinFall {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }

  100% {
    opacity: 0;
    transform: translateY(120px) rotate(360deg);
  }
}

/* HERO */
.hero {
  background-size: cover;
  background-position: center;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h1 {
  font-size: 60px;
}

/* GENERAL SECTIONS */
.section {
  padding: 60px 20px;
  text-align: center;
}

.section p {
  font-size: 20px;
  line-height: 1.6;
}

/* CARD ROW */
.card-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.card-row img {
  width: 200px;
  height: auto;
  border-radius: 10px;
  image-rendering: auto;
}

/* LORE GRID */
.lore-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.lore-box {
  background: #121820;
  padding: 20px;
  border: 1px solid gold;
  border-radius: 12px;
  text-align: center;
}

.lore-box img {
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
  image-rendering: auto;
  backface-visibility: hidden;
  border-radius: 8px;
  margin: 10px 0;
  filter: brightness(1.2);
}

.lore-box p {
  line-height: 1.5;
}

.lore-box img.parrot {
  filter: brightness(2);
}

.lore-box img.cursed {
  filter: brightness(3);
}

.lore-box img.marooned {
  filter: brightness(0.8);
}

/* TITLES */
.main-title {
  font-family: 'Pirata One', serif;
  font-size: 56px;
  color: gold;
  text-shadow: 3px 3px 10px black;
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
}

.section h2 {
  font-family: 'Pirata One', serif;
  font-size: 40px;
  color: gold;
  margin-top: 40px;
  margin-bottom: 20px;
}

.pirate-title {
  font-family: 'Pirata One', serif;
  font-size: 28px;
  color: gold;
  text-shadow: 2px 2px 6px black;
  margin-bottom: 10px;
}

/* HOW TO PLAY PAGE */
.how-page {
  display: grid;
  grid-template-columns: 190px 900px 190px;
  gap: 18px;
  max-width: 1340px;
  margin: 0 auto;
  padding: 45px 15px;
  align-items: start;
}

.card-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.card-hover {
  position: relative;
  display: inline-block;
}

.card-hover img,
.card-side img {
  width: 165px;
  height: auto;
  display: block;
  object-fit: contain;
  image-rendering: auto;
  backface-visibility: hidden;
  filter: none;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.25);
  border-radius: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-hover:hover img,
.card-side img:hover {
  transform: scale(1.22);
  filter: none;
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.45);
  z-index: 5;
}

.card-lore {
  display: none;
  position: absolute;
  top: 50%;
  left: 115%;
  transform: translateY(-50%);
  width: 230px;
  background: #1b1208;
  color: #f5e6c8;
  border: 2px solid gold;
  border-radius: 10px;
  padding: 12px;
  font-size: 15px;
  line-height: 1.4;
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
  z-index: 20;
}

.card-hover:hover .card-lore {
  display: block;
}

.right .card-lore {
  left: auto;
  right: 115%;
}

.video-column {
  text-align: center;
}

.video-section {
  margin-bottom: 280px;
}

.video-section h2 {
  font-family: 'Georgia', serif;
  font-size: 52px;
  color: gold;
  text-shadow:
    3px 3px 10px black,
    0 0 18px rgba(255,215,0,0.45);
  margin-top: 0;
  margin-bottom: 24px;
}

.video-section iframe {
  width: 100%;
  max-width: 1050px;
  height: 600px;
  border: 3px solid gold;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

/* HOME PAGE */
.home-hero {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(255, 215, 0, 0.18), transparent 28%),
    radial-gradient(circle at 20% 30%, rgba(37, 84, 140, 0.35), transparent 30%),
    radial-gradient(circle at 80% 65%, rgba(8, 38, 70, 0.6), transparent 35%),
    linear-gradient(180deg, #07111f 0%, #05070d 55%, #020308 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: 35px 20px 0 20px;
  position: relative;
  overflow: hidden;
}


.home-content {
  max-width: 950px;
  margin: 0 auto;
  position: relative;
  z-index: 20;
}

.home-content h1 {
  font-family: Georgia, serif;
  font-size: 58px;
  color: #ffd86b;
  text-shadow:
    3px 3px 0 #2b1600,
    0 0 18px rgba(255, 215, 0, 0.55),
    0 0 45px rgba(255, 157, 0, 0.28);
  margin-top: 30px;
  margin-bottom: 0px;
  letter-spacing: 1px;
  font-weight: bold;
  white-space: nowrap;
}
.home-content h2 {
  font-family: Georgia, serif;
  font-size: 34px;
  color: #f5e6c8;
  text-shadow: 2px 2px 8px black;
  margin-bottom: 24px;
}

.intro-text {
  font-size: 18px;
  line-height: 1.5;
  color: #fff2d2;
  text-shadow: 2px 2px 8px black;
  max-width: 690px;
  margin: 50px auto 0 auto;
  padding: 16px 24px;
  background: rgba(3, 8, 16, 0.55);
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: 18px;
  box-shadow:
    0 0 20px rgba(0, 0, 0, 0.35),
    inset 0 0 18px rgba(255, 215, 0, 0.04);
}

.home-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 40px;
}

.buy-button {
  display: inline-block;
  position: relative;
  overflow: hidden;
  width: 280px;
  text-align: center;
  padding: 18px 0;
  background:
    linear-gradient(145deg, #8a5a17, #e0ad36 45%, #8a5a17);
  color: #1b1003;
  border: 1px solid #ffe28a;
  border-radius: 40px;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  box-shadow:
    0 0 20px rgba(255, 190, 60, 0.32),
    inset 0 0 12px rgba(255, 255, 255, 0.22);
  transition: all 0.25s ease;
}

.buy-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255,255,255,0.32);
  transform: skewX(-25deg);
}

.buy-button:hover {
  transform: scale(1.08);
  box-shadow:
    0 0 25px rgba(255, 215, 0, 0.75),
    0 0 60px rgba(255, 170, 35, 0.35);
}

.buy-button:hover::after {
  left: 130%;
  transition: 0.6s;
}

/* SHIPS */
.ship {
  position: fixed;
  bottom: -125px;
  z-index: 8;
  pointer-events: none;
  opacity: 0.96;
}
.left-ship {
  left: -340px;
  animation: shipFloatLeft 5.5s ease-in-out infinite;
}

.right-ship {
  right: -340px;
  animation: shipFloatRight 7s ease-in-out infinite;
}

.ship img {
  width: 430px;
  height: auto;
  filter:
    drop-shadow(0 18px 18px rgba(0,0,0,0.6))
    brightness(0.82);
}

.left-ship {
  left: -250px;
}

.right-ship {
  right: -250px;
}

.right-ship img {
  transform: scaleX(-1);
}

@keyframes shipFloatLeft {
  0% {
    transform: translateY(0px) rotate(-0.5deg);
  }

  50% {
    transform: translateY(-12px) rotate(0.5deg);
  }

  100% {
    transform: translateY(0px) rotate(-0.5deg);
  }
}

@keyframes shipFloatRight {
  0% {
    transform: translateY(-6px) rotate(0.6deg);
  }

  50% {
    transform: translateY(8px) rotate(-0.4deg);
  }

  100% {
    transform: translateY(-6px) rotate(0.6deg);
  }
}

/* WATER */
.water {
  position: fixed;
  left: 0;
  bottom: 0;
  transform: translateY(150px);
  width: 100%;
  height: 215px;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
}

.water-back {
  z-index: 6;
  background: #0c3444;
}

.water-front {
  z-index: 12;
}

.wave {
  position: absolute;
  left: -25%;
  width: 150%;
  height: 115px;
  opacity: 0.96;
  border-radius:
    40% 60% 0 0 /
    55% 55% 0 0;
}

.wave1 {
  bottom: 138px;
  background: #5ca9c4;
  animation: waveSlide1 8s ease-in-out infinite alternate;
}

.wave2 {
  bottom: 108px;
  background: #3e8cab;
  animation: waveSlide2 7s ease-in-out infinite alternate;
}

.wave3 {
  bottom: 78px;
  background: #2d7390;
  opacity: 0.92;
  animation: waveSlide1 6s ease-in-out infinite alternate;
}

.wave4 {
  bottom: 44px;
  background: #1e5870;
  opacity: 0.92;
  animation: waveSlide2 5s ease-in-out infinite alternate;
}

.wave5 {
  bottom: 0;
  height: 90px;
  background: #10394d;
  opacity: 0.94;
  animation: waveSlide1 7s ease-in-out infinite alternate;
}

@keyframes waveSlide1 {
  from {
    transform: translateX(-60px) translateY(0);
  }

  to {
    transform: translateX(60px) translateY(10px);
  }
}

@keyframes waveSlide2 {
  from {
    transform: translateX(60px) translateY(8px);
  }

  to {
    transform: translateX(-60px) translateY(0);
  }
}

/* CANNONBALLS */
.cannonball {
  position: fixed;
  width: 10px;
  height: 10px;
  background: #1a1a1a;
  border-radius: 50%;
  z-index: 7;
  opacity: 0;
  pointer-events: none;
  box-shadow:
    0 0 10px rgba(255,180,80,0.6),
    inset -2px -2px 4px rgba(255,255,255,0.2);
}

.cannonball-left {
  left: 40px;
  bottom: 170px;
}

.cannonball-right {
  right: 40px;
  bottom: 170px;
}

/* BUY FORM */
form input,
form textarea {
  width: 300px;
  padding: 12px;
  border-radius: 8px;
  border: none;
  font-family: Georgia, serif;
}

form textarea {
  width: 320px;
}

html,
body {
  overflow-y: scroll !important;
  overflow-x: hidden !important;
  height: auto !important;
  min-height: 100% !important;
}

.home-page {
  overflow: visible !important;
  height: auto !important;
}

.muzzle-flash {
  position: fixed;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9;
  opacity: 0;
  filter: blur(4px);
  transition: opacity 0.08s linear;
}

.flash-left {
  left: 70px;
  bottom: 40px;
}

.flash-right {
  right: 70px;
  bottom: 40px;
}

.flash-left::before,
.flash-right::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(circle,
    rgba(255,220,120,1) 0%,
    rgba(255,150,40,0.95) 30%,
    rgba(255,100,20,0.5) 55%,
    transparent 75%);

  clip-path: polygon(
    50% 0%,
    60% 30%,
    100% 50%,
    60% 70%,
    50% 100%,
    40% 70%,
    0% 50%,
    40% 30%
  );
}

.flash-left::after,
.flash-right::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 60px;
  left: -20px;
  top: 18px;

  background:
    radial-gradient(ellipse at center,
    rgba(220,220,220,0.65),
    transparent 70%);

  filter: blur(8px);
}

.lore-intro-box {
  max-width: 810px;
  margin: 25px auto 55px auto;
  padding: 16px 24px;
  background: rgba(3, 8, 16, 0.55);
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: 18px;
  box-shadow:
    0 0 20px rgba(0, 0, 0, 0.35),
    inset 0 0 18px rgba(255, 215, 0, 0.04);
  text-align: center;
}

.lore-intro-box p {
  font-size: 18px;
  line-height: 1.5;
  color: #fff2d2;
  text-shadow: 2px 2px 8px black;
  margin: 14px 0;
}
