* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0e1f3a; color: #e7eefc; min-height: 100vh; display: flex; flex-direction: column; align-items: center; }
.vp-header { width: 100%; max-width: 560px; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.vp-header h1 { margin: 0; font-size: 1.5rem; font-weight: 800; }
.vp-header h1 span { font-size: 0.55rem; color: #7e93bd; font-weight: 600; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.vp-main { width: 100%; max-width: 560px; padding: 6px 14px 26px; }

.paytable { background: #122a4d; border: 1px solid #2a467a; border-radius: 10px; padding: 8px 12px; margin-bottom: 14px; }
.pt-row { display: flex; justify-content: space-between; font-size: 0.86rem; padding: 2px 0; color: #c2d3f0; font-variant-numeric: tabular-nums; }
.pt-row.hit { color: #ffd24a; font-weight: 800; }
.pt-row span:last-child { color: #6fe39a; font-weight: 700; }
.pt-row.hit span:last-child { color: #ffd24a; }

.winline { text-align: center; min-height: 24px; font-weight: 800; font-size: 1.05rem; margin-bottom: 8px; color: #9fb3d6; }
.winline.win { color: #ffd24a; }

.cardrow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 18px; }
.vp-slot { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.vp-card { width: 100%; aspect-ratio: 5/7; background: #fff; color: #222; border-radius: 8px; position: relative; cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4); user-select: none; font-weight: 700; }
.vp-card.red { color: #d4213d; }
.vp-card.back { background: repeating-linear-gradient(45deg,#2b6cb0,#2b6cb0 6px,#2c5282 6px,#2c5282 12px); border: 2px solid #fff; }
.vp-card.held { outline: 3px solid #ffd24a; outline-offset: -2px; }
.vp-card .tl, .vp-card .br { position: absolute; font-size: clamp(0.8rem,3.4vw,1.05rem); line-height: 1; }
.vp-card .tl { top: 5px; left: 6px; } .vp-card .br { bottom: 5px; right: 6px; transform: rotate(180deg); }
.vp-card .mid { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: clamp(1.4rem,7vw,2.2rem); }
.hold-tag { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; color: #7e93bd; height: 16px; cursor: pointer; }
.hold-tag.on { color: #ffd24a; }

.vp-controls { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.credit-box { font-size: 1.1rem; } .credit-box strong { color: #6fe39a; font-variant-numeric: tabular-nums; }
.bet-box { display: flex; align-items: center; gap: 10px; } .bet-box strong { color: #ffd24a; }
.ctrl { background: #1c3a66; color: #e7eefc; border: 1px solid #2a467a; border-radius: 8px; padding: 8px 12px; font-weight: 700; cursor: pointer; font-family: inherit; }
.ctrl.small { font-size: 0.72rem; padding: 5px 9px; }
.action-btn { background: linear-gradient(180deg,#ffd24a,#f0b000); color: #2a1f00; border: none; border-radius: 10px; padding: 14px 48px; font-size: 1.2rem; font-weight: 800; cursor: pointer; }
.action-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.version-info { position: fixed; bottom: 6px; right: 8px; font-size: 0.65rem; color: rgba(255,255,255,0.35); }
