/* Kantumruy Pro (SIL Open Font License, see /assets/fonts/OFL.txt). Variable, weights 300–700;
   heavier weights in the CSS use 700. Split by script so pages only load what they show. */
@font-face {
  font-family: 'Kantumruy Pro';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/kantumruy-pro-khmer.woff2') format('woff2');
  unicode-range: U+1780-17FF, U+19E0-19FF, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Kantumruy Pro';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/kantumruy-pro-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Kantumruy Pro';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/kantumruy-pro-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* PharmKulen Spin — shared design tokens & primitives.
   Palette sampled from the PharmKulen logo. */
:root {
  --blue: #19b2ff;
  --sky: #62dbff;
  --turquoise: #44e4bc;
  --green: #11bd9b;
  --teal: #058f9a;
  --teal-600: #06757e; /* AA on white for small text and buttons */
  --teal-700: #06636b;
  --teal-900: #053b40;

  --ink: #0b2e33;
  --ink-2: #3d5a5f;
  --ink-3: #5d777b;
  --line: #dbe9eb;
  --line-2: #c4dadd;
  --surface: #ffffff;
  --surface-2: #f4fafa;
  --surface-3: #e9f6f5;

  --danger: #b42318;
  --danger-bg: #fef3f2;
  --success: #067647;
  --success-bg: #ecfdf3;
  --warning: #93370d;
  --warning-bg: #fffaeb;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(5, 59, 64, 0.06), 0 1px 3px rgba(5, 59, 64, 0.08);
  --shadow: 0 4px 12px rgba(5, 59, 64, 0.08), 0 12px 32px rgba(5, 59, 64, 0.08);
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--blue);

  --brand-icon: url('/assets/pharmkulen-icon.png'); /* replaced by an uploaded icon (brand.js) */
  /* Kantumruy Pro: one typeface drawn for both Khmer and Latin, served from /assets/fonts (OFL). */
  --font: 'Kantumruy Pro', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Khmer', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  color-scheme: light;
}

/* ---------- Dark theme (opt-in via the moon button on the game and admin pages) ---------- */
html[data-theme='dark'] {
  color-scheme: dark;
  --ink: #e7f6f6;
  --ink-2: #b4d0d2;
  --ink-3: #8aaaad;
  --line: #1d454b;
  --line-2: #2a5a60;
  --surface: #0e2f34;
  --surface-2: #0a262a;
  --surface-3: #134046;
  --accent-text: #6fe6cb;
  --danger-bg: #3d1a17;
  --success-bg: #0f3a2b;
  --warning-bg: #3a2b0e;
}
html[data-theme='dark'] .btn-secondary {
  background: var(--surface-2);
  color: var(--ink);
}
html[data-theme='dark'] .btn-ghost {
  color: var(--accent-text);
}
html[data-theme='dark'] .btn-primary:hover:not(:disabled) {
  background: var(--teal);
}
html[data-theme='dark'] .input,
html[data-theme='dark'] .textarea,
html[data-theme='dark'] .select {
  background: var(--surface-2);
  color: var(--ink);
}
html[data-theme='dark'] .field-error {
  color: #fda29b;
}
html[data-theme='dark'] .pill-success { color: #6ce9a6; }
html[data-theme='dark'] .pill-warning { color: #fec84b; }
html[data-theme='dark'] .pill-danger { color: #fda29b; }
/* Moon / sun icons in a theme button: show the one for the theme you'd switch to. */
.icon-sun,
html[data-theme='dark'] .icon-moon {
  display: none;
}
html[data-theme='dark'] .icon-sun {
  display: block;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--teal-600);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--radius-sm);
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--teal-700);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:active:not(:disabled) {
  transform: translateY(1px);
}
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.btn-primary {
  background: var(--teal-600);
  color: #fff;
}
.btn-primary:hover:not(:disabled) {
  background: var(--teal-700);
}
.btn-secondary {
  background: #fff;
  color: var(--teal-700);
  border-color: var(--line-2);
}
.btn-secondary:hover:not(:disabled) {
  border-color: var(--teal);
  background: var(--surface-2);
}
.btn-ghost {
  background: transparent;
  color: var(--teal-700);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--surface-3);
}
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover:not(:disabled) {
  background: #912018;
}
.btn-sm {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 14px;
}
.btn-icon {
  width: 40px;
  min-height: 40px;
  padding: 0;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ---------- Form controls ---------- */
.field {
  display: grid;
  gap: 6px;
}
.field > label,
.label {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.hint {
  font-size: 13px;
  color: var(--ink-3);
}
.input,
.textarea,
.select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.45;
}
.input:hover,
.textarea:hover,
.select:hover {
  border-color: var(--ink-3);
}
.input:focus,
.textarea:focus,
.select:focus {
  /* a quiet 2px teal border instead of a glowing ring */
  outline: none;
  border-color: var(--teal);
  box-shadow: inset 0 0 0 1px var(--teal);
}
html[data-theme='dark'] .input:focus,
html[data-theme='dark'] .textarea:focus,
html[data-theme='dark'] .select:focus {
  border-color: var(--turquoise);
  box-shadow: inset 0 0 0 1px var(--turquoise);
}
.input[aria-invalid='true'],
.textarea[aria-invalid='true'] {
  border-color: var(--danger);
}
.field-error {
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
}

/* Switch built on a checkbox */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 700;
}
.switch input {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 48px;
  height: 28px;
  margin: 0;
  border-radius: 999px;
  background: var(--line-2);
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex: none;
}
.switch input::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}
.switch input:checked {
  background: var(--teal-600);
}
.switch input:checked::after {
  transform: translateX(20px);
}
.switch input:focus-visible {
  box-shadow: var(--focus);
}

/* ---------- Cards, pills ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--surface-3);
  color: var(--teal-700);
}
.pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.pill-success {
  background: var(--success-bg);
  color: var(--success);
}
.pill-warning {
  background: var(--warning-bg);
  color: var(--warning);
}
.pill-danger {
  background: var(--danger-bg);
  color: var(--danger);
}
.pill-plain::before {
  display: none;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Toasts ---------- */
.toast-region {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  width: min(92vw, 420px);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--teal-900);
  color: #fff;
  box-shadow: var(--shadow);
  font-weight: 600;
  pointer-events: auto;
  animation: toast-in 0.25s ease;
}
.toast svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 1px;
}
.toast-success svg {
  color: var(--turquoise);
}
.toast-error {
  background: var(--danger);
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ---------- Wheel (shared by game + admin preview) ---------- */
.wheel-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}
.wheel-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.wheel-rotor {
  transform-origin: 0 0;
  will-change: transform;
}
.wheel-label {
  /* weight and spacing come from the wheel style (SVG attributes) */
  font-family: var(--font);
  pointer-events: none;
}
.wheel-label.is-dark {
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.75);
  stroke-width: 2.4px;
  stroke-linejoin: round;
}
.wheel-label.is-light {
  paint-order: stroke;
  stroke: rgba(5, 59, 64, 0.55);
  stroke-width: 2.4px;
  stroke-linejoin: round;
}
.wheel-sublabel {
  font-weight: 800;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.wheel-edge {
  fill: #ffffff;
}
.wheel-bulb {
  fill: var(--bulb, #ffffff);
}
.is-spinning .wheel-bulb {
  animation: bulb 0.36s steps(1) infinite;
}
.is-spinning .wheel-bulb.alt {
  animation-delay: 0.18s;
}
@keyframes bulb {
  50% {
    fill: var(--bulb-on, #62dbff);
  }
}

.wheel-pointer {
  transform-origin: 0 -206px;
  transition: transform 0.08s ease-out;
}
.wheel-pointer.tick {
  transform: rotate(-14deg);
  transition: none;
}
.wheel-segment.is-winner {
  animation: winner 0.6s ease-in-out 4 alternate;
}
@keyframes winner {
  to {
    filter: brightness(1.18) saturate(1.1);
  }
}
.wheel-stage.is-closed .wheel-svg {
  filter: grayscale(0.85) opacity(0.6);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================================
   Slot machine ("Lucky slots" style) — shared by the game and admin preview.
   Sizes use container units (cqw) so it scales from a gallery card to full screen.
   ========================================================================= */
.slot-stage {
  position: relative;
  width: 100%;
  container-type: inline-size;
}
.slot {
  --neon: #44e4bc;
  --neon-2: #19b2ff;
  --cab: #ffffff;
  --cab-2: #dff6f2;
  --night: #0a2342;
  position: relative;
  display: grid;
  justify-items: center;
  gap: 3.2cqw;
  width: 100%;
  padding: 1cqw 3cqw 0;
  user-select: none;
  -webkit-user-select: none;
}

/* Sign: logo + name on a plain enamel plate */
.slot-sign {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.4cqw;
  width: 64%;
  padding: 2cqw 4cqw;
  border-radius: 3cqw;
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(98, 219, 255, 0.28), transparent 70%),
    linear-gradient(180deg, #123a66, var(--night));
  border: 0.8cqw solid #f7d27a;
  box-shadow: 0 1cqw 0 #061629, 0 0 4cqw rgba(247, 210, 122, 0.25);
}
.slot-sign-logo {
  width: 7cqw;
  height: 7cqw;
  border-radius: 1.6cqw;
  background: #ffffff;
  padding: 0.6cqw;
}
.slot-sign-text {
  font-size: 6.4cqw;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-shadow: 0 0 1.2cqw rgba(98, 219, 255, 0.9), 0 0 3cqw rgba(25, 178, 255, 0.6);
}

/* Cabinet */
.slot-cabinet {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2.6cqw;
  width: 88%;
  padding: 4.4cqw 4.4cqw 3.6cqw;
  border-radius: 7cqw 7cqw 3cqw 3cqw;
  border: 1cqw solid transparent;
  /* deep teal body inside a polished chrome rim */
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(98, 219, 255, 0.22), transparent 70%) padding-box,
    linear-gradient(180deg, #0f6f8a 0%, #0b4f6b 55%, #083b55 100%) padding-box,
    linear-gradient(160deg, #ffffff, #a9cdd2 30%, #f4fbfc 50%, #86aeb4 75%, #e3f3f4) border-box;
  box-shadow:
    0 2cqw 5cqw rgba(5, 59, 64, 0.35),
    0 0 6cqw -1cqw rgba(68, 228, 188, 0.35),
    inset 0 1cqw 0 rgba(255, 255, 255, 0.18),
    inset 0 -1.2cqw 0 rgba(0, 0, 0, 0.18);
  transition: box-shadow 0.3s ease;
}
/* Pull lever on the right side; it pulls down when the reels start. */
.slot-lever {
  position: absolute;
  top: 6%;
  right: -7cqw;
  z-index: 4; /* in front of the rim bulbs */
  width: 6.4cqw;
  height: 46%;
  pointer-events: none;
}
.slot-lever-base {
  position: absolute;
  bottom: 0;
  left: -0.6cqw;
  width: 3.6cqw;
  height: 11cqw;
  border-radius: 0 1.6cqw 1.6cqw 0;
  background: linear-gradient(90deg, #b9d3d7, #ffffff 45%, #cfe3e6);
  box-shadow: 0 1cqw 2cqw rgba(5, 59, 64, 0.2);
}
.slot-lever-rod {
  position: absolute;
  left: 1.5cqw;
  bottom: 5.5cqw;
  width: 1.4cqw;
  height: calc(100% - 8cqw);
  border-radius: 0.7cqw;
  background: linear-gradient(90deg, #8fa9ae, #f4fbfc 45%, #9fb8bc);
  transform-origin: bottom center;
}
.slot-lever-knob {
  position: absolute;
  top: 0;
  left: -0.6cqw;
  width: 5.6cqw;
  height: 5.6cqw;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffb3a8 0 12%, #ef4b3f 40%, #a3141b 100%);
  box-shadow: 0 0.8cqw 1.6cqw rgba(163, 20, 27, 0.4);
}
.slot-lever.pull .slot-lever-rod {
  animation: lever-rod 0.75s ease-in-out;
}
.slot-lever.pull .slot-lever-knob {
  animation: lever-knob 0.75s ease-in-out;
}
@keyframes lever-rod {
  40%, 55% { transform: scaleY(0.12); }
}
@keyframes lever-knob {
  40%, 55% { top: calc(100% - 10cqw); }
}

.slot-window {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2cqw;
  width: 100%;
  padding: 2.2cqw;
  border-radius: 4cqw;
  background: linear-gradient(180deg, #123a66, var(--night));
  box-shadow:
    inset 0 0 0 0.6cqw rgba(255, 255, 255, 0.9),
    inset 0 1.2cqw 3cqw rgba(0, 0, 0, 0.45),
    0 0 0 0.8cqw rgba(6, 18, 31, 0.55);
}
.slot-reel {
  position: relative;
  height: calc((88cqw - 8cqw - 4.4cqw - 4cqw) / 3 * 1.86); /* ≈ three rows of square-ish tiles */
  overflow: hidden;
  border-radius: 2.6cqw;
  background: linear-gradient(180deg, #e9f6ff, #ffffff 50%, #e9f6ff);
  box-shadow: inset 0 0 0 0.5cqw rgba(255, 255, 255, 0.8);
}
.slot-reel::after {
  /* curved glass: darker top and bottom rows */
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 35, 66, 0.55) 0%, rgba(10, 35, 66, 0) 30%, rgba(10, 35, 66, 0) 70%, rgba(10, 35, 66, 0.55) 100%);
}
.slot-reel.bump .slot-strip {
  animation: reel-bump 0.22s ease-out;
}
@keyframes reel-bump {
  40% { translate: 0 1.2cqw; }
}
.slot-strip {
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.slot-tile {
  position: relative;
  flex: none;
  height: calc((88cqw - 8cqw - 4.4cqw - 4cqw) / 3 * 0.62);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.6cqw;
  margin: 0 1cqw;
  padding: 0.8cqw;
  text-align: center;
  border-bottom: 0.3cqw dashed rgba(10, 35, 66, 0.12);
}
.slot-tile::before {
  content: '';
  position: absolute;
  inset: 1cqw 0.4cqw;
  border-radius: 2.4cqw;
  background: var(--tile);
  box-shadow: inset 0 -0.8cqw 0 rgba(0, 0, 0, 0.12);
  z-index: 0;
}
.slot-tile > * {
  position: relative;
  z-index: 1;
}
.slot-img {
  width: 7cqw;
  height: 7cqw;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 0.5cqw solid #fff;
}
.slot-label {
  max-width: 100%;
  font-size: 3cqw;
  font-weight: 900;
  line-height: 1.05;
  color: var(--tile-ink);
  overflow-wrap: anywhere;
}
.slot-tile:not(.has-image) .slot-label {
  font-size: 3.6cqw;
}
.slot-note {
  font-size: 1.9cqw;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--tile-ink);
}
.slot-tile.is-off::before {
  opacity: 0.4;
}
.slot-payline {
  position: absolute;
  left: 1cqw;
  right: 1cqw;
  top: 50%;
  height: calc((88cqw - 8cqw - 4.4cqw - 4cqw) / 3 * 0.62 + 1cqw);
  transform: translateY(-50%);
  border-radius: 2.4cqw;
  border: 0.7cqw solid var(--neon);
  box-shadow: 0 0 2cqw rgba(68, 228, 188, 0.7), inset 0 0 2cqw rgba(68, 228, 188, 0.45);
  pointer-events: none;
  z-index: 2;
}
.slot-window.is-win .slot-payline {
  border-color: #f7d27a;
  box-shadow: 0 0 3cqw rgba(247, 210, 122, 0.9), inset 0 0 2.4cqw rgba(247, 210, 122, 0.55);
  animation: payline 0.5s steps(2) 4;
}
@keyframes payline {
  50% { border-color: #ffffff; }
}
.slot-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 0;
  height: 0;
  border-top: 2.2cqw solid transparent;
  border-bottom: 2.2cqw solid transparent;
  transform: translateY(-50%);
  filter: drop-shadow(0 0 1cqw var(--neon));
}
.slot-arrow-l { left: -1.2cqw; border-left: 2.6cqw solid var(--neon); }
.slot-arrow-r { right: -1.2cqw; border-right: 2.6cqw solid var(--neon); }

/* LED status display: PRESS SPIN → GOOD LUCK! → the result. */
.slot-display {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 64%;
  max-width: 100%;
  padding: 1.8cqw 4cqw;
  border-radius: 2.6cqw;
  background: #06121f;
  box-shadow:
    inset 0 0 0 0.5cqw #1d3a55,
    inset 0 0.8cqw 2cqw rgba(0, 0, 0, 0.6),
    0 0 0 0.6cqw rgba(255, 255, 255, 0.12),
    0 0 3cqw rgba(111, 245, 210, 0.25);
  overflow: hidden;
}
.slot-display::after {
  /* dot-matrix grid */
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle, transparent 0 0.35cqw, rgba(6, 18, 31, 0.55) 0.5cqw) 0 0 / 0.9cqw 0.9cqw;
}
.slot-display-text {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 4.6cqw;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.12em;
  color: #6ff5d2;
  text-shadow: 0 0 1cqw currentColor, 0 0 2.4cqw rgba(111, 245, 210, 0.6);
}
.is-spinning .slot-display-text {
  animation: led-blink 0.5s steps(2) infinite;
}
@keyframes led-blink {
  50% { opacity: 0.35; }
}
.slot-display.is-prize .slot-display-text {
  color: #ffe08a;
  animation: led-blink 0.6s steps(2) 4;
}

/* Gift panel with marquee lights */
.slot-base {
  position: relative;
  width: 96%;
  margin-top: -1cqw;
  padding: 3.2cqw 4cqw 3.6cqw;
  border-radius: 3cqw 3cqw 5cqw 5cqw;
  background: linear-gradient(180deg, #0a7a84, #06636b 40%, #054e55);
  box-shadow: 0 1.2cqw 2.4cqw rgba(5, 59, 64, 0.25), inset 0 0.6cqw 0 rgba(255, 255, 255, 0.15);
  text-align: center;
}
.slot-base::before {
  content: '';
  position: absolute;
  inset: 1.8cqw;
  border-radius: 2.4cqw;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(247, 210, 122, 0.16), transparent 70%),
    linear-gradient(180deg, #0b4f6b, #083b55);
  box-shadow: inset 0 0 1.6cqw rgba(0, 0, 0, 0.35), inset 0 0 0 0.3cqw rgba(247, 210, 122, 0.35);
}
.slot-base > * {
  position: relative;
}
.slot-base-title {
  margin-bottom: 1.8cqw;
  font-size: 3cqw;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f7d27a;
  text-shadow: 0 0 1.4cqw rgba(247, 210, 122, 0.7);
}
.slot-gifts {
  display: flex;
  justify-content: center;
  gap: 2.4cqw;
}
.slot-gift {
  display: grid;
  justify-items: center;
  gap: 0.8cqw;
  width: 17cqw;
  padding: 1.6cqw 1cqw 1.4cqw;
  border-radius: 2.4cqw;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  box-shadow: inset 0 0 0 0.3cqw rgba(255, 255, 255, 0.18), 0 0.8cqw 1.6cqw rgba(0, 0, 0, 0.2);
}
.slot-gift-pic {
  display: grid;
  place-items: center;
  width: 9cqw;
  height: 9cqw;
  border-radius: 50%;
  overflow: hidden;
  background: var(--tile);
  font-size: 4.4cqw;
  font-weight: 900;
  box-shadow: 0 0 0 0.5cqw #ffffff, 0 0 2.4cqw 0.4cqw color-mix(in srgb, var(--tile) 70%, transparent);
}
.slot-gift-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}
.slot-gift-name {
  font-size: 2.3cqw;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  overflow-wrap: anywhere;
}
/* Curved glass over the reels */
.slot-window::after {
  content: '';
  position: absolute;
  inset: 0.6cqw;
  z-index: 1;
  border-radius: 3.4cqw;
  pointer-events: none;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.06) 22%, transparent 40%);
}
/* Motion blur while a reel is spinning */
.slot-reel.is-rolling .slot-strip {
  filter: blur(0.35cqw) saturate(1.2);
}
.slot.is-won .slot-cabinet {
  box-shadow:
    0 2cqw 5cqw rgba(5, 59, 64, 0.35),
    0 0 8cqw 0 rgba(247, 210, 122, 0.55),
    inset 0 1cqw 0 rgba(255, 255, 255, 0.18),
    inset 0 -1.2cqw 0 rgba(0, 0, 0, 0.18);
}
.slot-stage.is-closed .slot {
  filter: grayscale(0.85) opacity(0.6);
}

/* =========================================================================
   Capsule machine ("Capsule machine" style). Scales with container units.
   ========================================================================= */
.capsule-stage {
  position: relative;
  width: 100%;
  container-type: inline-size;
}
.capsule {
  position: relative;
  display: grid;
  justify-items: center;
  width: 100%;
  padding: 0 6cqw;
  user-select: none;
  -webkit-user-select: none;
}

/* Sign */
.cap-sign {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.4cqw;
  width: 92%;
  margin-bottom: -3cqw;
  padding: 2.2cqw 4cqw;
  border-radius: 3.6cqw;
  background: #0b7fc0;
  border: 1cqw solid #ffffff;
  box-shadow: 0 1cqw 2cqw rgba(5, 59, 64, 0.2);
}
.cap-sign-logo {
  width: 8cqw;
  height: 8cqw;
  border-radius: 1.8cqw;
  background: #ffffff;
  padding: 0.6cqw;
}
.cap-sign-big {
  white-space: nowrap;
  font-size: 6cqw;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
}

/* Glass dome */
.cap-dome {
  position: relative;
  z-index: 1;
  width: 86%;
  aspect-ratio: 1 / 0.92;
  border-radius: 9cqw 9cqw 2cqw 2cqw;
  background: linear-gradient(180deg, #dff4ff 0%, #c7ecf7 60%, #b6e3ef 100%);
  border: 2.2cqw solid #06757e;
  box-shadow:
    inset 0 0 0 0.8cqw rgba(255, 255, 255, 0.6),
    0 0 0 0.6cqw #e4f5f6,
    0 0 0 1cqw #94c2c7,
    0 1.6cqw 3.6cqw rgba(5, 59, 64, 0.22);
  overflow: hidden;
}
.is-spinning .cap-dome {
  animation: dome-shake 0.24s ease-in-out infinite;
}
@keyframes dome-shake {
  25% { transform: rotate(-0.7deg) translateX(-0.3cqw); }
  75% { transform: rotate(0.7deg) translateX(0.3cqw); }
}
.cap-pile {
  position: absolute;
  z-index: 0; /* own layer: the per-row z-index stays inside the pile */
  inset: 6% 4% 2%;
}
.cap {
  position: absolute;
  width: var(--s, 16%);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: rotate(var(--r));
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--c) 28%, #ffffff) 0 47%,
    color-mix(in srgb, var(--c) 60%, #ffffff) 47% 53%,
    var(--c) 53% 100%);
  box-shadow:
    inset -0.9cqw -1.1cqw 1.6cqw rgba(3, 40, 44, 0.3),
    inset 0.5cqw 0.6cqw 1cqw rgba(255, 255, 255, 0.7),
    0 0.5cqw 0.9cqw rgba(5, 59, 64, 0.25);
}
.cap::before,
.cap-drop-bottom::before {
  /* PharmKulen logo sticker */
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff var(--brand-icon) center / 78% no-repeat;
  box-shadow: 0 0 0 0.25cqw rgba(255, 255, 255, 0.9), 0 0.3cqw 0.6cqw rgba(3, 40, 44, 0.3);
}
.cap-drop-bottom::before {
  top: 0; /* centred on the seam: half hidden by the lid until it opens */
  width: 44%;
}
.cap::after {
  /* glossy highlight on the clear top */
  content: '';
  position: absolute;
  left: 18%;
  top: 12%;
  width: 34%;
  height: 16%;
  border-radius: 50%;
  transform: rotate(-28deg);
  background: rgba(255, 255, 255, 0.85);
}
.is-spinning .cap {
  animation: tumble 0.32s ease-in-out var(--d) infinite alternate;
}
@keyframes tumble {
  from { transform: rotate(var(--r)) translate(0, 0); }
  to { transform: rotate(calc(var(--r) + 25deg)) translate(0.8cqw, -2.4cqw); }
}
.cap-glass {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(100deg, transparent 5%, rgba(255, 255, 255, 0.45) 5% 10%, transparent 10% 14%, rgba(255, 255, 255, 0.28) 14% 16%, transparent 16%),
    linear-gradient(100deg, transparent 88%, rgba(255, 255, 255, 0.25) 88% 91%, transparent 91%),
    radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255, 0.4), transparent 60%),
    linear-gradient(180deg, transparent 70%, rgba(6, 117, 126, 0.12));
  box-shadow: inset 0 0 2.4cqw rgba(6, 117, 126, 0.25);
  overflow: hidden;
}

/* Result popping out of the capsule */
.cap-reveal {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(5, 59, 64, 0);
  pointer-events: none;
  transition: background-color 0.3s ease;
}
.cap-reveal > * {
  grid-area: 1 / 1;
}
.cap-reveal.show {
  background: rgba(5, 59, 64, 0.35);
}
.cap-reveal-caption {
  font-size: 3cqw;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a6a00;
  margin-bottom: -0.6cqw;
}
.cap-reveal-card {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 1.6cqw;
  min-width: 46%;
  max-width: 82%;
  padding: 3.4cqw 4cqw;
  border-radius: 4cqw;
  background: #ffffff;
  box-shadow: 0 2cqw 5cqw rgba(5, 59, 64, 0.35);
  animation: reveal-pop 0.5s cubic-bezier(0.2, 1.5, 0.4, 1);
}
@keyframes reveal-pop {
  from { transform: translateY(30cqw) scale(0.3); opacity: 0; }
}
.cap-reveal-pic {
  display: grid;
  place-items: center;
  width: 20cqw;
  height: 20cqw;
  border-radius: 50%;
  overflow: hidden;
  background: var(--c);
  font-size: 9cqw;
  font-weight: 900;
}
.cap-reveal-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}
.cap-reveal-label {
  font-size: 5.4cqw;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  color: #053b40;
}

/* Base */
.cap-base {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4cqw;
  width: 100%;
  margin-top: -1cqw;
  padding: 5cqw 6cqw 6cqw;
  border-radius: 3cqw 3cqw 6cqw 6cqw;
  background: linear-gradient(180deg, #0a9fa9 0%, #058f9a 40%, #06636b 100%);
  box-shadow: inset 0 1.2cqw 0 rgba(255, 255, 255, 0.25), inset 0 -1.6cqw 0 rgba(3, 40, 44, 0.35), 0 2cqw 4cqw rgba(5, 59, 64, 0.3);
}
.cap-base::before {
  /* lip under the dome */
  content: '';
  position: absolute;
  left: 4%;
  right: 4%;
  top: -1.4cqw;
  height: 3cqw;
  border-radius: 2cqw;
  background: linear-gradient(180deg, #44e4bc, #11bd9b);
}
.cap-base::after {
  /* plinth / feet */
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -2.4cqw;
  height: 3.4cqw;
  z-index: -1;
  border-radius: 0 0 2.4cqw 2.4cqw;
  background:
    linear-gradient(90deg, transparent 18%, #04484e 18% 82%, transparent 82%) bottom / 100% 40% no-repeat,
    linear-gradient(180deg, #054f56, #03393e);
}
.cap-chute {
  position: relative;
  height: 22cqw;
  border-radius: 4cqw;
  background: #06636b;
  box-shadow: inset 0 0 0 1cqw #0a9fa9;
  overflow: hidden;
}
.cap-chute::before {
  content: 'PRIZE';
  position: absolute;
  top: 0.9cqw;
  left: 0;
  right: 0;
  z-index: 4;
  font-size: 2.2cqw;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-align: center;
  color: #bff7ea;
}
.cap-chute-hole {
  position: absolute;
  inset: 4.2cqw 3cqw 3cqw;
  border-radius: 3cqw 3cqw 2cqw 2cqw;
  background: radial-gradient(120% 90% at 50% 10%, #021e22, #053b40);
}
.cap-chute-flap {
  position: absolute;
  z-index: 2;
  left: 3cqw;
  right: 3cqw;
  top: 4.2cqw;
  height: 7cqw;
  border-radius: 3cqw 3cqw 0 0;
  border-bottom: 0.6cqw solid rgba(191, 247, 234, 0.55);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
  transform-origin: top center;
}
.cap-drop.dropping ~ .cap-chute-flap {
  animation: flap 0.75s ease-out;
}
@keyframes flap {
  40% { transform: perspective(30cqw) rotateX(-50deg); }
}
.cap-drop {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 3.6cqw;
  width: 13cqw;
  height: 13cqw;
  margin-left: -6.5cqw;
  opacity: 0;
  transform: translateY(-24cqw);
}
.cap-drop span {
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  transition: transform 0.4s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.cap-drop-top {
  top: 0;
  border-radius: 6.5cqw 6.5cqw 0 0;
  background:
    radial-gradient(30% 22% at 34% 38%, rgba(255, 255, 255, 0.9) 0 60%, transparent 62%),
    color-mix(in srgb, var(--c) 28%, #ffffff);
  border-bottom: 0.6cqw solid color-mix(in srgb, var(--c) 60%, #ffffff);
  transform-origin: 10% 100%;
}
.cap-drop-bottom {
  bottom: 0;
  z-index: -1; /* the lid (with its seam) sits over the sticker until it pops open */
  border-radius: 0 0 6.5cqw 6.5cqw;
  background: var(--c);
  box-shadow: inset -0.8cqw -1cqw 1.4cqw rgba(3, 40, 44, 0.3);
}
.cap-drop.dropping {
  animation: cap-drop 0.75s cubic-bezier(0.3, 0, 0.6, 1) forwards;
}
.cap-drop.landed {
  opacity: 1;
  transform: none;
}
.cap-drop.dropping,
.cap-drop.landed {
  filter: drop-shadow(0 0.4cqw 0.6cqw rgba(0, 0, 0, 0.45));
}
.cap-drop.open .cap-drop-top {
  transform: translate(-1cqw, -3cqw) rotate(-55deg);
}
@keyframes cap-drop {
  0% { opacity: 1; transform: translateY(-24cqw); }
  55% { transform: translateY(0); }
  72% { transform: translateY(-4cqw); }
  86% { transform: translateY(0); }
  93% { transform: translateY(-1cqw); }
  100% { opacity: 1; transform: translateY(0); }
}

.cap-plate {
  position: relative;
  display: grid;
  place-items: center;
  height: 22cqw;
  border-radius: 4cqw;
  background: linear-gradient(180deg, #ffffff, #e2f4f3);
  box-shadow: inset 0 -1cqw 0 rgba(5, 59, 64, 0.12), 0 0.8cqw 1.6cqw rgba(3, 40, 44, 0.25);
}
.cap-coin {
  position: absolute;
  right: 2.6cqw;
  top: 50%;
  width: 4.4cqw;
  height: 11cqw;
  border-radius: 1.4cqw;
  transform: translateY(-50%);
  background:
    linear-gradient(#0b2a2f, #0b2a2f) center / 1.2cqw 6.4cqw no-repeat,
    linear-gradient(180deg, #e9f3f4, #b8d3d6);
  box-shadow: inset 0 0 0 0.3cqw rgba(5, 59, 64, 0.25), 0 0.4cqw 0.6cqw rgba(3, 40, 44, 0.2);
}
.cap-plate::before {
  /* "turn" ring with an arrow around the knob */
  content: '';
  position: absolute;
  top: 50%;
  left: calc(50% - 2.5cqw);
  width: 19.5cqw;
  height: 19.5cqw;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 0.6cqw dashed rgba(5, 143, 154, 0.45);
}
.cap-plate::after {
  /* arrowhead on the ring: turn clockwise */
  content: '';
  position: absolute;
  left: calc(50% - 2.5cqw + 6.9cqw - 1.2cqw);
  top: calc(50% - 6.9cqw - 1.2cqw);
  border-top: 1.2cqw solid transparent;
  border-bottom: 1.2cqw solid transparent;
  border-left: 2cqw solid #058f9a;
  transform: rotate(45deg);
}
.is-spinning .cap-plate::before {
  animation: turn-ring 1.5s linear;
}
@keyframes turn-ring {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.cap-knob {
  position: relative;
  width: 16cqw;
  height: 16cqw;
  margin-right: 5cqw;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff1c7, #f7d27a 45%, #e0a12a 100%);
  box-shadow: 0 0.8cqw 0 #b57a0e, 0 1.6cqw 2.4cqw rgba(3, 40, 44, 0.35);
  transition: transform 1.55s cubic-bezier(0.45, 0, 0.3, 1);
}
.cap-knob-bar {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50%;
  height: 4cqw;
  margin-top: -2cqw;
  border-radius: 2cqw;
  background: linear-gradient(180deg, #fff7dd, #e8b84a);
  box-shadow: 0 0.5cqw 0 #b57a0e;
}
.capsule.is-prize .cap-reveal-card {
  box-shadow: 0 0 0 0.8cqw #f7d27a, 0 2cqw 5cqw rgba(5, 59, 64, 0.35);
}
.capsule-stage.is-closed .capsule {
  filter: grayscale(0.85) opacity(0.6);
}

/* =========================================================================
   Drop board ("Lucky drop" style, pachinko / Plinko). Container units.
   ========================================================================= */
.plinko-stage {
  position: relative;
  width: 100%;
  container-type: inline-size;
}
.plinko {
  display: grid;
  justify-items: center;
  gap: 2cqw;
  width: 100%;
  user-select: none;
  -webkit-user-select: none;
}
.pk-sign {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.4cqw;
  width: 70%;
  padding: 1.6cqw 4cqw 2cqw;
  border-radius: 4cqw;
  background: #06333f;
  border: 0.8cqw solid #f7d27a;
  box-shadow: 0 1cqw 2cqw rgba(5, 59, 64, 0.2);
}
.pk-sign-logo {
  width: 7.4cqw;
  height: 7.4cqw;
  border-radius: 1.6cqw;
  background: #ffffff;
  padding: 0.6cqw;
}
.pk-sign-small {
  font-size: 2.6cqw;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #bff7ea;
}
.pk-sign-big {
  font-size: 6.4cqw;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.pk-cabinet {
  display: grid;
  justify-items: center;
  gap: 3cqw;
  width: 94%;
  padding: 3cqw 3cqw 3.4cqw;
  border-radius: 8cqw 8cqw 4cqw 4cqw;
  background: linear-gradient(180deg, #19b2ff 0%, #058f9a 55%, #06636b 100%);
  border: 1cqw solid #ffffff;
  box-shadow: 0 2cqw 5cqw rgba(5, 59, 64, 0.3), inset 0 1cqw 0 rgba(255, 255, 255, 0.3);
}
/* Marquee bulbs in the sign's frame: gentle blink when idle, a chase while the ball drops,
   all flashing together when it lands. */
.pk-lights {
  position: absolute;
  inset: -0.4cqw; /* centre line of the sign's 0.8cqw frame */
  pointer-events: none;
  z-index: 3;
}
.pk-bulb {
  position: absolute;
  width: 1.9cqw;
  height: 1.9cqw;
  margin: -0.95cqw 0 0 -0.95cqw;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0 18%, #fff1b8 35%, #ffc93d 70%, #e09a12);
  box-shadow: 0 0 0 0.3cqw rgba(255, 255, 255, 0.9), 0 0 1.4cqw 0.3cqw rgba(255, 201, 61, 0.85);
  animation: pk-bulb-blink 1.4s steps(1) infinite;
}
.pk-bulb-odd { animation-delay: -0.7s; }
@keyframes pk-bulb-blink {
  50% {
    background: radial-gradient(circle at 35% 30%, #f3e3b6 0 18%, #c9a45a 60%, #9a7428);
    box-shadow: 0 0 0 0.3cqw rgba(255, 255, 255, 0.9);
  }
}
.is-spinning .pk-bulb {
  animation: pk-bulb-chase 0.36s steps(1) infinite;
}
.is-spinning .pk-bulb-1 { animation-delay: -0.12s; }
.is-spinning .pk-bulb-2 { animation-delay: -0.24s; }
@keyframes pk-bulb-chase {
  33.333% {
    background: radial-gradient(circle at 35% 30%, #f3e3b6 0 18%, #c9a45a 60%, #9a7428);
    box-shadow: 0 0 0 0.3cqw rgba(255, 255, 255, 0.9);
  }
}
.is-won .pk-bulb {
  animation: pk-bulb-blink 0.3s steps(1) 10;
  animation-delay: 0s;
}
.pk-board {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  border-radius: 6cqw 6cqw 2.4cqw 2.4cqw;
  overflow: hidden;
  background:
    radial-gradient(60% 40% at 45% 40%, rgba(255, 255, 255, 0.18), transparent 70%),
    linear-gradient(180deg, #0f6f8a 0%, #0b4f6b 60%, #083b55 100%);
  box-shadow: inset 0 0 0 0.8cqw rgba(255, 255, 255, 0.85), inset 0 1.6cqw 3cqw rgba(0, 0, 0, 0.35);
}
.pk-arch {
  /* a string of light bulbs over the top of the board */
  position: absolute;
  left: 3%;
  right: 14%;
  top: 3%;
  height: 10%;
  border: 1.3cqw dotted #f7d27a;
  border-bottom: 0;
  border-radius: 40cqw 40cqw 0 0;
  filter: drop-shadow(0 0 0.8cqw rgba(247, 210, 122, 0.8));
  opacity: 0.8;
}
.is-spinning .pk-arch {
  animation: bulbs 0.3s steps(2) infinite;
}
@keyframes bulbs {
  50% { opacity: 1; border-color: #fff6d6; filter: drop-shadow(0 0 1.6cqw #f7d27a); }
}
.pk-peg {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3.7cqw;
  height: 3.7cqw;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  /* a white pin stamped with the PharmKulen mark */
  background: #ffffff var(--brand-icon) center / 80% no-repeat;
  box-shadow: 0 0.5cqw 0.7cqw rgba(0, 0, 0, 0.35);
}
.pk-peg.hit {
  animation: peg-hit 0.35s ease-out;
}
@keyframes peg-hit {
  0% { box-shadow: 0 0 0 0.6cqw rgba(247, 210, 122, 0.9); }
  100% { box-shadow: 0 0 0 1.6cqw rgba(247, 210, 122, 0); }
}
.pk-lane {
  position: absolute;
  right: 3%;
  top: 6%;
  bottom: 4%;
  width: 9%;
  border-radius: 4cqw;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.12));
  box-shadow: inset 0 0 0 0.4cqw rgba(255, 255, 255, 0.35);
}
.pk-meter {
  position: absolute;
  right: 4.4%;
  bottom: 26%;
  display: grid;
  gap: 0.6cqw;
  width: 6%;
}
.pk-meter span {
  height: 1.6cqw;
  border-radius: 0.8cqw;
  background: #f7d27a;
  opacity: 0.35;
}
.pk-meter span:nth-child(-n + 3) { background: #ff9f6b; }
.is-spinning .pk-meter span {
  animation: meter 0.45s ease-out forwards;
}
.is-spinning .pk-meter span:nth-child(8) { animation-delay: 0s; }
.is-spinning .pk-meter span:nth-child(7) { animation-delay: 0.05s; }
.is-spinning .pk-meter span:nth-child(6) { animation-delay: 0.1s; }
.is-spinning .pk-meter span:nth-child(5) { animation-delay: 0.15s; }
.is-spinning .pk-meter span:nth-child(4) { animation-delay: 0.2s; }
.is-spinning .pk-meter span:nth-child(3) { animation-delay: 0.25s; }
.is-spinning .pk-meter span:nth-child(2) { animation-delay: 0.3s; }
.is-spinning .pk-meter span:nth-child(1) { animation-delay: 0.35s; }
@keyframes meter {
  to { opacity: 1; box-shadow: 0 0 1cqw rgba(247, 210, 122, 0.9); }
}

/* Gift slots */
.pk-slots {
  position: absolute;
  left: 1%;
  width: 86%;
  top: 69%;
  bottom: 2%;
  display: grid;
  grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr));
  gap: 1cqw;
  padding: 0 0.5cqw;
  z-index: 1; /* own layer, so the tray floor sits behind the slots but above the board */
}
.pk-slots::before {
  /* tray floor behind the slots */
  content: '';
  position: absolute;
  inset: 4cqw 0 -1cqw;
  border-radius: 1.6cqw;
  background: rgba(3, 30, 42, 0.45);
  z-index: -1;
}
.pk-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1cqw;
  padding: 5.6cqw 0.4cqw 1.2cqw; /* room at the top for the ball to land */
  border-radius: 1.2cqw 1.2cqw 2.4cqw 2.4cqw;
  /* glossy cup: a shine stripe down the left, darker toward the bottom */
  background:
    linear-gradient(90deg, transparent 12%, rgba(255, 255, 255, 0.32) 12% 26%, transparent 26%),
    linear-gradient(180deg, color-mix(in srgb, var(--c) 72%, #fff) 0%, var(--c) 45%, color-mix(in srgb, var(--c) 82%, #000) 100%);
  box-shadow:
    inset 0 1.2cqw 1cqw -0.4cqw rgba(0, 0, 0, 0.28), /* depth where the ball drops in */
    inset 0 -0.8cqw 0 rgba(0, 0, 0, 0.15),
    0 0 0 0.4cqw rgba(255, 255, 255, 0.55);
  color: var(--ink);
  text-align: center;
}
.pk-slot.is-prize {
  box-shadow:
    inset 0 1.2cqw 1cqw -0.4cqw rgba(0, 0, 0, 0.28),
    inset 0 -0.8cqw 0 rgba(0, 0, 0, 0.15),
    0 0 0 0.4cqw #f7d27a; /* gold rim on gift slots */
}
.pk-slot::before,
.pk-slot:last-child::after {
  /* gold wall between slots, rising above them with a round cap */
  content: '';
  position: absolute;
  top: -4cqw;
  left: -1cqw;
  width: 1cqw;
  height: 7cqw;
  border-radius: 1cqw 1cqw 0 0;
  background: linear-gradient(90deg, #fff1c7, #f7d27a 45%, #c98a12);
  box-shadow: 0 0 1cqw rgba(247, 210, 122, 0.6);
}
.pk-slot:last-child::after { left: auto; right: -1cqw; }
.pk-slot-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 6cqw;
  height: 6cqw;
  border-radius: 50%;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 0.4cqw 0.8cqw rgba(0, 0, 0, 0.25);
  font-size: 3.4cqw;
  line-height: 1;
  color: color-mix(in srgb, var(--c) 70%, #062b30);
}
.pk-slot.is-prize .pk-slot-icon {
  color: #e0a12a;
  box-shadow: 0 0 0 0.4cqw #f7d27a, 0 0.4cqw 0.8cqw rgba(0, 0, 0, 0.25);
}
.pk-slot-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pk-slot-label {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 0;
  max-width: 100%;
  overflow: hidden;
  font-size: 2.9cqw;
  font-weight: 900;
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-wrap: balance;
  text-shadow: 0 0.2cqw 0 color-mix(in srgb, var(--c) 60%, transparent);
}
.pk-slots.is-narrow .pk-slot-label {
  writing-mode: vertical-rl;
  font-size: 2.6cqw;
  letter-spacing: 0.02em;
}
.pk-slots.is-narrow .pk-slot-icon {
  width: 5cqw;
  height: 5cqw;
  font-size: 2.9cqw;
}
.pk-slot.is-off {
  opacity: 0.45;
  filter: grayscale(0.6);
}
.pk-slot.is-win {
  animation: slot-win 0.6s ease-in-out 4 alternate;
  z-index: 1;
}
@keyframes slot-win {
  to { box-shadow: inset 0 -0.8cqw 0 rgba(0, 0, 0, 0.15), 0 0 0 0.8cqw #f7d27a, 0 0 4cqw #f7d27a; transform: translateY(-1cqw); }
}
.pk-slot.is-win .pk-slot-icon {
  animation: pk-icon-pop 0.5s cubic-bezier(0.2, 1.6, 0.4, 1);
}
@keyframes pk-icon-pop {
  from { transform: scale(0.4); }
}

.pk-ball {
  position: absolute;
  width: 6cqw;
  height: 6cqw;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  /* white ball face with the PharmKulen logo inside a brand-blue ring, so it stands out from the pins */
  background: #ffffff var(--brand-icon) center / 64% no-repeat;
  box-shadow:
    inset 0 0 0 1.1cqw #19b2ff,
    inset 0 0 0 1.4cqw #0b6fa8,
    0 0.8cqw 1.4cqw rgba(0, 0, 0, 0.45);
  z-index: 2;
  pointer-events: none;
}

.pk-lamp {
  min-width: 46%;
  padding: 2cqw 6cqw;
  border-radius: 3.4cqw;
  font-size: 5.4cqw;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  color: #6b4300;
  background: linear-gradient(180deg, #fff1c7 0%, #f7d27a 45%, #e0a12a 100%);
  box-shadow: 0 1.2cqw 0 #b57a0e, 0 2.4cqw 4cqw rgba(224, 161, 42, 0.45), inset 0 0.8cqw 0 rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.is-spinning .pk-lamp {
  transform: translateY(1cqw);
  box-shadow: 0 0.2cqw 0 #b57a0e, 0 1cqw 2cqw rgba(224, 161, 42, 0.35), inset 0 0.8cqw 0 rgba(255, 255, 255, 0.6);
}
.plinko-stage.is-closed .plinko {
  filter: grayscale(0.85) opacity(0.6);
}

/* =========================================================================
   Claw machine ("Claw machine" style). A friendly crane cabinet: beacon, eyes that
   follow the claw, a status display, a gold-rimmed window with a prize pile and chute,
   and a control panel. Sizes use container units (cqw) like the other machines.
   ========================================================================= */
.claw-stage {
  position: relative;
  width: 100%;
  container-type: inline-size;
}
.claw {
  --mint: #7fd6c4;
  --mint-2: #5bbfae;
  --mint-3: #3a9e8e;
  --gold: #e9b649;
  --gold-2: #b98118;
  position: relative;
  display: grid;
  justify-items: center;
  gap: 3cqw;
  width: 84%;
  margin: 7cqw auto 0;
  padding: 4.5cqw 5cqw 0;
  border-radius: 10cqw 10cqw 4cqw 4cqw;
  background: linear-gradient(90deg, var(--mint-3) 0, var(--mint) 8%, #a8e7da 30%, var(--mint) 62%, var(--mint-2) 92%, var(--mint-3));
  box-shadow: inset 0 1cqw 0 rgba(255, 255, 255, 0.45), 0 2cqw 4cqw rgba(5, 59, 64, 0.22);
  user-select: none;
  -webkit-user-select: none;
}

/* Head: beacon, eyes, display */
.claw-head {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}
.claw-beacon {
  position: absolute;
  left: 50%;
  top: -11.5cqw;
  width: 11cqw;
  height: 7.5cqw;
  transform: translateX(-50%);
  border-radius: 5.5cqw 5.5cqw 1cqw 1cqw;
  background: radial-gradient(circle at 38% 32%, #ffb3a8 0 14%, #e5352b 52%, #a3141b);
  box-shadow: 0 1.2cqw 0 #c9d3d6;
}
.is-spinning .claw-beacon {
  animation: claw-beacon 0.5s steps(2) infinite;
}
@keyframes claw-beacon {
  50% { background: radial-gradient(circle at 38% 32%, #fff3c4 0 18%, #ff6a4a 55%, #c4231b); }
}
.claw-eye {
  position: relative;
  justify-self: center;
  width: 16cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #ffffff 0 55%, #dde8eb 72%);
  box-shadow: 0 0 0 1.4cqw var(--gold), 0 0 0 2cqw var(--gold-2), inset 0 -1cqw 2cqw rgba(0, 0, 0, 0.12);
}
.claw-pupil {
  position: absolute;
  left: 32%;
  top: 40%;
  width: 36%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0 13%, #1d2b33 15%);
  transform: translateX(calc(var(--look, 0) * 75%));
  transition: transform 0.5s ease;
}
.claw-lid {
  /* sleepy eyelid; it opens while playing and wide on a win */
  position: absolute;
  inset: 0 0 auto;
  height: 46%;
  background: var(--mint-2);
  border-bottom: 0.9cqw solid var(--mint-3);
  transition: height 0.3s ease;
}
.is-spinning .claw-lid { height: 26%; }
.claw.is-win .claw-lid { height: 12%; }
.claw-display {
  min-width: 30cqw;
  padding: 1.6cqw 3cqw;
  border-radius: 2.4cqw;
  text-align: center;
  background: #10201f;
  box-shadow: inset 0 0 0 0.5cqw #2c4a49, 0 0.6cqw 0 var(--mint-3);
}
.claw-display-text {
  display: block;
  max-width: 34cqw;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 3.4cqw;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #ffb547;
}
.is-spinning .claw-display-text {
  animation: led-blink 0.5s steps(2) infinite;
}

/* Window */
.claw-window {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.8;
  margin: 2cqw 0;
  border-radius: 5cqw;
  overflow: hidden;
  background: linear-gradient(180deg, #2c7d74, #20675f 60%, #19524c);
  box-shadow: 0 0 0 1.6cqw var(--gold), 0 0 0 2.2cqw var(--gold-2), inset 0 0 4cqw rgba(0, 0, 0, 0.35);
}
.claw-window::after {
  /* glass */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 6%, rgba(255, 255, 255, 0.12) 6% 12%, transparent 12% 15%, rgba(255, 255, 255, 0.08) 15% 17%, transparent 17%);
}
.claw-rail {
  position: absolute;
  top: 4%;
  left: 5%;
  right: 5%;
  height: 1.8cqw;
  z-index: 4;
  border-radius: 1cqw;
  background: linear-gradient(180deg, #eef3f4, #9fb1b6);
}
.claw-crane {
  position: absolute;
  top: 5%;
  left: 50%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 16cqw;
  height: var(--reach, 24%);
  transform: translateX(-50%);
  transition: left var(--move, 0ms) ease-in-out, height 0.8s ease-in-out;
}
.claw-cable {
  /* threaded rod */
  flex: 1;
  width: 1.4cqw;
  background: repeating-linear-gradient(180deg, #d9b25a 0 0.9cqw, #8a6a22 0.9cqw 1.4cqw);
}
.claw-grip {
  position: relative;
  flex: none;
  width: 16cqw;
  height: 13cqw;
}
.claw-hub {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 2;
  width: 7cqw;
  height: 4.6cqw;
  transform: translateX(-50%);
  border-radius: 1.2cqw 1.2cqw 2.4cqw 2.4cqw;
  background: linear-gradient(90deg, #8d9ea4, #f1f5f6 45%, #a9b8bd);
  box-shadow: inset 0 -0.6cqw 0 rgba(0, 0, 0, 0.15);
}
.claw-hub::after {
  content: '';
  position: absolute;
  left: 30%;
  right: 30%;
  top: 30%;
  height: 0.9cqw;
  border-radius: 0.5cqw;
  background: #e5352b;
}
.claw-arm {
  position: absolute;
  top: 3cqw;
  z-index: 3;
  width: 1.6cqw;
  height: 9.5cqw;
  border-radius: 1cqw;
  background: linear-gradient(90deg, #9fb1b6, #f4f8f9, #9fb1b6);
  transform-origin: 50% 0;
  transition: transform 0.3s ease;
}
.claw-arm::after {
  /* hooked tip pointing inwards */
  content: '';
  position: absolute;
  bottom: -0.4cqw;
  width: 3.2cqw;
  height: 1.6cqw;
  border-radius: 1cqw;
  background: #c9d5d8;
}
.claw-arm-l { left: 4.6cqw; transform: rotate(26deg); }
.claw-arm-r { left: 9.8cqw; transform: rotate(-26deg); }
.claw-arm-l::after { left: 0; }
.claw-arm-r::after { right: 0; }
.claw-grip.is-closed .claw-arm-l { transform: rotate(8deg); }
.claw-grip.is-closed .claw-arm-r { transform: rotate(-8deg); }

/* Prizes: little gift boxes with a white tag (picture or initial) */
.claw-pile {
  position: absolute;
  inset: 0;
}
.claw-prize {
  position: absolute;
  display: grid;
  place-items: center;
  width: 12.5cqw;
  aspect-ratio: 1;
  padding-top: 2cqw;
  transform: translateX(-50%) rotate(var(--tilt, 0deg));
  border-radius: 2.4cqw;
  font-size: 4cqw;
  font-weight: 900;
  line-height: 1;
  color: #06636b;
  background:
    radial-gradient(circle at 50% 58%, #ffffff 0 29%, transparent 30%),
    linear-gradient(90deg, transparent 44%, rgba(255, 255, 255, 0.8) 44% 56%, transparent 56%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0 24%, transparent 24%),
    var(--c);
  box-shadow: inset 0 -1cqw 0 rgba(0, 0, 0, 0.16), 0 1cqw 1.6cqw rgba(0, 0, 0, 0.35);
}
.claw-prize img {
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  border: 0.6cqw solid #ffffff;
}
.claw-prize.is-off {
  opacity: 0.45;
}
.claw-prize.is-taken {
  visibility: hidden;
}
.claw-held {
  left: 50%;
  top: 6cqw;
  z-index: 1;
  width: 11cqw;
  font-size: 3.4cqw;
  padding-top: 1.8cqw;
  transform: translateX(-50%);
}
.claw-held.is-dropping {
  animation: claw-fall 0.55s ease-in forwards;
}
@keyframes claw-fall {
  to { transform: translate(-50%, 36cqw) scale(0.8); opacity: 0; }
}
.claw-chute {
  position: absolute;
  left: 3%;
  bottom: 0;
  z-index: 4;
  width: 24%;
  height: 30%;
  border-radius: 2.4cqw 2.4cqw 0 0;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 0.6cqw rgba(255, 255, 255, 0.4);
}
.claw-chute-label {
  position: absolute;
  top: 1.4cqw;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 2.2cqw;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: #ffffff;
}

/* Gold teeth along the rim (a gap in the middle for the crane) */
.claw-teeth {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  gap: 0.8cqw;
  padding: 0 3%;
  pointer-events: none;
}
.claw-teeth span {
  width: 6cqw;
  background: linear-gradient(90deg, var(--gold-2), #ffe3a0 40%, var(--gold) 70%, var(--gold-2));
}
.claw-teeth-top { top: 0; }
.claw-teeth-top span {
  height: 7cqw;
  border-radius: 0 0 3cqw 3cqw / 0 0 6cqw 6cqw;
}
.claw-teeth-top span:nth-child(3) { margin-right: auto; }
.claw-teeth-bottom { bottom: 0; }
.claw-teeth-bottom span {
  height: 5.5cqw;
  border-radius: 3cqw 3cqw 0 0 / 5cqw 5cqw 0 0;
}
.claw-teeth-bottom span:nth-child(2) { margin-right: auto; }

/* Result popping up in the window */
.claw-reveal {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: background-color 0.3s ease;
}
.claw-reveal.show {
  background: rgba(5, 40, 44, 0.45);
}
.claw-reveal-card {
  display: grid;
  justify-items: center;
  gap: 1.6cqw;
  min-width: 46%;
  max-width: 82%;
  padding: 3.4cqw 4cqw;
  border-radius: 4cqw;
  background: #ffffff;
  box-shadow: 0 2cqw 5cqw rgba(5, 59, 64, 0.35);
  animation: reveal-pop 0.5s cubic-bezier(0.2, 1.5, 0.4, 1);
}
.claw.is-prize .claw-reveal-card {
  box-shadow: 0 0 0 0.8cqw #f7d27a, 0 2cqw 5cqw rgba(5, 59, 64, 0.35);
}
.claw-reveal-caption {
  margin-bottom: -0.6cqw;
  font-size: 3cqw;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a6a00;
}
.claw-reveal-pic {
  display: grid;
  place-items: center;
  width: 18cqw;
  height: 18cqw;
  border-radius: 50%;
  overflow: hidden;
  background: var(--c);
  font-size: 8cqw;
  font-weight: 900;
}
.claw-reveal-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #ffffff;
}
.claw-reveal-label {
  font-size: 5.2cqw;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  color: #053b40;
}

/* Control panel */
.claw-panel {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 5cqw;
  width: 100%;
  padding: 3.4cqw 5cqw 4.4cqw;
  border-radius: 3cqw;
  background: linear-gradient(180deg, #e6edef, #b9c7cc);
  box-shadow: inset 0 0.6cqw 0 #ffffff, 0 0.8cqw 0 var(--mint-3);
}
.claw-btn {
  position: relative;
  display: grid;
  place-items: center;
  transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.1s ease;
}
.claw-btn-arrow {
  width: 13cqw;
  height: 9.5cqw;
  border-radius: 2.4cqw;
  background: linear-gradient(180deg, #5cc0ff, #1e8fe0);
  box-shadow: 0 0 0 0.9cqw var(--gold), 0 1.3cqw 0 0.9cqw var(--gold-2);
}
.claw-btn-arrow::before {
  content: '';
  border-top: 2.4cqw solid transparent;
  border-bottom: 2.4cqw solid transparent;
}
.claw-btn-left::before { border-right: 3.4cqw solid #ffffff; margin-right: 0.8cqw; }
.claw-btn-right::before { border-left: 3.4cqw solid #ffffff; margin-left: 0.8cqw; }
.claw-btn-ok {
  justify-self: end;
  width: 19cqw;
  height: 11cqw;
  border-radius: 50%;
  font-size: 4.6cqw;
  font-weight: 900;
  color: #ffffff;
  background: radial-gradient(circle at 42% 30%, #ffb08a, #ff6a2a 55%, #d8430e);
  box-shadow: 0 0 0 0.9cqw #d9e0e2, 0 1.3cqw 0 0.9cqw #93a3a8;
}
.claw-btn.is-pressed {
  transform: translateY(1cqw);
  filter: brightness(1.12);
}
.claw-btn-arrow.is-pressed { box-shadow: 0 0 0 0.9cqw var(--gold), 0 0.3cqw 0 0.9cqw var(--gold-2); }
.claw-btn-ok.is-pressed { box-shadow: 0 0 0 0.9cqw #d9e0e2, 0 0.3cqw 0 0.9cqw #93a3a8; }

/* Base with fans */
.claw-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1cqw 1cqw 4cqw;
}
.claw-fan {
  width: 12cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, #5a6b70 0 14%, transparent 15%),
    repeating-conic-gradient(#dfe6e8 0 18deg, #9fb0b5 18deg 36deg);
  box-shadow: 0 0 0 1cqw var(--mint-3);
}
.is-spinning .claw-fan {
  animation: claw-fan 0.6s linear infinite;
}
@keyframes claw-fan {
  to { transform: rotate(360deg); }
}
.claw-grille {
  width: 32cqw;
  height: 8cqw;
  border-radius: 2cqw;
  background: repeating-linear-gradient(180deg, var(--mint-3) 0 0.8cqw, var(--mint) 0.8cqw 2cqw);
  box-shadow: inset 0 0 0 0.5cqw var(--mint-3);
}
.claw-stage.is-closed .claw {
  filter: grayscale(0.85) opacity(0.6);
}

/* =========================================================================
   Gift pictures. Each gift can have a picture background colour (Admin → Wheel & gifts):
   .pic-bg  = the whole picture on a round disc in that colour (--pic-bg)
   .pic-bare = no backing at all: the picture shows exactly as uploaded, so a
               transparent PNG sits straight on the game.
   Set by pictureBox() on the picture's box, or on the <img> itself.
   ========================================================================= */
.pic-bare {
  border-radius: 0 !important;
  overflow: visible !important;
  background: none !important;
  box-shadow: none !important;
}
.pic-bare img,
img.pic-bare {
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  object-fit: contain !important;
}
.pic-bg {
  border-radius: 50% !important;
  overflow: hidden;
  background: var(--pic-bg) !important;
}
.pic-bg img,
img.pic-bg {
  box-sizing: border-box;
  padding: 12%;
  border: 0 !important;
  background: none !important;
  object-fit: contain !important;
}
img.pic-bg {
  background: var(--pic-bg) !important;
}
/* Slot tiles: a bare picture can be a little larger. */
.slot-img.pic-bare {
  width: 9cqw;
  height: 9cqw;
}
/* Claw machine: a picture replaces the gift box. */
.claw-prize.pic-bare,
.claw-prize.pic-bg {
  padding-top: 0;
}
.claw-prize.pic-bare img {
  width: 100%;
  filter: drop-shadow(0 0.8cqw 0.8cqw rgba(0, 0, 0, 0.35));
}
.claw-prize.pic-bg {
  box-shadow: 0 1cqw 1.6cqw rgba(0, 0, 0, 0.35);
}
.claw-prize.pic-bg img {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

/* A company without its own logo: its icon and name, in the logo's place (see brand.js). */
.brand-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-text[hidden] {
  display: none;
}
.brand-text img {
  flex: none;
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px;
}
.brand-text span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
a:has(> .brand-text) {
  text-decoration: none;
}
