
* {
    cursor:none;
}
:root {
    --panel-opacity: 0.9;
    --wo-color:#8fc;
    --fc-color:#ffa;
    --dr-color:#f9a;
    --ma-color:#1ef;
}
body {
    margin: 0;
    overflow: hidden;
    background: radial-gradient(rgba(25, 65, 100, 1), black 120%);
    position: relative; /* For CRT effect positioning */
    font-family: 'Gotham', 'Courier', monospace;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* CRT effect CSS styles */
body.lumon::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
                linear-gradient(90deg, rgba(255, 0, 0, 0.06),
                rgba(0, 255, 0, 0.02),
                rgba(0, 0, 255, 0.06));
    z-index: 1000; /* Adjusted z-index to cover content */
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}
#lumon-cursor {
    width: 26.1px; /* Width of your cursor image */
    height: 30.6px; /* Height of your cursor image */
    position: absolute;
    top: 0;
    left: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNi4xIiBoZWlnaHQ9IjMwLjYiIHZpZXdCb3g9IjAgMCAyNi4xIDMwLjYiPgogIDxwYXRoIGQ9IgogICAgTSAwIDAgTCAyNi4xIDE4IEwgMTMuNSAxOCBMIDkgMzAuNiBaCiAgICBNIDUuMjQgNy4yOCBMIDE2Ljg4IDE1LjE0IEwgMTEuMTcgMTUuMTMgTCA5LjM3IDIwLjMxIFoKICAiCiAgICBmaWxsPSIjQkRGRkZGIgogICAgc3Ryb2tlPSIjMTk0MTY0IgogICAgc3Ryb2tlLXdpZHRoPSIxIgogICAgZmlsbC1ydWxlPSJldmVub2RkIgogIC8+Cjwvc3ZnPgo=') no-repeat center center;
    pointer-events: none;
    z-index: 999; /* Ensure it's above all elements */
}
/* Styles for the top status bar */
.status-bar {
    max-width: 1180px; /* Set max-width */
    width: 100%; /* Ensure it takes full width until max-width */
    margin: 0 auto; /* Center the status-bar horizontally */
    color: #BDFFFF;
    display: flex;
    align-items: center;
    /* Removed justify-content */
    font-size: 20px;
    flex-shrink: 0;
    position: relative;
    z-index: 1; /* Ensure it's below the CRT effect */
    padding: 28px 40px 8px; /* Optional padding */
    box-sizing: border-box;
}

/* Styles for the total progress bar */
.total-progress {
    position: relative;
    width: calc(100% - 123px); /* Adjusted width */
    height: 40px;
    /* Removed flex-grow */
    border: 3px solid #BDFFFF;
    border-right: none;
    margin-right: 0; /* Removed margin-right */
    display: flex;
    align-items: center;
    z-index: 1; /* Ensure it's below the logo */
}

.total-progress .progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, transparent, #BDFFFF);
    mask: repeating-linear-gradient(
        to right,
        black 0px,
        black 5px,
        transparent 15px,
        transparent 15px
    );
}

.total-progress .progress-name {
    position: relative;
    margin-left: 10px; /* Adjust padding as needed */
    font-size: 30px;
    font-weight: bold;
    z-index: 2; /* Ensure it's above the progress bar */
}

.total-progress .progress-text {
    position: absolute;
    right: 30px; /* Adjust padding as needed */
    color: #123; /* Dark font color */
    font-size: 30px;
    font-weight: bold;
    text-shadow:
        -2px -2px 0 #BDFFFF,
        2px -2px 0 #BDFFFF,
        -2px 2px 0 #BDFFFF,
        2px 2px 0 #BDFFFF; /* Light edges */
    z-index: 2; /* Ensure it's above the progress bar */
}

/* Styles for the logo container */
.logo {
    position: relative;
    top:4px;
    margin-left: -15px; /* Overlap 50px onto .total-progress */
    z-index: 3; /* Ensure logo is on top */
}

/* Styles for the logo image */
.logo img {
    width: 138px;
}

/* Styles for the canvas container */
.canvas-container {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Prevent flexbox overflow issues */
    z-index: 1; /* Ensure it's below the CRT effect */
    border-top:10px double #BDFFFF;
    border-bottom:10px double #BDFFFF;
}

canvas {
    flex: 1;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0; /* Prevent flexbox overflow issues */
}

/* Styles for the bottom target boxes */
.target-boxes {
    height: 80px;
    color: #BDFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 11; /* Ensure it's below the CRT effect */
}

.target-box {
    margin: 0 10px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    flex: 1 1 100px; /* Allow flex-grow and flex-shrink with a basis of 100px */
    max-width: 200px; /* Maximum width of 200px */
    min-width: 80px; /* Minimum width to prevent boxes from disappearing */
    box-sizing: border-box; /* Include padding and border in width calculations */
}

.target-box .number {
    height: 30px;
    line-height: 30px;
    border: 3px solid #BDFFFF;
    margin-bottom: 5px;
    position: relative;
}

.target-box .progress-wrapper {
    height: 24px;
    border: 3px solid #BDFFFF;
    position: relative;
}

.target-box .progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: #BDFFFF;
}

.target-box .progress-text {
    position: absolute;
    top: 0;
    left: 5px;
    height: 100%;
    width: 100%;
    text-align: left;
    color: #BDFFFF;
    line-height: 24px;
    mix-blend-mode: difference; /* Adjust based on background color */
}
/* Styles for the detail div */
.detail {
    position: absolute;
    left: -2px;
    right: -2px;
    bottom: 100%;
    width: auto;
    height: 0;
    overflow: hidden;
    display: none;
    box-sizing: border-box;
    border: 3px solid #BDFFFF; 
    background: #123;
}

.detail .title {
    border: 3px solid #BDFFFF; 
    height: 30px;
    line-height: 30px;
    margin: 5px;
}

.subprogress-container {
    margin: 12px 5px;
}

.subprogress-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px; 
    height: 24px;
    line-height: 24px;
}

.subprogress-name {
    width: 38px;    
    flex-shrink: 0;
    text-align: left;
}

.subprogress-wrapper {
    flex: 1;       
    height: 20px;
    position: relative;
    border: 3px solid #BDFFFF; 
    overflow: hidden; 
}
@keyframes blinkTwice {
    0%, 25%, 50%, 75%, 100% { opacity: 1; }
    12.5%, 37.5%, 62.5%, 87.5% { opacity: 0; }
}
.blink-animation {
    animation: blinkTwice 1.2s steps(1, end);
}
.subprogress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: #BDFFFF; 
}
.wo{
    color: var(--wo-color);
}
.wo .subprogress-wrapper {
    border-color: var(--wo-color);
}
.wo .subprogress-bar {
    background-color: var(--wo-color);
}
.fc{
    color: var(--fc-color);
}
.fc .subprogress-wrapper {
    border-color: var(--fc-color);
}
.fc .subprogress-bar {
    background-color: var(--fc-color);
}
.dr{
    color: var(--dr-color);
}
.dr .subprogress-wrapper {
    border-color: var(--dr-color);
}
.dr .subprogress-bar {
    background-color: var(--dr-color);
}
.ma{
    color: var(--ma-color);
}
.ma .subprogress-wrapper {
    border-color: var(--ma-color);
}
.ma .subprogress-bar {
    background-color: var(--ma-color);
}
/* Updated message styles */
.game-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(25, 65, 100, var(--panel-opacity));
    border: 3px solid #BDFFFF;
    padding: 30px 60px;
    color: #BDFFFF;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 5; /* On top of everything */
    max-width: 80%;
    text-align: center;
}

.game-message .title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
}

.game-message .content {
    font-size: 24px;
    line-height: 1.5;
}

/* Common popup message styles */
.popup-message {
    padding: 40px 80px;
    font-size: 18px;
    font-family: 'Gotham Light', 'Courier', monospace;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(25, 65, 100, var(--panel-opacity));
    border:10px double #BDFFFF;
    transition: opacity 0.3s ease;
    color: #BDFFFF;
    z-index: 51;
}

/* Specific styles for congratulations message */
.congratulations-message {
    opacity: 0;
    text-align: center;
    pointer-events: none;
    max-width: 80%;
}

/* Welcome popup styles */
.welcome-popup {
    width: 60%;
    max-width: 600px;
    z-index: 51; 
}

.welcome-popup p {
    margin-bottom: 10px;
}

.popup-message button {
    display: block;
    margin: 20px auto 0;
    padding: 10px 20px;
    font-size: 20px;
    background-color: transparent;
    color: #BDFFFF;
    border: 3px solid #BDFFFF;
}

.popup-message button:hover {
    background-color: #BDFFFF;
    color: #123;
}

/* Footer styles */
footer {
    padding: 5px;
    border-top:2px solid #BDFFFF;
    color: #BDFFFF;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    position: relative;
    z-index: 1; /* Ensure it's below the CRT effect */
}

footer div {
    margin: 0 20px; /* Adjust spacing between items */
}
#maskOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(rgba(25, 65, 100, 1), black 120%);
    opacity: 1;
    z-index: 50; /* Ensure overlay above other elements but below welcome message */
    transition: opacity 0.5s ease;
}

/* Settings Panel Styles */
.settings-panel {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    background-color: rgba(25, 65, 100, var(--panel-opacity));
    border:10px double #BDFFFF;
    padding: 20px;
    color: #BDFFFF;
    display: none;
    z-index: 100; /* Above other elements */
    font-family: 'Gotham Light', 'Courier', monospace;
    max-height: 90vh;
    overflow-x: hidden;
    overflow-y: auto;
}
/* Styles for the close "×" button in the settings panel */
.settings-panel .close-button {
    display: block;
    height: 30px;
    width: 30px;
    line-height: 30px;
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 48px;
    color: #BDFFFF;
    font-weight: bold;
}

.settings-panel .close-button:hover {
    color: #123;
}

.settings-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.setting-category {
    grid-column: 1 / -1;
    border-bottom: 2px solid #BDFFFF;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.setting-category h3 {
    font-size: 20px;
    margin: 0;
}
.empty-item {
    /* Ensure the empty item occupies the same space as other settings items */
    min-height: 0; /* Adjust as needed */
}
.setting-item {
    position: relative;
    display: flex;
    flex-direction: column;
}

.setting-item label {
    font-size: 16px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.setting-item input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

.setting-item input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: #BDFFFF;
    border: none;
    border-radius: 3px;
}

.setting-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #123;
    border: 3px solid #BDFFFF;
    border-radius: 50%;
    margin-top: -6px;
}

.setting-item input[type="range"]::-moz-range-track {
    width: 100%;
    height: 6px;
    background: #BDFFFF;
    border: none;
    border-radius: 3px;
}

.setting-item input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #123;
    border: 3px solid #BDFFFF;
    border-radius: 50%;
}

.setting-item input[type="range"]:disabled::-webkit-slider-thumb {
    border: #123;
}

.setting-item input[type="range"]:disabled::-moz-range-thumb {
    border: #123;
}

.setting-item input[type="range"]:disabled::-webkit-slider-runnable-track {
    background: #123;
}

.setting-item input[type="range"]:disabled::-moz-range-track {
    background: #123;
}

/* Toggle Switch Styles */
.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    margin-top: 5px;
}

.toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-switch-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #123;
    border-radius: 15px;
}

.toggle-switch-label:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    background: #BDFFFF;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-switch-label {
    background: #BDFFFF;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-switch-label:before {
    transform: translateX(30px);
    background: #123;
}
.toggle-switch input[type="checkbox"]:disabled + .toggle-switch-label {
    background: #123; /* Dimmed background */
}

.toggle-switch input[type="checkbox"]:disabled + .toggle-switch-label:before {
    background: #123; /* Dimmed toggle knob */
}

.toggle-switch input[type="checkbox"]:disabled:checked + .toggle-switch-label:before {
    background: #123; /* Dimmed toggle knob when checked */
}

.toggle-switch input[type="checkbox"]:disabled:checked + .toggle-switch-label {
    background: #123; /* Dimmed background when checked */
}

/* Tooltip Styles */
.tooltip-icon {
    margin-left: 5px;
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #BDFFFF;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    color: #123;
    font-weight: bold;
    font-size: 14px;
}

.tooltip-icon:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.tooltip-icon .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: rgba(25, 65, 100, var(--panel-opacity));
    color: #BDFFFF;
    text-align: center;
    border: 3px solid #BDFFFF;
    padding: 5px;
    border-radius: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Position above the tooltip icon */
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Range Slider Value */
.range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}

.range-values span {
    font-size: 14px;
}

.settings-panel button {
    display: inline-block;
    margin: 20px 10px 0;
    padding: 10px 20px;
    font-size: 18px;
    background-color: transparent;
    color: #BDFFFF;
    border: 3px solid #BDFFFF;
}

.settings-panel button:hover {
    background-color: #BDFFFF;
    color: #123;
}

/* Custom scrollbar styling */
.settings-panel {
    scrollbar-width: thin;
    scrollbar-color: #BDFFFF rgba(25, 65, 100, var(--panel-opacity));
}

.settings-panel::-webkit-scrollbar {
    width: 8px;
}

.settings-panel::-webkit-scrollbar-track {
    background: rgba(25, 65, 100, var(--panel-opacity));
}

.settings-panel::-webkit-scrollbar-thumb {
    background-color: #BDFFFF;
    border-radius: 10px;
    border: 3px solid rgba(25, 65, 100, var(--panel-opacity));
}

/* Dual Range Slider */
.dual-slider {
    position: relative;
    width: 100%;
    height: 6px;
}

.dual-slider .track {
    position: absolute;
    width: 100%;
    height: 6px;
    background: #123;
    border-radius: 3px;
}

.dual-slider .range {
    position: absolute;
    height: 6px;
    background: #BDFFFF;
    border-radius: 3px;
}

.dual-slider input[type="range"] {
    position: absolute;
    width: 100%;
    -webkit-appearance: none;
    background: transparent;
    pointer-events: none;
}

.dual-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #123;
    border: 3px solid #BDFFFF;
    border-radius: 50%;
    pointer-events: auto;
}

.dual-slider input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #123;
    border: 3px solid #BDFFFF;
    border-radius: 50%;
    pointer-events: auto;
}

.dual-slider input[type="range"]::-webkit-slider-runnable-track {
    background: none;
}

.dual-slider input[type="range"]::-moz-range-track {
    background: none;
}

.dual-slider .range-values {
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
}
#disclaimer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,1.0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  opacity: 1;
  transition: opacity 0.5s ease;
  color: #fff;
  text-align: center;
  font-size: 24px; /* 增大字体 */
  font-family: sans-serif;
  text-shadow:
    0 0 10px #dc9,
    0 0 20px #dc9,
    0 0 30px #dc9;
}
#disclaimer .content{
    padding: 150px;
    text-transform: uppercase;
}
#disclaimer p{
    margin: 0;
    line-height: 48px;
}