.flip-body.originals-body .flip-game-panel { position: relative; height: 630px; min-height: 0; padding: 0; overflow: hidden; background: #0f212e; border: 0; border-radius: 0; box-shadow: none; }
.flip-stage { position: relative; height: 100%; width: 100%; perspective: 1000px; }
.flip-body .side-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.flip-body .side-picker button { display: flex; justify-content: center; align-items: center; gap: 6px; min-height: 44px; padding: 6px; border: 0; background: #3c5464; color: #e8f1f7; }
.side-symbol { display: inline-block; width: 11px; height: 11px; flex: 0 0 11px; }
.side-symbol.heads { border-radius: 50%; background: #ffab00; }
.side-symbol.tails { transform: rotate(45deg); background: #a678f5; }
.flip-body .profit-card { display: grid; gap: 7px; font-size: 13px; color: #b1c3d1; font-weight: 650; }
.flip-body .profit-card > label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.flip-body .profit-card output { display: block; min-height: 42px; padding: 11px; border: 1px solid #3c5464; border-radius: 5px; color: #e8f1f7; background: #1a2c38; font-variant-numeric: tabular-nums; }
.flip-body #manualRandomPickBtn, .flip-body #randomPickBtn { background: #3c5464; color: #e8f1f7; box-shadow: none; border: 0; }
.flip-body #manualRandomPickBtn:disabled, .flip-body .side-picker button:disabled { opacity: .45; }
.coin { position: absolute; left: 50%; top: 139px; width: 252px; height: 252px; margin-left: -126px; transform-style: preserve-3d; }
.coin-face { position: absolute; inset: 0; display: none; }
.coin.heads .coin-heads, .coin.tails .coin-tails { display: block; }
.coin-face svg { display: block; width: 100%; height: 100%; overflow: visible; }
.coin.flipping { animation: flip-turn 800ms ease-in-out both; }
@keyframes flip-turn { 0% { transform: rotateY(0); } 25% { transform: rotateY(270deg); } 50% { transform: rotateY(540deg); } 75% { transform: rotateY(810deg); } 100% { transform: rotateY(1080deg); } }
.flip-history-wrap, .auto-plan-summary { position: absolute; bottom: 16px; left: 16px; right: 16px; padding: 16px; background: #213743; border-radius: 8px; }
.flip-history-wrap > .label { color: #b1c3d1; font-size: 13px; text-transform: none; letter-spacing: 0; margin-bottom: 5px; }
.flip-history { display: grid; grid-template-columns: repeat(20,minmax(0,1fr)); gap: 13px; align-items: center; padding: 10px; height: 46px; background: #071d29; border-radius: 5px; }
.flip-history .slot { display: grid; place-items: center; min-width: 0; aspect-ratio: 1; max-height: 24px; border-radius: 3px; background: #0c2430; }
.flip-history .slot.heads { background: #ffab00; border-radius: 50%; }
.flip-history .slot.tails { width: 76%; margin: auto; transform: rotate(45deg); background: #5365ff; border-radius: 2px; }
.flip-history .slot.miss { background: #a4bac8; opacity: .8; }
.flip-auto-mode .coin, .flip-auto-mode .flip-history-wrap { display: none; }
.auto-plan-board { position: absolute; top: 266px; left: 50%; transform: translate(-50%,-50%); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 32px 24px; width: min(var(--plan-width,456px), calc(100% - 48px)); }
.auto-coin-plan { position: relative; flex: 0 0 calc((100% - (var(--plan-cols,3) - 1)*24px)/var(--plan-cols,3)); aspect-ratio: 1; min-width: 0; padding: 0; border: 0; border-radius: 13px; background: #2f4553; cursor: pointer; }
.auto-coin-plan:disabled { cursor: default; }
.auto-coin-plan::before, .auto-coin-plan::after { content: ''; position: absolute; display: none; width: 70%; height: 70%; border: 3px solid var(--result-colour,#2f4553); border-radius: 13px; background: #213743; box-sizing: border-box; }
.auto-coin-plan::before { left: 0; top: 0; }
.auto-coin-plan::after { right: 0; bottom: 0; background: #2f4553; }
.auto-coin-badge { position: absolute; top: -24px; right: 4px; min-width: 37px; padding: 3px 8px; border-radius: 999px; background: #2f4553; color: #edf5f9; font-size: 12px; font-weight: 800; line-height: 1.2; }
.auto-coin-face { position: absolute; display: block; inset: 6%; z-index: 2; }
.auto-coin-face svg { display: block; width: 100%; height: 100%; }
.auto-coin-actual { display: none; }
.auto-coin-plan.revealed { background: transparent; }
.auto-coin-plan.revealed::before, .auto-coin-plan.revealed::after { display: block; }
.auto-coin-plan.revealed .auto-coin-predicted { inset: auto 4% 4% auto; width: 61%; height: 61%; }
.auto-coin-plan.revealed .auto-coin-actual { display: block; inset: 6% auto auto 6%; width: 30%; height: 30%; }
.auto-coin-plan.hit { --result-colour: #00f500; }
.auto-coin-plan.miss { --result-colour: #e80048; }
.auto-coin-plan.hit .auto-coin-badge { background: #00f500; color: #071d29; }
.auto-coin-plan.miss .auto-coin-badge { background: #e80048; color: #fff; }
.auto-coin-plan.after-miss { opacity: .32; }
.auto-coin-plan.revealing::before, .auto-coin-plan.revealing::after, .auto-coin-plan.revealing .auto-coin-face { animation: flip-pair-reveal 300ms ease-out both; }
@keyframes flip-pair-reveal { from { opacity: .3; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }
.auto-plan-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.auto-plan-summary .label { color: #b1c3d1; font-size: 13px; text-transform: none; letter-spacing: 0; }
.auto-plan-summary > div > strong { display: block; margin-top: 7px; min-height: 42px; padding: 11px; border: 1px solid #425c6c; border-radius: 5px; color: #e8f1f7; font-size: 14px; background: #1a2c38; }
.flip-win { position: absolute; z-index: 6; top: 244px; left: 50%; transform: translateX(-50%); width: max-content; min-width: 150px; max-width: calc(100% - 32px); min-height: 132px; display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 22px; padding: 15px 16px; border: 6px solid #00ee00; border-radius: 16px; background: #1a2c38; color: #00f500; text-align: center; }
.flip-win strong { font-size: 23px; font-weight: 800; line-height: 1; }
.flip-win strong::after { content: ''; display: block; width: 62px; height: 3px; margin: 16px auto -5px; background: #405662; }
.flip-win span { max-width: 100%; font-size: 14px; font-weight: 750; overflow-wrap: anywhere; }
.flip-win.animate-result { animation: flip-result-in 150ms ease-out both; }
@keyframes flip-result-in { from { opacity: 0; transform: translateX(-50%) scale(.85); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
.flip-body .text-button { padding: 9px 7px; background: #2f4553; color: #c4d6e3; border-radius: 4px; font-size: 11px; }
@media (min-width: 761px) and (max-width: 1000px) { .flip-history { gap: 5px; } .auto-plan-board { gap: 28px 16px; } .auto-coin-plan { flex-basis: calc((100% - (var(--plan-cols,3) - 1)*16px)/var(--plan-cols,3)); } }
@media (max-width: 760px) {
  .flip-body.originals-body .flip-game-panel { height: 450px; }
  .coin { width: 200px; height: 200px; top: 75px; margin-left: -100px; }
  .flip-history-wrap, .auto-plan-summary { bottom: 12px; left: 8px; right: 8px; padding: 10px; }
  .flip-history { gap: 5px; padding: 8px; height: 36px; }
  .flip-history .slot { max-height: 15px; }
  .flip-history-wrap > .label, .auto-plan-summary .label { font-size: 11px; }
  .auto-plan-board { top: 177px; gap: 26px 12px; width: min(var(--plan-mobile-width,432px),calc(100% - 32px)); }
  .auto-coin-plan { flex-basis: calc((100% - (var(--plan-cols,3) - 1)*12px)/var(--plan-cols,3)); border-radius: 8px; }
  .auto-coin-plan::before, .auto-coin-plan::after { border-radius: 8px; border-width: 2px; }
  .auto-coin-badge { top: -18px; right: 2px; min-width: 24px; padding: 2px 5px; font-size: 10px; }
  .auto-plan-summary > div > strong { font-size: 12px; padding: 10px 6px; }
  .flip-win { top: 175px; min-width: 120px; min-height: 106px; border-width: 4px; border-radius: 12px; gap: 14px; }
  .flip-win strong { font-size: 20px; }
  .flip-win span { font-size: 11px; }
}
@media (max-width: 360px) { .flip-history { gap: 3px; padding: 6px; } }
@media (prefers-reduced-motion: reduce) { .coin.flipping, .flip-win.animate-result, .auto-plan-board.revealing * { animation: none; } }
