        .menu-button{
            width: 288px;
            height: 54px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            background: #fff;
            border: 2px solid #e0e0e0;
            box-shadow: 0 2px 8px rgba(0,0,0,0.10);
            cursor: pointer;
            padding-right: 20px;
            outline: none;
            z-index: 101;
            transition: background 0.2s, box-shadow 0.2s;
            position: right;
            margin-left: auto;
            margin-right: auto;
        
        }
        .menu-button:focus, .menu-button:hover {
            background: #f3f3f3;
            box-shadow: 0 4px 16px rgba(0,0,0,0.16);
        }
        #menuHamburger {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            width: 144px;
            height: 54px;
            background: #fff;
            border: 2px solid #e0e0e0;
            box-shadow: 0 2px 8px rgba(0,0,0,0.10);
            cursor: pointer;
            margin-left: auto;
            margin-right: 0;
            padding-right: 0;
            outline: none;
            z-index: 101;
            transition: background 0.2s, box-shadow 0.2s;
        }
        #menuHamburger:focus, #menuHamburger:hover {
            background: #f3f3f3;
            box-shadow: 0 4px 16px rgba(0,0,0,0.16);
        }

        #godText{
            font-size: 2em;
            margin-top: 10px;
            color: #f9ba4d;
            border: 3px solid #f9ba4d;
            border-radius: 12px;
            padding: 12px 24px;
            background: rgba(0,0,0,0.6);
            box-shadow: 0 2px 8px rgba(0,0,0,0.3);
            display: block;
            width: 100%;
            max-width: 730px;
            text-align: left;
            word-break: break-word;
        }
        .slidecontainer {
          width: 100%;
        }
          
          .aspectSlider {
            -webkit-appearance: none;
            width: 15%;
            height: 259px;
            background: #d3d3d3;
            outline: none;
            opacity: 0.7;
            -webkit-transition: .2s;
            transition: opacity .2s;
          }
          
          .aspectSlider:hover {
            opacity: 1;
          }
          
          .aspectSlider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 50px;
            height: 25px;
            background: #f9ba4d;
            border-radius: 12px;
            cursor: pointer;
          }
          
          .aspectSlider::-moz-range-thumb {
            width: 25px;
            height: 25px;
            background: #04AA6D;
            cursor: pointer;
          }
        #websiteText{
            font-size: 2em;
            margin-top: 10px;
            color: #f9d936;
            border: 3px solid #ff6919;
            border-radius: 12px;
            padding: 12px 24px;
            background: rgba(0,0,0,2.6);
            box-shadow: 0 2px 8px rgba(0,0,0,0.3);
        }
        .role-buttons.glow-gold button {
            animation-name: gold-pulse;
            animation-timing-function: ease-in-out;
            animation-iteration-count: infinite;
            animation-duration: 1.5s;
            border-color: #f9ba4d;
            z-index: 1;
        }

        /* Dark mode purple glow for role buttons */
        body.dark-mode .role-buttons.glow-gold button {
            animation-name: neon-pulse;
            animation-timing-function: ease-in-out;
            animation-iteration-count: infinite;
            animation-duration: 6s;
            border-color: #ff00ff;
            z-index: 1;
        }
        
        #logo {
            display: block;
            margin: 10px auto;
            margin-bottom: 30px;
            max-width: 500px;
            height: auto;
        }
        body {
            position: relative;
            background-color: #000;
            color: #fff;
            font-family: Arial, sans-serif;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding-top: 20px;
            background-size: cover;
            background-position: center 70%;
            background-repeat: no-repeat;
            background-attachment: fixed;
            min-height: 100vh;
            overflow-x: hidden;
            transition: background-image 0.5s ease-in-out;
        }
        
        body.single-god-mode {
            background-image: url('../custom_assets/rg1d.gif');
        }
        
        body.pentagod-mode {
            background-image: url('../custom_assets/rg5d.gif');
        }
        body.deca-mode {
            background-image: url('../custom_assets/rg5d.gif');
        }
        body.trigod-mode {
            background-image: url('../custom_assets/rg3dv2.gif');
        }
        body::before {
            content: "";
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0,0,0,0.5); /* Black tint, 0.5 opacity */
            pointer-events: none;
            z-index: 0;
        }
        .content {
            position: relative;
            z-index: 1;
            width: fit-content;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        h1 {
            font-size: 2.5em;
        }
        .role-buttons {
            margin: -2px 0;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
        }
        button {
            background-color: rgb(15 11 35);
            color: #fff;
            border: none;
            padding: 15px 30px;
            margin: 0 10px 10px;
            font-size: 1.6em;
            cursor: pointer;
            border-radius: 5px;
            box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
            transition: all 0.1s;
        }
        
        /* Make buttons bigger on larger screens */
        @media (min-width: 768px) {
            button {
                padding: 12px 10px;
                font-size: 1.8em;
                margin: 0 15px 15px;
            }
            
            .singleGodButton-block button {
                padding: 21px 42px;
                font-size: 1.67em;
                margin: 0 17px 17px;
            }
        }
        
        /* Even bigger on desktop */
        @media (min-width: 1024px) {
            .singleGodButton-block button {
                padding: .2em .3em;
                font-size: 1.84em;
                margin: 0 7px 16px;
            }
        }
        button[tip] {
            position: sticky;
        }

        button[tooltip] {
            position: relative;
            z-index: 100;
        }

        button[tooltip]:hover,
        button[tooltip].pressed,
        button[tooltip]:focus {
            z-index: 1000;
        }

        button[tooltip]::after {
            z-index: 9999;
        }

        button[tooltip]:hover::after {
            content: attr(tooltip);
            position: absolute;
            left: 50%;
            top: 120%;
            transform: translateX(-50%);
            background: rgb(15, 11, 35);
            color: #fff8c0;
            padding: 12px 20px;
            border-radius: 8px;
            font-size: 1.1em;
            white-space: nowrap;
            pointer-events: none;
            box-shadow: 0 2px 8px rgba(0,0,0,0.4);
        }
        .pentaGodNames {
            text-align: center;
            font-size: 1.9em;
            color: #f9ba4d;
            font-weight: bold;
            margin-bottom: 8px;
            margin-top: 0;
            text-shadow: 1px 1px 4px #000, 0 0 8px #f9ba4d44;
            background: rgba(0,0,0,0.32);
            border-radius: 8px;
            padding: 4px 10px;
            display: block;
            width: 100%;
            max-width: 270px;
            box-sizing: border-box;
            position: relative;
            z-index: 2;
        }

        .godTextSingleBottom{
            margin-top: 10px;
            margin-bottom: -1.8em;
            background: rgba(0,0,0,0.45);
            font-size: 1.1em;
            color: #f9ba4d;
            font-weight: bold;
            text-shadow: 1px 1px 4px #000, 0 0 8px #f9ba4d44;
            border-radius: 8px;
            padding: 8px 10px;
            position: relative;
            z-index: 2;
            width: 420px;
            max-width: 100vw;
            display: flex;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
            min-height: 55px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            flex-shrink: 0;
            flex-grow: 0;
            resize: none;
            line-height: 1.2;
            word-wrap: normal;
            word-break: keep-all;
            contain: layout style;
        }

        .pentaGodNames.bottom {
            margin-top: -65px;
            margin-bottom: 0;
            background: rgba(0,0,0,0.5);
            font-size: 1.1em;
            color: #f9ba4d;
            border-radius: 8px;
            padding: 8px 10px;
            position: relative;
            z-index: 2;
            min-height: 2.5em;
            height: 65px;
            width: 100%;
            max-width: 420px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }
        .pentaGodNames.bottom.show {
            opacity: 1;
            visibility: visible;
        }
        #damageRatioButton:hover,
        button#damageRatioButton:hover {
            background-color: #555 !important;
        }
        
        #damageRatioButton.pressed,
        button#damageRatioButton.pressed {
            background-color: #fff8c0 !important;
            transform: translateY(4px) !important;
        }
        
        #aspectButton,
        #randomRoleButton {
            background-color: #222;
            color:#f9ba4d;
            font-weight: bold;
            border-color: #222;
            transition: background 0.2s, color 0.2s;
        }

        #aspectButton.pressed,#damageRatioButton.pressed,
        #randomRoleButton.pressed {
            background-color: #f9ba4d;
            color: #222;
            border: 22px solid #f9ba4d;
        }
        button:hover {
            background-color: #f1da05;
        }
        button.pressed {
            background-color: #222;
            box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.7);
            transform: translateY(2px);
        }
        #aspectGroup {
            position: relative;
            display: flex;
            align-items: center;
        }

        #aspectButtonStyle {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        #aspectControls {
            position: absolute;
            top: 38%;
            left: 100%;
            transform: translateY(-50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            max-width: 0;
            overflow: hidden;
            transition: max-width 0.3s ease-out, opacity 0.3s ease-out;
            opacity: 0;
            z-index: 1000;
            background: rgba(16, 12, 21, 0.95);
            border-radius: 8px;
            padding: 8px;
            border: 1px solid #f9ba4d;
            margin-left: 8px;
        }
        
        #aspectControls.show {
            max-width: 300px;
            opacity: 1;
        }
        #artlogo {
            border-radius: 100px;
            box-shadow: 
                0 15px 45px rgba(0, 0, 0, 0.8),
                0 25px 75px rgba(0, 0, 0, 0.6),
                0 35px 105px rgba(0, 0, 0, 0.4),
                0 45px 135px rgba(0, 0, 0, 0.2),
                inset 0 4px 8px rgba(255, 255, 255, 0.3),
                inset 0 -2px 4px rgba(0, 0, 0, 0.2);
            transform: perspective(800px) rotateY(-15deg) rotateX(10deg) translateZ(20px);
            transition: transform 0.4s ease, box-shadow 0.4s ease;
            border: 4px solid rgba(255, 255, 255, 0.2);
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.2));
            filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
        }
        
        #artlogo:hover {
            transform: perspective(1800px) rotateY(-8deg) rotateX(5deg) translateZ(40px) scale(1.1);
            box-shadow: 
                0 25px 60px rgba(0, 0, 0, 0.9),
                0 40px 100px rgba(0, 0, 0, 0.7),
                0 55px 140px rgba(0, 0, 0, 0.5),
                0 70px 180px rgba(0, 0, 0, 0.3),
                inset 0 6px 12px rgba(255, 255, 255, 0.4),
                inset 0 -3px 6px rgba(0, 0, 0, 0.3);
            filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.7));
        }

        @keyframes role-icon-spin {
            100% { transform: rotate(360deg); }
        }
        .role-icon-spin {
            animation-name: role-icon-spin;
            animation-timing-function: linear;
            animation-iteration-count: infinite;
        }

        @keyframes role-icon-spin-slow {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        .role-icon-spin-slow {
            animation-name: role-icon-spin-slow;
            animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); /* ease-out */
            animation-iteration-count: 1;
            animation-fill-mode: forwards;
        }

        @keyframes role-icon-flip-y {
            0% { transform: rotateY(0deg); }
            100% { transform: rotateY(360deg); }
        }
        .role-icon-flip-y {
            animation-name: role-icon-flip-y;
            animation-timing-function: linear;
            animation-iteration-count: infinite;
        }

        @keyframes role-icon-flip-y-slow {
            0% { transform: rotateY(0deg); }
            100% { transform: rotateY(360deg); }
        }
        .role-icon-flip-y-slow {
            animation-name: role-icon-flip-y-slow;
            animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); /* ease-out */
            animation-iteration-count: 1;
            animation-fill-mode: forwards;
        }

        @keyframes flag-wave {
            0% { transform: rotate(0deg) scale(1); }
            25% { transform: rotate(25deg) scale(1.4); }
            50% { transform: rotate(0deg) scale(1); }
            75% { transform: rotate(-25deg) scale(1.4); }
            100% { transform: rotate(0deg) scale(1); }
        }

        @keyframes flag-wave-stop {
            0% { transform: rotate(var(--current-rotate, 0deg)) scale(var(--current-scale, 1)); }
            100% { transform: rotate(0deg) scale(1); }
        }

        @keyframes neon-pulse {
            0% { 
                filter: drop-shadow(0 0 8px #ff00ff) drop-shadow(0 0 12px #ff00ff);
            }
            25% { 
                filter: drop-shadow(0 0 12px #ff00ff) drop-shadow(0 0 16px #ff00ff) drop-shadow(0 0 18px #ff00ff);
            }
            50% { 
                filter: drop-shadow(0 0 8px #ff00ff) drop-shadow(0 0 12px #ff00ff);
            }
            75% { 
                filter: drop-shadow(0 0 12px #ff00ff) drop-shadow(0 0 16px #ff00ff) drop-shadow(0 0 18px #ff00ff);
            }
            100% { 
                filter: drop-shadow(0 0 8px #ff00ff) drop-shadow(0 0 12px #ff00ff);
            }
        }

        @keyframes lime-pulse {
            0% { 
                filter: drop-shadow(0 0 8px lime) drop-shadow(0 0 12px lime);
            }
            25% { 
                filter: drop-shadow(0 0 12px lime) drop-shadow(0 0 16px lime) drop-shadow(0 0 18px lime);
            }
            50% { 
                filter: drop-shadow(0 0 8px lime) drop-shadow(0 0 12px lime);
            }
            75% { 
                filter: drop-shadow(0 0 12px lime) drop-shadow(0 0 16px lime) drop-shadow(0 0 18px lime);
            }
            100% { 
                filter: drop-shadow(0 0 8px lime) drop-shadow(0 0 12px lime);
            }
        }

        @keyframes gold-pulse {
            0% { 
                box-shadow: 0 0 3px 4px #f9ba4d, 0 1px 10px 2px #fff8c0;
            }
            25% { 
                box-shadow: 0 0 6px 6px #f9ba4d, 0 2px 15px 4px #fff8c0, 0 0 20px 6px #f9ba4d;
            }
            50% { 
                box-shadow: 0 0 3px 4px #f9ba4d, 0 1px 10px 2px #fff8c0;
            }
            75% { 
                box-shadow: 0 0 6px 6px #f9ba4d, 0 2px 15px 4px #fff8c0, 0 0 20px 6px #f9ba4d;
            }
            100% { 
                box-shadow: 0 0 3px 4px #f9ba4d, 0 1px 10px 2px #fff8c0;
            }
        }

        .flag-wave {
            animation-name: flag-wave;
            animation-timing-function: ease-in-out;
            animation-iteration-count: infinite;
            animation-duration: 2s;
        }

        .flag-wave-stop {
            animation-name: flag-wave-stop;
            animation-timing-function: ease-out;
            animation-iteration-count: 1;
            animation-duration: 0.5s;
            animation-fill-mode: forwards;
        }

        .neon-pulse {
            animation-name: neon-pulse;
            animation-timing-function: ease-in-out;
            animation-iteration-count: infinite;
            animation-duration: 1.5s;
        }
       
        @media (max-width: 1200px) {
            .singleGodBlock {
                gap: 18px;
            }
            .godDisplay {
                max-width: 180px;
                width: 180px;
                height: 640px;
            }
            .godDisplay img {
                max-width: 120px;
            }
            .godDisplay div {
                font-size: 1.1em;
            }
        }
        @media (max-width: 900px) {
            .singleGodBlock {
                flex-direction: column;
                align-items: center;
                height: auto;
                gap: 0;
                padding: 20px 0 12px 0;
            }
            .godDisplay {
                max-width: 90vw;
                width: 90vw;
                margin-bottom: 15px;
                transform: none !important;
                height: auto;
            }
        }

        .tri-individual-btn{
            background-color: #44444400;
            color: #fff;
            border: none;
            padding: 0;
            margin-top: 35px;
            font-size: 1.2em;
            cursor: pointer;
            border-radius: 5px;
            box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
            transition: all 0.1s;
            width: 100%;
            max-width: 120px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .tri-individual-btn img {
            height: 5.20em;
            width: auto;
        }
        .individual-role-btn {
            background-color: #44444400;
            color: #fff;
            border: none;
            padding: 8px 16px;
            margin-top: 35px;
            font-size: 1.2em;
            cursor: pointer;
            border-radius: 5px;
            box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
            transition: all 0.1s;
            width: 100%;
            max-width: 120px;
        }


        

        
        @media (max-width: 1200px) {
            .singleGodBlock {
                gap: 18px;
            }
            .godDisplayPenta {
                max-width: 180px;
                width: 180px;
                height: 320px;
            }
            .godDisplayPenta img {
                max-width: 120px;
            }
            .godDisplayPenta div {
                font-size: 1.1em;
            }
            .godDisplayTri {
                max-width: 220px;
                width: 220px;
                height: 400px;
                margin: 0 15px;
            }
            .godDisplayTri img {
                max-width: 160px;
            }
            .godDisplayTri div {
                font-size: 1.1em;
            }
        }

        @media (max-width: 900px) {
            .singleGodBlock {
                flex-direction: column;
                align-items: center;
                height: auto;
                gap: 0;
                padding: 20px 0 12px 0;
            }
            .godDisplayPenta {
                max-width: 90vw;
                width: 90vw;
                margin-bottom: 15px;
                transform: none !important;
                height: auto;
            }
            .godDisplayTri {
                max-width: 90vw;
                width: 90vw;
                margin-bottom: 15px;
                transform: none !important;
                height: auto;
            }
        }

     


        

        @media (min-width: 768px) {
            .singleGodButton-block button,
            .pentaGodButton-block button {
                padding: 21px 42px;
                font-size: 1.67em;
                margin: 0 17px 17px;
            }
        }
        @media (min-width: 1024px) {
            .singleGodButton-block button,
            .pentaGodButton-block button {
                padding: .2em .3em;
                font-size: 1.84em;
                margin: 0 7px 16px;
            }
        }

        .fade-out {
            opacity: 0 !important;
            pointer-events: none !important;
            position: absolute !important;
            width: 0 !important;
            height: 0 !important;
            overflow: hidden !important;
        }

        #damageRatioButton {
            background-color: #222;
            color: #f9ba4d;
            font-weight: bold;
            border-color: #222;
            transition: background 0.2s, color 0.2s;
            margin-top: -1%;
        }

        #damageRatioButton:hover,
        button#damageRatioButton:hover {
            background-color: #555 !important;
        }
        #damageRatioButton.pressed,
        button#damageRatioButton.pressed {
            background-color: #fff8c0 !important;
            transform: translateY(4px) !important;
        }

        /* Pressed state for aspect and randomRoleButton for consistency */
        #aspectButton.pressed,#damageRatioButton.pressed,
        #randomRoleButton.pressed {
            background-color: #f9ba4d;
            color: #222;
            border: 22px solid #f9ba4d;
        }

        #damageRatioButton img {
            transition: filter 2.5s cubic-bezier(0.4, 0.0, 0.2, 1);
        }
        #damageRatioButton.pressed img {
            animation-name: lime-pulse;
            animation-timing-function: ease-in-out;
            animation-iteration-count: infinite;
            animation-duration: 3.5s;
        }

        body.dark-mode #damageRatioButton {
            background-color: #333 !important;
            color: #e0e0e0 !important;
            border-color: #555 !important;
        }
        body.dark-mode #damageRatioButton.pressed {
            background-color: #888 !important;
            color: #333 !important;
            border: 2px solid #666 !important;
        }

        .menu-bar {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 6.5vw;
            background: linear-gradient(360deg, #a97c1b 0%, #f9ba4d 100%);
            color: #f9ba4d;
            box-shadow: 0 2px 8px rgba(0,0,0,0.58);
            z-index: 100;
            gap: 18px;
            padding-left: 32px;
            padding-right: 32px;
        }

        /* Dark mode toggle button */
        .dark-mode-btn {
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            width: 75px;
            height: 75px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-left: 7px;
            margin-right: 40px;
            padding: 0;
            overflow: hidden;
            position: relative;
            z-index: 1001;
        }

        /* When aspect controls are shown, adjust dark mode button position */
        #aspectControls.show ~ .dark-mode-btn,
        #aspectGroup:has(#aspectControls.show) ~ .dark-mode-btn {
            margin-left: 240px; /* Reduced from 320px by 25% (320 * 0.75 = 240) */
        }

        /* Alternative approach for browsers that don't support :has() */
        .menu-bar.aspect-expanded .dark-mode-btn {
            margin-left: 240px; /* Reduced from 320px by 25% (320 * 0.75 = 240) */
        }

        .dark-mode-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            border-color: rgba(255, 255, 255, 0.5);
            transform: scale(1.1);
        }

        .dark-mode-btn.pressed {
            background: rgba(255, 255, 255, 0.4);
            transform: scale(0.95);
        }

        .dark-mode-icon {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .day-icon {
            display: none;
        }

        .night-icon {
            display: block;
        }

        body.dark-mode .day-icon {
            display: block;
        }

        body.dark-mode .night-icon {
            display: none;
        }

        /* Dark mode styles */
        body.dark-mode {
            background-color: #1a1a1a;
        }

        body.dark-mode::before {
            background: rgba(0,0,0,0.7);
        }

        body.dark-mode .menu-bar {
            background: linear-gradient(360deg, #2a2a2a 0%, #404040 100%);
            color: #e0e0e0;
        }

        body.dark-mode .sub-menu-bar {
            background: linear-gradient(180deg, #2a2a2a 0%, #404040 100%);
            color: #e0e0e0;
        }

        body.dark-mode button {
            color: #e0e0e0;
        }

        body.dark-mode button:hover {
            background-color: #555;
        }

        body.dark-mode .mode-btn.active {
            background-color: #666;
            color: #fff;
        }

        body.dark-mode .toggle-btn {
            background: linear-gradient(90deg, #666 0%, #444 100%) !important;
            color: #fff !important;
            border: 2px solid #888 !important;
        }

        body.dark-mode .toggle-btn.pressed {
            background: #888 !important;
            color: #333 !important;
            border: 2px solid #666 !important;
        }

        body.dark-mode .singleRandomRoleGodButton,
        body.dark-mode .random-inRole-btn {
            background: linear-gradient(90deg, #666 0%, #444 100%) !important;
            color: #fff !important;
            border: 2px solid #888 !important;
        }

        body.dark-mode .singleRandomRoleGodButton.pressed,
        body.dark-mode .random-inRole-btn.pressed {
            background: #888 !important;
            color: #333 !important;
            border: 2px solid #666 !important;
        }

        body.dark-mode .singleGodBlock,
        body.dark-mode .pentaGodBlock {
            background: rgba(40, 40, 40, 0.68);
        }

        body.dark-mode .pentaGodNames {
            color: #e0e0e0;
            background: rgba(0,0,0,0.6);
        }

        body.dark-mode #godTextSingle {
            color: #e0e0e0;
        }

        body.dark-mode .individual-role-btn {
            background-color: rgba(60, 60, 60, 0.0);
            color: #e0e0e0;
        }

        body.dark-mode .individual-role-btn:hover {
            background-color: rgba(80, 80, 80, 0.8);
        }

        body.dark-mode .individual-role-btn.pressed {
            background-color: rgba(40, 40, 40, 0.8);
        }

        .sub-menu-bar {
            width: 100vw;
            min-width: 100vw;
            min-height: 14vw;
            background: linear-gradient(180deg, #a97c1b 0%, #f9ba4d 100%);
            color: #fff8c0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            flex-wrap: wrap;
            padding: 10px 24px 32px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.0);
            border-radius: 0 0 18px 18px;
            z-index: 99;
            font-size: 1.05 em;
            gap: 10px;
            transition: transform 0.316s cubic-bezier(0.4, 0.0, 0.2, 1), 
                        opacity 0.316s cubic-bezier(0.4, 0.0, 0.2, 1), 
                        height 0.316s cubic-bezier(0.4, 0.0, 0.2, 1),
                        min-height 0.316s cubic-bezier(0.4, 0.0, 0.2, 1);
        }

        .sub-menu-bar.mode-fade-in,
        .sub-menu-bar.slide-down {
            opacity: 1;
            transform: translateY(0);
        }

        .role-btn img {
            height: 1.8em;
            vertical-align: middle;
            margin-right: 8px;
        }

        #menu-logo {
            height: 5.8vw;
            width: auto;
            max-width: 300px;
            border: 2px;
            padding: 20px;
            border-radius: 25px;
        }

        .singleGodButton-block, .pentaGodButton-block {
            margin-left: 0;
            margin-right: 0;
        }

        .singleGodButton-block .role-buttons {
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
        }

        .feature-buttons {
            display: flex;
            flex-direction: column;
            gap: 10px;
            align-items: stretch;
        }

        @media (max-width: 600px) {
          .feature-buttons {
            flex-direction: column;
            gap: 7px;
            overflow-x: auto;
            width: 100%;
          }
        }

        .feature-buttons button {
            padding: 4px 10px;
            font-size: .75 em;
            margin: 0 3px 3px;
            background-color: #444;
            color: #fff;
            border: none;
            border-radius: 5px;
            box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
            transition: all 0.1s;
        }
        .feature-buttons button img {
            height: 1.2em;
            vertical-align: middle;
            margin-right: 5px;
        }

        @media (max-width: 900px) {
            .feature-buttons button {
                padding: 4px 10px;
                font-size: 0.95em;
                margin: 0 3px 3px;
            }
            .feature-buttons button img {
                height: 1.2em;
                margin-right: 5px;
            }
        }

        .singleRandomRoleGodButton, .random-inRole-btn {
            background-color: linear-gradient(90deg, #f9ba4d 0%, #a97c1b 100%) !important;
            color: #a97c1b;
            border: none;
            padding: 15px 30px;
            margin: 0 10px 10px;
            font-size: 1.6em;
            cursor: pointer;
            border-radius: 5px;
            box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
            transition: all 0.1s;
        }
        .singleRandomRoleGodButton img, .random-inRole-btn img {
            height: 1.8em;
            vertical-align: middle;
            margin-right: 8px;
        }
        @media (min-width: 768px) {
            .singleRandomRoleGodButton, .random-inRole-btn {
                padding: 20px 40px;
                font-size: 1.8em;
                margin: 0 15px 15px;
            }
        }
        @media (min-width: 1024px) {
            .singleRandomRoleGodButton, .random-inRole-btn {
                padding: 25px 50px;
                font-size: 1.84em;
                margin: 0 21px 21px;
            }
        }
        @media (max-width: 900px) {
          .feature-buttons button,
          .singleRandomRoleGodButton,
          .random-inRole-btn {
            padding: 4px 10px;
            font-size: 0.95em;
            margin: 0 3px 3px;
          }
          .feature-buttons button img,
          .singleRandomRoleGodButton img,
          .random-inRole-btn img {
            height: 1.2em;
            margin-right: 5px;
          }
        }

        .toolButtons button,
        .toolButtons .toggle-btn,
        .toolButtons .random-inRole-btn,
        .toolButtons .singleRandomRoleGodButton {
            background: linear-gradient(90deg, #f9ba4d 0%, #a97c1b 100%) !important;
            color: #222 !important;
            border: 2px solid #fff8c0 !important;
            font-weight: bold !important;
            box-shadow: 0 2px 8px rgba(249,186,77,0.18), 0 0 12px 2px rgba(255,255,180,0.10) !important;
            border-radius: 5px;
            padding: 15px 30px;
            margin: 0 10px 10px;
            font-size: 1.6em;
            cursor: pointer;
            transition: background 0.2s, color 0.2s, box-shadow 0.2s !important;
            display: inline-block;
        }
        .toolButtons button img,
        .toolButtons .toggle-btn img,
        .toolButtons .random-inRole-btn img,
        .toolButtons .singleRandomRoleGodButton img {
            height: 1.8em;
            vertical-align: middle;
            margin-right: 8px;
        }
        .toolButtons span,
        .toolButtons .damageTriRatioText,
        .toolButtons #damageRatioText {
            font-size: 1em;
            font-weight: bold;
            color: inherit;
            vertical-align: middle;
        }

        #godDisplay {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            max-width: 2000px;
            width: 100%;
            height: 460px; /* Fixed height to stabilize the box */
            border: 2px solid #333;
            border-radius: 20px;
            overflow:inherit; /* Ensures image stays within bounds */
            background-color: rgba(16, 12, 21, 1); /* Dark brown, temple stone-like */
        }
        #godImage {
            max-width: 275px;
            border-radius: 20px;
            box-shadow:
                0 0 39px 8px rgba(249,186,77,0.15),    /* golden glow */
                0 8px 32px 0 rgba(0,0,0,0.7),       /* deep shadow */
                0 25px 40px 8px rgba(255,255,180,0.18);/* subtle halo */
            transition: transform 0.3s ease;
        }
       
        #author-notes {
            color: #fff;      /* Or your preferred color */
            text-decoration: none;
        }
        
        #author-notes {
            color: #fff;
            text-decoration: none;
        }
        #aspectInputBox {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            width: 100%;
        }

        #aspectSlider {
            width: 100%;
            height: 10px;
            accent-color: #f9ba4d;
            vertical-align: middle;
            margin-right: 4px;
            border-radius: 4px;
            margin-bottom: 4px;
        }
        #aspectPercent {
           display: none !important;
        }
        #aspectPercentInput {
            width: 200px; /* 5x original 60px */
            font-size: 3em; /* 2x original 1.1em for better scaling */
            text-align: center;
            margin-bottom: 0px;
            color: #f9ba4d;
            font-weight: bold;
            border-radius: 6px;
            border: 1.5px solid #f9ba4d;
            background: #222;
            outline: none;
            transition: border 0.2s;
            overflow-clip-margin: 0px !important;
        }
        .toggle-block {
            border: 2px solid #333;
            background: rgba(16, 12, 21, 1);
            border-radius: 18px;
            padding: 24px 32px;
        }
        #aspectButton {
            /* Match the toggle button styling exactly */
            margin: 0 10px 10px;
            padding: 15px 30px;
            font-size: 1.6em;
        }

        @media (min-width: 768px) {
            #aspectButton {
                padding: 20px 40px;
                font-size: 1.8em;
                margin: 0 15px 15px;
            }
        }

        .mode-btn {
            background-color: #444;
            color: #fff;
            border: none;
            padding: 15px 30px;
            margin: 0 5px 10px;
            font-size: 1.6em;
            cursor: pointer;
            border-radius: 5px;
            box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
            transition: all 0.1s;
        }

        .mode-btn.active {
            background-color: #f9ba4d;
            color: #222;
            font-weight: bold;
            box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

        .mode-btn:hover {
            background-color: #555;
        }

        .mode-btn.active:hover {
            background-color: #f9ba4d;
        }

        .mode-btn.active:hover {
            background-color: #f9ba4d;
        }

        @media (min-width: 768px) {
            .mode-btn {
                padding: 20px 40px;
                font-size: 1.8em;
                margin: 0 8px 15px;
            }
        }

        .godTextContainer {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            margin-top: -75px;
            margin-bottom: 20px;
            z-index: 10;
            position: relative;
        }

        .godRoleText, .godNameText {
            -webkit-text-stroke: .051em #000;
            text-stroke: 2px #000;
            text-shadow:
                2px 0 0 #000,
                -2px 0 0 #000,
                0 2px 0 #000,
                0 -2px 0 #000,
                2px 2px 0 #000,
                -2px -2px 0 #000,
                2px -2px 0 #000,
                -2px 2px 0 #000,
                1px 14px 7px #000,
                6px 20px 12px #f9ba4d44,
                0 0 2px #000;
        }

        .godRoleText {
            font-size: 2.2em;
            color: #f9ba4d;
            text-shadow: 2px 11px 4px rgba(0, 0, 0, 0.8);
            font-weight: bold;
            text-align: center;
            z-index: 10;
            position: relative;
        }

        .godNameText {
            font-size: 3em;
            color: #f9ba4d;
            text-align: center;
            word-break: break-word;
            font-weight: bold;
            text-shadow: 2px 14px 4px rgba(0, 0, 0, 0.8);
            z-index: 10;
            position: relative;
        }

        .random-inRole-btn:hover,
        button.random-inRole-btn:hover {
            background-color: #555 !important;
        }

        .random-inRole-btn.pressed,
        button.random-inRole-btn.pressed {
            background-color: #222 !important;
            box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.7) !important;
            transform: translateY(2px) !important;
        }

        .singleRandomRoleGodButton,
        button.singleRandomRoleGodButton {
            background: linear-gradient(90deg, #f9ba4d 0%, #a97c1b 100%) !important;
            color: #222 !important;
            border: 2px solid #fff8c0 !important;
            font-weight: bold !important;
            box-shadow: 0 2px 8px rgba(249,186,77,0.18), 0 0 12px 2px rgba(255,255,180,0.10) !important;
            transition: background 0.2s, color 0.2s, box-shadow 0.2s !important;
        }
        .singleRandomRoleGodButton.pressed,
        button.singleRandomRoleGodButton.pressed {
            background: #fff8c0 !important;
            color: #a97c1b !important;
            border: 2px solid #f9ba4d !important;
        }

        #randomRoleButton {
            background: linear-gradient(90deg, #f9ba4d 0%, #a97c1b 100%) !important;
            color: #222 !important;
            border: 2px solid #fff8c0 !important;
            font-weight: bold !important;
            box-shadow: 0 2px 8px rgba(249,186,77,0.18), 0 0 12px 2px rgba(255,255,180,0.10) !important;
            transition: background 0.2s, color 0.2s, box-shadow 0.2s !important;
        }
        #randomRoleButton.pressed {
            background: #fff8c0 !important;
            color: #a97c1b !important;
            border: 2px solid #f9ba4d !important;
        }

        .toggle-btn {
            background: linear-gradient(90deg, #f9ba4d 0%, #a97c1b 100%) !important;
            color: #222 !important;
            border: 2px solid #fff8c0 !important;
            font-weight: bold !important;
            box-shadow: 0 2px 8px rgba(249,186,77,0.18), 0 0 12px 2px rgba(255,255,180,0.10) !important;
            transition: background 0.2s, color 0.2s, box-shadow 0.2s !important;
        }
        .toggle-btn.pressed {
            background: #fff8c0 !important;
            color: #a97c1b !important;
            border: 2px solid #f9ba4d !important;
        }
        #randomRoleButton, #aspectButton, #damageRatioButton {
            /* Use the toggle-btn class styles */
            composes: toggle-btn;
        }
        #randomRoleButton.pressed, #aspectButton.pressed, #damageRatioButton.pressed {
            composes: toggle-btn pressed;
        }

        .random-inRole-btn,
        button.random-inRole-btn {
            background: linear-gradient(90deg, #f9ba4d 0%, #a97c1b 100%) !important;
            color: #222 !important;
            border: 2px solid #fff8c0 !important;
            font-weight: bold !important;
            box-shadow: 0 2px 8px rgba(249,186,77,0.18), 0 0 12px 2px rgba(255,255,180,0.10) !important;
            transition: background 0.2s, color 0.2s, box-shadow 0.2s !important;
        }
        .random-inRole-btn.pressed,
        button.random-inRole-btn.pressed {
            background: #fff8c0 !important;
            color: #a97c1b !important;
            border: 2px solid #f9ba4d !important;
        }

        #godTextSingleBottom {
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
            font-size: 1.51em; /* 10% bigger than the 1.1em from .pentaGodNames.bottom */
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        #godTextSingleBottom.show {
            opacity: 1;
            visibility: visible;
        }

        #damageRatioButton.pressed img {
            animation-name: lime-pulse;
            animation-timing-function: ease-in-out;
            animation-iteration-count: infinite;
            animation-duration: 1.5s;
        }

        #randomRoleButton.pressed img {
            animation-name: neon-pulse;
            animation-timing-function: ease-in-out;
            animation-iteration-count: infinite;
            animation-duration: 1.5s;
        }

        #randomRoleButton img {
            transition: filter 2.5s cubic-bezier(0.4, 0.0, 0.2, 1);
        }

        #randomRoleButton.pressed img {
            animation-name: neon-pulse;
            animation-timing-function: ease-in-out;
            animation-iteration-count: infinite;
            animation-duration: 3.5s;
        }

        #damageRatioButton img {
            transition: filter 2.5s cubic-bezier(0.4, 0.0, 0.2, 1);
        }

        #damageRatioButton.pressed img {
            animation-name: lime-pulse;
            animation-timing-function: ease-in-out;
            animation-iteration-count: infinite;
            animation-duration: 3.5s;
        }

        .role-buttons button {
            transition: box-shadow 2.5s cubic-bezier(0.4, 0.0, 0.2, 1);
        }

        .role-buttons.glow-gold button {
            animation-name: gold-pulse;
            animation-timing-function: ease-in-out;
            animation-iteration-count: infinite;
            animation-duration: 3.5s;
            border-color: #f9ba4d;
            z-index: 1;
        }
        .toolButtons.glow-gold button {
            animation-name: gold-pulse;
            animation-timing-function: ease-in-out;
            animation-iteration-count: infinite;
            animation-duration: 3.5s;
            border-color: #f9ba4d;
            z-index: 1;
        }
        /* Mode transition classes */
        .mode-transition {
            transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
        }

        .mode-fade-out {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            z-index: -1;
        }

        .mode-fade-in {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            position: relative;
            z-index: 1;
        }

        .singleGodBlock, .pentaGodBlock, .singleGodButton-block, .pentaGodButton-block {
            transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
        }

        /* Slide animation classes */
        .slide-up {
            transform: translateY(-100vh);
            opacity: 0;
        }

        .slide-down {
            transform: translateY(0);
            opacity: 1;
        }

        /* Content that gets hidden during slide */
        .content-behind-slide {
            transition: opacity 0.4s ease-in-out;
        }

        .content-hidden {
            opacity: 0;
            pointer-events: none;
        }

        /* Ensure sub-menu has proper transition for slide animations */
        .sub-menu-bar.slide-up,
        .sub-menu-bar.slide-down {
            transition: transform 0.949s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.949s cubic-bezier(0.4, 0.0, 0.2, 1);
        }

        /* Prevent layout shifts during slide animation */
        .sub-menu-bar.sliding {
            position: relative;
            z-index: 1000;
        }

        /* Keep elements in place during slide to prevent teleporting */
        .singleGodBlock, .pentaGodBlock {
            position: relative;
            z-index: 1;
        }

        /* Ensure sub-menu maintains its position during slide */
        .sub-menu-bar.slide-up,
        .sub-menu-bar.slide-down {
            will-change: transform, opacity;
        }

        /* Smooth height transition for mode changes */
        .sub-menu-bar.height-transition {
            transition: transform 0.949s cubic-bezier(0.4, 0.0, 0.2, 1), 
                        opacity 0.949s cubic-bezier(0.4, 0.0, 0.2, 1), 
                        height 0.949s cubic-bezier(0.4, 0.0, 0.2, 1),
                        min-height 0.949s cubic-bezier(0.4, 0.0, 0.2, 1);
        }

        /* Force smooth transitions during mode changes */
        .sub-menu-bar.gliding {
            transition: all 0.949s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
        }

        /* Curtain effect for mode transitions */
        .mode-curtain {
            position: fixed;
            bottom: -100vh; /* Start below the viewport */
            left: 0;
            width: 100vw;
            height: 100vh; /* Increase height to stretch image more vertically */
            background-image: url('../custom_assets/rg1d.gif');
            background-size: 100% 100%; /* Stretch image to fill entire curtain area */
            background-position: center;
            background-repeat: no-repeat;
            z-index: 9999; /* Very high z-index to be above everything */
            pointer-events: none; /* Don't block interactions */
            transition: transform 0.348s cubic-bezier(0.4, 0.0, 0.2, 1);
            transform: translateY(0);
            border-top-left-radius: 50px;
            border-top-right-radius: 50px;
        }

        .mode-curtain.rising {
            transform: translateY(-39vh); /* Move up to cover half the screen */
        }

        .mode-curtain.falling {
            transform: translateY(0); /* Move back down */
        }

        .individual-role-btn:hover {
            background-color: rgb(63, 42, 2)
        }

        .individual-role-btn.pressed {
            background-color: rgb(34, 22, 0);
            /*box-shadow: inset 2px 2px 4px rgb(34, 22, 0);*/
            transform: translateY(2px);
        }

        .individual-role-btn img {
            height: 4.20em;
            vertical-align: middle;
            margin-right: 0px;
        }

        /* Dark mode styles for randomRoleButton */
        body.dark-mode #randomRoleButton {
            background: linear-gradient(90deg, #666 0%, #444 100%) !important;
            color: #fff !important;
            border: 2px solid #888 !important;
            box-shadow: 0 2px 8px rgba(102,102,102,0.18), 0 0 12px 2px rgba(255,255,255,0.10) !important;
        }

        body.dark-mode #randomRoleButton.pressed {
            background: #888 !important;
            color: #333 !important;
            border: 2px solid #666 !important;
        }

        body.dark-mode .singleGodBlock,
        body.dark-mode .pentaGodBlock {
            background: rgba(40, 40, 40, 0.68);
        }

        body.dark-mode .pentaGodNames {
            color: #e0e0e0;
            background: rgba(0,0,0,0.6);
        }

        body.dark-mode #godTextSingle {
            color: #e0e0e0;
        }

        body.dark-mode .individual-role-btn {
            background-color: rgba(60, 60, 60, 0.0);
            color: #e0e0e0;
        }

        body.dark-mode .individual-role-btn:hover {
            background-color: rgba(80, 80, 80, 0.8);
        }

        body.dark-mode .individual-role-btn.pressed {
            background-color: rgba(40, 40, 40, 0.8);
        }

        body.dark-mode #damageRatioButton {
            background-color: #333 !important;
            color: #e0e0e0 !important;
            border-color: #555 !important;
        }

        body.dark-mode #damageRatioButton.pressed {
            background-color: #888 !important;
            color: #333 !important;
            border: 2px solid #666 !important;
        }

        body.dark-mode .singleGodBlock,
        body.dark-mode .pentaGodBlock {
            background: rgba(40, 40, 40, 0.68);
        }

        body.dark-mode .pentaGodNames {
            color: #e0e0e0;
            background: rgba(0,0,0,0.6);
        }

        body.dark-mode .pentaGodNames.bottom {
            color: #f9ba4d;
        }

        body.dark-mode .godRoleText {
            color: #e0e0e0;
        }

        body.dark-mode .godNameText {
            color: #e0e0e0;
        }

        body.dark-mode .triGodBlock {
            background: rgba(40, 40, 40, 0.68);
        }
        body.dark-mode .triGodNames {
            color: #e0e0e0;
            background: rgba(0,0,0,0.6);
        }
        body.dark-mode .triGodNames.bottom {
            color: #f9ba4d;
        }

        #randomTeamBtn {
            /* existing styles for Random Team button */
        }

        #randomJoustTeamBtn {
            /* Copy of #randomTeamBtn styles for independent customization */
            background: linear-gradient(90deg, #f9ba4d 0%, #a97c1b 100%);
            color: #222;
            border: 2px solid #fff8c0;
            font-weight: bold;
            box-shadow: 0 2px 8px rgba(249,186,77,0.18), 0 0 12px 2px rgba(255,255,180,0.10);
            transition: background 0.2s, color 0.2s, box-shadow 0.2s;
            padding: 15px 30px;
            margin: 0 10px 10px;
            font-size: 1.6em;
            cursor: pointer;
            border-radius: 5px;
            display: inline-block;
        }
        #randomJoustTeamBtn img {
            height: 1.8em;
            vertical-align: middle;
            margin-right: 8px;
        }
        #randomJoustTeamBtn:hover {
            background-color: #f1da05;
        }
        #randomJoustTeamBtn.pressed {
            background: #fff8c0 !important;
            color: #a97c1b !important;
            border: 2px solid #f9ba4d !important;
        }

        .TriRandomGodButton {
            background: linear-gradient(90deg, #f9ba4d 0%, #a97c1b 100%);
            color: #a97c1b;
            border: none;
            padding: 15px 30px;
            margin: 0 10px 10px;
            font-size: 1.6em;
            cursor: pointer;
            border-radius: 5px;
            box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
            transition: all 0.1s;
            display: inline-block;
        }
        #randomJoustTeamBtn.glow-green {
            animation: neon-gold-glow 1.5s infinite alternate !important;
            border: 2.5px solid #f9ba4d !important;
            box-shadow: 0 0 8px 2px #f9ba4d, 0 0 24px 6px #f9ba4d, 0 0 48px 12px #f9ba4d33 !important;
            background: linear-gradient(90deg, #f9ba4d 0%, #a97c1b 100%) !important;
        }

        /* Dark mode green glow for damage ratio buttons */
        body.dark-mode #randomJoustTeamBtn.glow-green {
            animation: neon-green-glow 1.5s infinite alternate !important;
            border: 2.5px solid #39ff14 !important;
            box-shadow: 0 0 8px 2px #39ff14, 0 0 24px 6px #39ff14, 0 0 48px 12px #39ff1433 !important;
            background: linear-gradient(90deg, #666 0%, #444 100%) !important;
        }
        .TriRandomGodButton img {
            height: 1.8em;
            vertical-align: middle;
            margin-right: 8px;
        }
        .TriRandomGodButton:hover {
            background-color: #f1da05;
        }
        .TriRandomGodButton.pressed {
            background: #fff8c0 !important;
            color: #a97c1b !important;
            border: 2px solid #f9ba4d !important;
        }

        @keyframes floatY {
            0%   { transform: translateY(0); }
            50%  { transform: translateY(-8px); }
            100% { transform: translateY(0); }
        }

        .floating-img {
            animation-name: floatY;
            animation-timing-function: ease-in-out;
            animation-iteration-count: infinite;
            will-change: transform;
            animation-duration: var(--float-duration, 2.8s);
            transition: --float-duration 0.3s linear;
        }

        #damageTriRatioButton {
            background-color: #222;
            color: #f9ba4d;
            font-weight: bold;
            border-color: #222;
            transition: background 0.2s, color 0.2s;
            margin-top: -1%;
        }
        #damageTriRatioButton:hover,
        button#damageTriRatioButton:hover {
            background-color: #555 !important;
        }
        #damageTriRatioButton.pressed,
        button#damageTriRatioButton.pressed {
            background-color: #fff8c0 !important;
            transform: translateY(4px) !important;
        }

        /* Pressed state for aspect and randomRoleButton for consistency */
        #aspectButton.pressed,#damageTriRatioButton.pressed,
        #randomRoleButton.pressed {
            background-color: #f9ba4d;
            color: #222;
            border: 22px solid #f9ba4d;
        }

        #damageTriRatioButton img {
            transition: filter 2.5s cubic-bezier(0.4, 0.0, 0.2, 1);
        }
        #damageTriRatioButton.pressed img {
            animation-name: lime-pulse;
            animation-timing-function: ease-in-out;
            animation-iteration-count: infinite;
            animation-duration: 3.5s;
        }

        body.dark-mode #damageTriRatioButton {
            background-color: #333 !important;
            color: #e0e0e0 !important;
            border-color: #555 !important;
        }
        body.dark-mode #damageTriRatioButton.pressed {
            background-color: #888 !important;
            color: #333 !important;
            border: 2px solid #666 !important;
        }

        body.dark-mode #randomJoustTeamBtn {
            background: linear-gradient(90deg, #666 0%, #444 100%) !important;
            color: #fff !important;
            border: 2px solid #888 !important;
            box-shadow: 0 2px 8px rgba(102,102,102,0.18), 0 0 12px 2px rgba(255,255,255,0.10) !important;
        }
        body.dark-mode #randomJoustTeamBtn.pressed {
            background: #888 !important;
            color: #333 !important;
            border: 2px solid #666 !important;
        }

        /* Removed the transform that was causing submenu positioning issues during animations */
        /* .single-mode .sub-menu-bar {
            transform: translateY(-25%) !important;
        } */

        .centered-below {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-top: 12px;
        }

        @keyframes neon-green-glow {
          0%, 100% {
            box-shadow: 0 0 8px 2px #39ff14, 0 0 24px 6px #39ff14, 0 0 48px 12px #39ff1433 !important;
            border-color: #39ff14 !important;
          }
          50% {
            box-shadow: 0 0 24px 8px #39ff14, 0 0 64px 24px #39ff1499 !important;
            border-color: #39ff14 !important;
          }
        }

        @keyframes neon-gold-glow {
          0%, 100% {
            box-shadow: 0 0 8px 2px #f9ba4d, 0 0 24px 6px #f9ba4d, 0 0 48px 12px #f9ba4d33 !important;
            border-color: #f9ba4d !important;
          }
          50% {
            box-shadow: 0 0 24px 8px #f9ba4d, 0 0 64px 24px #f9ba4d99 !important;
            border-color: #f9ba4d !important;
          }
        }

        .toolButtons.glow-green .singleRandomRoleGodButton,
        .toolButtons.glow-green .random-inRole-btn {
          animation: neon-gold-glow 1.5s infinite alternate !important;
          border: 2.5px solid #f9ba4d !important;
          box-shadow: 0 0 8px 2px #f9ba4d, 0 0 24px 6px #f9ba4d, 0 0 48px 12px #f9ba4d33 !important;
        }

        /* Dark mode green glow for tool buttons */
        body.dark-mode .toolButtons.glow-green .singleRandomRoleGodButton,
        body.dark-mode .toolButtons.glow-green .random-inRole-btn {
          animation: neon-green-glow 1.5s infinite alternate !important;
          border: 2.5px solid #39ff14 !important;
          box-shadow: 0 0 8px 2px #39ff14, 0 0 24px 6px #39ff14, 0 0 48px 12px #39ff1433 !important;
        }

        .feature-buttons.glow-green > button:not(.TriRandomGodButton) {
          animation: neon-gold-glow 1.5s infinite alternate !important;
          /*border: 2.5px solid #f9ba4d !important;*/
          box-shadow: 0 0 8px 2px #f9ba4d, 0 0 24px 6px #f9ba4d, 0 0 48px 12px #f9ba4d33 !important;
        }

        /* Dark mode green glow for feature buttons */
        body.dark-mode .feature-buttons.glow-green > button:not(.TriRandomGodButton) {
          animation: neon-green-glow 1.5s infinite alternate !important;
          /*border: 2.5px solid #39ff14 !important;*/
          box-shadow: 0 0 8px 2px #39ff14, 0 0 24px 6px #39ff14, 0 0 48px 12px #39ff1433 !important;
        }
        
        .feature-buttons.glow-green > #damageTriRatioButton {
          animation: none !important;
          border: none !important;
          box-shadow: none !important;
        }

        /* Glow effect for TriRandomGodButton */
        .feature-buttons.glow-green > .TriRandomGodButton {
          animation: neon-gold-glow 1.5s infinite alternate !important;
          box-shadow: 0 0 8px 2px #f9ba4d, 0 0 24px 6px #f9ba4d, 0 0 48px 12px #f9ba4d33 !important;
        }

        /* Dark mode glow effect for TriRandomGodButton */
        body.dark-mode .feature-buttons.glow-green > .TriRandomGodButton {
          animation: neon-green-glow 1.5s infinite alternate !important;
          box-shadow: 0 0 8px 2px #39ff14, 0 0 24px 6px #39ff14, 0 0 48px 12px #39ff1433 !important;
        }

        /* Maintain pressed state styling for TriRandomGodButton when glow is active */
        .feature-buttons.glow-green > .TriRandomGodButton.pressed {
          background: #fff8c0 !important;
          color: #a97c1b !important;
          border: 2px solid #f9ba4d !important;
        }

        /* DAY MODE (default) - white text */
        .godRoleText,
        .godNameText,
        .triGodNames,
        .triGodNames.bottom,
        .pentaGodNames,
        .pentaGodNames.bottom,
        .godTextSingleBottom,
        .DecaGodNames {
            color: #fff !important;
        }

        /* NIGHT MODE (dark mode) - gold text */
        body.dark-mode .godRoleText,
        body.dark-mode .godNameText,
        body.dark-mode .triGodNames,
        body.dark-mode .triGodNames.bottom,
        body.dark-mode .pentaGodNames,
        body.dark-mode .pentaGodNames.bottom,
        body.dark-mode .godTextSingleBottom,
        body.dark-mode .DecaGodNames {
            color: #f9ba4d !important;
        }



        #secondtoolbuttonline {
            width: 100%;
            display: flex;
            justify-content: center;
            gap: 16px;
            margin-top: -18px;
        }

        #randomOrderTeamsBtn {
            background: linear-gradient(90deg, #0e1a76 0%, #3f51b5 100%) !important;
            color: #fff !important;
            border: 2px solid #1e3aff !important;
            font-weight: bold !important;
            box-shadow: 0 2px 8px rgba(30,58,255,0.18), 0 0 12px 2px rgba(30,58,255,0.10) !important;
            border-radius: 5px !important;
            padding: 15px 30px !important;
            margin: 0 10px 10px !important;
            font-size: 1.6em !important;
            cursor: pointer !important;
            transition: background 0.2s, color 0.2s, box-shadow 0.2s !important;
            display: inline-block !important;
            z-index: 10 !important;
        }

        #randomOrderTeamsBtn:hover {
            background: #1e3aff !important;
            color: #fff8c0 !important;
        }
        #randomOrderTeamsBtn.pressed {
            background: #f9ba4d !important;   /* deep blue-black */
            color: #fff !important;
            border-color: #1e3aff !important;
        }

        /* Optional: Even darker in dark mode */
        body.dark-mode #randomOrderTeamsBtn.pressed {
            background: #888  !important;
            color: #f9ba4d !important;
        }
        body.dark-mode #randomChaosTeamsBtn.pressed {
            background: #888 !important;
            color: #f9ba4d !important;
        }

       

        #randomChaosTeamsBtn {
            background: linear-gradient(90deg, #650101 0%, #ff2323 100%) !important;
            color: #fff !important;
            border: 2px solid #ff2323 !important;
            font-weight: bold !important;
            box-shadow: 0 2px 8px rgba(255,35,35,0.18), 0 0 12px 2px rgba(255,35,35,0.10) !important;
            border-radius: 5px !important;
            padding: 15px 30px !important;
            margin: 0 10px 10px !important;
            font-size: 1.6em !important;
            cursor: pointer !important;
            transition: background 0.2s, color 0.2s, box-shadow 0.2s !important;
            display: inline-block !important;
            z-index: 10 !important;
        }

        #randomChaosTeamsBtn:hover {
            background: #ff2323 !important;
            color: #fff8c0 !important;
        }
        #randomChaosTeamsBtn.pressed {
            background: #f9ba4d !important;   
            color: #fff !important;
            border-color: #ff2323 !important;
        }

        /* Optional: Even darker in dark mode */
        body.dark-mode #randomChaosTeamsBtn.pressed {
            background: #888  !important;
            color: #f9ba4d !important;
        }
        
        #draftModeBtn.pressed, #draftModeBtn.active {
            animation-name: gold-pulse;
            animation-timing-function: ease-in-out;
            animation-iteration-count: infinite;
            animation-duration: 3.5s;
            border-color: #ff00ff !important;
        }
       
        body.dark-mode .deca-glow-gold .randomDecaTeamsBtn,
        body.dark-mode .deca-glow-gold .randomDecaTeamsinRole-btn {
            animation-name: neon-pulse;
            animation-timing-function: ease-in-out;
            animation-iteration-count: infinite;
            animation-duration: 6s;
            border-color: #ff00ff !important;
            z-index: 1;
        }

        /* Add glow to image inside draftModeBtn when toggled */
        #draftModeBtn.pressed img,
        #draftModeBtn.active img {
            animation-name: gold-pulse;
            animation-timing-function: ease-in-out;
            animation-iteration-count: infinite;
            animation-duration: 1.5s;
            filter: drop-shadow(0 0 8px #f9ba4d) drop-shadow(0 0 16px #f9ba4d);
            border-color: #f9ba4d !important;
        }
        body.dark-mode #draftModeBtn.pressed img,
        body.dark-mode #draftModeBtn.active img {
            animation-name: neon-pulse;
            animation-timing-function: ease-in-out;
            animation-iteration-count: infinite;
            animation-duration: 6s;
            filter: drop-shadow(0 0 8px #ff00ff) drop-shadow(0 0 16px #ff00ff);
            border-color: #ff00ff !important;
        }

        #damageRatioButtonDeca.pressed img,
        #damageRatioButtonDeca.active img {
            animation-name: green-pulse;
            animation-timing-function: ease-in-out;
            animation-iteration-count: infinite;
            animation-duration: 1.5s;
            filter: drop-shadow(0 0 8px #39ff14) drop-shadow(0 0 16px #39ff14);
            border-color: #78f94d !important;
        }

        #damageRatioButtonDeca.pressed
        {
            border-color: #78f94d !important;
        }

        body.deca-mode .mode-curtain {
            transition-duration: 0.174s !important;
        }