/* style.css */
:root {
    --neon: #00e0ff
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Inter, system-ui, Arial;
    background: radial-gradient(circle at 10% 10%, rgba(183, 0, 255, 0.06), transparent), radial-gradient(circle at 90% 90%, rgba(0, 224, 255, 0.04), transparent), #071226;
    color: #eaf6ff
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02)
}

/* ===== HEADER LOGO ===== */
.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 45px;
  height: 45px;
  border-radius: 10px;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: bold;
  color: #00bfff;
}


.logo {
    font-weight: 800;
    color: var(--neon);
    font-size: 20px
}

.search-bar {
    margin-left: 20px;
    padding: 10px 14px;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.02);
    color: inherit;
    outline: none;
    box-shadow: 0 0 15px rgba(0, 224, 255, 0.06)
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    padding: 28px;
    max-width: 1100px;
    margin: 0 auto
}

.game-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 12px 40px rgba(2, 6, 23, 0.6);
    transition: transform .28s, box-shadow .28s;
    opacity: 0;
    animation: popIn .6s ease forwards
}

.game-card img {
    width: 100%;
    height: 180px;
    object-fit: cover
}

.card_meta {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center
}

.game-title {
    font-weight: 800;
    color: var(--neon);
    font-size: 16px
}

.game-desc {
    color: rgba(234, 246, 255, 0.7);
    font-size: 13px
}

.btn {
    background: linear-gradient(90deg, var(--neon), #80ffd8);
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    color: #041018;
    font-weight: 800;
    cursor: pointer
}

@keyframes popIn {
    0% {
        transform: scale(.9);
        opacity: 0
    }

    60% {
        transform: scale(1.03);
        opacity: 1
    }

    100% {
        transform: scale(1);
        opacity: 1
    }
}

.popup {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50
}

.popup.active {
    display: flex
}

.popup-box {
    background: #0f1624;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
    width: 320px
}

.os-btn {
    margin: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(90deg, var(--neon), #80ffd8);
    color: #041018;
    font-weight: 800;
    cursor: pointer
}

.thank-card {
    width: 100%;
    max-width: 740px;
    padding: 22px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.7);
    margin: 40px auto;
    text-align: center
}

.game-image {
    width: 180px;
    height: 180px;
    border-radius: 18px;
    object-fit: cover;
    border: 3px solid rgba(0, 224, 255, 0.12);
    box-shadow: 0 8px 30px rgba(0, 209, 255, 0.06)
}

.countdown {
    font-size: 34px;
    color: #80ffdb;
    font-weight: 800;
    margin-top: 12px
}

.back-button {
    position: fixed;
    top: 18px;
    left: 18px;
    background: rgba(0, 200, 255, 0.08);
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--neon);
    text-decoration: none;
    font-weight: 700;
    border: 1px solid rgba(0, 224, 255, 0.08)
}

@media(max-width:600px) {
    .game-card img {
        height: 140px
    }

    .game-image {
        width: 140px;
        height: 140px
    }
}

/* ===== HEADER CENTER ===== */
.header-center {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 250px;
  background: transparent;
}

/* ===== LOGO BLOCK ===== */
.logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.logo-img {
  width: 80px;
  height: 80px;
  border-radius: 16px;
}

.logo-text {
  font-size: 2rem;
  font-weight: bold;
  color: #00bfff;
  letter-spacing: 1px;
}

/* ===== SEARCH BAR ===== */
.search-bar {
  width: 300px;
  padding: 10px 15px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  text-align: center;
  background: rgba(82, 164, 240, 0.9);
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
  outline: none;
  transition: all 0.3s ease;
}

.search-bar:focus {
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.9);
  transform: scale(1.05);
}
