:root {
    --bg: #050b16;
    --text: #e8f2ff;
    --muted: #7a94b8;
    --accent: #4f8cff;
    --accent2: #6ec8ff;
    --accent-deep: #1e3a5f;
    --card: rgba(8, 18, 36, 0.92);
    --border: rgba(79, 140, 255, 0.28);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Rajdhani', sans-serif;
    background:
        radial-gradient(ellipse at 15% -10%, rgba(30, 74, 140, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 0%, rgba(14, 116, 178, 0.12) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 100%, #0a1628 0%, var(--bg) 60%);
    color: var(--text);
    line-height: 1.65;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.pgm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
    border-bottom: 1px solid var(--border);
    background: rgba(5, 11, 22, 0.9);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.pgm-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    color: var(--text);
    text-decoration: none;
}

.pgm-logo__mark {
    height: 38px;
    width: auto;
    display: block;
    object-fit: contain;
}

.pgm-header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
    align-items: center;
}

.pgm-header nav a:not(.pgm-cta) { color: var(--muted); font-weight: 600; }
.pgm-header nav a:not(.pgm-cta):hover { color: var(--text); text-decoration: none; }
.pgm-header nav a[aria-current="page"] {
    color: var(--text);
    font-weight: 700;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 2px;
    text-decoration: none;
}

.pgm-cta {
    background: linear-gradient(135deg, #1e4a8c, #2563eb);
    color: #f0f7ff;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.25);
}

.pgm-cta:hover { filter: brightness(1.12); text-decoration: none; }
.pgm-cta--large { font-size: 1.1rem; padding: 0.85rem 2rem; display: inline-block; margin-top: 1rem; }
.pgm-cta--ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    margin-left: 0.75rem;
    box-shadow: none;
}

main { max-width: 980px; margin: 0 auto; padding: 0 1.5rem 2rem; }

.pgm-hero {
    text-align: center;
    padding: 3.5rem 1rem 2.5rem;
    border-bottom: 1px solid var(--border);
    margin: 0 -1.5rem 2.5rem;
}

.pgm-hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.75rem, 4.5vw, 2.6rem);
    margin: 0 0 0.75rem;
    line-height: 1.2;
}

.pgm-hero .pgm-hero-logo {
    height: clamp(72px, 16vw, 128px);
    width: auto;
    margin: 0 auto 1.25rem;
    display: block;
    object-fit: contain;
}

.pgm-hero .pgm-tagline {
    color: var(--accent2);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.pgm-hero-lead {
    color: var(--muted);
    font-size: 1.15rem;
    max-width: 640px;
    margin: 0 auto 1.5rem;
}

.pgm-section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    margin: 2.5rem 0 1rem;
    color: var(--accent);
}

.pgm-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.pgm-card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 1.25rem;
    border-radius: 10px;
}

.pgm-card h2, .pgm-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--accent2);
    margin-top: 0;
}

.pgm-card p { color: var(--muted); margin-bottom: 0.75rem; }
.pgm-card p:last-child { margin-bottom: 0; }

.pgm-game-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pgm-game-card__media,
.pgm-game-card > img {
    width: 100%;
    height: 180px;
    flex-shrink: 0;
    object-fit: cover;
    object-position: center;
    border-bottom: 1px solid var(--border);
    display: block;
}

.pgm-game-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }

.pgm-game-card h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
}

.pgm-game-card p { color: var(--muted); flex: 1; }

.pgm-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.pgm-badge--live {
    background: rgba(110, 200, 255, 0.12);
    border: 1px solid rgba(110, 200, 255, 0.35);
    color: var(--accent2);
}

.pgm-badge--soon {
    background: rgba(79, 140, 255, 0.12);
    border: 1px solid rgba(79, 140, 255, 0.35);
    color: #9ec5ff;
}

.pgm-game-placeholder img {
    height: 56px;
    width: auto;
    opacity: 0.55;
    object-fit: contain;
}

.pgm-game-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 180px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #0a1628, #1a3050);
    border-bottom: 1px solid var(--border);
}

.page-title {
    font-family: 'Orbitron', sans-serif;
    margin: 2rem 0 0.75rem;
    font-size: 1.75rem;
}

.page-lead {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 720px;
    margin-bottom: 2rem;
}

.content-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.content-page h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.05rem;
    color: var(--accent);
    margin: 2rem 0 0.5rem;
}

.content-page p, .content-page li { color: var(--muted); }
.content-page ul { padding-left: 1.2rem; }

.pgm-contact-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.pgm-contact-box a { font-size: 1.15rem; font-weight: 600; }

.pgm-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.pgm-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin: 2rem 0;
}

.pgm-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.pgm-field span {
    font-weight: 600;
    color: var(--text);
}

.pgm-field input,
.pgm-field select,
.pgm-field textarea {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: rgba(5, 11, 22, 0.6);
    color: var(--text);
}

.pgm-field input:focus,
.pgm-field select:focus,
.pgm-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(79, 140, 255, 0.2);
}

.pgm-field--challenge input {
    max-width: 120px;
}

.pgm-form-status {
    margin: 0.5rem 0 0;
    color: var(--muted);
    min-height: 1.5em;
}

.pgm-form-status--ok { color: #6ec8ff; }
.pgm-form-status--err { color: #ff8a8a; }

.pgm-obfuscated-email {
    font-family: inherit;
    color: var(--accent2);
}

.pgm-footer {
    text-align: center;
    padding: 2rem 1.5rem;
    color: var(--muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    margin-top: 3rem;
}

.pgm-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1rem;
}

.pgm-footer nav a { color: var(--muted); }
.pgm-footer nav a:hover { color: var(--accent2); }

.pgm-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 2rem;
}

.pgm-tag {
    font-size: 0.85rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--muted);
    background: rgba(37, 99, 235, 0.08);
}

@media (max-width: 720px) {
    .pgm-header { padding: 0.75rem 1rem; flex-wrap: wrap; gap: 0.75rem; }
    .pgm-header nav { width: 100%; justify-content: flex-start; }
    .pgm-cta--ghost { margin-left: 0; margin-top: 0.75rem; display: inline-block; }
}
