/* Laralaly — o design novo "vidro pastel" (o dono escolheu-o a 2026-11-13: estudo/prototipos_site/designs/1_vidro_pastel.html).
   Carrega-se DEPOIS do estilo.css, em páginas com <body class="novo">: muda as cores do tema (as variáveis) e o aspeto das
   peças comuns; a barra de cima e o menu lateral desenha-os o base.js. O admin.html não o carrega (fica como estava). */

@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 500 900; font-display: swap;
  src: url(nunito.woff2) format("woff2");
}

:root {
  --bg: #fbf8ff;
  --bg-2: rgba(255, 255, 255, .72);
  --card: rgba(255, 255, 255, .62);
  --border: rgba(160, 140, 220, .32);
  --text: #2a2140;
  --text-2: #7d7397;
  --accent: #7a4fe0;
  --accent-2: #ff5c9d;
  --accent-soft: rgba(139, 108, 255, .14);
  --accent-glow: 0 6px 16px rgba(155, 123, 255, .35);
  --radius: 22px;
  --degrade: linear-gradient(120deg, #ff6fa8, #9b7bff);
  --degrade-texto: linear-gradient(120deg, #ff5c9d, #7a4fe0);
  --sombra: 0 10px 30px rgba(120, 90, 200, .10);
  --vidro-borda: rgba(255, 255, 255, .85);
  --topo: 64px;
  --lado: 228px;
}

body.novo {
  display: block;
  font-family: Nunito, "Segoe UI", system-ui, sans-serif;
  color: var(--text); font-size: 15.5px; line-height: 1.55;
  background:
    radial-gradient(900px 600px at 10% 0%, #ffd6e8 0, transparent 60%),
    radial-gradient(900px 700px at 90% 10%, #dcd2ff 0, transparent 60%),
    radial-gradient(800px 600px at 60% 100%, #cdeeff 0, transparent 60%),
    #fbf8ff;
  background-attachment: fixed;
}
body.novo .hearts-bg, body.novo .header { display: none; }
body.novo h1 { font-size: 32px; font-weight: 900; margin: 0 0 8px; }
body.novo h2 { font-size: 22px; font-weight: 800; margin: 0 0 14px; }
body.novo .sub { color: var(--text-2); margin: 0 0 18px; }
body.novo a.lnk, body.novo .sub a, body.novo p a { color: var(--accent); font-weight: 700; }

/* ---------- a barra de cima ---------- */
.topo {
  position: fixed; top: 0; left: 0; right: 0; height: var(--topo); z-index: 40;
  display: flex; align-items: center; gap: 16px; padding: 0 20px;
  background: rgba(255, 255, 255, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .7);
}
.topo .logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 21px; color: var(--accent);
  width: calc(var(--lado) - 36px); flex: none; }
.topo .logo img { width: 36px; height: 36px; border-radius: 10px; display: block; }
.topo .busca { flex: 1; max-width: 460px; margin: 0; }
.topo .busca input { width: 100%; }
.topo-dir { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.moedas {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  border: 1px solid var(--border); background: rgba(255, 255, 255, .7); border-radius: 999px;
  padding: 6px 13px; font-weight: 800; font-size: 13.5px; color: var(--text);
}
.moedas i, i.moeda { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; vertical-align: -1px;
  background: linear-gradient(135deg, #ffd36b, #ff9f43); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.av {
  display: block; flex: none; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, #ffc2dc, #c9b8ff); border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 4px 12px rgba(120, 90, 200, .18); position: relative;
}
/* (o dono, 2026-11-13: "uma coisa redonda e só o rosto, como o Roblox fazia") a foto de frente (480x600, a câmara fixa do
   foto_avatar.gd) cortada na cabeça: o quadrado 200x200 com o canto em (140, 60) enche o círculo */
.av img { position: absolute; left: -70%; top: -30%; width: 240%; height: auto; max-width: none; display: block; }
.av b { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 900; }
.topo .av { width: 40px; height: 40px; }
.menu-btn {
  display: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(255, 255, 255, .7); color: var(--accent); font-size: 20px; cursor: pointer; flex: none; padding: 0;
}

/* ---------- o menu lateral ---------- */
.lado {
  position: fixed; top: var(--topo); left: 0; bottom: 0; width: var(--lado); z-index: 35; overflow-y: auto;
  padding: 14px; background: rgba(255, 255, 255, .45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-right: 1px solid rgba(255, 255, 255, .7);
}
.lado a {
  display: flex; align-items: center; gap: 11px; padding: 10px 14px; border-radius: 12px; margin-bottom: 2px;
  font-weight: 700; color: var(--text); transition: background .15s, color .15s; cursor: pointer;
}
.lado a .ic { width: 20px; text-align: center; flex: none; opacity: .8; }
.lado a:hover { background: rgba(255, 255, 255, .6); }
.lado a.on { background: rgba(255, 255, 255, .85); color: var(--accent); box-shadow: 0 4px 14px rgba(120, 90, 200, .12); }
.lado .sep { border-top: 1px solid var(--border); margin: 10px 4px; }
.lado .busca-lado { display: none; margin: 0 0 10px; }
.lado .busca-lado input { width: 100%; }
.lado-fundo { display: none; }

/* ---------- o conteúdo ---------- */
body.novo main.conteudo {
  max-width: none; width: auto; margin: 0 0 0 var(--lado); padding: calc(var(--topo) + 26px) 32px 40px;
  min-height: 100vh;
}
.largo { max-width: 1180px; }
body.novo .footer { margin-left: var(--lado); border-top: 1px solid var(--border); }
body.novo .footer .inner { max-width: 1180px; margin: 0; padding: 18px 32px; }
body.novo .footer a { color: var(--accent); font-weight: 700; }
body.novo .section { margin: 34px 0; }

/* ---------- peças comuns ---------- */
.card, body.novo .panel, body.novo .settings-section, body.novo .top-board {
  background: var(--card); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--vidro-borda); border-radius: var(--radius); box-shadow: var(--sombra);
}
.card.pad { padding: 20px 22px; }
.grade { display: grid; gap: 18px; }
.grade.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grade.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.titulo-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 30px 0 14px; }
.titulo-sec h2 { margin: 0; }
.titulo-sec a { color: var(--accent); font-weight: 800; font-size: 14px; }

body.novo .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; font-family: inherit; font-weight: 800; font-size: 15px;
  background: rgba(255, 255, 255, .8); color: #5b45b5; border: 1px solid var(--border); box-shadow: none;
  cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
}
body.novo .btn:hover { background: #fff; transform: translateY(-1px); border-color: var(--border); }
body.novo .btn.primary, body.novo .btn.play {
  background: var(--degrade); color: #fff; border-color: transparent; box-shadow: var(--accent-glow);
}
body.novo .btn.primary:hover, body.novo .btn.play:hover { box-shadow: 0 8px 22px rgba(155, 123, 255, .5); }
body.novo .btn.play { font-size: 20px; padding: 14px 40px; min-width: 220px; }
body.novo .btn.big { font-size: 17px; padding: 13px 30px; }
body.novo .btn.small { padding: 7px 14px; font-size: 13.5px; }
body.novo .btn.escuro { background: rgba(30, 15, 50, .45); color: #fff; border-color: rgba(255, 255, 255, .4); }
body.novo .btn:disabled, body.novo .btn.off { background: #d9d3e8; color: #fff; box-shadow: none; cursor: default; transform: none; border-color: transparent; }
body.novo .btn.danger { color: #e0446a; }

.chip {
  display: inline-block; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; margin: 0 6px 6px 0;
  cursor: pointer; background: rgba(255, 255, 255, .75); font: inherit; font-size: 13.5px; font-weight: 700; color: var(--text);
}
.chip.on { background: #8b6cff; border-color: #8b6cff; color: #fff; }

.inp, body.novo input[type=text], body.novo input[type=search], body.novo input[type=password], body.novo input[type=url],
body.novo input[type=email], body.novo input:not([type]), body.novo select, body.novo textarea {
  border: 1px solid var(--border); background: rgba(255, 255, 255, .78); border-radius: 14px;
  padding: 10px 14px; font: inherit; font-size: 15px; color: var(--text);
}
.inp:focus, body.novo input:focus, body.novo select:focus, body.novo textarea:focus {
  outline: none; border-color: #a58bff; box-shadow: 0 0 0 3px var(--accent-soft);
}
body.novo input:disabled { opacity: .7; }
body.novo input[type=checkbox], body.novo input[type=radio] { accent-color: #8b6cff; }
.aviso { background: rgba(255, 248, 230, .85); border: 1px solid #f1dfae; border-radius: 14px; padding: 12px 14px; margin: 0 0 16px; }
body.novo .error { color: #e0446a; }
.linha { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(160, 140, 220, .18); min-width: 0; }
.linha:last-child { border-bottom: 0; }
.linha .fim { margin-left: auto; color: var(--text-2); white-space: nowrap; }
.linha .pos { width: 22px; font-weight: 900; color: var(--accent); flex: none; }
.letra { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, #ffc2dc, #c9b8ff); color: #fff; font-weight: 900; font-size: 13px; }
.vazio { color: var(--text-2); padding: 12px 0; }
.corta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ---------- início ---------- */
.ola { display: flex; align-items: flex-end; gap: 30px; min-height: 240px; padding: 0 34px; position: relative; margin-top: 14px; }
.ola .palco { height: 190px; width: 190px; margin: 26px 0; display: flex; align-items: center; justify-content: center; position: relative; flex: none; }
.ola .palco .av.cabeca { width: 180px; height: 180px; border-width: 4px; box-shadow: 0 10px 28px rgba(120, 90, 200, .28); z-index: 1; }
.ola .palco::after { display: none; content: ""; position: absolute; left: 10%; right: 10%; bottom: 4px; height: 22px; border-radius: 50%;
  background: radial-gradient(rgba(140, 100, 255, .35), transparent 70%); }
.personagem { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; position: relative; z-index: 1;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .18)); }
.ola .sem-boneco { height: 200px; width: 160px; border-radius: 80px 80px 20px 20px; display: grid; place-items: center; text-align: center;
  background: rgba(255, 255, 255, .55); border: 2px dashed rgba(160, 140, 220, .5); color: var(--text-2); font-weight: 700; font-size: 13px; padding: 14px;
  position: relative; z-index: 1; margin-bottom: 14px; }
.ola .tx { padding: 30px 0 36px; min-width: 0; }
.ola h1 { font-size: 44px; line-height: 1.1; background: var(--degrade-texto); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; overflow-wrap: anywhere; padding-bottom: 4px; }
.ola .sub { font-size: 17px; margin-bottom: 14px; }
.ola .acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.destaque {
  min-height: 300px; border-radius: 26px; overflow: hidden; position: relative; display: flex; align-items: flex-end;
  padding: 32px; color: #fff; box-shadow: var(--sombra); background: #b9a8e8 center 12% / cover;
}
.destaque::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 25%, rgba(30, 10, 50, .72)); }
.destaque > div { position: relative; }
body.novo .destaque h1 { font-size: 40px; color: #fff; }
.destaque p { opacity: .92; margin: 4px 0 16px; font-size: 17px; }
.destaque .acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.historia p { margin: 0 0 10px; color: var(--text-2); }
.historia p:last-child { margin-bottom: 0; }
.historia p b { color: var(--text); }

/* ---------- cartões dos jogos (jogos.js: .game-card) ---------- */
body.novo .games-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
body.novo .game-card {
  flex-direction: column; min-height: 0; background: var(--card); border: 1px solid var(--vidro-borda); border-radius: var(--radius);
  box-shadow: var(--sombra); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
body.novo .game-card:hover { transform: translateY(-3px); border-color: #fff; box-shadow: 0 14px 34px rgba(120, 90, 200, .2); }
body.novo .game-card .cover { width: 100%; height: 150px; min-height: 0; flex: none; background: linear-gradient(135deg, #ff9ac6, #b48cff); }
body.novo .game-card .cover.com-imagem img { object-position: center 15%; }
body.novo .game-card .cover.gray { background: linear-gradient(135deg, #e8defa, #d7e6fb); }
body.novo .game-card .cover .label { background: rgba(255, 255, 255, .85); color: var(--accent); border-radius: 999px; padding: 3px 10px; z-index: 1; }
body.novo .game-card .info { padding: 12px 16px 16px; gap: 2px; justify-content: flex-start; }
body.novo .game-card .title { font-size: 18px; font-weight: 900; }
body.novo .game-card .desc { font-size: 14px; line-height: 1.45; }
body.novo .game-card .join-btn { margin-top: 10px; padding: 7px 22px; border-radius: 999px; background: var(--degrade); font-weight: 800; box-shadow: var(--accent-glow); }
body.novo .game-card.coming-soon { opacity: .55; }
body.novo .game-card.escondido { display: none; }
body.novo .playing { color: var(--text-2); }

/* ---------- a página de um jogo (jogo.js: .game-detail) ---------- */
body.novo .game-detail {
  display: block; max-width: 980px; overflow: hidden; background: var(--card); border: 1px solid var(--vidro-borda);
  border-radius: var(--radius); box-shadow: var(--sombra); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
body.novo .game-detail:empty { display: none; }
body.novo .game-detail .cover { width: 100%; aspect-ratio: auto; height: 300px; border: 0; border-radius: 0; position: relative;
  background: linear-gradient(135deg, #ff9ac6, #b48cff); display: grid; place-items: center; }
body.novo .game-detail .cover.com-imagem img { object-position: center 20%; }
body.novo .game-detail .cover.gray { background: linear-gradient(135deg, #e8defa, #d7e6fb); }
body.novo .game-detail .panel { background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0; padding: 24px 28px 28px; }
body.novo .game-detail .panel h1 { font-size: 30px; }
body.novo .info-list li { border-top-color: rgba(160, 140, 220, .2); }

/* ---------- chat (chat.js) ---------- */
body.novo.com-barra .chat-layout { height: calc(100vh - var(--topo) - 112px); }
body.novo .chat-layout { height: calc(100vh - var(--topo) - 60px); min-height: 420px; gap: 16px; max-width: 1180px; padding: 0; margin: 0; }
body.novo .chat-sidebar, body.novo .chat-main {
  background: var(--card); border: 1px solid var(--vidro-borda); border-radius: var(--radius); box-shadow: var(--sombra);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); overflow: hidden;
}
body.novo .chat-sidebar { width: 250px; padding: 18px 12px; overflow-y: auto; border-right: 1px solid var(--vidro-borda); }
body.novo .chat-channel { font-size: 15px; color: var(--text); padding: 10px 14px; }
body.novo .chat-channel:hover { background: rgba(255, 255, 255, .6); color: var(--text); }
body.novo .chat-channel.active { background: rgba(255, 255, 255, .85); color: var(--accent); box-shadow: 0 4px 14px rgba(120, 90, 200, .12); }
body.novo .chat-header { padding: 16px 24px; border-bottom-color: rgba(160, 140, 220, .2); font-size: 18px; font-weight: 900; }
body.novo .chat-messages { padding: 14px 24px; }
body.novo .chat-msg { padding: 8px 0; border-bottom: 1px solid rgba(160, 140, 220, .12); }
body.novo .chat-msg .avatar { width: 36px; height: 36px; font-size: 14px; border: 0; color: #fff;
  background: linear-gradient(135deg, #ffc2dc, #c9b8ff); }
body.novo .chat-msg .text { font-size: 15.5px; }
body.novo .chat-input-area { padding: 14px 20px; border-top-color: rgba(160, 140, 220, .2); }
body.novo .chat-input-area input { padding: 12px 16px; border-radius: 999px; background: rgba(255, 255, 255, .85); min-width: 0; }
body.novo .chat-input-area button { padding: 12px 26px; border-radius: 999px; background: var(--degrade); box-shadow: var(--accent-glow); font-weight: 800; }
body.novo .owner-badge { background: var(--degrade); }

/* ---------- top (top.js) ---------- */
body.novo .tabs-top { margin: 4px 0 6px; }
body.novo .top-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
body.novo .top-board { padding: 18px 20px; }
body.novo .top-board h3 { font-size: 17px; font-weight: 900; color: var(--accent); }
body.novo .top-board ol { list-style: none; padding: 0; counter-reset: pos; }
body.novo .top-board li { counter-increment: pos; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(160, 140, 220, .18); }
body.novo .top-board li:last-child { border-bottom: 0; }
body.novo .top-board li span { flex: 1; }
body.novo .top-board li::before { content: counter(pos); width: 26px; flex: none; font-weight: 900; color: var(--accent); }
body.novo .top-board li:nth-child(-n+3)::before { color: #ff5c9d; }

/* ---------- download e termos ---------- */
body.novo .download-hero h1 { font-size: 40px; background: var(--degrade-texto); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; }
body.novo .steps li::before { background: #fff; border-color: #c4b2ff; }
body.novo .steps code, body.novo .modal code { background: rgba(255, 255, 255, .85); border: 1px solid var(--border); }
body.novo .note { border-left-color: #b48cff; }
.texto-legal { max-width: 860px; padding: 26px 32px; }
.texto-legal h1 { font-size: 30px; }
.texto-legal h2 { font-size: 20px; margin: 26px 0 8px; }
.texto-legal h3 { font-size: 16px; margin: 18px 0 6px; }
.texto-legal p, .texto-legal li { color: #4d4466; }

/* ---------- janelas, aviso dos 18 anos, popup do Discord, barra do Discord ---------- */
body.novo .modal-bg { background: rgba(60, 40, 100, .28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 60; }
body.novo .modal { background: rgba(255, 255, 255, .94); border: 1px solid #fff; border-radius: 24px; box-shadow: 0 24px 60px rgba(90, 60, 170, .25); }
body.novo .modal-close:hover { background: var(--accent-soft); color: var(--accent); }
body.novo .age-gate { z-index: 1000; background: rgba(240, 225, 255, .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
body.novo .heart-icon { color: #ff5c9d; -webkit-text-fill-color: #ff5c9d; }
body.novo .discord-pop { background: rgba(255, 255, 255, .96); border-color: #c9cdf8; box-shadow: 0 16px 40px rgba(88, 101, 242, .22); z-index: 900; }
body.novo .discord-btn { border-radius: 999px; }
body.novo .discord-bar { position: fixed; left: var(--lado); right: 0; top: var(--topo); z-index: 30; padding: 8px 16px; font-size: 14px; }
body.novo .discord-bar .btn { background: #fff; color: #5865f2; }
body.novo.com-barra main.conteudo { padding-top: calc(var(--topo) + 76px); }
body.novo .discord-section { padding: 24px; }

/* ---------- telemóvel: o menu lateral vira uma gaveta ---------- */
@media (max-width: 900px) {
  :root { --lado: 0px; }
  .menu-btn { display: grid; place-items: center; }
  .topo { gap: 10px; padding: 0 12px; }
  .topo .logo { width: auto; font-size: 19px; }
  .topo .busca { display: none; }
  .lado {
    width: 260px; transform: translateX(-105%); transition: transform .25s ease; z-index: 45;
    background: rgba(255, 255, 255, .92); box-shadow: 10px 0 40px rgba(90, 60, 170, .2);
  }
  .lado .busca-lado { display: block; }
  body.menu-aberto .lado { transform: none; }
  body.menu-aberto .lado-fundo { display: block; position: fixed; top: var(--topo); left: 0; right: 0; bottom: 0; z-index: 44; background: rgba(60, 40, 100, .25); }
  body.novo main.conteudo { padding: calc(var(--topo) + 18px) 16px 32px; }
  body.novo .footer .inner { padding: 16px; }
  .grade.g3, .grade.g2 { grid-template-columns: minmax(0, 1fr); }  /* (2026-11-17, o dono: "esticado para a direita") minmax(0, ...): uma linha comprida do chat ou do top não alarga a coluna além do ecrã */
  .ola { flex-direction: column; align-items: center; text-align: center; padding: 18px 16px 0; gap: 0; min-height: 0; }
  .ola .palco { height: 170px; width: 170px; margin: 0 0 6px; }
  .ola .palco .av.cabeca { width: 160px; height: 160px; }
  .ola .tx { padding: 8px 0 22px; }
  .ola h1 { font-size: 32px; }
  .ola .acoes { justify-content: center; }
  /* no telemóvel a capa fica em cima, inteira, e o texto por baixo (por cima dela tapava o título do jogo) */
  .destaque { min-height: 0; padding: 0 20px 22px; display: block; background-color: #1d0c26; background-size: 100% auto; background-position: center top; }
  .destaque::before { background: linear-gradient(transparent 0, transparent 52vw, #1d0c26 57vw); }
  .destaque > div { padding-top: 54vw; }
  body.novo .destaque h1 { font-size: 30px; }
  body.novo .game-detail .cover { height: 200px; }
  body.novo .game-detail .panel { padding: 18px; }
  body.novo .btn.play { min-width: 0; width: 100%; }
  body.novo .chat-layout { height: calc(100vh - var(--topo) - 40px); gap: 10px; flex-direction: column; }
  body.novo.com-barra .chat-layout { height: calc(100vh - var(--topo) - 130px); }
  body.novo .game-card.coming-soon .cover { height: 70px; }
  body.novo .chat-sidebar { width: 100%; max-height: 120px; padding: 10px; }
  body.novo .chat-messages { padding: 10px 14px; }
  body.novo .chat-input-area { padding: 10px; gap: 8px; }
  body.novo .chat-input-area button { padding: 12px 18px; }
  body.novo.com-barra main.conteudo { padding-top: calc(var(--topo) + 104px); }
  .texto-legal { padding: 18px; }
}
@media (max-width: 360px) { .topo .logo span { display: none; } }
@media (max-width: 420px) {
  .moedas { padding: 5px 9px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { .lado { transition: none; } }

/* o aviso dos 18 anos: a frase da caixa de confirmar num só bloco de texto (em flex, cada pedaço da frase virava uma coluna) */
body.novo .age-check { display: block; position: relative; padding-left: 30px; }
body.novo .age-check input { position: absolute; left: 0; top: 0; margin-top: 3px; }
body.novo .age-check a { color: var(--accent); font-weight: 700; }

/* ---------- o botão do tema (base.js) ---------- */
.tema-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); flex: none; padding: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(255, 255, 255, .7); color: var(--accent); transition: transform .15s, background .15s;
}
.tema-btn:hover { transform: translateY(-1px) rotate(-12deg); background: #fff; }
.tema-btn svg, .lado a .ic svg { display: block; }
.lado a .ic svg { width: 18px; height: 18px; margin: 0 auto; }
.topo .tema-btn { margin-left: auto; }
@media (min-width: 901px) { .lado .sep-tema, .lado [data-v="tema"] { display: none; } }  /* no computador já está na barra de cima */
.topo .tema-btn + .topo-dir { margin-left: 0; }
@media (max-width: 420px) { .topo .tema-btn { width: 36px; height: 36px; } .topo-dir { gap: 6px; } .topo { gap: 8px; } }

/* =====================================================================================================================
   O MODO ESCURO (o dono, 2026-11-13): o mesmo vidro pastel, de noite. Fundo ameixa/indigo com as manchas cor-de-rosa e
   roxas a brilhar, cartoes de vidro escuro, texto claro, o mesmo degrade rosa -> roxo. Liga-se com <html data-theme="dark">
   (tema.js no <head>; o botao sol/lua no base.js). So mexe nas paginas com <body class="novo"> (o admin fica como estava).
   ===================================================================================================================== */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #150f27;
  --bg-2: rgba(34, 24, 60, .86);
  --card: rgba(44, 32, 78, .52);
  --border: rgba(190, 165, 255, .22);
  --text: #f3eeff;
  --text-2: #b9add8;
  --accent: #b9a2ff;
  --accent-2: #ff7fb4;
  --accent-soft: rgba(170, 140, 255, .22);
  --accent-glow: 0 6px 18px rgba(200, 110, 255, .32);
  --degrade-texto: linear-gradient(120deg, #ff8cbc, #b9a2ff);
  --sombra: 0 12px 34px rgba(0, 0, 0, .34);
  --vidro-borda: rgba(255, 255, 255, .10);
  background: #150f27;
}
html[data-theme="dark"] body.novo {
  background:
    radial-gradient(900px 600px at 8% 0%, rgba(255, 92, 157, .22) 0, transparent 60%),
    radial-gradient(900px 700px at 92% 8%, rgba(140, 100, 255, .30) 0, transparent 60%),
    radial-gradient(800px 600px at 60% 100%, rgba(70, 120, 255, .16) 0, transparent 60%),
    linear-gradient(180deg, #170f2b 0%, #1a1030 55%, #140d24 100%);
  background-attachment: fixed;
}
/* a barra de cima e o menu */
html[data-theme="dark"] .topo { background: rgba(24, 16, 44, .62); border-bottom-color: rgba(255, 255, 255, .07); }
html[data-theme="dark"] .topo .logo { color: #d4c4ff; }
html[data-theme="dark"] .lado { background: rgba(24, 16, 44, .45); border-right-color: rgba(255, 255, 255, .07); }
html[data-theme="dark"] .lado a:hover { background: rgba(255, 255, 255, .07); }
html[data-theme="dark"] .lado a.on { background: rgba(185, 162, 255, .16); color: #e4d9ff; box-shadow: inset 0 0 0 1px rgba(185, 162, 255, .22); }
html[data-theme="dark"] .moedas, html[data-theme="dark"] .menu-btn, html[data-theme="dark"] .tema-btn { background: rgba(255, 255, 255, .07); }
html[data-theme="dark"] .tema-btn { color: #ffd36b; }
html[data-theme="dark"] .tema-btn:hover { background: rgba(255, 255, 255, .13); }
html[data-theme="dark"] .av { border-color: rgba(255, 255, 255, .25); box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
/* botoes, chips, campos */
html[data-theme="dark"] body.novo .btn { background: rgba(255, 255, 255, .08); color: #e4d9ff; }
html[data-theme="dark"] body.novo .btn:hover { background: rgba(255, 255, 255, .14); }
html[data-theme="dark"] body.novo .btn.primary, html[data-theme="dark"] body.novo .btn.play { background: var(--degrade); color: #fff; }
html[data-theme="dark"] body.novo .btn.escuro { background: rgba(10, 4, 20, .5); color: #fff; }
html[data-theme="dark"] body.novo .btn:disabled, html[data-theme="dark"] body.novo .btn.off { background: rgba(255, 255, 255, .08); color: #8a7fa8; }
html[data-theme="dark"] body.novo .btn.danger { color: #ff8aa6; }
html[data-theme="dark"] .chip { background: rgba(255, 255, 255, .07); }
html[data-theme="dark"] .chip.on { background: #8b6cff; border-color: #a58bff; color: #fff; }
html[data-theme="dark"] .inp, html[data-theme="dark"] body.novo input[type=text], html[data-theme="dark"] body.novo input[type=search],
html[data-theme="dark"] body.novo input[type=password], html[data-theme="dark"] body.novo input[type=url],
html[data-theme="dark"] body.novo input[type=email], html[data-theme="dark"] body.novo input:not([type]),
html[data-theme="dark"] body.novo input[type=number], html[data-theme="dark"] body.novo select, html[data-theme="dark"] body.novo textarea {
  background: rgba(12, 6, 26, .45); color: var(--text); border-color: var(--border);
}
html[data-theme="dark"] body.novo input::placeholder, html[data-theme="dark"] body.novo textarea::placeholder { color: #8f84ad; }
html[data-theme="dark"] body.novo select option { background: #221840; color: var(--text); }
html[data-theme="dark"] body.novo .tabs { background: rgba(12, 6, 26, .4); }
html[data-theme="dark"] body.novo .tab.active { background: rgba(185, 162, 255, .2); color: #fff; }
html[data-theme="dark"] .aviso { background: rgba(255, 196, 80, .10); border-color: rgba(255, 196, 80, .32); color: #ffe6b0; }
html[data-theme="dark"] body.novo .error { color: #ff8aa6; }
html[data-theme="dark"] .linha { border-bottom-color: rgba(190, 165, 255, .12); }
html[data-theme="dark"] .letra, html[data-theme="dark"] body.novo .chat-msg .avatar { background: linear-gradient(135deg, #ff7fb4, #8b6cff); }
/* inicio e jogos */
html[data-theme="dark"] .ola .sem-boneco { background: rgba(255, 255, 255, .05); border-color: rgba(190, 165, 255, .35); }
html[data-theme="dark"] .ola .palco::after { background: radial-gradient(rgba(190, 120, 255, .45), transparent 70%); }
html[data-theme="dark"] .personagem { filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .5)); }
html[data-theme="dark"] .destaque { box-shadow: 0 14px 40px rgba(0, 0, 0, .45); }
html[data-theme="dark"] body.novo .game-card:hover { border-color: rgba(255, 255, 255, .22); box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
html[data-theme="dark"] body.novo .game-card .cover.gray, html[data-theme="dark"] body.novo .game-detail .cover.gray { background: linear-gradient(135deg, #3a2b5e, #253055); }
html[data-theme="dark"] body.novo .game-card .cover .label { background: rgba(20, 12, 40, .78); color: #e4d9ff; }
html[data-theme="dark"] body.novo .info-list li { border-top-color: rgba(190, 165, 255, .14); }
/* chat */
html[data-theme="dark"] body.novo .chat-channel:hover { background: rgba(255, 255, 255, .07); }
html[data-theme="dark"] body.novo .chat-channel.active { background: rgba(185, 162, 255, .16); color: #e4d9ff; box-shadow: none; }
html[data-theme="dark"] body.novo .chat-header, html[data-theme="dark"] body.novo .chat-input-area { border-color: rgba(190, 165, 255, .14); }
html[data-theme="dark"] body.novo .chat-msg { border-bottom-color: rgba(190, 165, 255, .09); }
html[data-theme="dark"] body.novo .chat-input-area input { background: rgba(12, 6, 26, .5); }
/* top */
html[data-theme="dark"] body.novo .top-board h3 { color: #cdbbff; }
html[data-theme="dark"] body.novo .top-board li { border-bottom-color: rgba(190, 165, 255, .12); }
html[data-theme="dark"] body.novo .top-board li:nth-child(-n+3)::before { color: #ff8cbc; }
/* download e termos */
html[data-theme="dark"] body.novo .steps li::before { background: #2a1f4a; border-color: #8b6cff; color: #e4d9ff; }
html[data-theme="dark"] body.novo .steps code, html[data-theme="dark"] body.novo .modal code { background: rgba(12, 6, 26, .55); color: #ffd1e6; }
html[data-theme="dark"] .texto-legal p, html[data-theme="dark"] .texto-legal li { color: #d3c9ec; }
/* janelas, os 18 anos, o Discord */
html[data-theme="dark"] body.novo .modal-bg { background: rgba(8, 4, 18, .55); }
html[data-theme="dark"] body.novo .modal { background: rgba(32, 22, 58, .96); border-color: rgba(255, 255, 255, .12); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
html[data-theme="dark"] body.novo .age-gate { background: rgba(18, 10, 36, .82); }
html[data-theme="dark"] body.novo .discord-pop { background: rgba(32, 22, 58, .97); border-color: #6c78ff; box-shadow: 0 16px 44px rgba(0, 0, 0, .5), 0 0 24px rgba(88, 101, 242, .3); }
html[data-theme="dark"] body.novo .discord-bar { background: #4b55d6; }
/* a loja, o perfil, os free coins (os estilos das proprias paginas) */
html[data-theme="dark"] .loja-ok { color: #6fe0a6; }
html[data-theme="dark"] .perfil-palco:after { background: radial-gradient(rgba(190, 120, 255, .45), transparent 70%); }
html[data-theme="dark"] .free-num { background: var(--degrade); }
html[data-theme="dark"] .free-ok { color: #6fe0a6; }
@media (max-width: 900px) {
  html[data-theme="dark"] .lado { background: rgba(26, 17, 48, .97); box-shadow: 10px 0 40px rgba(0, 0, 0, .5); }
  html[data-theme="dark"] body.menu-aberto .lado-fundo { background: rgba(5, 2, 12, .5); }
}

/* (o dono, 2026-11-15) a bolinha vermelha com o número de pedidos de amizade, ao lado de Friends no menu */
.lado a .bolinha { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #e5383b;
  color: #fff; font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; }

/* ---------- (2026-11-16) a barra de baixo no telemóvel e na app Laly Client, como o Roblox (base.js, BAIXO) ---------- */
.barra-baixo { display: none; }
@media (max-width: 900px) {
  .barra-baixo {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    height: calc(62px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--card); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--border);
  }
  .barra-baixo a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--muted, #6b6188); font-size: 11px; font-weight: 600; text-decoration: none;
  }
  .barra-baixo a.on { color: var(--accent); }
  body.com-barra-baixo main.conteudo { padding-bottom: calc(86px + env(safe-area-inset-bottom)) !important; }
  body.com-barra-baixo .footer { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  body.novo.com-barra-baixo .chat-layout { height: calc(100vh - var(--topo) - 40px - 62px); }
  body.novo.com-barra.com-barra-baixo .chat-layout { height: calc(100vh - var(--topo) - 130px - 62px); }
}
/* na app o Download não serve (já se está nela) */
body.na-app .lado [data-v="download"] { display: none; }
@media (max-width: 900px) {
  body.com-barra-baixo .discord-pop { bottom: calc(74px + env(safe-area-inset-bottom)); }
}
/* (2026-11-16) a Home no telemóvel: os jogos numa fila que se desliza para o lado, como no Roblox (só a Home; /games fica em lista) */
@media (max-width: 900px) {
  body[data-pagina="home"] #games-list {
    display: flex; flex-direction: row; flex-wrap: nowrap; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 16px;
    margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none;
  }
  body[data-pagina="home"] #games-list::-webkit-scrollbar { display: none; }
  body[data-pagina="home"] #games-list > * { flex: 0 0 78%; scroll-snap-align: start; margin: 0; }
}

/* (2026-11-21) o olho para ver a palavra-passe (base.js) */
.pw-caixa { position: relative; display: block; }
.pw-caixa input { width: 100%; padding-right: 44px !important; box-sizing: border-box; }
.pw-olho { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0;
  border-radius: 10px; background: transparent; color: var(--text); opacity: .6; cursor: pointer; display: grid;
  place-items: center; padding: 0; }
.pw-olho:hover, .pw-olho:focus-visible { opacity: 1; background: rgba(122, 79, 224, .10); }
