        #control-panel {
            position: fixed;
            inset: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            background: rgba(0, 0, 0, 0.8);
            padding: 16px 0;
            z-index: 2000;
            box-sizing: border-box;
            overflow-y: auto;
        }

        #control-panel-options {
            position: relative;
            background-color: #ffffff;
            color: #000000;
            border: 6px solid #008080;
            border-radius: 8px;
            padding: 60px 28px 24px;
            width: 88%;
            max-width: 720px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            font-family: Arial, sans-serif;
            max-height: calc(100vh - 32px);
            overflow-y: auto;
        }

        #options-title-bar {
            position: absolute;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            background-color: #009688;
            padding: 10px 22px;
            border-radius: 10px;
            text-align: center;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
            z-index: 10;
        }

        #options-title-bar h2 {
            margin: 0;
            font-size: 1.45rem;
            color: #ffffff;
        }

/* Main instructions style */
#control-panel-instructions {
  font-size: 18px;          /* bigger */
  font-weight: 800;         /* bolder */
  color: #1b1b1b;
  max-width: 640px;
  margin: 8px 0 12px;
  line-height: 1.35;
  letter-spacing: 0.2px;
  background: rgba(0, 150, 136, 0.08); /* subtle highlight */
  padding: 14px 16px;
  border-radius: 12px;

}

/* Tweak on medium-short screens */
@media (max-height: 820px) {
  #control-panel-instructions {
    font-size: 16px;         /* still larger than before */
    line-height: 1.3;
    margin: 6px 0 8px;
    padding: 12px 14px;
  }
}

/* Tweak on very short screens */
@media (max-height: 680px) {
  #control-panel-instructions {
    font-size: 15px;         /* readable but compact */
    line-height: 1.28;
    margin: 6px 0 6px;
    padding: 10px 12px;
  }
}

        #mode-divider {
            width: 100%;
            height: 2px;
            background-color: #009688;
            margin: 12px 0;
        }

        #options-inline-container {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 18px;
            width: 100%;
            margin-top: 8px;
            align-items: start;
            justify-items: center;
        }

        #options-inline-container .options-column {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 0 6px;
            margin: 0;
            text-align: center;
            min-width: 0;
        }

        #options-inline-container .options-column-summary {
            align-items: center;
            text-align: center;
            gap: 6px;
        }


        .button,
        .button:hover,
        .button:focus {
            box-shadow: none;
            outline: none;
        }

        .option-item {
            margin-bottom: 10px;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
        }

        .teal-label {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 17px;
            font-weight: bold;
            color: #333333;
            cursor: pointer;
            margin-bottom: 4px;
        }

        .summary-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
        }

        .summary-heading {
            display: block;
            font-size: 15px;
            font-weight: bold;
            color: #009688;
        }

        .summary-value {
            font-size: 15px;
            font-weight: bold;
            color: #333333;
        }

        .summary-button-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            gap: 6px;
            text-align: center;
        }

        .summary-image-label {
            margin-bottom: 0;
        }

        .summary-button-item .teal-label {
            justify-content: center;
        }

        .styled-select {
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            width: min(100%, 240px);
            padding: 10px 36px 10px 16px;
            border: none;
            border-radius: 20px;
            background:
                #009688
                url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0iI0ZGRkZGRiIgZD0iTTcgMTBsNSA1IDUtNXoiLz48L3N2Zz4=")
                no-repeat right 12px center;
            background-size: 16px;
            font-size: 17px;
            font-weight: bold;
            color: #ffffff;
            cursor: pointer;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            transition: background-color 0.3s ease, box-shadow 0.3s ease;
            text-align: center;
            text-align-last: center;
        }

        .styled-select:hover,
        .styled-select:focus {
            outline: none;
            background-color: #00796B;
            box-shadow: 0 0 0 4px rgba(0, 150, 136, 0.15);
        }

        .styled-slider {
            -webkit-appearance: none;
            width: min(100%, 240px);
            height: 8px;
            border-radius: 999px;
            background: rgba(0, 150, 136, 0.3);
            outline: none;
            cursor: pointer;
            transition: box-shadow 0.3s ease;
            margin-top: 12px;
        }

        .slider-endpoints {
            display: flex;
            justify-content: space-between;
            width: min(100%, 240px);
            margin-top: 6px;
            font-size: 13px;
            font-weight: bold;
            color: #333333;
        }

        .styled-slider::-webkit-slider-runnable-track {
            height: 8px;
            background: #009688;
            border-radius: 999px;
        }

        .styled-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            height: 20px;
            width: 20px;
            border-radius: 50%;
            background: #ffffff;
            border: 2px solid #00796B;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
            margin-top: -6px;
        }

        .styled-slider::-moz-range-track {
            height: 8px;
            background: #009688;
            border-radius: 999px;
        }

        .styled-slider::-moz-range-thumb {
            height: 20px;
            width: 20px;
            border-radius: 50%;
            background: #ffffff;
            border: 2px solid #00796B;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
        }

        .styled-slider:focus {
            box-shadow: 0 0 0 4px rgba(0, 150, 136, 0.15);
        }

        .button {
            background-color: #009688;
            color: #ffffff;
            border: none;
            border-radius: 20px;
            padding: 10px 36px;
            margin: 6px 4px;
            cursor: pointer;
            font-size: 17px;
            font-family: inherit;
            font-weight: bold;
            letter-spacing: 0.02em;
            transition: background 0.3s, transform 0.3s;
            width: min(100%, 240px);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .summary-button-item .button {
            width: 100%;
        }

        .button:hover,
        .button.selected {
            background-color: #00796B;
        }

        #control-panel-start-button.button {
            background-color: #FF5722;
            color: #ffffff;
            border-radius: 30px;
            padding: 12px 24px;
            font-size: 17px;
            font-weight: bold;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            min-width: 190px;
            width: min(100%, 260px);
        }

        #control-panel-start-button.button:hover,
        #control-panel-start-button.button:focus {
            background-color: #E64A19;
            transform: scale(1.05);
        }

        #button-container {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-top: 4px;
        }

        #control-panel-loading-bar-container {
            width: 100%;
            background: rgba(15, 20, 28, 0.65);
            border-radius: 14px;
            overflow: hidden;
            margin-bottom: 12px;
            height: 12px;
            box-shadow: 0 0 12px rgba(0, 150, 136, 0.25);
            border: 1px solid rgba(255, 255, 255, 0.08);
        }

        #control-panel-loading-status {
            width: 100%;
            text-align: center;
            font-size: 14px;
            color: #ffffff;
            margin-bottom: 8px;
            letter-spacing: 0.2px;
        }

        #control-panel-loading-bar {
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #5c1010, #b71c1c);
            border-radius: 12px;
            overflow: hidden;
            position: relative;
        }

        #control-panel-loading-bar .loading-bar-fill {
            height: 100%;
            width: 0%;
            background: linear-gradient(135deg, #02a791, #00c4a7);
            box-shadow: 0 0 10px rgba(0, 196, 167, 0.6);
            transition: width 0.35s ease;
        }

        @media (max-width: 900px) {
            #control-panel-options {
                padding: 56px 20px 20px;
            }

            #options-inline-container {
                grid-template-columns: 1fr;
            }

            #options-inline-container .options-column {
                align-items: center;
                border-right: none !important;
            }

            #options-inline-container .options-column:nth-child(2) {
                padding-right: 0;
            }
            
            .styled-select,
            .summary-button-item .button {
                max-width: none;
            }
        }

        @media (max-height: 820px) {
            #control-panel-options {
                padding: 52px 22px 18px;
            }

            #options-title-bar {
                top: 16px;
            }

            #options-title-bar h2 {
                font-size: 1.35rem;
            }

            #control-panel-instructions {
                font-size: 12px;
                line-height: 1.2;
                margin: 4px 0 2px;
            }
        }

        @media (max-height: 680px) {
            #control-panel {
                padding: 12px 0;
            }

            #control-panel-options {
                padding: 48px 18px 16px;
            }

            #options-title-bar h2 {
                font-size: 1.3rem;
            }

            .option-item {
                margin-bottom: 8px;
            }

            .button {
                margin: 4px 2px;
            }
        }


        #control-panel {
            align-items: stretch;
            justify-content: stretch;
            padding: 0;
            background:
                radial-gradient(circle at top left, rgba(0, 150, 136, 0.18), transparent 30%),
                linear-gradient(135deg, rgba(8, 16, 28, 0.98), rgba(5, 10, 18, 0.96));
            background-blend-mode: screen, normal;
        }

        #control-panel::before {
            content: none;
        }

        #control-panel-options {
            background: rgba(7, 14, 22, 0.72);
            border: none;
            border-radius: 0;
            padding: 0;
            width: 100vw;
            max-width: none;
            height: 100vh;
            max-height: none;
            box-shadow: none;
            overflow: hidden;
        }

        #options-title-bar {
            position: static;
            transform: none;
            width: 100%;
            background: transparent;
            border: none;
            box-shadow: none;
            padding: 0;
            text-align: center;
            margin-bottom: 18px;
        }

        #options-title-bar h2 {
            margin: 0;
            font-size: clamp(1.9rem, 3vw, 2.6rem);
            color: #143d3b;
            line-height: 1.05;
            text-shadow: none;
        }

        .game-menu-layout {
            display: grid;
            grid-template-columns: minmax(300px, 26vw) minmax(0, 1fr);
            gap: 0;
            width: 100%;
            height: 100%;
            align-items: stretch;
            min-height: 100vh;
        }

        .game-menu-main {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-width: 0;
            padding: clamp(20px, 4vh, 36px) clamp(18px, 2.6vw, 30px);
            position: relative;
            z-index: 1;
            background:
                radial-gradient(circle at top center, rgba(17, 185, 170, 0.14), transparent 30%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 252, 251, 0.97));
            border-right: 1px solid rgba(0, 150, 136, 0.16);
            overflow: hidden;
        }

        .game-menu-main::before,
        .game-menu-main::after {
            content: none;
        }

        .game-menu-art {
            display: flex;
            align-items: stretch;
            justify-content: stretch;
            min-width: 0;
            overflow: hidden;
        }

        .game-menu-art-card {
            width: 100%;
            min-height: 100%;
            padding: 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: stretch;
            background: transparent;
            border: none;
            border-radius: 0;
            box-shadow: none;
        }

        .game-menu-art-image {
            width: 100%;
            min-height: 100%;
            border-radius: 0;
            background:
                linear-gradient(90deg, rgba(7, 14, 22, 0.18) 0%, rgba(7, 14, 22, 0.06) 10%, rgba(7, 14, 22, 0.01) 18%, rgba(7, 14, 22, 0) 28%),
                var(--menu-side-image, none) center center / 100% 100% no-repeat;
            box-shadow: none;
        }

        #control-panel-instructions {
            font-size: 1rem;
            margin: 0 0 30px;
            max-width: 340px;
            color: #587775;
            background: transparent;
            padding: 0;
            border: none;
            box-shadow: none;
            text-align: center;
            line-height: 1.55;
            position: relative;
            z-index: 1;
        }

        #mode-divider {
            display: none;
        }

        #options-inline-container {
            display: flex;
            flex-direction: column;
            gap: 24px;
            width: 100%;
            max-width: 390px;
            margin-top: 0;
            padding: 22px 0;
            border-top: 2px solid rgba(17, 185, 170, 0.22);
            border-bottom: 2px solid rgba(17, 185, 170, 0.22);
            align-items: stretch;
            justify-items: stretch;
            position: relative;
            z-index: 1;
        }

        #options-inline-container .options-column,
        #options-inline-container .summary-button-item,
        #options-inline-container .option-item {
            width: 100%;
            padding: 0;
            margin: 0;
        }

        .option-item {
            position: relative;
            background: transparent;
            border: none;
            border-radius: 0;
            padding: 0;
            box-shadow: none;
            align-items: center;
            text-align: center;
            gap: 6px;
            overflow: visible;
        }

        .option-item::before {
            content: none;
        }

        .teal-label {
            justify-content: center;
            font-size: 0.88rem;
            font-weight: 800;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: #1b4b47;
            text-align: center;
            margin-bottom: 0;
        }

        .summary-value {
            display: none;
        }

        .styled-select,
        .summary-button-item .button,
        #control-panel-start-button {
            width: auto;
            min-width: 210px;
            max-width: min(100%, 270px);
            margin-left: auto;
            margin-right: auto;
        }

        #control-panel-loading-bar-container {
            width: min(72%, 260px);
            max-width: none;
            margin-left: auto;
            margin-right: auto;
        }

        .styled-select {
            width: auto;
            min-width: 210px;
            max-width: min(100%, 270px);
            padding: 14px 34px 14px 18px;
            border-radius: 18px;
            background-color: #0ea89b;
            box-shadow: none;
            text-align: center;
            text-align-last: center;
            border: none;
        }

        .summary-button-item .button {
            border: none;
        }

        .styled-slider,
        .slider-endpoints,
        #button-container {
            width: 100%;
        }

        .styled-slider {
            margin-top: 4px;
        }

        .slider-endpoints {
            color: #587775;
        }

        .button,
        .button:hover,
        .button:focus {
            box-shadow: none;
            outline: none;
        }

        #button-container {
            margin-top: 24px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 14px;
            width: 100%;
            max-width: 390px;
            padding: 0;
            border-radius: 0;
            background: transparent;
            border: none;
            box-shadow: none;
            position: relative;
            z-index: 1;
        }

        #button-container::before {
            content: none;
        }

        #control-panel-loading-bar-container {
            position: relative;
            display: flex;
            align-items: center;
            min-height: 20px;
            background: rgba(17, 185, 170, 0.14);
            border-radius: 999px;
            overflow: hidden;
            margin-bottom: 0;
            box-shadow: none;
            border: none;
        }

        #control-panel-loading-bar-container::after {
            content: attr(data-status);
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 12px;
            color: #155b56;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            text-shadow: none;
        }

        #control-panel-loading-bar {
            width: 0%;
            height: 100%;
            min-height: 20px;
            border-radius: inherit;
            background: linear-gradient(90deg, #11b9aa, #65e8c3);
            box-shadow: none;
            transition: width 0.3s ease, filter 0.3s ease;
        }

        #control-panel-loading-bar-container.is-ready {
            background: rgba(17, 185, 170, 0.18);
        }

        #control-panel-loading-bar-container.is-ready #control-panel-loading-bar {
            filter: saturate(1.08);
        }

        #control-panel-start-button {
            padding: 14px 20px;
            border-radius: 18px;
            background: #ff5b2e;
            border: none;
            color: #ffffff;
        }

        #control-panel-start-button:hover,
        #control-panel-start-button:focus {
            background: #e65229;
            border: none;
        }

        #control-panel-start-button[disabled] {
            opacity: 0.6;
            cursor: not-allowed;
            box-shadow: none;
        }

        @media (max-height: 860px) {
            .game-menu-layout {
                grid-template-columns: minmax(280px, 24vw) minmax(0, 1fr);
            }

            .game-menu-main {
                padding-block: 24px;
            }

            #options-title-bar {
                margin-bottom: 14px;
            }

            #options-title-bar h2 {
                font-size: clamp(1.6rem, 2.6vw, 2.2rem);
            }

            #control-panel-instructions {
                font-size: 0.92rem;
                margin-bottom: 20px;
                line-height: 1.45;
            }

            #options-inline-container {
                gap: 20px;
                padding: 16px 0;
            }

            .styled-select,
            .summary-button-item .button,
            #control-panel-start-button {
                min-width: 190px;
                max-width: min(100%, 240px);
            }

            .styled-select,
            #control-panel-start-button {
                padding-top: 12px;
                padding-bottom: 12px;
                border-radius: 16px;
            }

            #control-panel-loading-bar-container {
                width: min(68%, 230px);
            }

            #button-container {
                gap: 12px;
                margin-top: 18px;
            }
        }

        @media (max-height: 740px) {
            .game-menu-layout {
                grid-template-columns: minmax(250px, 22vw) minmax(0, 1fr);
            }

            .game-menu-main {
                padding-block: 16px;
            }

            #options-title-bar {
                margin-bottom: 10px;
            }

            #options-title-bar h2 {
                font-size: clamp(1.4rem, 2.2vw, 1.9rem);
            }

            #control-panel-instructions {
                font-size: 0.84rem;
                margin-bottom: 14px;
                max-width: 290px;
            }

            #options-inline-container {
                gap: 16px;
                padding: 12px 0;
                max-width: 320px;
            }

            .option-item {
                gap: 4px;
            }

            .teal-label {
                font-size: 0.76rem;
            }

            .styled-select,
            .summary-button-item .button,
            #control-panel-start-button {
                min-width: 170px;
                max-width: min(100%, 210px);
            }

            .styled-select {
                padding: 10px 30px 10px 14px;
                font-size: 0.9rem;
            }

            #control-panel-start-button {
                padding: 10px 16px;
                font-size: 0.92rem;
            }

            #control-panel-loading-bar-container {
                width: min(64%, 200px);
                min-height: 18px;
            }

            #control-panel-loading-bar,
            #control-panel-loading-bar-container::after {
                min-height: 18px;
            }

            #control-panel-loading-bar-container::after {
                font-size: 10px;
            }

            #button-container {
                gap: 10px;
                margin-top: 14px;
                max-width: 320px;
            }
        }

        @media (max-width: 980px) {
            #control-panel-options {
                width: 100%;
                height: auto;
                min-height: 100vh;
            }

            .game-menu-layout {
                grid-template-columns: 1fr;
                min-height: 100vh;
                height: auto;
            }

            .game-menu-main {
                padding: 24px 18px;
                justify-content: flex-start;
                order: 2;
            }

            #options-inline-container,
            #button-container {
                max-width: 340px;
            }

            .styled-select,
            .summary-button-item .button,
            #control-panel-start-button {
                min-width: 190px;
                max-width: min(100%, 240px);
            }

            #control-panel-loading-bar-container {
                width: min(72%, 240px);
            }

            .game-menu-art {
                order: 1;
                min-height: 42vh;
            }

            .game-menu-art-image {
                min-height: 42vh;
            }
        }
