/* ============================================================
   CARIBBEAN PIRATE SLOT — RESPONSIVE.CSS
   tapplaylounge.online
   Mobile-First Responsive Styles
   ============================================================ */

/* ---- TABLET (max-width: 1024px) ---- */
@media (max-width: 1024px) {

  :root {
    --header-height: 68px;
  }

  .container {
    padding: 0 24px;
  }

  /* Header */
  .main-nav,
  .header-cta {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 60px;
    min-height: auto;
  }

  .hero-content {
    align-items: center;
  }

  .hero-description {
    margin: 0 auto;
  }

  .hero-visual {
    order: -1;
  }

  .hero-scene {
    width: 360px;
    height: 300px;
  }

  .ship-body {
    width: 160px;
  }

  .ship-hull {
    width: 160px;
    height: 58px;
  }

  .sail-main {
    width: 66px;
    height: 58px;
  }

  .sail-fore {
    width: 42px;
    height: 38px;
  }

  /* Features grid */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Progression */
  .progression-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  /* About */
  .about-split {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Contact */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* Info strip */
  .info-strip {
    padding: 32px 40px;
    flex-wrap: wrap;
    gap: 28px;
  }

  .info-strip-divider {
    display: none;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  /* RG Page */
  .rg-principles-grid {
    grid-template-columns: 1fr;
  }

  .resources-grid {
    grid-template-columns: 1fr;
  }

  .rg-commitment {
    padding: 36px;
  }

  /* CTA Section */
  .cta-card {
    padding: 60px 40px;
  }
}

/* ---- MOBILE (max-width: 768px) ---- */
@media (max-width: 768px) {

  :root {
    --header-height: 64px;
  }

  .container {
    padding: 0 16px;
  }

  /* Typography */
  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  /* Section spacing */
  .content-section {
    padding: 60px 0;
  }

  .features-section,
  .progression-section {
    padding: 60px 0;
  }

  .game-section {
    padding: 60px 0 80px;
  }

  /* Section header spacing */
  .section-header {
    margin-bottom: 40px;
  }

  /* Hero */
  .hero-section {
    min-height: auto;
    padding-top: var(--header-height);
    padding-bottom: 40px;
  }

  .hero-inner {
    gap: 40px;
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .hero-headline {
    font-size: 2.2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-scene {
    width: 280px;
    height: 240px;
  }

  .ship-body {
    width: 130px;
  }

  .ship-hull {
    width: 130px;
    height: 48px;
  }

  .ship-mast {
    height: 90px;
    bottom: 46px;
  }

  .sail-main {
    width: 55px;
    height: 50px;
    bottom: 90px;
  }

  .sail-fore {
    width: 35px;
    height: 32px;
    bottom: 106px;
  }

  .ocean-waves {
    width: 250px;
    bottom: 40px;
  }

  /* Page Hero */
  .page-hero {
    padding: calc(var(--header-height) + 48px) 0 48px;
    min-height: 280px;
  }

  .page-hero--small {
    padding: calc(var(--header-height) + 40px) 0 40px;
    min-height: 220px;
  }

  .page-hero-title {
    font-size: 2rem;
  }

  /* Game card */
  .game-card-inner {
    padding: 4px;
  }

  .game-card-footer {
    padding: 14px 8px 10px;
  }

  .game-features-strip {
    gap: 8px;
  }

  .game-feature-pill {
    padding: 6px 12px;
    font-size: 0.78rem;
  }

  /* Features grid */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 28px 22px;
  }

  /* Info Strip */
  .info-strip {
    padding: 28px 20px;
    gap: 24px;
  }

  .info-strip-item {
    flex: 1;
    min-width: 100px;
  }

  .info-number {
    font-size: 1.75rem;
  }

  /* Progression */
  .rank-list {
    gap: 12px;
  }

  .treasure-chest-scene {
    width: 220px;
    height: 220px;
  }

  .chest-base,
  .chest-lid {
    width: 110px;
  }

  .chest-base {
    height: 62px;
  }

  .chest-lid {
    height: 38px;
    top: -34px;
  }

  /* CTA */
  .cta-card {
    padding: 48px 24px;
  }

  .cta-title {
    font-size: 1.75rem;
  }

  /* About */
  .disclaimer-card {
    flex-direction: column;
    gap: 16px;
    padding: 28px 24px;
  }

  /* Legal */
  .legal-block {
    flex-direction: column;
    gap: 12px;
    padding: 32px 0;
  }

  .legal-icon {
    width: auto;
    text-align: left;
  }

  /* Contact form */
  .contact-form-panel {
    padding: 28px 20px;
  }

  /* RG */
  .rg-commitment {
    flex-direction: column;
    gap: 20px;
    padding: 28px 24px;
  }

  .rg-principles-grid {
    gap: 16px;
  }

  .rg-principle-card {
    padding: 24px 20px;
  }

  /* Rules */
  .rules-block {
    padding: 32px 0;
  }

  .rules-block-header {
    gap: 12px;
  }

  .bonus-feature-item {
    flex-direction: column;
    gap: 12px;
  }

  .paytable-header,
  .paytable-row {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    padding: 10px 14px;
    gap: 8px;
  }

  .paytable-header span,
  .paytable-row span {
    font-size: 0.78rem;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .site-footer {
    padding-top: 48px;
  }

  .footer-inner {
    gap: 40px;
  }

  /* Story cards (about) */
  .story-grid {
    grid-template-columns: 1fr;
  }

  /* Resources */
  .resources-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ---- SMALL MOBILE (max-width: 480px) ---- */
@media (max-width: 480px) {

  .logo-text {
    font-size: 0.88rem;
  }

  .hero-headline {
    font-size: 1.9rem;
  }

  .btn-large {
    padding: 14px 28px;
    font-size: 0.95rem;
  }

  .hero-scene {
    width: 240px;
    height: 200px;
  }

  .info-strip {
    flex-direction: column;
    gap: 20px;
  }

  .info-strip-item {
    flex-direction: row;
    justify-content: center;
    gap: 12px;
  }

  .contact-layout {
    gap: 32px;
  }

  .contact-form-panel {
    padding: 20px 16px;
  }

  .mobile-menu-overlay {
    max-width: 100%;
    padding: 72px 28px 32px;
  }

  .paytable {
    overflow-x: auto;
  }

  .paytable-header,
  .paytable-row {
    min-width: 380px;
  }
}

/* ---- LARGE SCREENS (min-width: 1400px) ---- */
@media (min-width: 1400px) {
  .hero-headline {
    font-size: 5rem;
  }

  .hero-scene {
    width: 540px;
    height: 460px;
  }

  .features-grid {
    gap: 32px;
  }
}

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in-up,
  .fade-in-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}