/* =========================================================
   BRsys Arcade - Base Global
   Path: /arcade/css/arcade.css
   ========================================================= */

:root {
  --bg: #070914;
  --bg-2: #0d1022;
  --panel: rgba(13, 18, 36, .86);
  --panel-2: rgba(20, 26, 48, .92);
  --card: rgba(18, 23, 44, .92);
  --card-2: rgba(25, 31, 58, .96);
  --line: rgba(255,255,255,.10);

  --text: #f5f7ff;
  --muted: #9aa4c7;
  --soft: #cbd3ff;

  --green: #39ff88;
  --cyan: #38d8ff;
  --blue: #35c7ff;
  --purple: #9b5cff;
  --yellow: #ffd84a;
  --red: #ff4f6d;

  --radius: 22px;
  --shadow: 0 18px 60px rgba(0,0,0,.42);
  --glow: 0 0 24px rgba(57,255,136,.22);

  --bottom-nav-height: 76px;
  --shell-max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(57,255,136,.16), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(155,92,255,.22), transparent 32%),
    radial-gradient(circle at 50% 100%, rgba(56,216,255,.12), transparent 28%),
    linear-gradient(180deg, #050711 0%, #0a0e1f 55%, #050711 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 78%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.app-shell {
  width: 100%;
  max-width: var(--shell-max);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 14px 14px calc(var(--bottom-nav-height) + 22px);
}

#app,
.app-view {
  width: 100%;
  min-width: 0;
}

.app-view {
  display: grid;
  gap: 14px;
}

.arcade-header {
  display: none !important;
}

.page-title {
  display: grid;
  gap: 8px;
  margin: 6px 0 18px;
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(1.75rem, 5vw, 3.35rem);
  line-height: .96;
  letter-spacing: -.07em;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(1.25rem, 3.6vw, 2rem);
  line-height: 1;
  letter-spacing: -.05em;
}

h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

p {
  margin-bottom: 10px;
  color: var(--muted);
  line-height: 1.45;
  font-size: .9rem;
}

small {
  color: var(--muted);
}

.xp-bar,
.energy-bar,
.progress-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

.xp-bar span,
.energy-bar span,
.progress-bar span,
.xp-fill,
.energy-fill,
.progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--purple));
  box-shadow: 0 0 18px rgba(57,255,136,.36);
}

.text-link {
  color: var(--green);
  font-size: .76rem;
  font-weight: 900;
}

.placeholder-card,
.panel,
.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.03)),
    var(--panel);
  box-shadow: var(--shadow);
}

.placeholder-card {
  min-height: 220px;
  display: grid;
  align-content: center;
  gap: 10px;
}

.placeholder-game-img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 26px;
}

.soon-badge {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--yellow);
  background: rgba(255,216,74,.1);
  font-size: .72rem;
  font-weight: 900;
}

.is-img-error {
  display: none !important;
}

/* Segurança global contra imagens gigantes */
.game-home-screen img,
.inventory-screen img,
.garage-screen img,
.workshop-screen img,
.achievements-screen img,
.profile-screen img,
.reward-grid img,
.task-list img,
.games-grid img,
.avatar-grid img,
.zombie-click-card img {
  max-width: 100%;
  object-fit: contain;
}

/* Scrollbar geral */
::-webkit-scrollbar {
  width: 9px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255,255,255,.03);
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(57,255,136,.32);
}

/* Modo jogo controla sua própria tela */
body.is-zq-playing .app-shell {
  max-width: none;
  padding: 0;
}
