* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1c21;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(0,229,255,0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(213,0,249,0.02) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(0,229,255,0.02) 0%, transparent 40%);
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

#gridCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.magnet-board-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0,229,255,0.015) 2px,
            rgba(0,229,255,0.015) 3px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0,229,255,0.015) 2px,
            rgba(0,229,255,0.015) 3px
        ),
        radial-gradient(ellipse at 50% 0%, rgba(0,229,255,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(213,0,249,0.03) 0%, transparent 40%);
}

.site-header {
    text-align: center;
    padding: 50px 20px 30px;
    position: relative;
    z-index: 1;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(0,229,255,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 0%, rgba(213,0,249,0.04) 0%, transparent 40%);
    border-bottom: 1px solid rgba(0,229,255,0.12);
}
.site-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00e5ff, #d500f9, #00e5ff, transparent);
    box-shadow: 0 0 20px rgba(0,229,255,0.4);
}
.header-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 8px;
}
.brand-icon {
    font-size: 36px;
    filter: drop-shadow(0 0 12px rgba(0,229,255,0.6));
    animation: brandGlow 3s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.brand-icon:hover {
    transform: scale(1.15) rotate(15deg);
}
.brand-icon:active {
    transform: scale(0.95);
}
@keyframes brandGlow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(0,229,255,0.4)); }
    50% { filter: drop-shadow(0 0 20px rgba(0,229,255,0.8)); }
}
.brand-name {
    font-size: 30px;
    font-weight: 700;
    color: #b0e8f0;
    letter-spacing: 2.5px;
    text-shadow: 0 0 25px rgba(0,229,255,0.35);
    text-transform: uppercase;
    font-family: 'Space Grotesk', sans-serif;
}
.header-tagline {
    font-size: 13px;
    color: rgba(158,158,158,0.7);
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}
.header-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 12px;
}
.header-nav-link {
    color: #b0e8f0;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.header-nav-link:hover {
    background: rgba(0,229,255,0.06);
    border-color: rgba(0,229,255,0.2);
    text-shadow: 0 0 8px rgba(0,229,255,0.3);
}
.header-nav-link:active {
    transform: scale(0.96);
    background: rgba(0,229,255,0.12);
}

.pulsar-section {
    background:
        linear-gradient(180deg, rgba(0,229,255,0.05), rgba(213,0,249,0.02), transparent),
        repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(0,229,255,0.02) 80px, rgba(0,229,255,0.02) 81px);
    border-bottom: 1px solid rgba(0,229,255,0.1);
    padding: 20px 20px 16px;
    position: relative;
    overflow: hidden;
}
.pulsar-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,23,68,0.6), rgba(0,229,255,0.6), transparent);
    animation: pulsarLine 3s ease-in-out infinite;
}
@keyframes pulsarLine {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}
.pulsar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}
.pulsar-icon {
    font-size: 20px;
    animation: pulsarBlink 1.5s ease-in-out infinite;
}
@keyframes pulsarBlink {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}
.pulsar-title {
    font-size: 16px;
    font-weight: 700;
    color: #ff1744;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Space Grotesk', sans-serif;
}
.pulsar-ticker {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    z-index: 1;
}
.pulsar-ticker::-webkit-scrollbar { display: none; }
.pulsar-item {
    position: relative;
}
.pulsar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: #e0e0e0;
    transition: all 0.25s ease;
    background: rgba(255,255,255,0.02);
}
.pulsar-link:hover {
    background: rgba(0,229,255,0.06);
}
.pulsar-link:active {
    background: rgba(0,229,255,0.1);
    transform: scale(0.98);
}
.pulsar-thumb {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--cat-color, #00bcd4);
    box-shadow: 0 0 10px var(--cat-color, #00bcd4);
    animation: thumbPulse 2.5s ease-in-out infinite;
}
@keyframes thumbPulse {
    0%, 100% { box-shadow: 0 0 6px var(--cat-color, #00bcd4); }
    50% { box-shadow: 0 0 16px var(--cat-color, #00bcd4), 0 0 30px var(--cat-color, #00bcd4); }
}
.pulsar-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.pulsar-badge {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.pulsar-item .pulsar-info h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #e0e0e0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.first-screen-ad {
    padding: 5px 0;
}

.magnet-board {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

.magnet-zones {
    position: relative;
    margin-top: 30px;
}

.magnet-zone {
    position: relative;
    margin-bottom: 55px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}
.magnet-zone.visible {
    opacity: 1;
    transform: translateY(0);
}

.zone-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding: 16px 22px;
    background:
        linear-gradient(90deg, rgba(0,229,255,0.04), transparent 60%),
        rgba(255,255,255,0.02);
    border-radius: 14px;
    border-left: 4px solid var(--cat-color, #00bcd4);
    border-bottom: 1px solid rgba(0,229,255,0.06);
    position: relative;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2), inset 0 0 30px rgba(0,229,255,0.02);
}
.zone-orb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--cat-color, #00bcd4), transparent 70%);
    box-shadow: 0 0 14px var(--cat-color, #00bcd4), 0 0 30px var(--cat-color, #00bcd4);
    animation: orbPulse 3s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes orbPulse {
    0%, 100% { box-shadow: 0 0 10px var(--cat-color, #00bcd4), 0 0 20px var(--cat-color, #00bcd4); }
    50% { box-shadow: 0 0 20px var(--cat-color, #00bcd4), 0 0 45px var(--cat-color, #00bcd4), 0 0 65px var(--cat-color, #00bcd4); }
}
.zone-icon {
    font-size: 22px;
}
.zone-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--cat-color, #00bcd4);
    letter-spacing: 0.5px;
    font-family: 'Space Grotesk', sans-serif;
}
.zone-count {
    font-size: 11px;
    color: rgba(158,158,158,0.7);
    margin-left: auto;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.zone-random-btn {
    background: rgba(0,229,255,0.08);
    border: 1px solid rgba(0,229,255,0.2);
    color: #b0e8f0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.zone-random-btn:hover {
    background: rgba(0,229,255,0.15);
    box-shadow: 0 0 14px rgba(0,229,255,0.25);
    transform: scale(1.08);
}
.zone-random-btn:active {
    transform: scale(0.9) rotate(90deg);
    background: rgba(0,229,255,0.25);
}

.magnet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}
@media (min-width: 768px) {
    .magnet-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}
@media (min-width: 1024px) {
    .magnet-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 22px;
    }
}

.magnet-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(10,12,18,0.9);
    border: 1px solid rgba(0,229,255,0.08);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.magnet-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 50px rgba(0,0,0,0.5), 0 0 25px var(--cat-color, #00bcd4), 0 0 50px var(--cat-color, #00bcd4);
    border-color: var(--cat-color, #00bcd4);
    z-index: 10;
}
.magnet-card:active {
    transform: scale(0.97) translateY(2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.magnet-card.search-pulse {
    animation: searchPulse 1s ease-in-out infinite !important;
}
@keyframes searchPulse {
    0%, 100% { box-shadow: 0 0 8px var(--cat-color, #00bcd4); }
    50% { box-shadow: 0 0 30px var(--cat-color, #00bcd4), 0 0 60px var(--cat-color, #00bcd4); }
}
.magnet-link {
    text-decoration: none;
    color: #e0e0e0;
    display: block;
}
.magnet-image {
    width: 100%;
    height: 168px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.magnet-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(10,12,18,0.85) 100%);
    pointer-events: none;
}
.magnet-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.3px;
    z-index: 2;
    text-transform: uppercase;
}
.magnet-unread {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #448aff;
    box-shadow: 0 0 6px #448aff;
    z-index: 2;
}
.magnet-info {
    padding: 10px 14px;
    min-height: 40px;
    display: flex;
    align-items: center;
}
.magnet-title {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    letter-spacing: 0.3px;
    font-family: 'Inter', sans-serif;
}
.magnet-holo-border {
    position: absolute;
    inset: -1px;
    border-radius: 8px;
    border: 1px solid transparent;
    pointer-events: none;
    transition: all 0.35s ease;
    background: transparent;
}
.magnet-card:hover .magnet-holo-border {
    border-color: var(--cat-color, #00bcd4);
    box-shadow: inset 0 0 30px var(--cat-color, #00bcd4), 0 0 20px var(--cat-color, #00bcd4), 0 0 40px var(--cat-color, #00bcd4);
    background: linear-gradient(135deg, var(--cat-color, #00bcd4)10, transparent 50%, var(--cat-color, #00bcd4)10);
}

.ad-slot-wrap {
    margin: 16px 0;
}

.floating-panel {
    position: fixed;
    z-index: 100;
    background: rgba(16,18,24,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0,229,255,0.25);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 15px rgba(0,229,255,0.08);
    overflow: hidden;
}
.panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(0,229,255,0.1);
    cursor: default;
}
.panel-icon {
    font-size: 14px;
}
.panel-title {
    font-size: 11px;
    font-weight: 600;
    color: #b0e8f0;
    letter-spacing: 1px;
    text-transform: uppercase;
    flex: 1;
    font-family: 'Space Grotesk', sans-serif;
}
.panel-toggle {
    background: none;
    border: none;
    color: #b0e8f0;
    cursor: pointer;
    font-size: 16px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.panel-toggle:hover {
    background: rgba(0,229,255,0.1);
}
.panel-toggle:active {
    transform: scale(0.9);
}
.panel-body {
    padding: 10px 14px;
}

.mode-panel {
    top: 20px;
    left: 20px;
    width: 200px;
}
.mode-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mode-btn {
    padding: 7px 10px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(0,229,255,0.06);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 12px;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
}
.mode-btn:hover {
    background: rgba(0,229,255,0.06);
    border-color: rgba(0,229,255,0.2);
    transform: translateX(3px);
}
.mode-btn:active {
    transform: scale(0.96);
    background: rgba(0,229,255,0.12);
}
.mode-btn.active {
    background: rgba(0,229,255,0.1);
    border-color: rgba(0,229,255,0.3);
    color: #b0e8f0;
    box-shadow: 0 0 10px rgba(0,229,255,0.2);
}

.search-panel {
    top: 20px;
    right: 20px;
    width: 280px;
}
.search-input-wrap {
    display: flex;
    gap: 6px;
}
.search-input-wrap input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0,229,255,0.15);
    border-radius: 8px;
    padding: 8px 12px;
    color: #e0e0e0;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}
.search-input-wrap input:focus {
    border-color: #00e5ff;
    box-shadow: 0 0 12px rgba(0,229,255,0.25);
}
.search-input-wrap input::placeholder {
    color: rgba(158,158,158,0.7);
}
.search-btn {
    background: rgba(0,229,255,0.1);
    border: 1px solid rgba(0,229,255,0.2);
    color: #b0e8f0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.search-btn:hover {
    background: rgba(0,229,255,0.18);
    box-shadow: 0 0 10px rgba(0,229,255,0.15);
}
.search-btn:active {
    transform: scale(0.92);
    background: rgba(0,229,255,0.25);
}
.search-results {
    margin-top: 8px;
    max-height: 200px;
    overflow-y: auto;
}
.search-count {
    font-size: 11px;
    color: rgba(158,158,158,0.7);
    margin-bottom: 6px;
}
.search-result-item {
    display: block;
    padding: 6px 8px;
    font-size: 12px;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 6px;
    border-left: 2px solid var(--cat-color, #00bcd4);
    margin-bottom: 4px;
    transition: all 0.2s ease;
}
.search-result-item:hover {
    background: rgba(0,229,255,0.06);
    padding-left: 12px;
}

.category-panel {
    top: 80px;
    left: 20px;
    width: 200px;
}
.cat-filter-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cat-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(0,229,255,0.06);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
}
.cat-filter-btn:hover {
    background: rgba(0,229,255,0.06);
    border-color: var(--cat-color, #00bcd4);
    transform: translateX(3px);
}
.cat-filter-btn:active {
    transform: scale(0.96);
    background: rgba(0,229,255,0.12);
}
.cat-filter-btn.active {
    background: rgba(0,229,255,0.1);
    border-color: var(--cat-color, #00bcd4);
    box-shadow: 0 0 10px var(--cat-color, #00bcd4);
}
.cat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 4px var(--cat-color, #00bcd4);
}

.compass-panel {
    bottom: 90px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
}
.compass-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(0,229,255,0.15);
    color: #b0e8f0;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}
.compass-btn:hover {
    background: rgba(0,229,255,0.1);
    border-color: #00e5ff;
    box-shadow: 0 0 10px rgba(0,229,255,0.2);
}
.compass-btn:active {
    transform: scale(0.88);
    background: rgba(0,229,255,0.2);
}

.topic-wheel {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(16,18,24,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0,229,255,0.25);
    border-radius: 28px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 20px rgba(0,229,255,0.08);
}
.wheel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(0,229,255,0.08);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}
.wheel-btn:hover {
    background: rgba(0,229,255,0.1);
    border-color: var(--cat-color, #00bcd4);
    box-shadow: 0 0 14px var(--cat-color, #00bcd4);
    transform: scale(1.15);
}
.wheel-btn:active {
    transform: scale(0.88);
    background: rgba(0,229,255,0.2);
}

.random-game-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
}
.random-game-modal.active {
    pointer-events: auto;
    opacity: 1;
}
.random-game-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 18, 0.88);
    backdrop-filter: blur(8px);
}
.random-game-content {
    position: relative;
    z-index: 1;
    background: rgba(20,22,28,0.85);
    border: 1px solid rgba(0,229,255,0.2);
    border-radius: 16px;
    padding: 24px;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 50px rgba(0,229,255,0.1);
    transform: scale(0.9);
    transition: all 0.3s ease;
}
.random-game-modal.active .random-game-content {
    transform: scale(1);
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    color: #b0e8f0;
    font-size: 22px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.modal-close:hover {
    background: rgba(0,229,255,0.1);
}
.modal-close:active {
    transform: scale(0.9);
}
.modal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.modal-icon {
    font-size: 20px;
    filter: drop-shadow(0 0 8px rgba(0,229,255,0.6));
}
.modal-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #b0e8f0;
    letter-spacing: 0.5px;
    font-family: 'Space Grotesk', sans-serif;
}
.random-game-card {
    margin-bottom: 16px;
}
.random-card-link {
    text-decoration: none;
    color: #e0e0e0;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.random-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
.random-card-link:active {
    transform: scale(0.97);
}
.random-card-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}
.random-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.random-card-info {
    padding: 12px;
}
.random-card-info h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #e0e0e0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.try-another-btn {
    width: 100%;
    padding: 12px;
    background: rgba(0,229,255,0.1);
    border: 1px solid rgba(0,229,255,0.2);
    color: #b0e8f0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}
.try-another-btn:hover {
    background: rgba(0,229,255,0.18);
    box-shadow: 0 0 14px rgba(0,229,255,0.18);
}
.try-another-btn:active {
    transform: scale(0.97);
    background: rgba(0,229,255,0.25);
}

.detail-header {
    background: linear-gradient(180deg, rgba(0,229,255,0.04), transparent);
    border-bottom: 1px solid rgba(0,229,255,0.08);
    padding: 20px;
    position: relative;
    z-index: 1;
}
.detail-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cat-color, #00bcd4)44, transparent);
}
.detail-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,229,255,0.08);
    color: #b0e8f0;
    border: 1px solid rgba(0,229,255,0.2);
    padding: 10px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}
.detail-back-btn:hover {
    background: rgba(0,229,255,0.15);
    box-shadow: 0 0 15px rgba(0,229,255,0.15);
}
.detail-back-btn:active {
    transform: scale(0.97);
    background: rgba(0,229,255,0.2);
}
.detail-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.detail-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}
.detail-image-wrap {
    text-align: center;
    margin: 30px 0;
}
.detail-image {
    display: inline-block;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid;
    transition: all 0.3s ease;
}
.detail-image:hover {
    box-shadow: 0 0 70px var(--cat-color, #00bcd4)33, 0 12px 40px rgba(0,0,0,0.5);
}
.detail-image img {
    display: block;
    max-width: 100%;
    width: 600px;
    height: auto;
}
.detail-content {
    background: rgba(10,12,18,0.9);
    border: 1px solid rgba(0,229,255,0.08);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.detail-content h1 {
    color: #e0e0e0;
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0,229,255,0.12);
    padding-bottom: 15px;
    line-height: 1.4;
}
.detail-content .article-body {
    line-height: 1.9;
    color: rgba(224, 224, 224, 0.85);
    font-size: 15px;
    white-space: pre-wrap;
}
.detail-related-section {
    margin-top: 50px;
}
.detail-section-title {
    color: #b0e8f0;
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 1px solid rgba(0,229,255,0.15);
    display: inline-block;
    padding-bottom: 8px;
    font-family: 'Space Grotesk', sans-serif;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
@media (min-width: 768px) {
    .related-articles-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}
.related-article {
    border-radius: 8px;
    overflow: hidden;
    background: rgba(10,12,18,0.9);
    border: 1px solid rgba(0,229,255,0.08);
    transition: all 0.35s ease;
}
.related-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.5), 0 0 22px var(--cat-color, #00bcd4);
    border-color: var(--cat-color, #00bcd4);
}
.related-article:active {
    transform: scale(0.97);
}
.related-link {
    text-decoration: none;
    color: #e0e0e0;
    display: block;
}
.related-thumb-wrap {
    position: relative;
}
.related-thumb {
    width: 100%;
    height: 100px;
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid var(--cat-color, #00bcd4);
}
.related-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
}
.related-info {
    padding: 10px 12px;
}
.related-title {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #e0e0e0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}
.related-cat-label {
    font-size: 10px;
    margin-top: 4px;
    display: block;
}

.static-header {
    background: linear-gradient(180deg, rgba(0,229,255,0.04), transparent);
    border-bottom: 1px solid rgba(0,229,255,0.08);
    padding: 25px 20px;
    position: relative;
    z-index: 1;
}
.static-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 20px;
    position: relative;
    z-index: 1;
}
.static-title {
    color: #b0e8f0;
    margin-bottom: 35px;
    font-size: 28px;
    border-bottom: 1px solid rgba(0,229,255,0.15);
    padding-bottom: 15px;
    font-family: 'Space Grotesk', sans-serif;
}
.static-content {
    background: rgba(10,12,18,0.9);
    padding: 40px;
    border-radius: 16px;
    line-height: 1.9;
    color: rgba(224,224,224,0.85);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(0,229,255,0.08);
}

.site-footer {
    background: linear-gradient(180deg, #0e1014, #1a1c21);
    color: #b0e8f0;
    padding: 45px 20px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 229, 255, 0.1);
}
.footer-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00e5ff, #d500f9, #00e5ff, transparent);
    opacity: 0.5;
    animation: scanPulse 4s ease-in-out infinite;
}
@keyframes scanPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.footer-links a {
    color: #b0e8f0;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 10px 20px;
    position: relative;
    border-radius: 8px;
}
.footer-links a:hover {
    color: #fff;
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
    background: rgba(0, 229, 255, 0.08);
}
.footer-links a:active {
    background: rgba(0, 229, 255, 0.15);
    transform: scale(0.97);
}
.footer-copyright {
    padding-top: 20px;
    border-top: 1px solid rgba(0, 229, 255, 0.08);
}
.footer-copyright p {
    color: rgba(176, 232, 240, 0.35);
    font-size: 14px;
    margin: 0;
    font-weight: 400;
}

button {
    transition: all 0.3s ease;
}
img {
    max-width: 100%;
    height: auto;
}
a {
    transition: all 0.3s ease;
}
::selection {
    background: rgba(0, 229, 255, 0.3);
    color: #e0e0e0;
}
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #1a1c21;
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.25);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 229, 255, 0.45);
}

@media (max-width: 768px) {
    .mode-panel {
        top: auto;
        bottom: 70px;
        left: 10px;
        width: auto;
    }
    .search-panel {
        top: auto;
        bottom: 70px;
        right: 10px;
        left: 10px;
        width: auto;
    }
    .category-panel {
        display: none;
    }
    .compass-panel {
        bottom: 75px;
        right: 10px;
    }
    .compass-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    .topic-wheel {
        bottom: 10px;
        padding: 6px 10px;
        gap: 4px;
        max-width: 95vw;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .topic-wheel::-webkit-scrollbar {
        display: none;
    }
    .wheel-btn {
        width: 34px;
        height: 34px;
        font-size: 16px;
        flex-shrink: 0;
    }
    .brand-name {
        font-size: 22px;
    }
    .header-tagline {
        font-size: 11px;
    }
    .zone-label {
        font-size: 15px;
    }
    .magnet-image {
        height: 140px;
    }
    .header-nav {
        gap: 10px;
    }
    .header-nav-link {
        font-size: 12px;
        padding: 5px 10px;
    }
    .magnet-card:hover {
        transform: translateY(-3px);
    }
}
@media (max-width: 480px) {
    .magnet-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .magnet-title {
        font-size: 11px;
    }
    .magnet-info {
        padding: 8px 10px;
    }
    .magnet-image {
        height: 120px;
    }
    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .site-header {
        padding: 30px 15px 18px;
    }
    .brand-name {
        font-size: 18px;
        letter-spacing: 1.5px;
    }
    .detail-content h1 {
        font-size: 20px;
    }
    .detail-image img {
        width: 100%;
    }
}