* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: #000;
  font-family: 'Chivo', 'Segoe UI', Tahoma, sans-serif; }

.nxe-root {
  width: 100vw; height: 100vh; background: #000;
  display: flex; align-items: center; justify-content: center;
  user-select: none; touch-action: none;
}

/* Stage / letterbox */
.nxe-stage {
  position: relative; width: 100%; height: 100%;
  max-width: 100vw; overflow: hidden;
}

/* Background gradient */
.nxe-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 20% -10%, #d4e83a 0%, #a9d21f 18%, #7bb51e 38%, #4f8a2a 58%, transparent 72%),
    linear-gradient(180deg, #8fbf2a 0%, #6fa32b 32%, #5c7a4a 55%, #9aa4a0 78%, #c3c9c6 100%);
}
.nxe-floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  background: linear-gradient(180deg, rgba(180,190,185,0.0) 0%, rgba(180,190,185,0.35) 30%, rgba(200,206,203,0.75) 100%);
  pointer-events: none;
}
.nxe-bokeh { position: absolute; inset: 0; pointer-events: none; }
.nxe-bokeh span {
  position: absolute; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  box-shadow: inset 0 0 0 6px rgba(255,255,255,0.15);
}

/* Categories */
.nxe-cats {
  position: absolute; top: 5%; left: 4%; z-index: 30;
  display: flex; flex-direction: column; gap: 6px;
}
.nxe-cat {
  color: rgba(255,255,255,0.85); font-weight: 300; font-size: clamp(14px, 2.2vw, 26px);
  cursor: pointer; letter-spacing: 0.3px; line-height: 1.15;
  transition: all 0.35s cubic-bezier(.2,.7,.2,1);
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.nxe-cat.active {
  color: #fff; font-weight: 900; font-size: clamp(24px, 4.5vw, 46px);
  padding-left: 22px; position: relative;
}
.nxe-cat .bullet {
  position: absolute; left: 2px; top: 50%; transform: translateY(-50%);
  width: 10px; height: 10px; background: #fff;
}

/* Clock */
.nxe-clock {
  position: absolute; top: 5%; right: 4%; z-index: 30;
  color: rgba(255,255,255,0.9); font-weight: 300; font-size: clamp(14px, 2vw, 22px);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Carousel */
.nxe-carousel {
  position: absolute; top: 34%; left: 6%; right: 0; height: 46%;
  z-index: 20;
}
.nxe-tile {
  position: absolute; top: 0;
  border-radius: 12px;
  background:
    radial-gradient(120% 100% at 70% 20%, #dfe83a 0%, #b6d422 30%, #7cae1e 65%, #5a8c1c 100%);
  box-shadow: 0 12px 30px rgba(0,0,0,0.28), inset 0 2px 8px rgba(255,255,255,0.35);
  transition: all 0.42s cubic-bezier(.22,.75,.2,1);
  display: flex; flex-direction: column;
  cursor: pointer; overflow: hidden;
}
.nxe-tile::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25) 0 2px, transparent 3px),
              radial-gradient(circle at 70% 60%, rgba(255,255,255,0.18) 0 3px, transparent 4px),
              radial-gradient(circle at 20% 75%, rgba(255,255,255,0.14) 0 5px, transparent 6px);
  background-size: 60px 60px, 90px 90px, 120px 120px; opacity: 0.5;
}
.nxe-tile.focused {
  box-shadow: 0 18px 45px rgba(0,0,0,0.35),
              inset 0 2px 10px rgba(255,255,255,0.45),
              0 0 0 2px rgba(255,255,255,0.55), 0 0 28px rgba(210,232,58,0.55);
}
.tile-icon {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding-top: 8px;
}
.tile-label { padding: 0 16px 14px; }
.tile-title {
  color: #fff; font-weight: 300; font-size: clamp(15px, 1.8vw, 26px);
  text-shadow: 0 1px 2px rgba(0,0,0,0.25); line-height: 1.05;
}
.nxe-tile.focused .tile-title { font-size: clamp(20px, 2.4vw, 32px); }
.tile-sub {
  color: rgba(255,255,255,0.78); font-weight: 300; font-size: clamp(11px, 1.2vw, 16px);
}
.tile-reflection {
  position: absolute; bottom: -30%; left: 0; right: 0; height: 30%;
  background: inherit; opacity: 0.12; transform: scaleY(-1); filter: blur(1px);
}

/* Avatar */
.nxe-avatar-wrap {
  position: absolute; top: 30%; left: 52%; z-index: 25;
  pointer-events: none;
}
.nxe-avatar { animation: breathe 3.5s ease-in-out infinite; }
@keyframes breathe {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Counter */
.nxe-counter {
  position: absolute; top: 82%; left: 6%; z-index: 30;
  color: rgba(255,255,255,0.85); font-weight: 300; font-size: clamp(13px, 1.6vw, 20px);
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

/* Legend footer */
.nxe-legend {
  position: absolute; bottom: 4%; left: 4%; z-index: 30;
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
}
.legend-item {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.9); font-weight: 300; font-size: clamp(13px, 1.6vw, 20px);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.legend-item.mute { cursor: pointer; }
.btn-a, .btn-b {
  width: 26px; height: 26px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-weight: 900; font-size: 14px;
  color: #fff; box-shadow: inset 0 -2px 4px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.3);
}
.btn-a { background: radial-gradient(circle at 35% 30%, #7bd12b, #4a8a1a); }
.btn-b { background: radial-gradient(circle at 35% 30%, #e05a4a, #a51e1e); }
.btn-mute { font-size: 18px; }

/* Guide orb */
.nxe-guide {
  position: absolute; bottom: 5%; right: 4%; z-index: 30;
  width: 120px; height: 120px;
}
.guide-orb {
  position: absolute; right: 0; bottom: 0;
  width: 52px; height: 52px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #cfe8a0 40%, #6fae2a 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 24px rgba(120,190,40,0.8), inset 0 0 10px rgba(255,255,255,0.6);
}
.guide-ripple { position: absolute; right: 8px; bottom: 8px; }
.guide-ripple span {
  position: absolute; right: 18px; bottom: 18px;
  border: 2px solid rgba(255,255,255,0.5); border-radius: 50%;
  width: 20px; height: 20px; transform: translate(50%, 50%);
  animation: ripple 3s ease-out infinite;
}
.guide-ripple span:nth-child(2) { animation-delay: 1s; }
.guide-ripple span:nth-child(3) { animation-delay: 2s; }
@keyframes ripple {
  0% { width: 20px; height: 20px; opacity: 0.7; }
  100% { width: 220px; height: 220px; opacity: 0; }
}

/* Remix link */
.nxe-remix {
  position: absolute; bottom: 4%; right: 15%; z-index: 30;
  color: rgba(255,255,255,0.55); font-weight: 300; font-size: 13px;
  text-decoration: none; transition: color 0.2s;
}
.nxe-remix:hover { color: #fff; }

/* Panel overlay */
.nxe-panel-overlay {
  position: absolute; inset: 0; z-index: 200;
  background: rgba(20,40,10,0.55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.nxe-panel {
  width: min(500px, 90vw); max-height: 86vh; overflow-y: auto;
  background:
    radial-gradient(120% 90% at 20% 0%, #dfe83a 0%, #a9d21f 20%, transparent 55%),
    linear-gradient(180deg, #7bae1e, #4f7a2a 70%, #3a5c40);
  border-radius: 16px; padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 2px 12px rgba(255,255,255,0.35),
              0 0 0 2px rgba(255,255,255,0.4);
  animation: pop 0.3s cubic-bezier(.2,1.2,.3,1);
}
@keyframes pop { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.panel-header { color: #fff; font-weight: 900; font-size: 30px; margin-bottom: 14px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.panel-desc { color: rgba(255,255,255,0.92); font-weight: 300; font-size: 16px; margin-bottom: 12px; line-height: 1.5; }
.panel-desc.dim { color: rgba(255,255,255,0.65); font-size: 14px; }
.panel-input {
  width: 100%; padding: 12px 14px; border-radius: 8px; border: none;
  font-size: 18px; margin-bottom: 16px; font-family: inherit;
  background: rgba(255,255,255,0.92); color: #2a3a1a; outline: none;
}
.panel-colors { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.color-swatch {
  width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer; transition: transform 0.15s;
}
.color-swatch.sel { transform: scale(1.15); border-color: #fff; box-shadow: 0 0 12px rgba(255,255,255,0.8); }
.panel-go {
  background: radial-gradient(circle at 40% 30%, #fff, #cfe8a0 40%, #6fae2a 100%);
  color: #2a4010; font-weight: 900; font-size: 16px; border: none; border-radius: 10px;
  padding: 12px 22px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.15s;
}
.panel-go:hover:not(:disabled) { transform: translateY(-2px); }
.panel-go:disabled { opacity: 0.5; cursor: not-allowed; }
.panel-back {
  display: flex; align-items: center; gap: 8px; margin-top: 20px;
  background: none; border: none; color: rgba(255,255,255,0.9);
  font-family: inherit; font-size: 15px; cursor: pointer;
}
.panel-board { margin-top: 22px; border-top: 1px solid rgba(255,255,255,0.25); padding-top: 14px; }
.board-title { color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.board-row { color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 300; }

.ach-panel { text-align: center; }
.ach-label { color: rgba(255,255,255,0.8); font-size: 14px; letter-spacing: 2px; text-transform: uppercase; }
.ach-score { color: #fff; font-weight: 900; font-size: 56px; margin: 6px 0 14px;
  text-shadow: 0 3px 8px rgba(0,0,0,0.3); }

.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.game-cover {
  aspect-ratio: 3/4; border-radius: 6px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, hsl(calc(var(--gc) * 1deg) 60% 45%), hsl(calc(var(--gc) * 1deg + 40) 55% 25%));
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  display: flex; align-items: flex-end;
}
.game-cover-title { padding: 8px; color: #fff; font-size: 12px; font-weight: 700; line-height: 1.1; }

/* Boot */
.nxe-boot, .nxe-easter {
  position: absolute; inset: 0; z-index: 500;
  background: radial-gradient(circle at 50% 45%, #1a3a10, #000 70%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.nxe-easter { background: radial-gradient(circle at 50% 45%, rgba(26,58,16,0.85), rgba(0,0,0,0.9) 70%); }
.boot-rings { position: relative; width: 200px; height: 200px;
  display: flex; align-items: center; justify-content: center; }
.ring {
  position: absolute; border-radius: 50%; border: 3px solid #6fae2a;
  border-top-color: transparent; border-left-color: transparent;
  animation: spinIn 1.6s cubic-bezier(.3,.8,.3,1) forwards;
}
.r1 { width: 60px; height: 60px; animation-delay: 0s; }
.r2 { width: 100px; height: 100px; animation-delay: 0.15s; border-color: #8fce3a; border-top-color: transparent; }
.r3 { width: 150px; height: 150px; animation-delay: 0.3s; border-color: #5a9a1f; border-bottom-color: transparent; }
.r4 { width: 200px; height: 200px; animation-delay: 0.45s; border-color: #4a8a1a; border-right-color: transparent; }
@keyframes spinIn {
  0% { transform: rotate(0deg) scale(0.2); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: rotate(540deg) scale(1); opacity: 0.9; }
}
.boot-orb { position: absolute; width: 76px; height: 76px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #cfe8a0 40%, #6fae2a 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 30px rgba(120,190,40,0.9);
  animation: orbPop 0.6s ease 1s both; }
@keyframes orbPop { from { transform: scale(0); } to { transform: scale(1); } }
.boot-text { margin-top: 40px; color: #8fce3a; font-weight: 300; letter-spacing: 8px;
  font-size: 22px; animation: fadeIn 1s ease 1.4s both; }
.easter-text { margin-top: 30px; color: #fff; font-weight: 700; font-size: 22px;
  animation: fadeIn 0.5s ease; text-shadow: 0 0 20px rgba(120,190,40,0.8); }

/* Mobile tweaks */
@media (max-width: 640px) {
  .nxe-carousel { top: 40%; left: 4%; }
  .nxe-avatar-wrap { display: none; }
  .nxe-cats { top: 4%; }
  .nxe-legend { gap: 14px; }
  .nxe-remix { right: 4%; bottom: 12%; }
}
</parameter>
</invoke>