* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, sans-serif; text-align: center; background: radial-gradient(circle at bottom, #1b0066, #050019); color: #eee; padding: 50px 20px; min-height: 100vh; overflow-x: hidden; position: relative; }
#background-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
h1 { font-size: 3em; margin-bottom: 10px; color: #ffcc00; text-shadow: 0 0 15px rgba(255,200,0,0.7); animation: fadeInDown 1s ease; }
.card { background: rgba(255,255,255,0.08); border-radius: 15px; padding: 30px; margin: 30px auto; width: 90%; max-width: 600px; box-shadow: 0 0 20px rgba(0,0,0,0.3); animation: fadeIn 1.2s ease; color: white; }
.card h2 { text-align: center; font-size: 1.8em; color: #ffcc00; margin-bottom: 20px; }
.main-columns { display: flex; justify-content: center; align-items: stretch; gap: 30px; max-width: 1400px; margin: 30px auto; flex-wrap: wrap; }
.main-columns .card { margin: 0; }
.map-interactive-card { width: 730px; max-width: 100%; display: flex; flex-direction: column; }
.news-card { width: 600px; max-width: 100%; }
.iframe-wrapper { width: 700px; height: 700px; max-width: 100%; margin: 0 auto; position: relative; }
.iframe-container { width: 100%; height: 100%; border-radius: 12px; overflow: hidden; background: #0a0a0a; box-shadow: 0 4px 20px rgba(0,0,0,0.4); position: absolute; top: 0; left: 0; transition: top 0.45s cubic-bezier(0.1, 0.9, 0.2, 1), left 0.45s cubic-bezier(0.1, 0.9, 0.2, 1), width 0.45s cubic-bezier(0.1, 0.9, 0.2, 1), height 0.45s cubic-bezier(0.1, 0.9, 0.2, 1), border-radius 0.45s cubic-bezier(0.1, 0.9, 0.2, 1), box-shadow 0.45s ease; z-index: 5; }
.iframe-container.fullscreen-active { z-index: 99999; box-shadow: 0 20px 50px rgba(0,0,0,0.7); }
.fullscreen-map-btn { position: absolute; bottom: 15px; left: 15px; background: rgba(0, 123, 255, 0.9); color: white; padding: 10px 14px; border: none; border-radius: 6px; font-weight: bold; font-size: 1.3em; box-shadow: 0 4px 15px rgba(0,0,0,0.5); transition: background 0.3s, transform 0.2s, box-shadow 0.3s; z-index: 10; cursor: pointer; }
.fullscreen-map-btn:hover { background: #0056b3; transform: scale(1.05); box-shadow: 0 4px 20px rgba(0, 123, 255, 0.5); }
.ip { font-size: 1.5em; color: #ffcc00; animation: glow 2s infinite alternate; margin: 15px 0; user-select: all; }
.status { font-weight: bold; font-size: 1.2em; margin-top: 10px; transition: opacity 0.5s ease; }
.online { color: #00ff66; }
.offline { color: #ff4444; }
#updating { font-style: italic; opacity: 0.7; animation: blink 1.5s infinite; }
.map-button, .map-button-violet { display: inline-block; margin-top: 20px; margin-right: 10px; margin-left: 10px; padding: 15px 30px; font-size: 1.1em; color: white; border: none; border-radius: 10px; text-decoration: none; box-shadow: 0 0 15px rgba(0,0,0,0.3); transition: background 0.3s, transform 0.2s, box-shadow 0.3s, filter 0.3s; cursor: pointer; }
.map-button { background: #007bff; }
.map-button:hover { background: #3399ff; transform: scale(1.05); box-shadow: 0 0 20px rgba(255,255,255,0.6); }
.map-button-violet { background: #9933ff; box-shadow: 0 0 15px rgba(153,51,255,0.4); }
.map-button-violet:hover { background: #b04cff; transform: scale(1.08); box-shadow: 0 0 30px rgba(180,76,255,0.8); filter: brightness(1.2); }
#players-table-container { max-width: 700px; margin: 10px auto; overflow: hidden; transition: max-height 0.5s ease; }
#players-table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,0.1); border-radius: 10px; color: #fff; }
#players-table th, #players-table td { padding: 10px; text-align: center; }
#players-table th { background: rgba(255,255,255,0.2); }
#players-table td img { width: 32px; height: 32px; border-radius: 4px; }
.players-header { text-align: center; margin: 20px 0 10px 0; display: none; }
#toggle-players { margin-left: 10px; padding: 5px 12px; border: none; border-radius: 5px; background: #007bff; color: white; cursor: pointer; transition: background 0.3s; }
#toggle-players:hover { background: #3399ff; }
#footer { margin-top: 80px; padding: 30px 20px; background: rgba(0, 0, 0, 0.4); border-top: 1px solid rgba(255, 255, 255, 0.1); color: #ccc; font-size: 0.95em; position: relative; z-index: 10; }
.footer-content { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.footer-text p { margin: 5px 0; text-align: left; }
.footer-text strong { color: #ffcc00; }
.discord-btn { display: flex; align-items: center; gap: 12px; background-color: #5865F2; color: white; padding: 12px 24px; border-radius: 8px; text-decoration: none; font-weight: bold; font-size: 1.05em; transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s; box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3); }
.discord-btn:hover { background-color: #4752C4; transform: scale(1.05) translateY(-2px); box-shadow: 0 8px 20px rgba(88, 101, 242, 0.6); }
@media (max-width: 768px) { .footer-content { flex-direction: column; justify-content: center; text-align: center; } .footer-text p { text-align: center; } }
@keyframes fadeInDown { from {opacity: 0; transform: translateY(-20px);} to {opacity: 1; transform: translateY(0);} }
@keyframes fadeIn { from {opacity: 0; transform: translateY(20px);} to {opacity: 1; transform: translateY(0);} }
@keyframes glow { from { text-shadow: 0 0 5px #ffcc00;} to { text-shadow: 0 0 20px #ffcc00;} }
@keyframes blink { 0%,100%{opacity: 0.3;} 50%{opacity: 1;} }
.motd-container { display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 15px; background: rgba(0, 0, 0, 0.2); padding: 10px 15px; border-radius: 10px; }
#server-icon { width: 64px; height: 64px; border-radius: 8px; box-shadow: 0 0 10px rgba(0,0,0,0.5); }
#motd { text-align: left; font-size: 0.95em; line-height: 1.4; }
.discord-message { background: rgba(0, 0, 0, 0.3); border-radius: 10px; padding: 15px; margin-bottom: 15px; display: flex; flex-direction: column; border-left: 4px solid #7289da; }
.discord-header { display: flex; align-items: center; margin-bottom: 10px; }
.discord-header img { width: 40px; height: 40px; border-radius: 50%; margin-right: 15px; }
.discord-author { font-weight: bold; color: #fff; font-size: 1.1em; text-shadow: 0 0 5px rgba(0,0,0,0.5); }
.discord-date { font-size: 0.8em; color: #aaa; margin-left: 10px; }
.discord-content { font-size: 0.95em; line-height: 1.5; color: #ddd; white-space: pre-wrap; }
.spoiler { background-color: #333; color: transparent; cursor: pointer; border-radius: 3px; padding: 0 4px; transition: background 0.3s; }
.spoiler.revealed { background-color: #555; color: #fff; }
code { background: rgba(0,0,0,0.4); padding: 2px 5px; border-radius: 4px; font-family: 'Courier New', monospace; color: #ffcc00; }
.discord-images { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.discord-attachment { max-width: 100%; max-height: 400px; object-fit: contain; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.1); background-color: #2b2d31; }
.feed-tabs { display: flex; justify-content: center; gap: 15px; margin-bottom: 20px; }
.feed-tab { position: relative; overflow: hidden; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); color: #ccc; padding: 10px 20px; font-size: 1em; font-weight: bold; border-radius: 25px; cursor: pointer; transition: all 0.3s ease; }
.feed-tab:hover { background: rgba(255, 255, 255, 0.15); }
.feed-tab.active { color: #fff; border-color: #7289da; box-shadow: 0 0 15px rgba(114, 137, 218, 0.4); }
.feed-tab span { position: relative; z-index: 1; }
.tab-progress { position: absolute; top: 0; left: 0; bottom: 0; width: 0%; background: #7289da; z-index: 0; transition: width 0.1s linear; }
.slider-container { width: 100%; height: 700px; position: relative; overflow: hidden; }
.slider-track { display: flex; width: 400%; height: 100%; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.slide-page { width: 25%; height: 100%; overflow-y: auto; box-sizing: border-box; padding-right: 10px; }
.slide-page::-webkit-scrollbar { width: 8px; }
.slide-page::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); border-radius: 4px; }
.slide-page::-webkit-scrollbar-thumb { background: #7289da; border-radius: 4px; }
.discord-wrapper { width: 600px; max-width: 100%; position: relative; }
.discord-container { width: 100%; margin: 0 !important; transition: top 0.45s cubic-bezier(0.1, 0.9, 0.2, 1), left 0.45s cubic-bezier(0.1, 0.9, 0.2, 1), width 0.45s cubic-bezier(0.1, 0.9, 0.2, 1), height 0.45s cubic-bezier(0.1, 0.9, 0.2, 1), border-radius 0.45s cubic-bezier(0.1, 0.9, 0.2, 1), background-color 0.45s ease; z-index: 5; }
.discord-header-bar { display: flex; justify-content: center; align-items: center; position: relative; margin-bottom: 20px; }
.discord-header-bar h2 { margin-bottom: 0; }
.fullscreen-discord-btn { position: absolute; right: 0; background: rgba(114, 137, 218, 0.8); color: white; border: none; padding: 6px 12px; border-radius: 6px; font-size: 1.2em; cursor: pointer; transition: background 0.3s, transform 0.2s; }
.fullscreen-discord-btn:hover { background: #7289da; transform: scale(1.1); }
.discord-inner { display: flex; flex-direction: column; flex: 1; overflow: hidden; }
.discord-container.fullscreen-active { z-index: 99999; background: #1e1f22 !important; display: flex; flex-direction: column; padding: 0 !important; }
.discord-container.fullscreen-active .discord-header-bar { padding: 15px 25px; background: #1e1f22; margin-bottom: 0; border-bottom: 1px solid #2b2d31; justify-content: space-between; }
.discord-container.fullscreen-active .fullscreen-discord-btn { position: static; }
.discord-container.fullscreen-active .discord-inner { flex-direction: row; height: 100%; }
.discord-container.fullscreen-active .feed-tabs { width: 250px; flex-direction: column; background: #2b2d31; margin: 0; padding: 20px 10px; gap: 5px; justify-content: flex-start; }
.discord-container.fullscreen-active .feed-tab { border-radius: 5px; border: none; background: transparent; text-align: left; padding: 12px 15px; color: #949ba4; }
.discord-container.fullscreen-active .feed-tab:hover { background: rgba(255, 255, 255, 0.05); color: #dbdee1; }
.discord-container.fullscreen-active .feed-tab.active { background: rgba(255, 255, 255, 0.1); color: #fff; box-shadow: none; }
.discord-container.fullscreen-active .slider-container { flex: 1; height: 100%; background: #313338; padding: 20px 0; }
.discord-container.fullscreen-active .slide-page { padding: 0 40px; }
.discord-container:not(.fullscreen-active) .discord-message:nth-child(n+4) { display: none; }
.discord-container:not(.fullscreen-active) .slide-page { max-height: 700px; overflow-y: auto; }
.discord-container.fullscreen-active .slide-page { max-height: none; overflow-y: auto; }
.gallery-wrapper { width: 100%; max-width: 1350px; margin: 30px auto; position: relative; box-sizing: border-box; }
.gallery-container.gallery-card { width: 100% !important; max-width: none !important; height: 560px; margin: 0 !important; transition: top 0.45s cubic-bezier(0.1, 0.9, 0.2, 1), left 0.45s cubic-bezier(0.1, 0.9, 0.2, 1), width 0.45s cubic-bezier(0.1, 0.9, 0.2, 1), height 0.45s cubic-bezier(0.1, 0.9, 0.2, 1), border-radius 0.45s cubic-bezier(0.1, 0.9, 0.2, 1), background-color 0.45s ease; z-index: 5; background: #0a0a0a; display: flex; flex-direction: column; overflow: hidden; }
.gallery-header-bar { display: flex; justify-content: center; align-items: center; position: relative; padding: 15px; background: rgba(255,255,255,0.05); z-index: 10; height: 60px; box-sizing: border-box; }
.gallery-header-bar h2 { margin-bottom: 0; }
.fullscreen-gallery-btn { position: absolute; right: 15px; background: rgba(114, 137, 218, 0.8); color: white; border: none; padding: 6px 12px; border-radius: 6px; font-size: 1.2em; cursor: pointer; transition: background 0.3s, transform 0.2s; }
.fullscreen-gallery-btn:hover { background: #7289da; transform: scale(1.1); }
.gallery-inner { position: relative; flex: 1; width: 100%; overflow: hidden; }
.gallery-track { position: relative; width: 100%; height: 100%; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.6); color: white; border: none; font-size: 1.8em; padding: 10px 15px; cursor: pointer; z-index: 10; border-radius: 8px; transition: 0.3s; }
.gallery-nav:hover { background: rgba(0, 0, 0, 0.9); color: #ffcc00; }
.gallery-nav.prev { left: 15px; }
.gallery-nav.next { right: 15px; }
.gallery-slide { position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: 0; transition: opacity 0.8s ease-in-out; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.gallery-slide.active { opacity: 1; z-index: 2; }
.gallery-slide img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery-caption { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); background: rgba(0, 0, 0, 0.8); color: #fff; padding: 8px 15px; border-radius: 6px; max-width: 80%; text-align: center; font-size: 0.9em; backdrop-filter: blur(5px); }
.gallery-caption strong { color: #ffcc00; }
.gallery-container.fullscreen-active { z-index: 99998; background: #1e1f22 !important; height: 100vh !important; }
.gallery-container.fullscreen-active .gallery-inner { overflow-y: auto; padding: 20px; }
.gallery-container.fullscreen-active .gallery-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; height: auto; }
.gallery-container.fullscreen-active .gallery-slide { position: relative; opacity: 1 !important; height: 250px; border-radius: 10px; overflow: hidden; background: #2b2d31; transition: transform 0.2s, box-shadow 0.2s; }
.gallery-container.fullscreen-active .gallery-slide:hover { transform: scale(1.05); z-index: 10; box-shadow: 0 10px 25px rgba(0,0,0,0.6); }
.gallery-container.fullscreen-active .gallery-slide img { object-fit: cover; width: 100%; height: 100%; }
.gallery-container.fullscreen-active .gallery-nav { display: none; }
.gallery-container.fullscreen-active .gallery-caption { font-size: 0.75em; padding: 4px 8px; bottom: 8px; }
.lightbox { display: none; position: fixed; z-index: 999999; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.92); align-items: center; justify-content: center; flex-direction: column; }
.lightbox.active { display: flex; animation: fadeIn 0.3s ease; }
.lightbox img { max-width: 90%; max-height: 85%; border-radius: 8px; box-shadow: 0 0 30px rgba(0,0,0,0.8); }
.lightbox-caption { margin-top: 15px; color: white; font-size: 1.1em; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: white; font-size: 3em; cursor: pointer; transition: 0.2s; }
.lightbox-close:hover { color: #ffcc00; transform: scale(1.1); }
.site-header { margin: 40px auto 30px auto; text-align: center; width: 100%; max-width: 450px; }
.logo-container { position: relative; display: inline-block; animation: floatLogo 4s ease-in-out infinite; }
.main-logo { max-width: 100%; height: auto; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.6)); display: block; }
.volume-badge { position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%) rotate(-5deg); background-color: #ffcc00; color: #222; font-weight: 900; font-size: 1.4rem; padding: 6px 20px; border: 3px solid #111; border-radius: 8px; box-shadow: 4px 4px 0px #000; text-transform: uppercase; font-family: 'Courier New', Courier, monospace; white-space: nowrap; z-index: 10; animation: pulseBadge 2s infinite alternate; }
@keyframes floatLogo { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulseBadge { 0% { transform: translateX(-50%) rotate(-5deg) scale(1); } 100% { transform: translateX(-50%) rotate(-5deg) scale(1.05); } }
.mascot-container { position: fixed; bottom: -20px; right: 20px; z-index: 999; animation: peekMascot 4s ease-in-out infinite alternate; }
.mascot-img { height: 250px; width: auto; filter: drop-shadow(3px 3px 6px rgba(0,0,0,0.5)); transition: transform 0.3s ease; cursor: pointer; }
.mascot-img:hover { transform: translateY(-20px) scale(1.05); }
@keyframes peekMascot { 0% { transform: translateY(15px) rotate(-2deg); } 100% { transform: translateY(0px) rotate(2deg); } }
.discord-video-container { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; margin-top: 10px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); }
.discord-video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.skeleton-bubble { position: fixed; background: white; color: black; padding: 8px 12px; border-radius: 10px; font-family: Arial, sans-serif; font-weight: bold; font-size: 14px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s ease-in-out; z-index: 10000; box-shadow: 0 4px 6px rgba(0,0,0,0.3); margin-top: -15px; }
.skeleton-bubble::after { content: ''; position: absolute; top: 100%; left: 50%; margin-left: -5px; border-width: 5px; border-style: solid; border-color: white transparent transparent transparent; }
@keyframes skeletonAngryShake { 0% { transform: scale(1.2) translate(0, 0) rotate(10deg); } 25% { transform: scale(1.2) translate(-3px, 3px) rotate(8deg); } 50% { transform: scale(1.2) translate(3px, -3px) rotate(12deg); } 75% { transform: scale(1.2) translate(-3px, -3px) rotate(9deg); } 100% { transform: scale(1.2) translate(3px, 3px) rotate(11deg); } }
.skeleton-angry { animation: skeletonAngryShake 0.1s infinite !important; }
#minigame-overlay { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.95); z-index: 9999; flex-direction: column; justify-content: center; align-items: center; color: white; font-family: 'Courier New', Courier, monospace; }
#snake-board { background: #111; border: 2px solid #555; box-shadow: 0 0 20px rgba(0, 255, 0, 0.2); margin-top: 20px; }
#secret-reward { display: none; margin-top: 20px; padding: 20px; background: #222; border: 2px solid gold; color: gold; text-align: center; border-radius: 10px; font-size: 18px; font-weight: bold; box-shadow: 0 0 15px gold; }
@keyframes blinkDots { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } }
.blinking { animation: blinkDots 1.5s infinite; }
#undertale-board { background: black; margin-top: 10px; cursor: none; }
#boss-dialogue-box { width: 900px; height: 140px; background: black; border: 6px solid white; padding: 20px; box-sizing: border-box; font-family: 'Courier New', Courier, monospace; font-size: 26px; font-weight: bold; color: white; margin-bottom: 15px; display: flex; align-items: center; }
#undertale-ui { display: flex; justify-content: center; align-items: center; margin-top: 20px; font-family: 'Courier New', Courier, monospace; font-size: 30px; font-weight: bold; }
#hp-bar-bg { width: 300px; height: 30px; background: red; border: 3px solid white; }
#hp-bar-fill { width: 100%; height: 100%; background: yellow; transition: width 0.2s ease-out; }
#checkpoint-notification { position: fixed; bottom: -100px; right: 20px; background: black; border: 4px solid white; color: white; font-family: 'Courier New', Courier, monospace; font-size: 20px; font-weight: bold; padding: 15px 25px; display: flex; align-items: center; gap: 15px; z-index: 10001; box-shadow: 0 0 15px rgba(255, 255, 255, 0.2); transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
#checkpoint-notification.show { bottom: 20px; }
#checkpoint-notification img { width: 30px; height: 30px; image-rendering: pixelated; }