:root {
    --primary-gradient: linear-gradient(135deg, #4834d4 0%, #6C63FF 100%);
    --background-dark: #0F1729;
    --text-light: #FFFFFF;
    --text-secondary: #94A3B8;
    --accent-pink: #FF3366;
    --card-bg: #1A2438;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: var(--background-dark);
    color: var(--text-light);
}

/* Navbar */
.navbar {
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 41, 0.95);
    backdrop-filter: blur(10px);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 75px;
    width: auto;
}

/* Reusable button */
.cta-button {
    width: 160px;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem .9rem;
    border-radius: .6rem;
    background: #1a73e8;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.cta-button .icon {
    width: 1.1em;
    height: 1.1em;
    fill: currentColor;
    display: block;
    flex: 0 0 auto;
}

.cta-button img.icon {
    height: 1.1em;
    width: auto;
}

.cta-button:hover {
    filter: brightness(1.05);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hero */
.hero {
    padding: 160px 5% 100px;
    background: var(--background-dark);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.15) 0%, rgba(15, 23, 41, 0) 70%);
    z-index: 0;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-text h1 span {
    color: var(--accent-pink);
}

.hero-text .cta-button {
    color: #fff;
}

.hero-text p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Features */
.features {
    padding: 100px 5%;
    background: var(--background-dark);
}

.features-header {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.features-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.features-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Games grid */
.games-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.2);
}

.game-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-bottom: 2px solid rgba(108, 99, 255, 0.2);
}

.game-content {
    padding: 1.5rem;
}

.game-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.game-genre {
    display: inline-block;
    background: rgba(108, 99, 255, 0.2);
    color: #6C63FF;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.game-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.game-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.game-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.game-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
}

/* Playable embed */
.playable-section {
    padding: 60px 5% 0;
    background: var(--background-dark);
}
.playable-header {
    max-width: 800px;
    margin: 0 auto 24px;
    text-align: center;
}
.playable-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.playable-header p {
    color: var(--text-secondary);
}
.embed-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.2);
    border: 1px solid rgba(255,255,255,0.08);
}
.embed-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}
@media (max-width: 768px) {
    .embed-container { padding-top: 75%; }
}

/* Footer */
.footer {
    background: var(--card-bg);
    padding: 4rem 5%;
    margin-top: 100px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info {
    color: var(--text-secondary);
}

.footer a {
    color: #9cc1ff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

/* Playable tabs */
.playable-tabs {
  max-width: 1200px;
  margin: 0 auto 16px;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
}
.tab-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-light);
  padding: .55rem .9rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.tab-btn:hover { transform: translateY(-1px); }
.tab-btn.is-active {
  background: var(--primary-gradient);
  border-color: transparent;
}
@media (max-width: 640px) {
  .tab-btn { font-size: .9rem; }
}

/* --- Playable sizing rules (override) ---
   Desktop (>=769px): fixed height
   Mobile (<=768px): 16:9 ratio
*/
.embed-container {
  /* override previous ratio padding */
  padding-top: 0 !important;
  position: relative;
  width: 100%;
  height: 720px; /* fixed height on PC/desktop */
  background: #000;
}
.embed-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 768px) {
  .embed-container {
    height: auto;
    aspect-ratio: 9 / 16; /* 16:9 on mobile */
  }
}


/* Keyboard focus ring when user tabs */
.user-is-tabbing a, .user-is-tabbing button, .user-is-tabbing .tab-btn, .user-is-tabbing .cta-button { outline: 2px solid #9cc1ff !important; outline-offset: 2px; }
