* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  background: radial-gradient(ellipse at center, #0a1428 0%, #05070d 100%);
  font-family: 'Segoe UI', Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hidden {
  display: none !important;
}

/* Idle screen */
#idle-screen {
  display: flex;
  align-items: center;
  justify-content: center;
}

#ff-button {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #cdbe91;
  background: linear-gradient(180deg, #1e2328 0%, #0a0e14 100%);
  border: 2px solid #785a28;
  border-radius: 6px;
  padding: 22px 48px;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(200, 155, 60, 0.15);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

#ff-button:hover {
  border-color: #c8aa6e;
  box-shadow: 0 0 36px rgba(200, 155, 60, 0.35);
}

#ff-button:active {
  transform: scale(0.97);
}

/* Vote overlay */
#vote-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
}

#vote-window {
  width: 260px;
  background: linear-gradient(180deg, #1e2328 0%, #10141a 100%);
  border: 1px solid #785a28;
  border-radius: 2px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7);
  padding: 12px 14px 14px;
  text-align: center;
}

.vote-title {
  color: #0ac8b9;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

#vote-segments {
  display: flex;
  gap: 3px;
  margin-bottom: 6px;
}

.segment {
  flex: 1;
  height: 14px;
  border-radius: 1px;
  background: #2a2e33;
  border: 1px solid #1a1d21;
  transition: background 0.2s ease;
}

.segment.pending {
  background: #2a2e33;
}

.segment.yes {
  background: #2ea62e;
}

.segment.no {
  background: #b83a3a;
}

#vote-timer-track {
  height: 4px;
  background: #1a1d21;
  border-radius: 1px;
  overflow: hidden;
  margin-bottom: 10px;
}

#vote-timer-fill {
  height: 100%;
  width: 100%;
  background: #0ac8b9;
}

.vote-status {
  color: #a09b8c;
  font-size: 12px;
}

/* Result screen */
#result-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#result-text {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  animation: fade-in 0.4s ease;
}

#result-text.defeat {
  color: #e04b4b;
  text-shadow: 0 0 30px rgba(224, 75, 75, 0.5);
}

#result-text.continue {
  color: #8fa3ad;
  text-shadow: 0 0 20px rgba(143, 163, 173, 0.3);
}

@keyframes fade-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Chat log */
#chat-log {
  position: fixed;
  left: 16px;
  bottom: 36px;
  width: 380px;
  max-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  pointer-events: none;
}

.chat-line {
  background: rgba(4, 6, 10, 0.55);
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 13px;
  line-height: 1.5;
  color: #dcdcdc;
  width: fit-content;
  max-width: 100%;
  word-wrap: break-word;
  animation: chat-fade-in 0.2s ease;
}

.chat-time {
  color: #767676;
  margin-right: 5px;
}

.chat-name {
  color: #59d1f9;
  font-weight: 600;
  margin-right: 4px;
}

@keyframes chat-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

#disclaimer {
  position: fixed;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  color: #3f4450;
  font-size: 11px;
}
