.side-pick button { display: flex; align-items: center; justify-content: center; gap: 8px; }
.ghost-btn { display: flex; align-items: center; justify-content: center; gap: 8px; }

.coin-mini { width: 18px; height: 18px; border-radius: 50%; flex: none; display: inline-block; box-shadow: inset 0 -2px 0 #0004; }
.coin-mini.h { background: radial-gradient(circle at 35% 30%, #ffe58a, #f0a81c 60%, #b86d00); }
.coin-mini.t { background: radial-gradient(circle at 35% 30%, #9fd1ff, #1f7bff 60%, #0b3fa8); }

.flip-center { flex: 1; display: grid; place-items: center; perspective: 900px; position: relative; min-height: 300px; }
.coin3d {
  position: relative; width: min(220px, 46vw); aspect-ratio: 1; transform-style: preserve-3d;
  transition: transform 1.1s cubic-bezier(.2, .7, .25, 1);
}
.face {
  position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; backface-visibility: hidden;
  box-shadow: inset 0 0 0 10px #0000001f, inset 0 -10px 20px #0004, 0 0 0 4px #00000022;
}
.face.heads { background: radial-gradient(circle at 35% 28%, #fff2b0, #ffc23d 45%, #d98a00 80%, #a35f00); }
.face.heads img { width: 62%; filter: drop-shadow(0 4px 6px #0006); }
.face.tails { transform: rotateX(180deg); background: radial-gradient(circle at 35% 28%, #cfe6ff, #3b95ff 45%, #1667e8 80%, #0b3fa8); }
.face.tails span { font-size: 110px; font-weight: 800; color: #fff; text-shadow: 0 6px 12px #0006; }
.coin-shadow {
  position: absolute; bottom: 12%; width: 160px; height: 22px; border-radius: 50%; background: #000a; filter: blur(10px);
  transition: transform .55s, opacity .55s;
}
.stage.flipping .coin3d { animation: hop 1.1s cubic-bezier(.3, .6, .4, 1); }
.stage.flipping .coin-shadow { animation: shrink 1.1s; }
@keyframes hop { 50% { translate: 0 -70px; scale: 1.08; } }
@keyframes shrink { 50% { transform: scale(.55); opacity: .4; } }

.streak { display: flex; gap: 8px; overflow-x: auto; min-height: 66px; padding: 10px; border-radius: 12px; background: var(--panel); scroll-behavior: smooth; }
.streak:empty::before { content: "Your flips show up here"; margin: auto; color: var(--muted); font-size: 13px; font-weight: 600; }
.st {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 58px; padding: 6px 8px;
  border-radius: 8px; background: var(--panel-2); font-size: 12px; font-weight: 800; animation: histIn .3s;
}
.st .coin-mini { width: 24px; height: 24px; }
.st.w span { color: #22e07a; }
.st.l { background: #ff2e3f22; }
.st.l span { color: #ff6b78; }
