/* Large screens / 4K TVs */
@media (min-width: 2000px) {
  .board {
    --tile-size: 65px;
    --tile-gap: 5px;
    padding: 36px 36px 48px;
  }

  .page-frame {
    max-width: 1600px;
  }

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

/* Standard desktop */
@media (max-width: 1200px) {
  .board {
    --tile-size: clamp(32px, 4vw, 50px);
  }

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

  .page-frame {
    margin: 16px;
  }
}

/* Tablet */
@media (max-width: 900px) {
  .board {
    --tile-size: clamp(26px, 4.5vw, 40px);
    padding: 20px 16px 32px;
    border-radius: 12px;
  }

  .page-frame {
    margin: 12px;
    border-radius: 12px;
  }

  .header {
    padding: 14px 20px;
  }

  .hero {
    padding: 36px 16px 28px;
  }

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

  .hero .subtitle {
    font-size: 14px;
  }

  .accent-segment {
    width: 12px;
    height: 12px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .board {
    --tile-size: clamp(18px, 4vw, 28px);
    --tile-gap: 2px;
    padding: 12px 8px 24px;
  }

  .page-frame {
    margin: 8px;
    border-radius: 10px;
  }

  .header {
    padding: 10px 16px;
  }

  .header-logo {
    font-size: 16px;
  }

  .header-nav a {
    font-size: 12px;
  }

  .hero h1 {
    font-size: 22px;
    letter-spacing: -0.5px;
  }

  .hero .subtitle {
    font-size: 13px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 0 16px;
  }

  .hero-cta input {
    width: 100%;
    border-radius: 8px;
  }

  .hero-cta button {
    width: 100%;
  }

  .accent-bar {
    display: none;
  }

  .keyboard-hint {
    display: none;
  }
}

/* Fullscreen mode */
:fullscreen .page-frame {
  max-width: none;
  margin: 0;
  border-radius: 0;
  min-height: 100vh;
  box-shadow: none;
  background: #111;
}

:fullscreen .header,
:fullscreen .hero {
  display: none !important;
}

:fullscreen .board-section {
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

:fullscreen .board {
  border-radius: 0;
  box-shadow: none;
  --tile-size: clamp(44px, 4vw, 70px);
}
