@charset "UTF-8";
* { box-sizing: border-box; }

body {
  margin: 0;
  background: #000;
  color: #FFD700;
  font-family:
    "Helvetica Neue",
    Helvetica,
    "Adobe Gothic Std B",
    "Source Han Sans",
    "Noto Sans",
    "Noto Sans Mono CJK JP",
    Arial,
    sans-serif;
  overflow: hidden;
}

/* ===== HEADER ===== */

.frame-top {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(180deg, #060606 0%, #000 100%);
  border-bottom: 1px solid rgba(255,215,0,0.35);
  box-shadow: 0 2px 32px rgba(255,215,0,0.14);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0 10px;
}

/* ===== FLAGS DE IDIOMA ===== */

.lang-icons {
  display: flex;
  gap: 5px;
  align-self: flex-end;
  padding-right: 14px;
  padding-bottom: 4px;
}

.lang-btn {
  width: 24px;
  height: 16px;
  border: 1px solid transparent;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: 0.2s ease;
  border-radius: 1px;
  opacity: 0.7;
}

.lang-btn img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.lang-btn:hover {
  border-color: rgba(255,215,0,0.6);
  box-shadow: 0 0 7px rgba(255,215,0,0.55);
  transform: scale(1.25);
  opacity: 1;
}

.lang-btn:active {
  transform: scale(1.05);
}

/* ===== LOGO ===== */

.logo-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px 0 5px;
}

.main-logo {
  width: clamp(100px, 14vw, 220px);
  height: auto;
  filter: drop-shadow(0 0 14px rgba(255,215,0,0.5));
}

/* ===== MENU DE NAVEGAÇÃO ===== */

.buttons-top {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 10px;
}

.buttons-top a {
  text-decoration: none;
}

.ui-btn {
  background: transparent;
  border: 1px solid rgba(255,215,0,0.45);
  border-radius: 0;
  padding: 7px 20px;
  color: #FFD700;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}

.ui-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: #FFD700;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.ui-btn:hover {
  background: rgba(255,215,0,0.07);
  border-color: rgba(255,215,0,0.8);
  box-shadow: 0 0 16px rgba(255,215,0,0.28), inset 0 0 12px rgba(255,215,0,0.04);
  color: #fff;
  transform: translateY(-1px);
}

.ui-btn:hover::after {
  transform: scaleX(1);
}

/* ===== ÁREA DE CONTEÚDO ===== */

.content-area {
  position: fixed;
  top: 300px; /* fallback — sobrescrito por _syncContentTop() em translations.js */
  bottom: 0;
  width: 100%;
  overflow-y: auto;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,215,0,0.025) 0%, #000 55%);
}

/* Scrollbar dourada */
.content-area::-webkit-scrollbar {
  width: 4px;
}
.content-area::-webkit-scrollbar-track {
  background: #000;
}
.content-area::-webkit-scrollbar-thumb {
  background: rgba(255,215,0,0.35);
  border-radius: 2px;
}
.content-area::-webkit-scrollbar-thumb:hover {
  background: rgba(255,215,0,0.65);
}

/* ===== IFRAME PRINCIPAL ===== */

.main-iframe {
  display: block;
  width: calc(100% - 40px);
  max-width: 920px;
  margin: 20px auto 0;
  border: none;
  border-top: 1px solid rgba(255,215,0,0.18);
  background: transparent;
  min-height: 420px;
  height: 500px;
}

/* IFRAME LIVROS */
.books-iframe {
  height: 1000px;
  min-height: auto;
}

/* IFRAME DETALHE DO JOGO */
.detail-iframe {
  height: 1200px;
  min-height: auto;
}

/* ===== RODAPÉ ===== */

.frame-bottom {
  margin-top: 20px;
  padding: 14px 0 18px;
  border-top: 1px solid rgba(255,215,0,0.18);
}

.social-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.social-bar img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(255,215,0,0.22));
  opacity: 0.75;
  transition: all 0.25s ease;
}

.social-bar img:hover {
  transform: translateY(-3px) scale(1.15);
  filter: drop-shadow(0 0 10px rgba(255,215,0,0.65));
  opacity: 1;
}

/* ===== RESPONSIVO ===== */

@media (max-width: 768px) {

  .main-logo {
    width: 45vw;
  }

  .content-area {
    top: 240px;
  }

  .main-iframe {
    width: 96%;
    height: 420px;
  }

  .books-iframe {
    height: 2600px;
  }

  .buttons-top {
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 6px 2px;
  }

  .ui-btn {
    font-size: 10px;
    padding: 5px 12px;
    letter-spacing: 0.1em;
  }

  .lang-icons {
    gap: 3px;
  }

  .lang-btn {
    width: 18px;
    height: 12px;
  }

  .social-bar img {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 400px) {

  .main-logo {
    width: 55vw;
  }

  .content-area {
    top: 230px;
  }

  .lang-btn {
    width: 16px;
    height: 11px;
  }
}
