/**
 * Magic Bridge Scorer Styles
 */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  transition: background-color 0.3s, color 0.3s;
}

body.light,
body.light-mode {
  background: #f0f0f0;
  color: #222;
}

body.dark {
  background: #181c1f;
  color: #f0f0f0;
}

/* Main Container */
.scorer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.scorer-heading {
  text-align: center;
  margin-bottom: 30px;
}

.scorer-heading h1 {
  font-size: 2.5em;
  margin: 0.5em 0;
  color: #1976d2;
}

body.dark .scorer-heading h1 {
  color: #90caf9;
}

.subtitle {
  color: #666;
  font-size: 1.1em;
}

body.dark .subtitle {
  color: #bbb;
}

/* Main Layout */
.main-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* Slot Panel */
.slot-panel {
  width: 280px;
  min-width: 280px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: all 0.3s;
  box-sizing: border-box;
  overflow: hidden;
}

body.dark .slot-panel {
  background: rgba(255, 255, 255, 0.05);
}

.slot-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.slot-panel-header h2 {
  font-size: 1.2em;
  margin: 0;
  color: #1976d2;
}

body.dark .slot-panel-header h2 {
  color: #90caf9;
}

.slot-panel-content {
  display: block;
}

.slot-panel.collapsed .slot-panel-content {
  display: none;
}

.slot-panel.collapsed {
  width: 60px;
  min-width: 60px;
  padding: 10px;
}

.slot-list {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.slot-item {
  padding: 12px;
  border-radius: 8px;
  border: 2px solid #ccc;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  box-sizing: border-box;
  overflow: hidden;
  word-wrap: break-word;
}

body.dark .slot-item {
  background: #2a2a2a;
  border-color: #666;
}

.slot-item:hover {
  border-color: #1976d2;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

body.dark .slot-item:hover {
  border-color: #90caf9;
}

.slot-item.active {
  border-color: #1976d2;
  background: rgba(25, 118, 210, 0.1);
}

body.dark .slot-item.active {
  border-color: #90caf9;
  background: rgba(144, 202, 249, 0.15);
}

.slot-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
  flex-wrap: wrap;
}

.slot-item-name {
  font-weight: 600;
  font-size: 1em;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot-item-actions {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.slot-item-info {
  font-size: 0.85em;
  color: #666;
  margin-top: 5px;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.4;
}

body.dark .slot-item-info {
  color: #bbb;
}

/* Content Area */
.content-area {
  flex: 1;
  min-width: 0;
}

.current-slot-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  margin-bottom: 20px;
}

body.dark .current-slot-info {
  background: rgba(255, 255, 255, 0.05);
}

.slot-name {
  font-weight: 600;
  font-size: 1.1em;
}

.save-indicator {
  font-size: 0.9em;
  color: #4caf50;
  display: flex;
  align-items: center;
  gap: 5px;
}

.save-indicator.saving {
  color: #ff9800;
}

.save-indicator::before {
  content: "●";
  font-size: 0.8em;
}

/* Player Management */
.player-management {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

body.dark .player-management {
  background: rgba(255, 255, 255, 0.05);
}

.player-management h2 {
  margin-top: 0;
  color: #1976d2;
}

body.dark .player-management h2 {
  color: #90caf9;
}

.add-player-section {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.add-player-section input {
  flex: 1;
  padding: 10px;
  border: 2px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  background: #fff;
  color: #222;
}

body.light .add-player-section input,
body.light-mode .add-player-section input {
  background: #fff;
  border-color: #ccc;
  color: #222;
}

body.dark .add-player-section input {
  background: #2a2a2a;
  border-color: #666;
  color: #f0f0f0;
}

.player-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.player-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #fff;
  border-radius: 8px;
  border: 2px solid #eee;
}

body.dark .player-item {
  background: #2a2a2a;
  border-color: #666;
}

.player-item-name {
  font-weight: 600;
  color: inherit;
}

body.light .player-item-name,
body.light-mode .player-item-name {
  color: #222;
}

body.dark .player-item-name {
  color: #f0f0f0;
}

.btn-delete {
  background: #f44336;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9em;
}

.btn-delete:hover {
  background: #d32f2f;
}

/* Scoring Section */
.scoring-section {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

body.dark .scoring-section {
  background: rgba(255, 255, 255, 0.05);
}

.scoring-section h2 {
  margin-top: 0;
  color: #1976d2;
}

body.dark .scoring-section h2 {
  color: #90caf9;
}

.player-scoring-areas {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.player-scoring-area {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  border: 2px solid #eee;
}

body.dark .player-scoring-area {
  background: #2a2a2a;
  border-color: #666;
}

.player-scoring-area h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #1976d2;
}

body.dark .player-scoring-area h3 {
  color: #90caf9;
}

/* Tile Input Buttons */
.tile-buttons {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 15px;
}

.tile-btn-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  min-height: 100px;
  padding: 4px;
  border: 2px solid transparent;
  border-radius: 8px;
  box-sizing: border-box;
}

.tile-btn-container.has-value {
  background: rgba(25, 118, 210, 0.1);
  border-color: rgba(25, 118, 210, 0.3);
}

body.dark .tile-btn-container.has-value {
  background: rgba(144, 202, 249, 0.15);
  border-color: rgba(144, 202, 249, 0.4);
}

.tile-btn {
  width: 100%;
  padding: 12px;
  border: 2px solid #ccc;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 600;
  transition: all 0.2s;
  color: #222;
}

body.light .tile-btn,
body.light-mode .tile-btn {
  color: #222;
}

body.dark .tile-btn {
  background: #2a2a2a;
  border-color: #666;
  color: #f0f0f0;
}

.tile-btn:hover {
  border-color: #1976d2;
  background: rgba(25, 118, 210, 0.1);
  transform: translateY(-2px);
}

body.dark .tile-btn:hover {
  border-color: #90caf9;
  background: rgba(144, 202, 249, 0.15);
}

.tile-btn.joker {
  background: #ff9800;
  color: white;
  border-color: #f57c00;
}

.tile-btn.joker:hover {
  background: #f57c00;
}

.tile-btn-minus {
  width: 100%;
  padding: 6px;
  border: 2px solid #ccc;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  color: #f44336;
  transition: all 0.2s;
}

body.dark .tile-btn-minus {
  background: #2a2a2a;
  border-color: #666;
  color: #f44336;
}

.tile-btn-minus:hover {
  border-color: #f44336;
  background: rgba(244, 67, 54, 0.1);
}

body.dark .tile-btn-minus:hover {
  border-color: #f44336;
  background: rgba(244, 67, 54, 0.15);
}

.tile-btn-minus.joker {
  border-color: #f57c00;
  color: #f57c00;
}

.tile-btn-minus.joker:hover {
  background: rgba(245, 124, 0, 0.1);
}

.tile-count {
  font-size: 0.9em;
  font-weight: 600;
  color: #666;
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

body.dark .tile-count {
  color: #bbb;
}

.tile-btn-container.has-value .tile-count {
  color: #1976d2;
  font-weight: 700;
  font-size: 1em;
}

body.dark .tile-btn-container.has-value .tile-count {
  color: #90caf9;
}

.tile-btn-container.has-value .tile-btn {
  border-color: #1976d2;
  background: rgba(25, 118, 210, 0.15);
}

body.dark .tile-btn-container.has-value .tile-btn {
  border-color: #90caf9;
  background: rgba(144, 202, 249, 0.2);
}

.tile-btn-container.has-value .tile-btn-minus {
  border-color: #1976d2;
  color: #1976d2;
}

body.dark .tile-btn-container.has-value .tile-btn-minus {
  border-color: #90caf9;
  color: #90caf9;
}

/* Joker special styling when has value */
.tile-btn-container.has-joker-value {
  background: rgba(255, 152, 0, 0.15);
  border-color: rgba(255, 152, 0, 0.4);
}

body.dark .tile-btn-container.has-joker-value {
  background: rgba(255, 152, 0, 0.2);
  border-color: rgba(255, 152, 0, 0.5);
}

.tile-btn-container.has-joker-value .tile-count {
  color: #ff9800;
  font-weight: 700;
}

body.dark .tile-btn-container.has-joker-value .tile-count {
  color: #ffb74d;
}

.tile-btn-container.has-joker-value .tile-btn {
  border-color: #ff9800;
  background: rgba(255, 152, 0, 0.2);
}

body.dark .tile-btn-container.has-joker-value .tile-btn {
  border-color: #ffb74d;
  background: rgba(255, 152, 0, 0.25);
}

.tile-btn-container.has-joker-value .tile-btn-minus {
  border-color: #ff9800;
  color: #ff9800;
}

body.dark .tile-btn-container.has-joker-value .tile-btn-minus {
  border-color: #ffb74d;
  color: #ffb74d;
}


.tile-count-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  font-size: 0.9em;
}

body.dark .tile-count-display {
  background: rgba(255, 255, 255, 0.05);
}

/* Buttons */
.btn {
  padding: 12px 24px;
  font-size: 1em;
  font-weight: 600;
  border: 2px solid #1976d2;
  border-radius: 8px;
  background: transparent;
  color: #1976d2;
  cursor: pointer;
  transition: all 0.2s;
}

body.dark .btn {
  border-color: #90caf9;
  color: #90caf9;
}

.btn:hover {
  background: rgba(25, 118, 210, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

body.dark .btn:hover {
  background: rgba(144, 202, 249, 0.15);
}

.btn-primary {
  background: #1976d2;
  color: white;
}

body.dark .btn-primary {
  background: #90caf9;
  color: #111;
}

.btn-primary:hover {
  background: #1565c0;
}

body.dark .btn-primary:hover {
  background: #64b5f6;
}

.btn-secondary {
  background: transparent;
}

.round-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-icon {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.2em;
  color: #666;
  padding: 5px;
}

body.dark .btn-icon {
  color: #bbb;
}

.btn-icon:hover {
  color: #1976d2;
}

body.dark .btn-icon:hover {
  color: #90caf9;
}

/* Results Section */
.results-section {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

body.dark .results-section {
  background: rgba(255, 255, 255, 0.05);
}

.results-section h2 {
  margin-top: 0;
  color: #1976d2;
}

body.dark .results-section h2 {
  color: #90caf9;
}

.results-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.result-item {
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  border: 2px solid #eee;
}

body.dark .result-item {
  background: #2a2a2a;
  border-color: #666;
}

.result-item.winner {
  border-color: #4caf50;
  background: rgba(76, 175, 80, 0.1);
}

body.dark .result-item.winner {
  border-color: #81c995;
  background: rgba(129, 201, 149, 0.15);
}

.result-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.result-item-name {
  font-weight: 600;
  font-size: 1.1em;
}

.result-item-score {
  font-size: 1.2em;
  font-weight: 600;
}

.result-item-score.negative {
  color: #f44336;
}

.result-item-score.positive {
  color: #4caf50;
}

/* Rounds History */
.rounds-history {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

body.dark .rounds-history {
  background: rgba(255, 255, 255, 0.05);
}

.rounds-history h2 {
  margin-top: 0;
  color: #1976d2;
}

body.dark .rounds-history h2 {
  color: #90caf9;
}

.rounds-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.round-item {
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  border: 2px solid #eee;
}

body.dark .round-item {
  background: #2a2a2a;
  border-color: #666;
}

.round-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.round-item-number {
  font-weight: 600;
  font-size: 1.1em;
}

.round-item-scores {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.round-item-score {
  display: flex;
  justify-content: space-between;
}

/* Settlement Section */
.settlement-section {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 2px solid #eee;
}

body.dark .settlement-section {
  border-top-color: #666;
}

.settlement-section h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #1976d2;
  font-size: 1.5em;
}

body.dark .settlement-section h3 {
  color: #90caf9;
}

.settlement-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.settlement-item {
  padding: 0;
  background: #fff;
  border-radius: 12px;
  border: 2px solid #eee;
  transition: all 0.3s;
  overflow: hidden;
  position: relative;
}

body.dark .settlement-item {
  background: #2a2a2a;
  border-color: #666;
}

.settlement-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.dark .settlement-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Rank-specific styling */
.settlement-item.rank-1 {
  border-color: #ffd700;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

body.dark .settlement-item.rank-1 {
  border-color: #ffd700;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4);
}

.settlement-item.rank-2 {
  border-color: #c0c0c0;
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.15) 0%, rgba(192, 192, 192, 0.05) 100%);
  box-shadow: 0 3px 12px rgba(192, 192, 192, 0.25);
}

body.dark .settlement-item.rank-2 {
  border-color: #c0c0c0;
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.2) 0%, rgba(192, 192, 192, 0.1) 100%);
  box-shadow: 0 3px 12px rgba(192, 192, 192, 0.35);
}

.settlement-item.rank-3 {
  border-color: #cd7f32;
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.15) 0%, rgba(205, 127, 50, 0.05) 100%);
  box-shadow: 0 2px 8px rgba(205, 127, 50, 0.2);
}

body.dark .settlement-item.rank-3 {
  border-color: #cd7f32;
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.2) 0%, rgba(205, 127, 50, 0.1) 100%);
  box-shadow: 0 2px 8px rgba(205, 127, 50, 0.3);
}

.settlement-item-content {
  display: flex;
  align-items: center;
  padding: 20px;
  gap: 20px;
}

.settlement-rank-badge {
  font-size: 3em;
  line-height: 1;
  min-width: 60px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
  color: white;
  font-size: 1.2em;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

body.dark .rank-number {
  background: linear-gradient(135deg, #90caf9 0%, #64b5f6 100%);
  color: #111;
  box-shadow: 0 2px 8px rgba(144, 202, 249, 0.3);
}

.settlement-item-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.settlement-item-name {
  font-weight: 600;
  font-size: 1.2em;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

body.dark .settlement-item-name {
  color: #f0f0f0;
}

.settlement-item.rank-1 .settlement-item-name {
  color: #b8860b;
  font-weight: 700;
}

body.dark .settlement-item.rank-1 .settlement-item-name {
  color: #ffd700;
}

.settlement-item.rank-2 .settlement-item-name {
  color: #696969;
  font-weight: 700;
}

body.dark .settlement-item.rank-2 .settlement-item-name {
  color: #c0c0c0;
}

.settlement-item.rank-3 .settlement-item-name {
  color: #8b4513;
  font-weight: 700;
}

body.dark .settlement-item.rank-3 .settlement-item-name {
  color: #cd7f32;
}

.settlement-item-score {
  font-size: 1.5em;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  min-width: 80px;
  text-align: center;
}

.settlement-item-score.positive {
  color: #4caf50;
  background: rgba(76, 175, 80, 0.1);
}

body.dark .settlement-item-score.positive {
  background: rgba(76, 175, 80, 0.2);
}

.settlement-item-score.negative {
  color: #f44336;
  background: rgba(244, 67, 54, 0.1);
}

body.dark .settlement-item-score.negative {
  background: rgba(244, 67, 54, 0.2);
}

.settlement-item.rank-1 .settlement-item-score {
  font-size: 1.7em;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.settlement-item.rank-2 .settlement-item-score {
  font-size: 1.6em;
}

.settlement-item.rank-3 .settlement-item-score {
  font-size: 1.55em;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 0;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

body.dark .modal-content {
  background: #2a2a2a;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

body.dark .modal-header {
  border-bottom-color: #666;
}

.modal-header h3 {
  margin: 0;
  color: #1976d2;
}

body.dark .modal-header h3 {
  color: #90caf9;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dark .modal-close {
  color: #bbb;
}

.modal-close:hover {
  color: #f44336;
}

.modal-body {
  padding: 20px;
}

.modal-body label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.modal-body input {
  width: 100%;
  padding: 10px;
  border: 2px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  box-sizing: border-box;
  background: #fff;
  color: #222;
}

body.light .modal-body input,
body.light-mode .modal-body input {
  background: #fff;
  border-color: #ccc;
  color: #222;
}

body.dark .modal-body input {
  background: #2a2a2a;
  border-color: #666;
  color: #f0f0f0;
}

.modal-footer {
  padding: 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

body.dark .modal-footer {
  border-top-color: #666;
}

.share-link-container {
  display: flex;
  gap: 10px;
}

.share-link-container input {
  flex: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-layout {
    flex-direction: column;
  }

  .slot-panel {
    width: 100%;
    min-width: 0;
    padding: 15px;
    box-sizing: border-box;
  }

  .slot-panel-header {
    margin-bottom: 12px;
  }

  .slot-panel-header h2 {
    font-size: 1.1em;
  }

  .slot-panel.collapsed {
    width: 100%;
    min-width: 0;
    padding: 10px;
  }

  .slot-item {
    padding: 10px;
  }

  .slot-item-header {
    flex-wrap: wrap;
  }

  .slot-item-name {
    font-size: 0.9em;
    white-space: normal;
    word-break: break-word;
  }

  .slot-item-actions {
    gap: 3px;
  }

  .slot-item-actions .btn-icon {
    font-size: 1em;
    padding: 4px;
  }

  .slot-item-info {
    font-size: 0.75em;
    line-height: 1.3;
  }

  .tile-buttons {
    grid-template-columns: repeat(4, 1fr);
  }

  .tile-btn-container {
    min-height: 90px;
  }

  .settlement-item-content {
    padding: 15px;
    gap: 15px;
  }

  .settlement-rank-badge {
    font-size: 2em;
    min-width: 50px;
  }

  .rank-number {
    width: 40px;
    height: 40px;
    font-size: 1em;
  }

  .settlement-item-name {
    font-size: 1em;
    max-width: 150px;
  }

  .settlement-item-score {
    font-size: 1.2em;
    padding: 6px 12px;
    min-width: 60px;
  }

  .settlement-item.rank-1 .settlement-item-score {
    font-size: 1.4em;
  }

  .settlement-item.rank-2 .settlement-item-score {
    font-size: 1.3em;
  }

  .settlement-item.rank-3 .settlement-item-score {
    font-size: 1.25em;
  }

  .round-controls {
    flex-direction: column;
  }

  .round-controls .btn {
    width: 100%;
  }
}

