* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", Arial;
  background: #f4f6f9;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 顶部提示条 */
.toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: #323232;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(6px);
}

.container {
  width: 92%;
  max-width: 420px;
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

select, button {
  width: 100%;
  height: 42px;
  margin-bottom: 12px;
}

button {
  border: none;
  border-radius: 10px;
  background: #f2c94c;
  cursor: pointer;
}

button:disabled {
  opacity: .6;
}

/* 金蛋区 */
.eggs {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
}

/* 浅背景卡片 */
.egg-wrap {
  width: 32%;
  padding: 12px 0;
  background: #f7f8fa;
  border-radius: 12px;
}

/* 方形金蛋 */
.egg {
  width: 80px;
  height: 80px;
  margin: auto;
  background: #fff;
  border: 2px solid #f2c94c;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform .2s;
}

.egg:hover {
  transform: scale(1.05);
}

.egg .text {
  font-size: 20px;
  font-weight: bold;
}

/* 老虎机 */
.egg.rolling .text {
  animation: roll .1s infinite;
}

@keyframes roll {
  0% { transform: translateY(-8px); }
  100% { transform: translateY(8px); }
}

/* 砸蛋 */
.egg.smash {
  transform: scale(1.25);
  border-color: #e60000;
}

/* 其他蛋 */
.egg.blur {
  filter: blur(1.2px);
  opacity: .7;
}

.result {
  font-size: 32px;
  font-weight: bold;
  color: #e60000;
  margin: 16px 0;
}

.records {
  font-size: 12px;
  text-align: left;
}
