/* =========================
   Maeri RPG - Base
========================= */

:root {
  --bg-dark: #0a0a12;
  --surface: #1a1a2e;
  --surface-light: #2a2a42;
  --gold: #d4af37;
  --text: #f0f0f0;
  --text-muted: #b0b0c0;
  --parchment: #f5e6ca;
  --bronze: #8b7355;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(0,0,0,0.4);
  --floating-bar-height: 70px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; overflow-x: hidden;
  font-family: 'Cinzel', serif;
  background: var(--bg-dark); color: var(--text);
  min-height: 100vh;
}

/* HEADER */
.app-header {
  position: relative;
  text-align: center;
  padding: 1.8rem 1rem;
  background: var(--surface);
  border-bottom: 3px solid var(--gold);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.app-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--gold), 
    transparent
  );
}

.app-header h1 {
  color: var(--gold);
  font-size: 2.2rem;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 8px rgba(212,175,55,0.3);
}

.app-header .subtitle {
  font-family: 'Crimson Text', serif;
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  position: relative;
  display: inline-block;
}

.app-header .subtitle::before,
.app-header .subtitle::after {
  content: '✧';
  display: inline-block;
  margin: 0 8px;
  opacity: 0.6;
  font-size: 0.8rem;
  color: var(--gold);
}

/* MAIN */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  padding-bottom: calc(0.5rem + var(--floating-bar-height));
}

/* MENU */
.main-menu {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 1rem; margin-bottom: 2rem;
}
.menu-button {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 1.5rem 1rem; background: var(--surface);
  border: 2px solid rgba(212,175,55,0.3);
  border-radius: var(--radius); color: var(--gold);
  text-decoration: none; text-align: center;
  font-weight: 600; font-size: 1.1rem;
  transition: all 0.25s ease; min-height: 100px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  will-change: transform, border-color;
  -webkit-tap-highlight-color: transparent;
}
.menu-button:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 8px 20px rgba(212,175,55,0.2);
}
.menu-button span {
  font-family: 'Crimson Text', serif;
  font-size: 1rem; color: var(--text-muted);
  margin-top: 0.5rem; font-weight: 400;
}

/* SEÇÃO NOTPAT (apenas container) */
.notpat-section {
  background: var(--parchment);
  border: 2px solid var(--bronze);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  -webkit-tap-highlight-color: transparent;
}

/* UTILITÁRIOS */
.no-scroll { overflow: hidden; }

/* RESPONSIVO */
@media (min-width: 768px) {
  .main-menu { grid-template-columns: repeat(4,1fr); }
  .floating-actions { justify-content: center; gap: 2rem; }
}

@media (max-height: 600px) {
  :root { --floating-bar-height: 60px; }
  .floating-button { padding: 0.6rem 1rem; }
}

@media (max-width: 480px) {
  .floating-button {
    min-width: 80px; /* Garante área mínima de toque */
    padding: 0.8rem 0.5rem; /* Ajuste horizontal */
  }

    .app-header {
    padding: 1.5rem 0.5rem;
  }
  
  .app-header h1 {
    font-size: 1.8rem;
  }
  
  .app-header .subtitle {
    font-size: 0.85rem;
  }
  
  .app-header .subtitle::before,
  .app-header .subtitle::after {
    margin: 0 4px;
    font-size: 0.7rem;
  }
}



/* SCROLLBAR */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }