* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; font-family: "Tahoma", "Segoe UI", Verdana, sans-serif; overflow: hidden;
}
.demo-banner {
  background: #1F2937; color: #E5E7EB; text-align: center; padding: 8px 16px; font-size: 0.78rem;
  position: relative; z-index: 50;
}
.demo-banner a { color: #93C5FD; font-weight: 600; text-decoration: underline; }

.xp-screen {
  position: relative; height: calc(100vh - 33px); min-height: 500px; overflow: hidden;
  background: linear-gradient(180deg, #1941A5 0%, #3F7FE0 38%, #8FC7F2 68%, #BFE3F7 100%);
}
.xp-sky-glow {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%); width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 65%);
}
.xp-hill {
  position: absolute; bottom: -60px; left: -10%; width: 130%; height: 220px; border-radius: 50%;
  background: linear-gradient(180deg, #6FB92C 0%, #4E9A1E 100%);
}
.xp-hill.back {
  bottom: -100px; height: 260px; background: linear-gradient(180deg, #8FCB4A 0%, #6FA82E 100%); opacity: 0.85; left: -20%;
}

.xp-topband {
  position: absolute; top: 0; left: 0; right: 0; height: 56px;
  background: linear-gradient(180deg, #2358D6 0%, #1941A5 100%); border-bottom: 2px solid #0E2C7E;
  display: flex; align-items: center; padding: 0 20px; color: #fff;
}
.xp-flag { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.xp-flag .sq { display: inline-grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; width: 22px; height: 22px; gap: 2px; }
.xp-flag .sq span:nth-child(1) { background: #F35325; }
.xp-flag .sq span:nth-child(2) { background: #81BC06; }
.xp-flag .sq span:nth-child(3) { background: #05A6F0; }
.xp-flag .sq span:nth-child(4) { background: #FFBA08; }
.xp-flag b { font-style: italic; }

.xp-content {
  position: absolute; top: 90px; left: 0; right: 0; bottom: 70px; display: flex; align-items: center;
}
.xp-left { flex: 1; display: flex; flex-direction: column; align-items: flex-end; padding-right: 46px; color: #fff; text-align: right; }
.xp-left h1 { font-size: 1.5rem; font-weight: 400; margin: 0 0 4px; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.xp-left p { font-size: 0.92rem; margin: 0; max-width: 260px; opacity: 0.95; text-shadow: 0 1px 2px rgba(0,0,0,0.25); }

.xp-divider { width: 2px; align-self: stretch; margin: 10px 0; background: rgba(255,255,255,0.5); }

.xp-right { flex: 1; padding-left: 46px; }
.xp-tile {
  display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 8px; cursor: pointer;
  width: 260px; transition: background 0.15s ease;
}
.xp-tile:hover, .xp-tile.active { background: rgba(255,255,255,0.18); }
.xp-avatar {
  width: 48px; height: 48px; border-radius: 6px; background: linear-gradient(160deg, #FFD36E, #F3A712);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35); flex-shrink: 0;
}
.xp-tile .name { color: #fff; font-size: 1.05rem; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }

.xp-login-box {
  margin-top: 10px; margin-left: 10px; width: 300px; background: rgba(20,40,90,0.35);
  border-radius: 8px; padding: 14px; display: none; backdrop-filter: blur(2px);
}
.xp-login-box.open { display: block; animation: xpSlide 0.25s ease; }
@keyframes xpSlide { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.xp-login-box label { color: #fff; font-size: 0.8rem; display: block; margin-bottom: 6px; }
.xp-login-row { display: flex; align-items: center; gap: 8px; }
.xp-login-box input[type="password"] {
  flex: 1; padding: 6px 8px; border: 2px solid #7C9FD8; border-radius: 3px; font-size: 0.9rem;
  font-family: inherit;
}
.xp-go {
  width: 30px; height: 30px; border-radius: 50%; border: none; cursor: pointer; flex-shrink: 0;
  background: radial-gradient(circle at 35% 30%, #8CE85B, #3F9E1C); box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.xp-go:hover { filter: brightness(1.1); }
.xp-hint { color: #E5EDFF; font-size: 0.74rem; margin-top: 8px; }
.xp-hint a { color: #fff; }

.xp-bottombar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 70px;
  background: linear-gradient(180deg, #1941A5 0%, #0E2C7E 100%); border-top: 2px solid #0A2266;
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
}
.xp-bottombar p { color: #BFD3F5; font-size: 0.76rem; margin: 0; max-width: 380px; }
.xp-shutdown {
  display: flex; align-items: center; gap: 8px; background: linear-gradient(180deg, #D8493B, #A81C10);
  color: #fff; border: 1px solid #7A0F06; border-radius: 4px; padding: 8px 16px; font-size: 0.82rem;
  font-weight: 600; cursor: pointer;
}
.xp-shutdown:hover { filter: brightness(1.08); }
.xp-shutdown .dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; position: relative; }
.xp-shutdown .dot::after { content: ""; position: absolute; top: -3px; left: 50%; width: 2px; height: 8px; background: #fff; transform: translateX(-50%); }

.xp-welcome {
  position: fixed; inset: 0; background: #1941A5; color: #fff; display: none; align-items: center;
  justify-content: center; font-size: 1.6rem; text-align: center; z-index: 20;
}
.xp-welcome.show { display: flex; animation: xpFade 0.4s ease; }
@keyframes xpFade { from { opacity: 0; } to { opacity: 1; } }

.xp-breakout {
  position: absolute; top: 66px; right: 20px; z-index: 30;
}
.xp-breakout a {
  background: rgba(255,255,255,0.9); color: #1941A5; font-size: 0.75rem; font-weight: 700; padding: 6px 12px;
  border-radius: 3px; text-decoration: none; box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

@media (max-width: 760px) {
  .xp-content { flex-direction: column; top: 70px; bottom: 90px; }
  .xp-left { align-items: center; text-align: center; padding-right: 0; }
  .xp-divider { display: none; }
  .xp-right { padding-left: 0; }
  .xp-login-box { margin-left: 0; }
}
