* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: #000;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden;
}

#stars { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }

/* Everything sits in one column, centred both ways. While loading, the
   search/bookmarks block has no height, so the logo + bar are centred; when it
   opens, the whole group re-centres smoothly. */
.stage {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 16px 4vh;
}

/* ---- logo (your image, turned white by landing.js) */
.logo { line-height: 0; }
.logo img {
  display: block;
  width: min(580px, 84vw);
  height: auto;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.logo img.shown { opacity: 1; }

/* ---- loading bar */
.loader {
  width: min(580px, 84vw);
  height: 5px;
  margin-top: 44px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  transition: opacity 0.4s ease;
}
.loader-fill {
  width: 0%;
  height: 100%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  transition: width 0.25s linear;
}
body.ready .loader { opacity: 0; height: 0; margin: 0; transition: opacity 0.3s ease, height 0.6s ease, margin 0.6s ease; }

/* ---- everything that appears after loading */
.after {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: max-height 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease 0.3s, transform 0.7s ease 0.3s, visibility 0s 0.3s;
}
body.ready .after { max-height: 420px; overflow: visible; opacity: 1; visibility: visible; transform: none; }

.search {
  position: relative;
  width: min(760px, 92vw);
  margin-top: 44px;
}
.search input {
  width: 100%;
  height: 48px;
  padding: 0 56px 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  background: rgba(95, 95, 95, 0.82);
  color: #fff;
  font-size: 19px;
  outline: none;
}
.search input:focus { background: rgba(110, 110, 110, 0.88); border-color: rgba(255, 255, 255, 0.25); }
.search input::placeholder { color: rgba(255, 255, 255, 0.55); }

.mic {
  position: absolute;
  top: 0;
  right: 0;
  width: 54px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  color: #8e8e8e;
  cursor: pointer;
}
.mic svg { fill: currentColor; }
.mic:hover { color: #d6d6d6; }
.mic.listening { color: #ff5252; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.45; } }

.voice-msg { min-height: 20px; margin-top: 10px; color: rgba(255, 255, 255, 0.6); font-size: 15px; }

/* ---- bookmarks (Chrome-style shortcut tiles) */
.bookmarks { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.bm {
  width: 132px;
  padding: 18px 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  color: #e8e8e8;
  text-decoration: none;
  transition: background 0.15s ease;
}
.bm:hover, .bm:focus-visible { background: rgba(255, 255, 255, 0.09); outline: none; }
.bm-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(70, 70, 70, 0.9);
  color: #fff;
}
.bm-icon img { width: 34px; height: 34px; }
.bm-icon svg { width: 30px; height: 30px; }
.bm-label { font-size: 15px; }

/* ---- coming-soon page (games) */
.soon { text-align: center; }
.soon h2 { font-size: 34px; font-weight: normal; letter-spacing: 0.04em; }
.soon p { margin-top: 12px; color: rgba(255, 255, 255, 0.6); font-size: 18px; }
.soon a { display: inline-block; margin-top: 30px; color: #fff; font-size: 17px; }

@media (prefers-reduced-motion: reduce) {
  .after, body.ready .loader, .logo img, .loader-fill { transition: none; }
}
