/* Coin flip */
.cf-main { display: grid; gap: 10px; justify-items: stretch; }
.cf-stage { perspective: 1000px; display: grid; place-items: center; min-height: 270px; padding-top: 8px; }
.cf-lift { display: grid; place-items: center; }
.cf-lift.toss { animation: cf-toss 1.1s cubic-bezier(.3, .6, .35, 1); }
@keyframes cf-toss { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-70px) scale(1.12); } 75% { transform: translateY(0) scale(1.02); } 88% { transform: translateY(-8px); } 100% { transform: translateY(0) scale(1); } }
.cf-coin { --rot: 0deg; position: relative; width: min(230px, 60vw); aspect-ratio: 1; border: 0; padding: 0; margin: 0; background: none; border-radius: 50%; cursor: pointer;
  transform-style: preserve-3d; transform: rotateX(var(--rot)); transition: transform 1.1s cubic-bezier(.15, .65, .25, 1); -webkit-tap-highlight-color: transparent; }
.cf-coin.instant { transition: none; }
.cf-coin:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
.cf-face { --c: #d4a93c; --ink: #17130a; position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; color: var(--ink);
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 46%), radial-gradient(circle at 70% 80%, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0) 55%), var(--c);
  box-shadow: inset 0 0 0 7px rgba(0, 0, 0, .18), inset 0 0 0 11px rgba(255, 255, 255, .28), inset 0 0 0 13px rgba(0, 0, 0, .12), 0 10px 26px rgba(0, 0, 0, .45); }
.cf-face.b { transform: rotateX(180deg); }
.cf-face img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.cf-label { font-size: 30px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; padding: 0 18%; text-align: center; overflow-wrap: anywhere; line-height: 1.1; text-shadow: 0 1px 0 rgba(255, 255, 255, .25); }
.cf-label.long { font-size: 21px; }
.cf-label.longer { font-size: 16px; }
.cf-result { min-height: 64px; text-align: center; display: grid; gap: 2px; align-content: center; }
.cf-side-name { font-size: 32px; font-weight: 800; color: var(--accent); line-height: 1.1; overflow-wrap: anywhere; }
.cf-sub { font-size: 13px; }
.cf-call { justify-content: center; gap: 8px 12px; }
.cf-call .lbl { margin: 0; }
.cf-match { text-align: center; min-height: 20px; font-size: 14px; }
.cf-stats { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px 14px; margin: 4px 0 0; font-size: 14px; }
.cf-stats dt { color: var(--muted); overflow-wrap: anywhere; max-width: 160px; }
.cf-stats dd { margin: 0; font-variant-numeric: tabular-nums; }
#odd:empty { display: none; }
.cf-strip { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 3px; }
.cf-strip li, .cf-dots li { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.cf-strip li.a, .cf-dots li.a { background: var(--accent); color: #10130a; }
.cf-strip li.b, .cf-dots li.b { background: #3a3d4a; color: #e9e9ef; }
.cf-opts { justify-content: space-between; margin-top: 6px; }
.cf-sides { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 520px) { .cf-sides { grid-template-columns: minmax(0, 1fr); } }
.cf-side { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px 12px; margin: 0; display: grid; gap: 8px; min-width: 0; }
.cf-side legend { font-size: 13px; font-weight: 600; padding: 0 4px; }
.cf-color { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.cf-color input { width: 36px; height: 32px; padding: 0; border: 1px solid var(--border); border-radius: 6px; background: var(--panel-2); cursor: pointer; }
.cf-many-sum { margin: 10px 0 6px; font-size: 15px; }
.cf-dots { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.cf-chart { width: 100%; height: auto; display: block; margin-top: 8px; }
.cf-chart .axis { stroke: #3a3d4a; stroke-width: 1; }
.cf-chart .obs { fill: var(--accent); opacity: .85; }
.cf-chart .exp { fill: none; stroke: var(--accent-2); stroke-width: 2.5; }
.cf-chart .tick { fill: var(--muted); font-size: 12px; font-family: system-ui, sans-serif; }
.cf-key { display: inline-block; width: 14px; height: 10px; border-radius: 2px; vertical-align: middle; }
.cf-key.obs { background: var(--accent); }
.cf-key.exp { background: var(--accent-2); height: 3px; }
.cf-fake { width: 100%; font-size: 16px; letter-spacing: .08em; }
.cf-fake-h { margin-top: 0; }
.cf-tap { min-width: 52px; font-size: 16px; }
.cf-verdict { font-size: 20px; font-weight: 800; margin: 6px 0; }
.cf-h4 { margin: 10px 0 4px; font-size: 14px; }
.cf-real { font-size: 13px; letter-spacing: .06em; overflow-wrap: anywhere; color: var(--muted); }
#manyErr:empty { display: none; }
