* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #09090e;
    color: #f4f4f7;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input {
    font: inherit;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: 92%;
    max-width: 1280px;
    margin: auto;
}

header {
    background: #101016;
    border-bottom: 1px solid #22222c;
}

.topbar {
    display: flex;
    align-items: center;
    height: 58px;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1.5px;
}

.logo span {
    color: #a78bfa;
}

.brand {
    margin-left: 12px;
    font-size: 9px;
    letter-spacing: 2px;
    color: #777783;
}

.toplink {
    margin-left: auto;
    font-size: 13px;
    color: #b9a5ff;
}

nav {
    display: flex;
    overflow-x: auto;
    padding: 14px 0;
}

nav button {
    border: 0;
    background: transparent;
    color: #9393a1;
    padding: 10px 14px;
    margin-right: 5px;
    border-radius: 7px;
    white-space: nowrap;
    font-size: 13px;
    cursor: pointer;
}

nav button.active {
    background: #271e40;
    color: #bca7ff;
}

.search {
    margin-bottom: 18px;
}

.search input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #292934;
    border-radius: 9px;
    background: #15151e;
    color: white;
    outline: none;
}

.search input:focus {
    border-color: #a78bfa;
}

.featured {
    height: 340px;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #201735;
    border: 1px solid #30283f;
}

.featured img {
    position: absolute;
    right: 0;
    top: 0;
    width: 70%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        #100d1a 5%,
        rgba(16,13,26,.92) 30%,
        rgba(16,13,26,.2) 100%);
}

.hero-content {
    position: absolute;
    left: 7%;
    bottom: 15%;
    max-width: 75%;
}

.hero-content small {
    color: #bca7ff;
    font-size: 10px;
    letter-spacing: 3px;
}

.hero-content h1 {
    font-size: 42px;
    margin: 12px 0;
}

.hero-content p {
    color: #b0aaba;
    font-size: 13px;
    margin-bottom: 25px;
}

.primary {
    display: inline-block;
    background: #7951db;
    color: white;
    padding: 12px 20px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: bold;
}

.arrow {
    position: absolute;
    top: 45%;
    background: rgba(0,0,0,.45);
    color: white;
    border: 0;
    border-radius: 6px;
    font-size: 25px;
    padding: 5px 10px;
    cursor: pointer;
}

.prev { left: 8px; }
.next { right: 8px; }

.dots {
    text-align: center;
    padding: 12px 0;
}

.dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    padding: 0;
    margin: 3px;
    background: #393541;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}

.dot.active {
    width: 22px;
    background: #a78bfa;
}

.heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.heading h2 {
    font-size: 20px;
}

.heading a,
.heading span {
    color: #a78bfa;
    font-size: 12px;
}

.games {
    display: flex;
    flex-wrap: wrap;
    margin: -6px;
}

.game {
    width: calc(16.666% - 12px);
    margin: 6px;
    border-radius: 10px;
    background: #14141c;
    border: 1px solid #262630;
    overflow: hidden;
    transition: border-color .2s;
}

.game:hover,
.game:focus {
    border-color: #a78bfa;
}

.cover {
    position: relative;
    padding-top: 133%;
    background: #22222d;
}

.cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-info {
    padding: 11px;
}

.game-info strong {
    display: block;
    font-size: 13px;
    margin-bottom: 7px;
}

.game-info small {
    color: #9993aa;
    font-size: 11px;
}

footer {
    margin-top: 40px;
    padding: 30px 0;
    border-top: 1px solid #252530;
    color: #777783;
}

footer .logo {
    color: white;
}

footer p {
    font-size: 13px;
}

.detail {
    padding: 24px;
    margin: 20px 0;
    background: #15151e;
    border: 1px solid #282833;
    border-radius: 12px;
}

.detail img {
    width: 160px;
    max-width: 100%;
    border-radius: 8px;
}

.detail p {
    color: #aaaab8;
    line-height: 1.6;
}

.back {
    display: inline-block;
    margin-top: 20px;
    color: #a78bfa;
}

@media(max-width:1000px) {
    .game {
        width: calc(25% - 12px);
    }
}

@media(max-width:600px) {
    .brand {
        display: none;
    }

    .featured {
        height: 230px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content {
        left: 10%;
    }

    .game {
        width: calc(33.333% - 12px);
    }

    .heading h2 {
        font-size: 17px;
    }

    .game-info {
        padding: 8px;
    }

    .game-info strong {
        font-size: 12px;
    }
}

@media(max-width:360px) {
    .game {
        width: calc(50% - 12px);
    }
}

@media(orientation:landscape) and (max-height:450px) {
    .featured {
        height: 180px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .topbar {
        height: 44px;
    }

    nav {
        padding: 6px 0;
    }
}
nav { scrollbar-width:none; } nav::-webkit-scrollbar { display:none; }
.topaction { margin-left:16px; color:#a78bfa; font-size:12px; }
.game-wrap { position:relative; } .game-link { display:block; }
.favorite { position:absolute; top:8px; right:8px; background:#101016dd; color:#c4afff; border:1px solid #514368; border-radius:50%; width:32px; height:32px; cursor:pointer; }
.cover img { object-fit:contain; } .hero-content { left:12%; max-width:72%; } .arrow { top:50%; transform:translateY(-50%); }
.admin-form label { display:block; margin:12px 0; color:#b9a5ff; font-size:13px; }
.admin-form input,.admin-form textarea,.admin-form select { display:block; width:100%; padding:12px; margin-top:5px; background:#101016; color:white; border:1px solid #343040; border-radius:7px; }
.admin-form button { border:0; cursor:pointer; margin:5px; } .admin-row { padding:12px 0; border-bottom:1px solid #343040; } .admin-row button { margin-left:8px; }

/* v1.3.0 */
.cover img{object-fit:cover}.game{box-shadow:0 6px 20px #0003}.game-info{min-height:65px}.game-info strong{overflow-wrap:break-word}.featured{border-radius:18px}.hero-content{left:6%;bottom:18%;max-width:76%}.arrow{top:auto;bottom:12px;transform:none}.prev{left:auto;right:52px}.next{right:12px}.primary{border:0;cursor:pointer;background:linear-gradient(135deg,#8960ec,#6540c5)}.detail-product{overflow:hidden;padding:24px}.detail-banner{height:220px;margin:-24px -24px 20px;background:#201735;overflow:hidden}.detail-banner img{width:100%;height:100%;object-fit:cover;border-radius:0;opacity:.75}.product-intro{min-height:180px;overflow:hidden}.product-intro #cover{float:left;width:130px;margin:0 20px 16px 0}.specs{display:flex;flex-wrap:wrap;margin:12px -4px}.specs p{width:calc(50% - 8px);margin:4px;padding:12px;background:#101016;border-radius:8px;font-size:13px}.related a{display:block;padding:12px;background:#201735;margin:6px 0;border-radius:8px}.related{color:#b9a5ff;font-size:13px}.eyebrow{color:#a78bfa;letter-spacing:2px}.admin-form button{background:#29213c;color:#e5dbff;border:1px solid #514368;border-radius:8px;padding:10px 14px}.admin-form button.primary{background:#7951db;color:white}.admin-row{display:flex;align-items:center;flex-wrap:wrap}.admin-row button:first-of-type{margin-left:auto}.admin-row button:last-child{color:#ffb3b3}.admin-form #fields{display:flex;flex-wrap:wrap;margin:0 -6px}.admin-form #fields label{width:calc(50% - 12px);margin:8px 6px}.admin-form textarea{min-height:100px}.upload-area{padding:12px;background:#101016;border-radius:10px}.upload-area img{max-height:160px;object-fit:contain;display:none}.admin-form input[type=checkbox]{display:inline-block}.admin-form #status{color:#c4afff}@media(max-width:600px){.detail-banner{height:160px}.product-intro #cover{width:100px}.product-intro h1{font-size:24px}.admin-form #fields label{width:calc(100% - 12px)}.hero-content h1{font-size:26px}.hero-content{bottom:20%}}
