/* =========================
   HOTEL ZUMBI • STYLE.CSS
========================= */

:root {
  --bg: #070b14;
  --bg-2: #0f172a;
  --card: rgba(255,255,255,.065);
  --card-2: rgba(0,0,0,.36);
  --line: rgba(146,255,61,.22);
  --text: #ffffff;
  --muted: rgba(255,255,255,.68);
  --green: #7cff22;
  --green-2: #00ffd5;
  --danger: #ff4d4d;
  --shadow: 0 24px 80px rgba(0,0,0,.38);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(124,255,34,.16), transparent 34%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  color: var(--text);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

/* =========================
   BOTÕES GLOBAIS
========================= */

.btn-primary,
.btn-secondary,
.btn-primary-link,
.btn-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: .2s ease;
}

.btn-primary,
.btn-primary-link {
  color: #061018;
  background: linear-gradient(90deg, var(--green), var(--green-2));
  box-shadow: 0 0 24px rgba(124,255,34,.18);
}

.btn-secondary,
.btn-secondary-link {
  color: var(--text);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.15);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-primary-link:hover,
.btn-secondary-link:hover {
  transform: translateY(-2px);
}

/* =========================
   LANDING RAIZ
========================= */

.landing-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.landing-shell {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 24px;
}

.landing-hero,
.game-preview-card,
.login-card {
  border: 1px solid rgba(255,255,255,.1);
  background: var(--card);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.landing-badge,
.preview-label,
.login-badge {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.landing-hero h1 {
  font-size: clamp(34px, 6vw, 64px);
  line-height: .95;
  margin-bottom: 18px;
}

.landing-hero p,
.game-preview-card p,
.login-header p {
  color: var(--muted);
  line-height: 1.65;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.game-preview-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.preview-icon {
  font-size: 58px;
  margin-bottom: 22px;
}

.game-preview-card h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

/* =========================
   LOGIN / ENTRADA DO JOGO
========================= */

.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.login-container {
  width: 100%;
  max-width: 460px;
}

.login-card {
  text-align: center;
}

.login-header h1 {
  color: var(--green-2);
  font-size: 30px;
  margin-bottom: 12px;
}

.login-actions {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.login-footer {
  margin-top: 22px;
  color: rgba(255,255,255,.48);
  font-size: 12px;
}

/* =========================
   GAME SCREEN
========================= */

.hz-body {
  min-height: 100vh;
  padding: 14px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(124,255,34,.18), transparent 35%),
    linear-gradient(180deg, #030609, #07101a 55%, #0b1220);
}

.hz-app {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  min-height: calc(100vh - 28px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
}

/* TOPO */
.hz-topbar {
  display: grid;
  grid-template-columns: 1.25fr repeat(4, minmax(130px, 1fr)) auto;
  gap: 10px;
  align-items: stretch;
}

.hz-brand,
.hz-resource,
.hz-panel,
.hz-building,
.hz-bottom-nav {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(0,0,0,.35));
  box-shadow: 0 0 24px rgba(124,255,34,.08);
  backdrop-filter: blur(12px);
}

.hz-brand {
  border-radius: 18px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hz-brand-icon {
  font-size: 30px;
}

.hz-brand strong {
  display: block;
  color: var(--green);
  font-size: 18px;
  line-height: 1;
}

.hz-brand small {
  color: var(--muted);
  font-size: 12px;
}

.hz-resource {
  border-radius: 18px;
  padding: 12px 14px;
}

.hz-resource small,
.hz-resource span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.hz-resource strong {
  display: block;
  color: var(--green);
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.05;
}

.hz-exit {
  min-width: 70px;
  border-radius: 18px;
  color: #ffb4b4;
  background: rgba(255,0,0,.13);
  border: 1px solid rgba(255,77,77,.28);
  font-weight: 800;
}

/* CENA */
.hz-scene {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
  min-height: 0;
}

.hz-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.hz-panel {
  border-radius: 22px;
  padding: 18px;
}

.hz-panel h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.hz-panel strong {
  display: block;
  color: var(--green);
  font-size: 34px;
  line-height: 1;
  margin-bottom: 10px;
}

.hz-panel p,
.hz-panel span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.hz-stat-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.hz-stat-line:last-child {
  border-bottom: 0;
}

.hz-stat-line b {
  color: var(--green);
}

/* ÁREA CENTRAL */
.hz-main {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.hz-hotel-stage {
  min-height: 260px;
  border: 1px solid rgba(124,255,34,.18);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(rgba(0,0,0,.38), rgba(0,0,0,.58)),
    radial-gradient(circle at center, rgba(124,255,34,.25), transparent 36%),
    url("/img/hotel-zumbi-dashboard.png");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.hz-hotel-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.72), transparent 30%, transparent 68%, rgba(0,0,0,.72)),
    linear-gradient(180deg, transparent, rgba(0,0,0,.55));
  pointer-events: none;
}

.hz-hotel,
.hz-hotel-info {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hz-sign {
  color: var(--green);
  font-size: clamp(34px, 6vw, 76px);
  font-weight: 950;
  letter-spacing: .05em;
  text-shadow:
    0 0 12px rgba(124,255,34,.75),
    0 0 34px rgba(124,255,34,.35);
}

.hz-hotel p {
  color: rgba(255,255,255,.86);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hz-hotel-info {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hz-hotel-info span {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(0,0,0,.52);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 12px;
}

/* CONSTRUÇÕES */
.hz-buildings-wrap {
  border-radius: 24px;
  padding: 18px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.08);
}

.hz-section-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 14px;
}

.hz-section-title span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.hz-section-title h2 {
  font-size: 26px;
}

.hz-section-title small {
  color: var(--muted);
}

.hz-buildings {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

.hz-building {
  min-height: 190px;
  border-radius: 22px;
  padding: 18px;
  display: grid;
  gap: 8px;
  align-content: start;
  position: relative;
  overflow: hidden;
}

.hz-building::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(124,255,34,.16), transparent 48%);
  opacity: .7;
  pointer-events: none;
}

.hz-building > * {
  position: relative;
  z-index: 1;
}

.hz-building-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: rgba(124,255,34,.1);
  border: 1px solid rgba(124,255,34,.22);
}

.hz-building h3 {
  font-size: 20px;
}

.hz-building p,
.hz-building small {
  color: var(--muted);
}

.hz-building button {
  margin-top: auto;
  min-height: 42px;
  border-radius: 14px;
  color: #07100a;
  background: linear-gradient(90deg, var(--green), #c6ff4a);
  font-weight: 900;
}

.hz-building.locked {
  opacity: .55;
  filter: grayscale(.7);
}

.hz-building.locked button {
  color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}

/* MENU INFERIOR */
.hz-bottom-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-radius: 22px;
  overflow: hidden;
}

.hz-bottom-nav button {
  min-height: 58px;
  color: rgba(255,255,255,.72);
  background: rgba(0,0,0,.18);
  border-right: 1px solid rgba(255,255,255,.08);
  font-weight: 800;
}

.hz-bottom-nav button:last-child {
  border-right: 0;
}

.hz-bottom-nav button.active {
  color: var(--green);
  background: rgba(124,255,34,.1);
}

/* =========================
   UTILIDADES ANTIGAS
========================= */

.game-container {
  width: 100%;
  max-width: 420px;
}

.game-header {
  text-align: center;
  margin-bottom: 20px;
}

.game-title {
  font-size: 26px;
  color: var(--green-2);
  font-weight: bold;
}

.game-card {
  background: var(--card);
  border-radius: 14px;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.status {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.status-item {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
}

.status-item span {
  font-weight: bold;
  color: var(--green-2);
}

.actions {
  display: flex;
  gap: 10px;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.pulse {
  animation: pulse .3s ease;
}

/* =========================
   RESPONSIVO
========================= */

@media (max-width: 1060px) {
  .hz-topbar {
    grid-template-columns: repeat(2, 1fr);
  }

  .hz-brand,
  .hz-exit {
    grid-column: span 2;
  }

  .hz-scene {
    grid-template-columns: 1fr;
  }

  .hz-side {
    grid-template-columns: repeat(2, 1fr);
  }

  .hz-buildings {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .landing-shell {
    grid-template-columns: 1fr;
  }

  .landing-hero,
  .game-preview-card,
  .login-card {
    padding: 24px;
    border-radius: 20px;
  }

  .hz-body {
    padding: 10px;
  }

  .hz-app {
    min-height: calc(100vh - 20px);
  }

  .hz-topbar {
    grid-template-columns: repeat(2, 1fr);
  }

  .hz-brand {
    grid-column: span 2;
  }

  .hz-exit {
    grid-column: span 2;
    min-height: 44px;
  }

  .hz-resource strong {
    font-size: 24px;
  }

  .hz-side {
    grid-template-columns: 1fr;
  }

  .hz-hotel-stage {
    min-height: 220px;
    border-radius: 22px;
  }

  .hz-buildings {
    grid-template-columns: 1fr;
  }

  .hz-section-title {
    display: block;
  }

  .hz-bottom-nav {
    grid-template-columns: repeat(5, minmax(72px, 1fr));
    overflow-x: auto;
  }

  .hz-bottom-nav button {
    font-size: 12px;
    padding: 8px;
  }
}

/* CONSTRUÇÃO COM TIMER */
.building-active {
  border-color: rgba(124,255,34,.65);
  box-shadow:
    0 0 24px rgba(124,255,34,.22),
    inset 0 0 24px rgba(124,255,34,.08);
}

.build-progress {
  margin-top: auto;
  display: grid;
  gap: 8px;
}

.build-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255,255,255,.82);
  font-size: 13px;
}

.build-progress-top b {
  color: var(--green);
}

.build-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.12);
}

.build-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--green-2));
  box-shadow: 0 0 18px rgba(124,255,34,.5);
  transition: width .25s linear;
}

.hz-building button:disabled {
  cursor: not-allowed;
  opacity: .55;
  filter: grayscale(.4);
}

.hz-building-image {
  width: 100%;
  height: 110px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
}

.hz-building-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s;
}

.hz-building:hover img {
  transform: scale(1.05);
}

.hz-building-open {
  width: 100%;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
}

.hz-building-image {
  width: 100%;
  height: 128px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(124,255,34,.2);
  background: rgba(0,0,0,.35);
}

.hz-building-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: .25s ease;
}

.hz-building:hover .hz-building-image img {
  transform: scale(1.05);
}

.hz-building-content {
  display: grid;
  gap: 8px;
}

.hz-building-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.hz-building-badge {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.hz-upgrade-btn {
  margin-top: 8px;
}

/* CASSINO */
.casino-screen {
  min-height: 320px;
  display: grid;
  place-items: center;
}

.casino-card {
  width: min(720px, 100%);
  border-radius: 26px;
  padding: 28px;
  border: 1px solid rgba(124,255,34,.28);
  background:
    radial-gradient(circle at top, rgba(124,255,34,.16), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.36));
  box-shadow: 0 0 36px rgba(124,255,34,.12);
  text-align: center;
}

.casino-kicker {
  display: inline-flex;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 12px;
}

.casino-card h3 {
  font-size: clamp(30px, 5vw, 56px);
  margin-bottom: 10px;
}

.casino-card p {
  color: var(--muted);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 22px;
}

.casino-machine {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 420px;
  margin: 0 auto 22px;
}

.casino-slot {
  min-height: 110px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 52px;
  background: rgba(0,0,0,.42);
  border: 1px solid rgba(124,255,34,.28);
  box-shadow: inset 0 0 22px rgba(124,255,34,.08);
}

.casino-machine.spinning .casino-slot {
  animation: casinoSpin .12s linear infinite;
}

@keyframes casinoSpin {
  0% { transform: translateY(0) scale(1); filter: blur(0); }
  50% { transform: translateY(-8px) scale(1.04); filter: blur(1px); }
  100% { transform: translateY(0) scale(1); filter: blur(0); }
}

.casino-prizes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.casino-prizes div {
  border-radius: 16px;
  padding: 12px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
}

.casino-prizes strong {
  display: block;
  color: var(--green);
  font-size: 20px;
}

.casino-prizes span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.casino-spin-btn {
  width: 100%;
  max-width: 420px;
  min-height: 54px;
  border-radius: 18px;
  color: #07100a;
  background: linear-gradient(90deg, var(--green), var(--green-2));
  font-weight: 950;
}

.casino-spin-btn:disabled {
  cursor: not-allowed;
  opacity: .55;
  filter: grayscale(.6);
}

.casino-result {
  margin-top: 16px;
  color: var(--green);
  font-size: 18px;
  font-weight: 900;
}

.casino-locked .casino-machine,
.casino-locked .casino-prizes {
  opacity: .45;
  filter: grayscale(.8);
}

@media (max-width: 760px) {
  .casino-prizes {
    grid-template-columns: repeat(2, 1fr);
  }

  .casino-slot {
    min-height: 84px;
    font-size: 40px;
  }
}
