:root {
  --bg-color: #FFDE0D;
  --text-color: #000000;
  --accent-1: #049839;
  --accent-2: #1CAEE5;
  --card-bg: #FFFFFF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: fixed; /* Extra lock for mobile */
  width: 100%;
  height: 100dvh;
}

body.comic-body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'DM Sans', sans-serif;
  height: 100dvh;
  overflow: hidden;
  position: relative;
  background-image: radial-gradient(rgba(0,0,0,0.15) 2px, transparent 2px);
  background-size: 24px 24px;
}

#texture-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  z-index: 100;
}

.action-lines {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200vmax;
  height: 200vmax;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, transparent 0deg 8deg, rgba(255,255,255,0.1) 8deg 16deg);
  z-index: 0;
  pointer-events: none;
}

.comic-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2.5rem;
  z-index: 50;
}

.logo-cutout {
  background: black;
  padding: 15px 25px;
  border: 3px solid white;
  box-shadow: 8px 8px 0px black;
  transform: rotate(-3deg);
  display: inline-block;
}

.logo-cutout img {
  height: 35px;
  width: auto;
}

@media (max-width: 768px) {
  .comic-header {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
  }
  
  .logo-cutout {
    padding: 10px 15px;
    box-shadow: 4px 4px 0px black;
  }
  
  .logo-cutout img {
    height: 25px;
  }
}

.comic-container {
  height: 100dvh;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.center-content {
  text-align: center;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

/* Keyboard shift for Tablets/iPads (481px to 1440px) */
@media (min-width: 481px) and (max-width: 1440px) {
  .keyboard-active .center-content {
    transform: translateY(-25vh);
    transform: translateY(-25dvh);
  }
  
  .keyboard-active .letter {
    font-size: clamp(20px, 4vw, 35px);
    padding: 3px 6px;
  }
}

.comic-title, .comic-tagline {
  pointer-events: none;
  z-index: 1; /* Sit behind the cards */
  position: relative;
}

.title-wrap {
  margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .title-wrap {
    margin-bottom: 1.5rem;
  }
}

.comic-title {
  line-height: 1.1;
  display: inline-block;
}

.letter {
  display: inline-block;
  padding: 10px 15px;
  border: 3px solid black;
  margin: 4px;
  text-shadow: none;
  font-size: clamp(40px, 8vw, 120px);
  box-shadow: 6px 6px 0px black;
}

@media (max-width: 1024px) {
  .letter {
    padding: 8px 12px;
    margin: 3px;
    font-size: clamp(35px, 7vw, 90px);
    box-shadow: 4px 4px 0px black;
    transition: font-size 0.3s ease, padding 0.3s ease;
  }
}

@media (max-width: 480px) {
  .letter {
    padding: 6px 10px;
    margin: 2px;
    font-size: clamp(32px, 10vw, 60px);
    box-shadow: 4px 4px 0px black;
    border-width: 2px;
  }
  
  .comic-title {
    margin-bottom: 1rem;
  }
}

/* Landscape/Short Screen Optimization */
@media (max-height: 720px) and (min-width: 768px) {
  .title-wrap { margin-bottom: 1rem; }
  .waitlist-wrap { margin-top: 1rem; }
  .letter { font-size: clamp(30px, 10vh, 70px); }
  .comic-tagline { font-size: 18px; padding: 10px 20px; }
}

/* Cutout Variations */
.cutout-1 { font-family: 'Archivo Black'; background: #fff; transform: rotate(-5deg); }
.cutout-2 { font-family: 'Syne'; background: #f0f0f0; transform: rotate(3deg); padding-top: 20px; }
.cutout-3 { font-family: 'Unbounded'; background: var(--accent-1); color: white; transform: rotate(-2deg); }
.cutout-4 { font-family: 'Space Grotesk'; background: #fff; transform: rotate(4deg); }
.cutout-5 { font-family: 'Outfit'; background: var(--accent-2); color: white; transform: rotate(-3deg); }
.cutout-6 { font-family: 'Archivo Black'; background: #000; color: #fff; transform: rotate(2deg); border-color: #fff; }
.cutout-7 { font-family: 'Unbounded'; background: #fff; transform: rotate(-4deg); }
.cutout-8 { font-family: 'Syne'; background: var(--accent-1); color: white; transform: rotate(5deg); }
.cutout-9 { font-family: 'Outfit'; background: #fff; transform: rotate(-2deg); }
.cutout-10 { font-family: 'Archivo Black'; background: var(--accent-2); color: white; transform: rotate(3deg); }

.tagline-wrap {
  perspective: 1000px;
}

.comic-tagline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(16px, 2.5vw, 32px);
  background: white;
  color: black;
  padding: 15px 30px;
  display: inline-block;
  border: 4px solid black;
  box-shadow: 10px 10px 0px black;
  transform: rotate(-1deg);
}

@media (max-width: 480px) {
  .comic-tagline {
    padding: 10px 15px;
    font-size: 14px;
    border-width: 2px;
    box-shadow: 5px 5px 0px black;
    max-width: 85%;
  }
}

/* Waitlist Form */
.waitlist-wrap {
  margin-top: 2rem;
  pointer-events: all; 
  position: relative;
  z-index: 9999; /* Stay above everything, including cards */
  min-height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
}

@media (max-width: 1024px) {
  .waitlist-wrap {
    margin-top: 1.5rem;
  }
}

.comic-form {
  display: flex;
  gap: 0;
  transform: rotate(1deg);
}

.comic-input {
  background: white;
  border: 3px solid black;
  padding: 12px 20px;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 14px;
  width: 280px;
  outline: none;
  box-shadow: 6px 6px 0px black;
}

.comic-input::placeholder {
  color: rgba(0,0,0,0.4);
  font-weight: 800;
}

.comic-button {
  background: var(--accent-1);
  color: white;
  border: 3px solid black;
  border-left: none;
  padding: 12px 25px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 6px 6px 0px black;
  transition: transform 0.1s, box-shadow 0.1s;
}

.comic-button:hover {
  background: #000;
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0px black;
}

.comic-button:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px black;
}

.hidden {
  display: none;
}

.success-cutout {
  display: inline-block;
  padding: 15px 30px;
  background: var(--accent-2);
  color: white;
  font-family: 'Unbounded', sans-serif;
  font-weight: 900;
  font-size: 20px;
  border: 4px solid black;
  box-shadow: 10px 10px 0px black;
  transform: rotate(-2deg);
}


@media (max-width: 480px) {
  .waitlist-wrap {
    margin-top: 1.5rem;
  }
  
  .comic-form {
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 15px;
    transform: none;
  }
  
  .comic-input {
    width: 90%;
    border-right: 3px solid black;
  }
  
  .comic-button {
    width: 90%;
    border-left: 3px solid black;
  }
  
  .success-cutout {
    font-size: 16px;
    padding: 10px 20px;
  }
}

.ripped {
  clip-path: polygon(
    0% 4%, 5% 0%, 10% 4%, 15% 0%, 20% 4%, 25% 0%, 30% 4%, 35% 0%, 40% 4%, 45% 0%, 50% 4%, 55% 0%, 60% 4%, 65% 0%, 70% 4%, 75% 0%, 80% 4%, 85% 0%, 90% 4%, 95% 0%, 100% 4%,
    100% 96%, 95% 100%, 90% 96%, 85% 100%, 80% 96%, 75% 100%, 70% 96%, 65% 100%, 60% 96%, 55% 100%, 50% 96%, 45% 100%, 40% 96%, 35% 100%, 30% 96%, 25% 100%, 20% 96%, 15% 100%, 10% 96%, 5% 100%, 0% 96%
  );
}

/* Physics Cards - Paper style */
.drop-card {
  position: absolute;
  background: #fff;
  border: 2px solid black;
  padding: 10px 18px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
  box-shadow: 4px 4px 0px black;
  cursor: grab;
  user-select: none;
  z-index: 50; /* Higher than text, lower than form */
  background-image: linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 100% 1.2rem;
  transition: scale 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
}

@media (max-width: 480px) {
  .drop-card {
    font-size: 12px;
    padding: 6px 12px;
  }
}

.drop-card:hover {
  scale: 1.15;
  box-shadow: 12px 12px 0px black;
  z-index: 1000;
}

.drop-card::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 30%;
  width: 35px;
  height: 12px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(0,0,0,0.1);
  transform: rotate(-2deg);
}
