:root { font-family: 'Chakra Petch', sans-serif; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: radial-gradient(ellipse at center, #3a3f44 0%, #16181b 70%, #0a0b0d 100%);
  color: #fff;
  overflow: hidden;
  user-select: none;
}
#root { height: 100vh; width: 100vw; }

/* ---------- BOOT ---------- */
.boot {
  height: 100vh; width: 100vw;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at center, #1a2410, #050805 80%);
  gap: 30px; position: relative;
}
.boot-orb { position: relative; width: 150px; height: 150px; animation: bootpop 2.4s ease forwards; }
.boot-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #d4ff7a, #6db327 45%, #2c5008 100%);
  box-shadow: 0 0 40px #7bd226, 0 0 90px rgba(123,210,38,.5);
  animation: spin 2.4s linear;
}
.boot-x {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 74px; font-weight: 700; color: #fff; font-style: italic;
  text-shadow: 0 0 12px rgba(0,0,0,.4);
}
.boot-text {
  font-size: 30px; letter-spacing: 8px; font-weight: 300; color: #cfe8a8;
  opacity: 0; animation: fadein .8s ease 1.2s forwards;
}
.boot-skip {
  position: absolute; bottom: 30px; right: 30px;
  background: rgba(255,255,255,.08); color: #9cbf6a; border: 1px solid rgba(123,210,38,.4);
  padding: 8px 16px; border-radius: 20px; cursor: pointer; font-family: inherit; font-size: 13px;
}
.boot-skip:hover { background: rgba(123,210,38,.2); }
@keyframes bootpop { 0% { transform: scale(0) rotate(-180deg); opacity: 0; } 30% { transform: scale(1.1) rotate(0); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes fadein { to { opacity: 1; } }

/* ---------- DASH ---------- */
.dash {
  height: 100vh; width: 100vw; position: relative;
  padding: 40px 0 70px;
  display: flex; align-items: stretch;
}
.clock {
  position: absolute; top: 12px; right: 60px; z-index: 20;
  font-size: 14px; color: #d8dee5; letter-spacing: 1px; font-weight: 300;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.mute-btn {
  position: absolute; top: 8px; right: 14px; z-index: 20;
  background: rgba(255,255,255,.1); border: none; border-radius: 6px;
  font-size: 15px; padding: 4px 7px; cursor: pointer;
}

/* ---------- BLADES ---------- */
.blades {
  flex: 1; display: flex; align-items: stretch;
  padding: 0 6px; overflow: hidden;
}
.blade {
  position: relative;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 0 40px rgba(0,0,0,.5), inset 0 0 30px rgba(255,255,255,.15);
  transition: flex .35s cubic-bezier(.3,.8,.3,1);
  overflow: hidden;
}
.blade-tab {
  flex: 0 0 46px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; margin: 24px 3px;
  box-shadow: inset 0 0 14px rgba(255,255,255,.25), 0 2px 8px rgba(0,0,0,.4);
  border-top: 1px solid rgba(255,255,255,.5);
  transition: flex-basis .2s, filter .2s;
}
.blade-tab:hover { filter: brightness(1.15); flex-basis: 54px; }
.tab-label {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 15px; font-weight: 600; letter-spacing: 2px; opacity: .85;
  text-transform: lowercase; text-shadow: 0 1px 2px rgba(255,255,255,.3);
}
.blade-active {
  flex: 1 1 auto; margin: 0 4px;
  border-top: 2px solid rgba(255,255,255,.7);
  animation: bladeIn .35s ease;
}
@keyframes bladeIn { from { opacity: .4; transform: scaleY(.97); } to { opacity: 1; transform: scaleY(1); } }
.blade-sheen {
  position: absolute; top: 0; left: 0; width: 45%; height: 100%;
  background: linear-gradient(105deg, rgba(255,255,255,.35), transparent 60%);
  pointer-events: none;
}

.blade-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px 8px;
}
.blade-title { font-size: 34px; font-weight: 700; letter-spacing: -.5px; text-shadow: 0 1px 3px rgba(255,255,255,.35); }
.xlogo { font-size: 22px; font-weight: 700; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; opacity: .9; }
.xorb {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #f2f7ea, #cfe8a8 60%, rgba(255,255,255,.5));
  color: var(--c3); font-style: italic; font-size: 17px;
  box-shadow: 0 0 10px rgba(255,255,255,.6);
}

/* ---------- BLADE BODY ---------- */
.blade-body { padding: 6px 40px 20px; height: calc(100% - 78px); }
.blade-cols { display: flex; gap: 30px; height: 100%; }
.menu-col { flex: 0 0 46%; display: flex; flex-direction: column; gap: 7px; position: relative; }
.info-col { flex: 1; min-width: 0; }

.menu-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: 6px; cursor: pointer;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--txt); font-size: 17px; font-weight: 600;
  transition: all .12s; position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.menu-sel {
  background: linear-gradient(90deg, rgba(255,255,255,.9), var(--accent) 70%, rgba(255,255,255,.5));
  color: #1a1a1a;
  box-shadow: 0 0 18px var(--accent), inset 0 1px 0 rgba(255,255,255,.8);
  transform: translateX(6px);
}
.menu-dis { opacity: .4; cursor: default; }
.menu-icon { font-size: 18px; width: 22px; text-align: center; }
.menu-name { flex: 1; }
.menu-badge {
  background: rgba(0,0,0,.25); color: inherit; padding: 2px 9px; border-radius: 10px;
  font-size: 13px; font-weight: 700;
}
.menu-sel .menu-badge { background: rgba(0,0,0,.15); }

/* ---------- INFO PANEL ---------- */
.info-panel {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px; padding: 20px; height: 100%;
  color: var(--txt); box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.info-title { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.info-thumb {
  width: 100%; height: 42%; border-radius: 6px; margin-bottom: 14px;
  box-shadow: inset 0 0 30px rgba(0,0,0,.2), 0 2px 6px rgba(0,0,0,.25);
}
.info-desc { font-size: 15px; line-height: 1.6; white-space: pre-line; font-weight: 400; }

/* ---------- SYSTEM INFO ---------- */
.sysinfo {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px; padding: 22px; height: 100%; color: var(--txt);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.si-title { font-size: 20px; font-weight: 700; margin-bottom: 16px; border-bottom: 1px solid rgba(0,0,0,.15); padding-bottom: 8px; }
.si-row {
  display: flex; justify-content: space-between; padding: 9px 10px;
  font-size: 15px; font-weight: 500; border-bottom: 1px dashed rgba(0,0,0,.12);
}
.si-row span:last-child { font-weight: 700; }
.si-hl {
  background: linear-gradient(90deg, rgba(255,255,255,.7), transparent);
  border-radius: 5px; box-shadow: 0 0 14px rgba(255,255,255,.5);
}
.si-note { margin-top: 16px; font-size: 12px; opacity: .6; font-style: italic; }

/* ---------- XBOX LIVE ---------- */
.live-logo {
  margin-top: 12px; display: flex; align-items: center; gap: 6px;
  background: linear-gradient(180deg, #333, #111); border-radius: 8px;
  padding: 16px; box-shadow: 0 0 20px rgba(0,0,0,.4);
}
.live-x, .gs-orb {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, #f39c1a 60%, #c9760a);
  color: #4a2c00; font-weight: 700; font-style: italic;
}
.live-word { color: #f39c1a; font-size: 26px; font-weight: 700; font-style: italic; text-shadow: 0 0 12px rgba(243,156,26,.6); }
.live-info { color: var(--txt); }
.live-card {
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
  border-radius: 8px; padding: 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
.live-card-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.live-gs { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.gs-orb { width: 24px; height: 24px; font-size: 14px; }
.live-ach-label { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.live-ach { display: flex; gap: 10px; }
.ach-box {
  width: 52px; height: 52px; border-radius: 6px;
  background: rgba(0,0,0,.15); border: 1px solid rgba(0,0,0,.2);
  display: flex; align-items: center; justify-content: center; font-size: 20px; opacity: .5;
}

/* ---------- GAMES LIBRARY ---------- */
.lib-header { font-size: 26px; font-weight: 700; color: var(--txt); padding: 10px 0 14px; }
.lib-cols { display: flex; gap: 24px; height: calc(100% - 60px); }
.lib-list { flex: 0 0 55%; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.lib-item {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px;
  background: rgba(255,255,255,.12); border-radius: 6px; color: var(--txt);
  border: 1px solid rgba(255,255,255,.2);
}
.lib-sel { background: linear-gradient(90deg, rgba(255,255,255,.9), var(--accent)); color: #1a1a1a; box-shadow: 0 0 14px var(--accent); }
.lib-cover {
  width: 40px; height: 40px; border-radius: 4px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 18px; box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.lib-meta { flex: 1; }
.lib-t { font-size: 15px; font-weight: 700; }
.lib-p { font-size: 12px; opacity: .7; }
.lib-tag { font-size: 11px; font-weight: 700; opacity: .55; letter-spacing: 1px; }
.lib-side { flex: 1; color: var(--txt); }
.lib-side-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.lib-shot {
  width: 100%; height: 130px; border-radius: 6px; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 32px; color: rgba(255,255,255,.7);
  box-shadow: inset 0 0 20px rgba(0,0,0,.4);
}
.lib-side p { font-size: 14px; line-height: 1.5; }

/* ---------- HUD ---------- */
.hud {
  position: absolute; bottom: 0; left: 0; right: 0; height: 54px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 30px; background: linear-gradient(180deg, rgba(0,0,0,.3), rgba(0,0,0,.65));
  backdrop-filter: blur(4px); font-size: 14px; color: #dfe4ea; z-index: 15;
}
.hud-left, .hud-right { display: flex; gap: 22px; align-items: center; }
.hud-hint { font-size: 12px; opacity: .5; letter-spacing: 1px; }
.hud span { display: inline-flex; align-items: center; gap: 6px; }
.gbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; color: #fff;
  font-size: 12px; font-weight: 700; box-shadow: inset 0 -2px 3px rgba(0,0,0,.35), 0 1px 3px rgba(0,0,0,.4);
}

/* ---------- FOOTER ---------- */
.footer { position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); z-index: 16; }
.footer a { color: rgba(255,255,255,.4); font-size: 11px; text-decoration: none; }
.footer a:hover { color: rgba(255,255,255,.8); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 760px) {
  .dash { flex-direction: column; padding: 8px 0 60px; }
  .clock { right: 46px; top: 8px; }
  .blades { flex-direction: column; padding: 4px; overflow-y: auto; }
  .blade-tab {
    flex: 0 0 40px; margin: 3px 0; flex-direction: row; border-radius: 6px;
  }
  .blade-tab:hover { flex-basis: 40px; }
  .tab-label { writing-mode: horizontal-tb; transform: none; }
  .blade-active { flex: 1 1 auto; margin: 4px 0; min-height: 60vh; }
  .blade-head { padding: 14px 18px 6px; flex-wrap: wrap; gap: 6px; }
  .blade-title { font-size: 24px; }
  .xlogo { font-size: 16px; }
  .blade-body { padding: 6px 16px 16px; height: auto; }
  .blade-cols, .lib-cols { flex-direction: column; }
  .menu-col { flex: none; }
  .info-col { flex: none; }
  .info-thumb { height: 120px; }
  .hud-hint { display: none; }
  .hud { padding: 0 12px; font-size: 12px; }
  .hud-left, .hud-right { gap: 12px; }
}
</style>