* {
  box-sizing: border-box;
}

body {
  margin: 0;
 font-family:
"Hiragino Sans GB",
"Heiti SC",
"Microsoft YaHei",
sans-serif;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.page {
  width: 100vw;
  height: 100vh;
}

.game-screen {
  position: relative;
  width: 100vw;
  height: 100vh;

  background-image: url("./images/lobby.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  overflow: hidden;
}
/* AI按钮 */

.ai-button {
  position: absolute;

  left: 36px;
  bottom: 28px;

  width: 72px;
height: 72px;

  border: none;
  background: transparent;

  cursor: pointer;

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 20;
}

.ai-button img {
  width: 200px;
height: 200px;

  object-fit: contain;

  position: relative;
  z-index: 2;

  animation: aiFloat 2s ease-in-out infinite;
}

.ai-wave {
  position: absolute;

  width: 150px;
height: 150px;

  border-radius: 50%;

  border: 2px solid rgba(170, 190, 255, 0.8);

  animation: wavePulse 2s infinite;
}

@keyframes wavePulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }

  70% {
    transform: scale(1.55);
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@keyframes aiFloat {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

/* AI面板 */

.ai-panel {
  position: absolute;

  top: 24px;
  left: 32px;
right: auto;
  width: 320px;
  padding: 14px;

  border-radius: 24px;

  background: rgba(255,255,255,0.16);

  backdrop-filter: blur(18px);

  border: 1px solid rgba(255,255,255,0.25);

  box-shadow:
  0 8px 24px rgba(180,160,255,0.12);

  color: #2f2f38;

  transform: translateX(-420px);

  transition: 0.35s ease;

  z-index: 30;
}
.ai-panel.show {
  transform: translateX(0);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-header h2 {
  margin: 0;
  font-size: 18px;
}
#closeAI {
  border: none;
  background: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

.scene-card,
.ai-card,
.success-card {
  margin-top: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 13px;
  line-height: 1.35;
}
.label {
  margin: 0 0 8px;

  color: #6d6688;

  font-weight: bold;
}

.voice-btn,
.confirm-btn {
  margin-top: 8px;
  padding: 9px;
  font-size: 14px;
}

.voice-btn {
  background:
  linear-gradient(
    135deg,
    rgba(255,255,255,0.32),
    rgba(255,255,255,0.18)
  );

  border: 1px solid rgba(255,255,255,0.35);

  color: #3f3f4f;

  backdrop-filter: blur(10px);
}

.confirm-btn {
  background:
  linear-gradient(
    135deg,
    rgba(255,220,240,0.42),
    rgba(255,245,220,0.26)
  );

  border: 1px solid rgba(255,255,255,0.4);

  color: #4a4152;
}

.success-card {
  background: rgba(80, 220, 160, 0.2);

  border: 1px solid rgba(120, 255, 200, 0.55);

  line-height: 1.6;
}

.hidden {
  display: none;
}

/* Toast */

.toast {
  position: absolute;

  left: 50%;
  top: 45%;

  transform: translate(-50%, -50%);

  padding: 18px 34px;

  border-radius: 22px;

  background: rgba(255,255,255,0.22);

  backdrop-filter: blur(18px);

  border: 1px solid rgba(255,255,255,0.35);

  color: #3d3550;

  font-size: 24px;
  font-weight: bold;

  box-shadow:
  0 8px 28px rgba(180,160,255,0.12);

  z-index: 50;

  animation: pop 1.2s ease forwards;
}

@keyframes pop {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }

  20% {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}
.namecard {
  margin-top: 12px;

  width: 100%;

  overflow: hidden;

  border-radius: 18px;

  border: 1px solid rgba(255,255,255,0.22);

  box-shadow:
  0 0 18px rgba(180,160,255,0.12);
}

.namecard img {
  width: 100%;

  height: auto;

  display: block;

  border-radius: 14px;
}
.listen-card {
  margin-top: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.24);
}

.listen-card .label {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.voice-text {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 5px rgba(0,0,0,0.35);
}

.recommend-intro {
  margin: 12px 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 5px rgba(0,0,0,0.35);
}

.namecard {
  width: 100%;
  margin-top: 8px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 0 16px rgba(180,160,255,0.16);
}

.namecard img {
  width: 100%;
  height: auto;
  display: block;
}

.hint {
  margin: 12px 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 5px rgba(0,0,0,0.35);
}

.voice-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.voice-group .voice-btn {
  margin-top: 0;
  padding: 10px;
  font-size: 14px;
}
