/* /css/gachapon.css */
:root {
  --black: #050505;
  --pearl: #f0e6f6;
  --shell-pink: #f0b5c8;
  --shell-lavender: #c4a8d6;
  --shell-teal: #7dc4b4;
  --shell-gold: #e8d48b;
  --nacre-pink: #f7cad3;
  --nacre-lavender: #d9c2ea;
  --nacre-teal: #a8d8cc;
  --panel-bg: #1a1225;
  --panel-border: #c4a8d6;
  --starburst-start: #a8d8cc;
  --starburst-end: #f0e6f6;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

body {
  background-color: var(--black);
  color: #fff;
  font-family: 'Cavalhatriz', cursive;
  overflow: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Tiled Background */
.tiled-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/assets/images/backgrounds/swirl.gif');
  background-size: 200px;
  background-repeat: repeat;
  opacity: 0.20;
  z-index: -1;
  animation: bgShift 20s linear infinite;
}

@keyframes bgShift {
  0% { background-position: 0 0; }
  100% { background-position: 200px 200px; }
}

/* Vertical Marquee Header */
.marquee-wrapper {
  position: fixed;
  right: 50px;
  top: 0;
  height: 100vh;
  width: 60px;
  overflow: visible;
  z-index: 200;
  pointer-events: none;
  display: flex;
  justify-content: center;
}

.marquee-track {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: scrollDown 12s linear infinite;
}

@keyframes scrollDown {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.marquee-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: 'TimeNR', cursive;
  font-size: 2.2rem;
  font-weight: bold;
  letter-spacing: 0.3em;
  white-space: nowrap;
  
  /* Mother of pearl shimmer */
  background: linear-gradient(
    0deg,
    var(--nacre-pink),
    var(--nacre-teal),
    var(--nacre-lavender),
    var(--pearl),
    var(--nacre-pink)
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  
  animation: pearlFlow 4s linear infinite;
  filter: drop-shadow(0 0 10px rgba(247, 202, 211, 0.3));
}

@keyframes pearlFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 0% 250%; }
}

.return-btn {
  position: fixed;
  top: 15px;
  left: 15px;
  color: var(--pearl);
  text-decoration: none;
  font-family: 'LEDLIGHT', cursive;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(247, 202, 211, 0.4);
  z-index: 200;
  transition: text-shadow 0.3s, color 0.3s;
}

.return-btn:hover {
  text-shadow: 0 0 15px rgba(125, 196, 180, 0.6);
  color: var(--shell-teal);
}

/* Gachapon Wrapper */
.gachapon-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -20px;
  margin-right: 60px;
  transform: scale(1.35);
  transform-origin: center center;
}


/* Machine */
.machine-container {
  position: relative;
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.1s;
}

.machine-container.shaking {
  animation: shake 0.08s infinite;
}

@keyframes shake {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-3px, 2px) rotate(-1deg); }
  50% { transform: translate(3px, -2px) rotate(1deg); }
  75% { transform: translate(-2px, 3px) rotate(0deg); }
  100% { transform: translate(2px, -3px) rotate(-1deg); }
}

/* Speech Bubble */
.speech-bubble {
  position: absolute;
  left: -150px;
  top: 130px;
  transform: scale(0.9);
  background: #fff;
  color: #eeb5c9;
  padding: 12px 15px;
  border-radius: 20px;
  border: 3px solid #c0a9d4;
  font-family: 'KiwiSoda', cursive;
  font-size: 1.4rem;
  line-height: 1.3;
  max-width: 100px;
  text-align: center;
  animation: wave 2s ease-in-out infinite;
  box-shadow: 3px 3px 0 #333;
  z-index: 10;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  right: -13px;
  bottom: 15px;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 15px solid #fff;
}

.speech-bubble::before {
  content: '';
  position: absolute;
  right: -20px;
  bottom: 13px;
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 18px solid #c0a9d4;
  z-index: -1;
}

@keyframes wave {
  0%, 100% { transform: rotate(-3deg) translateX(0); }
  50% { transform: rotate(3deg) translateX(5px); }
}

/* Display Area - nacreous shell gradient */
.machine-display {
  position: relative;
  width: 260px;
  height: 200px;
  background: linear-gradient(180deg, var(--shell-pink) 0%, var(--shell-lavender) 100%);
  border-radius: 20px 20px 10px 10px;
  border: 4px solid var(--pearl);
  box-shadow: 0 5px 20px rgba(196, 168, 214, 0.3), inset 0 2px 10px rgba(255,255,255,0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.display-frame {
  width: 180px;
  height: 160px;
  background: linear-gradient(180deg, #1a1225 0%, #0a0812 100%);
  border-radius: 15px;
  border: 3px solid var(--shell-lavender);
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Static gradient background behind starburst */
.starburst-gradient-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--starburst-start) 0%, var(--starburst-end) 100%);
  z-index: 1;
}

.starburst-bg {
  position: absolute;
  width: 150%;
  height: 150%;
  background: url('/assets/images/ui/starburst.svg') center/cover;
  animation: rotateStarburst 8s linear infinite;
  z-index: 2;
  opacity: 0.7;
  mix-blend-mode: screen;
}

@keyframes rotateStarburst {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.preview-prize {
  width: 100px;
  height: 100px;
  object-fit: contain;
  z-index: 3;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
  animation: bobPrize 2s ease-in-out infinite;
  transition: opacity 0.3s;
}

@keyframes bobPrize {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* LOOT Bubble */
.loot-bubble {
  position: absolute;
  top: -15px;
  right: -30px;
  width: 90px;
  height: 90px;
  cursor: pointer;
  z-index: 10;
  animation: pulse 1.5s ease-in-out infinite;
}

.loot-bubble img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(247, 202, 211, 0.4));
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.loot-bubble:hover {
  animation: pulse 0.5s ease-in-out infinite;
}

/* Machine Body - pearlescent shift */
.machine-body {
  width: 280px;
  height: 200px;
  background: linear-gradient(180deg, var(--shell-lavender) 0%, var(--shell-teal) 100%);
  border-radius: 10px 10px 20px 20px;
  border: 4px solid var(--pearl);
  border-top: 2px solid var(--shell-pink);
  position: relative;
  box-shadow: 0 10px 30px rgba(125, 196, 180, 0.2);
}

/* Knob - pearlized */
.knob {
  position: absolute;
  left: 25px;
  top: 50px;
  width: 55px;
  height: 55px;
  background: radial-gradient(circle at 35% 35%, var(--pearl), var(--shell-pink), var(--panel-bg));
  border-radius: 50%;
  border: 3px solid var(--pearl);
  cursor: grab;
  box-shadow: 0 0 12px rgba(240, 181, 200, 0.3), 0 3px 10px rgba(0,0,0,0.3);
  z-index: 5;
}

.knob:active {
  cursor: grabbing;
}

.knob::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 15px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
}

/* Coin Slot */
.coin-slot {
  position: absolute;
  left: 90px;
  top: 55px;
  z-index: 5;
}

.coin-slot a {
  text-decoration: none;
  display: block;
}

.slot-visual {
  width: 25px;
  height: 45px;
  background: linear-gradient(180deg, var(--panel-bg) 0%, #222 50%, var(--panel-bg) 100%);
  border-radius: 12px;
  border: 2px solid var(--shell-lavender);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
  position: relative;
  transition: box-shadow 0.3s;
}

.coin-slot:hover .slot-visual {
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.5), 0 0 12px var(--pearl);
}

.slot-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel-bg);
  color: var(--pearl);
  padding: 5px 10px;
  border-radius: 8px;
  font-family: 'KiwiSoda', cursive;
  font-size: 0.65rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  border: 1px solid var(--shell-lavender);
  box-shadow: 0 0 10px rgba(196, 168, 214, 0.2);
}

.coin-slot:hover .slot-tooltip {
  opacity: 1;
}

/* Decor Square */
.decor-square {
  position: absolute;
  left: 20px;
  top: 120px;
  width: 90px;
  height: 50px;
  background: linear-gradient(180deg, var(--shell-pink) 0%, var(--shell-lavender) 100%);
  border: 2px solid var(--shell-teal);
  border-radius: 8px;
  box-shadow: inset 0 2px 5px rgba(255,255,255,0.1), 0 2px 5px rgba(0,0,0,0.2);
  z-index: 4;
}

.decor-square::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 30px;
  background: linear-gradient(180deg, var(--panel-bg) 0%, #222 100%);
  border-radius: 4px;
  border: 1px solid var(--shell-lavender);
}

.decor-square::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 15px;
  background: linear-gradient(180deg, #222 0%, #333 100%);
  border-radius: 3px;
  border: 1px solid #555;
}

/* Chute */
.chute {
  position: absolute;
  right: 20px;
  top: 30px;
  width: 100px;
  height: 80px;
  background: linear-gradient(180deg, var(--panel-bg) 0%, var(--black) 100%);
  border-radius: 50px 50px 15px 15px;
  border: 3px solid var(--shell-lavender);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: visible;
  padding-bottom: 10px;
}

.dispensed-capsule {
  width: 50px;
  height: 50px;
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  opacity: 0;
  transition: none;
  z-index: 1;
}

.dispensed-capsule.drop {
  animation: dropCapsule 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes dropCapsule {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  85% {
    transform: translateX(-50%) translateY(75px);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(70px);
    opacity: 1;
  }
}

.capsule-top {
  width: 50px;
  height: 25px;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.6) 0%, rgba(247, 202, 211, 0.3) 50%, rgba(247, 202, 211, 0.15) 100%);
  border-radius: 25px 25px 0 0;
  border: 2px solid rgba(247, 202, 211, 0.4);
  border-bottom: none;
  position: relative;
}

.capsule-top::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 8px;
  width: 15px;
  height: 8px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  transform: rotate(-20deg);
}

.capsule-bottom {
  width: 50px;
  height: 25px;
  border-radius: 0 0 25px 25px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top: none;
  z-index: 3;
  position: relative;
  background-color: transparent;
}

.capsule-bottom::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.4);
  border-radius: 2px;
}

.capsule-prize-img {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  object-fit: contain;
  z-index: 2;
}

/* Decor Stars - pearly shimmer */
.decor-stars {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  color: var(--pearl);
  letter-spacing: 10px;
  text-shadow: 0 0 8px var(--pearl), 0 0 15px rgba(240, 230, 246, 0.3);
  z-index: 6;
  opacity: 0.9;
}

/* Results Overlay */
.results-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.results-overlay.active {
  display: flex;
}

.dim-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 5, 0.85);
}

.cloud-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 300px;
  opacity: 0.5;
}

.cloud-overlay img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.you-got-text {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Little-Monster', cursive;
  font-size: 3rem;
  color: var(--nacre-teal);
  text-shadow: 0 0 20px rgba(168, 216, 204, 0.5), 0 0 40px rgba(168, 216, 204, 0.2);
  animation: waggle 0.8s ease-in-out infinite;
  z-index: 2;
}

@keyframes waggle {
  0%, 100% { transform: translateX(-50%) rotate(-2deg); }
  50% { transform: translateX(-50%) rotate(2deg); }
}

.results-capsule {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  z-index: 3;
  animation: floatCapsule 2s ease-in-out infinite;
}

@keyframes floatCapsule {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-10px); }
}

.rc-top {
  width: 120px;
  height: 60px;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.7) 0%, rgba(247, 202, 211, 0.3) 50%, rgba(247, 202, 211, 0.15) 100%);
  border-radius: 60px 60px 0 0;
  border: 3px solid rgba(247, 202, 211, 0.5);
  border-bottom: none;
  position: relative;
  overflow: hidden;
}

.rc-top::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 15px;
  width: 35px;
  height: 15px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  transform: rotate(-20deg);
}

.rc-bottom {
  width: 120px;
  height: 60px;
  border-radius: 0 0 60px 60px;
  border: 3px solid rgba(255,255,255,0.4);
  border-top: none;
  z-index: 3;
  position: relative;
  background-color: transparent;
}

.rc-bottom::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.4);
  border-radius: 2px;
}

.rc-prize-img {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  object-fit: contain;
  z-index: 2;
}

.results-btn {
  position: absolute;
  bottom: 25%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--shell-lavender);
  color: var(--panel-bg);
  border: 3px solid var(--pearl);
  padding: 12px 35px;
  font-family: 'Little-Monster', cursive;
  font-size: 1.3rem;
  cursor: pointer;
  border-radius: 25px;
  box-shadow: 0 0 20px rgba(196, 168, 214, 0.3), 0 5px 15px rgba(0,0,0,0.3);
  text-shadow: 0 0 5px rgba(240, 230, 246, 0.5);
  z-index: 5;
  transition: all 0.3s;
}

.results-btn:hover {
  background: var(--pearl);
  color: var(--panel-bg);
  box-shadow: 0 0 30px var(--pearl);
}

.results-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: 2px solid var(--shell-teal);
  color: var(--shell-teal);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.results-close:hover {
  background: var(--shell-teal);
  color: var(--panel-bg);
  box-shadow: 0 0 15px var(--shell-teal);
}

/* Info Overlay */
.info-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 150;
}

.info-overlay.active {
  display: flex;
}

.info-box {
  position: relative;
  background: var(--panel-bg);
  border: 3px dashed var(--shell-lavender);
  border-radius: 20px;
  padding: 30px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 30px rgba(196, 168, 214, 0.15), 0 10px 40px rgba(0,0,0,0.5);
  z-index: 2;
  animation: popIn 0.4s ease-out;
}

@keyframes popIn {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

.info-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: var(--shell-pink);
  font-size: 1.5rem;
  cursor: pointer;
  text-shadow: 0 0 5px var(--shell-pink);
  transition: transform 0.2s;
}

.info-close:hover {
  transform: scale(1.3);
}

.info-header h2 {
  font-family: 'Little-Monster', cursive;
  font-size: 1.9rem;
  color: var(--nacre-teal);
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(168, 216, 204, 0.3);
}

.info-subtitle {
  font-family: 'Cavalhatriz', cursive;
  font-size: 1.2rem;
  color: var(--shell-pink);
  margin-top: 5px;
}

.info-divider {
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--shell-lavender), transparent);
  margin: 15px auto;
}

.info-desc {
  font-family: 'kiwiSoda', cursive;
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.5;
  margin-bottom: 15px;
}

.info-prize-area {
  position: relative;
  height: 150px;
  margin: 15px 0;
}

.info-prize-img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  object-fit: contain;
  z-index: 2;
  animation: floatPrize 2s ease-in-out infinite;
}

@keyframes floatPrize {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

.opened-capsule {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
}

.oc-top {
  width: 80px;
  height: 40px;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.5) 0%, rgba(247, 202, 211, 0.2) 100%);
  border-radius: 40px 40px 0 0;
  border: 2px solid rgba(247, 202, 211, 0.3);
  border-bottom: none;
  transform: rotate(-15deg) translateX(-20px);
}

.oc-bottom {
  width: 80px;
  height: 40px;
  border-radius: 0 0 40px 40px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top: 1px solid rgba(255,255,255,0.2);
  transform: rotate(15deg) translateX(20px);
}

.info-fields {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 10px 0;
}

.info-field {
  font-family: 'Little-Monster', cursive;
  font-size: 1.2rem;
  color: var(--shell-lavender);
}

.info-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--nacre-teal);
  text-decoration: none;
  font-family: 'Little-Monster', cursive;
  font-size: 1.3rem;
  border: 1px solid var(--nacre-teal);
  padding: 5px 15px;
  border-radius: 15px;
  transition: all 0.3s;
}

.info-link:hover {
  background: var(--nacre-teal);
  color: var(--panel-bg);
}

/* Pool Overlay */
.pool-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 120;
}

.pool-overlay.active {
  display: flex;
}

.pool-box {
  position: relative;
  background: var(--panel-bg);
  border: 3px dashed var(--shell-lavender);
  border-radius: 20px;
  padding: 25px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  text-align: center;
  box-shadow: 0 0 30px rgba(196, 168, 214, 0.15), 0 10px 40px rgba(0,0,0,0.5);
  z-index: 2;
  overflow: hidden;
}

.pool-box h2 {
  font-family: 'Little-Monster', cursive;
  font-size: 2rem;
  color: var(--nacre-pink);
  text-shadow: 0 0 10px rgba(247, 202, 211, 0.3);
  margin-bottom: 15px;
}

.pool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  max-height: 50vh;
  overflow-y: auto;
  padding: 10px;
  margin-bottom: 15px;
}

.pool-grid::-webkit-scrollbar {
  width: 8px;
}

.pool-grid::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.3);
  border-radius: 4px;
}

.pool-grid::-webkit-scrollbar-thumb {
  background: var(--shell-teal);
  border-radius: 4px;
}

.pool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.pool-item:hover {
  transform: scale(1.1);
}

.pool-capsule {
  width: 70px;
  height: 80px;
  position: relative;
  margin-bottom: 5px;
}

.pool-capsule .pc-top {
  width: 70px;
  height: 40px;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.6) 0%, rgba(247, 202, 211, 0.3) 100%);
  border-radius: 35px 35px 0 0;
  border: 2px solid rgba(247, 202, 211, 0.4);
  border-bottom: none;
  position: relative;
}

.pool-capsule .pc-top::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 10px;
  width: 18px;
  height: 8px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  transform: rotate(-20deg);
}

.pool-capsule .pc-bottom {
  width: 70px;
  height: 40px;
  border-radius: 0 0 35px 35px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top: none;
  z-index: 3;
  position: relative;
}

.pool-capsule .pc-bottom::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.4);
  border-radius: 2px;
}

.pool-capsule .pc-prize {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 35px;
  height: 35px;
  object-fit: contain;
  z-index: 2;
}

.pool-item span {
  font-family: 'KiwiSoda', cursive;
  font-size: 0.95rem;
  color: #aaa;
}

.pool-close {
  background: none;
  border: 2px solid var(--shell-lavender);
  color: var(--shell-lavender);
  padding: 8px 25px;
  font-family: 'Little-Monster', cursive;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 15px;
  transition: all 0.3s;
}

.pool-close:hover {
  background: var(--shell-lavender);
  color: #fff;
}

/* Capsule opening animation */
.capsule-opening .rc-top {
  animation: openTop 0.5s forwards;
}

.capsule-opening .rc-bottom {
  animation: openBottom 0.5s forwards;
}

.capsule-opening .rc-prize-img {
  animation: prizeReveal 0.8s 0.3s forwards;
}

@keyframes openTop {
  to { transform: translateY(-30px) rotate(-20deg); opacity: 0.5; }
}

@keyframes openBottom {
  to { transform: translateY(30px) rotate(20deg); opacity: 0.5; }
}

@keyframes prizeReveal {
  0% { transform: translate(-50%, -50%) scale(1); }
  100% { transform: translate(-50%, -80%) scale(1.5); }
}

/* Responsive */
@media (max-width: 600px) {
  .gachapon-wrapper {
    transform: scale(0.95);
    margin-right: 40px;
  }

  .marquee-text {
    font-size: 1.8rem;
  }
  
  .speech-bubble {
    left: -110px;
    top: 180px;
    transform: scale(0.85);
  }
  
  .machine-container {
    transform: scale(0.85);
  }
  
  .pool-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .you-got-text {
    font-size: 2rem;
  }
  
  .gachapon-wrapper {
    margin-right: 60px;
  }
}