* { box-sizing: border-box; }
:root { color-scheme: light; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; color: #79512f; }
body { margin: 0; min-height: 100svh; background: #164d57 url('/assets/hero-world.jpg') center center / cover fixed no-repeat; }
body::before { content: ""; position: fixed; inset: 0; background: rgba(7, 43, 48, .28); pointer-events: none; }
.game-entry { position: relative; width: min(100% - 32px, 480px); margin: 0 auto; padding: 24px 0 18px; }
.game-logo { display: block; width: min(76%, 320px); height: auto; margin: 0 auto 23px; filter: drop-shadow(0 5px 0 rgba(25, 37, 43, .35)); }
.account-panel { position: relative; padding: 52px 28px 22px; border: 7px solid #754a2d; border-radius: 32px; background: linear-gradient(135deg, #fff1ca, #fff4d2 50%, #f3dcac); box-shadow: inset 0 0 0 3px #fff8db, inset 0 -9px 0 #dcb373, 0 8px 0 #473d2a, 0 15px 32px #102e3b55; }
.account-panel::before, .account-panel::after { content: ""; position: absolute; top: 22px; width: 12px; height: 12px; border: 3px solid #976935; border-radius: 50%; background: #ffd57c; }
.account-panel::before { left: 16px; } .account-panel::after { right: 16px; }
h1 { position: absolute; top: -23px; left: 50%; transform: translateX(-50%); margin: 0; min-width: 210px; padding: 12px 28px; border: 3px solid #6a452b; border-radius: 10px; background: linear-gradient(#9b6637, #75482d); box-shadow: inset 0 3px 0 #b88a51, 0 4px 0 #49341f; color: #fff0c3; font-size: 27px; letter-spacing: 5px; text-align: center; text-shadow: 0 2px #4b2e19; white-space: nowrap; }
.adventure-caption { margin: 8px 0 22px; text-align: center; color: #9c774e; font-size: 15px; letter-spacing: 2px; }
.account-tabs { display: flex; gap: 14px; margin-bottom: 25px; }
button, input { font: inherit; }
button { cursor: pointer; }
.account-tabs button { flex: 1; border: 2px solid #998355; border-radius: 11px; padding: 10px; background: #e5d6af; color: #88744e; font-size: 21px; font-weight: 700; box-shadow: inset 0 3px #fff2d0, 0 4px #b19c6e; }
.account-tabs button.is-active { border-color: #ad772c; background: linear-gradient(#ffe29a, #ffd06b); color: #784619; box-shadow: inset 0 3px #fff2c2, 0 4px #a9752d; }
[hidden] { display: none !important; }
.field { display: block; margin: 0 0 18px; }
.field > span { display: block; margin-bottom: 9px; font-weight: 700; font-size: 17px; letter-spacing: 2px; }
.field input { width: 100%; min-width: 0; height: 53px; padding: 0 14px; border: 2px solid #b99765; border-radius: 10px; background: #fffbec; color: #674627; box-shadow: inset 0 2px 3px #ae89521c; font-size: 15px; }
input::placeholder { color: #ad9775; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid #287d88; outline-offset: 3px; }
.agreement-check { display: flex; align-items: flex-start; gap: 8px; margin: 20px 0 24px; font-size: 13px; line-height: 1.9; color: #96734d; }
.agreement-check input { flex-shrink: 0; width: 20px; height: 20px; margin: 2px 0 0; accent-color: #b47526; cursor: pointer; }
a { color: #a55e22; text-underline-offset: 3px; }
.agreement-check a { font-weight: 700; text-decoration: none; }
.submit-button { width: 100%; min-height: 57px; padding: 10px 8px; border: 2px solid #a96f25; border-radius: 13px; background: linear-gradient(#ffe595, #ffc64f); box-shadow: inset 0 3px #fff3b6, inset 0 -4px #e5a433, 0 5px #774922; color: #77441b; font-size: 23px; font-weight: 800; text-shadow: 0 1px #ffe5a3; }
.submit-button:disabled { cursor: wait; opacity: .7; }
.form-message { min-height: 20px; margin: 13px 0 0; font-size: 13px; text-align: center; line-height: 1.5; color: #467149; }
.form-message.error { color: #ac3929; }
.account-note { margin: 4px 0 18px; text-align: center; color: #a48a65; font-size: 13px; }
.operator-footer { border-top: 1px solid #ddc498; padding-top: 13px; text-align: center; color: #94774f; font-size: 13px; line-height: 1.6; }
.operator-footer p { margin: 4px 0; } .operator-footer a { color: inherit; }
.health-note { margin: 20px -8px 0; color: #fff3d6; text-shadow: 0 1px 3px #152f29; font-size: 10px; line-height: 1.8; text-align: center; }
@media (max-width: 380px) { .game-entry { width: calc(100% - 24px); padding-top: 18px; } .account-panel { padding: 48px 18px 20px; } .field input { font-size: 13px; } .agreement-check { font-size: 12px; gap: 6px; } h1 { min-width: 190px; font-size: 24px; } }
@media (min-width: 800px) { .game-entry { padding-top: 30px; } body { background-size: cover; } }

/* Match Infinite Bella's parchment dialogs, antique gold frames and green actions. */
:root { color: #49371e; }
body::before { background: linear-gradient(180deg, #21131499, #291b1270 55%, #201314b8); }
.game-logo { filter: drop-shadow(0 4px 0 #271911) drop-shadow(0 0 15px #edc76633); }
.account-panel { border: 3px solid #d3ad57; border-radius: 9px; background: radial-gradient(ellipse at 50% 15%, #f3e5b9aa, transparent 60%), linear-gradient(100deg, #d4bd80, #ecdcaa 12%, #e9d69b 85%, #cfb477); box-shadow: inset 0 0 0 3px #72502a, inset 0 0 0 6px #ead18c, inset 0 0 30px #8a622740, 0 0 0 3px #51371f, 0 0 0 5px #b38940, 0 12px 28px #160f14b3; }
.account-panel::before, .account-panel::after { top: 10px; width: 24px; height: 24px; border: 2px solid #8c682e; border-radius: 0; background: linear-gradient(135deg, #f4dc93, #b08b45); transform: rotate(45deg); box-shadow: inset 0 0 0 3px #dfc27c; }
.account-panel::before { left: 12px; } .account-panel::after { right: 12px; }
h1 { top: -26px; padding: 13px 30px; border: 2px solid #e7c56f; border-radius: 3px 3px 15px 15px; background: linear-gradient(110deg, #48331c, #7f5522 50%, #48331c); box-shadow: inset 0 0 0 2px #442c17, inset 0 4px 0 #a4813e, 0 3px 0 #4b321c; color: #fff1b9; font-size: 25px; letter-spacing: 4px; text-shadow: 0 2px #38250f; }
.adventure-caption { color: #786137; }
.account-tabs button { border: 2px solid #7e683f; border-radius: 5px; background: linear-gradient(#d1bc8e, #ab9369); color: #57472c; box-shadow: inset 0 0 0 2px #e6d1a0, 0 3px #665034; }
.account-tabs button.is-active { border-color: #6c421b; background: linear-gradient(#e8bf63, #b78231); color: #fff3bb; text-shadow: 0 2px #765020; box-shadow: inset 0 0 0 2px #f7d98a, 0 3px #624021; }
.field > span { color: #4a391e; }
.field input { border: 2px solid #a0834d; border-radius: 4px; background: #f4e8bf; color: #40321e; box-shadow: inset 0 2px 6px #80643233, 0 1px #fff2c0; }
input::placeholder { color: #978057; }
.agreement-check { color: #79613b; }
.agreement-check input { accent-color: #49863b; }
.agreement-check a { color: #80511c; }
.submit-button { border: 2px solid #335b29; border-radius: 9px; background: linear-gradient(#a5d96c, #75b951 48%, #4e983d); box-shadow: inset 0 0 0 2px #d6e9a0, inset 0 -5px #397b32, 0 4px #2a4722; color: #fff8cf; text-shadow: 0 2px #3e6827, 1px 0 #3e6827, -1px 0 #3e6827; }
.submit-button:hover:not(:disabled) { filter: brightness(1.08); }
.account-note { color: #92784d; }
.operator-footer { border-color: #b49a5e; color: #79613b; }
.health-note { color: #e4d2a0; }

.legal-trigger { display: inline; padding: 0; border: 0; background: none; color: #80511c; font: inherit; font-weight: 700; line-height: inherit; }
.legal-trigger:hover { text-decoration: underline; text-underline-offset: 3px; }
body.legal-is-open { overflow: hidden; }
.legal-dialog { width: min(92vw, 560px); max-height: 88svh; padding: 0; overflow: hidden; border: 3px solid #d3ad57; border-radius: 9px; background: linear-gradient(110deg, #ddc88d, #efdfae 50%, #dac38a); color: #49371e; box-shadow: inset 0 0 0 3px #72502a, 0 0 0 3px #51371f, 0 15px 60px #100b14b3; }
.legal-dialog[open] { display: flex; flex-direction: column; }
.legal-dialog::backdrop { background: #130e15bb; backdrop-filter: blur(3px); }
.legal-dialog-header { position: relative; flex-shrink: 0; padding: 14px 56px; border-bottom: 2px solid #b48a43; background: linear-gradient(110deg, #48331c, #7f5522 50%, #48331c); text-align: center; }
.legal-dialog-header h2 { margin: 0; font-size: 23px; letter-spacing: 3px; color: #fff1b9; text-shadow: 0 2px #38250f; }
.legal-close { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; padding: 0; border: 2px solid #e7c56f; border-radius: 50%; background: #50381d; color: #ffe7a0; font-size: 29px; line-height: 26px; box-shadow: inset 0 0 0 2px #98713a; }
.legal-dialog-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 23px; font-size: 14px; line-height: 1.9; }
.legal-dialog-body h2 { margin: 20px 0 8px; font-size: 17px; color: #654618; }
.legal-dialog-body p { margin: 8px 0; }
.legal-dialog-body ol, .legal-dialog-body ul { padding-left: 22px; }
.legal-dialog-body .updated { text-align: center; color: #8a6b3c; font-size: 12px; }
.legal-dialog-footer { flex-shrink: 0; padding: 12px 24px 18px; border-top: 1px solid #b49a5e; text-align: center; }
.legal-dialog-footer .submit-button { max-width: 210px; min-height: 43px; font-size: 18px; }

/* Match the game's navy and cyan server selection screen. */
:root { color-scheme: dark; color: #f1f5fa; }
body { background: radial-gradient(ellipse at 50% 0%, #153d48, transparent 65%), #07121d; }
body::before { background: none; }
.game-entry { width: min(100% - 32px, 540px); padding-top: 30px; }
.game-logo { width: 230px; margin-bottom: 32px; }
.account-panel { padding: 62px 32px 26px; border: 1px solid #326171; border-radius: 24px; background: linear-gradient(160deg, #111d2d, #100e20); box-shadow: inset 0 0 35px #19394433, 0 20px 50px #0005; }
.account-panel::before, .account-panel::after { top: 21px; width: 60px; height: 1px; border: 0; border-radius: 0; background: linear-gradient(90deg, transparent, #58c2ce); transform: none; box-shadow: none; }
.account-panel::before { left: 24px; } .account-panel::after { right: 24px; transform: rotate(180deg); }
h1 { top: 26px; min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: #f0ffff; font-family: "STKaiti", "KaiTi", serif; font-size: 32px; text-shadow: 0 0 8px #35d5e5, 0 0 20px #1aa3b6; letter-spacing: 6px; }
.adventure-caption { margin: 18px 0 24px; color: #9ca8b4; }
.account-tabs { gap: 12px; }
.account-tabs button { border: 1px solid #3c7888; border-radius: 15px 6px; background: #223647; color: #a3b7c4; box-shadow: none; font-size: 19px; }
.account-tabs button.is-active { border-color: #59bdc9; background: linear-gradient(120deg, #37596a, #294353); color: #f0fbff; text-shadow: none; box-shadow: inset 0 0 16px #5fa5b51a; }
.field > span { color: #dce9ef; font-size: 16px; }
.field input { border: 1px solid #407b8b; border-radius: 14px 5px; background: linear-gradient(120deg, #324f60, #273d4d); color: #fff; box-shadow: none; }
input::placeholder { color: #9baebb; }
.agreement-check { color: #b1b8c5; }
.agreement-check input { accent-color: #ffdb39; }
.legal-trigger, .agreement-check a { color: #42de9a; }
.submit-button { border: 3px solid #ffe592; border-radius: 4px; background: linear-gradient(#fff09d, #f8d46e 50%, #dfa538); box-shadow: inset 0 0 0 3px #ffe499, 0 5px #875725; color: #6c3614; text-shadow: none; font-family: "STKaiti", "KaiTi", serif; font-size: 25px; }
.operator-footer { border-top: 1px solid #305363; padding-top: 16px; color: #9aa4b1; }
.health-note { color: #8b929f; text-shadow: none; }
.legal-dialog { border: 1px solid #417c8a; border-radius: 18px; background: linear-gradient(160deg, #152537, #100f20); color: #c4ced7; box-shadow: 0 20px 60px #0009; }
.legal-dialog-header { border-bottom: 1px solid #305d6c; background: linear-gradient(110deg, #203d4b, #142433); }
.legal-dialog-header h2 { color: #e7fcff; text-shadow: 0 0 8px #42c6d8; }
.legal-close { border: 1px solid #54b1c0; background: #203a49; color: #d8faff; box-shadow: none; }
.legal-dialog-body h2 { color: #e2f5fa; }
.legal-dialog-body .updated { color: #91a4b3; }
.legal-dialog-body a { color: #42de9a; }
.legal-dialog-footer { border-top: 1px solid #305d6c; }
@media (max-width: 380px) { .account-panel { padding: 62px 20px 22px; } }
