/* Laralaly — Pink Hearts Theme */
:root {
  --bg: #140a10;
  --bg-2: #1e1018;
  --card: #281520;
  --border: #3e2030;
  --text: #f5e8ef;
  --text-2: #c0a0b0;
  --accent: #ff4d94;
  --accent-2: #ff69a8;
  --accent-soft: rgba(255, 77, 148, 0.12);
  --accent-glow: 0 0 20px rgba(255, 77, 148, 0.3);
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ---------- floating hearts ---------- */
.hearts-bg {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.floating-heart {
  position: absolute; bottom: -40px;
  color: var(--accent);
  animation: floatHeart linear infinite;
  will-change: transform;
}
@keyframes floatHeart {
  0%   { transform: translateY(0) rotate(0deg) scale(1); opacity: 0; }
  10%  { opacity: var(--ho, 0.07); }
  90%  { opacity: var(--ho, 0.07); }
  100% { transform: translateY(-110vh) rotate(360deg) scale(0.5); opacity: 0; }
}

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(20, 10, 16, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header .inner {
  max-width: 1100px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; gap: 28px; height: 64px;
}
.brand {
  font-weight: 800; font-size: 20px; letter-spacing: .5px;
  display: flex; align-items: center; gap: 10px; color: var(--accent);
}
/* (2026-10-23) o ícone do jogo (icone.png) no lugar do coração */
img.logo-icon { width: 34px; height: 34px; border-radius: 9px; display: block; }
.brand .logo-icon:not(img) {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #c4478c);
  display: grid; place-items: center;
  font-size: 16px; color: #fff; font-weight: 900;
}
.nav { display: flex; gap: 4px; align-items: center; }
/* (2026-11-08, o dono: "ficou muito feio" com o Free coins: partia-se em duas linhas) cada link numa linha só */
.nav a {
  padding: 8px 12px; border-radius: 10px; white-space: nowrap;
  color: var(--text-2); font-weight: 600; transition: background .2s, color .2s;
}
.nav a:hover { background: var(--bg-2); color: var(--text); }
.nav a.active { color: var(--text); background: var(--card); }

/* ---------- account bar ---------- */
.account { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.account .greeting { color: var(--text-2); font-size: 14px; }
.account .greeting b { color: var(--text); }
.owner-badge {
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 800;
  padding: 2px 8px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: .5px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 12px;
  border: 1px solid var(--border); cursor: pointer;
  font-weight: 700; font-size: 16px; font-family: inherit;
  background: var(--card); color: var(--text); transition: all .2s;
}
.btn:hover { background: #32192a; border-color: var(--accent); }
.btn.primary {
  background: var(--accent); color: #fff; border-color: transparent;
  box-shadow: var(--accent-glow);
}
.btn.primary:hover { background: var(--accent-2); }
.btn.big { font-size: 19px; padding: 16px 38px; border-radius: 14px; }
.btn.play {
  background: var(--accent); color: #fff; border-color: transparent;
  font-size: 22px; padding: 16px 44px; border-radius: 14px; min-width: 240px;
  box-shadow: var(--accent-glow);
}
.btn.play:hover { background: var(--accent-2); box-shadow: 0 0 30px rgba(255,77,148,.4); }
.btn.play svg { width: 22px; height: 22px; }
.btn.small { padding: 7px 14px; font-size: 14px; border-radius: 10px; }
.btn.wide { width: 100%; }

/* ---------- main ---------- */
main {
  flex: 1; width: 100%; max-width: 1100px; margin: 0 auto;
  padding: 48px 16px 80px; position: relative; z-index: 1;
}
h1 { font-size: 34px; margin: 0 0 8px; }
h2 { font-size: 26px; margin: 0 0 18px; }
.sub { color: var(--text-2); margin: 0 0 24px; }

/* section rhythm — things further apart */
.section { margin: 120px 0; }
.section-title { text-align: center; margin: 0 0 40px; }

/* reveal on scroll — each section slides up gently as you reach it */
.reveal {
  opacity: 0; transform: translateY(44px);
  transition: opacity .75s cubic-bezier(.22,.61,.36,1), transform .75s cubic-bezier(.22,.61,.36,1);
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- hero (free text, no card) ---------- */
.hero {
  padding: 130px 20px 110px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  gap: 30px;
  position: relative;
}
/* a soft glow behind the words — not a box */
.hero::before {
  content: ''; position: absolute; inset: -10% -20%;
  background: radial-gradient(ellipse 55% 50% at 50% 45%, rgba(255,77,148,.14), transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: 74px; line-height: 1.08; margin: 0; letter-spacing: -1.5px;
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  position: relative; z-index: 1;
}
.hero .sub {
  font-size: 22px; max-width: 660px; margin: 0; line-height: 1.6;
  position: relative; z-index: 1;
}
.hero .btn { position: relative; z-index: 1; }
.heart-icon {
  color: var(--accent); animation: pulse 2s infinite; display: inline-block;
  -webkit-text-fill-color: var(--accent);
}
@keyframes pulse { 0%,100%{ transform: scale(1); } 50%{ transform: scale(1.2); } }

/* ---------- about (free text, no card) ---------- */
.about {
  text-align: center; padding: 0 20px;
  line-height: 1.95; color: var(--text-2);
}
.about h2 { margin: 0 0 28px; color: var(--text); }
.about p { max-width: 720px; margin: 0 auto 24px; font-size: 18px; }
.about p:last-child { margin-bottom: 0; }

/* ---------- discord ---------- */
.discord-section { text-align: center; padding: 16px; }
.discord-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 32px; border-radius: 14px;
  background: #5865F2; color: #fff;
  font-weight: 700; font-size: 18px; transition: all .2s; border: none; cursor: pointer;
}
.discord-btn:hover { background: #4752c4; box-shadow: 0 0 20px rgba(88,101,242,.4); transform: translateY(-2px); }
.discord-btn svg { width: 28px; height: 28px; }

/* ---------- game cards (stretched rectangles, further apart) ---------- */
.games-list { display: flex; flex-direction: column; gap: 32px; }
.game-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .15s, border-color .15s, box-shadow .15s;
  display: flex; flex-direction: row; min-height: 190px;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--accent-glow); }
.game-card .cover {
  width: 300px; flex-shrink: 0;
  background:
    radial-gradient(circle at 50% 60%, rgba(255,77,148,.25), transparent 60%),
    linear-gradient(160deg, #3b1a40 0%, #1f2b5c 55%, #120f20 100%);
  display: grid; place-items: center; position: relative;
}
.game-card .cover svg { width: 40%; height: auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.game-card .cover .label {
  position: absolute; left: 10px; top: 10px;
  font-size: 12px; font-weight: 700;
  background: rgba(0,0,0,.55); padding: 3px 8px; border-radius: 6px;
}
/* a capa em imagem (o jogo de espadas): enche o quadro, cortada ao centro */
.cover.com-imagem { position: relative; overflow: hidden; }
.cover.com-imagem img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.game-card .cover.gray { background: linear-gradient(160deg, #2a1d24, #1a161c); }
.game-card .info {
  flex: 1; padding: 30px 34px;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.game-card .title { font-weight: 700; font-size: 23px; }
.game-card .desc { color: var(--text-2); font-size: 16px; line-height: 1.6; }
.game-card .join-btn {
  align-self: flex-start; margin-top: 12px;
  padding: 11px 32px; background: var(--accent); color: #fff;
  border: none; border-radius: 10px; font-weight: 700; font-size: 15px;
  cursor: pointer; transition: all .2s;
}
.game-card .join-btn:hover { background: var(--accent-2); box-shadow: var(--accent-glow); }
.game-card.coming-soon { opacity: .4; pointer-events: none; }

/* ---------- game detail ---------- */
.game-detail {
  display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr);
  gap: 36px; align-items: start;
}
.game-detail .cover {
  border-radius: var(--radius); border: 1px solid var(--border);
  aspect-ratio: 16/9;
  background:
    radial-gradient(circle at 50% 60%, rgba(255,77,148,.25), transparent 55%),
    linear-gradient(160deg, #3b1a40 0%, #1f2b5c 55%, #120f20 100%);
  display: grid; place-items: center;
}
.game-detail .cover svg { width: 46%; height: auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.panel {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.panel h1 { font-size: 28px; }
.panel .actions { margin: 22px 0 10px; }
.status { color: var(--text-2); font-size: 14px; min-height: 21px; }
.info-list {
  list-style: none; padding: 0; margin: 18px 0 0;
  color: var(--text-2); font-size: 15px;
}
.info-list li {
  padding: 8px 0; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 12px;
}
.info-list b { color: var(--text); font-weight: 600; }

/* ---------- form (login/register) ---------- */
.form-container { max-width: 420px; margin: 24px auto; }
.tabs {
  display: flex; gap: 6px; margin-bottom: 18px;
  background: var(--bg-2); padding: 4px; border-radius: 12px;
}
.tab {
  flex: 1; padding: 9px; border: 0; border-radius: 9px; cursor: pointer;
  font: inherit; font-weight: 700; background: transparent; color: var(--text-2); transition: all .2s;
}
.tab.active { background: var(--card); color: var(--text); }
.form-container label {
  display: block; font-weight: 600; font-size: 14px; margin-bottom: 14px;
}
.form-container input {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px;
  border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-2); color: var(--text); font: inherit; font-size: 15px;
  transition: border-color .2s;
}
.form-container input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.error { color: #ff7b72; font-size: 14px; min-height: 21px; margin-bottom: 10px; }

/* ---------- modal ---------- */
.modal-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  display: none; align-items: center; justify-content: center; padding: 16px; z-index: 50;
}
.modal-bg.visible { display: flex; }
.modal {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); max-width: 520px; width: 100%; padding: 26px;
  position: relative;
}
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
  border: none; border-radius: 50%; background: transparent; color: var(--text-2);
  font-size: 26px; line-height: 1; cursor: pointer; transition: background .15s, color .15s;
}
.modal-close:hover { background: var(--accent-soft); color: var(--accent); }
.modal h2 { padding-right: 34px; }
.modal h2 { margin-top: 0; }
.modal ol { color: var(--text-2); padding-left: 20px; }
.modal code { background: var(--card); padding: 2px 6px; border-radius: 6px; color: var(--text); }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }

/* ---------- CHAT (big, Discord style, full screen) ---------- */
.chat-layout {
  display: flex;
  height: calc(100vh - 64px);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  position: relative; z-index: 1;
}
.chat-sidebar {
  width: 290px; background: var(--card);
  border-right: 1px solid var(--border);
  border-radius: 0;
  padding: 22px 16px; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 5px; overflow-y: auto;
}
.chat-sidebar h3 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--text-2); margin: 22px 0 10px; padding-left: 6px;
}
.chat-sidebar h3:first-child { margin-top: 0; }
.chat-channel {
  padding: 12px 16px; border-radius: 10px; cursor: pointer;
  font-weight: 600; font-size: 16px; color: var(--text-2); transition: all .15s;
  display: flex; align-items: center; gap: 10px;
  border: none; background: none; font-family: inherit; text-align: left; width: 100%;
}
.chat-channel:hover { background: var(--bg-2); color: var(--text); }
.chat-channel.active { background: var(--accent-soft); color: var(--accent); }
.chat-channel .notif {
  margin-left: auto; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 10px;
  min-width: 18px; text-align: center;
}
.chat-main {
  flex: 1; background: var(--bg-2);
  border-radius: 0;
  display: flex; flex-direction: column; min-width: 0;
}
.chat-header {
  padding: 20px 32px; border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: 20px; display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.chat-messages {
  flex: 1; overflow-y: auto; padding: 24px 32px;
  display: flex; flex-direction: column; gap: 2px;
}
.chat-msg { padding: 10px 0; display: flex; gap: 14px; align-items: flex-start; }
.chat-msg .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--card); display: grid; place-items: center;
  font-weight: 800; font-size: 17px; color: var(--accent);
  flex-shrink: 0; border: 1px solid var(--border);
}
.chat-msg .content { min-width: 0; }
.chat-msg .author { font-weight: 700; font-size: 16px; margin-right: 8px; }
.chat-msg .author.owner { color: var(--accent); }
.chat-msg .timestamp { color: var(--text-2); font-size: 12.5px; }
.chat-msg .text { font-size: 16.5px; line-height: 1.6; word-break: break-word; }
.chat-input-area {
  padding: 20px 32px 24px; border-top: 1px solid var(--border);
  display: flex; gap: 12px; flex-shrink: 0;
}
.chat-input-area input {
  flex: 1; padding: 16px 20px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--card);
  color: var(--text); font: inherit; font-size: 16.5px; transition: border-color .2s;
}
.chat-input-area input:focus { outline: none; border-color: var(--accent); }
.chat-input-area button {
  padding: 16px 32px; border-radius: 14px; border: none;
  background: var(--accent); color: #fff; font: inherit; font-weight: 700; font-size: 16px;
  cursor: pointer; transition: all .2s;
}
.chat-input-area button:hover { background: var(--accent-2); }

/* ---------- download page ---------- */
.download-hero { text-align: center; padding: 20px 20px 10px; }
.download-hero h1 { font-size: 46px; margin-bottom: 14px; }
.download-hero .sub { font-size: 19px; max-width: 620px; margin: 0 auto 32px; }
.download-size { color: var(--text-2); font-size: 14px; margin-top: 14px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; max-width: 720px; }
.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 28px 62px; color: var(--text-2); font-size: 16.5px; line-height: 1.7;
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-soft); border: 1px solid var(--accent);
  color: var(--accent); font-weight: 800; font-size: 17px;
  display: grid; place-items: center;
}
.steps li:last-child { padding-bottom: 0; }
.steps li b { color: var(--text); }
.steps code {
  background: var(--card); padding: 2px 7px; border-radius: 6px;
  color: var(--text); font-size: 15px;
}
.note {
  border-left: 3px solid var(--accent); padding: 4px 0 4px 18px;
  color: var(--text-2); font-size: 15.5px; margin: 32px 0 0; max-width: 720px;
}

/* ---------- settings ---------- */
.settings-container { max-width: 620px; margin: 0 auto; }
.settings-section {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; margin-bottom: 28px;
}
.settings-section h3 { margin-top: 0; font-size: 18px; }
.settings-section label {
  display: block; font-weight: 600; font-size: 14px; margin-bottom: 14px; color: var(--text-2);
}
.settings-section input {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px;
  border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-2); color: var(--text); font: inherit; font-size: 15px;
}
.settings-section input:focus { outline: none; border-color: var(--accent); }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--border); color: var(--text-2); font-size: 13px;
  position: relative; z-index: 1;
}
.footer .inner {
  max-width: 1100px; margin: 0 auto; padding: 22px 16px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.footer a { color: var(--accent); transition: color .2s; }
.footer a:hover { color: var(--accent-2); }

/* ---------- responsive ---------- */
@media (max-width:760px) {
  .game-detail { grid-template-columns: 1fr; }
  .header .inner { gap: 14px; }
  /* telemóvel: o menu passa para uma segunda linha (antes a página ficava mais larga que o ecrã) */
  .header .inner { flex-wrap: wrap; height: auto; padding: 10px 16px 8px; row-gap: 6px; }
  .nav { order: 3; width: 100%; overflow-x: auto; gap: 2px; }
  .nav a { padding: 7px 10px; white-space: nowrap; }
  .account { font-size: 14px; }
  .hero { padding: 72px 16px 60px; gap: 22px; }
  .hero h1 { font-size: 40px; letter-spacing: -.5px; }
  .hero .sub { font-size: 17px; }
  h1 { font-size: 28px; }
  .download-hero h1 { font-size: 32px; }
  .about { padding: 0 4px; }
  .about p { font-size: 16px; }
  .section { margin: 72px 0; }
  .steps li { padding-left: 52px; font-size: 15.5px; }
  .steps li::before { width: 34px; height: 34px; font-size: 15px; }
  .game-card { flex-direction: column; }
  .game-card .cover { width: 100%; min-height: 150px; }
  .chat-layout { flex-direction: column; height: calc(100vh - 104px); }
  .chat-sidebar {
    width: 100%; max-height: 180px;
    border-right: none; border-bottom: 1px solid var(--border);
  }
  .chat-header { padding: 16px 20px; font-size: 17px; }
  .chat-messages { padding: 16px 20px; }
  .chat-input-area { padding: 16px 20px; }
}

@media (max-width:420px) {
  .hero h1 { font-size: 32px; }
  .btn.play, .btn.big { min-width: 0; padding-left: 24px; padding-right: 24px; }
}

/* o atributo hidden ganha sempre (as classes com display: não o desfazem) */
[hidden] { display: none !important; }

/* ---------- aviso dos 18 anos (idade.js) ---------- */
.age-gate { z-index: 1000; background: rgba(10, 4, 12, .92); backdrop-filter: blur(8px); }
.age-locked, .age-locked body { overflow: hidden; }
.age-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; color: var(--text); line-height: 1.5; cursor: pointer; }
.age-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.age-gate .btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- painel de admin do site (admin.html) ---------- */
.admin-container { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }
.admin-box { margin-bottom: 18px; overflow-x: auto; }
.admin-title { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.admin-title h2 { margin: 0; }
.admin-title input { flex: 1; min-width: 220px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text); font: inherit; }
.admin-pill { font-size: 13px; padding: 4px 10px; border-radius: 12px; background: var(--card); color: var(--text-2); }
.admin-pill.ok { color: #3ba55d; } .admin-pill.bad { color: #ff7b72; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.admin-table th { color: var(--text-2); font-weight: 600; }
.admin-banned { color: #ff7b72; }
.admin-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.admin-form input, .admin-form select { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text); font: inherit; }
.admin-form input { flex: 1; min-width: 200px; }
.admin-msg { margin-top: 10px; color: var(--accent); min-height: 20px; }

/* the "link your Discord to play" bar (every page, while it isn't linked) */
.discord-bar {
  position: relative; z-index: 5; display: flex; gap: 12px; align-items: center; justify-content: center;
  flex-wrap: wrap; padding: 10px 16px; background: #5865f2; color: #fff; text-align: center; font-size: 15px;
}
.discord-bar .btn { background: #fff; color: #5865f2; border-color: #fff; }

/* Top Players (top.html) */
.tabs-top { display: flex; gap: 10px; margin: 18px 0 6px; }
.top-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 14px; }
.top-board { background: rgba(255, 255, 255, 0.04); border-radius: 16px; padding: 16px 18px; }
.top-board h3 { margin: 0 0 10px; }
.top-board ol { margin: 0; padding-left: 22px; }
.top-board li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.top-board li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Settings: the 4 photos of the character (B5) */
.avatar-grade { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.avatar-grade figure { margin: 0; text-align: center; }
.avatar-grade img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; background: rgba(255, 255, 255, 0.05); }
.avatar-grade figcaption { font-size: 12px; color: var(--text-2); margin-top: 4px; }
@media (max-width: 560px) { .avatar-grade { grid-template-columns: repeat(2, 1fr); } }

/* Download: os botões do PC e do Android lado a lado (um por cima do outro no telemóvel) */
.download-opcoes { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.download-opcao { flex: 1 1 260px; max-width: 340px; display: flex; flex-direction: column; align-items: center; }
.download-opcao .download-size { font-size: 13px; }
/* (Plano longo 6, B: o painel completo) separadores, cartões, a ficha de uma pessoa */
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.admin-tabs .btn.active { background: var(--accent); color: #fff; }
.admin-sortable th { cursor: pointer; user-select: none; white-space: nowrap; }
.admin-sortable th:hover { color: var(--accent); }
.admin-ok { color: #3ba55d; }
.admin-npc td { color: var(--text-2); }
.admin-npc-tag { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 8px; background: var(--card); color: var(--accent); letter-spacing: .05em; }
.admin-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-chip { padding: 4px 10px; border-radius: 12px; background: var(--card); font-size: 14px; }
.admin-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 8px 0 12px; }
.admin-card { background: var(--card); border-radius: 10px; padding: 8px 12px; }
.admin-card-label { font-size: 12px; color: var(--text-2); }
.admin-card-value { font-size: 15px; word-break: break-word; }
.admin-pre { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px; font-size: 12px;
             max-height: 320px; overflow: auto; white-space: pre-wrap; word-break: break-all; }
.admin-modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 50; overflow-y: auto; padding: 24px 12px; }
.admin-modal-box { max-width: 1000px; margin: 0 auto; }
.btn.danger { color: #ff7b72; }
/* (Plano longo 6, C: a loja, loja.html) */
.loja-saldo { font-size: 28px; font-weight: 700; color: var(--accent); }
.loja-itens { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.loja-item { background: var(--card); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.loja-item h4 { margin: 0; }
.loja-item p { margin: 0; color: var(--text-2); font-size: 14px; flex: 1; }

/* (2026-10-20, o dono: a loja nova — saldo em cima à direita, cartões no meio, filtros e pesquisa à esquerda) */
.loja { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.loja-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.loja-saldo-caixa { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 18px; display: flex; flex-direction: column; align-items: flex-end; box-shadow: var(--accent-glow); }
.loja-saldo-rotulo { color: var(--text-2); font-size: 13px; }
.loja-corpo { display: grid; grid-template-columns: 220px 1fr; gap: 20px; margin-top: 18px; }
.loja-filtros { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px;
  align-self: start; position: sticky; top: 80px; display: flex; flex-direction: column; gap: 8px; }
.loja-filtros h4 { margin: 8px 0 0; font-size: 14px; color: var(--text-2); }
.loja-filtros input[type=search] { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); padding: 8px 10px; font: inherit; }
.loja-filtros input[type=search]:focus { outline: none; border-color: var(--accent); }
.loja-cat { display: block; width: 100%; text-align: left; background: transparent; border: 0; color: var(--text);
  padding: 6px 10px; border-radius: 8px; cursor: pointer; font: inherit; }
.loja-cat:hover { background: var(--accent-soft); }
.loja-cat.active { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.loja-check { font-size: 13px; color: var(--text-2); display: flex; gap: 6px; align-items: center; cursor: pointer; }
.loja-meio .loja-itens { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.loja-meio .loja-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; transition: transform .15s, border-color .15s; }
.loja-meio .loja-item:hover { transform: translateY(-2px); border-color: var(--accent); }
.loja-item.tenho { opacity: .7; }
.loja-icone { font-size: 30px; line-height: 1; }
.loja-tag-cat { font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }
.loja-preco strong { color: var(--accent); font-size: 18px; }
.loja-preco span { color: var(--text-2); font-size: 12px; }
.loja-euros { font-size: 22px; font-weight: 700; }
.loja-pacote { align-items: center; text-align: center; }
.loja-sec { margin: 28px 0 10px; font-size: 20px; }
.loja-nota { color: var(--text-2); font-size: 13px; }
.loja-ok { color: var(--accent); font-size: 14px; min-height: 21px; margin-bottom: 8px; }
.loja-vazio { color: var(--text-2); }
@media (max-width: 760px) {
  .loja-corpo { grid-template-columns: 1fr; }
  .loja-filtros { position: static; }
}

/* (2026-10-22) quantas pessoas estão a jogar: a bolinha verde e o número (cartões dos jogos e página do jogo) */
.playing { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; margin: 6px 0 2px; }
.playing i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 6px #3ddc84; }
.info-list .playing { margin: 0; color: inherit; font-size: inherit; }

/* Moderação (Plano longo 11, C): a fila de denúncias, as sanções e o registo de cada um em Settings */
.admin-count { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; line-height: 18px; }
.admin-count:empty { display: none; }
.admin-serious td { background: rgba(255, 80, 80, 0.12); }
.admin-pre-small { max-height: 140px; overflow: auto; margin: 0; font-size: 11px; white-space: pre-wrap; }
.record-item { background: var(--card); border-radius: 10px; padding: 10px 14px; margin: 8px 0; }
.record-item .sub { margin: 4px 0 0; }
.record-item textarea { width: 100%; margin-top: 8px; }

/* Pagar com o PayPal (2026-10-22): a caixa da renúncia, os botões e o recibo */
.loja-pagar, .loja-recibo { background: var(--card); border-radius: 12px; padding: 14px 18px; margin: 12px 0; max-width: 520px; }
.loja-pagar #paypal-buttons { margin: 12px 0; min-height: 45px; }
.loja-recibo div { margin: 3px 0; }
@media print { body * { visibility: hidden; } .loja-recibo, .loja-recibo * { visibility: visible; } .loja-recibo { position: absolute; top: 0; left: 0; } .loja-recibo button { display: none; } }

/* ---------- "Join our Discord first" (jogos.js, discordPopup) ---------- */
.discord-pop {
  position: fixed; right: 20px; bottom: 20px; z-index: 900; width: 320px; max-width: calc(100vw - 32px);
  background: var(--bg-2); border: 1px solid #5865F2; border-radius: var(--radius); padding: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,.5), 0 0 24px rgba(88,101,242,.35);
  opacity: 0; transform: translateY(20px); transition: opacity .35s, transform .35s;
}
.discord-pop.visible { opacity: 1; transform: none; }
.discord-pop b { font-size: 18px; display: block; padding-right: 24px; }
.discord-pop p { margin: 8px 0 14px; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.discord-pop .discord-btn { width: 100%; justify-content: center; padding: 12px 16px; font-size: 16px; }
.discord-pop-x {
  position: absolute; top: 8px; right: 10px; background: none; border: none; color: var(--text-2);
  font-size: 22px; cursor: pointer; line-height: 1;
}
.discord-pop-ja {
  display: block; margin: 10px auto 0; background: none; border: none; color: var(--text-2);
  font-size: 13px; cursor: pointer; text-decoration: underline;
}
@media (max-width: 600px) { .discord-pop { left: 16px; right: 16px; bottom: 16px; width: auto; } }

/* a saúde do servidor no painel (admin_saude.js) */
.saude-faixa { border: 2px solid #3ecf8e; border-radius: 12px; padding: 10px 14px; margin: 8px 0 12px; background: var(--bg-2); }
.saude-estado { font-size: 20px; font-weight: 700; }
.saude-grafs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin: 8px 0 14px; }
.saude-graf { background: var(--card); border-radius: 10px; padding: 8px 10px; }
.saude-graf canvas { width: 100%; height: 110px; display: block; }
.saude-graf-cab { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; margin-bottom: 4px; }
.saude-graf-titulo { color: var(--text); font-weight: 600; }
.saude-graf-leg span { margin-left: 8px; }

/* (2026-11-06, o dono: "a moderação está feia, tem coisas brancas") todos os campos do painel de admin escuros, como o resto */
.admin-container input:not([type=checkbox]):not([type=radio]), .admin-container select, .admin-container textarea,
.admin-modal input:not([type=checkbox]):not([type=radio]), .admin-modal select, .admin-modal textarea {
  padding: 8px 11px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text); font: inherit;
}
.admin-container textarea { width: 100%; box-sizing: border-box; resize: vertical; }
.admin-container input:focus, .admin-container select:focus, .admin-container textarea:focus { outline: none; border-color: var(--accent); }
.admin-container input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; vertical-align: middle; }
.admin-container label { cursor: pointer; }
/* as denúncias: a explicação e o estado com cor */
.rep-ajuda { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; margin: 8px 0 12px; font-size: 14px; }
.rep-ajuda ul { margin: 6px 0 0 18px; padding: 0; }
.rep-ajuda li { margin: 3px 0; }
.rep-estado { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.rep-nova { background: rgba(255, 92, 171, .22); color: #ff8cc6; }
.rep-analise { background: rgba(255, 196, 0, .18); color: #ffd666; }
.rep-fechada { background: rgba(80, 220, 140, .16); color: #7fe3a8; }
.rep-grave { background: rgba(255, 70, 70, .25); color: #ff8080; }
.rep-acoes { display: flex; flex-wrap: wrap; gap: 6px; min-width: 200px; }
.admin-explica { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; margin: 8px 0 12px; font-size: 14px; }

/* (o dono, 2026-11-17, as sessões de jogo) um jogo fechado: a bolinha cinzenta e o "Offline · opens in ..." */
.playing.offline i { background: #9a94a8; box-shadow: none; }
.playing .sessao { font-style: normal; }
