body[data-booting='true'] {
  background: #00172b;
}
body[data-booting='true'] > main {
  visibility: hidden;
}
#arena-startup {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow: hidden;
  color: #f7f4e8;
  background: #001426;
  font-family: Arial, sans-serif;
}
#arena-startup[hidden],
#arena-startup [hidden] {
  display: none !important;
}
.arena-art {
  position: absolute;
  inset: 0 42% 0 0;
  background: url('/branding/welcome-reference.png') left center / max(100vw, 177.68vh) auto
    no-repeat;
}
.arena-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 68%, #001426 100%);
}
.arena-card {
  position: absolute;
  inset: 0 0 0 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(16px, 3vw, 52px);
  padding-left: clamp(12px, 2vw, 36px);
  background: radial-gradient(ellipse at 90% 0%, #07314a, #001426 65%);
}
.arena-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(12px, 2vh, 30px);
  color: #ffdc76;
}
.arena-logo > span {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: clamp(38px, 6vw, 94px);
  height: clamp(38px, 6vw, 94px);
  border: 3px solid #f6ce67;
  border-radius: 50%;
  font-size: clamp(30px, 5vw, 75px);
}
.arena-logo img {
  display: block;
  width: 100%;
  height: clamp(32px, 10vh, 120px);
  object-fit: contain;
  object-position: left center;
}
.arena-logo strong {
  font-size: clamp(24px, 4.3vw, 68px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0.02em;
  background: linear-gradient(#fff4bc, #f3c452 65%, #b87717);
  background-clip: text;
  color: transparent;
}
#welcome-title {
  text-align: center;
  font-size: clamp(19px, 2.5vw, 36px);
  font-style: italic;
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}
#welcome-bonus {
  text-align: center;
  color: #e7cc86;
  font-size: clamp(10px, 1.2vw, 14px);
  margin: 0 0 14px;
}
#welcome-form {
  display: grid;
  gap: 12px;
}
#welcome-form label {
  display: grid;
  gap: 5px;
  font-size: clamp(12px, 1.5vw, 20px);
  font-weight: 700;
}
#welcome-form label small {
  font-weight: 400;
  font-size: 0.75em;
  color: #b0c5cf;
}
#welcome-form input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: clamp(36px, 5.8vh, 58px);
  border: 1px solid #e6e5d7;
  border-radius: 8px;
  background: #0c2434;
  color: #fff;
  padding: 8px 12px;
  font: inherit;
  font-weight: 400;
}
#welcome-form input::placeholder {
  color: #a7bcc6;
}
.welcome-password-wrap {
  position: relative;
}
#welcome-form #welcome-password {
  padding-right: 45px;
}
#arena-startup button {
  font-family: inherit;
  cursor: pointer;
}
#welcome-show-password {
  position: absolute;
  right: 3px;
  top: 2px;
  bottom: 2px;
  width: 38px;
  padding: 7px;
  background: transparent;
  border: 0;
  color: #f5f2df;
}
#welcome-show-password svg {
  width: 100%;
  height: 100%;
}
.arena-primary {
  min-height: 44px;
  padding: 10px 16px;
  border: 2px solid #ffe7a0;
  border-radius: 10px;
  color: #151000;
  background: linear-gradient(#ffe983, #fbd14c 48%, #d28d14);
  box-shadow:
    inset 0 -3px 0 #ae710f,
    0 0 20px #e6ac2020;
  font-size: clamp(15px, 2vw, 26px);
  font-weight: 900;
}
#welcome-submit {
  margin-top: 6px;
}
#welcome-continue {
  width: 100%;
}
.arena-secondary {
  padding: 8px;
  min-height: 36px;
  color: #f9df9c;
  border: 1px solid #9a7a3d;
  border-radius: 7px;
  background: transparent;
  font-size: 13px;
}
#welcome-guest,
#welcome-switch-account {
  margin-top: 10px;
  width: 100%;
}
.arena-link {
  display: block;
  width: 100%;
  padding: 8px 0;
  min-height: 30px;
  color: #c4d8e2;
  background: transparent;
  border: 0;
  font-size: 12px;
  text-decoration: underline;
}
.arena-disclaimer {
  margin: 8px 0 0;
  text-align: center;
  color: #c0d3dd;
  font-size: clamp(10px, 1.2vw, 14px);
}
#welcome-error {
  margin: 8px 0;
  color: #ffd29b;
  font-size: 12px;
}
#welcome-error:empty {
  display: none;
}
#arena-startup button:disabled {
  opacity: 0.6;
  cursor: wait;
}
#arena-startup :focus-visible {
  outline: 3px solid #fff1ad;
  outline-offset: 3px;
}
#boot-loading {
  text-align: center;
}
#boot-status {
  font-size: clamp(18px, 2.5vw, 30px);
  margin: 12px 0;
}
#boot-detail {
  font-size: clamp(11px, 1.4vw, 16px);
  color: #c3d5de;
  min-height: 36px;
  line-height: 1.5;
}
#boot-progress {
  width: 100%;
  height: 14px;
  appearance: none;
  border: 1px solid #a9863e;
  border-radius: 10px;
  overflow: hidden;
  background: #102f40;
}
#boot-progress::-webkit-progress-bar {
  background: #102f40;
}
#boot-progress::-webkit-progress-value {
  background: linear-gradient(90deg, #bc841d, #ffe685);
}
#boot-progress::-moz-progress-bar {
  background: #f1c44c;
}
#boot-version {
  display: block;
  margin-top: 15px;
  font-size: 11px;
  color: #acc2ce;
}
#boot-retry {
  margin: 12px auto;
}
@media (max-height: 600px) {
  .arena-card {
    padding: 12px 20px;
    inset-inline-start: 52%;
  }
  .arena-logo {
    margin-bottom: 10px;
    gap: 10px;
  }
  .arena-logo strong {
    font-size: clamp(23px, 4vw, 45px);
  }
  .arena-logo > span {
    width: 48px;
    height: 48px;
    font-size: 38px;
  }
  #welcome-form {
    gap: 7px;
  }
  #welcome-bonus {
    margin-bottom: 7px;
  }
  #welcome-form label {
    gap: 3px;
  }
  #welcome-guest,
  #welcome-switch-account {
    margin-top: 6px;
  }
  .arena-link {
    padding: 5px 0;
  }
  .arena-disclaimer {
    margin-top: 3px;
  }
}
@media (max-height: 430px) {
  .arena-card {
    padding: 8px 16px;
    inset-inline-start: 50%;
  }
  .arena-logo {
    margin-bottom: 6px;
    gap: 8px;
  }
  .arena-logo strong {
    font-size: 26px;
  }
  .arena-logo > span {
    width: 36px;
    height: 36px;
    font-size: 29px;
    border-width: 2px;
  }
  #welcome-title {
    font-size: 20px;
    margin-bottom: 3px;
  }
  #welcome-form {
    gap: 5px;
  }
  #welcome-form label {
    font-size: 12px;
    grid-template-columns: 72px 1fr;
    align-items: center;
  }
  #welcome-form input {
    height: 34px;
    font-size: 12px;
    padding: 6px 8px;
    border-radius: 5px;
  }
  #welcome-bonus {
    font-size: 10px;
    margin-bottom: 6px;
  }
  .arena-primary {
    min-height: 36px;
    padding: 6px;
    border-radius: 7px;
    font-size: 17px;
  }
  .arena-secondary {
    min-height: 30px;
    padding: 5px;
    font-size: 12px;
  }
  .arena-link {
    min-height: 25px;
    font-size: 11px;
  }
  #welcome-error {
    font-size: 10px;
    margin: 3px 0;
  }
  .arena-disclaimer {
    font-size: 10px;
  }
}
@media (orientation: portrait) {
  .arena-card {
    inset-inline-start: 10%;
    background: #001426eb;
  }
}
@media (max-height: 350px) and (orientation: landscape) {
  .arena-card {
    padding: 6px 14px;
  }
  .arena-logo {
    margin-bottom: 5px;
  }
  .arena-logo strong {
    font-size: 19px;
    line-height: 1.1;
  }
  .arena-logo strong br {
    display: none;
  }
  .arena-logo > span {
    width: 28px;
    height: 28px;
    font-size: 23px;
  }
  #welcome-title {
    font-size: 18px;
    line-height: 1.2;
  }
  #welcome-form input {
    height: 30px;
  }
  #welcome-form {
    gap: 4px;
  }
  #welcome-submit {
    margin-top: 2px;
  }
  #arena-startup .arena-primary {
    min-height: 32px;
    padding: 5px;
    line-height: 1.15;
    font-size: 15px;
  }
  #welcome-guest {
    margin-top: 5px;
    min-height: 28px;
  }
  .arena-link {
    min-height: 23px;
    padding: 4px 0;
  }
  .arena-disclaimer {
    line-height: 1.2;
  }
}
