/* styles.css */
:root {
  --bg: #070910;
  --ink: #e7eefc;
  --muted: #93a0c4;
  --line: rgba(150, 180, 255, 0.16);
  --cyan: #3ee0ff;
  --amber: #ffb13a;
  --violet: #8d7bff;
  --rose: #ff5d7a;
  --good: #5dffb0;
}
* { box-sizing: border-box; }
html, body, #root { min-height: 100%; }
h1, h2, h3, p { margin: 0; }
body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
button, a { font-family: inherit; }
.us-wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.us-site { position: relative; z-index: 1; }
.us-sky {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(620px 340px at 12% 18%, rgba(109, 75, 255, 0.38), transparent 70%),
    radial-gradient(520px 320px at 88% 76%, rgba(12, 124, 150, 0.32), transparent 72%),
    radial-gradient(380px 220px at 60% 28%, rgba(255, 90, 60, 0.12), transparent 70%),
    #070910;
}
.us-sky:before {
  content: "";
  position: absolute; inset: 0; opacity: 0.75;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 80px 120px, #d5e4ff, transparent),
    radial-gradient(1.5px 1.5px at 140px 70px, #fff, transparent),
    radial-gradient(1px 1px at 180px 20px, #ffe1b0, transparent);
  background-size: 220px 180px;
  animation: us-drift 70s linear infinite;
}
@keyframes us-drift { to { background-position: 0 180px; } }
@media (prefers-reduced-motion: reduce) { .us-sky:before { animation: none; } }
.us-header { position: relative; z-index: 20; }
.us-header-in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.us-brand { color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.86rem; }
.us-nav { display: flex; align-items: center; gap: 18px; }
.us-nav > a, .us-drop > button {
  color: var(--muted); background: none; border: 0; font-weight: 700; cursor: pointer; text-decoration: none; font-size: 0.95rem;
}
.us-drop { position: relative; }
.us-drop-panel {
  display: none; position: absolute; right: 0; top: calc(100% + 10px); width: min(340px, 78vw);
  padding: 10px; border-radius: 16px; background: rgba(10, 14, 28, 0.97);
  border: 1px solid var(--line); box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45); z-index: 40;
}
.us-drop:hover .us-drop-panel, .us-drop:focus-within .us-drop-panel, .us-drop.open .us-drop-panel { display: block; }
.us-game-card { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; }
.us-cover-svg { width: 100%; height: auto; display: block; border-radius: 12px; }
.us-card-copy { display: flex; flex-direction: column; gap: 4px; padding: 2px 4px 6px; }
.us-card-copy strong { font-size: 1.12rem; }
.us-card-copy em, .us-card-copy p { color: var(--muted); font-style: normal; }
.us-hero { padding: 54px 0 20px; }
.us-kicker { color: var(--violet); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.2em; }
.us-hero h1 { font-size: clamp(2.5rem, 6vw, 5.1rem); line-height: 0.94; letter-spacing: -0.035em; margin: 10px 0 14px; max-width: 12ch; }
.us-lead { max-width: 62ch; color: var(--muted); font-size: 1.08rem; }
.us-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.us-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(16, 22, 40, 0.92); color: var(--ink); font-weight: 800; cursor: pointer; text-decoration: none;
}
.us-btn-primary { background: linear-gradient(180deg, #7aefff, #2f7dff); color: #061018; border-color: transparent; }
.us-btn.on, .us-power.on { outline: 2px solid var(--violet); }
.us-btn:disabled, .us-up:disabled { opacity: 0.45; cursor: default; }
.us-section { padding: 28px 0; }
.us-section h2 { font-size: 1.5rem; margin-bottom: 14px; }
.us-feature {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 18px; align-items: center;
  text-decoration: none; color: inherit; padding: 12px; border-radius: 20px;
  border: 1px solid var(--line); background: rgba(8, 12, 24, 0.72);
}
.us-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.us-info { padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(8, 12, 24, 0.55); }
.us-info h3 { margin-bottom: 6px; }
.us-info p { color: var(--muted); }
.us-footer { position: relative; z-index: 1; }
.us-footer-in { display: flex; justify-content: space-between; gap: 12px; padding: 28px 0 40px; color: var(--muted); }
.us-footer a { color: var(--cyan); text-decoration: none; }
.us-game-page { height: 100vh; display: flex; flex-direction: column; overflow: hidden; background: #070910; }
.us-game-page .us-header { background: rgba(5, 7, 14, 0.94); border-bottom: 1px solid var(--line); }
.us-stage { position: relative; flex: 1; min-height: 0; outline: none; }
.us-stage canvas { width: 100%; height: 100%; display: block; }
.us-hud { position: absolute; inset: 0; z-index: 2; pointer-events: none; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.us-hud-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.us-pilot { width: min(280px, 34vw); background: rgba(6, 10, 20, 0.62); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 8px 10px; }
.us-pname { display: flex; justify-content: space-between; gap: 8px; font-size: 0.86rem; font-weight: 800; }
.us-pname em { font-style: normal; color: var(--muted); font-weight: 600; }
.us-mini { margin-top: 4px; color: var(--muted); font-size: 0.75rem; }
.us-bar { height: 8px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; margin-top: 4px; }
.us-bar > span { display: block; height: 100%; }
.us-bar.hp.vega > span { background: var(--cyan); }
.us-bar.hp.lyra > span { background: var(--amber); }
.us-bar.xp > span { background: var(--violet); }
.us-bar.sp > span { background: var(--good); }
.us-center { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.us-center .us-btn, .us-hud .us-btn { pointer-events: auto; }
.us-meter, .us-boss .track { position: relative; height: 12px; width: min(360px, 70vw); background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; }
.us-meter > span { display: block; height: 100%; background: linear-gradient(90deg, #6a4dff, #3ee0ff); }
.us-meter.ready > span { background: linear-gradient(90deg, #ffe28a, #ff5d7a); }
.us-meter em, .us-boss p { font-style: normal; font-size: 0.78rem; color: var(--muted); }
.us-boss { width: min(520px, 86vw); margin: 0 auto; }
.us-boss .track { width: 100%; border: 1px solid rgba(255,93,122,0.45); background: #200814; }
.us-boss .track > span { display: block; height: 100%; background: linear-gradient(90deg, #ff5d7a, #ffb13a); }
.us-overlay { position: absolute; inset: 0; z-index: 5; background: rgba(4, 6, 14, 0.72); display: flex; justify-content: center; align-items: flex-start; padding: 20px 14px; overflow: auto; }
.us-panel { width: min(980px, 100%); background: rgba(10, 14, 28, 0.95); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 20px 70px rgba(0,0,0,0.45); }
.us-panel h2 { font-size: 1.7rem; margin-bottom: 6px; }
.us-panel h3 { margin: 8px 0; }
.us-note { color: var(--muted); margin: 6px 0 10px; }
.us-err { color: #ff8aa0; }
.us-ok { color: var(--good); }
.us-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.us-bind { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.us-actions.tight { margin-top: 12px; }
.us-power-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.us-power { padding: 6px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.16); background: transparent; color: inherit; cursor: pointer; font-size: 0.78rem; }
.us-up { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,0.08); background: transparent; color: inherit; cursor: pointer; text-align: left; }
.us-up em { color: var(--muted); font-style: normal; font-size: 0.8rem; }
.us-pips { display: inline-flex; gap: 3px; margin-left: 8px; vertical-align: middle; }
.us-pips i { width: 8px; height: 8px; border-radius: 2px; background: rgba(255,255,255,0.15); display: block; }
.us-pips i.on { background: var(--violet); }
.us-live { color: var(--muted); font-variant-numeric: tabular-nums; }
.us-stat { padding: 8px 0; border-top: 1px solid rgba(255,255,255,0.06); }
@media (max-width: 800px) {
  .us-feature, .us-grid, .us-cols, .us-hud-top { grid-template-columns: 1fr; display: grid; }
  .us-hud-top { display: flex; flex-direction: column; }
  .us-pilot { width: 100%; }
  .us-hero h1 { max-width: none; }
}
