:root {
  font-family: Inter, Segoe UI, sans-serif;
  color: #eafcff;
  background: #03050d;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 35% 15%, #10284a, transparent 42rem), #03050d;
  display: flex;
  justify-content: center;
  align-items: stretch;
}
.container {
  display: flex;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 100vh;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
main {
  flex: 1;
  padding: 52px;
  max-width: 820px;
  transition: max-width 0.3s ease;
}
.container.simulator-active main {
  max-width: 600px;
}
.eyebrow {
  color: #55e7ff;
  letter-spacing: .22em;
  font-size: .72rem;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: .3rem 0;
}
p {
  color: #91a4ba;
}
output {
  display: inline-block;
  margin: 18px 0;
  padding: 9px 14px;
  border: 1px solid #55e7ff66;
  border-radius: 999px;
  color: #55e7ff;
}
output[data-status=passed] {
  color: #7fffc2;
  border-color: #7fffc2;
}
output[data-status=failed] {
  color: #ff5577;
  border-color: #ff5577;
}
ol {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}
li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 15px;
  border: 1px solid #ffffff14;
  border-radius: 12px;
  background: #0a1020;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
li::after {
  content: "▶ Run Simulation";
  position: absolute;
  right: 15px;
  bottom: 8px;
  font-size: 0.65rem;
  color: #55e7ff;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.2s ease;
}
li:hover {
  border-color: #55e7ffaa;
  background: #0d162d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(85, 231, 255, 0.08);
}
li:hover::after {
  opacity: 1;
  transform: translateX(0);
}
li[data-passed=true] {
  border-color: #7fffc222;
}
li[data-passed=true]:hover {
  border-color: #7fffc2aa;
}
li[data-passed=false] {
  border-color: #ff557744;
}
li[data-passed=false]:hover {
  border-color: #ff5577aa;
}
.detail {
  grid-column: 1 / -1;
  color: #8294a9;
  font: 12px Consolas, monospace;
}

/* Simulator Panel Styling */
.simulator-panel {
  width: 420px;
  background: #060a14f5;
  border-left: 1px solid #55e7ff22;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  padding: 24px;
  backdrop-filter: blur(12px);
  animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid #ffffff12;
  padding-bottom: 12px;
}
.sim-header h2 {
  margin: 0;
  font-size: 1.2rem;
  color: #55e7ff;
}
.close-btn {
  background: none;
  border: none;
  color: #8294a9;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}
.close-btn:hover {
  color: #ff5577;
}
#canvas-container {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  background: radial-gradient(ellipse at 50% 110%, #15386088, transparent 55%), #02040d;
  border: 1px solid #55e7ff33;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}
#game-canvas {
  width: 100%;
  height: 100%;
}
.sim-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.control-btn {
  padding: 8px 16px;
  border: 1px solid #55e7ff44;
  border-radius: 6px;
  background: #0d162d;
  color: #eafcff;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}
.control-btn:hover {
  border-color: #55e7ff;
  background: #142244;
  box-shadow: 0 0 8px rgba(85, 231, 255, 0.2);
}
.sim-status {
  color: #7fffc2;
  font-size: 0.85rem;
  font-weight: 500;
}
.sim-status.failed {
  color: #ff5577;
}
.sim-details {
  margin-top: 16px;
  font: 11px/1.4 Consolas, monospace;
  background: #020408;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ffffff0d;
  max-height: 150px;
  overflow-y: auto;
  color: #8294a9;
}
.sim-details dt {
  color: #55e7ff;
  font-weight: bold;
  margin-top: 4px;
}
.sim-details dd {
  margin: 0 0 6px 0;
}

@media (max-width: 900px) {
  .container {
    flex-direction: column;
  }
  .simulator-panel {
    width: 100%;
    border-left: none;
    border-top: 1px solid #55e7ff22;
  }
}
