:root {
    --purple: var(--rodil-primary, #5a3e8a);
    --purple-dark: var(--rodil-primary-dark, #3b285a);
    --red: #d32f2f;
    --red-dark: #8b0000;
    --yellow: #fbc02d;
    --bg-dark: #121212;
    --black: #0a0a0a;
    --white: #f0f0f0;
    --pixel-font: 'Press Start 2P', cursive;
    --text-font: 'VT323', monospace;
    --r-title-color: var(--rodil-title-color, #fbc02d);
    --r-font-size-pixel: var(--rodil-font-size-pixel, 16px);
    --r-font-size-text: var(--rodil-font-size-text, 20px);
}

#rodil-game-wrapper {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    background-color: var(--black) !important; /* Force solid black */
    color: var(--white);
    font-family: var(--text-font);
    font-size: var(--r-font-size-text);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    user-select: none;
    z-index: 999999;
    opacity: 1 !important; /* Ensure 100% opacity */
}

/* Modificar o flicker para nao afetar a opacidade do container pai */
.crt-flicker {
    position: relative;
}

.crt-flicker::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.015);
    z-index: 9998;
    pointer-events: none;
    animation: crt-flash 0.1s infinite;
}

@keyframes crt-flash {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Full Screen Arcade Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--black); /* Opaque background */
    z-index: 2000000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0; /* Full screen */
    backdrop-filter: none;
}

.modal-content.arcade-modal-wrapper {
    max-width: none !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 60px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.arcade-title {
    font-size: 4rem !important; /* Bigger Title */
    margin-bottom: 20px !important;
}

.arcade-subtitle {
    font-size: 1.2rem !important;
    margin-bottom: 40px !important;
}

.slot-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px !important;
    max-width: 1000px;
    width: 100%;
}

.slot-box {
    height: 180px !important; /* Bigger Slots */
    border-width: 8px !important;
}

.slot-label {
    font-size: 1.8rem !important;
}

.slot-value {
    font-size: 2.5rem !important; /* Massive values */
}

.arcade-spin-btn {
    font-size: 2rem !important;
    padding: 30px 60px !important;
    margin-top: 40px !important;
}

/* Teemo Game Full Screen */
.teemo-grid {
    max-width: 800px !important;
    gap: 25px !important;
}

.scoreboard {
    max-width: 800px !important;
    padding: 20px !important;
}

.score-box {
    font-size: 2rem !important;
}

.character {
    font-size: 6rem !important; /* Bigger Teemo */
}

.modal-close {
    top: 40px;
    right: 40px;
    padding: 15px 30px !important;
    font-size: 1rem !important;
}

#initial-loader {
    position: absolute;
    inset: 0;
    background: var(--black);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    transition: opacity 0.5s ease;
}

.loader-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.sprite-frame {
    width: 150px;
    height: 150px;
    background: var(--purple-dark);
    border: 4px solid var(--white);
    box-shadow: 6px 6px 0px var(--black), inset 4px 4px 0px rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 10px;
    border-radius: 50%;
    overflow: hidden;
}

.sprite-frame::after {
    content: '';
    position: absolute;
    inset: 4px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    pointer-events: none;
    border-radius: 50%;
}

.sprite-anim {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    image-rendering: pixelated; 
    animation: play-sprite 1.2s step-end infinite;
}

@keyframes play-sprite {
    0% { background-image: url('https://whitesmoke-herring-239392.hostingersite.com/wp-content/uploads/2026/05/1.png'); }
    12.5% { background-image: url('https://whitesmoke-herring-239392.hostingersite.com/wp-content/uploads/2026/05/2.png'); }
    25% { background-image: url('https://whitesmoke-herring-239392.hostingersite.com/wp-content/uploads/2026/05/3.png'); }
    37.5% { background-image: url('https://whitesmoke-herring-239392.hostingersite.com/wp-content/uploads/2026/05/4.png'); }
    50% { background-image: url('https://whitesmoke-herring-239392.hostingersite.com/wp-content/uploads/2026/05/5.png'); }
    62.5% { background-image: url('https://whitesmoke-herring-239392.hostingersite.com/wp-content/uploads/2026/05/6.png'); }
    75% { background-image: url('https://whitesmoke-herring-239392.hostingersite.com/wp-content/uploads/2026/05/7.png'); }
    87.5% { background-image: url('https://whitesmoke-herring-239392.hostingersite.com/wp-content/uploads/2026/05/8.png'); }
    100% { background-image: url('https://whitesmoke-herring-239392.hostingersite.com/wp-content/uploads/2026/05/1.png'); }
}

.loader-logo {
    font-size: 3rem;
    color: var(--red);
    text-shadow: 4px 4px 0px var(--purple);
    animation: pulse 1.5s infinite;
    text-align: center;
}

.blink-text {
    font-size: 1.2rem;
    color: var(--yellow);
    animation: blink 1s step-end infinite;
    cursor: pointer;
    text-shadow: 2px 2px 0px var(--black);
    margin-top: 20px;
    text-align: center;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

#quick-loader {
    font-size: 1.2rem;
    color: var(--white);
    animation: pulse 0.5s infinite;
    margin-top: 20px;
}

#rodil-hero-banner {
    width: calc(100% - 80px);
    margin: 20px auto 40px auto;
    height: 350px;
    background-size: cover;
    background-position: center;
    border: 4px solid var(--purple);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5), 8px 8px 0 var(--black);
    display: none;
    position: relative;
    image-rendering: pixelated;
    border-radius: 8px;
    overflow: hidden;
}

#rodil-hero-banner.active {
    display: block;
}

#rodil-hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, var(--black));
    pointer-events: none;
}

#rodil-game-wrapper .hud-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: var(--bg-dark);
    border-bottom: 4px solid var(--purple);
    box-shadow: 0 4px 0 var(--purple-dark);
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pixel-r {
    background: var(--red);
    color: var(--white);
    font-family: var(--pixel-font);
    font-size: 1.8rem;
    padding: 10px 15px;
    border: 4px solid var(--white);
    box-shadow: 4px 4px 0px var(--black);
    text-shadow: 2px 2px 0px var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
}

.titles .brand-name {
    font-size: 1rem;
    color: var(--yellow);
    margin-bottom: 5px;
}

.titles .main-title {
    font-size: 1.5rem;
    color: var(--white);
    text-shadow: 2px 2px 0px var(--purple);
}

.menu-pixel {
    display: flex;
    gap: 15px;
}

.nav-btn {
    background: var(--bg-dark);
    border: 4px solid var(--white);
    color: var(--white);
    font-family: var(--pixel-font);
    font-size: 0.8rem;
    padding: 12px 20px;
    box-shadow: 4px 4px 0px var(--purple-dark);
    transition: all 0.1s;
}

.nav-btn:hover, .nav-btn.active {
    background: var(--purple);
    color: var(--yellow);
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--black);
}

/* Modal System */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 2000000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

.modal-content {
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    background: var(--bg-dark);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--red);
    color: white;
    border: 2px solid white;
    padding: 8px 15px;
    font-family: var(--pixel-font);
    font-size: 0.7rem;
    cursor: pointer;
    z-index: 10;
}

.modal-hero-img {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    border: 4px solid var(--purple);
    margin-bottom: 30px;
    image-rendering: pixelated;
}

.modal-tag {
    display: inline-block;
    background: var(--purple);
    color: var(--yellow);
    font-family: var(--pixel-font);
    font-size: 0.6rem;
    padding: 5px 12px;
    border: 2px solid white;
    margin-bottom: 15px;
}

.modal-header-info h1 {
    font-size: 2rem;
    color: white;
    margin-bottom: 25px;
    line-height: 1.2;
}

.modal-text-content {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--white);
}

.modal-text-content p { margin-bottom: 20px; }

.clickable-post {
    cursor: pointer !important;
}

.clickable-post:hover .side-item {
    border-color: var(--yellow);
    background: var(--purple);
}

/* Mini Games & Roulette */
.mini-games-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px;
}

.roulette-box {
    background: rgba(0,0,0,0.3);
    border: 2px solid var(--purple);
    padding: 15px;
    text-align: center;
}

.roulette-label {
    font-size: 0.6rem;
    color: #64748b;
    margin-bottom: 10px;
    font-family: var(--pixel-font);
}

.roulette-display {
    font-size: 1.5rem;
    color: var(--white);
    font-family: var(--pixel-font);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--purple-dark);
    margin-bottom: 15px;
    background: #0a0a0a;
}

.winner-glow {
    color: var(--yellow) !important;
    text-shadow: 0 0 10px var(--yellow);
    animation: win-flash 0.5s infinite;
}

@keyframes win-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pixel-btn {
    background: var(--purple);
    color: white;
    border: none;
    padding: 10px 20px;
    font-family: var(--pixel-font);
    font-size: 0.7rem;
    cursor: pointer;
    box-shadow: 4px 4px 0 var(--black);
    transition: transform 0.1s, box-shadow 0.1s;
}

.pixel-btn:hover {
    background: var(--purple-dark);
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--black);
}

.pixel-btn.spinning {
    opacity: 0.6;
    cursor: wait;
}

/* Arcade Roulette - Roleta do Caos */
.arcade-modal-wrapper {
    background: radial-gradient(circle at center, #2a1b3d 0%, var(--black) 100%) !important;
}

.scanlines {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 3px 100%;
    z-index: 5;
    pointer-events: none;
    opacity: 0.6;
}

.crt-flicker { animation: crt 0.15s infinite; }
@keyframes crt {
    0% { opacity: 0.95; }
    50% { opacity: 1; }
    100% { opacity: 0.95; }
}

.arcade-header { text-align: center; margin-bottom: 40px; }

.arcade-title {
    color: var(--red) !important;
    font-size: 2rem !important;
    text-shadow: 4px 4px 0px var(--purple);
    margin-bottom: 10px;
    animation: arcade-pulse 1.5s infinite;
}

.arcade-subtitle {
    color: var(--yellow);
    font-size: 0.7rem;
    text-shadow: 2px 2px 0px var(--black);
}

.arcade-machine {
    background: var(--bg-dark);
    border: 8px solid var(--purple);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 10px 10px 0px var(--black);
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.slot-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.slot-box {
    background: var(--black);
    border: 4px inset var(--purple-dark);
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.slot-label {
    font-family: var(--text-font);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    position: absolute;
    top: 5px;
    left: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.slot-value {
    font-size: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 0px var(--purple-dark);
    transition: all 0.1s;
}

.slot-value.spinning {
    color: var(--yellow);
    filter: blur(2px);
    transform: translateY(5px);
}

.slot-value.locked {
    color: var(--red);
    text-shadow: 2px 2px 0px var(--white);
    transform: scale(1.1);
    animation: arcade-pop 0.3s ease-out;
}

.arcade-spin-btn {
    background: var(--red) !important;
    font-size: 1.2rem !important;
    padding: 20px 40px !important;
    border: 4px solid var(--white) !important;
    box-shadow: 6px 6px 0px var(--red-dark) !important;
}

.arcade-spin-btn:active {
    transform: translate(6px, 6px);
    box-shadow: 0px 0px 0px var(--red-dark) !important;
}

.arcade-spin-btn:disabled {
    background: var(--purple-dark) !important;
    color: gray !important;
    box-shadow: 6px 6px 0px var(--black) !important;
    opacity: 1 !important;
}

/* Whack-a-Teemo Game Styles */
.teemo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    background: var(--purple-dark);
    border: 6px solid var(--purple);
    border-radius: 10px;
    padding: 15px;
    aspect-ratio: 1;
    width: 100%;
}

.hole {
    position: relative;
    background: var(--black);
    border: 4px inset #222;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.bush-front {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 35%;
    background: #2e7d32;
    border-top: 4px solid #1b5e20;
    z-index: 2;
}

.character {
    font-size: 3rem;
    line-height: 1;
    position: relative;
    z-index: 1;
    transform: translateY(100%);
    transition: transform 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.hole.up .character {
    transform: translateY(-15%);
}

.hit-text {
    position: absolute;
    font-family: var(--text-font);
    font-size: 1.5rem;
    font-weight: bold;
    pointer-events: none;
    z-index: 2000000;
    animation: floatUp 0.8s forwards;
    opacity: 0;
}

@keyframes floatUp {
    0% { transform: translateY(0) scale(0.5); opacity: 1; }
    50% { transform: translateY(-30px) scale(1.2); opacity: 1; }
    100% { transform: translateY(-50px) scale(1); opacity: 0; }
}

/* Rift Runner Game Styles */
#runner-game-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #1a1a2e, #16213e);
}

.runner-hud {
    position: absolute;
    top: 20px;
    width: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    z-index: 20;
}

.runner-score { font-family: var(--pixel-font); color: var(--yellow); font-size: 1.2rem; }
.runner-instructions { font-family: var(--text-font); color: rgba(255,255,255,0.5); font-size: 1rem; }

#runner-stage {
    position: absolute;
    bottom: 50px;
    width: 100%;
    height: 350px;
    border-bottom: 8px solid var(--purple);
}

.player-sprite {
    position: absolute;
    bottom: 0;
    left: 80px;
    font-size: 4rem;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-sprite.jumping {
    animation: jump 0.6s ease-out;
}

@keyframes jump {
    0% { bottom: 0; }
    50% { bottom: 180px; }
    100% { bottom: 0; }
}

.obstacle {
    position: absolute;
    bottom: 0;
    right: -100px;
    width: 80px;
    height: 80px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Animations for Obstacles */
.obs-rammus { animation: rammus-spin 1s linear infinite; }
.obs-box, .obs-cogumelo { animation: obs-bounce 0.5s ease-in-out infinite alternate; }
.obs-flying { bottom: 150px !important; }

@keyframes rammus-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes obs-bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-15px); }
}

.runner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 30;
}

@keyframes arcade-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes arcade-pop {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.2); }
    100% { transform: scale(1.1); opacity: 1; }
}

@media (max-width: 768px) {
    .slot-container { grid-template-columns: 1fr; }
    .arcade-title { font-size: 1.2rem !important; }
    .arcade-spin-btn { font-size: 0.8rem !important; padding: 15px 30px !important; }
    .slot-box { height: 80px; }
}

/* Launcher styles */
.game-launcher-item {
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    border: 2px solid var(--purple-dark);
    padding: 15px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.game-launcher-item:hover {
    border-color: var(--yellow);
    background: var(--purple);
    transform: scale(1.02);
}

.game-launcher-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--purple);
}

.game-launcher-info h4 {
    margin: 0;
    font-family: var(--pixel-font);
    font-size: 0.7rem;
    color: var(--white);
}

.game-launcher-info p {
    margin: 5px 0 0;
    font-size: 0.6rem;
    color: var(--slate-gray);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

#rodil-game-wrapper main {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
    position: relative;
    background: radial-gradient(circle at center, #2a1b3d 0%, var(--black) 100%);
}

#rodil-game-wrapper ::-webkit-scrollbar { width: 12px; }
#rodil-game-wrapper ::-webkit-scrollbar-track { background: var(--black); border-left: 4px solid var(--purple-dark); }
#rodil-game-wrapper ::-webkit-scrollbar-thumb { background: var(--purple); border: 2px solid var(--white); }

#content-area {
    max-width: 1500px;
    margin: 0 auto;
    transition: opacity 0.2s, transform 0.2s;
}

.glitch-transition {
    opacity: 0;
    transform: scale(0.98);
    filter: grayscale(100%) contrast(200%);
}

.pixel-box {
    background: rgba(0, 0, 0, 0.7);
    border: 4px solid var(--purple);
    padding: 25px;
    box-shadow: 8px 8px 0px var(--bg-dark);
    margin-bottom: 30px;
    height: 100%;
}

.pixel-box.display-grid .widget-content-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.pixel-box.display-grid .side-item, 
.pixel-box.display-grid .quest-card {
    flex-direction: column;
    height: auto;
    text-align: center;
}

.pixel-box.display-grid .side-thumb,
.pixel-box.display-grid .quest-thumb {
    width: 100%;
    height: 100px;
    border-right: none;
    border-bottom: 2px solid var(--purple);
    font-size: 2rem;
}

.pixel-box.display-grid .side-info,
.pixel-box.display-grid .quest-info {
    padding: 10px;
}

.pixel-box.display-grid .quest-title {
    font-size: 0.7rem;
}

.pixel-box h2 {
    color: var(--r-title-color);
    margin-bottom: 20px;
    font-size: var(--r-font-size-pixel);
    text-shadow: 2px 2px 0px var(--black);
    border-bottom: 4px dashed var(--purple-dark);
    padding-bottom: 10px;
}

.home-grid {
    display: grid;
    grid-template-columns: var(--rodil-layout-grid, 25% 1fr 25%);
    gap: 30px;
    align-items: stretch;
}

.side-item {
    background: var(--purple-dark);
    border: 2px solid var(--white);
    margin-bottom: 15px;
    display: flex;
    align-items: stretch; 
    height: 100px; 
    transition: transform 0.2s;
    overflow: hidden; 
}

.side-item:hover {
    transform: translateX(5px);
    border-color: var(--yellow);
}

.side-thumb {
    width: 100px; 
    background: var(--bg-dark);
    border-right: 2px solid var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem; 
    flex-shrink: 0; 
}

.side-info {
    padding: 10px 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; 
}

.side-info h4 {
    font-family: var(--pixel-font);
    font-size: 0.65rem;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.4;
}

.side-info p {
    font-family: var(--pixel-font);
    font-size: 0.6rem;
    color: var(--yellow);
}

.quest-card {
    display: flex;
    background: var(--bg-dark);
    border: 4px solid var(--purple);
    margin-bottom: 20px;
    height: 140px; 
    transition: transform 0.2s;
    box-shadow: 4px 4px 0px var(--black);
    overflow: hidden;
}

.quest-card:hover {
    transform: scale(1.02);
    border-color: var(--yellow);
}

.quest-thumb {
    width: 240px; 
    background: var(--purple-dark);
    border-right: 4px solid var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--pixel-font);
    font-size: 4rem; 
    color: rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.quest-info {
    padding: 15px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; 
}

.quest-title {
    font-family: var(--pixel-font);
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--white);
    margin-bottom: 12px;
}

.quest-meta {
    color: var(--yellow);
    font-size: 1.1rem;
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.badge-item {
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--black) 100%);
    border: 4px solid var(--purple);
    padding: 25px 15px;
    text-align: center;
    position: relative;
    box-shadow: 6px 6px 0px var(--black);
    border-radius: 10px;
    transition: transform 0.2s, border-color 0.2s;
}

.badge-item:hover {
    transform: translateY(-5px);
    border-color: var(--yellow);
}

.badge-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    filter: drop-shadow(4px 4px 0px var(--black));
    display: inline-block;
    animation: pulse 2s infinite;
}

.badge-value {
    font-family: var(--pixel-font);
    font-size: 1.5rem;
    color: var(--yellow);
    text-shadow: 2px 2px 0px var(--black);
    margin-bottom: 8px;
}

.badge-label {
    font-family: var(--pixel-font);
    font-size: 0.7rem;
    color: var(--white);
    letter-spacing: 1px;
}

.lore-card {
    display: flex;
    gap: 25px;
    align-items: center;
    background: var(--bg-dark);
    border: 4px solid var(--purple-dark);
    padding: 25px;
}

.lore-avatar {
    font-size: 5rem;
    filter: drop-shadow(4px 4px 0px var(--black));
}

.lore-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--white);
}

.guild-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.social-block {
    background: var(--bg-dark);
    border: 4px solid var(--purple);
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 6px 6px 0px var(--black);
}

.social-block:hover {
    transform: translateY(-8px);
    border-color: var(--yellow);
    box-shadow: 8px 14px 0px rgba(0,0,0,0.5);
}

.social-block .social-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    filter: drop-shadow(4px 4px 0px var(--black));
}

.social-block .social-name {
    font-family: var(--pixel-font);
    font-size: 1.2rem;
    color: var(--yellow);
    margin-bottom: 10px;
}

.social-block .social-user {
    font-size: 1rem;
    color: var(--white);
}

.business-block {
    background: linear-gradient(90deg, var(--purple-dark) 0%, var(--black) 100%);
    border: 4px solid var(--yellow);
    padding: 40px;
    text-align: center;
    box-shadow: 8px 8px 0px var(--black);
    position: relative;
}

.business-block h2 {
    font-size: 1.5rem !important;
    border-bottom: none !important;
    margin-bottom: 10px !important;
}

.business-email {
    display: inline-block;
    background: var(--black);
    border: 4px dashed var(--white);
    padding: 15px 30px;
    font-family: var(--pixel-font);
    font-size: 1.2rem;
    color: var(--yellow);
    margin-top: 20px;
}

#rodil-game-wrapper .hud-bottom {
    background: var(--bg-dark);
    border-top: 4px solid var(--purple);
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--pixel-font);
    font-size: 0.7rem;
    box-shadow: 0 -4px 0 var(--purple-dark);
    z-index: 100;
}

.status-bars {
    display: flex;
    gap: 30px;
}

.bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bar-fill {
    width: 150px;
    height: 15px;
    border: 2px solid var(--white);
    background: var(--black);
    padding: 2px;
}

.hp-inner { background: var(--red); height: 100%; width: 100%; animation: pulse-hp 3s infinite; }
.mp-inner { background: #1e88e5; height: 100%; width: 80%; }

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Live Customizer Styles */
#rodil-customizer-trigger {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--purple);
    border: 3px solid var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000000;
    box-shadow: 0 0 15px var(--purple-dark);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#rodil-customizer-trigger:hover {
    transform: rotate(90deg) scale(1.1);
}

#rodil-customizer-panel {
    position: fixed;
    bottom: 140px;
    right: 20px;
    width: 320px;
    background: var(--bg-dark);
    border: 4px solid var(--purple);
    padding: 20px;
    z-index: 1000001;
    display: none;
    box-shadow: 10px 10px 0 var(--black);
    font-family: var(--pixel-font);
    max-height: 70vh;
    overflow-y: auto;
}

#rodil-customizer-panel.active {
    display: block;
    animation: slideUp 0.3s ease-out;
}

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

#rodil-customizer-panel h3 {
    font-size: 0.8rem;
    color: var(--yellow);
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px dashed var(--purple);
    padding-bottom: 10px;
}

.customizer-group {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.customizer-group label {
    display: block;
    font-size: 0.55rem;
    color: var(--white);
    margin-bottom: 10px;
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.preset-btn {
    width: 100%;
    aspect-ratio: 1;
    border: 2px solid var(--white);
    cursor: pointer;
    transition: transform 0.1s;
}

.preset-btn:hover { transform: scale(1.1); border-color: var(--yellow); }

.save-live-btn {
    width: 100%;
    background: var(--purple);
    color: var(--white);
    border: 3px solid var(--white);
    padding: 10px;
    font-family: var(--pixel-font);
    font-size: 0.7rem;
    cursor: pointer;
    margin-top: 10px;
}

.save-live-btn:hover { background: var(--yellow); color: var(--black); }

#customizer-status {
    font-size: 0.5rem;
    text-align: center;
    margin-top: 10px;
    color: var(--yellow);
}


@media (max-width: 1024px) {
    .home-grid { grid-template-columns: 1fr; }
    .side-item { height: 120px; }
    .side-thumb { width: 120px; font-size: 3rem; }
}

@media (max-width: 768px) {
    .loader-logo { font-size: 2rem; }
    #rodil-game-wrapper .hud-top { flex-direction: column; gap: 15px; }
    .menu-pixel { flex-wrap: wrap; justify-content: center; }
    .nav-btn { padding: 10px; font-size: 0.7rem; }
    
    .quest-card, .side-item { 
        flex-direction: column; 
        height: auto; 
    }
    .quest-thumb, .side-thumb { 
        width: 100%; 
        height: 150px; 
        border-right: none; 
        border-bottom: 4px solid var(--purple); 
    }
    .side-thumb { border-bottom: 2px solid var(--purple); height: 100px; }
    .lore-card { flex-direction: column; text-align: center; }
    .business-email { font-size: 0.8rem; padding: 15px 10px; }
    
    .status-bars { display: none; }
}
