:root {
  color-scheme: light;
  --ink: #243432;
  --muted-ink: #66736d;
  --deep: #10292b;
  --jade: #28665d;
  --jade-light: #dce7d7;
  --paper: #f0e8d2;
  --paper-light: #f8f3e4;
  --line: #c9b98c;
  --gold: #b8893e;
  --gold-light: #e5ca88;
  --danger: #9f3933;
  --ok: #27664e;
  font-family: "Noto Sans", "Microsoft YaHei", "Yu Gothic", "Malgun Gothic", Arial, sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }

body {
  position: relative;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: #10292b;
  color: var(--ink);
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
}

body::before {
  background: url("../update/resource/assets/game_start/login_bg_tw_8d2e3139.jpg") center 36% / cover no-repeat;
  opacity: .72;
}

body::after {
  background:
    linear-gradient(90deg, rgba(6, 25, 27, .58), rgba(8, 26, 28, .12) 55%, rgba(6, 25, 27, .5)),
    linear-gradient(0deg, rgba(5, 20, 22, .55), transparent 42%, rgba(5, 20, 22, .26));
}

button, input, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.wrap {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 36px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  color: var(--paper-light);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
  flex: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--gold-light);
  border-radius: 50% 50% 50% 8px;
  background: linear-gradient(145deg, #a84c35, #6f302a);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .24), inset 0 0 0 3px rgba(239, 211, 146, .16);
  color: #fff0cc;
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 700;
}

.brand-name { font-size: 16px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-login {
  display: grid;
  width: 42px;
  height: 42px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(229, 202, 136, .64);
  border-radius: 50%;
  background: rgba(13, 38, 39, .87);
  color: #fff4d8;
  cursor: pointer;
}
.nav-login svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.nav-login[hidden], .avatar[hidden] { display: none; }
.top-actions .avatar { width: 42px; height: 42px; }

.ui-language {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  color: rgba(248, 243, 228, .83);
  font-size: 13px;
}

.ui-language select {
  min-width: 142px;
  border: 1px solid rgba(229, 202, 136, .64);
  border-radius: 4px 12px 4px 12px;
  padding: 10px 34px 10px 12px;
  background: rgba(13, 38, 39, .87);
  color: #fff4d8;
  cursor: pointer;
}

.launcher-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  min-height: 680px;
  overflow: hidden;
  border: 1px solid rgba(229, 202, 136, .78);
  border-radius: 5px 22px 5px 22px;
  background: rgba(8, 28, 30, .46);
  box-shadow: 0 26px 80px rgba(0, 0, 0, .42), 0 0 0 5px rgba(239, 223, 183, .07);
}

.world-panel {
  position: relative;
  display: flex;
  min-height: 680px;
  align-items: flex-end;
  padding: clamp(28px, 5vw, 62px);
  background: url("../update/resource/assets/game_start/login_bg_4f696aaa.jpg") center 38% / cover no-repeat;
  isolation: isolate;
}

.world-panel::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(9, 31, 32, .93), rgba(9, 31, 32, .52) 29%, transparent 72%),
    linear-gradient(90deg, rgba(9, 31, 32, .26), transparent 74%);
  content: "";
}

.world-copy { max-width: 500px; color: var(--paper-light); }
.world-rule { display: block; width: 58px; height: 3px; margin-bottom: 19px; background: var(--gold-light); }
.world-copy h1 {
  margin: 0;
  color: #fff4d9;
  font-family: Georgia, "Noto Serif", "Microsoft YaHei", serif;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.08;
  text-shadow: 0 3px 22px rgba(0, 0, 0, .4);
}
.control-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 25px;
  padding: clamp(24px, 3.5vw, 42px);
  background:
    radial-gradient(ellipse at 100% 0, rgba(255, 255, 255, .58), transparent 38%),
    repeating-linear-gradient(0deg, rgba(100, 78, 41, .018) 0, rgba(100, 78, 41, .018) 1px, transparent 1px, transparent 5px),
    var(--paper);
  border-left: 1px solid rgba(184, 137, 62, .5);
}

.account-section,
.preference-section { min-width: 0; }
.account-section { padding-bottom: 19px; border-bottom: 1px solid rgba(159, 135, 85, .42); }
.section-heading { margin-bottom: 13px; }
.section-heading h2 { margin: 0; color: var(--deep); font-family: Georgia, "Noto Serif", serif; font-size: 21px; font-weight: 700; }
.account { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.profile { display: flex; min-width: 0; align-items: center; gap: 12px; }
.avatar {
  display: grid;
  width: 52px;
  height: 52px;
  flex: none;
  place-items: center;
  overflow: hidden;
  border: 2px solid #d4b66d;
  border-radius: 50%;
  background: var(--deep);
  box-shadow: 0 0 0 3px rgba(184, 137, 62, .12);
  color: #f3d795;
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}
.avatar:disabled { opacity: 1; cursor: default; }
.avatar:not(:disabled):hover { box-shadow: 0 0 0 4px rgba(184, 137, 62, .22); }
.avatar:focus-visible { outline: 3px solid #ab7627; outline-offset: 3px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-copy { min-width: 0; }
.account-name { overflow-wrap: anywhere; color: var(--ink); font-size: 15px; font-weight: 700; }
.account-meta { min-height: 17px; margin-top: 3px; color: var(--muted-ink); font-size: 12px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.primary,
.secondary {
  min-height: 42px;
  border-radius: 4px 12px 4px 12px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}
.primary { border: 1px solid #174840; background: var(--jade); color: #fff8e8; box-shadow: inset 0 0 0 1px rgba(229, 202, 136, .22); }
.primary:hover { border-color: #9e762f; background: #1e5149; }
.secondary { border: 1px solid #b8aa83; background: rgba(255, 252, 241, .7); color: var(--deep); }
.secondary:hover { border-color: var(--gold); background: #fff8e5; }
button:disabled { opacity: .58; cursor: wait; }

.message { min-height: 18px; margin-top: 8px; color: var(--muted-ink); font-size: 12px; line-height: 1.5; }
.message.error { color: var(--danger); }
.message.ok { color: var(--ok); }

.section-heading-inline { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-heading-inline h2 { font-size: 18px; }
.section-heading-inline p { text-align: right; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.best-ping { display: flex; min-height: 32px; align-items: center; gap: 7px; margin: 0 0 9px; border: 1px solid #b7d0b6; border-radius: 4px 10px 4px 10px; padding: 6px 10px; background: #e3efdf; color: #315c44; font-size: 11px; }
.best-ping strong { margin-left: auto; color: #24563b; font-size: 12px; white-space: nowrap; }
.best-ping[data-state="unavailable"] { border-color: #d0c8ae; background: #eee9d9; color: var(--muted-ink); }
.ping-indicator { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #64a36b; box-shadow: 0 0 0 3px rgba(100, 163, 107, .15); }
.best-ping[data-state="waiting"] .ping-indicator { background: #bb9a4d; box-shadow: 0 0 0 3px rgba(187, 154, 77, .15); }
.choice {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border: 1px solid #c8bd9d;
  border-radius: 3px 13px 3px 13px;
  padding: 10px 13px;
  background: rgba(255, 252, 241, .62);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease;
}
.choice:hover { border-color: var(--jade); background: #fff9e9; }
.region-flag { display: block; width: 34px; height: 23px; flex: none; overflow: hidden; border: 1px solid rgba(36, 52, 50, .18); border-radius: 3px; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.region-copy { display: grid; min-width: 0; flex: 1; gap: 2px; }
.region-copy strong { overflow: hidden; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.region-meta { display: flex; align-items: center; gap: 7px; }
.region-code { color: var(--muted-ink); font-size: 10px; font-weight: 700; letter-spacing: .1em; line-height: 1.2; }
.region-latency { color: var(--muted-ink); font-size: 10px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.choice-check { display: grid; width: 21px; height: 21px; flex: none; place-items: center; margin-left: auto; border: 1px solid #c8bd9d; border-radius: 50%; color: transparent; font-size: 12px; }
.choice.active { border-color: var(--gold); background: linear-gradient(115deg, #e6d4a2, #f7efd9 62%); box-shadow: inset 0 0 0 1px rgba(184, 137, 62, .25); }
.choice.active .choice-check { border-color: #9d762e; background: var(--jade); color: #fff5d8; }
.region-choice.best-ping-region:not(.active) { border-color: #86af8d; box-shadow: inset 0 0 0 1px rgba(38, 102, 78, .12); }
.region-choice.best-ping-region .region-latency { color: #27664e; font-weight: 700; }

.lang { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.lang button {
  display: flex;
  width: 100%;
  min-height: 60px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid #c8bd9d;
  border-radius: 3px 11px 3px 11px;
  padding: 5px 4px;
  background: rgba(255, 252, 241, .6);
  color: #42504a;
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease;
}
.language-flag, svg.launch-language-flag { display: block; width: 30px; height: 20px; flex: none; border: 1px solid rgba(0,0,0,.12); border-radius: 2px; }
.language-label { overflow: hidden; max-width: 100%; text-overflow: ellipsis; }
.lang button:hover { border-color: var(--jade); }
.lang button.active { border-color: var(--jade); background: var(--jade); color: #fff8e8; box-shadow: inset 0 0 0 1px rgba(229, 202, 136, .28); }
.enter-game { width: 100%; margin-top: 14px; }

.choice:focus-visible,
.lang button:focus-visible,
.primary:focus-visible,
.secondary:focus-visible,
.nav-login:focus-visible,
.ui-language select:focus-visible,
.brand:focus-visible,
.register-link:focus-visible { outline: 3px solid #ab7627; outline-offset: 3px; }
.enter-game:focus-visible,
.launch-cancel:focus-visible { outline: 3px solid #ab7627; outline-offset: 3px; }

.modal[hidden] { display: none; }
.modal {
  position: fixed;
  z-index: 5;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 18, 20, .76);
  backdrop-filter: blur(5px);
}
.modal-box {
  width: min(430px, 100%);
  border: 1px solid #b79451;
  border-radius: 5px 20px 5px 20px;
  padding: 23px;
  background: var(--paper-light);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .48), inset 0 0 0 5px rgba(201, 185, 140, .2);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.modal-head h2 { margin: 0; color: var(--deep); font-family: Georgia, "Noto Serif", serif; font-size: 21px; }
.close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--muted-ink); font-size: 25px; cursor: pointer; }
.close:hover { background: #ece3cd; color: var(--deep); }
.field { display: block; margin: 13px 0; }
.field > span { display: block; margin-bottom: 6px; color: #586761; font-size: 12px; }
.field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c4b995;
  border-radius: 4px 11px 4px 11px;
  padding: 10px 12px;
  background: #fffdf5;
  color: var(--ink);
}
.field input:focus { border-color: var(--jade); outline: 2px solid rgba(40, 102, 93, .22); }
.password-row { display: flex; gap: 8px; }
.password-row input { min-width: 0; flex: 1; }
.submit-auth { width: 100%; margin-top: 5px; }
.register-link { display: inline-block; margin: 13px 0 0; color: #28665d; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.profile-details { display: grid; gap: 0; margin: 0; }
.profile-detail-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; border-bottom: 1px solid rgba(159, 135, 85, .25); padding: 12px 0; }
.profile-detail-row:last-child { border-bottom: 0; }
.profile-detail-row dt { color: var(--muted-ink); font-size: 13px; }
.profile-detail-row dd { margin: 0; color: var(--deep); font-size: 14px; font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.launch-modal { z-index: 6; }
.launch-box { text-align: center; }
.launch-box h2 { margin: 2px 0 8px; color: var(--deep); font-family: Georgia, "Noto Serif", serif; font-size: 22px; }
.launch-summary { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin: 0; color: var(--jade); font-size: 14px; font-weight: 700; }
.launch-choice { display: inline-flex; min-height: 38px; align-items: center; gap: 7px; border: 1px solid #d6c99f; border-radius: 4px 11px 4px 11px; padding: 6px 10px; background: #fffaf0; }
.launch-choice .region-flag { width: 27px; height: 18px; }
.launch-language-flag { font-size: 19px; line-height: 1; }
.launch-message { margin: 18px 0 8px; color: var(--muted-ink); font-size: 13px; }
.launch-countdown { display: flex; align-items: baseline; justify-content: center; gap: 7px; color: var(--muted-ink); }
.launch-countdown strong { min-width: 45px; color: var(--gold); font-size: 40px; font-variant-numeric: tabular-nums; line-height: 1; }
.launch-actions { display: flex; justify-content: center; gap: 9px; margin-top: 22px; }
.launch-now,
.launch-cancel { min-width: 120px; margin: 0; }

@media (max-width: 860px) {
  body::before { display: none; }
  .account-section.compact-empty { display: none; }
  .wrap { width: min(720px, calc(100% - 28px)); padding: 16px 0 calc(100px + env(safe-area-inset-bottom)); }
  .top { margin-bottom: 10px; }
  .brand, .world-panel { display: none; }
  .launcher-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .control-panel { justify-content: flex-start; gap: 21px; border-left: 0; }
  .enter-game {
    position: fixed;
    z-index: 4;
    right: 14px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 14px;
    width: min(692px, calc(100vw - 28px));
    min-height: 54px;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  }
}

@media (max-width: 520px) {
  .wrap { width: calc(100% - 20px); padding: 12px 0 calc(100px + env(safe-area-inset-bottom)); }
  .top { gap: 8px; margin-bottom: 11px; }
  .top-actions { gap: 8px; }
  .ui-language select { min-width: 112px; padding: 8px 25px 8px 9px; font-size: 12px; }
  .control-panel { gap: 18px; padding: 20px 16px; }
  .account { align-items: flex-start; flex-direction: column; }
  .actions { width: 100%; }
  .actions button { flex: 1; }
  .section-heading-inline { align-items: flex-start; flex-direction: column; gap: 2px; }
  .best-ping { font-size: 10px; }
  .choice { min-height: 58px; gap: 7px; padding: 8px; }
  .region-flag { width: 29px; height: 20px; }
  .region-copy strong { font-size: 11px; }
  .region-code { font-size: 9px; }
  .region-latency { font-size: 9px; }
  .choice-check { width: 19px; height: 19px; }
  .lang { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .lang button { padding: 5px 3px; font-size: 10px; }
  .language-flag { font-size: 19px; }
  .modal-box { padding: 20px 17px; }
  .launch-actions { flex-direction: column; }
  .launch-now, .launch-cancel { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Responsive overrides for the Singapore account/region landing page. */
.news-panel { width: 100%; margin-top: 0; padding: 0; border: 0; background: transparent; color: #fff4d9; }
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li + li { border-top: 1px solid #fff4d926; }
.news-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: baseline; gap: 5px 8px; width: 100%; padding: 12px 4px; border: 0; border-radius: 6px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; line-height: 1.5; }
.news-row:hover, .news-row:focus-visible { background: #fff4d912; }
.news-row time { color: #d5cdb7; font-size: 13px; font-variant-numeric: tabular-nums; }
.news-category { justify-self: start; max-width: 100%; padding: 2px 8px; border: 1px solid #e5ca8852; border-radius: 5px; background: #e5ca880d; color: #e5ca88; font-size: 11px; overflow-wrap: anywhere; }
.news-post-title { grid-column: 1 / -1; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.news-list li:first-child .news-post-title { color: #f5d78e; }
.reading-news { overflow: hidden; }
.news-dialog { width: min(800px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid #cbb984; border-radius: 16px; background: #faf6ec; color: #263f39; box-shadow: 0 24px 100px #0008; overscroll-behavior: contain; }
.news-dialog::backdrop { background: #071f25bf; backdrop-filter: blur(5px); }
.news-dialog-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; gap: 20px; padding: 22px 26px; border-bottom: 1px solid #ded6c2; background: #faf6ec; }
.news-dialog-head > div { flex: 1; min-width: 0; }
.news-dialog-head h2 { margin: 6px 0 0; font-size: 23px; line-height: 1.4; overflow-wrap: anywhere; }
.news-article-meta { margin: 0; color: #8c7954; font-size: 12px; }
.news-close { flex: none; width: 44px; height: 44px; border: 1px solid #d8cdae; border-radius: 50%; background: #eae2cf; color: #263f39; font-size: 28px; cursor: pointer; }
.news-article-body { padding: 8px 26px 26px; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.news-article-body h2, .news-article-body h3 { margin: 26px 0 10px; color: #28665e; line-height: 1.45; }
.news-article-body p, .news-article-body ul, .news-article-body ol { margin: 14px 0; }
.news-article-body ul, .news-article-body ol { padding-left: 24px; }
.news-article-body li + li { margin-top: 8px; }
.news-article-body a { color: #28665e; text-decoration: underline; }
.news-article-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.news-article-body th, .news-article-body td { padding: 8px; border: 1px solid #d8cdae; }
.news-article-body pre { max-width: 100%; overflow-x: auto; }
.news-article-body img { display: block; max-width: 100%; height: auto; margin: 20px auto; border-radius: 8px; }
.news-article-body figure { margin: 20px 0; }
.news-article-body figcaption { color: #766b50; font-size: 13px; text-align: center; }
.news-article-body blockquote { margin: 18px 0; padding-left: 16px; border-left: 3px solid #b08b36; }
@media (max-width: 520px) {
  .news-panel { padding: 18px 14px; }
  .news-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 24px); }
  .news-dialog-head { padding: 16px; gap: 10px; }
  .news-dialog-head h2 { font-size: 19px; }
  .news-article-body { padding: 4px 16px 20px; font-size: 15px; }
}
body { min-width: 0; }
.wrap { width: min(1120px, calc(100% - 40px)); padding: 24px 0 32px; }
.top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.brand { min-width: 0; }
.brand-name { white-space: normal; line-height: 1.25; }
.nav-login { display: inline-flex; width: auto; min-height: 44px; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.nav-login span { white-space: nowrap; }
.launcher-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); min-height: 560px; }
.world-panel { min-height: 560px; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 24px; padding: 28px; }
.world-panel::before { background: linear-gradient(0deg, #000000f0 0%, #000000cf 60%, #00000066 100%); }
.world-copy h1 { font-size: clamp(34px, 3vw, 44px); }
.landing-subtitle { max-width: 31ch; margin: 16px 0 0; color: #eee5ce; font-size: 16px; line-height: 1.65; }
.control-panel { min-width: 0; gap: 24px; padding: clamp(24px, 3vw, 36px); }
.account-section.compact-empty { display: block; }
.account-meta:empty, .account-section > .message:empty { display: none; }
.account-section.compact-empty > .message { display: none; }
.lang { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lang button { min-height: 68px; font-size: 13px; }
.choice { min-height: 72px; }
.region-copy strong { white-space: normal; overflow-wrap: anywhere; }
.primary, .secondary { min-height: 44px; }
.enter-game { position: static; width: 100%; min-height: 52px; margin: 18px 0 0; }
.modal { overflow-y: auto; overscroll-behavior: contain; }
.modal-box { max-height: calc(100vh - 36px); max-height: calc(100dvh - 36px); overflow-y: auto; }
.field input { min-height: 48px; font-size: 16px; }
.password-row .secondary { flex: none; }
.ui-language select { max-width: 150px; min-height: 44px; }
.message, .account-meta { overflow-wrap: anywhere; }
[hidden] { display: none !important; }
.account-entry { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.account-entry .secondary { border-color: #887247; color: #4c412b; background: transparent; }
.auth-hint { color: #6a6657; font-size: 14px; line-height: 1.6; margin: 0 0 18px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; margin: 0 0 22px; border: 1px solid #d8cdae; border-radius: 12px; background: #eae2cf; }
.auth-tabs button { min-height: 44px; border: 0; border-radius: 8px; background: transparent; color: #605740; font: inherit; font-weight: 700; }
.auth-tabs button[aria-selected="true"] { background: #28665e; color: #fff9e8; box-shadow: 0 2px 6px #152a2926; }
.account-rules { margin: -4px 0 16px; color: #6a6657; font-size: 12px; line-height: 1.5; }
.auth-switch { text-align: center; margin-top: 18px; color: #6a6657; font-size: 14px; }
.auth-switch button { background: transparent; border: 0; padding: 8px 4px; color: #225e55; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.landing-footer { text-align: center; margin: 20px 0 0; }
.landing-footer button { padding: 10px; background: transparent; border: 0; color: #ddd8c4; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.browser-modal { z-index: 100; }
.browser-symbol { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 18px; border: 1px solid #ccbb86; border-radius: 18px; background: #e8dfc7; color: #28665e; font-size: 44px; }
.browser-steps { margin: 0 0 20px; padding-left: 22px; color: #494d43; font-size: 14px; line-height: 1.65; }
.browser-steps li + li { margin-top: 12px; }
.browser-chrome { display: block; width: 100%; padding: 14px; margin-bottom: 18px; text-align: center; text-decoration: none; }
.copy-link { width: 100%; }
.field input[readonly] { cursor: text; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid #b08b36; outline-offset: 3px; }

@media (max-width: 860px) {
  .wrap { width: min(620px, calc(100% - 32px)); padding: 16px 0 calc(24px + env(safe-area-inset-bottom)); }
  .brand { display: inline-flex; gap: 8px; }
  .brand-name { font-size: 14px; }
  .brand-mark { width: 34px; height: 34px; }
  .launcher-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .world-panel { display: contents; }
  .world-copy { order: 1; max-width: none; min-height: 170px; padding: 24px; background: linear-gradient(0deg, #091f20dd, #091f2033), url("../update/resource/assets/game_start/login_bg_4f696aaa.jpg") center 42% / cover; }
  .control-panel { order: 2; }
  .news-panel { order: 3; padding: 18px 20px; border: 0; background: linear-gradient(0deg, #000000e6, #071c1dde); }
  .world-copy h1 { font-size: 38px; }
  .world-rule { margin-bottom: 10px; }
  .landing-subtitle { max-width: none; margin-top: 10px; font-size: 14px; }
  .control-panel { gap: 22px; padding: 24px; }
  .account { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .actions { width: auto; }
  .actions button { flex: none; }
  .enter-game { right: auto; bottom: auto; left: auto; width: 100%; margin: 18px 0 0; box-shadow: none; }
}

@media (max-width: 520px) {
  .wrap { width: calc(100% - 24px); padding-top: 12px; }
  .top { margin-bottom: 12px; }
  .top-actions { gap: 8px; }
  .ui-language select { width: 94px; min-width: 0; padding: 8px 20px 8px 8px; font-size: 13px; }
  .nav-login { min-height: 44px; padding: 9px 11px; gap: 6px; font-size: 13px; }
  .nav-login svg { width: 19px; height: 19px; }
  .world-copy { min-height: 155px; padding: 22px 20px; }
  .world-copy h1 { font-size: 34px; }
  .control-panel { padding: 22px 18px; gap: 20px; }
  .grid { gap: 8px; }
  .choice { min-height: 72px; padding: 9px; gap: 7px; }
  .region-flag { width: 27px; height: 18px; }
  .region-copy strong { font-size: 13px; line-height: 1.3; }
  .choice-check { width: 17px; height: 17px; font-size: 10px; }
  .best-ping { align-items: flex-start; flex-wrap: wrap; font-size: 11px; }
  .ping-indicator { margin-top: 4px; }
  .lang { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .lang button { min-height: 66px; font-size: 12px; }
  .modal { padding: 12px; }
  .modal-box { max-height: calc(100dvh - 24px); padding: 22px 18px; }
  .launch-actions { flex-direction: column; }
}

@media (max-width: 360px) {
  .brand-name { display: none; }
  .choice-check { display: none; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .world-copy { min-height: 125px; }
  .modal { align-items: start; }
}
