:root {
    --bg: #0a0b14;
    --panel: #12131e;
    --panel2: #1a1c2b;
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.7);
    --muted-light: #b6b6c9;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #ff4d8c;
    --accent2: #7c5cff;
    --ok: #34d399;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    --radius: 16px;
    --radius2: 22px;
    --max: 1200px;
    --rainbow: linear-gradient(90deg,
        #ff4d4d 0%,
        #ff9f4d 16.66%,
        #fff24d 33.33%,
        #4dff4d 50%,
        #4d9fff 66.66%,
        #b84dff 83.33%,
        #ff4d99 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    background: radial-gradient(circle at 20% 10%, rgba(124, 92, 255, 0.2) 0%, transparent 50%) fixed,
            radial-gradient(circle at 90% 5%, rgba(255, 77, 140, 0.18) 0%, transparent 50%) fixed,
            var(--bg);
    color: var(--text);
    line-height: 1.55;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, li {
    list-style: none;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.skip {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip:focus {
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    padding: 12px 20px;
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    z-index: 9999;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 11, 20, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.top-stripe {
    height: 3px;
    background: var(--rainbow);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.logo-dot {
    width: 48px;
    height: 48px;
    background: linear-gradient(145deg, var(--accent), #d1206b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    box-shadow: var(--shadow);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    font-size: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.brand-text small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
}

.brand img {
    height: 65px;
    width: auto;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
}

nav a {
    display: inline-flex;
    padding: 8px 16px;
    color: var(--muted);
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: 0.2s;
    position: relative;
    font-size: 14px;
    white-space: nowrap;
}

nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--line);
}

nav a:hover::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--rainbow);
    border-radius: 2px;
}

nav a.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--line);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--rainbow);
    border-radius: 2px;
}

.menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.menu-btn svg {
    width: 22px;
    height: 22px;
}

.mobile-nav {
    display: none;
    padding: 0 0 16px;
}

.mobile-nav.show {
    display: block;
}

.mobile-nav a {
    display: flex;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--muted);
    font-weight: 700;
    margin-top: 8px;
    position: relative;
}

.mobile-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--rainbow);
    border-radius: 14px 0 0 14px;
    opacity: 0.7;
}

/* Hero */
.hero {
    padding: 30px 0 20px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 20px;
}

.hero-main {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius2);
    padding: 30px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--rainbow);
    border-radius: var(--radius2) var(--radius2) 0 0;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(124, 92, 255, 0.15);
    border: 1px solid rgba(124, 92, 255, 0.35);
    color: var(--text);
    font-size: 12px;
    margin-bottom: 12px;
}

.hero-main h1 {
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 15px;
    letter-spacing: -0.02em;
}

.hero-main p {
    color: var(--muted-light);
    font-size: 16px;
    margin: 0;
    max-width: 62ch;
}

.hero-side {
    background: var(--panel2);
    border: 1px solid var(--line);
    border-radius: var(--radius2);
    padding: 24px;
    box-shadow: var(--shadow);
}

.notice {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(52, 211, 153, 0.35);
    background: rgba(52, 211, 153, 0.08);
    color: var(--text);
    font-size: 13px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s;
    white-space: nowrap;
    cursor: pointer;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn-primary {
    border-color: rgba(255, 77, 140, 0.45);
    background: linear-gradient(135deg, rgba(255, 77, 140, 0.2), rgba(124, 92, 255, 0.18));
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--rainbow);
    opacity: 0.1;
}

.btn-primary span {
    position: relative;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

/* Chips */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 100px;
    color: var(--muted-light);
    font-size: 13px;
    font-weight: 600;
}

.chip::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--rainbow);
    border-radius: 50%;
}

/* Section headers */
.section {
    margin: 40px 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 20px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.section-header .sub {
    color: var(--muted-light);
    font-size: 14px;
    margin: 5px 0 0;
}

/* Masonry grid */
.grid {
    column-count: 4;
    column-gap: 20px;
    margin: 20px 0;
}

.post {
    break-inside: avoid;
    margin-bottom: 20px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: 0.3s;
    display: inline-block;
    width: 100%;
    position: relative;
}

.post:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.post-thumb {
    display: block;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    position: relative;
}

.post-thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: 0.5s;
}

.post:hover .post-thumb img {
    transform: scale(1.05);
}

.post-info {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 8px 12px;
    background: rgba(26, 28, 43, 0.95);
    backdrop-filter: blur(4px);
    text-align: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 77, 140, 0.3);
    z-index: 2;
}

.post-title {
    font-size: 13px;
    margin: 0;
    color: var(--text);
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.post-content {
    padding: 16px;
}

.post-content .post-title {
    font-size: 16px;
    text-transform: none;
    margin: 0 0 8px;
}

.post-meta {
    font-size: 13px;
    color: var(--muted-light);
    margin: 0 0 12px;
}

.post-actions {
    display: flex;
    gap: 8px;
}

.post-actions .btn {
    padding: 6px 12px;
    font-size: 12px;
    flex: 1;
}

/* Article */
.article {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius2);
    padding: 28px;
    margin: 40px 0;
}

.article h2 {
    font-size: 24px;
    margin: 0 0 15px;
}

.article h3 {
    font-size: 18px;
    margin: 25px 0 12px;
}

.article p {
    color: var(--muted-light);
    font-size: 16px;
    margin: 0 0 20px;
    line-height: 1.6;
}

.article-thumbs {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 25px 0;
}

.article-thumb {
    flex: 0 0 200px;
    max-width: 100%;
}

.article-thumb .post-thumb {
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

/* MAP Block Styles */
.card {
    border: 1px solid var(--line);
    border-radius: var(--radius2);
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    box-shadow: var(--shadow);
    overflow: hidden;
    margin: 20px 0;
}

.card-pad {
    padding: 24px;
}

.title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 20px;
    letter-spacing: -0.4px;
}

@media (min-width: 720px) {
    .title {
        font-size: 36px;
    }
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
    color: var(--muted-light);
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
}

.pill:hover {
    background: rgba(255,77,140,0.15);
    border-color: var(--accent);
    color: var(--text);
    transform: translateY(-1px);
}

/* Footer */
footer {
    border-top: 1px solid var(--line);
    background: rgba(10, 11, 20, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-info {
    flex: 1;
    min-width: 250px;
}

.footer-links {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-col {
    min-width: 140px;
}

.footer-col h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 15px;
    color: var(--text);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--muted-light);
    font-size: 14px;
    transition: 0.2s;
}

.footer-col a:hover {
    color: var(--text);
}

.footer-stamp {
    margin-top: 20px;
    max-width: 200px;
    border-radius: var(--radius);
    overflow: hidden;
    opacity: 0.4;
    border: 1px solid var(--line);
    transition: 0.2s;
}

.footer-stamp:hover {
    opacity: 0.8;
}

.footer-stamp img {
    width: 100%;
    height: auto;
    display: block;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted-light);
    font-size: 13px;
}

/* Media Queries */
@media (max-width: 1100px) {
    .grid {
        column-count: 3;
    }
}

@media (max-width: 1024px) {
    .grid {
        column-count: 2;
    }
}

@media (max-width: 920px) {
    nav {
        display: none;
    }
    
    .menu-btn {
        display: flex;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-main {
        padding: 24px;
    }
    
    .hero-main h1 {
        font-size: 32px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article {
        padding: 20px;
    }
    
    .grid {
        column-count: 2;
        column-gap: 15px;
    }
    
    .post-info {
        bottom: 8px;
        left: 8px;
        right: 8px;
        padding: 6px 10px;
    }
    
    .post-info .post-title {
        font-size: 12px;
    }
}

@media (max-width: 640px) {
    .grid {
        column-count: 1;
    }
    
    .article-thumb {
        flex: 0 0 100%;
    }
    
    .footer-grid {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links {
        gap: 30px;
    }
    
    .post-actions {
        flex-direction: column;
    }
    
    .title {
        font-size: 28px;
    }
    
    .card-pad {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-main {
        padding: 20px;
    }
    
    .hero-main h1 {
        font-size: 28px;
    }
    
    .hero-side {
        padding: 20px;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        width: 100%;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
    
    .grid {
        column-count: 1;
    }
    
    .post-info {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 8px 12px;
    }
    
    .post-info .post-title {
        font-size: 13px;
    }
    
    .links {
        gap: 8px;
    }
    
    .pill {
        padding: 6px 12px;
        font-size: 13px;
    }
}