:root {
  --bg: #1a1a2e;
  --ring-mat: #c23b3b;
  --rope: #f2d340;
  --text: #f5f5f5;
  --accent: #4fd1c5;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Comic Sans MS', 'Chalkboard SE', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#app { width: 100%; max-width: 480px; padding: 16px; }

.screen { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }

.wobble-title { font-size: 2.5rem; animation: wobble 1.4s ease-in-out infinite; }

@keyframes wobble {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

.btn { font-size: 1.1rem; padding: 12px 24px; border: none; border-radius: 12px; cursor: pointer; }
.btn-primary { background: var(--accent); color: #04201d; }
.btn-secondary { background: transparent; color: var(--text); border: 2px solid var(--text); }

.character-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.character-card { padding: 20px; border-radius: 16px; border: none; font-size: 1.1rem; color: white; cursor: pointer; }
.character-card:disabled { opacity: 0.4; }

.health-bars { display: flex; justify-content: space-between; width: 100%; gap: 8px; }
.health-bar { flex: 1; height: 18px; background: #333; border-radius: 9px; overflow: hidden; border: 2px solid var(--rope); }
.health-fill { height: 100%; width: 100%; background: #3ddc61; transition: width 0.2s ease; }

.round-indicator { font-size: 1.2rem; }

.ring {
  position: relative;
  width: 100%;
  height: 260px;
  background: var(--ring-mat);
  border: 6px solid var(--rope);
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 20px;
}

.fighter { width: 45%; }
.fighter svg { width: 100%; height: auto; }
.fighter-1 svg { transform: scaleX(-1); }

.controls-row { display: flex; width: 100%; gap: 12px; }
.controls-group { flex: 1; min-width: 0; }
.controls-group + .controls-group { border-left: 2px dashed var(--rope); padding-left: 12px; }
.controls-label { font-size: 0.9rem; margin-bottom: 6px; }
.controls-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.ctrl-btn {
  min-height: 56px;
  font-family: inherit;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: #04201d;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.ctrl-btn:active { filter: brightness(0.8); }
.ctrl-btn-block { background: var(--rope); color: #3a2f00; }

.btn-quit { font-size: 0.9rem; padding: 8px 20px; }

.winner-puppet { width: 60%; max-width: 220px; }
.winner-puppet svg { width: 100%; height: auto; }
.winner-taunt { font-size: 1.1rem; color: var(--rope); }

.records-table { width: 100%; border-collapse: collapse; }
.records-table th, .records-table td { padding: 8px; border-bottom: 1px solid #444; }
