:root {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #06080f;
  color: #eef3ff;
  --panel-bg: #0f1726;
  --accent: #7be5ff;
  --button-bg: #19243b;
  --button-hover: #1e4e73;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at top, #1a2a48 0%, #06080f 50%, #02040b 100%);
}

.game-shell {
  display: flex;
  width: 100%;
  max-width: 1180px;
  min-height: 560px;
  margin: 20px;
  gap: 18px;
}

.game-area {
  flex: 1;
  background: linear-gradient(180deg, #0b1222 0%, #0c1428 100%);
  border: 2px solid #223353;
  border-radius: 20px;
  padding: 18px;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.game-header h1 {
  margin: 0;
  font-size: 1.8rem;
}

.game-header p {
  margin: 6px 0 0;
  color: #cdd8f5;
}

.back-link {
  color: #7be5ff;
  text-decoration: none;
  border: 1px solid rgba(123, 229, 255, 0.45);
  padding: 10px 14px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.back-link:hover {
  background: rgba(123, 229, 255, 0.08);
}

#enderCanvas {
  width: 100%;
  height: 470px;
  border-radius: 16px;
  display: block;
  background: linear-gradient(180deg, #09101f 0%, #0f1a2f 100%);
}

.status-bar {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #d7e7ff;
  font-size: 1rem;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.info-panel {
  width: 260px;
  display: flex;
  flex-direction: column;
  background: var(--panel-bg);
  border: 2px solid #223353;
  border-radius: 20px;
  padding: 18px;
  gap: 18px;
}

.panel-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #d6efff;
}

.mockup-preview {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-copy {
  color: #c1d6ff;
  line-height: 1.5;
}

#resetButton {
  width: 100%;
  margin-top: 12px;
  border: none;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 1rem;
  background: var(--button-bg);
  color: #eef3ff;
  cursor: pointer;
  transition: background 0.2s ease;
}

#resetButton:hover {
  background: var(--button-hover);
}

@media (max-width: 950px) {
  .game-shell {
    flex-direction: column;
  }
  .info-panel {
    width: 100%;
  }
}
