/*!*****************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[7].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[7].use[3]!./app/publicLifeCounter/styles/PublicLifeCounter.module.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************************************/
/* Public Life Counter Styles - Adapted from main games system */

.PublicLifeCounter_public-game-container__6WuCZ {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #000;
  color: #fff;
  overflow: hidden;
}

.PublicLifeCounter_tablet-grid-area__DhvT0 {
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  display: grid;
  gap: 2px;
  background: #000;
  isolation: isolate;
  overflow: hidden;
  position: relative;
  /* Grid template is set dynamically via inline styles for 3-row layout */
}

.PublicLifeCounter_public-grid-slot__BoLfT {
  width: 100%;
  height: 100%;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  position: relative;
  border: 1px solid #222;
}

.PublicLifeCounter_public-grid-slot__BoLfT.PublicLifeCounter_occupied__dyO04 {
  background: #222;
  border: 1px solid #333;
}

.PublicLifeCounter_public-grid-slot__BoLfT.PublicLifeCounter_drag-over__pAfKa {
  background: #333;
  border-color: #555;
}

.PublicLifeCounter_public-grid-slot__BoLfT.PublicLifeCounter_empty__Nkfkm {
  color: #444;
  font-size: 14px;
}

/* Draggable Player Card Styles */
.PublicLifeCounter_draggable-player-card__I__i7 {
  width: 100%;
  height: 100%;
  cursor: grab;
  transition: transform 0.2s ease;
}

.PublicLifeCounter_draggable-player-card__I__i7:active {
  cursor: grabbing;
}

.PublicLifeCounter_draggable-player-card__I__i7.PublicLifeCounter_flipped__LBRrK {
  transform: rotate(180deg);
}

.PublicLifeCounter_drag-overlay__n17wX {
  width: 400px;
  height: 300px;
  opacity: 0.8;
  transform: scale(0.95);
  pointer-events: none;
  border-radius: 8px;
  overflow: hidden;
}

/* Player Card Styles - Redesigned to match original */
.PublicLifeCounter_public-player-card__gVsSW {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  contain: layout style paint;
  min-height: 120px; /* Ensure minimum height for buttons to be visible */
}

.PublicLifeCounter_public-player-card__gVsSW.PublicLifeCounter_flipped__LBRrK {
  transform: rotate(180deg);
}

/* Card overlay for better text readability */
.PublicLifeCounter_card-overlay__H05vq {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2) 0%,
    rgba(0,0,0,0.1) 50%,
    rgba(0,0,0,0.4) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Drag Handle */
.PublicLifeCounter_drag-handle__8clHw {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 4px;
  border-radius: 4px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  cursor: grab;
  transition: background 0.2s ease;
}

.PublicLifeCounter_drag-handle__8clHw:hover {
  background: rgba(0,0,0,0.8);
}

.PublicLifeCounter_drag-handle__8clHw:active {
  cursor: grabbing;
}

/* Player Name Section */
.PublicLifeCounter_player-name-section___IqgC {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  pointer-events: auto;
}

.PublicLifeCounter_player-name-input__D12GE {
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 4px 8px;
  color: white;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  min-width: 100px;
  max-width: 200px;
  pointer-events: auto;
}

.PublicLifeCounter_player-name-input__D12GE:focus {
  outline: none;
  border-color: rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.8);
}

/* HP Display */
.PublicLifeCounter_hp-display__WqSa_ {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  background: rgba(0,0,0,0.7);
  border-radius: 8px;
  padding: 8px 16px;
  pointer-events: none;
}

.PublicLifeCounter_hp-value__bNTj8 {
  font-size: 24px;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Control Bar - Bottom */
.PublicLifeCounter_control-bar__px46m {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  z-index: 5;
}

.PublicLifeCounter_control-button__MDFH0 {
  background: #333;
  border: 1px solid #555;
  border-radius: 6px;
  color: white;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
}

.PublicLifeCounter_control-button__MDFH0:hover {
  background: #444;
  border-color: #666;
}

.PublicLifeCounter_control-button__MDFH0:active {
  background: #222;
  transform: scale(0.95);
}

.PublicLifeCounter_minus-button__1ujo6 {
  background: #e53e3e;
  border-color: #c53030;
}

.PublicLifeCounter_minus-button__1ujo6:hover {
  background: #c53030;
}

.PublicLifeCounter_plus-button__FBujz {
  background: #38a169;
  border-color: #2f855a;
}

.PublicLifeCounter_plus-button__FBujz:hover {
  background: #2f855a;
}

.PublicLifeCounter_more-button__zjgJp {
  background: #3182ce;
  border-color: #2c5282;
  font-size: 12px;
  font-weight: bold;
}

.PublicLifeCounter_more-button__zjgJp:hover {
  background: #2c5282;
}

.PublicLifeCounter_hp-counter__Qe0pU {
  background: rgba(0,0,0,0.8);
  border: 2px solid #555;
  border-radius: 8px;
  padding: 8px 16px;
  margin: 0 8px;
}

.PublicLifeCounter_hp-number__hqSs1 {
  font-size: 18px;
  font-weight: bold;
  color: white;
  min-width: 30px;
  text-align: center;
  display: inline-block;
}

/* Additional Controls */
.PublicLifeCounter_additional-controls__g04Pa {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.PublicLifeCounter_turn-indicator__1ZK1a,
.PublicLifeCounter_action-button__8u_A3,
.PublicLifeCounter_settings-button__WZWIF {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.PublicLifeCounter_turn-indicator__1ZK1a:hover,
.PublicLifeCounter_action-button__8u_A3:hover,
.PublicLifeCounter_settings-button__WZWIF:hover {
  background: rgba(255,255,255,0.2);
}

/* Poison Indicator */
.PublicLifeCounter_poison-indicator__wNx97 {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #7c3aed;
  border: 1px solid #6d28d9;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: bold;
}

/* More Menu */
.PublicLifeCounter_more-menu__3eAhQ {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.9);
  border: 1px solid #555;
  border-radius: 8px;
  padding: 8px;
  z-index: 20;
  min-width: 160px;
}

.PublicLifeCounter_menu-item__ZI0eL {
  width: 100%;
  background: transparent;
  border: none;
  color: white;
  padding: 8px 12px;
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  transition: background 0.2s ease;
}

.PublicLifeCounter_menu-item__ZI0eL:hover {
  background: rgba(255,255,255,0.1);
}

.PublicLifeCounter_menu-item__ZI0eL.PublicLifeCounter_danger__tYvQ4 {
  color: #ff6b6b;
}

.PublicLifeCounter_menu-item__ZI0eL.PublicLifeCounter_danger__tYvQ4:hover {
  background: rgba(255, 107, 107, 0.1);
}

/* Circular buttons like original */
.PublicLifeCounter_circle-button__59dAk {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.PublicLifeCounter_circle-button__59dAk:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.05);
}

.PublicLifeCounter_settings-circle__s74pw {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: white;
}

.PublicLifeCounter_settings-circle__s74pw:hover {
  background: rgba(0,0,0,0.8);
  border-color: rgba(255,255,255,0.5);
}

/* Menu backdrop */
.PublicLifeCounter_menu-backdrop__L7kpX {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  background: transparent;
}

/* Utility classes */
.PublicLifeCounter_mr-1__nUajT {
  margin-right: 0.25rem;
}
.PublicLifeCounter_public-player-card__gVsSW {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  transition: all 0.3s ease;
  background-size: cover;
  background-position: center top;
  min-height: 200px;
  overflow: hidden;
}

.PublicLifeCounter_public-player-card__gVsSW.PublicLifeCounter_dead__Nz3pp {
  opacity: 0.4;
  filter: grayscale(100%);
}

.PublicLifeCounter_public-player-card__gVsSW.PublicLifeCounter_flipped__LBRrK {
  transform: rotate(180deg);
}

.PublicLifeCounter_public-player-card-overlay__OOQaS {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.7) 70%,
    rgba(0, 0, 0, 0.9) 100%
  );
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  z-index: 1;
}

.PublicLifeCounter_public-player-name__JCr4D {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: 4px;
}

.PublicLifeCounter_public-player-stats__wvZZ3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.PublicLifeCounter_public-hp-section__gyzrB {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 12px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.PublicLifeCounter_public-hp-display__WOkEM {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  min-width: 40px;
  text-align: center;
}

.PublicLifeCounter_public-hp-button__VDBVH {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 4px;
  background: #333;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.PublicLifeCounter_public-hp-button__VDBVH:hover {
  background: #555;
  transform: scale(1.05);
}

.PublicLifeCounter_public-hp-button__VDBVH.PublicLifeCounter_add__qFsLT {
  background: #2d5016;
}

.PublicLifeCounter_public-hp-button__VDBVH.PublicLifeCounter_add__qFsLT:hover {
  background: #3d6b20;
}

.PublicLifeCounter_public-hp-button__VDBVH.PublicLifeCounter_subtract__soY_5 {
  background: #5d1616;
}

.PublicLifeCounter_public-hp-button__VDBVH.PublicLifeCounter_subtract__soY_5:hover {
  background: #7d2020;
}

.PublicLifeCounter_public-poison-section__S3P_h {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(102, 51, 153, 0.3);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
}

.PublicLifeCounter_public-poison-display__lZ7i5 {
  font-weight: bold;
  color: #d8b4fe;
}

.PublicLifeCounter_public-commander-damage__ZxeNz {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 8px;
  justify-content: center;
}

.PublicLifeCounter_public-commander-damage-item__6lrKU {
  background: rgba(139, 69, 19, 0.6);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
  color: #ffa500;
  font-weight: bold;
}

.PublicLifeCounter_public-player-controls__kMi0Y {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  gap: 4px;
  z-index: 2;
}

.PublicLifeCounter_public-control-button__hqPRJ {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.PublicLifeCounter_public-control-button__hqPRJ:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.PublicLifeCounter_public-remove-button__j8vu_ {
  background: rgba(220, 38, 38, 0.7);
}

.PublicLifeCounter_public-remove-button__j8vu_:hover {
  background: rgba(220, 38, 38, 0.9);
}

/* Center Menu Bar */
.PublicLifeCounter_public-center-menu__C9mrZ {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  padding: 4px 8px;
  position: relative;
}

.PublicLifeCounter_public-menu-content__T2mOa {
  width: 100%;
  max-width: 64rem;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  padding: 6px 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  position: relative;
  z-index: 101;
}

.PublicLifeCounter_public-menu-button__xw5j4 {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  background: #333;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.PublicLifeCounter_public-menu-button__xw5j4:hover {
  background: #555;
  transform: translateY(-1px);
}

.PublicLifeCounter_public-menu-button__xw5j4.PublicLifeCounter_primary__9W_Ax {
  background: #2563eb;
}

.PublicLifeCounter_public-menu-button__xw5j4.PublicLifeCounter_primary__9W_Ax:hover {
  background: #3b82f6;
}

.PublicLifeCounter_public-menu-button__xw5j4.PublicLifeCounter_danger__tYvQ4 {
  background: #dc2626;
}

.PublicLifeCounter_public-menu-button__xw5j4.PublicLifeCounter_danger__tYvQ4:hover {
  background: #ef4444;
}

.PublicLifeCounter_public-turn-counter__lKygA {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.2);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.PublicLifeCounter_public-turn-display__R4ZOZ {
  font-weight: bold;
  color: #60a5fa;
  min-width: 20px;
  text-align: center;
}

.PublicLifeCounter_public-turn-button__xi0qa {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 2px;
  background: #374151;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.PublicLifeCounter_public-turn-button__xi0qa:hover {
  background: #4b5563;
}

.PublicLifeCounter_public-game-mode__yVqog {
  font-size: 12px;
  color: #9ca3af;
  background: rgba(75, 85, 99, 0.3);
  padding: 2px 6px;
  border-radius: 3px;
}

/* Drag and Drop */
.PublicLifeCounter_public-dragging__F9y4x {
  opacity: 0.5;
  transform: rotate(5deg);
  z-index: 1000;
}

.PublicLifeCounter_public-drag-overlay__yWcAl {
  transform: rotate(5deg);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Modal Styles */
.PublicLifeCounter_public-modal-overlay__CvUj6 {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
}

.PublicLifeCounter_public-modal__0gHWQ {
  background: #1f2937;
  border-radius: 8px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
  border: 1px solid #374151;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.PublicLifeCounter_public-modal__0gHWQ h2 {
  margin: 0 0 16px 0;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.PublicLifeCounter_public-modal-buttons__x65FQ {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}

.PublicLifeCounter_public-modal-button__UD1Yz {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.PublicLifeCounter_public-modal-button__UD1Yz.PublicLifeCounter_cancel__Xgdff {
  background: #374151;
  color: #fff;
}

.PublicLifeCounter_public-modal-button__UD1Yz.PublicLifeCounter_cancel__Xgdff:hover {
  background: #4b5563;
}

.PublicLifeCounter_public-modal-button__UD1Yz.PublicLifeCounter_confirm__LnKcN {
  background: #dc2626;
  color: #fff;
}

.PublicLifeCounter_public-modal-button__UD1Yz.PublicLifeCounter_confirm__LnKcN:hover {
  background: #ef4444;
}

/* Responsive Design */
@media (max-width: 768px) {
  .PublicLifeCounter_public-player-name__JCr4D {
    font-size: 14px;
  }
  
  .PublicLifeCounter_public-hp-display__WOkEM {
    font-size: 20px;
  }
  
  .PublicLifeCounter_public-hp-button__VDBVH {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
  
  .PublicLifeCounter_public-menu-content__T2mOa {
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 8px;
  }
  
  .PublicLifeCounter_public-menu-button__xw5j4 {
    font-size: 11px;
    padding: 6px 10px;
    min-height: 32px;
  }
  
  .PublicLifeCounter_tablet-grid-area__DhvT0 {
    gap: 1px;
  }
  
  .PublicLifeCounter_public-player-card__gVsSW {
    min-height: 160px; /* Increased for portrait mode */
  }
}

@media (max-width: 480px) {
  .PublicLifeCounter_public-grid-area__UGlaz {
    gap: 1px;
  }
  
  .PublicLifeCounter_public-player-card-overlay__OOQaS {
    padding: 4px;
  }
  
  .PublicLifeCounter_public-center-menu__C9mrZ {
    padding: 2px 4px;
  }
  
  .PublicLifeCounter_public-menu-content__T2mOa {
    padding: 4px 8px;
    gap: 4px;
  }
  
  .PublicLifeCounter_public-menu-button__xw5j4 {
    font-size: 10px;
    padding: 4px 8px;
    min-height: 28px;
  }
  
  .PublicLifeCounter_tablet-grid-area__DhvT0 {
    gap: 1px;
  }
  
  .PublicLifeCounter_public-player-card__gVsSW {
    min-height: 140px; /* Ensure buttons are always visible in portrait mode */
  }
}

/* Portrait orientation - taller, narrower cards */
@media (max-width: 768px) and (orientation: portrait) {
  .PublicLifeCounter_public-player-card__gVsSW {
    min-height: 180px; /* Extra height for portrait mode */
  }
  
  .PublicLifeCounter_tablet-grid-area__DhvT0 {
    grid-template-rows: minmax(180px, 1fr) auto minmax(180px, 1fr) !important;
  }
}

/* Landscape orientation - shorter, wider cards */
@media (max-width: 768px) and (orientation: landscape) {
  .PublicLifeCounter_public-player-card__gVsSW {
    min-height: 120px; /* Less height needed in landscape */
  }
  
  .PublicLifeCounter_tablet-grid-area__DhvT0 {
    grid-template-rows: minmax(120px, 1fr) auto minmax(120px, 1fr) !important;
  }
}
