/* Prøverommet – videopoker (vp-). Bruker tokens fra pr.css. */
.vp { font-family: var(--f-body); color: var(--ink); background: var(--curtain); border-radius: var(--r); padding: 14px; display: grid; gap: 12px; box-sizing: border-box; max-width: 100%; }
.vp *, .vp *::before, .vp *::after { box-sizing: border-box; }
.vp button { font: inherit; cursor: pointer; }
.vp button:focus-visible, .vp-switch-in:focus-visible + .vp-switch-ui { outline: 2px solid var(--olive); outline-offset: 2px; box-shadow: 0 0 0 4px var(--surface); }
.vp [hidden] { display: none !important; }

.vp-paywrap { background: var(--surface); border-radius: 8px; padding: 6px; overflow-x: auto; }
.vp-pay { width: 100%; border-collapse: collapse; font: 13px var(--f-tag); font-variant-numeric: tabular-nums; }
.vp-cap { caption-side: bottom; text-align: left; color: var(--muted); font: 12px var(--f-body); padding: 6px 4px 0; }
.vp-pay th, .vp-pay td { padding: 4px 6px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.vp-pay th[scope="row"], .vp-pay thead th:first-child { text-align: left; font-family: var(--f-body); font-weight: 600; white-space: normal; }
.vp-pay thead th { font-size: 12px; color: var(--muted); }
.vp-pay .vp-col { background: var(--kraft-soft); }
.vp-pay tr.vp-now th, .vp-pay tr.vp-now td { background: var(--olive-soft); }
.vp-pay tr.vp-hit th, .vp-pay tr.vp-hit td { background: var(--olive); color: var(--surface); }

.vp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: var(--surface); }
.vp-stat { display: flex; gap: 6px; align-items: baseline; }
.vp-k { font: 12px var(--f-tag); text-transform: uppercase; letter-spacing: .04em; color: var(--kraft-soft); }
.vp-num { font: 700 18px var(--f-tag); }
.vp-u { font-size: 13px; color: var(--kraft-soft); }
.vp-switch { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-weight: 600; position: relative; }
.vp-switch-in { position: absolute; opacity: 0; width: 44px; height: 24px; margin: 0; }
.vp-switch-ui { width: 44px; height: 24px; border-radius: 12px; background: var(--muted); position: relative; flex: none; transition: background .15s; }
.vp-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); transition: transform .15s; }
.vp-switch-in:checked + .vp-switch-ui { background: var(--olive); }
.vp-switch-in:checked + .vp-switch-ui::after { transform: translateX(20px); }

.vp-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; max-width: 520px; width: 100%; margin: 0 auto; }
.vp-card { position: relative; aspect-ratio: 5 / 7; min-height: 44px; border: 2px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); padding: 0; display: block; transition: transform .15s; }
.vp-card.vp-red { color: var(--red); }
.vp-card.vp-back { background: repeating-linear-gradient(45deg, var(--curtain) 0 6px, var(--kraft) 6px 8px); border-color: var(--surface); }
.vp-card:disabled { cursor: default; }
.vp-face { position: absolute; inset: 0; }
.vp-cr { position: absolute; left: 8%; top: 5%; font: 700 clamp(14px, 4.4vw, 24px) var(--f-tag); }
.vp-cs { position: absolute; left: 9%; top: calc(5% + 1.3em); font-size: clamp(12px, 3.6vw, 18px); }
.vp-cc { position: absolute; right: 8%; bottom: 6%; font-size: clamp(22px, 8vw, 46px); line-height: 1; }
.vp-holdtag { position: absolute; left: 0; right: 0; top: -2px; transform: translateY(-100%); text-align: center; font: 700 11px var(--f-tag); color: var(--kraft); letter-spacing: .08em; min-height: 14px; }
.vp-cards { padding-top: 16px; }
.vp-card.vp-held { border-color: var(--kraft); box-shadow: 0 0 0 3px var(--kraft); transform: translateY(-4px); }
.vp-card.vp-tip:not(.vp-held) { border-style: dashed; border-color: var(--olive); box-shadow: 0 0 0 2px var(--olive-soft); }
.vp-card.vp-new { animation: vp-in .22s ease-out; }
.vp-hand { margin: 0; text-align: center; color: var(--surface); font: 600 18px var(--f-display); min-height: 1.4em; }
.vp-hintrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.vp-hint { margin: 0; background: var(--kraft-soft); color: var(--ink); padding: 8px 10px; border-radius: 4px; font-weight: 600; font-size: 14px; }

.vp-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.vp-coins { display: flex; gap: 6px; align-items: center; }
.vp-coin { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--kraft); background: transparent; color: var(--surface); font: 700 16px var(--f-tag); padding: 0; }
.vp-coin[aria-pressed="true"] { background: var(--kraft); color: var(--ink); }
.vp-coin:disabled:not([aria-pressed="true"]) { opacity: .4; }
.vp-actions { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 260px; justify-content: flex-end; }
.vp-btn { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--surface); font-weight: 700; }
.vp-main { background: var(--kraft); border-color: var(--kraft); color: var(--ink); flex: 1 1 120px; max-width: 220px; }
.vp-ghost { background: transparent; color: var(--surface); }
.vp-btn:disabled { opacity: .4; cursor: default; }
.vp-msg { margin: 0; color: var(--surface); min-height: 1.4em; }
.vp-rtp { margin: 0; padding: 8px 12px; background: var(--kraft-soft); border-radius: 6px; font: 600 13px var(--f-tag); }
.vp-note { margin: 0; color: var(--kraft-soft); font-size: 13px; }

@media (min-width: 760px) { .vp { padding: 20px; } .vp-pay { font-size: 14px; } }
@keyframes vp-in { from { transform: rotateY(90deg); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .vp-card { transition: none; } .vp-card.vp-new { animation: none; } .vp-card.vp-held { transform: none; } }
