* { box-sizing: border-box; }
body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  background: #0b0b10; color: #eee;
}
header {
  padding: 16px 20px; display: flex; align-items: center; gap: 16px;
  border-bottom: 1px solid #222;
}
header h1 { margin: 0; font-size: 18px; letter-spacing: .15em; }
.badge {
  font-size: 11px; padding: 4px 10px; border-radius: 999px;
  background: #1a1a22; color: #aaa; border: 1px solid #2a2a35;
}
.badge.manual { background: #5a1c00; color: #fc7; border-color: #c54a00; }
.badge.idle { background: #003a3a; color: #6cf; border-color: #0077aa; }
main { padding: 16px 20px; max-width: 720px; margin: 0 auto; }
h2 { font-size: 13px; color: #888; margin: 16px 0 8px; text-transform: uppercase; letter-spacing: .1em; }
.colors, .presets, .power { display: grid; gap: 10px; }
.colors { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
.presets, .power { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
button {
  padding: 18px 12px; font-size: 14px; font-weight: 600;
  border: 1px solid #333; border-radius: 8px; cursor: pointer;
  background: #1a1a22; color: #eee;
  transition: transform .06s;
}
button:active { transform: scale(.97); }
.colors button { color: #000; text-shadow: 0 0 2px rgba(255,255,255,.5); }
#off { background: #2a1010; color: #faa; border-color: #5a1c1c; }
.log ul { list-style: none; padding: 0; margin: 0;
  background: #07070b; border-radius: 8px; padding: 10px;
  max-height: 200px; overflow-y: auto;
  font-family: ui-monospace, monospace; font-size: 11px; color: #6cf;
}

.badge.presence {
  background: #1a2a1a;
  color: #8e8;
  border-color: #2a4a2a;
}

.back {
  font-size: 11px;
  color: #888;
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid #2a2a35;
  border-radius: 6px;
  background: #1a1a22;
  transition: color .2s, background .2s;
}
.back:hover { color: #eee; background: #2a2a35; }

.party-only { display: flex; justify-content: center; padding: 40px 0; }
.party-btn {
  width: 240px; height: 240px;
  font-size: 36px; font-weight: 900; letter-spacing: .2em;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f44, #c00 60%, #800);
  color: #fff;
  border: 4px solid #fff;
  box-shadow: 0 0 40px rgba(255,80,80,.6), inset 0 0 20px rgba(255,200,200,.3);
  cursor: pointer;
  transition: transform .1s;
}
.party-btn:hover { transform: scale(1.05); box-shadow: 0 0 60px rgba(255,80,80,.9), inset 0 0 20px rgba(255,200,200,.5); }
.party-btn:active { transform: scale(.95); }
