
.toy-win { background: #f4f8ff; }
.toy-body { padding: 12px; }
.toy-center { text-align: center; }
.toy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.piano-body { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px; }
.piano { position: relative; height: 160px; user-select: none; }
.white-row { display: flex; height: 100%; }
.wkey {
  width: 46px; height: 160px; margin-right: -1px;
  background: linear-gradient(180deg, #ffffff, #eef3ff);
  border: 1px solid #7b8ce8; cursor: pointer;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px;
  font: 400 13px var(--font-ui); color: #9aa8d8;
  box-shadow: inset 0 -6px 10px rgba(120, 140, 220, .12);
}
.wkey:active { background: linear-gradient(180deg, #cfe0ff, #a9c7f5); }
.bkey {
  position: absolute; top: 0; width: 28px; height: 96px;
  background: linear-gradient(180deg, #3a3a5a, #141428);
  border: 1px solid #0a0a18; cursor: pointer; z-index: 2;
  color: #9aa8d8; font: 400 13px var(--font-ui);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 7px;
  box-shadow: 0 3px 4px rgba(0, 0, 0, .35);
}
.bkey:active { background: linear-gradient(180deg, #4a4a6a, #1a1a2e); }
.piano-hint { font-family: var(--font-cute); font-size: 13px; color: #e06aa2; }
.piano-secret { font-family: var(--font-cute); font-size: 11px; color: #b0b0c8; }

.doodle-body { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.doodle-frame { border: 2px inset #9aa0c8; background: #fff; line-height: 0; }
#doodle { display: block; cursor: crosshair; touch-action: none; max-width: 100%; }
.doodle-ctl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.pen-row { display: flex; gap: 5px; }
.pen { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #9aa0c8; cursor: pointer; }
.pen:active { transform: scale(.9); }
.ctl-sep { width: 1px; height: 20px; background: #c3ccf5; }
.doodle-btn { font-family: var(--font-cute); font-size: 13px; padding: 4px 12px; cursor: pointer; }
.doodle-btn:active { transform: translateY(1px); }
.doodle-btn.save { color: #fff; background: linear-gradient(180deg, #8fd0ff, #4aa8f0); border: 1px solid #2a6fbf; }
.doodle-btn.clear { color: #e06aa2; background: linear-gradient(180deg, #fff, #ffeef6); border: 1px solid #f0a; }
.doodle-msg { font-family: var(--font-cute); font-size: 12px; color: #8a8aa8; }

.reel-housing { display: inline-flex; gap: 6px; background: #0b1f66; padding: 8px; border: 2px inset #6f81de; }
.gacha-reel {
  width: 48px; height: 56px; background: radial-gradient(circle at 40% 30%, #fff, #e6efff);
  border: 1px solid #7b8ce8; display: flex; align-items: center; justify-content: center; font-size: 30px;
}
.gacha-msg { font-family: var(--font-cute); font-size: 14px; color: #3a3a5a; margin: 8px 0; min-height: 19px; }
.gacha-btn {
  font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #fff;
  background: linear-gradient(180deg, #ffce4a, #f0a63c); border: 1px solid #c07a10; padding: 7px 18px; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 2px 3px rgba(0, 0, 0, .2);
}
.gacha-btn:active { transform: translateY(2px); }
.gacha-count { font: 400 13px var(--font-ui); color: #7a7a9a; margin-top: 7px; }

.sticker-book { margin-top: 10px; }
.sticker-book-title { font-family: var(--font-cute); font-size: 13px; color: #e06aa2; margin-bottom: 5px; }
.sticker-shelf { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; max-width: 260px; margin: 0 auto; }
.sticker-slot {
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  font-size: 19px; border: 1px solid #cdd8f5; background: #fbfdff; color: #c2cae0;
}
.sticker-slot.got { background: radial-gradient(circle at 40% 30%, #fff, #ffeef6); border-color: #ffb3d1; color: #3a3a5a; }
.sticker-slot.rare { border-color: #e0b23c; color: #d7ab2e; }
.sticker-slot.rare.got { background: radial-gradient(circle at 40% 30%, #fff, #fff2c8); box-shadow: 0 0 6px rgba(240, 200, 60, .6); }
.gacha-reward {
  font-family: var(--font-cute); font-size: 13px; color: #a9791a; margin-top: 8px; line-height: 1.3;
  background: linear-gradient(180deg, #fff8e0, #ffefb8); border: 1px solid #e0b23c; padding: 6px 8px;
}

.toy-doodle { max-width: 100px; max-height: 100px; display: block; }

.icon-btn { background: none; border: none; cursor: pointer; padding: 0; }
.icon-btn:active { transform: scale(.94); }
.fortune-text {
  font-family: var(--font-cute); font-size: 14px; color: #3a3a5a; margin-top: 6px;
  min-height: 38px; line-height: 1.25; background: #fffdf3; border: 1px dashed #e0c060;
  padding: 5px 8px; }

.toy-win-vcenter { display: flex; flex-direction: column; }
.toy-win-vcenter .toy-body {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
}
.toy-win-vcenter .fortune-text { align-self: stretch; margin-top: 0; }

.toy-win-end { display: flex; flex-direction: column; }
.toy-win-end .toy-body { flex: 1; display: flex; flex-direction: column; align-items: center; }
.toy-win-end .click-btn { margin-top: auto; }

.click-count { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: #ff5fa2; line-height: 1; }
.click-label { font: 400 12px var(--font-ui); color: #7a7a9a; margin-bottom: 8px; }
.click-btn {
  font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #fff;
  background: linear-gradient(180deg, #ffb3d1, #f06aa6); border: 1px solid #d0468a; padding: 8px 18px; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 3px 4px rgba(0, 0, 0, .2);
}
.click-btn:active { transform: translateY(2px); }
.click-remark { font-family: var(--font-cute); font-size: 14px; color: #e06aa2; margin-top: 8px; min-height: 18px; line-height: 1.2; }

.marshmallow {
  width: 80px; height: 80px; margin: 0 auto 8px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff, #e0d0ff 55%, #b6a8f0);
  box-shadow: inset -3px -3px 8px rgba(90, 70, 180, .4), inset 3px 3px 8px #fff;
  display: flex; align-items: center; justify-content: center;
}
.eight-ball { font-family: var(--font-cute); font-size: 13px; color: #6a4bd0; padding: 6px; line-height: 1.05; white-space: pre-line; }
.eight-btn {
  font-family: var(--font-cute); font-size: 14px; color: #fff;
  background: linear-gradient(180deg, #b6a8f0, #8a6fe0); border: 1px solid #6a4bd0; padding: 6px 16px; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 2px 3px rgba(0, 0, 0, .2);
}
.eight-btn:active { transform: translateY(2px); }

.saver { position: relative; height: 150px; background: #0b1224; border: 2px inset #6f81de; overflow: hidden; }
.saver-logo {
  position: absolute; top: 20px; left: 20px;
  font-family: var(--font-display); font-weight: 700; font-size: 30px; color: #ff5fa2;
  text-shadow: 0 0 10px currentColor; will-change: transform;
}
.saver-cap { font-family: var(--font-cute); font-size: 12px; color: #8a8aa8; text-align: center; margin-top: 5px; }
.saver-score { font-family: var(--font-cute); font-size: 13px; color: #e06aa2; text-align: center; margin-top: 2px; }
.saver-score b { font-family: var(--font-lcd); font-size: 16px; color: #4aa8f0; }
.corner-flash {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 26px; color: #ffce4a;
  text-shadow: 0 0 12px currentColor; pointer-events: none; z-index: 3;
}
.corner-flash[hidden] { display: none; }

.pet-body { display: flex; align-items: center; gap: 16px; justify-content: center; flex-wrap: wrap; }
.pet-msg { font-family: var(--font-cute); font-size: 16px; color: #3a3a5a; max-width: 220px; white-space: pre-line; }

@media (max-width: 480px) {
  .toy-grid { grid-template-columns: 1fr; }
}
