/*
Theme Name: GameVerse
Theme URI: https://example.com/gameverse
Author: Cursor Assistant
Author URI: https://example.com
Description: Tema WordPress modern untuk website game, esports, dan komunitas gamer.
Version: 1.2.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: gameverse
*/

:root {
    --bg: #0d0505;
    --bg-soft: #1a0808;
    --surface: #1f0d0d;
    --text: #fce8e0;
    --muted: #c9a090;
    --primary: #800020;
    --primary-2: #c41e3a;
    --accent: #dc143c;
    --border: #5c2020;
    --glow: #e85d5d;
    --footer-image-height: 56px;
    --logo-max-height: 54px;
    --logo-max-height-mobile: 48px;
    --content-max-width: 1100px;
    --content-padding: 24px;
    --content-padding-mobile: 20px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at top right, #1a1f33, var(--bg));
    color: var(--text);
    line-height: 1.6;
}

a {
    color: var(--primary-2);
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}

.container {
    width: 100%;
    max-width: var(--content-max-width);
    margin-inline: auto;
    padding-inline: var(--content-padding);
}

main {
    overflow-x: hidden;
}

.site-main {
    padding-block: 32px 48px;
}

.article-container {
    width: 100%;
    max-width: var(--content-max-width);
    margin-inline: auto;
    padding-inline: var(--content-padding);
    box-sizing: border-box;
}

.content-wrap article,
.article-container article {
    width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 12, 20, 0.9);
    backdrop-filter: blur(8px);
}

.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
}

.site-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.site-title a {
    color: var(--text);
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0;
    margin: 0;
}

.hero {
    padding: 86px 0 72px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
}

.hero-card {
    background: linear-gradient(150deg, #1a2040, #0f1325);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 42px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(49, 208, 255, 0.25), transparent 65%);
}

.hero h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.1;
}

.hero p {
    margin: 0 0 24px;
    color: var(--muted);
    max-width: 62ch;
}

.btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.btn-ghost {
    color: var(--text);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(120deg, var(--primary), var(--accent));
}

.badge {
    display: inline-flex;
    background: rgba(49, 208, 255, 0.15);
    border: 1px solid rgba(49, 208, 255, 0.4);
    color: #a8efff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    margin-bottom: 12px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hero-side h3 {
    margin-top: 0;
}

.live-score {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 10px;
}

.live-score p {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
}

.live-score span {
    font-size: 1.2rem;
    color: #8ff2ff;
    font-weight: 800;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
}

.stat strong {
    display: block;
    font-size: 1.2rem;
    line-height: 1.1;
}

.stat span {
    color: var(--muted);
    font-size: 0.85rem;
}

.section-title {
    margin: 0 0 18px;
    font-size: 1.6rem;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 40px;
}

.ticker {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 28px;
}

.ticker-wrap {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 10px 0;
}

.ticker-wrap span {
    font-weight: 700;
    color: #90f0ff;
}

.ticker-wrap p {
    margin: 0;
    color: var(--muted);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 34px;
}

.category-card {
    border-radius: 16px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    min-height: 130px;
}

.category-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.cat-fps { background: linear-gradient(150deg, rgba(131, 40, 255, 0.35), rgba(16, 20, 36, 0.85)); }
.cat-moba { background: linear-gradient(150deg, rgba(33, 173, 255, 0.35), rgba(14, 20, 34, 0.85)); }
.cat-rpg { background: linear-gradient(150deg, rgba(255, 73, 160, 0.3), rgba(20, 16, 36, 0.85)); }
.cat-mobile { background: linear-gradient(150deg, rgba(103, 255, 138, 0.28), rgba(14, 24, 24, 0.85)); }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.card-body {
    padding: 18px;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.meta {
    font-size: 0.85rem;
    color: var(--muted);
}

.content-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    margin: 32px auto 50px;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
}

.split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
    margin-bottom: 28px;
}

.tournament-list {
    display: grid;
    gap: 10px;
}

.tournament-item {
    display: flex;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
}

.tournament-item span {
    min-width: 70px;
    font-weight: 700;
    color: #d2d8ff;
}

.tournament-item p {
    margin: 0;
}

.rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.rank-list li {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
}

.rank-list em {
    font-style: normal;
    color: #8fe8ff;
    margin-right: 8px;
}

.cta-banner {
    background: linear-gradient(120deg, rgba(110, 84, 255, 0.3), rgba(255, 61, 183, 0.28));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 20px;
}

.cta-banner h2 {
    margin-top: 0;
}

.streamer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 34px;
}

.streamer-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    background: linear-gradient(150deg, rgba(31, 38, 61, 0.95), rgba(18, 22, 38, 0.95));
}

.streamer-card h3 {
    margin: 0 0 8px;
}

.live-dot {
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    color: #ff95cf;
    border: 1px solid rgba(255, 61, 183, 0.4);
    border-radius: 999px;
    padding: 4px 10px;
    background: rgba(255, 61, 183, 0.13);
}

.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 42px;
    padding: 24px 0;
    color: var(--muted);
}

.widget {
    margin-bottom: 18px;
}

@media (max-width: 900px) {
    .content-wrap {
        grid-template-columns: 1fr;
    }

    .split {
        grid-template-columns: 1fr;
    }

    .hero-grid,
    .category-grid,
    .streamer-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .ticker-wrap {
        display: block;
    }
}

/* Layout utilities */
.game-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 26px;
}

.game-tile {
    min-height: 126px;
    padding: 14px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: inset 0 -40px 40px rgba(0, 0, 0, 0.35);
}

.game-tile h3 {
    margin: 0;
    font-size: 1rem;
}

.game-tile p {
    margin: 4px 0 0;
    color: #e8c4bc;
    font-size: 0.85rem;
}

.info-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.info-strip article {
    border-radius: 14px;
    padding: 14px;
    text-align: center;
}

.info-strip h3 {
    margin: 0;
    font-size: 1.8rem;
    color: #e85d5d;
}

.info-strip p {
    margin: 4px 0 0;
    color: #d4a89a;
}

.site-branding {
    display: flex;
    align-items: center;
}

.custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.custom-logo {
    max-height: var(--logo-max-height, 54px);
    width: auto;
}

.hero-grid {
    grid-template-columns: 2.2fr 1fr;
}

@media (max-width: 900px) {
    .hero-grid,
    .game-grid,
    .info-strip {
        grid-template-columns: 1fr;
    }
}

/* Extra gaming overhaul — maroon theme */
body {
    background:
        radial-gradient(circle at 12% 5%, rgba(196, 30, 58, 0.18), transparent 30%),
        radial-gradient(circle at 84% 12%, rgba(128, 0, 32, 0.22), transparent 35%),
        linear-gradient(180deg, #1a0808, #0d0505 48%, #080303);
    color: #fce8e0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: linear-gradient(180deg, rgba(26, 8, 8, 0.97) 0%, rgba(13, 5, 5, 0.9) 100%);
    border: none;
    box-shadow: none;
    padding-bottom: 4px;
}

.site-title a,
.main-nav a {
    color: #fce8e0;
}

.nav-cta {
    background: linear-gradient(120deg, #c41e3a, #800020);
    color: #fce8e0;
    box-shadow: 0 0 22px rgba(196, 30, 58, 0.45);
}

.hero-card,
.panel,
.card,
.cta-banner {
    background: linear-gradient(150deg, rgba(31, 13, 13, 0.95), rgba(20, 6, 6, 0.95));
    border: 1px solid #5c2020;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5);
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, transparent 30%, rgba(196, 30, 58, 0.1), transparent 70%);
    pointer-events: none;
}

.badge {
    background: linear-gradient(120deg, #c41e3a, #800020);
    color: #fce8e0;
}

.btn-primary {
    background: linear-gradient(120deg, #dc143c, #800020);
    color: #fce8e0;
}

.btn-ghost {
    color: #e8c4bc;
    border-color: #6b2828;
    background: rgba(196, 30, 58, 0.08);
}

.ticker {
    background: rgba(128, 0, 32, 0.15);
    border-color: #5c2020;
}

.ticker-wrap span {
    color: #e85d5d;
}

.section-title {
    color: #e85d5d;
    letter-spacing: 1.2px;
}

.live-score span,
.rank-list em {
    color: #e85d5d;
}

.platform-list {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    flex-wrap: wrap;
}

.platform-list li {
    border: 1px solid #6b2828;
    color: #e8c4bc;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

.game-tile {
    border: 1px solid rgba(196, 30, 58, 0.4);
    box-shadow: inset 0 -50px 50px rgba(0, 0, 0, 0.45), 0 0 0 rgba(0, 0, 0, 0);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.game-tile:hover {
    transform: translateY(-4px);
    border-color: #c41e3a;
    box-shadow: inset 0 -50px 50px rgba(0, 0, 0, 0.45), 0 0 16px rgba(196, 30, 58, 0.35);
}

.game-1 { background: linear-gradient(130deg, #4a1018, #1f0808); }
.game-2 { background: linear-gradient(130deg, #5c1520, #1a0608); }
.game-3 { background: linear-gradient(130deg, #3d0f15, #150505); }
.game-4 { background: linear-gradient(130deg, #6b1a28, #200808); }
.game-5 { background: linear-gradient(130deg, #451018, #120404); }
.game-6 { background: linear-gradient(130deg, #551520, #180606); }
.game-7 { background: linear-gradient(130deg, #350c12, #0f0303); }
.game-8 { background: linear-gradient(130deg, #4f1520, #1a0505); }

.info-strip article,
.stat,
.live-score,
.tournament-item,
.rank-list li {
    border-color: #5c2020;
    background: rgba(128, 0, 32, 0.1);
}

.cta-banner {
    background: linear-gradient(120deg, rgba(128, 0, 32, 0.35), rgba(196, 30, 58, 0.25));
    border: 1px solid #6b2828;
}

.site-footer {
    border-top: 1px solid #5c2020;
    color: #d4a89a;
}

.footer-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-image img {
    display: block;
    max-height: var(--footer-image-height, 56px);
    width: auto;
    object-fit: contain;
}

.footer-text {
    margin: 0;
}

.footer-image-pos-left {
    justify-content: flex-start;
    flex-direction: row;
}

.footer-image-pos-center {
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.footer-image-pos-right {
    justify-content: space-between;
    flex-direction: row;
}

.footer-image-pos-above,
.footer-image-pos-below {
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.footer-image-pos-right .footer-text {
    margin-right: auto;
}

.logo-pos-left .site-branding {
    text-align: left;
}

.logo-pos-center .site-branding {
    text-align: center;
}

.logo-pos-right .site-branding {
    text-align: right;
}

.logo-pos-left .custom-logo-link,
.logo-pos-right .custom-logo-link {
    display: inline-flex;
}

@media (max-width: 600px) {
    .footer-inner.has-footer-image.footer-image-pos-left,
    .footer-inner.has-footer-image.footer-image-pos-right {
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }

    .footer-image-pos-right .footer-text {
        margin-right: 0;
    }
}

/* ── HUD Gaming Header — maroon ── */
.hud-topline,
.hud-bottomline {
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, #c41e3a 30%, #800020 70%, transparent 95%);
    box-shadow: 0 0 10px rgba(196, 30, 58, 0.6);
}

.hud-header {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    padding: 14px 0 0;
    font-family: "Rajdhani", "Segoe UI", sans-serif;
}

.hud-wing {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 18px;
    position: relative;
}

.hud-wing--left {
    justify-content: flex-end;
    padding-right: 16px;
}

.hud-wing--right {
    justify-content: flex-start;
    padding-left: 16px;
}

.hud-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #e8c4bc;
    border: 1px solid rgba(196, 30, 58, 0.45);
    background: rgba(128, 0, 32, 0.12);
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
    transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.hud-icon:hover {
    color: #e85d5d;
    border-color: #c41e3a;
    box-shadow: 0 0 12px rgba(196, 30, 58, 0.4);
}

.hud-beam {
    position: absolute;
    bottom: 10px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c41e3a);
    box-shadow: 0 0 6px rgba(196, 30, 58, 0.5);
}

.hud-beam--left {
    right: 0;
    width: 55%;
    transform: skewY(-3deg);
}

.hud-beam--right {
    left: 0;
    width: 55%;
    transform: scaleX(-1) skewY(-3deg);
}

.hud-center {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hud-center__frame {
    position: relative;
    padding: 14px 52px 12px;
    text-align: center;
    background: linear-gradient(180deg, rgba(31, 13, 13, 0.97) 0%, rgba(20, 6, 6, 0.99) 100%);
    clip-path: polygon(0 12%, 6% 0, 94% 0, 100% 12%, 100% 88%, 94% 100%, 6% 100%, 0 88%);
    filter: drop-shadow(0 0 18px rgba(196, 30, 58, 0.25));
}

.hud-center__frame::before {
    content: "";
    position: absolute;
    inset: 0;
    clip-path: inherit;
    border: 1px solid rgba(196, 30, 58, 0.55);
    pointer-events: none;
    box-shadow: inset 0 0 20px rgba(196, 30, 58, 0.06);
}

.hud-corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: #c41e3a;
    border-style: solid;
}

.hud-corner--tl { top: 6px; left: 10px; border-width: 2px 0 0 2px; }
.hud-corner--tr { top: 6px; right: 10px; border-width: 2px 2px 0 0; }
.hud-corner--bl { bottom: 6px; left: 10px; border-width: 0 0 2px 2px; }
.hud-corner--br { bottom: 6px; right: 10px; border-width: 0 2px 2px 0; }

.hud-center__notch {
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 10px solid rgba(20, 6, 6, 0.99);
    filter: drop-shadow(0 2px 6px rgba(196, 30, 58, 0.3));
    margin-top: -1px;
}

.site-branding {
    margin-bottom: 4px;
}

.hud-center__frame .site-branding {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
}

.hud-center__frame .custom-logo-link {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hud-center__frame .custom-logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hud-center__frame .site-title {
    width: 100%;
    text-align: center;
}

.hud-center__frame.logo-pos-left .site-branding {
    justify-content: flex-start;
    text-align: left;
}

.hud-center__frame.logo-pos-left .custom-logo-link,
.hud-center__frame.logo-pos-left .custom-logo {
    margin-left: 0;
    margin-right: auto;
}

.hud-center__frame.logo-pos-right .site-branding {
    justify-content: flex-end;
    text-align: right;
}

.hud-center__frame.logo-pos-right .custom-logo-link,
.hud-center__frame.logo-pos-right .custom-logo {
    margin-left: auto;
    margin-right: 0;
}

.hud-center__frame .main-nav {
    width: 100%;
}

.hud-center__frame .main-nav ul {
    justify-content: center;
    width: 100%;
}

.site-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.site-title a {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(196, 30, 58, 0.5);
}

.main-nav ul {
    gap: 20px;
    justify-content: center;
}

.main-nav a {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(232, 196, 188, 0.8);
    transition: color 0.2s;
}

.main-nav a:hover {
    color: #e85d5d;
    text-shadow: 0 0 8px rgba(196, 30, 58, 0.6);
}

.btn-login,
.btn-register {
    display: inline-block;
    padding: 9px 20px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-radius: 0;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
    transition: box-shadow 0.2s, transform 0.15s;
}

.hud-auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-login {
    color: #e8c4bc;
    border: 1px solid rgba(196, 30, 58, 0.5);
    background: rgba(128, 0, 32, 0.15);
}

.btn-login:hover {
    color: #e85d5d;
    box-shadow: 0 0 14px rgba(196, 30, 58, 0.35);
}

.btn-register {
    color: #fce8e0;
    border: none;
    background: linear-gradient(135deg, #dc143c 0%, #800020 100%);
    box-shadow: 0 0 18px rgba(196, 30, 58, 0.45);
}

.btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 26px rgba(128, 0, 32, 0.55);
}

@media (max-width: 900px) {
    .hud-header {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
        padding: 16px 0 0;
    }

    .hud-wing--left,
    .hud-beam {
        display: none;
    }

    .hud-center {
        width: 100%;
        order: 1;
        align-items: center;
    }

    .hud-center__frame {
        width: min(92%, 420px);
        margin: 0 auto;
        padding: 18px 36px 16px;
        clip-path: polygon(0 8%, 4% 0, 96% 0, 100% 8%, 100% 92%, 96% 100%, 4% 100%, 0 92%);
    }

    .hud-center__frame.logo-pos-left .site-branding,
    .hud-center__frame.logo-pos-right .site-branding,
    .hud-center__frame.logo-pos-center .site-branding {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        text-align: center;
    }

    .hud-center__frame .custom-logo-link {
        display: block;
        margin: 0 auto;
        text-align: center;
    }

    .hud-center__frame .custom-logo {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .hud-center__frame .site-title {
        text-align: center;
        width: 100%;
    }

    .hud-center__notch {
        border-left-width: 18px;
        border-right-width: 18px;
        border-top-width: 12px;
    }

    .site-title {
        font-size: 1.75rem;
        letter-spacing: 2.5px;
    }

    .hud-corner {
        width: 18px;
        height: 18px;
    }

    .main-nav {
        display: none;
    }

    .hud-wing--right {
        flex: none;
        width: min(92%, 420px);
        order: 2;
        justify-content: center;
        padding: 0 0 16px;
        margin: 0 auto;
    }

    .hud-auth-buttons {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }

    .btn-login,
    .btn-register {
        flex: none;
        width: 100%;
        max-width: none;
        padding: 14px 24px;
        font-size: 1rem;
        letter-spacing: 1.5px;
        text-align: center;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    }
}

@media (max-width: 400px) {
    .site-title {
        font-size: 1.5rem;
    }

    .btn-login,
    .btn-register {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
}

/* Elementor compatibility — layout & alignment */
.article-container .elementor {
    width: 100%;
    max-width: 100%;
}

.article-container .elementor-section.elementor-top-section > .elementor-container,
.article-container .elementor > .elementor-section > .elementor-container,
.article-container .elementor-section.elementor-section-stretched > .elementor-container,
.article-container .elementor > .e-con.e-parent > .e-con-inner {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

.article-container .e-con.e-parent .e-con .e-con-inner,
.article-container .elementor-inner-section > .elementor-container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.elementor-widget-heading,
.elementor-widget-text-editor {
    width: 100%;
    max-width: 100%;
}

.elementor-widget-heading .elementor-heading-title {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.elementor-widget.elementor-align-center,
.elementor-widget.elementor-align-center .elementor-heading-title,
.elementor-widget.elementor-align-center .elementor-widget-container {
    text-align: center;
}

.elementor-widget.elementor-align-right,
.elementor-widget.elementor-align-right .elementor-heading-title,
.elementor-widget.elementor-align-right .elementor-widget-container {
    text-align: right;
}

.elementor-widget.elementor-align-left,
.elementor-widget.elementor-align-left .elementor-heading-title,
.elementor-widget.elementor-align-left .elementor-widget-container {
    text-align: left;
}

.elementor-column .elementor-widget-wrap {
    width: 100%;
    align-items: stretch;
}

/* WordPress block editor — image & content alignment */
.site-main img,
.content-wrap img,
.article-container img {
    max-width: 100%;
    height: auto;
}

.site-main .wp-block-image,
.content-wrap .wp-block-image,
.article-container .wp-block-image {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

.site-main .wp-block-image.aligncenter,
.content-wrap .wp-block-image.aligncenter,
.article-container .wp-block-image.aligncenter,
.site-main figure.aligncenter,
.content-wrap figure.aligncenter,
.article-container figure.aligncenter {
    display: table;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    clear: both;
}

.site-main .wp-block-image.aligncenter img,
.content-wrap .wp-block-image.aligncenter img,
.article-container .wp-block-image.aligncenter img,
.site-main .aligncenter img,
.content-wrap .aligncenter img,
.article-container .aligncenter img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.site-main .aligncenter,
.content-wrap .aligncenter,
.article-container .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    clear: both;
}

.site-main .wp-block-image.alignleft,
.content-wrap .wp-block-image.alignleft,
.article-container .wp-block-image.alignleft {
    float: left;
    margin: 0.5em 1.5em 1em 0;
}

.site-main .wp-block-image.alignright,
.content-wrap .wp-block-image.alignright,
.article-container .wp-block-image.alignright {
    float: right;
    margin: 0.5em 0 1em 1.5em;
}

@media (max-width: 767px) {
    .container {
        padding-inline: var(--content-padding-mobile);
    }

    .article-container {
        padding-inline: var(--content-padding-mobile);
    }
}
