/* Figure-01 hello / activation screen (主神养成系统).
   Reuses system.css for theme vars, particle/scan atmosphere, and the .card
   HUD frame (the big 系统 window is a .card → gets the glowing octagon frame).
   This file only lays out the hello-specific content. */

.hello-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 18px 60px;
}
.hello-stage { position: relative; width: min(960px, 96vw); display: flex; justify-content: center; }

/* ---- cyberpunk backdrop: moving neon grid floor + horizon + data rain ---- */
.hello-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% 4%, rgba(46, 130, 255, 0.26), transparent 56%),
    radial-gradient(130% 60% at 50% 114%, rgba(200, 70, 255, 0.24), transparent 60%),
    radial-gradient(80% 26% at 50% 58%, rgba(90, 205, 255, 0.12), transparent 72%),
    #04060f;
}
.hello-bg::before {                 /* perspective neon grid floor (Tron) */
  content: "";
  position: absolute;
  left: -40%;
  right: -40%;
  bottom: -14%;
  height: 76%;
  background-image:
    repeating-linear-gradient(90deg, rgba(90, 215, 255, 0.55) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(90, 215, 255, 0.45) 0 2px, transparent 2px 80px);
  transform: perspective(460px) rotateX(64deg);
  transform-origin: bottom center;
  -webkit-mask: linear-gradient(180deg, transparent, #000 34%);
  mask: linear-gradient(180deg, transparent, #000 34%);
  opacity: 0.8;
  animation: helloGrid 5.5s linear infinite;
}
@keyframes helloGrid {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 80px, 0 80px; }
}
.hello-bg::after {                  /* falling data streaks: bright dashes inside thin columns */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 70px, rgba(160, 235, 255, 0.85) 70px 96px, transparent 96px 150px);
  background-size: 100% 150px;
  -webkit-mask: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0 2px, transparent 2px 58px);
  mask: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0 2px, transparent 2px 58px);
  opacity: 0.6;
  animation: helloRain 3.2s linear infinite;
}
@keyframes helloRain {
  from { background-position: 0 0; }
  to { background-position: 0 150px; }
}
@media (prefers-reduced-motion: reduce) { .hello-bg::before, .hello-bg::after { animation: none; } }

.hello-window {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 20px clamp(18px, 3vw, 32px) 26px;
  display: grid;
  gap: 16px;
}

/* ---- title bar ---- */
.hello-titlebar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 4px 0 12px;
  border-bottom: 1px solid rgba(80, 190, 255, 0.25);
}
.hello-title {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: 0.3em;
  margin-left: 0.3em;
  background: linear-gradient(180deg, #ffffff, #a8dcff 55%, #4f9cff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 0 26px rgba(90, 205, 255, 0.7), 0 0 52px rgba(52, 150, 255, 0.45);
}
.hello-wing { width: clamp(40px, 12vw, 150px); height: 2px; box-shadow: 0 0 10px rgba(52, 200, 255, 0.85); }
.hello-wing.left { background: linear-gradient(90deg, transparent, var(--accent)); }
.hello-wing.right { background: linear-gradient(90deg, var(--accent), transparent); }
.hello-winctl { position: absolute; right: 2px; top: 0; display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 16px; }
.hello-winctl .x { color: var(--muted); text-decoration: none; }
.hello-winctl .x:hover { color: var(--accent); text-shadow: 0 0 8px var(--accent); }

/* ---- body grid ---- */
.hello-body-grid { display: grid; grid-template-columns: 1fr clamp(180px, 24%, 230px); gap: clamp(16px, 3vw, 30px); }

/* framed HUD sub-panels (panels-within-panel, like fig-01) */
.hud-panel {
  position: relative;
  border: 1px solid rgba(95, 200, 255, 0.5);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(20, 48, 94, 0.45), rgba(10, 24, 52, 0.55));
  box-shadow: inset 0 0 20px rgba(40, 120, 220, 0.18), 0 0 14px rgba(40, 130, 230, 0.2);
  padding: 14px 16px;
}
.hud-panel::before {
  content: "";
  position: absolute;
  inset: 5px;
  pointer-events: none;
  filter: drop-shadow(0 0 3px rgba(90, 210, 255, 0.85));
  background:
    linear-gradient(#7fe6ff, #7fe6ff) left top / 12px 2px no-repeat,
    linear-gradient(#7fe6ff, #7fe6ff) left top / 2px 12px no-repeat,
    linear-gradient(#7fe6ff, #7fe6ff) right top / 12px 2px no-repeat,
    linear-gradient(#7fe6ff, #7fe6ff) right top / 2px 12px no-repeat,
    linear-gradient(#7fe6ff, #7fe6ff) left bottom / 12px 2px no-repeat,
    linear-gradient(#7fe6ff, #7fe6ff) left bottom / 2px 12px no-repeat,
    linear-gradient(#7fe6ff, #7fe6ff) right bottom / 12px 2px no-repeat,
    linear-gradient(#7fe6ff, #7fe6ff) right bottom / 2px 12px no-repeat;
}
.hello-main { display: grid; gap: 12px; }

/* boot reveal: stats + menu + tip slide in AFTER the activation log plays */
.hello-divider, .hello-stats, .hello-menu, .hello-tip { transition: opacity 0.6s ease, transform 0.6s ease; }
.hello-window.booting .hello-divider,
.hello-window.booting .hello-stats,
.hello-window.booting .hello-menu,
.hello-window.booting .hello-tip { opacity: 0; transform: translateY(12px); }
.hello-window.activated .hello-divider { opacity: 1; transform: none; transition-delay: 0s; }
.hello-window.activated .hello-stats { opacity: 1; transform: none; transition-delay: 0.12s; }
.hello-window.activated .hello-menu { opacity: 1; transform: none; transition-delay: 0.24s; }
.hello-window.activated .hello-tip { opacity: 1; transform: none; transition-delay: 0.36s; }

/* activation log */
.hello-log { text-align: center; display: grid; gap: 7px; padding: 6px 0 4px; }
.hello-log p {
  margin: 0;
  color: #bfe6ff;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-shadow: 0 0 8px rgba(52, 160, 255, 0.4);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.hello-log p.show { opacity: 1; transform: none; }
.hello-log p.hl-strong { font-size: 19px; font-weight: 800; color: #eaf7ff; text-shadow: 0 0 14px rgba(80, 200, 255, 0.75); }
.hello-log p.flash { animation: actFlash 0.8s ease; }
@keyframes actFlash {
  0% { text-shadow: 0 0 8px rgba(80, 200, 255, 0.4); }
  30% { color: #ffffff; text-shadow: 0 0 22px #ffffff, 0 0 36px rgba(80, 200, 255, 0.95); }
  100% {}
}
/* activation progress bar */
.act-bar { height: 5px; max-width: 280px; margin: 2px auto; border-radius: 999px; background: rgba(80, 160, 255, 0.16); border: 1px solid rgba(80, 180, 255, 0.32); overflow: hidden; opacity: 0; transition: opacity 0.4s ease; }
.act-bar.show { opacity: 1; }
.act-bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #bff0ff); box-shadow: 0 0 10px rgba(80, 200, 255, 0.85); transition: width 0.12s linear; }

/* divider */
.hello-divider { display: flex; align-items: center; gap: 12px; color: var(--accent); }
.hello-divider::before, .hello-divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(80, 190, 255, 0.5), transparent); }
.hello-divider span { text-shadow: 0 0 8px var(--accent); }

/* stats */
.hello-stats { display: grid; gap: 9px; font-size: 15px; max-width: 420px; width: 100%; margin: 0 auto; }
.hs-row { display: flex; gap: 8px; }
.hs-k { color: var(--muted); min-width: 40px; }
.hs-k::after { content: "："; }
.hs-v { color: #e8f3ff; font-weight: 600; }
.hs-attrs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin: 2px 0; }
.hs-attr { display: flex; align-items: center; gap: 7px; color: #cfe4ff; }
.hs-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }

/* ---- 系统功能 menu ---- */
.hello-menu { display: grid; gap: 9px; align-content: start; }
.hm-title { text-align: center; font-weight: 800; letter-spacing: 0.16em; color: #d7ecff; padding: 4px 0 6px; margin-bottom: 4px; border-bottom: 1px solid rgba(80, 190, 255, 0.22); text-shadow: 0 0 10px rgba(52, 180, 255, 0.6); }
.hm-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: 100%;
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid rgba(80, 180, 255, 0.3);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(30, 64, 120, 0.5), rgba(12, 26, 56, 0.6));
  color: #dcefff;
  font-weight: 700;
  font-size: 14px;
}
.hm-item:hover { border-color: var(--accent); box-shadow: 0 0 14px rgba(52, 180, 255, 0.45); background: linear-gradient(180deg, rgba(40, 90, 170, 0.6), rgba(16, 34, 72, 0.7)); }
.hm-ico { font-size: 16px; filter: drop-shadow(0 0 5px rgba(80, 200, 255, 0.85)); }

/* ---- 系统提示 ---- */
.hello-tip { text-align: center; }
.hello-tip-head { font-weight: 800; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 5px; text-shadow: 0 0 8px rgba(52, 200, 255, 0.6); }
.hello-tip p { margin: 0; color: #cfe6ff; }

/* ---- summon platform under the window ---- */
.hello-platform {
  position: absolute;
  left: 50%;
  bottom: -54px;
  transform: translateX(-50%);
  width: min(720px, 86%);
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(60, 180, 255, 0.4), rgba(60, 160, 255, 0.1) 42%, transparent 70%);
  box-shadow: 0 0 70px rgba(52, 160, 255, 0.4);
  pointer-events: none;
  z-index: 0;
}
.hello-platform::before { content: ""; position: absolute; inset: 30% 12%; border-radius: 50%; border: 1px solid rgba(120, 210, 255, 0.55); box-shadow: 0 0 16px rgba(52, 180, 255, 0.5); }
.hello-platform::after { content: ""; position: absolute; inset: 44% 26%; border-radius: 50%; border: 1px solid rgba(120, 210, 255, 0.35); }
.hello-platform { animation: platGlow 3.4s ease-in-out infinite; }
@keyframes platGlow {
  0%, 100% { box-shadow: 0 0 60px rgba(52, 160, 255, 0.38); }
  50% { box-shadow: 0 0 110px rgba(85, 195, 255, 0.7); }
}
@media (prefers-reduced-motion: reduce) { .hello-platform { animation: none; } }

/* ---- fonts: blockier title + tabular tech numerals (local Windows faces) ---- */
.hello-title { font-family: "SimSun", "宋体", "Songti SC", "Noto Serif CJK SC", "Noto Serif SC", serif; }
#act-pct { font-family: "Bahnschrift", "Rajdhani", "DIN Alternate", system-ui, sans-serif; font-weight: 700; letter-spacing: 0.04em; }
.hs-attr b, .hs-v, #hs-level { font-variant-numeric: tabular-nums; }

/* locked (coming-soon) menu items */
.hm-item.locked { opacity: 0.55; cursor: not-allowed; }
.hm-item.locked:hover { border-color: rgba(80, 180, 255, 0.3); box-shadow: none; background: linear-gradient(180deg, rgba(30, 64, 120, 0.5), rgba(12, 26, 56, 0.6)); }
.hm-lock { margin-left: auto; font-size: 12px; opacity: 0.85; }

/* 系统设置 modal */
.set-group { display: grid; gap: 5px; margin-bottom: 14px; }
.set-label { font-size: 12.5px; color: var(--muted); font-weight: 700; }
#set-host, #set-proxy { width: 100%; box-sizing: border-box; min-height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); color: var(--text); padding: 7px 10px; font: inherit; }
#set-host:focus, #set-proxy:focus { outline: none; border-color: var(--accent); box-shadow: var(--glow-cyan); }
.set-hint { font-size: 11.5px; color: var(--muted); margin: 2px 0 0; }
.set-actions { display: flex; gap: 10px; margin-top: 6px; }
.set-danger { border-color: #fda29b; color: #ff8a8a; background: rgba(255, 90, 90, 0.08); font-weight: 700; }
.set-danger:hover { box-shadow: 0 0 10px rgba(255, 90, 90, 0.4); border-color: #ff8a8a; }

/* ---- TEMPORARY PROMO: LLM Village cross-link (delete with the HTML/JS promo block) ---- */
.game-promo {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  display: flex;
  max-width: 300px;
  border: 1px solid rgba(95, 200, 255, 0.55);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(20, 48, 94, 0.92), rgba(10, 22, 48, 0.95));
  box-shadow: 0 0 18px rgba(40, 130, 230, 0.35), 0 8px 24px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.game-promo.show { opacity: 1; transform: none; }
.game-promo:hover { box-shadow: 0 0 24px rgba(52, 180, 255, 0.5), 0 8px 24px rgba(0, 0, 0, 0.5); }
.gp-link { display: flex; align-items: center; gap: 10px; padding: 11px 30px 11px 13px; text-decoration: none; color: #eaf6ff; }
.gp-emoji { font-size: 22px; filter: drop-shadow(0 0 6px rgba(80, 200, 255, 0.7)); }
.gp-text { display: grid; gap: 2px; }
.gp-text b { font-size: 13.5px; font-weight: 800; color: #fff; }
.gp-text small { font-size: 11.5px; color: var(--muted); }
.gp-link:hover .gp-text b { text-shadow: 0 0 8px rgba(80, 200, 255, 0.7); }
.game-promo-x {
  position: absolute;
  top: 4px;
  right: 4px;
  min-height: 0;
  width: 20px;
  height: 20px;
  padding: 0;
  line-height: 1;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid rgba(120, 180, 255, 0.3);
  background: rgba(0, 0, 0, 0.3);
  color: var(--muted);
}
.game-promo-x:hover { color: var(--accent); border-color: var(--accent); box-shadow: none; }

@media (max-width: 720px) {
  .hello-body-grid { grid-template-columns: 1fr; }
  .hello-menu { border-left: none; border-top: 1px solid rgba(80, 190, 255, 0.18); padding-left: 0; padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hello-log p { animation: none; opacity: 1; }
}
