/* ===== DRUNKEN LADDER ===== */
/* File: /games/drunken-ladder/styles-drunken-ladder.css */

/* ---------- Base ---------- */
#game-drunken-ladder {
  width: 100%;
  height: 100%;
  background: #0a0c0a;
  overflow: hidden;
}

.drunken-ladder-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 480px;
  background: radial-gradient(ellipse at 50% 0%, #1a2a10 0%, #0a0c0a 70%);
  font-family: 'Space Mono', 'Courier New', monospace;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  padding: 0 0 32px 0;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: visible;
}

/* ---------- Header ---------- */
.drunken-ladder-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 0;
  box-sizing: border-box;
}

.drunken-ladder-title {
  font-size: clamp(18px, 4.5vw, 26px);
  font-weight: 700;
  color: #a8ff78;
  letter-spacing: 0.04em;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.drunken-ladder-reset-button {
  background: rgba(255, 107, 107, 0.1);
  border: 2px solid #ff6b6b;
  border-radius: 8px;
  color: #ff6b6b;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Space Mono', monospace;
  padding: 6px 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.15s;
}

.drunken-ladder-reset-button:active {
  background: rgba(255, 107, 107, 0.25);
}

.drunken-ladder-reset-button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ---------- Setup Panel (wraps player setting + Set & Climb + name/drink rows) ---------- */
/* Outer wrapper matches the canvas-area's box model exactly (same max-width + side padding)
   so the panel border lines up flush with the canvas sides below it. */
.drunken-ladder-panel {
  width: 100%;
  max-width: 440px;
  padding: 10px 16px 0;
  box-sizing: border-box;
}

.drunken-ladder-panel-inner {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #141a10;
  border: 1.5px solid #3a4a2a;
  border-radius: 14px;
  padding: 14px 14px 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

.drunken-ladder-panel-label {
  font-size: 10px;
  color: #6a7a5a;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
}

/* ---------- Setup Area ---------- */
.drunken-ladder-setup-area {
  width: 100%;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drunken-ladder-setup-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drunken-ladder-setup-label {
  font-size: 11px;
  color: #9a9a7a;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  min-width: 60px;
}

.drunken-ladder-player-count-select {
  background: #1a1e12;
  border: 1.5px solid #3a4a2a;
  border-radius: 7px;
  color: #a8ff78;
  font-size: 13px;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  padding: 6px 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.drunken-ladder-set-button {
  background: rgba(168, 255, 120, 0.08);
  border: 1.5px solid #a8ff78;
  border-radius: 7px;
  color: #a8ff78;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Space Mono', monospace;
  padding: 8px 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.15s;
  white-space: nowrap;
}

.drunken-ladder-set-button:active {
  background: rgba(168, 255, 120, 0.18);
}

/* ---------- Name and Result Columns ---------- */
.drunken-ladder-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

.drunken-ladder-inputs-column {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.drunken-ladder-column-label {
  font-size: 10px;
  color: #6a7a5a;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.drunken-ladder-text-input {
  background: #1a1e12;
  border: 1px solid #2a3a1a;
  border-radius: 6px;
  color: #e0e8d0;
  font-size: 12px;
  font-family: 'Space Mono', monospace;
  padding: 5px 8px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s;
}

.drunken-ladder-text-input:focus {
  border-color: #a8ff78;
}

/* ---------- Canvas Area ---------- */
.drunken-ladder-canvas-area {
  width: 100%;
  max-width: 440px;
  padding: 8px 16px 0;
  box-sizing: border-box;
  position: relative;
}

.drunken-ladder-canvas {
  width: 100%;
  display: block;
  border-radius: 12px;
}

/* ---------- Action Bar ---------- */
.drunken-ladder-action-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 440px;
  padding: 10px 16px 0;
  box-sizing: border-box;
}

.drunken-ladder-climb-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  max-width: 280px;
  height: 44px;
  border-radius: 10px;
  border: 1.5px solid #a8ff78;
  background: rgba(168, 255, 120, 0.05);
  color: #e0e8d0;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  animation: drunken-ladder-blink 0.7s ease-in-out infinite;
}

@keyframes drunken-ladder-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

.drunken-ladder-climb-button-label {
  color: #a8ff78;
  font-weight: 700;
}

.drunken-ladder-share-container {
  width: 100%;
}

.drunken-ladder-share-button {
  width: 100%;
  padding: 9px 0;
  border-radius: 8px;
  border: 1px solid #3a4a2a;
  background: #1a1e12;
  color: #9a9a7a;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  margin-top: 4px;
}

/* ---------- Reset Confirmation Popup ---------- */
.drunken-ladder-confirm-popup {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.drunken-ladder-confirm-popup.drunken-ladder-confirm-popup-visible {
  display: flex;
}

.drunken-ladder-confirm-box {
  background: #141a10;
  border: 1.5px solid #3a4a2a;
  border-radius: 16px;
  padding: 28px 24px;
  max-width: 320px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.drunken-ladder-confirm-title {
  font-size: 16px;
  font-weight: 700;
  color: #a8ff78;
}

.drunken-ladder-confirm-message {
  font-size: 13px;
  color: #9a9a7a;
  line-height: 1.5;
}

.drunken-ladder-confirm-buttons {
  display: flex;
  gap: 10px;
}

.drunken-ladder-confirm-cancel-button {
  flex: 1;
  padding: 10px 0;
  border-radius: 8px;
  border: 1.5px solid #3a4a2a;
  background: #1a1e12;
  color: #9a9a7a;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.drunken-ladder-confirm-ok-button {
  flex: 1;
  padding: 10px 0;
  border-radius: 8px;
  border: 1.5px solid #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}


