/* Mobile refinements for the Hardcore Royale landing page.
   Loaded after home.css so it only tightens small-screen layout. */

@media (max-width: 900px) {
  .legacy-home {
    overflow-x: hidden;
  }

  .wrap {
    padding: 0 16px;
  }

  /* Hero: compact, fluid logo, launch date + countdown visible again */
  #home.hero,
  .hero {
    flex-direction: column !important;
    min-height: 0 !important;
    height: auto !important;
    padding-bottom: 26px !important;
  }

  .hero-content,
  #home .hero-content {
    width: min(520px, 92%) !important;
    padding: 92px 0 18px !important;
  }

  .hero-logo,
  #home .hero-logo {
    width: 100% !important;
    max-width: 400px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    margin: 0 auto !important;
  }

  .hero .eyebrow {
    font-size: 11px;
    letter-spacing: 3px;
  }

  .tagline {
    font-size: 12px;
    letter-spacing: 2px;
    margin: 8px 0 22px;
  }

  .tagline span {
    margin: 0 4px;
  }

  .hero .btn {
    width: 100%;
    max-width: 320px;
    padding: 15px 18px;
    font-size: 12px;
  }

  .hero .server {
    width: 100%;
    max-width: 340px;
    justify-content: center;
    padding: 11px 12px;
    font-size: 12px;
  }

  .hero-season {
    display: block;
    position: static;
    order: 2;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding: 0 16px;
    text-align: center;
    background: none;
    border-radius: 0;
  }

  .hero-season small {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .hero-season strong {
    display: block;
    font-size: 26px;
    letter-spacing: 1px;
    margin-top: 2px;
  }

  .count {
    justify-content: center;
    gap: 5px;
    margin-top: 12px;
  }

  .count div {
    flex: 1;
    min-width: 0;
    padding: 8px 4px;
  }

  .count b {
    font-size: 16px;
  }

  .count em {
    font-size: 7px;
  }

  /* Stats follow the taller hero */
  .stats {
    margin-top: 0;
  }

  /* Season: art on top, full-width copy below */
  #season .season-layout {
    height: auto !important;
  }

  #season .season-block {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }

  #season .season-art {
    display: block !important;
    position: static !important;
    height: 180px !important;
    min-height: 0 !important;
  }

  #season .season-info {
    width: 100% !important;
    padding: 20px 16px 24px !important;
    gap: 6px !important;
  }

  #season .season-info h2 {
    font-size: 34px !important;
  }

  #season .season-info p {
    max-width: none !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin: 4px 0 10px !important;
  }

  #season .season-info .btn {
    align-self: stretch !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 10px 14px !important;
    font-size: 11px !important;
  }

  #season .features {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: auto !important;
    min-height: 0 !important;
    gap: 10px !important;
  }

  #season .feature {
    padding: 16px 8px !important;
  }

  /* Sections breathe better with tighter vertical rhythm */
  .section {
    padding: 44px 0;
  }

  .heading {
    margin-bottom: 22px;
  }

  .heading p {
    letter-spacing: 2px;
    font-size: 10px;
  }

  /* Gamemode cards: one clean card per row, picture above the caption.
     The old site's mobile rules squeeze all six into one row, so the
     #gamemodes id is needed here to win the cascade. */
  #gamemodes .modes {
    display: block !important;
    grid-template-columns: none !important;
    width: 100% !important;
    max-width: none !important;
    gap: 0 !important;
  }

  #gamemodes .mode {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    margin: 0 0 14px !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    transform: none !important;
  }

  #gamemodes .mode:last-child {
    margin-bottom: 0 !important;
  }

  #gamemodes .mode img {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: 190px !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    transform: none !important;
  }

  #gamemodes .mode::after {
    display: none !important;
  }

  #gamemodes .mode-label {
    position: static !important;
    inset: auto !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    padding: 14px 16px 16px !important;
    text-align: left !important;
    background: #130f18 !important;
    z-index: auto !important;
  }

  #gamemodes .mode-label h3 {
    font-size: 20px !important;
    margin: 0 0 3px !important;
    line-height: 1.1 !important;
  }

  #gamemodes .mode-label p {
    font-size: 11px !important;
    line-height: 1.4 !important;
  }

  /* Community: stacked, full-width buttons */
  .community {
    padding: 52px 16px;
  }

  .community h2 {
    font-size: 34px;
    line-height: 1.05;
  }

  .community p {
    font-size: 14px;
  }

  .community .btn {
    display: flex;
    width: 100%;
    max-width: 320px;
    margin: 8px auto 0;
    padding: 15px 18px;
    font-size: 12px;
  }

  .partner-inner {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding: 0 16px;
  }
}

@media (max-width: 600px) {
  .hero-content {
    padding-top: 78px !important;
  }

  .hero-logo {
    max-width: 320px !important;
  }

  .hero .server {
    font-size: 11px;
  }

  #gamemodes .mode img {
    height: 175px !important;
  }

  #gamemodes .mode-label {
    padding: 13px 14px 15px !important;
  }

  #gamemodes .mode-label h3 {
    font-size: 19px !important;
  }

  .stat .symbol {
    font-size: 22px;
  }

  .stat strong {
    font-size: 11px;
  }

  .stat small {
    font-size: 9px;
  }

  #season .season-info h2 {
    font-size: 30px !important;
  }

  .community h2 {
    font-size: 30px;
  }

  footer {
    padding: 26px 16px;
    line-height: 1.6;
  }
}
