* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  background:
    linear-gradient(rgba(18, 12, 7, 0.55), rgba(18, 12, 7, 0.82)),
    url("../assets/egypt-desert.jpg") center / cover no-repeat fixed,
    #14100a;
  color: #e8ecff;
  font-family: "Segoe UI", system-ui, sans-serif;
  overflow: hidden;
}

#app,
#app canvas {
  position: fixed;
  inset: 0;
}

.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

#intro,
#win,
#banner {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(16, 11, 6, 0.6), rgba(8, 5, 3, 0.94));
  transition: opacity 0.8s ease;
}

.panel {
  text-align: center;
  padding: 2.5rem 3rem;
  border: 1px solid rgba(216, 196, 154, 0.35);
  border-radius: 14px;
  background: rgba(20, 15, 9, 0.72);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.45);
}

.panel h1 {
  font-size: 2.4rem;
  letter-spacing: 0.35em;
  margin-bottom: 0.8rem;
  color: #e8dcc0;
  text-shadow: 0 0 18px rgba(216, 196, 154, 0.6);
}

.panel p {
  color: #cbbfa4;
  margin-bottom: 1.4rem;
}

button,
.btn {
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #241c12;
  background: linear-gradient(135deg, #d8c49a, #a8834f);
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.6rem;
  animation: pulse 1.6s ease-in-out infinite;
}

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

#hud {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-family: "Fira Code", ui-monospace, monospace;
  transition: opacity 0.5s;
}

#score {
  font-size: 1.1rem;
  color: #66ffcc;
}

#hud .hud-line {
  font-size: 0.95rem;
  color: #9fc7ff;
  letter-spacing: 0.12em;
}

#hud .hud-line.lives {
  color: #ff5c5c;
  letter-spacing: 0.3em;
}

.hint {
  font-size: 0.75rem;
  color: #7783a8;
}

body.landing {
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background:
    linear-gradient(rgba(18, 12, 7, 0.55), rgba(18, 12, 7, 0.82)),
    url("../assets/egypt-desert.jpg") center / cover no-repeat fixed,
    #14100a;
}

.card {
  text-align: center;
  padding: 3rem;
  max-width: 34rem;
  border: 1px solid rgba(216, 196, 154, 0.3);
  border-radius: 16px;
  background: rgba(20, 15, 9, 0.7);
}

.card h1 {
  letter-spacing: 0.2em;
  color: #e8dcc0;
  margin-bottom: 0.6rem;
}

.card .sub {
  color: #cbbfa4;
  margin-bottom: 1.6rem;
}

.card .links {
  margin-top: 1.6rem;
  font-size: 0.9rem;
}

.card .links a {
  color: #d8c49a;
  text-decoration: none;
}

.card .links a:hover {
  text-decoration: underline;
}

.noscript-info {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 0.6rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #ffe3b3;
  background: rgba(30, 18, 4, 0.92);
  border-bottom: 1px solid rgba(255, 179, 71, 0.6);
}
