/* Coin flip — tool-specific styles. */
.xcf-stage {
	display: flex; align-items: center; justify-content: center; min-height: 200px; padding: 20px 8px;
	perspective: 900px; border-radius: 12px; background: var(--xct-soft);
}
.xcf-coin {
	position: relative; width: 150px; height: 150px; cursor: pointer;
	transform-style: preserve-3d; transition: transform 0s;
}
.xcf-coin.is-flipping { transition: transform 1s cubic-bezier(.2,.65,.25,1); }
.xcf-face {
	position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden;
	display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff;
	box-shadow: inset 0 0 0 6px rgba(255,255,255,.28), inset 0 -8px 18px rgba(0,0,0,.18), 0 10px 24px -10px rgba(40,30,120,.55);
}
.xcf-face--h { background: var(--xct-grad); }
.xcf-face--t { background: linear-gradient(135deg, #3f3f46 0%, #0a0a0a 100%); transform: rotateY(180deg); }
.xcf-letter { font-size: 3.4rem; font-weight: 700; line-height: 1; }
.xcf-word { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; margin-top: 4px; }
.xcf-grid { display: none; }
.xcf-stage.is-multi .xcf-coin { display: none; }
.xcf-stage.is-multi .xcf-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 100%; }
.xcf-mini {
	width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	font-size: .8125rem; font-weight: 700; color: #fff;
}
.xcf-mini.is-h { background: var(--xct-grad); }
.xcf-mini.is-t { background: linear-gradient(135deg, #52525b, #0a0a0a); }
.xcf-mini.is-anim { animation: xcf-pop .45s ease-out both; }
@keyframes xcf-pop { 0% { transform: rotateY(90deg) scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
	.xcf-coin.is-flipping { transition: none; }
	.xcf-mini.is-anim { animation: none; }
}
.xcf-result { text-align: center; margin-top: 14px; font-size: 1rem; color: var(--xct-muted); min-height: 1.8em; }
.xcf-result strong { color: var(--xct-ink); font-size: 1.5rem; font-weight: 700; }
.xcf-ctrl { margin-top: 14px; }
.xcf-ctrl .xct-field { flex: 0 1 200px; }
.xcf-quick { flex: 1 1 260px; padding-bottom: 4px; }
.xcf-tally { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.xcf-stat { background: var(--xct-soft); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.xcf-stat strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; line-height: 1.2; }
.xcf-statsub { font-size: .8125rem; color: var(--xct-muted); }
.xcf-bars { display: flex; height: 10px; border-radius: 99px; overflow: hidden; margin-top: 12px; background: var(--xct-line); }
.xcf-bh { background: var(--xct-grad); transition: width .3s; }
.xcf-bt { background: #3f3f46; transition: width .3s; }
.xcf-last { font-size: .8125rem; color: var(--xct-muted); margin: 10px 0 0; letter-spacing: .06em; word-break: break-word; }
@media (max-width: 520px) {
	.xcf-tally { grid-template-columns: 1fr 1fr; }
	.xcf-tally .xcf-stat:last-child { grid-column: 1 / -1; }
	.xcf-coin { width: 128px; height: 128px; }
	.xcf-mini { width: 28px; height: 28px; font-size: .75rem; }
}
