:root{
    color-scheme:dark;
    --bg:#07111f;
    --bg-soft:#0b1628;
    --panel:#101f36;
    --panel-2:#0d1a2d;
    --line:#203450;
    --text:#f3f7fb;
    --muted:#90a5c3;
    --shadow:0 20px 60px rgba(2,8,18,.45);
    --radius:22px;
    --radius-sm:14px;
    --container:1180px;
    --primary-color:#00d1ff;
    --accent-color:#ff4d8d;
}

*,
*::before,
*::after{box-sizing:border-box}

html{scroll-behavior:smooth}

@keyframes riseIn{
    from{
        opacity:0;
        transform:translateY(18px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

body{
    margin:0;
    min-height:100vh;
    font-family:"Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
    background:
        radial-gradient(circle at top left, rgba(0,209,255,.15), transparent 30%),
        radial-gradient(circle at top right, rgba(255,77,141,.12), transparent 28%),
        linear-gradient(180deg, #0b1526 0%, #07111f 40%, #08111d 100%);
    color:var(--text);
}

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button,input,textarea,select{font:inherit}
input,textarea,select{
    width:100%;
    background:#091424;
    color:var(--text);
    border:1px solid var(--line);
    border-radius:16px;
    padding:14px 16px;
}
textarea{resize:vertical}

.container{width:min(var(--container),calc(100% - 32px));margin:0 auto}
.site-shell{display:flex;flex-direction:column;min-height:100vh}
.section-stack{display:grid;gap:24px;padding:0 0 48px}
.section-card,
.content-card,
.admin-panel,
.admin-stat-card,
.sub-panel,
.player-frame-wrap{
    background:linear-gradient(180deg, rgba(16,31,54,.92), rgba(10,19,35,.95));
    border:1px solid rgba(32,52,80,.9);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
}

.button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    border:none;
    border-radius:999px;
    padding:12px 18px;
    font-weight:800;
    cursor:pointer;
    transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.button:hover{transform:translateY(-1px)}
.button.primary{
    background:linear-gradient(135deg,var(--primary-color),#67ecff);
    color:#04111f;
    box-shadow:0 14px 30px rgba(0,209,255,.24);
}
.button.ghost{
    background:rgba(10,19,35,.8);
    border:1px solid var(--line);
    color:var(--text);
}
.button.danger{
    background:rgba(255,77,141,.14);
    border:1px solid rgba(255,77,141,.4);
    color:#ffd5e6;
}
.button:disabled{
    cursor:not-allowed;
    opacity:.52;
    transform:none;
    box-shadow:none;
}
.button.small{padding:9px 12px;font-size:.82rem}
.button.block{width:100%}
.text-link{color:var(--primary-color);font-weight:700}
.center{text-align:center}

.sr-only{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    border:0;
}

.eyebrow{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:var(--primary-color);
    font-size:.78rem;
    font-weight:800;
    letter-spacing:.14em;
    text-transform:uppercase;
}

.site-header{
    position:sticky;
    top:0;
    z-index:20;
    backdrop-filter:blur(18px);
    background:rgba(7,17,31,.82);
    border-bottom:1px solid rgba(32,52,80,.75);
}

.header-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:16px 0;
}

.brand{display:flex;align-items:center;gap:14px;min-width:0}
.brand-mark{
    width:50px;
    height:50px;
    border-radius:18px;
    display:grid;
    place-items:center;
    font-weight:900;
    background:linear-gradient(135deg,var(--primary-color),var(--accent-color));
    color:#03101d;
    box-shadow:0 18px 32px rgba(0,209,255,.18);
}
.brand-logo{
    width:54px;
    height:54px;
    object-fit:cover;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.08);
}
.brand-copy{display:grid;gap:4px}
.brand-copy strong{font-size:1rem}
.brand-copy small{color:var(--muted)}

.search-form{
    position:relative;
    display:flex;
    align-items:center;
    gap:10px;
    flex:1;
    max-width:520px;
}

.search-form input{
    flex:1;
    padding-right:18px;
    background:rgba(7,17,31,.84);
}

.search-form button{white-space:nowrap}

.search-results{
    position:absolute;
    top:calc(100% + 8px);
    left:0;
    right:0;
    display:none;
    background:#08111f;
    border:1px solid var(--line);
    border-radius:18px;
    overflow:hidden;
    box-shadow:var(--shadow);
}

.search-results.active{display:block}
.search-result-link{
    display:grid;
    grid-template-columns:52px 1fr;
    gap:12px;
    padding:12px;
    border-bottom:1px solid rgba(32,52,80,.6);
}
.search-result-link:last-child{border-bottom:none}
.search-result-link:hover{background:rgba(255,255,255,.03)}
.search-result-link img{
    width:52px;
    height:52px;
    object-fit:cover;
    border-radius:12px;
}
.search-result-link span{
    display:block;
    color:var(--muted);
    font-size:.86rem;
}

.category-nav{border-top:1px solid rgba(32,52,80,.6)}
.category-nav-inner{
    display:flex;
    gap:12px;
    overflow-x:auto;
    padding:12px 0 16px;
    scrollbar-width:none;
}
.category-nav-inner::-webkit-scrollbar{display:none}

.category-pill{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:10px 14px;
    border-radius:999px;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(32,52,80,.7);
    white-space:nowrap;
}
.category-pill:hover{
    border-color:rgba(0,209,255,.6);
    background:rgba(0,209,255,.08);
}
.category-pill-icon{
    width:24px;
    height:24px;
    display:grid;
    place-items:center;
    overflow:hidden;
}
.category-pill-icon img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:8px;
}

.breadcrumbs{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:center;
    padding:18px 0 0;
    color:var(--muted);
    font-size:.9rem;
}
.breadcrumbs a{color:var(--text)}

.hero-section{
    position:relative;
    padding:34px 0 26px;
}
.hero-section::before{
    content:"";
    position:absolute;
    inset:14px 0 auto;
    height:520px;
    background:
        radial-gradient(circle at 18% 18%, rgba(0,209,255,.14), transparent 26%),
        radial-gradient(circle at 82% 12%, rgba(255,77,141,.14), transparent 24%),
        linear-gradient(180deg, rgba(255,255,255,.02), transparent 75%);
    pointer-events:none;
}
.hero-shell{
    position:relative;
    display:grid;
    grid-template-columns:minmax(0, 1.04fr) minmax(320px, .96fr);
    gap:28px;
    align-items:stretch;
}
.hero-copy,
.hero-stage{
    position:relative;
    z-index:1;
    animation:riseIn .6s ease both;
}
.hero-copy{
    padding:32px 0 18px;
}
.hero-copy h1{
    margin:12px 0 16px;
    max-width:9ch;
    font-size:clamp(2.9rem, 6vw, 5.8rem);
    line-height:.9;
    letter-spacing:-.04em;
}
.hero-copy p{
    max-width:640px;
    margin:0;
    color:#b6c8e0;
    font-size:1.05rem;
    line-height:1.8;
}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.hero-note-row{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:22px;
}
.hero-note{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:9px 14px;
    border-radius:999px;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(32,52,80,.7);
    color:#d3dfed;
    font-size:.82rem;
    font-weight:700;
}
.hero-stage{
    display:grid;
    gap:18px;
}
.hero-feature-card{
    position:relative;
    display:grid;
    grid-template-columns:minmax(0, 1fr);
    min-height:100%;
    overflow:hidden;
    border-radius:30px;
    border:1px solid rgba(255,255,255,.08);
    background:
        linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)),
        linear-gradient(135deg, rgba(0,209,255,.08), rgba(255,77,141,.08));
    box-shadow:var(--shadow);
}
.hero-feature-card::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(180deg, rgba(4,12,22,.06), rgba(4,12,22,.88));
}
.hero-feature-media{
    position:absolute;
    inset:0;
}
.hero-feature-media img{
    width:100%;
    height:100%;
    object-fit:cover;
    filter:saturate(1.08) contrast(1.04);
    transform:scale(1.02);
}
.hero-feature-copy{
    position:relative;
    z-index:1;
    display:grid;
    align-content:end;
    gap:12px;
    min-height:430px;
    padding:26px;
}
.hero-feature-copy strong{
    max-width:12ch;
    font-size:clamp(1.7rem, 3vw, 2.4rem);
    line-height:1;
}
.hero-feature-copy p{
    max-width:46ch;
    margin:0;
    color:#d7e4f2;
    line-height:1.7;
}
.hero-feature-meta{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}
.hero-feature-meta span{
    display:inline-flex;
    align-items:center;
    padding:9px 13px;
    border-radius:999px;
    background:rgba(4,12,22,.42);
    border:1px solid rgba(255,255,255,.09);
    color:#edf4fb;
    font-size:.82rem;
    font-weight:700;
}
.hero-stat-ribbon{
    display:grid;
    grid-template-columns:repeat(3, minmax(0,1fr));
    gap:14px;
}
.hero-stat{
    padding:18px;
    border-radius:20px;
    background:rgba(5,11,20,.48);
    border:1px solid rgba(255,255,255,.06);
    backdrop-filter:blur(16px);
}
.hero-stat strong{display:block;font-size:2rem}
.hero-stat span{color:var(--muted)}

.section-card,
.content-card{padding:24px}
.section-card-editorial{
    position:relative;
    overflow:hidden;
}
.section-card-editorial::before{
    content:"";
    position:absolute;
    inset:0 0 auto 0;
    height:1px;
    background:linear-gradient(90deg, transparent, rgba(0,209,255,.45), transparent);
    opacity:.75;
}

.section-heading{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:16px;
    margin-bottom:18px;
}
.section-heading h2,
.content-card h2,
.article-header h1,
.player-toolbar h1{
    margin:8px 0 0;
}
.section-heading p{margin:0;color:var(--muted);max-width:480px;line-height:1.6}

.featured-strip{
    display:grid;
    grid-template-columns:repeat(6, minmax(0,1fr));
    gap:18px;
}
.featured-card{
    position:relative;
    min-height:260px;
    grid-column:span 2;
    overflow:hidden;
    border-radius:24px;
    border:1px solid rgba(255,255,255,.08);
    transform:translateY(0);
    transition:transform .28s ease, border-color .28s ease, box-shadow .28s ease;
    animation:riseIn .6s ease both;
}
.featured-card:first-child{
    grid-column:span 3;
    min-height:420px;
}
.featured-card:nth-child(2){animation-delay:.08s}
.featured-card:nth-child(3){animation-delay:.14s}
.featured-card:hover{
    transform:translateY(-4px);
    border-color:rgba(0,209,255,.28);
    box-shadow:0 28px 60px rgba(0,0,0,.34);
}
.featured-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    filter:saturate(1.08);
    transition:transform .35s ease;
}
.featured-card:hover img{transform:scale(1.05)}
.featured-card-copy{
    position:absolute;
    inset:auto 0 0 0;
    display:grid;
    gap:8px;
    padding:18px;
    background:linear-gradient(180deg, transparent, rgba(4,12,22,.95));
}
.featured-card-copy span{color:var(--primary-color);font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.14em}
.featured-card-copy strong{font-size:1.2rem}
.featured-card-copy small{color:#d6e0ee;line-height:1.5}

.game-grid{
    display:grid;
    grid-template-columns:repeat(12, minmax(0,1fr));
    gap:18px;
}
.game-grid > .game-card{grid-column:span 3}
.game-grid > .game-card:first-child{
    grid-column:span 6;
}
.game-grid > .game-card:first-child .game-thumb-wrap{
    aspect-ratio:16/9;
}
.game-grid > .game-card:first-child .game-card-body{
    padding:20px;
}
.game-grid > .game-card:first-child .game-card-body h3{
    font-size:1.35rem;
}
.row-scroll{
    display:grid;
    grid-auto-flow:column;
    grid-auto-columns:minmax(260px, 320px);
    gap:16px;
    overflow-x:auto;
    padding-bottom:4px;
    scrollbar-width:none;
}
.row-scroll::-webkit-scrollbar{display:none}
.row-item .game-card{height:100%}

.game-card{
    height:100%;
    border-radius:20px;
    overflow:hidden;
    background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
    border:1px solid rgba(255,255,255,.06);
    transition:transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.game-card:hover{
    transform:translateY(-4px);
    border-color:rgba(0,209,255,.22);
    box-shadow:0 22px 46px rgba(0,0,0,.28);
}
.game-card-link{
    display:flex;
    flex-direction:column;
    height:100%;
}
.game-thumb-wrap{
    position:relative;
    aspect-ratio:16/10;
    overflow:hidden;
    background:#091625;
}
.category-card .game-thumb-wrap{
    display:grid;
    place-items:center;
    padding:18px;
    background:
        radial-gradient(circle at top, rgba(255,255,255,.08), transparent 42%),
        linear-gradient(180deg, rgba(10,24,38,.95), rgba(5,12,23,.97));
}
.game-thumb{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .28s ease;
}
.game-overlay{
    position:absolute;
    inset:0;
    display:grid;
    place-items:center;
    background:linear-gradient(180deg, rgba(7,17,31,.05), rgba(7,17,31,.72));
    opacity:0;
    transition:opacity .28s ease;
}
.game-card:hover .game-thumb{transform:scale(1.06)}
.game-card:hover .game-overlay{opacity:1}
.game-card-body{padding:16px}
.game-card-meta{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:12px;
    color:var(--muted);
    font-size:.76rem;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
}
.game-card-body h3{margin:0 0 8px;font-size:1.05rem}
.game-card-body p{margin:0;color:var(--muted);line-height:1.55}

.badge{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:7px 10px;
    border-radius:999px;
    font-size:.72rem;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
}
.game-thumb-wrap .badge{
    position:absolute;
    top:12px;
    left:12px;
    z-index:1;
}
.category-thumb-icon{
    display:grid;
    place-items:center;
    width:min(40%, 150px);
    aspect-ratio:1;
    border-radius:30px;
    background:linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.05));
    border:1px solid rgba(255,255,255,.12);
    box-shadow:0 18px 36px rgba(0,0,0,.24);
    color:#fff;
    font-size:2.6rem;
    line-height:1;
    text-align:center;
    padding:10px;
}
.category-thumb-icon img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:inherit;
}
.badge-new{
    background:rgba(255,77,141,.88);
    color:#fff;
    box-shadow:0 10px 24px rgba(255,77,141,.25);
}
.badge-category{
    left:auto;
    right:12px;
    background:rgba(0,0,0,.5);
    border:1px solid rgba(255,255,255,.12);
}
.badge-success{
    position:static;
    background:rgba(0,209,255,.18);
    color:#c9f8ff;
    border:1px solid rgba(0,209,255,.28);
}
.badge-muted{
    position:static;
    background:rgba(255,255,255,.08);
    color:#d8deea;
    border:1px solid rgba(255,255,255,.09);
}

.pagination{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:22px;
}
.pagination a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:42px;
    height:42px;
    padding:0 14px;
    border-radius:999px;
    border:1px solid var(--line);
    background:rgba(255,255,255,.03);
}
.pagination a.active{
    background:linear-gradient(135deg,var(--primary-color),#67ecff);
    color:#03101d;
    border-color:transparent;
}

.player-shell{
    display:grid;
    grid-template-columns:minmax(0,1fr) 320px;
    gap:22px;
    align-items:start;
}
.player-main{display:grid;gap:20px}
.player-sidebar{display:grid;gap:20px}
.player-frame-wrap{
    padding:18px;
    min-height:min(90vh, 820px);
}
.game-frame{
    width:100%;
    height:min(90vh, 760px);
    border:none;
    border-radius:18px;
    background:#050814;
}
.player-toolbar{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:16px;
}
.lead{
    margin-top:0;
    color:#d8e3f1;
    line-height:1.75;
}
.tag-row{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}
.tag-chip{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 12px;
    border-radius:999px;
    background:rgba(0,209,255,.08);
    color:#b9f8ff;
    border:1px solid rgba(0,209,255,.18);
    font-size:.86rem;
    font-weight:700;
}
.share-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}
.article-shell{max-width:860px}
.article-header{margin-bottom:24px}
.blog-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0,1fr));
    gap:18px;
}
.blog-card{
    padding:22px;
    border-radius:20px;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.06);
}
.blog-card h2,.blog-card h3{margin:12px 0 10px}
.blog-card p{margin:0;color:var(--muted);line-height:1.7}
.blog-meta{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    color:var(--muted);
    font-size:.86rem;
}

.prose-content{
    line-height:1.8;
    color:#dae5f4;
}
.prose-content h2,
.prose-content h3,
.prose-content h4{
    margin:1.4em 0 .55em;
    line-height:1.2;
}
.prose-content p{margin:.9em 0}
.prose-content ul,
.prose-content ol{padding-left:22px}
.prose-content a{color:var(--primary-color);text-decoration:underline}
.article-hero-image{
    width:100%;
    border-radius:20px;
    margin:0 0 22px;
    border:1px solid rgba(255,255,255,.08);
    max-height:420px;
    object-fit:cover;
}

.ad-slot{
    padding:16px;
    border-radius:18px;
    background:rgba(255,255,255,.03);
    border:1px dashed rgba(255,255,255,.16);
}
.ad-slot-label{
    margin-bottom:10px;
    color:var(--muted);
    font-size:.78rem;
    font-weight:800;
    letter-spacing:.12em;
    text-transform:uppercase;
}

.empty-state,
.not-found p{color:var(--muted);line-height:1.7}

.site-footer{
    position:relative;
    margin-top:auto;
    border-top:1px solid rgba(32,52,80,.75);
    background:
        radial-gradient(circle at top left, rgba(0,209,255,.08), transparent 26%),
        linear-gradient(180deg, rgba(4,10,18,.88), rgba(2,8,16,.96));
}
.site-footer::before{
    content:"";
    position:absolute;
    inset:0 0 auto 0;
    height:1px;
    background:linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
}
.footer-grid{
    display:grid;
    grid-template-columns:1.2fr .9fr .9fr .9fr;
    gap:26px;
    padding:40px 0 28px;
}
.footer-grid h2,.footer-grid h3{margin:0 0 10px}
.footer-grid p{margin:0;color:var(--muted);line-height:1.7}
.footer-publisher-card{
    display:grid;
    gap:8px;
    margin-top:18px;
    padding:18px;
    border-radius:20px;
    background:linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
    border:1px solid rgba(32,52,80,.7);
}
.footer-publisher-card strong{font-size:.96rem}
.footer-publisher-card span,
.footer-publisher-card a{color:var(--muted);line-height:1.6}
.footer-links{
    list-style:none;
    padding:0;
    margin:0;
    display:grid;
    gap:8px;
}
.footer-links a{color:var(--muted)}
.footer-links a:hover{color:var(--text)}
.footer-muted{color:var(--muted)}
.footer-bar{
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:flex-start;
    padding:18px 0 28px;
    border-top:1px solid rgba(32,52,80,.6);
}
.footer-bar p{margin:0;color:var(--muted);line-height:1.7}

.cookie-banner{
    position:fixed;
    inset:auto 16px 16px 16px;
    z-index:30;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:18px;
    border-radius:20px;
    background:rgba(6,13,23,.96);
    border:1px solid rgba(255,255,255,.08);
    box-shadow:var(--shadow);
}
.cookie-banner p{margin:6px 0 0;color:var(--muted)}
.cookie-actions{display:flex;gap:10px;flex-wrap:wrap}

.flash-message{
    padding:14px 16px;
    border-radius:18px;
    margin-bottom:18px;
    font-weight:700;
}
.flash-success{
    background:rgba(0,209,255,.12);
    border:1px solid rgba(0,209,255,.28);
    color:#c4f8ff;
}
.flash-error{
    background:rgba(255,77,141,.12);
    border:1px solid rgba(255,77,141,.28);
    color:#ffd4e6;
}
.notice{
    padding:14px 16px;
    border-radius:16px;
    font-weight:700;
    line-height:1.5;
}
.notice.warning{
    background:rgba(255,184,77,.12);
    border:1px solid rgba(255,184,77,.34);
    color:#ffe4b8;
}

.admin-body,
.admin-login-page{
    background:
        radial-gradient(circle at top left, rgba(0,209,255,.12), transparent 30%),
        radial-gradient(circle at bottom right, rgba(255,77,141,.12), transparent 30%),
        #07111f;
}

.admin-shell{
    display:grid;
    grid-template-columns:290px minmax(0,1fr);
    min-height:100vh;
}
.admin-sidebar{
    position:sticky;
    top:0;
    height:100vh;
    padding:28px 20px;
    border-right:1px solid rgba(32,52,80,.8);
    background:rgba(6,13,23,.94);
    display:flex;
    flex-direction:column;
    gap:24px;
}
.admin-brand{
    display:flex;
    align-items:center;
    gap:14px;
}
.admin-brand small{display:block;color:var(--muted)}
.admin-nav{
    display:grid;
    gap:8px;
}
.admin-nav a{
    padding:12px 14px;
    border-radius:14px;
    color:var(--muted);
    font-weight:700;
}
.admin-nav a.active,
.admin-nav a:hover{
    background:rgba(0,209,255,.08);
    color:var(--text);
    border:1px solid rgba(0,209,255,.18);
}
.admin-profile{
    margin-top:auto;
    display:grid;
    gap:8px;
    padding:18px;
    border-radius:18px;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.06);
}
.admin-profile small{color:var(--muted);word-break:break-word}

.admin-content{padding:28px}
.admin-header{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:16px;
    margin-bottom:18px;
}
.admin-header h1{margin:8px 0 0}
.admin-main{display:grid;gap:22px}

.admin-card-grid{
    display:grid;
    grid-template-columns:repeat(4, minmax(0,1fr));
    gap:16px;
}
.admin-stat-card{
    padding:22px;
    display:grid;
    gap:8px;
}
.admin-stat-card span{color:var(--muted);font-weight:700}
.admin-stat-card strong{font-size:2rem;line-height:1}
.admin-stat-card small{color:#c3d1e4}

.admin-two-column{
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:22px;
}
.admin-panel{
    padding:22px;
    display:grid;
    gap:18px;
}
.panel-heading{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:16px;
}
.panel-heading.narrow{margin-top:14px}
.panel-heading h2{margin:0}
.panel-heading p{margin:0;max-width:680px;color:var(--muted);line-height:1.7}

.admin-form-stack{display:grid;gap:20px}
.form-grid{
    display:grid;
    gap:16px;
}
.form-grid.two-column{grid-template-columns:repeat(2, minmax(0,1fr))}
.full-width{grid-column:1/-1}
.checkbox-row{
    display:flex;
    align-items:center;
    padding-top:34px;
}
.checkbox-row label,
.switch{
    display:inline-flex;
    align-items:center;
    gap:10px;
    font-weight:700;
}
.code-box{
    min-height:320px;
    font-family:"Cascadia Code","Fira Code",Consolas,monospace;
    font-size:.92rem;
    line-height:1.6;
}
.tag-suggestion-list{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:10px;
}
.tag-suggestion{
    border:none;
    background:rgba(255,255,255,.06);
    color:var(--text);
    border-radius:999px;
    padding:8px 12px;
    cursor:pointer;
}
.tag-suggestion:hover{background:rgba(0,209,255,.12)}
.quill-editor{
    min-height:240px;
    border-radius:18px;
    overflow:hidden;
    background:#fff;
    color:#08111f;
}
.ql-toolbar.ql-snow,
.ql-container.ql-snow{border-color:#d6dbe4}
.form-actions,
.table-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    align-items:center;
}
.table-wrap{
    overflow:auto;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.06);
}
.admin-table{
    width:100%;
    border-collapse:collapse;
    min-width:740px;
    background:rgba(255,255,255,.015);
}
.admin-table th,
.admin-table td{
    padding:14px 16px;
    text-align:left;
    border-bottom:1px solid rgba(255,255,255,.06);
    vertical-align:top;
}
.admin-table th{
    color:#c7d4e7;
    font-size:.82rem;
    letter-spacing:.12em;
    text-transform:uppercase;
}
.admin-table td{color:#dde6f2}
.admin-table tr:last-child td{border-bottom:none}

.admin-panel-stack{display:grid;gap:14px}
.sub-panel{
    padding:18px;
    display:grid;
    gap:12px;
}
.sub-panel-header{
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:center;
}
.sub-panel h3{margin:0}
.sub-panel small{color:var(--muted)}

.admin-image-preview{
    margin-top:12px;
    width:160px;
    height:96px;
    object-fit:cover;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.1);
}
.admin-image-preview.icon{
    width:64px;
    height:64px;
}
.admin-image-preview.wide{
    width:220px;
    height:74px;
}

.admin-login-shell{
    min-height:100vh;
    display:grid;
    place-items:center;
    padding:24px;
}
.admin-login-card{
    width:min(460px,100%);
    padding:28px;
    border-radius:26px;
    background:linear-gradient(180deg, rgba(16,31,54,.96), rgba(10,19,35,.97));
    border:1px solid rgba(32,52,80,.85);
    box-shadow:var(--shadow);
    display:grid;
    gap:14px;
}
.admin-login-card h1{margin:4px 0}
.admin-login-card p{margin:0 0 6px;color:var(--muted);line-height:1.6}

code{
    padding:.2em .45em;
    border-radius:8px;
    background:rgba(255,255,255,.06);
    font-size:.9em;
}

@media (max-width: 1100px){
    .game-grid{grid-template-columns:repeat(3, minmax(0,1fr))}
    .featured-strip,
    .blog-grid{grid-template-columns:repeat(2, minmax(0,1fr))}
    .player-shell,
    .hero-grid,
    .footer-grid,
    .admin-card-grid,
    .admin-two-column{grid-template-columns:1fr}
}

@media (max-width: 900px){
    .admin-shell{grid-template-columns:1fr}
    .admin-sidebar{
        position:relative;
        height:auto;
        border-right:none;
        border-bottom:1px solid rgba(32,52,80,.8);
    }
    .hero-shell,
    .footer-grid,
    .admin-card-grid,
    .admin-two-column{grid-template-columns:1fr}
    .hero-copy{padding-top:10px}
    .hero-feature-copy{min-height:360px}
    .featured-strip{grid-template-columns:repeat(2, minmax(0,1fr))}
    .featured-card,
    .featured-card:first-child{grid-column:span 1;min-height:280px}
    .game-grid{grid-template-columns:repeat(2, minmax(0,1fr))}
    .game-grid > .game-card,
    .game-grid > .game-card:first-child{grid-column:span 1}
}

@media (max-width: 760px){
    .container{width:min(var(--container),calc(100% - 24px))}
    .header-top,
    .player-toolbar,
    .panel-heading,
    .sub-panel-header,
    .cookie-banner{flex-direction:column;align-items:flex-start}
    .search-form{max-width:none;width:100%}
    .blog-grid{grid-template-columns:repeat(2, minmax(0,1fr))}
    .form-grid.two-column{grid-template-columns:1fr}
    .admin-content{padding:18px}
    .section-card,.content-card,.admin-panel{padding:18px}
    .player-frame-wrap{padding:12px}
    .game-frame{height:70vh}
    .hero-copy h1{font-size:clamp(2.4rem, 11vw, 4rem)}
    .hero-feature-copy{min-height:300px;padding:20px}
    .hero-stat-ribbon{grid-template-columns:1fr}
    .featured-strip,
    .game-grid,
    .blog-grid{grid-template-columns:1fr}
    .featured-card,
    .featured-card:first-child,
    .game-grid > .game-card,
    .game-grid > .game-card:first-child{grid-column:span 1}
    .category-thumb-icon{font-size:2rem}
    .footer-bar{flex-direction:column}
}

@media (max-width: 560px){
    .brand-copy small{display:none}
    .hero-copy h1{font-size:2rem}
    .hero-note-row{gap:8px}
    .hero-note{width:100%;justify-content:center}
    .cookie-banner{inset:auto 12px 12px 12px}
    .admin-table{min-width:620px}
}
