/* =========================================================
   Hotel Zumbi Universe — Base Global
   Path: /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);
  --line-strong: rgba(57,255,136,.28);

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

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

  --radius: 22px;
  --radius-lg: 28px;

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

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

/* =========================================================
   RESET
   ========================================================= */

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  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;
  z-index: -1;
  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,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

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

[hidden] {
  display: none !important;
}

/* =========================================================
   SHELL
   ========================================================= */

.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;
  outline: none;
}

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

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

.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);
}

/* =========================================================
   COMMON UI
   ========================================================= */

.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;
}

/* =========================================================
   ARCADE SCREEN — usado pelo router.js
   ========================================================= */

.arcade-screen {
  display: grid;
  gap: 16px;
  padding-bottom: 130px;
}

.arcade-title {
  margin-bottom: 0;
}

.arcade-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.arcade-summary article {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 12px;
  background:
    radial-gradient(circle at 0% 0%, rgba(57,255,136,.08), transparent 38%),
    rgba(255,255,255,.04);
}

.arcade-summary small,
.arcade-summary strong {
  display: block;
}

.arcade-summary small {
  color: var(--muted);
  font-size: .64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.arcade-summary strong {
  margin-top: 4px;
  color: var(--yellow);
  font-size: 1.2rem;
  line-height: 1;
}

.arcade-games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.arcade-game-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 12px;
  color: var(--text);
  text-align: left;
  background:
    radial-gradient(circle at 0% 0%, rgba(57,255,136,.10), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)),
    rgba(255,255,255,.04);
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.arcade-game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(57,255,136,.36);
  box-shadow:
    0 18px 44px rgba(0,0,0,.36),
    0 0 22px rgba(57,255,136,.12);
}

.arcade-game-card.is-playable {
  border-color: rgba(57,255,136,.28);
}

.arcade-game-card.is-soon {
  opacity: .82;
}

.arcade-game-cover {
  position: relative;
  display: block;
  overflow: hidden;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  background: rgba(255,255,255,.055);
}

.arcade-game-img,
.game-art-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.arcade-game-status {
  position: absolute;
  left: 6px;
  bottom: 6px;
  max-width: calc(100% - 12px);
  border-radius: 999px;
  padding: 4px 7px;
  color: var(--yellow);
  background: rgba(0,0,0,.62);
  font-size: .58rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.arcade-game-meta {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.arcade-game-meta strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.05;
}

.arcade-game-meta small {
  font-size: .68rem;
  line-height: 1.2;
}

.arcade-game-reward {
  width: fit-content;
  border: 1px solid rgba(57,255,136,.18);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--green);
  background: rgba(57,255,136,.07);
  font-size: .64rem;
  font-weight: 900;
}

.arcade-game-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  margin-top: 4px;
}

.arcade-game-footer small:last-child {
  color: var(--cyan);
  font-weight: 900;
}

.arcade-note {
  border: 1px solid rgba(57,255,136,.16);
  border-radius: 22px;
  padding: 14px;
  background:
    radial-gradient(circle at 0% 0%, rgba(57,255,136,.08), transparent 42%),
    rgba(255,255,255,.035);
}

.arcade-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.arcade-note p {
  margin: 0;
}

/* Accent fallbacks */

.accent-green {
  --accent: var(--green);
}

.accent-blue {
  --accent: var(--cyan);
}

.accent-purple {
  --accent: var(--purple);
}

.accent-yellow {
  --accent: var(--yellow);
}

.accent-red {
  --accent: var(--red);
}

/* =========================================================
   IMAGE SAFETY
   ========================================================= */

.game-home-screen img,
.inventory-screen img,
.garage-screen img,
.workshop-screen img,
.achievements-screen img,
.profile-screen img,
.reward-grid img,
.rewards-screen img,
.task-list img,
.games-grid img,
.arcade-games-grid img,
.avatar-grid img,
.zombie-click-card img {
  max-width: 100%;
  object-fit: contain;
}

/* =========================================================
   SCROLLBAR
   ========================================================= */

::-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);
}

/* =========================================================
   ZOMBIE QUICK FULLSCREEN
   ========================================================= */

body.is-zq-playing .app-shell {
  max-width: none;
  padding: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (min-width: 720px) {
  .arcade-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .arcade-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .arcade-games-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .arcade-game-card {
    grid-template-columns: 1fr;
    min-height: 260px;
  }

  .arcade-game-cover {
    width: 100%;
    height: 150px;
  }
}

@media (max-width: 480px) {
  .app-shell {
    padding-inline: 10px;
  }

  .page-title {
    margin-top: 2px;
  }

  .arcade-game-card {
    grid-template-columns: 82px minmax(0, 1fr);
    min-height: 112px;
    border-radius: 20px;
    padding: 10px;
  }

  .arcade-game-cover {
    width: 82px;
    height: 82px;
    border-radius: 18px;
  }

  .arcade-game-meta strong {
    font-size: .9rem;
  }
}
