:root {
  --gold: #d89a31;
  --gold-light: #ffda82;
  --red: #a4120c;
  --red-light: #d52d20;
  --black: #030303;
  --cream: #eee1ca;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--cream);
  background: #020202;
  font-family: Georgia, "Times New Roman", serif;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.reference-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background-color: #020202;
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 100% auto;
}

.page-inicio {
  aspect-ratio: 16 / 9;
  min-height: auto;
  background-image: url("/assets/referencias/inicio.png");
}

.page-login {
  aspect-ratio: 16 / 9;
  min-height: auto;
  background-image: url("/assets/referencias/login.png");
}

.page-como-jogar {
  aspect-ratio: 16 / 9;
  min-height: auto;
  background-image: url("/assets/referencias/como-jogar.png");
}

.hotspot {
  position: absolute;
  z-index: 5;
  display: block;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hotspot:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

/* Menu compartilhado */

.nav-inicio {
  left: 27%;
  top: 5%;
  width: 8%;
  height: 8%;
}

.nav-como-jogar {
  left: 36%;
  top: 5%;
  width: 11%;
  height: 8%;
}

.nav-ranking {
  left: 48%;
  top: 5%;
  width: 9%;
  height: 8%;
}

.nav-torneios {
  left: 58%;
  top: 5%;
  width: 9%;
  height: 8%;
}

.nav-entrar {
  left: 68%;
  top: 5%;
  width: 8%;
  height: 8%;
}

.nav-jogar {
  left: 78%;
  top: 4%;
  width: 15%;
  height: 9%;
}

/* Início */

.inicio-jogar {
  left: 5.5%;
  top: 72%;
  width: 17%;
  height: 9%;
}

.inicio-criar {
  left: 24%;
  top: 72%;
  width: 16%;
  height: 9%;
}

/* Como jogar */

.como-criar {
  left: 76%;
  top: 83%;
  width: 18%;
  height: 9%;
}

/* Login funcional */

.login-layer {
  position: absolute;
  z-index: 8;
  left: 14.4%;
  top: 26.5%;
  width: 32.4%;
  height: 51%;
}

.auth-tabs {
  position: absolute;
  left: 0;
  top: -17%;
  width: 100%;
  height: 14%;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-tabs button {
  border: 0;
  color: transparent;
  background: transparent;
  cursor: pointer;
}

.real-form {
  width: 100%;
  height: 100%;
}

.real-form label {
  position: absolute;
  left: 4%;
  right: 4%;
  display: block;
}

.login-email-label {
  top: 12%;
}

.login-password-label {
  top: 34%;
}

.register-name-label {
  top: 3%;
}

.register-email-label {
  top: 24%;
}

.register-password-label {
  top: 45%;
}

.real-form label > span {
  display: none;
}

.real-form input {
  width: 100%;
  height: clamp(42px, 5.2vh, 58px);
  padding: 0 18px 0 58px;
  border: 1px solid rgba(193, 139, 54, 0.46);
  border-radius: 6px;
  outline: none;
  color: #eee;
  background: rgba(7, 7, 7, 0.95);
  font-family: Arial, sans-serif;
  font-size: clamp(13px, 1vw, 17px);
}

.real-form input:focus {
  border-color: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(216, 154, 49, 0.13);
}

.real-form input::placeholder {
  color: #77716a;
}

.form-submit {
  position: absolute;
  left: 4%;
  right: 4%;
  height: 13%;
  border: 0;
  color: transparent;
  background: transparent;
  cursor: pointer;
}

.login-submit {
  top: 62%;
}

.register-submit {
  top: 68%;
}

.switch-form {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 0;
  height: 13%;
  border: 0;
  color: transparent;
  background: transparent;
  cursor: pointer;
}

.form-message {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: -7%;
  min-height: 20px;
  margin: 0;
  color: #f2c66d;
  font-family: Arial, sans-serif;
  font-size: 13px;
  text-align: center;
}

.form-message.error {
  color: #ff766e;
}

.form-message.success {
  color: #75da91;
}

.hidden {
  display: none !important;
}

.logged-panel {
  position: fixed;
  z-index: 50;
  right: 18px;
  bottom: 18px;
  min-width: 280px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--gold);
  color: var(--cream);
  background: rgba(7, 6, 5, 0.97);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
  font-family: Arial, sans-serif;
}

.logged-panel small,
.logged-panel strong {
  display: block;
}

.logged-panel small {
  color: #9b9286;
  font-size: 11px;
}

.logged-panel strong {
  margin-top: 3px;
  color: var(--gold-light);
}

.logged-panel button {
  padding: 8px 13px;
  border: 1px solid #761e17;
  color: #ffaaa2;
  background: #280705;
  cursor: pointer;
}

.mobile-warning {
  display: none;
}

@media (max-width: 900px) {
  .reference-page {
    width: 100%;
    min-height: 100vh;
    aspect-ratio: auto;
    background-size: auto 100vh;
    background-position: top center;
  }

  .page-login {
    background-position: 50% top;
  }

  .login-layer {
    left: 8%;
    top: 25%;
    width: 84%;
    height: 54%;
    padding: 18px;
    border: 1px solid rgba(216, 154, 49, 0.62);
    background: rgba(7, 7, 7, 0.96);
    box-shadow: 0 25px 70px #000;
  }

  .auth-tabs {
    position: relative;
    top: auto;
    height: 55px;
    margin-bottom: 18px;
  }

  .auth-tabs button {
    color: #bcae99;
    border: 1px solid rgba(216, 154, 49, 0.25);
    background: #0a0908;
  }

  .auth-tabs button.active {
    color: var(--gold-light);
    border-color: var(--gold);
  }

  .real-form {
    position: relative;
    height: calc(100% - 73px);
  }

  .real-form label {
    position: relative;
    left: auto;
    right: auto;
    top: auto !important;
    margin-bottom: 15px;
  }

  .real-form input {
    height: 51px;
    padding-left: 15px;
  }

  .form-submit,
  .switch-form {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    height: 51px;
    margin-top: 8px;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    background: linear-gradient(#ad1d15, #6e0705);
  }

  .switch-form {
    margin-top: 14px;
    background: #090807;
  }

  .form-message {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 10px;
  }

  .page-inicio .hotspot,
  .page-como-jogar .hotspot {
    display: none;
  }

  .mobile-warning {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 30;
    padding: 12px;
    display: block;
    border: 1px solid rgba(216, 154, 49, 0.55);
    color: #dbc9ac;
    background: rgba(5, 5, 5, 0.94);
    font-family: Arial, sans-serif;
    font-size: 12px;
    text-align: center;
  }
}

.extra-navigation {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 45;
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(216, 154, 49, 0.45);
  background: rgba(5, 5, 5, 0.92);
  transform: translateX(-50%);
}

.extra-navigation a {
  padding: 8px 12px;
  color: #e9c477;
  background: #0d0b08;
  border: 1px solid rgba(216, 154, 49, 0.22);
  font-family: Arial, sans-serif;
  font-size: 12px;
}

@media (max-width: 900px) {
  .extra-navigation {
    display: none;
  }
}
