/* Akinator-style Game Section */
.akinator-section {
  margin-top: 48px;
  margin-bottom: 48px;
  padding: 32px;
  background: radial-gradient(circle at center, #2a1f3d 0%, #1a1025 100%);
  border: 6px solid var(--comic-outline);
  border-radius: 20px;
  color: #fff;
  position: relative;
  box-shadow: 14px 18px 0 rgba(0,0,0,0.2);
  overflow: hidden;
  text-align: center;
}

/* Background pattern */
.akinator-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 2px, transparent 2px, transparent 20px),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 2px, transparent 2px, transparent 20px);
  pointer-events: none;
  z-index: 0;
}

.akinator-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.akinator-title {
  font-family: 'Bangers', cursive;
  font-size: 56px;
  color: #ffcc00;
  text-shadow: 4px 4px 0 #000;
  margin: 0 0 12px 0;
  letter-spacing: 2px;
  transform: rotate(-2deg);
}

.akinator-subtitle {
  font-size: 20px;
  color: #d8b4fe;
  margin-bottom: 32px;
  font-weight: 600;
}

.genie-avatar {
  width: 180px;
  height: 180px;
  background: #fff;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.6);
  margin-bottom: 24px;
  overflow: hidden;
  position: relative;
  background: radial-gradient(circle at 30% 30%, #a855f7, #581c87);
  display: flex;
  align-items: center;
  justify-content: center;
}
.genie-avatar img {
  width: 110%;
  height: 110%;
  object-fit: cover;
  transform: translateY(10px);
}

/* Chat bubble for the question */
.question-bubble {
  background: #fff;
  color: #000;
  padding: 24px 32px;
  border-radius: 20px;
  font-size: 24px;
  font-weight: 700;
  border: 4px solid #000;
  box-shadow: 8px 8px 0 rgba(0,0,0,0.3);
  margin-bottom: 32px;
  position: relative;
  max-width: 90%;
  animation: float 3s ease-in-out infinite;
}
.question-bubble::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  margin-left: -15px;
  border-width: 20px 15px 0;
  border-style: solid;
  border-color: #000 transparent;
  display: block;
  width: 0;
}
.question-bubble::before {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  margin-left: -11px;
  border-width: 17px 11px 0;
  border-style: solid;
  border-color: #fff transparent;
  display: block;
  width: 0;
  z-index: 1;
}

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

/* Controls */
.akinator-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.ak-btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
  border: 3px solid #000;
  transition: transform 0.1s, box-shadow 0.1s;
  text-transform: uppercase;
  font-family: 'Bangers', cursive;
  letter-spacing: 1px;
  box-shadow: 4px 6px 0 rgba(0,0,0,0.2);
}
.ak-btn:hover {
  transform: translateY(-4px);
  box-shadow: 6px 10px 0 rgba(0,0,0,0.3);
}
.ak-btn:active {
  transform: translateY(2px);
  box-shadow: 2px 3px 0 rgba(0,0,0,0.2);
}

.btn-yes { background: #4ade80; color: #064e3b; }
.btn-no { background: #f87171; color: #450a0a; }
.btn-dk { background: #fbbf24; color: #451a03; }
.btn-prob { background: #60a5fa; color: #172554; }
.btn-prob-not { background: #a78bfa; color: #2e1065; }

.btn-start {
  font-size: 28px;
  padding: 16px 48px;
  background: linear-gradient(90deg, #ff00cc, #3333ff);
  color: white;
  border: 4px solid #fff;
  box-shadow: 0 0 20px rgba(255, 0, 204, 0.4);
}

.guess-reveal {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  border: 4px solid #000;
  margin-top: 20px;
  color: #000;
}
.guess-reveal h3 {
  margin: 0;
  font-size: 32px;
  color: var(--comic-accent);
}

.loading-dots:after {
  content: ' .';
  animation: dots 1s steps(5, end) infinite;
}
@keyframes dots {
  0%, 20% { color: rgba(0,0,0,0); text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0);}
  40% { color: #000; text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0);}
  60% { text-shadow: .25em 0 0 #000, .5em 0 0 rgba(0,0,0,0);}
  80%, 100% { text-shadow: .25em 0 0 #000, .5em 0 0 #000;}
}