:root {
  color-scheme: dark;
  --entry-bg: #0c1115;
  --entry-panel: #10171c;
  --entry-text: #f1ede5;
  --entry-muted: #a6acae;
  --entry-gold: #d3b57b;
  --entry-gold-light: #ead2a0;
  --entry-line: rgba(211, 181, 123, 0.19);
  --entry-error: #f1a29a;
  --entry-success: #abd0b3;
  font-family: 'Manrope', sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--entry-bg); }
body.login-page { margin: 0; min-width: 280px; min-height: 100svh; color: var(--entry-text); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: 0.65; }
a { color: inherit; text-decoration: none; }
button, a, input, select { outline-offset: 5px; }
:focus-visible { outline: 2px solid var(--entry-gold-light); }
::selection { color: var(--entry-bg); background: var(--entry-gold-light); }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.icon { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.world-backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--entry-bg); }
.world-backdrop picture, .world-backdrop img { display: block; width: 100%; height: 100%; }
.world-backdrop img { object-fit: cover; object-position: center; }
.world-backdrop::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7, 13, 17, 0.69), rgba(7, 13, 17, 0.24) 43%, rgba(7, 13, 17, 0.78) 74%, #0c1115), linear-gradient(0deg, #0c1115, transparent 30%, transparent 78%, rgba(7, 13, 17, 0.6));
}

.entry-header { max-width: 1600px; min-height: 114px; margin: 0 auto; padding: 28px 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand img { width: 48px; height: 48px; }
.brand-name { font-family: 'Cinzel', Georgia, serif; font-size: 23px; font-weight: 600; letter-spacing: 3px; line-height: 1.1; }
.brand-caption { display: block; margin-top: 7px; color: var(--entry-muted); font: 500 9px/1.2 'Manrope', sans-serif; letter-spacing: 2.5px; text-transform: uppercase; }
.entry-language-picker { --language-picker-bg: rgba(16, 23, 28, 0.75); --language-picker-border: var(--entry-line); --language-picker-text: #cacbc7; border-radius: 4px; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 5px 10px; z-index: 2; }
.entry-language-picker label { font-size: 11px; font-weight: 500; }
.entry-language-picker .fa-globe { display: inline-block; width: 13px; height: 13px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cellipse cx='12' cy='12' rx='4' ry='9'/%3E%3Cpath d='M3 12h18M5 7h14M5 17h14'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cellipse cx='12' cy='12' rx='4' ry='9'/%3E%3Cpath d='M3 12h18M5 7h14M5 17h14'/%3E%3C/svg%3E") center / contain no-repeat; }
.entry-language-picker select { width: 126px; border: 0; border-radius: 2px; background: transparent; font-size: 11px; font-weight: 500; min-height: 34px; }

.entry-main { width: 100%; max-width: 1440px; min-height: calc(100svh - 184px); margin: 0 auto; padding: 38px 64px 58px; display: grid; grid-template-columns: minmax(0, 1fr) 410px; align-items: center; gap: clamp(56px, 8vw, 140px); }
.world-intro { padding-bottom: 25px; }
.eyebrow { display: flex; align-items: center; gap: 14px; color: var(--entry-gold); font-size: 10px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; margin: 0 0 29px; }
.eyebrow > span { width: 35px; height: 1px; background: var(--entry-gold); }
.world-intro h1 { margin: 0; font-family: 'Cinzel', Georgia, serif; font-size: clamp(46px, 4.8vw, 72px); font-weight: 400; letter-spacing: -1.8px; line-height: 1.17; text-wrap: balance; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25); }
.world-intro h1 em { color: var(--entry-gold-light); font-style: normal; }
.world-description { max-width: 350px; color: #c1c4c3; font-size: 14px; line-height: 1.9; margin: 26px 0 0; text-wrap: pretty; }
.intro-divider { display: flex; align-items: center; gap: 12px; margin: 36px 0 25px; width: 238px; color: var(--entry-gold); }
.intro-divider span { height: 1px; flex: 1; background: linear-gradient(90deg, var(--entry-line), var(--entry-gold)); }
.intro-divider span:last-child { transform: rotate(180deg); }
.intro-divider .icon { width: 13px; height: 13px; }
.world-features { display: flex; flex-wrap: wrap; gap: 20px 28px; padding: 0; margin: 0; list-style: none; }
.world-features li { display: flex; align-items: center; gap: 9px; color: #c4c5be; font-size: 10px; line-height: 1.5; }
.world-features .icon { color: var(--entry-gold); width: 19px; height: 19px; }

.auth-panel { position: relative; width: 100%; background: linear-gradient(145deg, rgba(23, 30, 35, 0.97), rgba(12, 18, 23, 0.97)); border: 1px solid var(--entry-line); border-radius: 5px; padding: 31px 33px 0; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32); }
.auth-panel::before { content: ''; position: absolute; height: 1px; top: -1px; left: 12%; right: 12%; background: linear-gradient(90deg, transparent, var(--entry-gold), transparent); }
.panel-crest { display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--entry-gold); }
.panel-crest > span { width: 33px; height: 1px; background: var(--entry-line); }
.panel-crest .icon { width: 28px; height: 28px; }
.panel-eyebrow { text-align: center; margin: 12px 0 25px; color: var(--entry-gold); text-transform: uppercase; font-size: 9px; font-weight: 600; letter-spacing: 2.5px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 27px; border-bottom: 1px solid var(--entry-line); }
.auth-tabs button { position: relative; min-height: 44px; padding: 0 4px 12px; color: var(--entry-muted); background: none; border: 0; font-size: 12px; font-weight: 600; transition: color 160ms ease; }
.auth-tabs button[aria-selected='true'] { color: var(--entry-gold-light); }
.auth-tabs button[aria-selected='true']::after { content: ''; position: absolute; height: 2px; bottom: -1px; left: 12%; right: 12%; background: var(--entry-gold); }
.auth-tabs button:hover { color: var(--entry-text); }
.form-heading { margin-bottom: 24px; }
.form-heading h2 { margin: 0 0 9px; font-family: 'Cinzel', Georgia, serif; font-size: 23px; font-weight: 500; line-height: 1.4; letter-spacing: -0.4px; }
.form-heading p { margin: 0; color: var(--entry-muted); font-size: 12px; line-height: 1.7; }
.form-group { margin: 0 0 19px; }
.form-group label { display: block; margin-bottom: 8px; color: #d6d8d6; font-size: 11px; font-weight: 600; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.label-row label { margin: 0; }
.form-group input { width: 100%; height: 47px; min-width: 0; padding: 0 14px; background: rgba(7, 12, 16, 0.65); border: 1px solid #354044; border-radius: 3px; color: var(--entry-text); font-size: 14px; transition: border-color 160ms ease, background-color 160ms ease; }
.form-group input::placeholder { color: #778289; opacity: 1; }
.form-group input:hover { border-color: #69716a; }
.form-group input:focus { background-color: #101a20; border-color: var(--entry-gold); outline: 2px solid rgba(211, 181, 123, 0.18); outline-offset: 2px; }
.form-group input[aria-invalid='true'] { border-color: var(--entry-error); }
.form-group input:-webkit-autofill { -webkit-text-fill-color: var(--entry-text); box-shadow: 0 0 0 1000px #101a20 inset; caret-color: var(--entry-text); }
.password-field { position: relative; }
.password-field input { padding-right: 50px; }
.password-toggle { position: absolute; top: 1px; right: 1px; display: grid; place-items: center; width: 46px; height: 45px; color: #98a1a4; border: 0; background: transparent; border-radius: 2px; }
.password-toggle:hover { color: var(--entry-gold-light); }
.password-toggle .icon { width: 19px; height: 19px; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--entry-gold); font-size: inherit; line-height: inherit; text-align: inherit; }
.text-button:hover, .terms a:hover { color: var(--entry-gold-light); text-decoration: underline; text-underline-offset: 4px; }
.label-row .text-button { font-size: 10px; }
.primary-button { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; min-height: 49px; padding: 13px 15px; margin-top: 7px; border: 1px solid #d9bf8d; border-radius: 3px; background: linear-gradient(100deg, #b7975b, #dfc48e); color: #1c1c17; font-size: 11px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; transition: background-color 160ms ease, box-shadow 160ms ease; }
.primary-button .icon { width: 19px; height: 19px; stroke-width: 1.8; }
.primary-button:hover:not(:disabled) { background: var(--entry-gold-light); box-shadow: 0 4px 20px rgba(211, 181, 123, 0.14); }
.auth-form[aria-busy='true'] .primary-button .icon { display: none; }
.auth-form[aria-busy='true'] .primary-button::after { content: ''; width: 15px; height: 15px; border: 2px solid rgba(28, 28, 23, 0.3); border-top-color: #1c1c17; border-radius: 50%; animation: entry-spin 750ms linear infinite; }
.new-player { color: var(--entry-muted); text-align: center; font-size: 11px; line-height: 1.8; margin: 21px 0 0; }
.new-player .text-button { font-weight: 600; }
.terms { text-align: center; color: #9aa4a9; font-size: 9px; line-height: 1.8; margin: 22px 0; }
.terms a { color: #bdbba9; text-decoration: underline; text-underline-offset: 3px; }
.panel-footnote { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 17px 6px; border-top: 1px solid var(--entry-line); color: #a0abae; font-size: 10px; }
.panel-footnote .icon { color: var(--entry-gold); width: 13px; height: 13px; }
.google-button { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 47px; padding: 12px; border: 1px solid #354044; border-radius: 3px; background: rgba(255, 255, 255, 0.02); font-size: 12px; font-weight: 500; }
.google-button:hover { border-color: var(--entry-gold); background: rgba(255, 255, 255, 0.05); }
.auth-divider { display: flex; align-items: center; gap: 12px; color: #89959b; font-size: 10px; margin: 18px 0; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; flex: 1; background: #2c373d; }
.back-button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 11px; margin: -6px 0 13px; }
.field-hint { margin: 8px 0 0; color: #a1abad; font-size: 10px; line-height: 1.6; }
.form-group .verification-code { font-size: 25px; height: 62px; letter-spacing: 8px; text-align: center; padding-left: 22px; }
.auth-notice { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid rgba(241, 162, 154, 0.32); border-radius: 3px; background: rgba(241, 162, 154, 0.07); color: var(--entry-error); font-size: 12px; line-height: 1.7; padding: 12px; margin-bottom: 21px; overflow-wrap: anywhere; }
.auth-notice--success { color: var(--entry-success); background: rgba(171, 208, 179, 0.07); border-color: rgba(171, 208, 179, 0.3); }
.auth-notice button { border: 0; background: none; color: inherit; font-size: 22px; min-width: 30px; min-height: 32px; }
.beta-banner { color: var(--entry-gold-light); background: rgba(211, 181, 123, 0.06); border-left: 2px solid var(--entry-gold); padding: 10px 12px; font-size: 11px; line-height: 1.7; margin: 0 0 21px; }
.entry-footer { min-height: 70px; margin: 0 64px; padding: 22px 0; border-top: 1px solid rgba(211, 181, 123, 0.13); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #a0a9ad; font-size: 9px; line-height: 1.7; letter-spacing: 0.7px; }

@keyframes entry-spin { to { transform: rotate(360deg); } }
@media (min-width: 1700px) { .entry-footer { max-width: 1472px; margin-inline: auto; } }
@media (max-width: 1150px) {
  .entry-header { padding-inline: 38px; }
  .entry-main { padding-inline: 38px; gap: 40px; grid-template-columns: minmax(0, 1fr) 380px; }
  .world-intro h1 { font-size: 46px; letter-spacing: -1px; }
  .world-features { flex-direction: column; gap: 15px; }
  .entry-footer { margin-inline: 38px; }
}
@media (max-width: 940px) {
  .entry-header { min-height: 95px; padding: 22px 28px; }
  .entry-main { min-height: calc(100svh - 160px); grid-template-columns: minmax(0, 1fr) 355px; gap: 27px; padding: 25px 28px 45px; }
  .world-intro h1 { font-size: 37px; }
  .eyebrow { letter-spacing: 1.8px; gap: 10px; font-size: 9px; }
  .world-description { font-size: 13px; }
  .auth-panel { padding: 27px 25px 0; }
  .form-heading h2 { font-size: 21px; }
  .entry-footer { margin-inline: 28px; }
}
@media (max-width: 760px) {
  .world-backdrop { position: absolute; height: 750px; }
  .world-backdrop img { object-position: 50% 12%; }
  .world-backdrop::after { background: linear-gradient(0deg, #0c1115, rgba(12, 17, 21, 0.45) 65%, rgba(12, 17, 21, 0.4)), linear-gradient(90deg, rgba(12, 17, 21, 0.42), rgba(12, 17, 21, 0.2)); }
  .entry-header { padding: max(18px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 16px max(20px, env(safe-area-inset-left)); min-height: 82px; gap: 10px; }
  .brand { gap: 9px; }
  .brand img { width: 36px; height: 36px; }
  .brand-name { font-size: 17px; letter-spacing: 2px; }
  .brand-caption { font-size: 7px; letter-spacing: 1.6px; margin-top: 5px; }
  .entry-language-picker { gap: 4px; padding: 3px 7px; }
  .entry-language-picker select { width: 113px; min-height: 34px; padding-right: 12px; font-size: 10px; }
  .entry-language-picker label { font-size: 10px; }
  .entry-main { max-width: 480px; display: flex; flex-direction: column; gap: 29px; min-height: auto; padding: 24px 20px 35px; }
  .world-intro { width: 100%; text-align: center; padding-bottom: 0; }
  .eyebrow { justify-content: center; font-size: 8px; margin-bottom: 15px; letter-spacing: 2.2px; }
  .eyebrow > span { width: 20px; }
  .world-intro h1 { font-size: clamp(30px, 8.9vw, 43px); letter-spacing: -0.8px; line-height: 1.17; }
  .world-description { max-width: 310px; font-size: 12px; line-height: 1.8; margin: 14px auto 0; }
  .intro-divider, .world-features { display: none; }
  .auth-panel { padding: 25px 25px 0; }
  .panel-crest .icon { width: 24px; height: 24px; }
  .panel-eyebrow { margin: 9px 0 18px; font-size: 8px; }
  .auth-tabs { margin-bottom: 22px; }
  .form-heading { margin-bottom: 21px; }
  .form-heading h2 { font-size: 21px; }
  .form-group input { font-size: 16px; min-height: 48px; }
  .form-group label { font-size: 12px; }
  .label-row .text-button { display: inline-flex; align-items: center; min-height: 26px; margin-block: -5px; font-size: 11px; }
  .password-toggle { height: 46px; }
  .primary-button { min-height: 50px; font-size: 11px; }
  .new-player .text-button { display: inline-flex; align-items: center; min-height: 38px; }
  .terms { font-size: 10px; margin-top: 14px; }
  .entry-footer { justify-content: center; flex-wrap: wrap; gap: 3px 18px; margin-inline: 20px; padding-bottom: max(20px, env(safe-area-inset-bottom)); font-size: 9px; }
}
@media (max-width: 360px) {
  .entry-header { padding-inline: 14px; }
  .entry-main { padding-inline: 14px; }
  .auth-panel { padding-inline: 20px; }
  .brand-caption { display: none; }
  .entry-language-picker select { width: 99px; }
  .form-heading h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .auth-form[aria-busy='true'] .primary-button::after { border-style: dotted; border-color: #1c1c17; }
}
.social-button--discord { margin-top: .6rem; color: #d3d7ff; }
