/* The Slot Tailor preview — a drop-in component.
 *
 * Everything here is scoped to .pv-root and the .pv-* classes that preview.js builds, so
 * this sheet cannot reach anything the host owns and the host cannot reach into it. Pair
 * it with preview.js and one element:
 *
 *     <link rel="stylesheet" href="preview.css">
 *     <script src="preview.js"></script>
 *     SlotPreview.mount(document.getElementById("pv"));
 *     SlotPreview.update(selectedCodes, fieldValues);
 *
 * The host's palette is used when it defines one and a sane default is used when it does
 * not: every colour below is an alias, resolved once, here. The screen itself stays dark
 * in both themes, because it is a cabinet rather than a panel -- and because one set of
 * symbol colours means the contrast is decided once instead of twice.
 */

.pv-root {
  --pv-accent: var(--accent, #0d6f6c);
  --pv-accent-soft: var(--accent-soft, #e0efee);
  --pv-ink: var(--ink, #101720);
  --pv-ink2: var(--ink-2, #3b4652);
  --pv-muted: var(--muted, #6c7783);
  --pv-rule: var(--rule, #dfe4e8);
  --pv-rule2: var(--rule-strong, #c2cad2);
  --pv-surface: var(--surface, #ffffff);
  --pv-surface2: var(--surface-2, #eef1f3);
  --pv-lift: var(--lift, 0 2px 8px rgba(0, 0, 0, .28), 0 22px 44px -26px rgba(0, 0, 0, .5));
  --pv-mono: var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  --pv-sans: var(--sans, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  --pv-radius: var(--r, 12px);
  display: flex; flex-direction: column; gap: 10px; min-height: 0;
}

.pv-bar {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 0 2px;
}
.pv-title { font-size: 14.5px; font-weight: 650; letter-spacing: -.005em; }
.pv-titlewrap { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.pv-chap {
  flex: none; padding: 3px 7px; border-radius: 999px; white-space: nowrap;
  font: 600 10.5px/1 var(--pv-mono); color: var(--pv-accent);
  border: 1px solid color-mix(in srgb, var(--pv-accent) 45%, transparent);
}
.pv-chap[hidden] { display: none; }
.pv-ctx {
  font-family: var(--pv-mono); font-size: 10.5px; color: var(--pv-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------------------------------------------------------------- the cabinet */

.pv-screen {
  --cab: #12161d;
  --pv-cell-bg: #1b2029;
  --pv-red: #e2574c; --pv-amber: #e8a33d; --pv-rose: #e0608b; --pv-slate: #93a6ba;
  --pv-green: #4fb477; --pv-cyan: #45b8d0; --pv-gold: #e8c65a; --pv-violet: #9b7ae0;
  position: relative;
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(255, 255, 255, .06), transparent 60%),
    linear-gradient(180deg, #161c25, #0e1217);
  border: 1px solid #262e3a;
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--pv-lift), inset 0 1px 0 rgba(255, 255, 255, .06);
  display: grid; grid-template-rows: 26px calc(var(--pv-fit, 238px) + 6px); gap: 8px;
  overflow: hidden;
  transition: max-width .4s cubic-bezier(.2, .8, .3, 1), margin .4s;
  max-width: 100%; margin: 0 auto; width: 100%;
}
.pv-screen.as-phone { max-width: 208px; }

.pv-top {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 26px; color: #cfd8e3; overflow: hidden;
}

/* The board keeps square cells AND stays inside the cabinet: the width is whichever is
   smaller of the room available and the width that ratio implies at full height. Pinning
   the height instead let a wide board run out past the frame, which the cabinet's
   overflow then quietly cropped -- a missing last reel that no assertion would catch. */
.pv-stage {
  position: relative;
  /* how big the cabinet is, in the taller of its two directions. Declared with a
     fallback rather than a value so a host can size the component from .pv-root -- the
     classic front end takes the default, the fitting room asks for more. */
  width: min(100%, calc(var(--pv-fit, 238px) * var(--pv-c, 5) / var(--pv-r, 3)));
  aspect-ratio: calc(var(--pv-c, 5) / var(--pv-r, 3));
  align-self: center; justify-self: center;
}
/* the fixtures that sit inside the cabinet scale with it, or a bigger board leaves a
   wheel and a ball field marooned in the middle of it */
.pv-root { --pv-scale: calc(var(--pv-fit, 238px) / 238); }
.pv-wheel { width: calc(140px * var(--pv-scale)); height: calc(140px * var(--pv-scale)); }
.pv-drop { width: calc(172px * var(--pv-scale)); height: calc(134px * var(--pv-scale)); }

.pv-board, .pv-lines, .pv-fx { position: absolute; inset: 0; }
.pv-board {
  --pv-gap: 4px;
  display: grid;
  grid-template-columns: repeat(var(--pv-c, 5), 1fr);
  grid-template-rows: repeat(var(--pv-r, 3), 1fr);
  gap: var(--pv-gap);
}
.pv-board.pv-dense { --gap: 3px; }
.pv-board.pv-split { column-gap: 3px; }
.pv-board.pv-split .pv-cell:nth-child(10n + 6) { margin-left: 10px; }
.pv-lines { pointer-events: none; overflow: visible; }
.pv-fx { pointer-events: none; display: grid; place-items: center; }

.pv-cell {
  position: relative; overflow: hidden;
  background: var(--pv-cell-bg);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
  transition: box-shadow .18s, opacity .18s, transform .18s, background .18s;
}
.pv-reel {
  position: absolute; left: 0; right: 0; top: -200%; height: 300%;
  display: grid; grid-template-rows: repeat(3, 1fr);
}
.pv-sym { display: grid; place-items: center; padding: 8%; }
.pv-g { width: 100%; height: 100%; display: block; }
.pv-g .fill { fill: currentColor; }
.pv-g .line { fill: none; stroke: currentColor; stroke-width: 7; stroke-linecap: round; }
.pv-g .facet { fill: none; stroke: rgba(0, 0, 0, .3); stroke-width: 3; }
.pv-g .badge {
  fill: #11151b; font: 700 46px/1 var(--pv-sans); text-anchor: middle;
  dominant-baseline: central;
}
.pv-h-red { color: var(--pv-red); } .pv-h-amber { color: var(--pv-amber); }
.pv-h-rose { color: var(--pv-rose); } .pv-h-slate { color: var(--pv-slate); }
.pv-h-green { color: var(--pv-green); } .pv-h-cyan { color: var(--pv-cyan); }
.pv-h-gold { color: var(--pv-gold); } .pv-h-violet { color: var(--pv-violet); }

@keyframes pv-roll { from { transform: translateY(0); } to { transform: translateY(200%); } }
@keyframes pv-land {
  0% { transform: translateY(100%); }
  74% { transform: translateY(-7%); }
  100% { transform: translateY(0); }
}
.pv-reel.rolling { animation: pv-roll .19s linear infinite; filter: blur(.7px); }
.pv-reel.landing { animation: pv-land .34s cubic-bezier(.22, .78, .3, 1) both; animation-delay: var(--pv-d, 0ms); }

/* --- what has just happened to a position ------------------------------- */

.pv-cell.dim { opacity: .28; }
.pv-cell.win {
  background: #23313a;
  box-shadow: inset 0 0 0 2px var(--pv-gold), 0 0 16px -4px var(--pv-gold);
  animation: pv-pop .5s ease-out;
}
@keyframes pv-pop { 40% { transform: scale(1.08); } }
.pv-cell.held { box-shadow: inset 0 0 0 2px var(--pv-violet); background: #241f38; }
.pv-cell.linked { box-shadow: inset 0 0 0 2px var(--pv-cyan); background: #16303a; }
.pv-cell.split { box-shadow: inset 0 0 0 2px var(--pv-rose); }
.pv-cell.mystery .pv-reel { filter: grayscale(1) brightness(.35); }
.pv-cell.mystery::after {
  content: "?"; position: absolute; inset: 0; display: grid; place-items: center;
  font: 700 20px/1 var(--pv-sans); color: #8894a1;
}
.pv-cell.expect { animation: pv-expect .55s ease-in-out infinite alternate; }
@keyframes pv-expect { to { background: #2b2a1c; box-shadow: inset 0 0 0 2px var(--pv-gold); } }
.pv-cell.burst { animation: pv-burst .34s ease-in forwards; }
@keyframes pv-burst { to { transform: scale(.4); opacity: 0; } }
.pv-cell.under { opacity: 0; }
.pv-cell.giant, .pv-cell.giantlite { z-index: 3; }
/* A giant symbol covers a block of cells: its strip stops being a strip and becomes one
   picture the size of the block. The two rows above the payline have to be taken out of
   the flow, or they push the visible symbol down out of its own block. */
.pv-cell.giant .pv-reel {
  top: 0; left: 0; right: auto;
  height: calc(100% * var(--pv-sy, 2) + var(--pv-gap) * (var(--pv-sy, 2) - 1));
  width: calc(100% * var(--pv-sx, 2) + var(--pv-gap) * (var(--pv-sx, 2) - 1));
  display: block; animation: none;
}
.pv-cell.giant .pv-sym { display: none; }
.pv-cell.giant .pv-sym:last-child {
  display: grid; position: absolute; inset: 0; padding: 6%;
}
/* the frame belongs to the BLOCK, not to the one cell the block is anchored on --
   outlining the anchor made a nine-position symbol look like an empty box beside a
   picture that had wandered off it */
.pv-cell.giant .pv-reel {
  background: #23313a; border-radius: 6px;
  box-shadow: inset 0 0 0 2px var(--pv-gold), 0 0 18px -4px var(--pv-gold);
}
.pv-cell.giant { overflow: visible; background: transparent; box-shadow: none; }
.pv-cell.giantlite { box-shadow: inset 0 0 0 2px var(--pv-cyan); background: #16303a; }
.pv-board.pv-lit .pv-cell { animation: pv-lit 1.1s ease-in-out infinite alternate; }
@keyframes pv-lit { to { box-shadow: inset 0 0 0 2px var(--pv-gold), 0 0 22px -2px var(--pv-gold); } }

.pv-line {
  fill: none; stroke: var(--pv-gold); stroke-width: 7;
  stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(232, 198, 90, .6));
  transition: stroke-dashoffset .6s ease-out;
}

.pv-tag {
  position: absolute; right: 2px; bottom: 2px; z-index: 4;
  font: 700 10px/1 var(--pv-mono); padding: 2px 4px; border-radius: 4px;
  background: #0d1116; color: #e8edf3; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18);
  animation: pv-tag .3s cubic-bezier(.2, 1.4, .4, 1) both;
}
@keyframes pv-tag { from { transform: scale(.4); opacity: 0; } }
.pv-tag.mult { background: var(--pv-violet); color: #14101f; }
.pv-tag.loose { right: auto; left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); font-size: 12px; }
.pv-tag.cash { background: var(--pv-gold); color: #17140a; }
.pv-tag.cash.big { left: 2px; right: 2px; text-align: center; font-size: 8px; }

/* --- the strip above the reels ----------------------------------------- */

.pv-meter { display: flex; align-items: baseline; gap: 8px; }
.pv-mk { font: 600 9.5px/1 var(--pv-mono); letter-spacing: .16em; color: #8894a1; }
.pv-mv { font: 700 15px/1 var(--pv-sans); color: var(--pv-gold); }

.pv-runs { display: flex; align-items: flex-end; gap: 2px; height: 24px; }
.pv-run {
  width: 6px; height: 4px; border-radius: 2px; background: #2a323d;
  animation: pv-tag .2s ease-out both;
}
.pv-run.pay { height: 12px; background: var(--pv-cyan); }
.pv-run.big { height: 24px; background: var(--pv-gold); }

.pv-progress { flex: 1; height: 7px; border-radius: 4px; background: #262e3a; overflow: hidden; max-width: 150px; }
.pv-progress i { display: block; height: 100%; width: 0; background: var(--pv-gold); transition: width .3s ease-out; }

.pv-rail { display: flex; gap: 4px; }
.pv-prize {
  font: 600 8.5px/1 var(--pv-mono); letter-spacing: .05em;
  padding: 5px 6px; border-radius: 5px; background: #222a34; color: #9aa6b4;
  transition: background .15s, color .15s, transform .15s;
}
.pv-prize.on { background: var(--pv-gold); color: #17140a; }
.pv-prize.won { transform: scale(1.14); }

.pv-bet { display: flex; gap: 4px; }
.pv-chip {
  font: 600 9.5px/1 var(--pv-mono); padding: 5px 7px; border-radius: 999px;
  background: #222a34; color: #9aa6b4;
}
.pv-chip.on { background: var(--pv-cyan); color: #06222a; }

.pv-eq { display: flex; align-items: flex-end; gap: 2px; height: 22px; }
.pv-eq i {
  width: 4px; border-radius: 2px; background: linear-gradient(180deg, var(--pv-cyan), var(--pv-violet));
  height: 30%;
  animation: pv-eq .9s ease-in-out infinite alternate;
  animation-delay: calc(var(--pv-i) * -70ms);
}
@keyframes pv-eq { to { height: 100%; } }

/* --- overlays ----------------------------------------------------------- */

.pv-banner {
  position: relative; z-index: 6; text-align: center;
  background: #0d1116ee; border: 1px solid #39424e; border-radius: 12px;
  padding: 12px 20px; box-shadow: 0 18px 40px -18px #000;
  animation: pv-in .34s cubic-bezier(.2, 1.3, .4, 1) both;
  max-width: 90%;
}
@keyframes pv-in { from { transform: scale(.82); opacity: 0; } }
.pv-banner b { display: block; font: 700 17px/1.2 var(--pv-sans); color: #fff; letter-spacing: -.01em; }
.pv-banner span { display: block; font: 500 11.5px/1.4 var(--pv-mono); color: #9aa6b4; margin-top: 4px; }
.pv-banner.gate { border-color: var(--pv-violet); }
.pv-banner.big { border-color: var(--pv-gold); }
.pv-banner.big b { color: var(--pv-gold); font-size: 22px; }
.pv-pickd { width: 42px; height: 42px; margin: 8px auto 0; display: block; }

.pv-fly {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); z-index: 7;
  font: 800 26px/1 var(--pv-sans); color: #fff; text-shadow: 0 4px 18px #000;
  animation: pv-fly 1.4s cubic-bezier(.2, .8, .3, 1) both;
}
.pv-fly.good { color: var(--pv-cyan); }
.pv-fly.big { color: var(--pv-gold); font-size: 34px; }
@keyframes pv-fly {
  0% { transform: translate(-50%, -20%) scale(.5); opacity: 0; }
  22% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
  74% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -90%) scale(.9); opacity: 0; }
}

.pv-scene {
  position: absolute; inset: 0; z-index: 5; overflow: hidden;
  background: #090c11f7;
  backdrop-filter: blur(3px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 10px;
  animation: pv-fade .28s ease-out both;
}
@keyframes pv-fade { from { opacity: 0; } }
.pv-scene-h {
  margin: 0; font: 600 9.5px/1 var(--pv-mono); letter-spacing: .2em;
  text-transform: uppercase; color: #8894a1;
}
.pv-own {
  margin: 0; max-width: 30ch; text-align: center;
  font: 400 12.5px/1.6 var(--pv-sans); color: #c3ccd7;
  border: 1px dashed #4a5563; border-radius: 10px; padding: 12px 14px;
}

/* --- the wheel ---------------------------------------------------------- */

.pv-wheel { position: relative; width: 140px; height: 140px; }
.pv-wheel-svg { width: 100%; height: 100%; display: block; }
.pv-wheel-face {
  transform-origin: 50% 50%;
  transition: transform 2.6s cubic-bezier(.13, .68, .12, 1);
}
.seg { stroke: #0b0e13; stroke-width: 1.2; }
.seg.s0 { fill: #3f5a68; } .seg.s1 { fill: #56707f; }
.seg.s2 { fill: #2f6f78; } .seg.s3 { fill: #6a5486; }
.pv-wheel-svg { filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .6)); }
.pv-wheel-rim { fill: none; stroke: var(--pv-gold); stroke-width: 2.5; opacity: .85; }
.pv-wheel-hub { fill: #0b0e13; stroke: var(--pv-gold); stroke-width: 1.5; }
.pv-wheel-t {
  fill: #f2f6fa; font: 700 6.6px/1 var(--pv-mono); text-anchor: middle;
  letter-spacing: -.2px;
  dominant-baseline: central;
  paint-order: stroke; stroke: rgba(0, 0, 0, .55); stroke-width: 1.6;
}
.pv-needle {
  position: absolute; left: 50%; top: -3px; transform: translateX(-50%);
  border-left: 7px solid transparent; border-right: 7px solid transparent;
  border-top: 13px solid var(--pv-gold);
}

/* --- picks, trails, ladders, drops -------------------------------------- */

.pv-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 92%; }
.pv-box {
  all: unset; position: relative; width: 50px; height: 40px; border-radius: 8px;
  background: #222b36; box-shadow: inset 0 0 0 1px #39424e;
  display: grid; place-items: center;
  transition: background .2s, box-shadow .2s;
}
.pv-box span { grid-area: 1 / 1; font: 700 11px/1 var(--pv-mono); }
.pv-box-f { color: #6c7783; }
.pv-box-b { color: #17140a; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s; }
.pv-box.open { background: var(--pv-gold); box-shadow: inset 0 0 0 1px var(--pv-gold); }
.pv-box.open .pv-box-f { opacity: 0; }
.pv-box.open .pv-box-b { opacity: 1; transform: scale(1); }

.pv-trail { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; max-width: 94%; }
.pv-step {
  font: 700 9.5px/1 var(--pv-mono); padding: 7px 7px; border-radius: 6px;
  background: #222b36; color: #7c8794;
  transition: background .2s, color .2s, transform .2s;
}
.pv-step.on { background: var(--pv-cyan); color: #06222a; transform: translateY(-2px); }
.pv-step.stop { background: var(--pv-red); color: #fff; }

.pv-ladder { display: flex; flex-direction: column; gap: 3px; align-items: center; }
.pv-rung {
  font: 700 10px/1 var(--pv-mono); padding: 5px 16px; border-radius: 5px;
  background: #222b36; color: #7c8794; transition: background .18s, color .18s, transform .18s;
}
.pv-rung.lit { background: #2a4a52; color: #cfe9ef; }
.pv-rung.on { background: var(--pv-cyan); color: #06222a; transform: scale(1.08); }
.pv-rung.won { background: var(--pv-gold); color: #17140a; transform: scale(1.14); }

/* the Plinko field: pegs placed by the demo, slots along the bottom. Sized in base
   pixels and scaled with the cabinet, so a bigger board gets a bigger field. */
/* Fixed 212x162, NOT scaled with the cabinet: the pegs are placed by the demo in these
   same pixels, so scaling the box without scaling the coordinates put the pegs on one
   axis and the slots on another. The cabinet is 306px tall now, so the field fits as it
   is and does not need to grow. */
.pv-drop { position: relative; width: 212px; height: 162px; }
.pv-drop > * { position: absolute; }
.pv-peg {
  width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px;
  border-radius: 50%; background: #5c6773;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5);
}
.pv-slots {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  display: flex; gap: 2px;
}
.pv-slot {
  width: 22px; text-align: center; font: 700 8px/1 var(--pv-mono);
  padding: 5px 0; border-radius: 4px; background: #222b36; color: #7c8794;
  transition: background .16s, color .16s, transform .16s;
}
/* the edges pay the most and are reached the least -- say so with the colour */
.pv-slot:first-child, .pv-slot:last-child { background: #3a2f22; color: var(--pv-gold); }
.pv-slot.on { background: var(--pv-gold); color: #17140a; transform: translateY(-2px); }
.pv-ball {
  width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px;
  border-radius: 50%; background: var(--pv-rose);
  box-shadow: 0 0 8px -1px var(--pv-rose);
  transition: transform .115s cubic-bezier(.45, 0, .75, 1);
  z-index: 2;
}

.pv-shots { display: flex; gap: 6px; }
.pv-shot {
  width: 44px; text-align: center; font: 700 10px/1 var(--pv-mono);
  padding: 9px 0; border-radius: 7px; background: #222b36; color: #7c8794;
  transition: background .2s, color .2s;
}
.pv-shot.hit { background: var(--pv-green); color: #062617; }
.pv-shot.miss { background: #2a2023; color: #a9707a; }

.pv-shapes { display: flex; gap: 6px; }
.pv-shape {
  text-align: center; padding: 10px 9px; border-radius: 9px;
  background: #222b36; box-shadow: inset 0 0 0 1px #39424e;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.pv-shape b { display: block; font: 700 11px/1.2 var(--pv-mono); color: #e8edf3; }
.pv-shape span { display: block; font: 500 9.5px/1.3 var(--pv-mono); color: #8894a1; margin-top: 3px; }
.pv-shape.on { background: var(--pv-cyan); transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--pv-cyan); }
.pv-shape.on b, .pv-shape.on span { color: #06222a; }

.pv-buy {
  text-align: center; padding: 12px 22px; border-radius: 11px;
  background: linear-gradient(160deg, var(--pv-gold), #c9a13c);
  box-shadow: 0 12px 26px -12px var(--pv-gold);
  transition: transform .14s;
}
.pv-buy b { display: block; font: 800 15px/1 var(--pv-sans); color: #17140a; letter-spacing: .02em; }
.pv-buy span { display: block; font: 600 10px/1 var(--pv-mono); color: #4a3d12; margin-top: 5px; }
.pv-buy.press { transform: scale(.94); }

.pv-card {
  width: 74px; height: 96px; border-radius: 9px; background: #e8edf3;
  display: grid; place-items: center; box-shadow: 0 14px 28px -14px #000;
  transition: transform .5s;
}
.pv-card b { font: 800 19px/1 var(--pv-sans); color: #17140a; }
.pv-card.flip { transform: rotateY(90deg); }
.pv-card.lost { background: #4a3034; }
.pv-card.lost b { color: #e38279; }
.pv-gamble { display: flex; gap: 6px; }
.pv-gb { font: 700 9.5px/1 var(--pv-mono); padding: 6px 14px; border-radius: 6px; }
.pv-gb.red { background: #4a2a2a; color: #e38279; }
.pv-gb.black { background: #232a33; color: #c3ccd7; }

.pv-markets { display: grid; gap: 5px; width: 90%; }
.pv-market {
  display: grid; gap: 1px; padding: 7px 10px; border-radius: 7px;
  background: #1a212a; opacity: .4; transition: opacity .3s, background .3s;
}
.pv-market.on { opacity: 1; background: #222b36; }
.pv-market b { font: 700 10.5px/1.2 var(--pv-mono); color: var(--pv-cyan); }
.pv-market span { font: 400 10.5px/1.4 var(--pv-sans); color: #a9b4c0; }

/* --- art directions ------------------------------------------------------
 *
 * A treatment of the SAME flat symbols, not a different set of pictures -- the window
 * cannot draw fourteen styles and does not pretend to. What a filter can carry is the
 * weight of the line, the contrast, whether edges are hard or soft, and whether anything
 * glows, which is most of what separates these on a shelf.
 */

.pv-screen.skin-cartoon .pv-g .fill { stroke: #10141a; stroke-width: 6; paint-order: stroke; }

.pv-screen.skin-hose { background: linear-gradient(180deg, #1b1a17, #0d0c0a); }
.pv-screen.skin-hose .pv-cell { background: #24221d; }
.pv-screen.skin-hose .pv-g { filter: saturate(.55) contrast(1.2); }
.pv-screen.skin-hose .pv-g .fill { stroke: #000; stroke-width: 8; paint-order: stroke; }

.pv-screen.skin-comic .pv-g .fill { stroke: #05070a; stroke-width: 7; paint-order: stroke; }
.pv-screen.skin-comic .pv-g { filter: saturate(1.5) contrast(1.35); }
.pv-screen.skin-comic .pv-cell {
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 4px 4px;
}

.pv-screen.skin-anime .pv-g { filter: saturate(1.35) brightness(1.08); }
.pv-screen.skin-anime .pv-g .fill { stroke: #141821; stroke-width: 4; paint-order: stroke; }

/* no anti-aliasing and a coarse grid: the one style the browser can really produce */
.pv-screen.skin-pixel .pv-g { image-rendering: pixelated; filter: saturate(1.2) contrast(1.15); }
.pv-screen.skin-pixel .pv-sym { padding: 14%; }
.pv-screen.skin-pixel .pv-cell { border-radius: 0; }
.pv-screen.skin-pixel .pv-board { --pv-gap: 5px; }

.pv-screen.skin-painted { background: linear-gradient(180deg, #232028, #14161b); }
.pv-screen.skin-painted .pv-g { filter: saturate(.85) blur(.25px) drop-shadow(0 2px 3px rgba(0, 0, 0, .55)); }

.pv-screen.skin-water { background: linear-gradient(180deg, #23262a, #191b1e); }
.pv-screen.skin-water .pv-cell { background: #2b2f33; }
.pv-screen.skin-water .pv-g { filter: saturate(.7) blur(.8px) opacity(.9); }

.pv-screen.skin-woodcut { background: linear-gradient(180deg, #211f1a, #14120f); }
.pv-screen.skin-woodcut .pv-cell { background: #2a2721; }
.pv-screen.skin-woodcut .pv-g { filter: grayscale(.85) contrast(1.9); }
.pv-screen.skin-woodcut .pv-g .fill { stroke: #0b0a08; stroke-width: 5; paint-order: stroke; }

.pv-screen.skin-paper { background: linear-gradient(180deg, #23211c, #17150f); }
.pv-screen.skin-paper .pv-cell { background: #2a271f; }
.pv-screen.skin-paper .pv-g { filter: saturate(.55) contrast(1.15); }

.pv-screen.skin-deco { background: linear-gradient(180deg, #16181d, #0b0d10); }
.pv-screen.skin-deco .pv-cell { background: #1a1d23; box-shadow: inset 0 0 0 1px rgba(212, 175, 92, .45); }
.pv-screen.skin-deco .pv-g { filter: sepia(.45) saturate(1.3) contrast(1.1); }

.pv-screen.skin-neon { background: linear-gradient(180deg, #0a0d14, #05070a); }
.pv-screen.skin-neon .pv-cell { background: #0d1119; }
.pv-screen.skin-neon .pv-g { filter: drop-shadow(0 0 5px currentColor) drop-shadow(0 0 12px currentColor); }

.pv-screen.skin-lowpoly .pv-g { filter: saturate(1.1) contrast(1.25); }
.pv-screen.skin-lowpoly .pv-cell { background: linear-gradient(140deg, #232a33, #171c23); }

.pv-screen.skin-cgi { background: linear-gradient(180deg, #1a2029, #0a0d11); }
.pv-screen.skin-cgi .pv-cell { background: linear-gradient(170deg, #222933, #161b22); }
.pv-screen.skin-cgi .pv-g { filter: saturate(1.15) drop-shadow(0 4px 5px rgba(0, 0, 0, .8)); }

.pv-screen.skin-photo { background: linear-gradient(180deg, #1a2029, #0a0d11); }
.pv-screen.skin-photo .pv-cell { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 8px 14px -10px #000; }
.pv-screen.skin-photo .pv-g { filter: saturate(1.25) drop-shadow(0 3px 4px rgba(0, 0, 0, .7)); }

/* --- caption and tools ---------------------------------------------------- */

.pv-cap {
  margin: 0; min-height: 60px;
  font-size: 13.5px; line-height: 1.5; color: var(--pv-ink2);
  border-left: 2px solid var(--pv-accent); padding-left: 11px;
}
.pv-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.pv-btn {
  all: unset; cursor: pointer;
  padding: 7px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--pv-ink2);
  border: 1px solid var(--pv-rule2);
  transition: background .15s, color .15s;
}
.pv-btn:hover { background: var(--pv-surface2); color: var(--pv-ink); }
.pv-btn.pv-key { color: var(--pv-accent); border-color: color-mix(in srgb, var(--pv-accent) 45%, transparent); }
.pv-btn.pv-key:hover { background: var(--pv-accent-soft); }

@media (prefers-reduced-motion: reduce) {
  .pv-root *, .pv-root *::before, .pv-root *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .05s !important;
  }
  .pv-reel.rolling { animation: none; filter: none; }
  .pv-eq i { height: 65%; }
}
