/* --------------------------
   Paleta estilo "Netflix"
   -------------------------- */
:root {
  --bg: #141414;            /* fundo principal bem escuro (Netflix-like) */
  --bg-light: #141414;      /* usado quando antes havia um creme claro */
  --bg-panel: #1f1f1f;      /* painéis / cards */
  --border-light: rgba(255,255,255,0.04); /* bordas sutis sobre escuro */
  --text-main: #e6e6e6;     /* texto principal (claro) */
  --muted: #9a9a9a;         /* texto secundário */
  --accent-red: #e50914;    /* vermelho Netflix */
  --accent-red-strong: #b20710; /* variante para hover/efeitos */
  --shadow-soft: rgba(0,0,0,0.6);
  --fg: #e6e6e6;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fonte principal */
@font-face {
  font-family: 'W95FA';
  src: url('W95FA.otf') format('opentype');
}

body {
 /* background-image:
    url("../imgs/stripCaderno.jpg"),
    radial-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.01) 1px, transparent 1px);
*/
  background-size:
    36px auto,
    8px 8px,
    16px 16px;

  background-repeat:
    repeat-y,
    repeat,
    repeat;

  background-position:
    left top,
    left top,
    left top;

  background-color: var(--bg);
  color: var(--text-main);
  padding-left: 22px;
  padding-bottom: 120px;
}

#container {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
}

.container {
  position: relative;
  width: 100%;
  max-width: 1028px;
  margin: auto;
}

.container img {
  width: 100%;
  display: block;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  box-sizing: border-box;
  padding-right: 15px;
  padding-left: 15px;
}

/* Rodapé / hero image */
#menu-rodape {
  position: relative;
  width: 100%;
  height: 55vh;
  padding: 0;
  margin: 0;
  border: 0;
  overflow: hidden;

  background-image: url('../imgs/fundo-rodape.png');
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-position: center bottom;
  background-origin: padding-box;
  background-clip: border-box;
}

/* Hotspots (mantidos) */
.hotspot_coisas,
.hotspot_materiais,
.hotspot_social,
.hotspot_profile,
.hotspot_kofi {
  position: absolute;
  cursor: pointer;
}

/* ... posições mantidas ... */
.hotspot_coisas { top: 74%; left: 65%; width: 12%; height: 12%; }
.hotspot_materiais { top: 54%; left: 89%; width: 6%; height: 6%; }
.hotspot_social { top: 57%; left: 15%; width: 8%; height: 11%; }
.hotspot_kofi { top: 53%; left: 80%; width: 6%; height: 6%; }
.hotspot_profile { top: 7%; left: 63%; width: 22%; height: 22%; }

/* Tooltip visível */
.tooltip {
  position: absolute;
  top: -45px;
  left: 0;
  background: rgba(0,0,0,0.85);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 1;
  transition: all 0.3s ease;
}

/* Animação ao hover */
.hotspot_coisas:hover .tooltip,
.hotspot_social:hover .tooltip,
.hotspot_kofi:hover .tooltip,
.hotspot_materiais:hover .tooltip ,
.hotspot_profile:hover .tooltip {
  animation: bounce 1s infinite alternate;
}

@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}

/* Opcional: mostrar áreas (debug) */
.hotspot_coisas, .hotspot_social, .hotspot_kofi, .hotspot_materiais, .hotspot_profile { outline: 1px dashed rgba(229,9,20,0.6); }

/* --- POPUP / CARD --- */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(3px);
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.popup {
  background: #0f0f0f;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
  max-width: 400px;
  text-align: center;
  position: relative;
  animation: popin 0.4s ease;
  color: var(--text-main);
}

@keyframes popin {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.popup button.close {
  position: absolute;
  top: 5px;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 20px;
  cursor: pointer;
}

.header-title {
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 10px;
  margin-top: 10px;
}

.header-title h1 {
  margin: 0;
  font-size: 2em;
}

.quest-icon {
  width: 35px;
  height: auto;
}

.lista { list-style: none; padding: 0; margin: 0; }

.lista li { display: inline-flex; align-items: center; margin-right: 10px; }

.lista li img { display: inline-block; margin-right: 5px; vertical-align: middle; }

/* Efeito linhas de velocidade */
.speed-lines {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}
.speed-lines::before {
  content: "";
  position: absolute;
  top: 0; left: -50%;
  width: 200%;
  height: 100%;
  background: repeating-linear-gradient(
    75deg,
    rgba(255,255,255,0.02) 0px,
    rgba(255,255,255,0.02) 2px,
    transparent 2px,
    transparent 6px
  );
  animation: speedMove 1.2s linear infinite;
  z-index: -1;
}
@keyframes speedMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(20px); }
}

/* Painéis */
.panel {
  background: var(--bg-panel);
  border: 2px solid var(--border-light);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.6);
  padding: 16px;
  margin-bottom: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  color: var(--text-main);
}
.panel:hover {
  transform: translateY(-5px) rotate(-1deg);
  box-shadow: 6px 6px 0 rgba(229,9,20,0.12);
}

/* Títulos */
h1, h2, h3 {
  font-family: "W95FA", sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-main);
}
h1 {
  font-size: 2.8rem;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-red-strong));
  -webkit-background-clip: text;
  color: transparent;
  animation: gradient-move 6s linear infinite;
  position: relative;
  text-shadow: 1px 1px rgba(0,0,0,0.6);
}

@keyframes gradient-move {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

a { text-decoration: none; color: inherit; cursor: pointer; }
a:hover { text-decoration: underline; }

/* Manuscrito */
.manuscrito { font-size: 1.4rem; color: var(--muted); margin-top: 8px; }

/* Balão de fala */
.speech-frame {
  border: 2px solid var(--border-light);
  border-radius: 20px;
  padding: 15px;
  background: var(--bg-panel);
  position: relative;
  margin-bottom: 16px;
  color: var(--text-main);
}
.speech-frame::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 40px;
  border-width: 12px 8px 0;
  border-style: solid;
  border-color: var(--bg-panel) transparent transparent transparent;
}

/* Galeria */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.card_mono, .card {
  background: var(--bg-panel);
  border: 2px solid var(--border-light);
  box-shadow: 3px 3px 0 rgba(0,0,0,0.6);
  overflow: hidden;
  transition: transform 0.3s ease;
  padding: 12px;
  color: var(--text-main);
}
.card:hover {
  transform: translateY(-6px) scale(1.03) rotate(-1deg);
}
.card img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}
.card:hover img {
  transform: scale(1.08) rotate(-2deg);
}
.card h3 {
  padding: 8px;
  background: var(--accent-red);
  color: white;
  font-size: 1.1rem;
  text-align: center;
}

/* Botões */
button {
  background: var(--accent-red);
  color: white;
  border: 2px solid rgba(0,0,0,0.6);
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.6);
  transition: background 0.15s ease, transform 0.12s ease;
}
button:hover {
  background: var(--accent-red-strong);
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 rgba(0,0,0,0.6);
}

/* Barra fixa (taskbar) */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  background: var(--bg-panel);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  box-shadow: 0 -2px 8px var(--shadow-soft);
  color: var(--text-main);
}
.start-button {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.6);
}
.start-button:hover {
  background: var(--accent-red);
  color: white;
}

/* Barra no topo */
.topbar {
  position: relative;
  top: 0;
  left: 0; right: 0;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  row-gap: 8px;
  padding: 8px 16px;
  box-shadow: 0 2px 8px var(--shadow-soft);
  flex-wrap: wrap;
  color: var(--text-main);
}

.top-button {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}
.top-button:hover {
  background: var(--accent-red);
  color: white;
}

.score {
  background: var(--accent-red);
  color: #fff;
  font-weight: bold;
  border: 2px dashed rgba(255,255,255,0.06);
  padding: 6px 12px;
}

/* Flutuação */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.float { animation: float 4s ease-in-out infinite; }

/* Responsivo */
@media (max-width: 768px) {
  .book { flex-direction: column; max-width: 100%; max-height: 100%; }
  .pageL, .pageR { flex: none; width: 100%; border: none; }
  .seam { display: none; }
}

/* Fonte padrão fallback e ajustes visuais */
*{box-sizing:border-box;font-family:'Comic Sans MS','Comic Neue',cursive}
p.lead{margin:0 0 20px;color:var(--muted)}

.flow{scrollbar-color: #333 #111; display:flex;align-items:center;gap:20px;overflow-x:auto;padding:10px; border-radius:8px;background:var(--bg-panel);}
.connector{height:4px;flex:0 0 50px;}
.node{
  min-width:300px;flex:0 0 350px;background:var(--bg-panel);padding:10px;
  border-radius:8px;cursor:pointer;transition:transform .2s;
  box-shadow:6px 6px 0 rgba(0,0,0,0.6);text-align:center;color:var(--text-main);
}
.node:hover{transform:scale(1.05);}
.image-wrap{overflow:hidden;border:2px solid var(--fg);margin-bottom:6px;border-radius:4px;}
.image-wrap img{width:100%;height:100%;object-fit:cover;display:block;transition:filter .2s}
.bw img{filter:grayscale(100%)} .color img{filter:none}

.title{font-weight:bold;font-size:14px;text-transform:uppercase;}
.date{font-size:12px;color:var(--muted);}
.meta{font-size:11px;color:var(--muted);}
.boss .title{color:#ff6b6b;}

/* Modal */
.modal{position:fixed;inset:0;background:rgba(0,0,0,.85);display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:opacity .2s;}
.modal.open{opacity:1;pointer-events:auto;}
.modal-card{background:var(--bg-panel);border:4px solid var(--fg);padding:20px;max-width:800px;width:90%;border-radius:8px;box-shadow:8px 8px 0 rgba(0,0,0,0.6);text-align:center;color:var(--text-main);}
.modal-card img{max-width:100%;display:block;margin-bottom:10px;border:2px solid var(--fg);}
.modal-card h3{margin:0 0 4px;font-size:18px;text-transform:uppercase;}
.modal-card .date{margin-bottom:10px;}
.close{background:var(--fg);color:var(--bg);padding:6px 12px;border:none;cursor:pointer;font-weight:bold;text-transform:uppercase;}

.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Tabela base */
.responsive-no-border {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  font-family: Arial, sans-serif;
  color: var(--text-main);
}
.responsive-no-border th,
.responsive-no-border td {
  padding: 12px 14px;
  border: none;
  text-align: left;
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Ajustes sutis para mobile */
@media (max-width: 520px) {
  .responsive-no-border { min-width: 100%; font-size: 14px; }
  .responsive-no-border th, .responsive-no-border td { padding: 10px 8px; }
}

.zoom-container { position: relative; display: inline-block; transition: transform 0.3s ease; cursor: zoom-in; }
.zoom-container.zoomed img { transform: scale(2); cursor: zoom-out; z-index: 1001; position: relative; }

.overlay { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: rgba(0, 0, 0, 0.85); z-index: 1000; }
