body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  margin: 0;
  -webkit-tap-highlight-color: transparent;
  overflow-y: auto;
}

.unit-count {
  font-weight: normal;
  font-size: 0.9em;
  color: #555;
  margin-left: 8px;
}

.counter-bar {
  background: #273746;
  color: white;
	max-width:1400px;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px;
  margin: auto;
margin-bottom:25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  flex-wrap: wrap;
  gap: 10px;
}

.counter-bar h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.counter-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.counter-badge {
  background: #f44336;
  color: white;
  border-radius: 16px;
  padding: 3px 10px;
  font-weight: bold;
  min-width: 25px;
  text-align: center;
}

.view-toggle {
  display: flex;
  gap: 10px;
}

.btn-toggle {
  background: #ffffff22;
  color: #fff;
  border: 1px solid #ffffff55;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-toggle.active {
  background: #f44336;
  border-color: #f44336;
  color: #fff;
}

h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 1.5em;
  font-size: 1.5em;
}

.zone {
  margin: 20px;
  padding: 10px;
  border: 2px dashed #ccc;
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  vertical-align: top;
  min-height: 100px;
  position: relative;
  transition: background-color 0.2s ease;
}

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

.zone-title {
  font-weight: bold;
  color: #555;
  text-transform: capitalize;
}

.add-player-btn {
  background: #e8f5e9;
  color: #388e3c;
  border: none;
  border-radius: 3px;
  padding: 3px 6px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
}

.add-player-btn:hover {
  background: #c8e6c9;
}

.zone-keep-highlight {
  background-color: rgba(255, 230, 230, 0.4);
  transition: background-color 0.3s ease;
}

.zone-cut-highlight {
  background-color: rgba(230, 230, 255, 0.4);
  transition: background-color 0.3s ease;
}

.unit-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.zone.drag-over {
  background-color: rgba(240, 248, 255, 0.5);
  border-color: #2196f3;
}

.player {
  padding: 8px 12px;
  margin: 8px 0;
  border-radius: 4px;
  border: 1px solid #999;
  background: #f0f0f0;
  color: gray;
  cursor: move;
  position: relative;
  user-select: none;
  touch-action: manipulation;
  transition: all 0.15s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.player-name {
  flex-grow: 1;
  text-transform: capitalize;
}

.delete-btn {
  visibility: hidden;
  opacity: 0;
  background: none;
  border: none;
  color: #f44336;
  cursor: pointer;
  padding: 2px;
  border-radius: 3px;
  margin-left: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player:hover .delete-btn {
  visibility: visible;
  opacity: 1;
}

.delete-btn:hover {
  background: rgba(244, 67, 54, 0.1);
}

.player.kept {
  font-weight: bold;
  color: red;
  background-color: #fff;
}

.player.long-press {
  background-color: #e0e0e0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  transform: scale(1.03);
  border-color: #2196f3;
  border-width: 2px;
}

@media (min-width: 769px) {
  .player.long-press {
    transform: none;
    box-shadow: none;
    background-color: inherit;
    border-color: #999;
    border-width: 1px;
  }
}

.player.dragging {
  opacity: 0.9;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  background-color: #e6f7ff;
  border-color: #2196f3;
  border-width: 2px;
}

.cut-line {
  height: 2px;
  background: black;
  margin: 8px 0;
  pointer-events: none;
}

.empty-keeper,
.empty-cut {
  padding: 8px 12px;
  margin: 8px 0;
  border-radius: 4px;
  border: 1px dashed #999;
  background: #f5f5f5;
  color: #999;
  font-style: italic;
  display: none;
  text-transform: capitalize;
}

.empty-keeper.visible,
.empty-cut.visible {
  display: block;
}

.placeholder {
  height: 36px;
  margin: 8px 0;
  background: #d0ebff;
  border: 2px dashed #2196f3;
  border-radius: 4px;
}

#summary-container {
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  background: white;
  max-width: 600px;
}

#summary-header {
  background: #273746;
  color: white;
  padding: 12px 20px;
}

#summary-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

#summary-content {
  padding: 15px 20px;
  background: #f8f9fa;
  max-height: 400px;
  min-height: 180px;
  overflow-y: auto;
}

#summary-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  white-space: pre-wrap;
  margin: 0;
  line-height: 1.5;
  font-size: 14px;
}

#summary-actions {
  display: flex;
  padding: 10px 20px;
  background: #f0f0f0;
  border-top: 1px solid #e0e0e0;
  justify-content: flex-end;
  gap: 10px;
}

#summary-actions button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

#copy-button {
  background: #e1f5fe;
  color: #0288d1;
}

#copy-button:hover {
  background: #b3e5fc;
}

#share-button {
  background: #e8f5e9;
  color: #388e3c;
}

#share-button:hover {
  background: #c8e6c9;
}

.modal.show {
  display: block;
  opacity: 1;
  background-color: transparent;
}

.modal-dialog {
  max-width: 400px;
  margin: auto;
}

.modal-content {
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-header {
  background: #273746;
  color: white;
  padding: 12px 20px;
  border-bottom: 1px solid #ccc;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.modal-header h3,
.modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.modal-body {
  padding: 20px;
  background: #fff;
}

.modal-footer {
  padding: 12px 20px;
  background: #f0f0f0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #555;
}

.form-group input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #000;
}

.btn {
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.btn-primary {
  background: #2196f3;
  color: white;
}

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

.btn-secondary {
  background: #e0e0e0;
  color: #333;
}

.btn-secondary:hover {
  background: #d5d5d5;
}
.about_box {
	width:50%;
	margin:auto;
}
@media (max-width: 768px) {
  .counter-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  #summary-content {
    max-height: 500px;
    min-height: 220px;
  }
.about_box {
	width:100%;
	}
}
