/* NEWSOYES*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --neon-cyan: #00ffff;
    --neon-pink: #ff00ff;
    --neon-yellow: #ffff00;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --grid-color: rgba(0, 255, 255, 0.1);
    --text-glow: 0 0 10px var(--neon-cyan);
    --box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--dark-bg);
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
}

/* NEWSOYES*/
.cyberpunk-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 50%,
        rgba(0, 255, 255, 0.02) 50%
    );
    background-size: 100% 4px;
    animation: scanlines 0.1s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* NEWSOYES*/
.cyber-header {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--neon-cyan);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.cyber-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    animation: header-scan 3s ease-in-out infinite;
}

@keyframes header-scan {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.header-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.main-title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--neon-cyan);
    text-shadow: var(--text-glow);
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
}

.subtitle {
    color: #00ffff;
    font-size: 1.2rem;
    margin-top: 1rem;
    text-shadow: 0 0 10px #00ffff;
    letter-spacing: 3px;
}

/* NEWSOYES*/
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 2s infinite;
    color: var(--neon-pink);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 2s infinite;
    color: var(--neon-yellow);
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 14%, 15%, 49%, 50%, 99%, 100% { transform: translate(0); }
    15%, 49% { transform: translate(-2px, 2px); }
}

@keyframes glitch-2 {
    0%, 20%, 21%, 62%, 63%, 99%, 100% { transform: translate(0); }
    21%, 62% { transform: translate(2px, -2px); }
}

/* NEWSOYES*/
.catalog-container {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* NEWSOYES*/
.catalog-item {
    perspective: 1000px;
}

.item-card {
    background: rgba(20, 20, 20, 0.8);
    border: 2px solid var(--neon-cyan);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.item-card:hover::before {
    left: 100%;
}

.item-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--box-shadow);
    border-color: var(--neon-pink);
}

.item-image {
    text-align: center;
    margin-bottom: 1.5rem;
}

.image-placeholder {
    font-size: 4rem;
    filter: drop-shadow(0 0 10px var(--neon-cyan));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.item-info h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: var(--neon-cyan);
    text-shadow: var(--text-glow);
    margin-bottom: 0.5rem;
    text-align: center;
}

.item-info p {
    color: #cccccc;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* NEWSOYES*/
.cyber-button {
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-pink));
    color: var(--dark-bg);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cyber-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cyber-button:hover::before {
    left: 100%;
}

.cyber-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--neon-cyan);
}

/* NEWSOYES*/
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--darker-bg);
    margin: 5% auto;
    padding: 0;
    border: 2px solid var(--neon-cyan);
    border-radius: 15px;
    width: 90%;
    max-width: 1000px;
    position: relative;
    animation: modal-slide-in 0.3s ease;
}

@keyframes modal-slide-in {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-pink));
    color: var(--dark-bg);
    padding: 1.5rem;
    border-radius: 13px 13px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    margin: 0;
}

.close {
    color: var(--dark-bg);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover {
    transform: scale(1.2);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.modal-body {
    padding: 2rem;
}

#modelContainer {
    width: 100%;
    height: 400px;
    background: var(--dark-bg);
    border: 1px solid var(--neon-cyan);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.model-info {
    background: rgba(0, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

#modelDescription {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.controls-info {
    background: rgba(255, 0, 255, 0.1);
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid rgba(255, 0, 255, 0.3);
}

.controls-info p {
    color: var(--neon-pink);
    text-align: center;
    margin: 0;
    font-size: 0.9rem;
}

/* NEWSOYES*/
#loadingIndicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.loading-content {
    text-align: center;
    color: var(--neon-cyan);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 255, 255, 0.3);
    border-top: 3px solid var(--neon-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content p {
    margin-bottom: 1rem;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 10px var(--neon-cyan);
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(0, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* NEWSOYES*/
.error-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid #ff0000;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    z-index: 10;
}

.error-content p {
    color: #ff0000;
    margin-bottom: 1rem;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 10px #ff0000;
}

.error-content button {
    background: linear-gradient(45deg, #ff0000, #ff6666);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
}

.error-content button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px #ff0000;
}

/* NEWSOYES*/
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    #modelContainer {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .catalog-container {
        padding: 0 1rem;
    }
    
    .item-card {
        padding: 1rem;
    }
}

#downloadArea a:hover {
    background: linear-gradient(45deg,#ff00ff,#00ffff);
    color: #fff;
    box-shadow: 0 0 20px #ff00ff;
    transform: scale(1.05);
}

/* Modal Buttons */
.modal-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.modal-buttons button:hover,
.modal-buttons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.4);
}

/* Culture Section */
.culture-section {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 15px;
    padding: 2rem;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
}

.culture-section h3 {
    text-align: center;
    color: #00ffff;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px #00ffff;
}

.culture-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #00ffff;
    backdrop-filter: blur(10px);
}

.culture-item h4 {
    color: #ff6b6b;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.culture-item ul {
    list-style: none;
    padding: 0;
}

.culture-item li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    padding-left: 1.5rem;
}

.culture-item li:before {
    content: "▶";
    color: #00ffff;
    position: absolute;
    left: 0;
}

.culture-item li:last-child {
    border-bottom: none;
}

.culture-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.culture-buttons .btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    color: #111;
    box-shadow: 0 0 15px #00ffff;
}

.btn-secondary {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: #111;
    box-shadow: 0 0 15px #ff6b6b;
}

.btn-culture {
    background: linear-gradient(45deg, #a8e6cf, #dcedc1);
    color: #111;
    box-shadow: 0 0 15px #a8e6cf;
}

.btn-360 {
    background: linear-gradient(45deg, #ff9a9e, #fecfef);
    color: #111;
    box-shadow: 0 0 15px #ff9a9e;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.5);
}

/* Games Menu */
.games-menu {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 15px;
    padding: 2rem;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
}

.games-menu h3 {
    text-align: center;
    color: #00ffff;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px #00ffff;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.game-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: #00ffff;
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

.game-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.game-card h4 {
    color: #ff6b6b;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.game-card p {
    color: #ccc;
    font-size: 0.9rem;
}

.games-buttons {
    text-align: center;
}

/* Matching Game */
.game-section {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 15px;
    padding: 2rem;
    color: #fff;
    max-width: 900px;
    margin: 0 auto;
}

.game-section h3 {
    text-align: center;
    color: #00ffff;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px #00ffff;
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
}

.matching-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.card {
    aspect-ratio: 1;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card.matched .card-inner {
    transform: rotateY(180deg);
    animation: pulse 1s infinite;
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.card-front {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: #fff;
}

.card-back {
    background: linear-gradient(45deg, #a8e6cf, #dcedc1);
    color: #333;
    transform: rotateY(180deg);
}

.card-emoji {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.card-name {
    font-size: 0.8rem;
    text-align: center;
}

@keyframes pulse {
    0% { transform: rotateY(180deg) scale(1); }
    50% { transform: rotateY(180deg) scale(1.05); }
    100% { transform: rotateY(180deg) scale(1); }
}

.game-buttons {
    text-align: center;
}

/* Quiz */
.quiz-section {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 15px;
    padding: 2rem;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
}

.quiz-section h3 {
    text-align: center;
    color: #00ffff;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px #00ffff;
}

.quiz-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
}

.question-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.question-container h4 {
    color: #ff6b6b;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.options {
    display: grid;
    gap: 1rem;
}

.option-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 1rem;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.option-btn:hover {
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
}

.option-btn.correct {
    background: linear-gradient(45deg, #4caf50, #8bc34a);
    border-color: #4caf50;
    color: #fff;
}

.option-btn.incorrect {
    background: linear-gradient(45deg, #f44336, #e91e63);
    border-color: #f44336;
    color: #fff;
}

.option-btn:disabled {
    cursor: not-allowed;
}

.quiz-buttons {
    text-align: center;
}

/* Quiz Result */
.quiz-result {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 15px;
    padding: 2rem;
    color: #fff;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.quiz-result h3 {
    color: #00ffff;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px #00ffff;
}

.result-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.result-info h4 {
    color: #ff6b6b;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.result-info p {
    font-size: 1.2rem;
    color: #00ffff;
}

.result-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .matching-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .culture-buttons {
        flex-direction: column;
    }
    
    .result-buttons {
        flex-direction: column;
    }
}

.header-buttons {
    margin-top: 2rem;
}

.games-btn {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: #111;
    border: none;
    padding: 1rem 2rem;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.games-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.8);
    background: linear-gradient(45deg, #4ecdc4, #ff6b6b);
}

/* Sidebar ข่าวสาร (ธีม cyberpunk) */
#news-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, #181c2f 80%, #00fff7 100%);
    border-left: 3px solid #00fff7;
    box-shadow: -2px 0 16px #00fff7a0;
    padding: 20px 10px 20px 20px;
    z-index: 1000;
    overflow-y: auto;
    color: #fff;
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
}
#news-sidebar h2 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #00fff7;
    letter-spacing: 1px;
    text-shadow: 0 0 8px #00fff7;
}
#news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
#news-list li {
    margin-bottom: 12px;
    padding: 8px 10px;
    background: rgba(0,255,247,0.08);
    border-radius: 8px;
    box-shadow: 0 1px 4px #00fff733;
    color: #fff;
}



@media (max-width: 900px) {
    #news-sidebar {
        display: none;
    }
    #monkey-area {
        margin-right: 0;
    }
}

/* พื้นที่ลิงวิ่งเล่น */
#monkey-area {
    position: relative;
    min-height: 400px;
    margin: 40px 320px 160px 0;
    background: #eafaf1;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    overflow: hidden;
}

/* ปุ่มข่าวสาร */
.news-btn {
    background: linear-gradient(90deg, #00fff7 60%, #181c2f 100%);
    color: #181c2f;
    border: 2px solid #00fff7;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    margin-left: 16px;
    box-shadow: 0 0 8px #00fff7;
    transition: background 0.2s, color 0.2s;
}
.news-btn:hover {
    background: #00bfae;
    color: #fff;
}

/* ข่าวสาร overlay */
.news-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: -350px;
    width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, #181c2f 80%, #00fff7 100%);
    box-shadow: -4px 0 32px #00fff7a0;
    z-index: 2000;
    color: #fff;
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
    transition: right 0.4s cubic-bezier(.77,0,.18,1);
    display: flex;
    flex-direction: column;
    padding: 0;
}
.news-sidebar-overlay.open {
    display: flex;
    right: 0;
}
.news-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px 10px 20px;
    font-size: 1.3em;
    color: #00fff7;
    letter-spacing: 1px;
    text-shadow: 0 0 8px #00fff7;
    border-bottom: 1px solid #00fff7;
}
.close-btn {
    background: none;
    border: none;
    color: #00fff7;
    font-size: 1.3em;
    cursor: pointer;
    transition: color 0.2s;
}
.close-btn:hover {
    color: #fff;
}
#news-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    margin: 0;
    list-style: none;
}
#news-list li {
    margin-bottom: 12px;
    padding: 8px 10px;
    background: rgba(0,255,247,0.08);
    border-radius: 8px;
    box-shadow: 0 1px 4px #00fff733;
    color: #fff;
}

/* ลบ #monkey-area และให้ลิงวิ่งทั่ว body */
#monkey-area { display: none !important; }
.monkey-global {
    position: fixed !important;
    z-index: 1500;
    pointer-events: none;
}


@media (max-width: 900px) {
    .news-sidebar-overlay {
        width: 100vw;
        right: -100vw;
    }
    .news-sidebar-overlay.open {
        right: 0;
    }
}

/* ปุ่มเพิ่มลิง */
.add-monkey-btn {
    position: fixed;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2100;
    background: linear-gradient(90deg, #00fff7 60%, #181c2f 100%);
    color: #181c2f;
    border: 2px solid #00fff7;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1em;
    padding: 12px 22px;
    box-shadow: 0 0 12px #00fff7;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}
.add-monkey-btn:hover {
    background: #00bfae;
    color: #fff;
}



.news-btn-fixed {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2200;
    margin: 0;
    box-shadow: 0 0 16px #00fff7;
}

.news-item {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    background: rgba(0,255,247,0.10);
    border-radius: 10px;
    box-shadow: 0 1px 6px #00fff733;
    transition: background 0.2s, box-shadow 0.2s;
    overflow: hidden;
}
.news-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    width: 100%;
    padding: 8px 10px;
    gap: 12px;
}
.news-link:hover {
    background: #00fff7;
    color: #181c2f;
    box-shadow: 0 0 16px #00fff7;
}
.news-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 0 8px #00fff7cc;
}
.news-title {
    font-size: 1.05em;
    font-weight: bold;
    text-shadow: 0 0 6px #00fff7cc;
    line-height: 1.3;
    flex: 1;
    margin-left: 8px;
}
@media (max-width: 900px) {
    .news-thumb { width: 44px; height: 44px; }
    .news-title { font-size: 0.98em; }
} 