/* Minimal shared reset/forms/flash styles retained for Bacavia compatibility. */
:root{color-scheme:light;--ink:#162027;--panel:#fff;--muted:#687b82;--line:#d8e3e2;--brand:#0f8f86;--brand-dark:#08776f}
*{box-sizing:border-box}body{margin:0;min-height:100vh;font:15px/1.45 system-ui,sans-serif;color:var(--ink)}
.shell{margin:0 auto;max-width:1120px;padding:32px 20px 100px}
body.public-catalog-route>.shell{max-width:none!important;width:100%;margin:0;padding-bottom:112px!important;background:transparent}
h1{margin:0 0 8px}p{line-height:1.55}a{color:inherit}
button{background:var(--brand);border:0;border-radius:6px;color:#07130b;font:inherit;font-weight:700;padding:12px 18px;cursor:pointer}button:disabled{cursor:not-allowed}
.login-brand-row .auth-brand{margin:0}
label{display:grid;gap:8px;font-size:14px;font-weight:600;margin:16px 0}
label small{color:var(--muted);font-size:12px;line-height:1.4}
input,textarea,select{background:#fff;border:1px solid var(--line);border-radius:6px;font:inherit;padding:12px;width:100%}
[hidden]{display:none!important}
.game-modal-backdrop {
  align-items: center;
  animation: modal-fade-in 180ms ease both;
  background: rgba(23, 21, 21, 0.42);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 22px;
  position: fixed;
  z-index: 80;
}

.game-modal-backdrop[hidden] {
  display: none;
}

.game-modal-backdrop[data-live-flash-modal] {
  z-index: 220;
}

.game-modal {
  animation: modal-pop-in 220ms cubic-bezier(0.2, 0.9, 0.2, 1.12) both;
  background: #fff;
  border: 1px solid #f0dddd;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(23, 21, 21, 0.22);
  max-width: 360px;
  outline: 0;
  padding: 28px;
  position: relative;
  text-align: center;
  width: min(100%, 360px);
}

.game-modal::before {
  background: linear-gradient(90deg, var(--brand), #ff9d9d, transparent);
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.game-modal-rank {
  align-items: center;
  background: #fff0f0;
  border: 1px solid #ffd0d0;
  border-radius: 50%;
  color: var(--brand);
  display: flex;
  font-size: 24px;
  font-weight: 900;
  height: 52px;
  justify-content: center;
  margin: 0 auto 14px;
  width: 52px;
}

.game-modal-rank.is-success {
  background: #eefaf2;
  border-color: #cdeed8;
  color: #18834a;
  position: relative;
  animation: success-pop 680ms cubic-bezier(0.18, 1.35, 0.32, 1) both;
}

.game-modal-rank.is-success::after {
  border: 2px solid rgba(24, 131, 74, 0.34);
  border-radius: inherit;
  content: "";
  inset: -7px;
  opacity: 0;
  position: absolute;
  animation: success-ring 920ms ease-out 100ms both;
}

.game-modal-eyebrow {
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.game-modal h2 {
  font-size: 24px;
  line-height: 1.1;
  margin: 0 0 10px;
}

.game-modal p:not(.game-modal-eyebrow) {
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0;
}

.game-modal button {
  background: var(--brand);
  border: 0;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  margin-top: 18px;
  min-height: 46px;
  padding: 12px 18px;
  transition: background 160ms ease, transform 160ms ease;
  width: 100%;
}

.game-modal button:hover,
.game-modal button:focus-visible {
  background: var(--brand-dark);
  outline: 0;
}

.game-modal button:active {
  transform: scale(0.98);
}

.login-panel {
  background: #fff;
  border-color: #e8e5e4;
  margin: 64px auto;
  max-width: 420px;
  padding: 30px;
}

.auth-panel-wide {
  max-width: 520px;
}

.auth-brand {
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.auth-brand b {
  color: #272222;
  font-weight: 700;
}

.login-panel h1 {
  color: #171515;
  font-size: 30px;
  letter-spacing: 0;
}

.auth-note {
  color: #746f6c;
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 18px;
}

.game-status-strip {
  align-items: center;
  color: #7c7471;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.game-status-strip span {
  background: #fff5f5;
  border: 1px solid #f1dddd;
  border-radius: 999px;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 900;
  padding: 6px 9px;
  text-transform: uppercase;
}

.auth-actions {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-top: 18px;
}

.auth-actions a {
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.phone-field,
.compact-phone-field {
  display: grid;
  gap: 8px;
  grid-template-columns: 112px minmax(0, 1fr);
}

.password-field {
  display: block;
  position: relative;
}

.password-field input {
  padding-right: 52px;
  width: 100%;
}

.login-panel .password-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: #6d6865;
  cursor: pointer;
  display: flex;
  font-size: 19px;
  height: 42px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
}

.login-panel .password-toggle:hover,
.login-panel .password-toggle:focus-visible {
  background: #f5f2f0;
  color: var(--brand);
}

label small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

h1 {
  margin: 0 0 8px;
}

p {
  line-height: 1.55;
}

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  margin: 16px 0;
}

input,
textarea,
select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  padding: 12px;
  width: 100%;
}

.login-panel input,
.login-panel select {
  border-color: #dedad8;
  border-radius: 8px;
  font-size: 14px;
  min-height: 46px;
  padding: 11px 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-panel input:focus,
.login-panel select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(228, 35, 35, 0.1);
  outline: 0;
}

.login-panel button {
  background: var(--brand);
  color: #fff;
}

.login-panel button:hover {
  background: var(--brand-dark);
}


.login-panel{border:1px solid #e8e5e4;border-radius:8px}

.bacavia-loading{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;min-height:100dvh;padding:24px;opacity:0;visibility:hidden;pointer-events:none;transition:opacity 320ms,visibility 0s 320ms}
body.bacavia-loading-active .bacavia-loading{opacity:1;visibility:visible;pointer-events:auto;transition:opacity 220ms,visibility 0s}
.bacavia-loading-mark{display:grid;justify-items:center;transform:translateY(-2vh)}
.bacavia-loading-progress{position:relative;overflow:hidden}
.bacavia-loading-progress::after{position:absolute;inset:0;content:'';transform:scaleX(.42);transform-origin:left center;animation:bacaviaLoadingProgress 1.35s ease-in-out infinite}
@keyframes bacaviaLoadingProgress{0%{transform:translateX(-100%) scaleX(.42)}100%{transform:translateX(240%) scaleX(.42)}}
@media(prefers-reduced-motion:reduce){.bacavia-loading,.game-modal,.game-modal-backdrop,.game-modal-rank{animation:none!important;transition:none!important}}
/* Bacavia-only ocean arrival. No image/font downloads needed by the loader. */
.bg-game .bacavia-loading {
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 42%, #258e91 0%, #126777 42%, #083b53 100%);
  color: #fff8e8;
}
.bg-game.bacavia-loading-active:not(:has(.bacavia-loading-compact)) { overflow: hidden; }
.bacavia-loading::before,.bacavia-loading::after {
  content: ""; position: absolute; width: min(1000px, 150vw); height: min(1000px, 150vw);
  border: 1px solid #fff8e81c; border-radius: 50%; pointer-events: none;
  transform: scaleY(.38); animation: bacaviaRipple 7s ease-in-out infinite;
}
.bacavia-loading::after { width: min(730px, 115vw); height: min(730px, 115vw); animation-delay: -3.5s; }
.bacavia-loading .bacavia-loading-mark { position: relative; z-index: 1; width: min(420px, 88vw); text-align: center; }
.bacavia-loading-emblem { color: #dfb66b; font: 64px/1 system-ui,sans-serif; margin-bottom: 24px; text-shadow: 0 0 48px #f6d99a55; }
.bacavia-loading .bacavia-loading-brand { font: 900 clamp(32px,6vw,48px)/1.15 system-ui,sans-serif; letter-spacing: .06em; color: #fff8e8; }
.bacavia-loading .bacavia-loading-universe { font: 500 10px/1.5 system-ui,sans-serif; letter-spacing: .3em; text-indent: .3em; color: #f1d9ae; margin-top: 12px; }
.bacavia-loading .bacavia-loading-progress { width: min(210px,58vw); height: 3px; margin-top: 42px; border-radius: 9px; background: #fff8e826; }
.bacavia-loading .bacavia-loading-progress::after { background: linear-gradient(90deg,#b88843,#ffe4ab); }
.bacavia-loading .bacavia-loading-label { font: 400 13px/1.7 system-ui,sans-serif; color: #f7ecd7; text-transform: none; letter-spacing: .02em; text-indent: 0; margin-top: 18px; }
/* Internal navigation keeps the current page visible and does not delay it. */
.bg-game .bacavia-loading.bacavia-loading-compact { min-height: 0; height: 3px; padding: 0; bottom: auto; background: #126777; pointer-events: none; }
.bacavia-loading-compact::before,.bacavia-loading-compact::after,
.bacavia-loading-compact .bacavia-loading-emblem,.bacavia-loading-compact .bacavia-loading-brand,
.bacavia-loading-compact .bacavia-loading-universe,.bacavia-loading-compact .bacavia-loading-label { display: none; }
.bacavia-loading-compact .bacavia-loading-mark { width: 100%; transform: none; }
.bacavia-loading-compact .bacavia-loading-progress { width: 100%; margin: 0; }
@keyframes bacaviaRipple { 0%,100% { transform: scaleY(.38) scale(.94); opacity: .4; } 50% { transform: scaleY(.38) scale(1.05); opacity: .9; } }
@media(prefers-reduced-motion:reduce) {
  .bacavia-loading::before,.bacavia-loading::after,.bacavia-loading .bacavia-loading-progress::after { animation: none; }
}

/* Shared country selector used by account recovery/signup. */
.country-picker {
  min-width: 0;
  position: relative;
}

.country-native-select {
  display: none;
}

.country-trigger {
  align-items: center;
  background: #fff;
  border: 1px solid #dedad8;
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  gap: 7px;
  height: 100%;
  justify-content: flex-start;
  min-height: 46px;
  padding: 8px 10px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.login-panel .country-trigger,
.account-form .country-trigger,
.settings-card .country-trigger,
.new-chat-dialog .country-trigger {
  background: #fff;
  box-shadow: none;
  color: #171515;
}

.country-trigger:hover,
.country-trigger:focus-visible {
  background: #fff;
  border-color: #bcb6b3;
  box-shadow: 0 0 0 3px rgba(23, 21, 21, 0.06);
  outline: 0;
}

.login-panel .country-trigger:hover,
.login-panel .country-trigger:focus-visible,
.account-form .country-trigger:hover,
.account-form .country-trigger:focus-visible,
.settings-card .country-trigger:hover,
.settings-card .country-trigger:focus-visible,
.new-chat-dialog .country-trigger:hover,
.new-chat-dialog .country-trigger:focus-visible {
  background: #fff;
  border-color: #bcb6b3;
  box-shadow: 0 0 0 3px rgba(23, 21, 21, 0.06);
  color: #171515;
  transform: none;
}

.country-caret {
  color: #827b78;
  margin-left: auto;
}

.country-menu {
  background: #fff;
  border: 1px solid #dedad8;
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(32, 21, 18, 0.14);
  left: 0;
  overflow: hidden;
  padding: 8px;
  position: absolute;
  top: calc(100% + 7px);
  width: min(340px, calc(100vw - 58px));
  z-index: 12;
}

.country-search {
  margin-bottom: 6px;
}

.country-options {
  max-height: 260px;
  overflow-y: auto;
}

.country-option {
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
  grid-template-columns: 24px 52px minmax(0, 1fr);
  padding: 10px 8px;
  text-align: left;
  width: 100%;
}

.login-panel .country-option,
.account-form .country-option,
.settings-card .country-option,
.new-chat-dialog .country-option {
  background: #fff;
  color: var(--ink);
}

.country-option:hover,
.country-option:focus-visible,
.country-option[aria-selected="true"] {
  background: #f4f3f2;
  color: #171515;
  outline: 0;
}

.login-panel .country-option:hover,
.login-panel .country-option:focus-visible,
.login-panel .country-option[aria-selected="true"],
.account-form .country-option:hover,
.account-form .country-option:focus-visible,
.account-form .country-option[aria-selected="true"],
.settings-card .country-option:hover,
.settings-card .country-option:focus-visible,
.settings-card .country-option[aria-selected="true"],
.new-chat-dialog .country-option:hover,
.new-chat-dialog .country-option:focus-visible,
.new-chat-dialog .country-option[aria-selected="true"] {
  background: #f4f3f2;
  box-shadow: none;
  color: #171515;
  transform: none;
}

.country-option-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-flag {
  font-size: 18px;
}

.login-panel .phone-field input {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(216, 162, 71, 0.38);
  color: #171515;
}

.login-panel .phone-field input::placeholder {
  color: #6f6863;
  opacity: 1;
}

.login-panel .country-trigger {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(216, 162, 71, 0.38);
  color: #171515;
}

.login-panel .country-trigger:hover,
.login-panel .country-trigger:focus-visible {
  background: #fff8e8;
  border-color: #d8a247;
  box-shadow: 0 0 0 3px rgba(216, 162, 71, 0.18);
  color: #171515;
}

.login-panel [data-country-code],
.login-panel .country-option-code {
  color: #5f3a07;
  font-weight: 900;
}

.login-panel .country-caret {
  color: #5f3a07;
}

.login-panel .country-menu {
  background: #fffaf0;
  border-color: rgba(216, 162, 71, 0.42);
  color: #171515;
}

.login-panel .country-search {
  background: #fff;
  border-color: rgba(216, 162, 71, 0.36);
  color: #171515;
}

.login-panel .country-search::placeholder {
  color: #756b61;
  opacity: 1;
}

.login-panel .country-option {
  background: transparent;
  color: #171515;
}

.login-panel .country-option:hover,
.login-panel .country-option:focus-visible,
.login-panel .country-option[aria-selected="true"] {
  background: rgba(216, 162, 71, 0.16);
  color: #171515;
}

.login-panel .password-toggle {
  color: #6a5a40;
}

.login-panel .password-toggle:hover,
.login-panel .password-toggle:focus-visible {
  background: rgba(216, 162, 71, 0.14);
  color: #5f3a07;
}


html body.bg-game{color:#162027}
body.bg-game:not(.public-catalog-route)>.shell{padding-bottom:96px!important}
