/*!
Theme Name: 	Arcade Theme
Theme URI:		https://arcadetheme.com
Author: 		ArcadeTheme.com
Author URI: 	https://arcadetheme.com
Description: 	Arcade Theme is a fully automated, super fast, lightweight and highly customizable online gaming WordPress theme. Still searching for the perfect theme? Look no further!
Version: 		2025.10.06
License:		GNU General Public License v3 or later
License URI:	https://www.gnu.org/licenses/gpl-3.0.html
Tags: 			custom-colors, custom-menu, custom-logo, custom-background, translation-ready, theme-options
Text Domain:	arcade-theme
Requires PHP:	7.0
Tested up to:	6.3
*/

:root {
    --bg: #07141f;
    --bg-soft: #101f2d;
    --panel: rgba(15, 28, 40, 0.9);
    --panel-alt: #122738;
    --card: #0f1d2b;
    --card-strong: #0b1621;
    --text: #edf5ff;
    --muted: #bcd2e5;
    --primary: #5eead4;
    --primary-strong: #14b8a6;
    --secondary: #7dd3fc;
    --yellow: #fbbf24;
    --red: #fb7185;
    --green: #34d399;
    --shadow: 0 18px 45px rgba(2, 10, 18, 0.25);
    --radius: 22px;
    --content-width: 1280px;
}

html { scroll-behavior: smooth; }

body {
    background:
        radial-gradient(circle at top left, rgba(94, 234, 212, 0.12), transparent 30%),
        linear-gradient(180deg, #07141f 0%, #0e1e2e 100%);
    color: var(--text);
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; }
a {
    text-decoration: none;
    background-color: transparent;
    color: var(--text);
}

* {
    box-sizing: border-box;
    -webkit-transition: all .25s ease;
    -o-transition: all .25s ease;
    transition: all .25s ease;
}

#header a:hover,
#top-nav a:hover,
#mf a:hover,
.rg a:hover,
#tc a:hover {
    text-decoration: none;
}

.screen-reader-text { display: none; }

#page { width: 100%; overflow: hidden; }

#content {
    margin: 0 auto;
    max-width: var(--content-width);
    padding: 1.25rem 18px 3rem;
}

.page-shell {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 1.2rem 18px 2.5rem;
}

.single-page,
.site-main,
.desc,
.related {
    position: relative;
    z-index: 1;
}

header .page-title,
.page-title {
    font-size: clamp(1.6rem, 2.4vw, 2.5rem);
    line-height: 1.2;
    margin: 0 0 1rem;
    color: var(--text);
    letter-spacing: 0.02em;
}

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.9rem;
}

.hero-section {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 1.5rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(18, 39, 56, 0.94), rgba(7, 20, 31, 0.97));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.hero-copy h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
    margin: 0 0 0.8rem;
}

.hero-copy p {
    margin: 0;
    max-width: 640px;
    color: var(--muted);
    font-size: 1.04rem;
}

.hero-search { display: flex; justify-content: flex-end; }

.searchform { width: min(100%, 420px); }
.searchform label { display: block; }
.searchform input[type="search"] {
    width: 100%;
    height: 54px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(6, 21, 33, 0.7);
    color: var(--text);
    border-radius: 999px;
    padding: 0 1.2rem 0 1.35rem;
    font-size: 1rem;
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}
.searchform input[type="search"]:focus {
    border-color: rgba(94, 234, 212, 0.8);
    box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.12);
}

.site-main { width: 100%; }

.gtc {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-top: 1rem;
}

.gt {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow);
}

.gt a {
    display: block;
    position: relative;
    width: 100%;
    min-height: 260px;
    overflow: hidden;
    border-radius: inherit;
    color: var(--text);
}

.gt img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
}

.gt .bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 10, 17, 0.12), rgba(4, 10, 17, 0.8));
}

.gt .t {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.1rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    z-index: 2;
    text-align: left;
}

.gt .t strong {
    font-size: 1.1rem;
    line-height: 1.3;
    font-weight: 700;
}

.play-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    background: rgba(94, 234, 212, 0.14);
    border: 1px solid rgba(94, 234, 212, 0.36);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gt:hover img {
    transform: scale(1.08);
    filter: saturate(1.15) contrast(1.06);
}

.center { text-align: center; }

.btn {
    border-radius: 999px;
    padding: 0.7rem 1.2rem;
    cursor: pointer;
    font-size: 0.96rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    border: 1px solid transparent;
    line-height: 1.2;
    min-height: 44px;
    text-decoration: none;
}

.btn-color { display: inline-flex; margin-left: 0; border: none; }
.btn-green {
    background: linear-gradient(180deg, var(--green), #16a34a);
    box-shadow: 0 10px 24px rgba(52, 211, 153, 0.18);
}
.btn-yellow {
    background: linear-gradient(180deg, #facc15, #eab308);
    color: #111827;
}
.btn-red {
    background: linear-gradient(180deg, #fb7185, #ef4444);
}
.btn.active { filter: drop-shadow(2px 4px 12px rgba(0,0,0,0.2)); }
.btn.passive { filter: grayscale(1); opacity: 0.7; }
.btn-inline { display: inline-flex; }

.pager {
    margin: 2rem 0 0;
    text-align: center;
}

.pager a,
.pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.9rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text);
    margin: 0 0.3rem;
}

.pager .current {
    background: linear-gradient(180deg, var(--primary), var(--primary-strong));
    color: #032d2b;
    border-color: transparent;
}

#header {
    background: rgba(7, 20, 31, 0.92);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 25px rgba(0,0,0,0.18);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 20;
}

#top-nav {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 1rem 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo { display: flex; align-items: center; }
.custom-logo-link img {
    max-height: 48px;
    width: auto;
    display: block;
    border-radius: 12px;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.main-menu-wrap { display: flex; align-items: center; }

#mt,
.main-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

#mt li,
.main-menu li { margin: 0; }

#top-nav ul li a,
.main-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    color: var(--text);
    font-weight: 600;
    line-height: 1.2;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}

#top-nav ul li a:hover,
.main-menu a:hover {
    background: rgba(94, 234, 212, 0.08);
    border-color: rgba(94, 234, 212, 0.3);
    color: var(--primary);
}

.header-search { min-width: min(100%, 280px); }
.header-search .searchform { width: min(100%, 280px); }
.header-search .searchform input[type="search"] {
    height: 42px;
    border-radius: 999px;
    font-size: 0.94rem;
}

#tc {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0.6rem auto 1.5rem;
    max-width: var(--content-width);
    padding: 0 18px;
}

#tc li { margin: 0; }
#tc li a {
    display: inline-flex;
    align-items: center;
    padding: 0.68rem 1rem;
    border-radius: 999px;
    color: var(--text);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    font-weight: 600;
}
#tc li a:hover {
    background: rgba(94,234,212,0.08);
    border-color: rgba(94,234,212,0.3);
    color: var(--primary);
}

.qsearch {
    display: block;
    margin: 2rem 0;
    text-align: center;
}
.qsearch .searchform { margin: 0 auto; }

.tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin: 1rem auto 1.5rem;
    font-size: 1.1rem;
}

.tools .fi {
    display: flex;
    align-items: center;
    position: relative;
}

.tools header {
    color: var(--text);
    flex: 1 1 280px;
}

#fav .bl {
    display: none;
    position: absolute;
    top: -5px;
    right: -5px;
    color: var(--text);
    background: rgba(15, 28, 40, 0.95);
    border-radius: 0.5em;
    padding: 0.2rem 0.4rem;
    box-shadow: 0 0 18px rgba(0,0,0,0.2);
}
#fav.liked .bl { display: block; }

.game-shell {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto 1.5rem;
}

#game > .embed {
    flex: 1 1 min(100%, 760px);
    text-align: center;
    background: rgba(18, 39, 56, 0.82);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 1.1rem;
    box-shadow: var(--shadow);
}

.starter {
    margin: 0 auto 1rem;
    width: min(100%, 80%);
    padding: 1rem 0 0;
    text-align: center;
    background: rgba(255,255,255,0.03);
    border-radius: 1rem;
}

.starter .game-title {
    font-size: clamp(1.3rem, 2vw, 2.2rem);
    padding: 0.8rem 0 1rem;
    color: var(--primary);
    text-shadow: 1px 1px rgba(0,0,0,0.2);
    text-transform: uppercase;
    font-weight: 800;
}

.starter img {
    border-radius: 1rem;
    display: block;
    margin: 0 auto;
    max-height: 220px;
    object-fit: cover;
}

#start { display: inline-flex; margin-bottom: 0.7rem; }

.fi.ad {
    width: 160px;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.02);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 0.5rem;
}
.fi.ad img {
    border-radius: 10px;
    object-fit: cover;
}

.fi.ad img,
.ad-banner img,
.ad-banner iframe,
.fi.ad iframe {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.desc,
.related {
    background: rgba(11, 22, 33, 0.8);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 1.3rem 1.4rem;
    box-shadow: var(--shadow);
}

.desc {
    margin: 1.5rem auto 1.2rem;
    color: var(--muted);
    line-height: 1.8;
    font-size: 1.02rem;
}

.desc img {
    float: left;
    width: 210px;
    max-width: 100%;
    height: auto;
    margin: 0 1.3rem 1.3rem 0;
    border-radius: 18px;
}

.desc h3,
.related h3 {
    color: var(--text);
    margin-bottom: 0.8rem;
    font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.tags-line { margin-top: 1rem; color: var(--text); }
.more-tags { cursor: pointer; color: var(--primary); }

.rg {
    display: grid;
    grid-auto-flow: dense;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.rg a {
    display: block;
    background: rgba(255,255,255,0.02);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}

.rg img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.game-name {
    padding: 0.8rem 0.9rem;
    color: var(--text);
    font-weight: 600;
}

.ad-banner { margin: 1.2rem auto 0; }

footer#colophon {
    padding: 2.2rem 18px 2.6rem;
    text-align: center;
    background: rgba(4, 12, 18, 0.7);
    border-top: 1px solid rgba(255,255,255,0.06);
}

#mf {
    list-style: none;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.2rem;
    justify-content: center;
    margin: 0 0 1rem;
}

#mf li { padding: 0; }
#mf li a { color: var(--muted); }

footer .site-info, footer .site-info a { color: var(--muted); }

.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem 18px;
}

.error-card {
    max-width: 760px;
    width: 100%;
    background: rgba(18, 39, 56, 0.92);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    text-align: center;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow);
}

.error-card h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 1rem;
}

.error-card p {
    color: var(--muted);
    margin: 0 0 1.5rem;
}

.error-actions { margin-bottom: 1.2rem; }

img.alignright {float:right; margin:0 0 1em 1em}
img.alignleft {float:left; margin:0 1em 1em 0}
img.aligncenter {display: block; margin-left: auto; margin-right: auto}
a img.alignright {float:right; margin:0 0 1em 1em}
a img.alignleft {float:left; margin:0 1em 1em 0}
a img.aligncenter {display: block; margin-left: auto; margin-right: auto}

@media only screen and (max-width: 980px) {
    .hero-section { grid-template-columns: 1fr; }
    .hero-search { justify-content: stretch; }
    .game-shell { flex-wrap: wrap; }
    .fi.ad {
        width: 100%;
        min-height: 90px;
        display: none;
    }
    .game-shell > .embed {
        width: 100%;
        max-width: 100%;
    }
}

@media only screen and (max-width: 700px) {
    #top-nav { align-items: flex-start; }
    .nav-wrap {
        width: 100%;
        justify-content: space-between;
    }

    .main-menu-wrap,
    #mt,
    .main-menu { width: 100%; }

    #mt,
    .main-menu { justify-content: center; }

    .desc img {
        float: none;
        width: 100%;
        margin: 0 0 1rem;
    }

    .starter { width: 100%; }

    .ad-banner {
        overflow: hidden;
    }
}

@media only screen and (max-width: 480px) {
    #content,
    .page-shell {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero-section { padding: 1.2rem; }
    .hero-copy h1 { font-size: 2.1rem; }
    .tools { align-items: flex-start; }
    .game-title { font-size: 1.1rem; }
}