/* ===== PIRATEPOKEDRINK ===== */
/* File: /games/piratepokedrink/styles-piratepokedrink.css */

/* ---------- Base ---------- */
#game-piratepokedrink {
  width: 100%;
  height: 100%;
  background: #0c0a08;
  overflow: hidden;
}

.piratepokedrink-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%, #1a1008 0%, #0c0a08 70%);
  font-family: 'Georgia', 'Times New Roman', serif;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  padding: 0 0 40px 0;
  box-sizing: border-box;
  overflow-x: visible;
  overflow-y: visible;
}

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

.piratepokedrink-title {
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 700;
  color: #f5d06e;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  margin: 0;
}

.piratepokedrink-mode-toggle {
  display: flex;
  gap: 6px;
}

.piratepokedrink-mode-button {
  background: #1a1408;
  border: 2px solid #3a2c14;
  border-radius: 8px;
  color: #9a7a3a;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Arial Black', Arial, sans-serif;
  padding: 6px 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.15s;
}

.piratepokedrink-mode-button.piratepokedrink-mode-button-active {
  background: #2a1e08;
  border-color: #c8962a;
  color: #f5d06e;
}

.piratepokedrink-mode-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------- Remaining Counter ---------- */
.piratepokedrink-remaining {
  font-size: clamp(13px, 3vw, 16px);
  color: #9a7a3a;
  font-family: Arial, sans-serif;
  padding: 10px 0 0;
  letter-spacing: 0.04em;
}

.piratepokedrink-remaining strong {
  color: #f5d06e;
}

/* ---------- Barrel Scene ---------- */
.piratepokedrink-scene {
  position: relative;
  width: min(340px, 90vw);
  margin: 16px auto 0;
  flex-shrink: 0;
}

/* Barrel SVG container */
.piratepokedrink-barrel-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,0.7));
}

/* ---------- Pirate Figure (inside barrel) ---------- */
.piratepokedrink-pirate-container {
  position: absolute;
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 2;
  transition: top 0.05s;
}

.piratepokedrink-pirate-body {
  position: relative;
  width: 64px;
  height: 64px;
}

/* Pirate hat */
.piratepokedrink-hat {
  width: 56px;
  height: 28px;
  background: #1a1208;
  border-radius: 4px 4px 0 0;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 -2px 0 #2a2010;
}

.piratepokedrink-hat::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: -6px;
  right: -6px;
  height: 8px;
  background: #1a1208;
  border-radius: 2px;
}

.piratepokedrink-hat-skull {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-size: 18px;
  line-height: 1;
}

/* Pirate face */
.piratepokedrink-face {
  width: 52px;
  height: 52px;
  background: radial-gradient(circle at 40% 35%, #f0c878 0%, #c8965a 60%, #a07040 100%);
  border-radius: 50%;
  margin: 0 auto;
  position: relative;
  box-shadow: inset -4px -4px 8px rgba(0,0,0,0.3);
}

.piratepokedrink-face::before {
  content: '😤';
  font-size: 34px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Pop-out face */
.piratepokedrink-pirate-container.piratepokedrink-pirate-popped .piratepokedrink-face::before {
  content: '😱';
}

/* Pirate body stripe */
.piratepokedrink-torso {
  width: 44px;
  height: 24px;
  background: repeating-linear-gradient(
    0deg,
    #cc2222 0px,
    #cc2222 6px,
    #f0f0f0 6px,
    #f0f0f0 12px
  );
  border-radius: 0 0 4px 4px;
  margin: 0 auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* Pop animation */
@keyframes piratepokedrink-pop-up {
  0%   { top: 60%; opacity: 0; transform: translateX(-50%) scale(0.5) rotate(-8deg); }
  40%  { top: -20%; opacity: 1; transform: translateX(-50%) scale(1.18) rotate(4deg); }
  60%  { top: -24%; transform: translateX(-50%) scale(1.05) rotate(-2deg); }
  80%  { top: -22%; transform: translateX(-50%) scale(1.1) rotate(2deg); }
  100% { top: -20%; transform: translateX(-50%) scale(1) rotate(0deg); }
}

.piratepokedrink-pirate-container.piratepokedrink-pirate-hidden {
  top: 62%;
  opacity: 0;
}

.piratepokedrink-pirate-container.piratepokedrink-pirate-popped {
  animation: piratepokedrink-pop-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ---------- Dagger Label ---------- */
.piratepokedrink-slots-label {
  font-size: 12px;
  color: #6a5228;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: Arial, sans-serif;
  margin: 6px 0 0;
  text-align: center;
}

/* ---------- Individual Slot (circular button) ---------- */

.piratepokedrink-slot {
  position: absolute;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #2a1e0a 0%, #1a1206 100%);
  border: 2px solid #3a2c12;
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.12s, border-color 0.12s, transform 0.08s;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.4);
}

/* 24-slot mode: smaller buttons so the denser layout doesn't overlap */
.piratepokedrink-slot.piratepokedrink-slot-dense {
  width: 18px;
  height: 18px;
  border-width: 1px;
}

.piratepokedrink-slot.piratepokedrink-slot-dense .piratepokedrink-slot-icon {
  font-size: 8px;
}

.piratepokedrink-slot::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.08), transparent);
  border-radius: 50% 50% 0 0;
  pointer-events: none;
}

.piratepokedrink-slot:hover:not(.piratepokedrink-slot-used):not(.piratepokedrink-slot-popped) {
  background: linear-gradient(160deg, #3a2c10 0%, #2a1e08 100%);
  border-color: #c8962a;
  transform: translate(-50%, -50%) scale(1.12);
}

.piratepokedrink-slot:active:not(.piratepokedrink-slot-used):not(.piratepokedrink-slot-popped) {
  transform: translate(-50%, -50%) scale(0.9);
}

.piratepokedrink-slot-icon {
  font-size: 13px;
  line-height: 1;
  transition: transform 0.1s;
}

/* Used slot (sword inserted safely) */
.piratepokedrink-slot.piratepokedrink-slot-used {
  background: linear-gradient(160deg, #0e1a10 0%, #081008 100%);
  border-color: #1e3a22;
  cursor: default;
  opacity: 0.5;
  transition: background 0.32s, border-color 0.32s, opacity 0.32s, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translate(-50%, -50%) scale(0.82);
}

.piratepokedrink-slot.piratepokedrink-slot-used .piratepokedrink-slot-icon {
  opacity: 0;
  transition: opacity 0.15s ease-out;
}

/* Popped slot */
.piratepokedrink-slot.piratepokedrink-slot-popped {
  background: linear-gradient(160deg, #3a0808 0%, #200404 100%);
  border-color: #cc2222;
  cursor: default;
  opacity: 1;
  animation: piratepokedrink-slot-shake 0.4s ease-out;
}

.piratepokedrink-slot.piratepokedrink-slot-popped .piratepokedrink-slot-icon {
  opacity: 1;
}

@keyframes piratepokedrink-slot-shake {
  0%, 100% { transform: translate(-50%, -50%); }
  20%       { transform: translate(-50%, -50%) translateX(-5px) rotate(-3deg); }
  40%       { transform: translate(-50%, -50%) translateX(5px) rotate(3deg); }
  60%       { transform: translate(-50%, -50%) translateX(-3px); }
  80%       { transform: translate(-50%, -50%) translateX(3px); }
}

/* ---------- Result Banner ---------- */
.piratepokedrink-result-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 8, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 200;
  gap: 16px;
  padding: 24px;
}

.piratepokedrink-result-emoji {
  font-size: clamp(56px, 15vw, 96px);
  animation: piratepokedrink-result-bounce 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes piratepokedrink-result-bounce {
  from { transform: scale(0.3) rotate(-15deg); opacity: 0; }
  70%  { transform: scale(1.2) rotate(5deg); }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}

.piratepokedrink-result-headline {
  font-size: clamp(22px, 6vw, 40px);
  font-weight: 700;
  color: #f5d06e;
  text-align: center;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(200, 80, 0, 0.5);
}

.piratepokedrink-result-subtitle {
  font-size: clamp(14px, 3.5vw, 20px);
  color: #9a7a3a;
  text-align: center;
  font-family: Arial, sans-serif;
}

.piratepokedrink-result-drink-badge {
  background: linear-gradient(135deg, #8b0000 0%, #cc2222 100%);
  border-radius: 16px;
  padding: 14px 28px;
  font-size: clamp(18px, 4.5vw, 26px);
  font-weight: 700;
  color: #fff;
  font-family: 'Arial Black', Arial, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(200, 0, 0, 0.4);
  text-align: center;
}

.piratepokedrink-result-button-row {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 340px;
  margin-top: 8px;
}

.piratepokedrink-result-button {
  flex: 1;
  background: #1a1408;
  border: 2px solid #3a2c14;
  border-radius: 10px;
  color: #f5d06e;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Arial Black', Arial, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}

.piratepokedrink-result-button:active {
  background: #2a2010;
}

.piratepokedrink-result-button-primary {
  background: linear-gradient(135deg, #8b4000 0%, #c87a00 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 18px rgba(180, 100, 0, 0.35);
}

.piratepokedrink-result-button-primary:active {
  opacity: 0.85;
}


