/* styles.css - Core styles for Pixel Pardon */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #181818;
  color: #f8f8f2;
  margin: 0;
  padding: 0;
}
header {
  background: #222;
  color: #ffec99;
  padding: 1rem 0;
  text-align: center;
  border-bottom: 4px solid #444;
}
nav ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
}
nav a {
  color: #ffec99;
  text-decoration: none;
  font-weight: bold;
}
nav a:focus, nav a:hover {
  text-decoration: underline;
}
main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
  background: #232323;
  border-radius: 12px;
  box-shadow: 0 2px 12px #0008;
}
section {
  margin-bottom: 2.5rem;
}
h1, h2 {
  font-family: 'Press Start 2P', monospace, Arial, sans-serif;
  letter-spacing: 1px;
}
footer {
  text-align: center;
  padding: 1rem;
  background: #222;
  color: #aaa;
  font-size: 0.95rem;
  border-top: 2px solid #444;
}
/* Pixel Editor UI */
.pixel-editor-ui {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
#pixel-canvas {
  border: 2px solid #444;
  background: #fff;
  image-rendering: pixelated;
  box-shadow: 0 2px 8px #0006;
  outline: none;
}
.palette {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.palette-swatch {
  width: 28px;
  height: 28px;
  border: 2px solid #333;
  border-radius: 4px;
  cursor: pointer;
  outline: none;
}
.palette-swatch:focus {
  border-color: #ffec99;
}
#color-picker {
  margin-left: 0.5rem;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
}
.tools {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.tools button {
  font-size: 1.2rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid #444;
  background: #292929;
  color: #ffec99;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.tools button:focus, .tools button:hover {
  background: #444;
  color: #fff;
}
#pixel-editor-status {
  min-height: 1.2em;
  text-align: center;
  color: #ffec99;
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* Trial System */
.trial-case {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.trial-art img {
  border: 2px solid #444;
  background: #fff;
  image-rendering: pixelated;
  width: 128px;
  height: 128px;
}
.trial-info {
  font-size: 1rem;
  color: #ffec99;
}
.trial-info span {
  display: block;
  margin-bottom: 0.2rem;
}
.voting-buttons {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  justify-content: center;
}
.voting-buttons button {
  font-size: 1.1rem;
  padding: 0.5rem 1.2rem;
  border: 2px solid #444;
  background: #292929;
  color: #ffec99;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.voting-buttons button:focus, .voting-buttons button:hover {
  background: #444;
  color: #fff;
}
#vote-status {
  text-align: center;
  color: #ffec99;
  font-size: 1rem;
}
.defense-bot {
  background: #222;
  color: #e84393;
  border-left: 4px solid #e84393;
  padding: 0.7rem 1rem;
  margin: 1rem 0;
  border-radius: 8px;
  font-family: 'Courier New', Courier, monospace;
}
.trial-history-case {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #232323;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  margin-bottom: 0.7rem;
}
.trial-history-case img {
  width: 48px;
  height: 48px;
  border: 1px solid #444;
  background: #fff;
  image-rendering: pixelated;
}
