/* Hub shell styling — dark/ash theme, ember + purple/cyan accents to match
   the in-game HUD. This file only styles the home screen and the generic
   placeholder screens; it never touches anything under src/render, src/ui,
   or src/game. */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #07060a;
  color: #fff;
  font-family: Arial, sans-serif;
}

#ashCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#hub {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

/* Every screen (home + placeholders + play) shares this layout: centered,
   full-viewport, one at a time. main.js/router.js toggle the native
   `hidden` attribute to switch between them — no reloads, no teardown. */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
}
.screen[hidden] { display: none; }

/* ---------- HOME ---------- */

.hub-title {
  margin: 0;
  font-size: clamp(40px, 9vw, 84px);
  font-weight: 800;
  letter-spacing: 2px;
  color: #f2eef7;
  text-shadow: 0 0 26px rgba(178, 107, 255, .35), 0 0 60px rgba(255, 154, 74, .18);
}
.hub-title-accent {
  background: linear-gradient(90deg, #ff9a4a, #ffd166 45%, #b26bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hub-subtitle {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, .55);
  font-size: clamp(14px, 2vw, 17px);
  letter-spacing: .5px;
}

.hub-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 520px;
}

.hub-btn {
  appearance: none;
  cursor: pointer;
  min-width: 150px;
  padding: 14px 26px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(20, 18, 28, .78);
  color: #fff;
  font: 800 15px/1 Arial, sans-serif;
  letter-spacing: 1.5px;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.hub-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(178, 107, 255, .5);
  background: rgba(32, 28, 46, .9);
}
.hub-btn:active { transform: translateY(0); }

.hub-btn-primary {
  border-color: rgba(255, 154, 74, .55);
  background: linear-gradient(180deg, rgba(255, 154, 74, .22), rgba(255, 154, 74, .08));
}
.hub-btn-primary:hover {
  border-color: #ffb066;
  background: linear-gradient(180deg, rgba(255, 154, 74, .32), rgba(255, 154, 74, .12));
}

/* ---------- PLACEHOLDER SCREENS (character / shop / index) ---------- */

.placeholder-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.placeholder-title {
  margin: 8px 0 0;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: 3px;
  color: #cdbcff;
  text-shadow: 0 0 24px rgba(178, 107, 255, .35);
}

.placeholder-message {
  margin: 0;
  color: rgba(255, 255, 255, .5);
  font-size: 16px;
  letter-spacing: .5px;
}

.hub-btn-back {
  border-color: rgba(79, 224, 210, .4);
}
.hub-btn-back:hover {
  border-color: #7ef0e4;
  background: rgba(79, 224, 210, .12);
}

/* ---------- PLAY SCREEN ---------- */

.screen-play {
  padding: 0;
}

.game-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.hub-btn-exit {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  min-width: 0;
  padding: 10px 16px;
  opacity: .55;
}
.hub-btn-exit:hover { opacity: 1; }
