/* ===== SINGLE GOD BUTTON BLOCK ===== */
        /* Button container for single god mode */
        .singleGodButton-block {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-top: 2px; /* Optional: space between god image and buttons */
            padding: 4px 4px;  
            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);
            width: auto;
            box-sizing: border-box;
            gap: -128px; /* Reduced gap between role buttons and random button */
        }
        #godDisplay,
        .singleGodButton-block {
            width: fit-content;         /* Set to your preferred width */
            max-width: 100%;
            box-sizing: border-box;
        }

         /* ===== SINGLE GOD DISPLAY ===== */
        /* Individual god card display for single god mode */
        .godDisplay {
            background: none;
            border: none;
            box-shadow: none;
            margin: 0;
            padding: 0;
            max-width: 270px;
            width: 10em;
            min-height: 41.4em;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s ease-out, box-shadow 0.2s;
        }
        .godDisplay img {
            max-width: 320px;
            border-radius: 20px;
            margin-bottom: -180px;
        }
        .godDisplay div {
            font-size: 2.4em;
            color: #f9ba4d;
            text-align: center;
            margin-top: 8px;
            word-break: break-word;
        }
        .godDisplay:hover,
        .godDisplay.celebration {
            z-index: 5;
            transform: scale(1.2) translateY(-40px);
            transition: transform .7s ease-out;
        }

         /* ===== SINGLE GOD BLOCK ===== */
        /* Main container for single god display mode */
        .singleGodBlock {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            width: 100vw;
            min-height: 37.5vw;
            min-width: 100vw;
            background: rgba(69, 47, 5, 0.858);;
            padding: 40px 0 32px 0;
            gap: 48px; /* Even spacing between cards */
            box-sizing: border-box;
        }

        /* ===== TRIGOD BLOCK ===== */
        /* Main container for trigod display mode */
        .triGodBlock {
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            width: 100vw;
            height: 40vw;
            min-width: 100vw;
            background: rgba(69, 47, 5, 0.858);
            padding: 230px 0 32px 0;
            margin-top: 1.5vw;
            gap: 48px;
            box-sizing: border-box;
        }

        .triGodNames {
            text-align: center;
            font-size: 1.5em;
            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;
        }

        .triGodNames.bottom {
            margin-top: -45px;
            margin-bottom: 0;
            background: rgba(0,0,0,0.45);
            font-size: 1.3em;
            color: #f9ba4d;
            border-radius: 8px;
            padding: 8px 10px;
            position: relative;
            z-index: 2;
            min-height: 1.5em;
            height: 2.6em;
            width: 100%;
            max-width: 310px;
            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;
        }

        .triGodNames.bottom.show {
            opacity: 1;
            visibility: visible;
        }

        /* ===== TRIGOD BUTTON BLOCK ===== */
        /* Button container for trigod mode */
        .triGodButton-block {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-top: -12px; /* Optional: space between god image and buttons */
            background: rgba(15, 11, 35, 0); 
            border-radius: 18px;
            padding: 24px 32px;  
            width: auto;
            box-sizing: border-box;
            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);
        }

        /* ===== TRI GOD DISPLAY ===== */
        /* Individual god card display for trigod mode */
        .godDisplayTri {
            background: none;
            border: none;
            box-shadow: none;
            margin: 0 20px;
            padding: 0;
            max-width: 390px;
            width: 720px;
            height: 570px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-end;
            transition: transform 0.3s, box-shadow 0.3s;
            opacity: 1;
            transition: opacity 0.4s;
        }

        .godDisplayTri img {
            max-width: 320px;
            border-radius: 20px;
        }

        .godDisplayTri > img {
            box-shadow: 0 0 32px 8px rgba(249, 186, 77, 0.18), 0 0 12px 2px rgba(255, 255, 180, 0.10);
            transition: box-shadow 0.3s;
        }

        .godDisplayTri:hover {
            z-index: 10;
            transform: scale(1.08) translateY(-12px);
        }

        .godDisplayTri div {
            font-size: 1.3em;
            color: #f9ba4d;
            text-align: center;
            margin-top: 8px;
            word-break: break-word;
        }


        /* ===== PENTAGOD DISPLAY ===== */
        /* Individual god card display for pentagod mode */
        .godDisplayPenta {
            background: none;
            border: none;
            box-shadow: none;
            margin: 0;
            padding: 0;
            max-width: 270px;
            width: 270px;
            height: 580px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-end;
            transition: transform 0.3s, box-shadow 0.3s;
            opacity: 1;
            transition: opacity 0.4s;
        }

        .godDisplayPenta img {
            max-width: 285px;
            border-radius: 20px;
            
        }

        .godDisplayPenta > img {
            box-shadow: 0 0 32px 8px rgba(249, 186, 77, 0.18), 0 0 12px 2px rgba(255, 255, 180, 0.10);
            transition: box-shadow 0.3s;
        }

        .godDisplayPenta:hover {
            z-index: 10;
            transform: scale(1.08) translateY(-12px);
        }

        .godDisplayPenta div {
            font-size: 1.3em;
            color: #f9ba4d;
            text-align: center;
            margin-top: 8px;
            word-break: break-word;
        }

        /* ===== PENTAGOD BLOCK ===== */
        /* Main container for pentagod display mode */
        .pentaGodBlock {
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            width: 100vw;
            height: 40vw;
            min-width: 100vw;
            background: rgba(69, 47, 5, 0.858);
            padding: 230px 0 32px 0;
            margin-top: 1.5vw;
            gap: 48px; /* Even spacing between cards */
            box-sizing: border-box;
        }


        .pentaGodButton-block.mode-fade-in,
        .pentaGodButton-block.slide-down {
            opacity: 1;
            transform: translateY(0);
        }

        .pentaGodbutton-row {
            display: flex;
            flex-direction: row;
            justify-content: center;
            gap: 16px;
            width: 100%;
            margin-top: 0;
        }
        .pentaGodbutton-row + .pentaGodbutton-row {
            margin-top: -10px; /* space between rows */
        }

        .pentaGodButton-block {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px; /* space between rows */
        }

        /* ===== DECAGOD BLOCK ===== */
        /* Main container for decagod display mode */
        .decaGodBlock {
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            width: 100vw;
            min-width: 100vw;
            background: rgba(69, 47, 5, 0.858);
            padding: 150px 0 0 0;
            gap: 32px;
            box-sizing: border-box;
            transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
        }

        /* ===== DECAGOD BUTTON BLOCK ===== */
        /* Button container for decagod mode */
        .decaGodButton-block {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-top: -12px; /* Optional: space between god image and buttons */
            background: rgba(15, 11, 35, 0); 
            border-radius: 18px;
            padding: 24px 32px;  
            width: auto;
            box-sizing: border-box;
            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);
        }

                /* ===== DECAGOD DISPLAY ===== */
        /* Individual god card display for decagod mode */
        .godDisplayDeca {
            background: none;
            border: none;
            box-shadow: none;
            margin: 0;
            padding: 0;
            max-width: 270px;
            width: 150px;
            height: 580px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-end;
            transition: transform 0.3s, box-shadow 0.3s;
            opacity: 1;
            transition: opacity 0.4s;
        }

        .godDisplayDeca img {
          max-width: 285px;
          border-radius: 20px;
        }

         /* Hide decaGodbutton-block by default */
                /* ===== DECAGOD BUTTON BLOCK (HIDDEN) ===== */
        /* Hidden button container for decagod mode - shown only when in deca mode */
        .decaGodbutton-block {
            display: none;
            opacity: 0;
            transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
            flex-direction: row;
            align-items: center;
            margin-top: -12px;
            background: rgba(15, 11, 35, 0);
            border-radius: 18px;
            padding: 24px 32px;
            width: auto;
            box-sizing: border-box;
        }

        .decaGodbutton-row {
            display: flex;
            flex-direction: row;
            justify-content: center;
            gap: 16px;
            width: 100%;
            margin-top: 0;
        }
        .decaGodbutton-row + .decaGodbutton-row {
            margin-top: -10px; /* space between rows */
        }

        .decaGodbutton-block {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px; /* space between rows */
        }

        /* Show and fade in when in deca mode */
        body.deca-mode .decaGodbutton-block {
          display: flex;
          opacity: 1;
          visibility: visible;
        }

        /* Fade out when not in deca mode */
        .decaGodbutton-block.mode-fade-out {
          opacity: 0;
          visibility: hidden;
          pointer-events: none;
          position: absolute;
          width: 100%;
          z-index: -1;
        }

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

        /* Cut god images in half for Deca mode teams, but NOT inside individual-role-btn buttons */
        .OrderTeam .godDisplayDeca > img,
        .ChaosTeam .godDisplayDeca > img {
          clip-path: inset(0 25% 0 25%);
          object-fit: cover;
          object-position: top center;
        }

        /* Remove the previous broader selector to avoid affecting button images */
        body.deca-mode .decaGodBlock {
            background: linear-gradient(to right, #4444e179 38%, #a73f3f8b 68%);
        }

        /* Deca mode team containers */
        .OrderTeam {
          display: flex;
          flex-direction: row-reverse;
          align-items: flex-start;
          justify-content: left;
          gap: 0;
          width: 100%;
          min-width: 320px;
          max-width: 100%;
          margin: 0 1vw;
          margin-left: 275px;
        }

        .ChaosTeam {
          display: flex;
          flex-direction: row;
          align-items: flex-start;
          justify-content: right;
          gap: 0;
          width: 100%;
          min-width: 320px;
          max-width: 100%;
          margin: 0 1vw;
          margin-right: 275px;
        }

        /* Team titles */
        .team-title {
            text-align: center;
            font-size: 3.5em;
            font-weight: bold;
            color: #fff;
            margin-bottom: 75px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
        }

        .order-title {
            color: #fff;
            box-shadow: 0 0 12px 2px #1e38ff78;
            -webkit-text-stroke: 3px #1e3aff;
            text-stroke: 3px #1e3aff;
        }

        .chaos-title {
            color: #fff;
            box-shadow: 0 0 12px 2px #ff232344;
            -webkit-text-stroke: 3px #ff23236f;
            text-stroke: 3px #ff2323;
        }

        body.dark-mode .order-title,
        body.dark-mode .chaos-title {
            color: #f9ba4d;
        }

        .team-section {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 50%;
        }

        .DecaGodNames {
            font-size: 1.4em;
            font-weight: bold;
            color: #f9ba4d;
            text-align: center;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
            background: rgba(0,0,0,0.32);
            border-radius: 8px;
            padding: 4px 10px;
            display: block;
            width: 100%;
            max-width: 270px;
            box-sizing: border-box;
        }

        /* Responsive design for decagod mode */
        @media (max-width: 1200px) {
          .OrderTeam, .ChaosTeam {
            max-width: 90vw;
            min-width: 0;
            width: 100%;
            gap: 12px;
          }
          .decaGodBlock {
            flex-direction: column;
            align-items: center;
            gap: 12px;
            padding: 60px 0 16px 0;
          }
          .godDisplayDeca {
            max-width: 90vw;
            width: 90vw;
            height: auto;
            margin-bottom: 15px;
          }
        }

        @media (max-width: 700px) {
          .OrderTeam, .ChaosTeam {
            width: 100%;
            max-width: 100vw;
            gap: 8px;
          }
          .decaGodBlock {
            flex-direction: column;
            gap: 4px;
            padding: 24px 0 8px 0;
          }
          .godDisplayDeca {
            max-width: 98vw;
            width: 98vw;
            height: auto;
          }
        }