html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #191a22 0%, #2a2e44 100%);
    color: #eaf6fa;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    overflow: hidden;
}
body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
}
body::before,
body::after,
body .oil1, body .oil2, body .oil3, body .oil4, body .oil5, body .oil6 {
    content: '';
    position: fixed;
    pointer-events: none;
    z-index: 0;
    filter: blur(2.7px);
}
body::before {
    width: 340px;
    height: 700px;
    left: -90px;
    top: 0;
    background: radial-gradient(ellipse 150px 60px at 100px 60px, #ffe16b99 0%, transparent 80%),
                radial-gradient(ellipse 70px 30px at 220px 340px, #ffe16b55 0%, transparent 90%),
                radial-gradient(ellipse 60px 40px at 300px 180px, #ffd70066 0%, transparent 80%),
                radial-gradient(ellipse 24px 10px at 70px 610px, #ffe16b99 0%, transparent 90%);
    opacity: 0.7;
}
body::after {
    left: auto;
    right: -110px;
    top: 100px;
    width: 300px;
    height: 700px;
    background: radial-gradient(ellipse 110px 45px at 70px 120px, #ffe16b99 0%, transparent 80%),
                radial-gradient(ellipse 55px 25px at 230px 440px, #ffe16b44 0%, transparent 90%),
                radial-gradient(ellipse 40px 30px at 90px 480px, #ffd70077 0%, transparent 80%);
    opacity: 0.6;
    filter: blur(3px);
}
body .oil1 {
    width: 180px;
    height: 120px;
    left: 28vw;
    top: 7vh;
    background: radial-gradient(ellipse 90px 60px at 90px 60px, #ffe16b99 0%, transparent 80%);
    opacity: 0.34;
}
body .oil2 {
    width: 120px;
    height: 100px;
    right: 17vw;
    top: 22vh;
    background: radial-gradient(ellipse 50px 35px at 30px 80px, #ffe16b77 0%, transparent 90%);
    opacity: 0.22;
}
body .oil3 {
    width: 100px;
    height: 150px;
    left: 8vw;
    bottom: 14vh;
    background: radial-gradient(ellipse 60px 60px at 80px 130px, #ffd70088 0%, transparent 100%);
    opacity: 0.26;
}
body .oil4 {
    width: 110px;
    height: 60px;
    right: 8vw;
    bottom: 14vh;
    background: radial-gradient(ellipse 40px 20px at 80px 30px, #ffe16b77 0%, transparent 90%);
    opacity: 0.16;
}
body .oil5 {
    width: 130px;
    height: 70px;
    left: 55vw;
    top: 65vh;
    background: radial-gradient(ellipse 55px 30px at 90px 40px, #ffe16b77 0%, transparent 85%);
    opacity: 0.2;
}
body .oil6 {
    width: 120px;
    height: 70px;
    right: 48vw;
    bottom: 35vh;
    background: radial-gradient(ellipse 40px 30px at 60px 40px, #ffd70066 0%, transparent 90%);
    opacity: 0.16;
}
.menu-top-ui {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 60px;
    pointer-events: none;
    z-index: 10;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: transparent;
}
.news-new-btn {
    pointer-events: auto;
    background: #fffbc6;
    color: #232323 !important;
    font-weight: bold;
    border: 2px solid #ffe16b;
    border-radius: 14px;
    padding: 6px 16px;
    font-size: 1em;
    box-shadow: 0 2px 8px 0 rgba(255,225,107,0.08);
    outline: none;
    cursor: pointer;
    transition: box-shadow 0.14s, background 0.14s, border 0.14s, color 0.14s;
    margin-top: 12px;
    z-index: 11;
    position: relative;
    min-height: 32px;
    min-width: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-new-btn span {
    color: #232323;
    font-weight: bold;
    filter: none;
}
.news-new-btn:hover,
.news-new-btn:focus {
    background: #ffe16b;
    color: #232323 !important;
    border-color: #ffe16b;
    box-shadow: 0 0 0 4px rgba(255,225,107,0.16);
}
.news-new-btn:active {
    background: #ffe16b;
    color: #232323 !important;
    border-color: #ffe16b;
    box-shadow: 0 0 0 2px rgba(255,225,107,0.09);
}
@media (max-width: 480px) {
    .ui-panel, .account-root-panel {
        min-width: 97vw;
        max-width: 99vw;
        padding: 10px 2vw 14px 2vw;
    }
    h1, h2 { font-size: 16px; }
    .news-new-btn {
        font-size: 0.98em;
        padding: 5px 7px;
        min-width: 77px;
        min-height: 27px;
    }
    .menu-top-ui {
        height: 48px;
    }
}
@media (max-width: 400px) {
    .main-menu-panel {
        margin-top: 2vw;
    }
    .news-new-btn {
        font-size: 0.92em;
        padding: 4px 4px;
        min-width: 60px;
        min-height: 22px;
    }
    .menu-top-ui {
        height: 38px;
    }
}
.ui-panel, .account-root-panel {
    background: rgba(20, 22, 32, 0.97);
    border-radius: 13px;
    border: 2.5px solid #2e3b53;
    box-shadow: 0 4px 36px #000c, 0 0 0 7px #23273c44 inset;
    padding: 22px 26px 26px 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 320px;
    min-height: 260px;
    width: 370px;
    animation: fadein .42s;
    position: relative;
    align-items: center;
    justify-content: center;
    overflow: visible;
    max-width: 97vw;
    box-sizing: border-box;
}
.main-menu-panel {
    z-index: 9;
    position: relative;
    overflow: visible;
}
.news-modal-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 370px;
    min-width: 320px;
    max-width: 97vw;
    min-height: 180px;
    transform: translate(-50%, -50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(20, 22, 32, 0.98);
    border-radius: 13px;
    border: 2.5px solid #2e3b53;
    box-shadow: 0 4px 36px #000c, 0 0 0 7px #23273c44 inset;
    padding: 22px 26px 26px 26px;
    gap: 0;
    animation: none !important;
}
.news-title {
    margin-bottom: 0;
    margin-top: 0;
    text-align: center;
}
#newsCloseBtn {
    margin-top: 0;
    margin-bottom: 10px;
}
.news-modal-content {
    width: 100%;
    color: #ffe16b;
    font-size: 15px;
    white-space: pre-line;
    overflow-y: auto;
    max-height: 160px;
    margin: 0;
    margin-bottom: 0;
}
@media (max-width: 480px) {
    .ui-panel, .account-root-panel {
        min-width: 97vw;
        max-width: 99vw;
        padding: 10px 2vw 14px 2vw;
    }
    h1, h2 { font-size: 16px; }
}
@keyframes fadein {
    0% { opacity: 0; transform: translateY(35px);}
    100% { opacity: 1; transform: translateY(0);}
}
.game-title {
    font-family: 'Segoe UI Black', 'Arial Black', sans-serif;
    text-shadow:
        0 4px 24px #0e1228cc,
        0 2px 12px #38cfff77,
        0 0 1px #4de,
        0 0 0 #fff;
    font-size: 2.5em;
    letter-spacing: 2.2px;
    margin-bottom: 12px;
    color: #68d6ff;
    font-weight: bold;
    text-align: center;
}
.main-btn,
button {
    background: linear-gradient(to bottom, #e9a74d 0%, #e37900 100%) !important;
    color: #fff !important;
    font-size: 17px;
    border: 2.5px solid #b7720c;
    border-radius: 9px;
    padding: 12px 0;
    margin: 12px 0 0 0;
    width: 100%;
    max-width: 320px;
    cursor: pointer;
    box-shadow:
        0 4px 0 #b7720c,
        0 0 0 5px #ffb74d33 inset,
        0 0 17px 3px #ff98001a inset;
    font-weight: 700;
    position: relative;
    transition: background .19s, color .17s, box-shadow .19s, filter .13s, border-color .14s;
    overflow: visible;
    z-index: 2;
}
.main-btn.main-btn-orange { background: linear-gradient(to bottom, #ffb74d 0%, #ff9800 100%) !important; color: #fff !important; }
.main-btn.main-btn-green { background: linear-gradient(to bottom, #88bb7d 0%, #357a38 100%) !important; color: #eaf6fa !important; }
.main-btn.main-btn-back { background: linear-gradient(to bottom, #e2be82 0%, #bc882d 100%) !important; color: #6b3d15 !important; }
.main-btn.main-btn-blue,
.main-btn.blue { background: linear-gradient(to bottom, #36a0ff 0%, #0073b8 100%) !important; color: #fff !important; }
.main-btn:active,
button:active { filter: brightness(0.95) contrast(1.03); }
.main-btn:disabled,
button:disabled,
.btn-disabled {
    background: #bca774 !important;
    color: #a49782 !important;
    border-color: #bca774 !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    box-shadow: none !important;
    filter: grayscale(0.8) !important;
}
.logout-btn-account.compact {
    background: linear-gradient(to bottom,#ff1744 0%,#b71c1c 100%) !important;
    color: #fff !important;
    border: 2.5px solid #b71c1c !important;
    box-shadow: 0 4px 0 #b71c1c, 0 0 0 5px #ff174444 inset;
    font-size: 13px;
    padding: 7px 0 6px 0;
    border-radius: 11px;
    width: 74px;
    min-width: 74px;
    max-width: 130px;
    cursor: pointer;
    font-weight: 700;
    outline: none;
    z-index: 3;
    transition: background .19s, color .17s, box-shadow .19s, filter .13s;
    line-height: 1.18;
    white-space: pre-line;
    text-align: center;
    position: absolute;
    right: 16px;
    top: 10px;
    display: block;
}
.logout-btn-account.compact:active {
    background: linear-gradient(to bottom, #b71c1c 0%, #ff1744 100%) !important;
    box-shadow: 0 2px 0 #b71c1c, 0 0 5px 1px #ff174466 inset !important;
    filter: brightness(0.97) contrast(1.15);
}
.logout-btn-account.compact:hover {
    filter: brightness(1.08) contrast(1.13);
    color: #ffe16b;
}
.account-info-block {
    font-size: 16px;
    margin-bottom: 6px;
    padding-right: 70px;
}
.profile-nick {
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 8px;
    margin-top: 2px;
    width: 100%;
    letter-spacing: 1px;
}
.input-row {
    position: relative;
    margin-bottom: 2px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    font-size: 14px;
    color: #b0b4c3;
}
input[type="text"], input[type="password"], input[type="email"] {
    box-sizing: border-box;
    width: 100%;
    margin: 2px 0;
    padding: 12px 40px 12px 12px;
    font-size: 16px;
    border-radius: 8px;
    background: #181b24;
    color: #eaf6fa;
    border: 2px solid #2f3549;
    outline: none;
    transition: border .18s, box-shadow .18s;
    font-family: inherit;
    box-shadow: 0 1px 0 #3362ff11 inset;
    min-height: 44px;
    height: 44px;
}
input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus {
    border: 2px solid #38cfff;
    box-shadow: 0 0 0 2px #38cfff33;
}
.eye-btn {
    position: absolute;
    top: 50%;
    right: 13px;
    transform: translateY(-50%);
    width: 28px;
    height: 18px;
    color: #b0b4c3 !important;
    cursor: pointer;
    opacity: 0.62;
    z-index: 30;
    padding: 0 2px;
    user-select: none;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.13s, filter 0.13s;
}
.eye-btn svg {
    display: block;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 1px 3px #191a2280);
}
.eye-btn svg ellipse {
    stroke: #b0b4c3 !important;
    fill: #23273c !important;
    fill-opacity: 0.28 !important;
    stroke-opacity: 0.48 !important;
}
.eye-btn svg circle {
    fill: #b0b4c3 !important;
    fill-opacity: 0.48 !important;
}
.eye-btn svg line {
    stroke: #e25b5b !important;
    stroke-width: 2.4 !important;
    stroke-linecap: round !important;
    stroke-opacity: 0.58 !important;
}
.eye-btn:active,
.eye-btn:focus {
    filter: brightness(0.92);
    opacity: 0.8;
}
.eye-btn:hover {
    filter: brightness(1.1) contrast(1.08);
    opacity: 0.78;
}
.terms-row input[type="checkbox"] {
    margin-right: 6px;
    width: 18px;
    height: 18px;
    accent-color: #ff9800;
}
.terms-row a {
    color: #ff9800;
    text-decoration: underline;
}
#loginStatus {
    font-size: 13px;
    color: #ff6d7a;
    min-height: 16px;
    height: 16px;
    margin-bottom: -2px;
    margin-top: -2px;
    transition: color .18s;
    letter-spacing: 0.02em;
}
.loader {
    border: 4px solid #334b64;
    border-top: 4px solid #ff9800;
    border-radius: 50%;
    width: 33px;
    height: 33px;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}
@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}
.slider-setting {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
    font-size: 1.05em;
}
.slider-setting label { min-width: 75px; }
.slider-setting input[type=range] {
    width: 125px;
    accent-color: #ff9800;
    border-radius: 8px;
    background: linear-gradient(90deg,#ff9800,#ffce26 70%);
    height: 8px;
}
.slider-setting span {
    font-weight: bold;
    min-width: 58px;
    text-align: left;
}
.gui-grid {
    width: 100%;
    max-width: 380px;
    min-width: 280px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 18px;
    margin: 22px 0 16px 0;
    justify-items: stretch;
}
.gui-btn {
    min-height: 72px;
    font-size: 19px;
    z-index: 2;
    position: relative;
}
.account-panel {
    min-width: 310px;
    max-width: 370px;
    padding: 18px 18px 18px 18px;
    left: 0; right: 0;
    margin: 0 auto;
}
.account-header {
    font-weight: bold;
    font-size: 1.2em;
    color: #fbb040;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.close-btn {
    font-size: 1.3em;
    background: transparent;
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 2px 9px;
    border-radius: 6px;
    transition: background 0.13s;
}
.close-btn:hover { background: #3337; }
.account-info-block {
    font-size: 16px;
    margin-bottom: 6px;
}
.acc-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 1em;
    width: 100%;
}
.edit-form input[type="password"], .edit-form input[type="email"] {
    width: 96%;
    padding: 10px 7px;
    font-size: 15px;
    margin: 6px 0;
    border-radius: 8px;
    border: 1.5px solid #2f3549;
    background: #191b23;
    color: #eaf6fa;
}
.edit-form button {
    margin-top: 2px;
}
.edit-status {
    font-size: 13px;
    min-height: 17px;
    margin-top: 2px;
    color: #ff9800;
}
#emailLoginPage, #emailResetPage, #bindEmailPage, .account-root-panel {
    min-width: 320px;
    width: 340px;
    max-width: 99vw;
}
#emailLoginCodeSection, #bindCodeSection, #resetCodeSection, #resetPassSection {
    width: 100%;
    margin-top: 5px;
}
#emailLoginStatus, #resetStatus, #bindEmailStatus {
    min-height: 20px;
    width: 100%;
    text-align: left;
    font-size: 14px;
}
.account-root-panel {
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    max-width: 99vw;
    max-height: 99vh;
    justify-content: center;
}
body, .ui-panel, .main-btn, .account-root-panel, .account-panel, input, button, h1, h2, h3, span, b, label, .acc-row, .account-info-block, .gui-grid, .slider-setting, .terms-row {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
}
.game-world-panel {
    position: fixed !important;
    left: 0; top: 0;
    width: 100vw;
    height: 100vh;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    z-index: 1000;
    min-width: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
    animation: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
#game-canvas {
    background: transparent !important;
    touch-action: none;
}
#mini-map {
    box-shadow: 0 4px 18px #23273c88;
}
#mini-canvas {
    background: #181b24;
    border-radius: 12px;
}
#joystick {
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}
.main-btn.main-btn-back {
    min-width: 80px;
    min-height: 36px;
    font-size: 15px;
}