/* ===== From the v8 plugin wavsyndicate-audio-previews (public.css) ===== */
/*
 * Public-facing audio preview styles.
 * Product card layout is handled entirely by the theme.
 */

/* Hide native audio element (controlled via JS) */
.product-card__audio,
.wsap-audio-element {
	display: none;
}

/* Pause-icon state used by legacy JS fallback */
.product-card__pause-icon {
	display: none;
}

/* Additional previews on single product page */
.wsap-additional-previews {
	background: var(--bg-card, #151515);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	padding: 0.75rem 1rem;
}

.wsap-previews-title {
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 0.5rem;
}

/* Custom audio player row */
.wsap-audio-player {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.55rem 0.75rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	margin-bottom: 0.35rem;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.wsap-audio-player:last-child {
	margin-bottom: 0;
}

.wsap-audio-player:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.15);
}

/* Play/pause button */
.wsap-audio-play {
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(237, 25, 83, 0.9);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease, background 0.2s ease;
}

.wsap-audio-play:hover {
	transform: scale(1.06);
	background: rgb(237, 25, 83);
}

.wsap-audio-play svg {
	width: 18px;
	height: 18px;
	display: block;
}

.wsap-audio-pause-icon {
	display: none;
	font-size: 0.85rem;
	letter-spacing: 0.05em;
	line-height: 1;
}

.wsap-audio-play.playing .wsap-audio-play-icon {
	display: none;
}

.wsap-audio-play.playing .wsap-audio-pause-icon {
	display: block;
}

/* Progress bar */
.wsap-audio-progress {
	flex: 1;
	height: 8px;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 4px;
	overflow: hidden;
	cursor: pointer;
	position: relative;
	transition: height 0.2s ease, background 0.2s ease;
}

.wsap-audio-progress:hover {
	background: rgba(255, 255, 255, 0.2);
}

.wsap-audio-progress-bar {
	width: 0%;
	height: 100%;
	background: rgb(237, 25, 83);
	border-radius: 0 4px 4px 0;
	transition: width 0.1s linear;
	pointer-events: none;
}

/* ============================================================
   PRODUCT STRUCTURE TREE (kit contents)
   ============================================================ */

.wsap-product-structure {
	padding: 0.75rem 1rem;
}

.wsap-product-structure__title {
	font-size: 0.95rem;
	font-weight: 700;
	color: #fff;
	margin: 0.35rem 0 0.35rem;
}

.wsap-structure-tree {
	max-height: 260px;
	overflow-y: auto;
}

.wsap-tree,
.wsap-tree-children__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wsap-tree-children {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.35s ease, opacity 0.25s ease;
	opacity: 0;
}

.wsap-tree-node.is-open > .wsap-tree-children {
	grid-template-rows: 1fr;
	opacity: 1;
}

.wsap-tree-children__list {
	overflow: hidden;
	padding-left: 1.25rem;
	border-left: 1px solid rgba(255, 255, 255, 0.08);
	margin-left: 0.55rem;
}

.wsap-tree-children__list > li {
	overflow: hidden;
}

.wsap-tree-row {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.2rem 0;
	cursor: default;
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.8rem;
	line-height: 1.25;
}

.wsap-tree-node--folder > .wsap-tree-row {
	cursor: pointer;
	color: #fff;
	font-weight: 600;
}

.wsap-tree-row:hover {
	color: rgb(237, 25, 83);
}

.wsap-tree-toggle {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease;
}

.wsap-tree-toggle svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.wsap-tree-node.is-open > .wsap-tree-row .wsap-tree-toggle {
	transform: rotate(90deg);
}

.wsap-tree-icon {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.6);
}

.wsap-tree-icon svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.wsap-tree-node--folder > .wsap-tree-row .wsap-tree-icon {
	color: rgb(237, 25, 83);
}

.wsap-tree-label {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ============================================================
   wavSyndicate CMS additions (replaces WooCommerce markup)
   ============================================================ */

.demo-banner {
  background: var(--lime);
  color: #000;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  padding: 0.4rem 1rem;
}

.notice {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  text-align: center;
}

.product-card__price del,
.product-price del {
  color: var(--text-muted);
  font-weight: 400;
  margin-right: 0.35rem;
}

/* Single product */
.woocommerce div.product .product-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 1rem;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn.added {
  background: transparent;
  color: var(--lime);
  border: 1px solid var(--lime);
}

.product-description {
  color: var(--text);
  margin-bottom: 1rem;
}

.product-description p,
.product-brief-contents__body p {
  margin-bottom: 0.6rem;
}

.product-description ul,
.product-brief-contents__body ul {
  padding-left: 1.2rem;
  margin-bottom: 0.6rem;
}

.product-meta-line {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.product-meta-line span {
  color: var(--white);
  font-weight: 600;
}

.product-meta-line--note {
  color: var(--text-muted);
}

.woocommerce div.product .wsap-additional-previews {
  margin-top: 0.75rem;
}

.woocommerce div.product .product-right-image img {
  width: 100%;
  height: auto;
}

.product-brief-contents__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin: 0.5rem 0 0.35rem;
}

.wsap-audio-label {
  flex: 0 1 40%;
  min-width: 0;
  font-size: 0.8rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tree rows are buttons now (keyboard accessible) */
button.wsap-tree-row {
  width: 100%;
  background: none;
  border: 0;
  font: inherit;
  text-align: left;
}

.wsap-tree-meta {
  flex-shrink: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 0.5rem;
}

.wsap-structure-tree {
  max-height: 340px;
}

/* Cart drawer */
.cart-drawer__item-remove {
  background: none;
  border: 0;
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
}

.cart-drawer__error {
  color: var(--pink);
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
}

/* «Payments are being set up» (no Stripe key yet) — information, not an error (2026-11-21) */
.cart-drawer__error--notice {
  color: var(--text, #fff);
  border-left: 3px solid var(--lime, #c6ff00);
  padding-left: 0.6rem;
}

.cart-drawer__actions .btn {
  width: 100%;
}

.cart-drawer__actions .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Success / downloads */
.download-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.download-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}

.download-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.download-item__info strong {
  color: var(--white);
}

.download-item__info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Grid children must be allowed to shrink, or long file names in the kit
   tree (nowrap) widen the right column past the viewport. */
.woocommerce div.product > * {
  min-width: 0;
}

.woocommerce div.product .product-right-image {
  align-self: start;
}

.wsap-tree-row,
.wsap-tree-label {
  min-width: 0;
}

.cart-count[hidden] {
  display: none;
}

/* Right column: cover + contents stacked, independent of the left height. */
.woocommerce div.product .product-right {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.woocommerce div.product .product-right .product-right-info {
  margin-top: 0;
}

@media (max-width: 768px) {
  .woocommerce div.product .product-right {
    grid-column: 1;
    grid-row: auto;
    margin-bottom: 1rem;
  }
}

/* Few products: keep the scroller centred instead of hugging the left. */
.product-scroll {
  justify-content: safe center;
}

/* The site header is fixed, so the demo notice sits at the bottom instead. */
.demo-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
}

body:has(.demo-banner) .site-footer {
  padding-bottom: 2.5rem;
}

/* Kit tree: the top folder row stays pinned while its files scroll, so it
   can be collapsed from anywhere in the list. */
.wsap-tree > .wsap-tree-node--folder > .wsap-tree-row {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg-card);
  box-shadow: 0 6px 8px -6px rgba(0, 0, 0, 0.6);
}

/* Keep the size column clear of the scrollbar. */
.wsap-structure-tree {
  padding-right: 0.6rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

/* ---------- Audit 2026-10-10: consent, legal pages, mobile ---------- */
.cart-consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted, #aaa);
  margin: 0.75rem 0 0.25rem;
  cursor: pointer;
}
.cart-consent input { margin-top: 0.2rem; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--accent, #c6ff00); }
.cart-consent a { color: inherit; text-decoration: underline; }
.cart-consent--missing { color: #ff6b6b; }
.cart-consent--missing input { outline: 2px solid #ff6b6b; outline-offset: 2px; }

.legal { padding-top: calc(64px + 2.5rem); }
.legal__container { max-width: 760px; }
.legal h2 { font-size: 1.15rem; margin: 2rem 0 0.6rem; }
.legal p, .legal li { line-height: 1.7; color: var(--text-muted, #bbb); }
.legal ul { padding-left: 1.2rem; }
.legal a { color: inherit; text-decoration: underline; }
.legal__updated { font-size: 0.85rem; opacity: 0.6; }
.legal__draft { display: inline-block; font-size: 0.8rem; padding: 0.3rem 0.8rem; border: 1px dashed currentColor; border-radius: 10px; opacity: 0.75; margin-bottom: 1rem; }

.product-mobile-cover { display: none; }
@media (max-width: 768px) {
  .site-logo img { height: 26px; }
  .product-mobile-cover { display: block; margin: 1.25rem 0 1rem; }
  .product-mobile-cover img { width: 100%; height: auto; border-radius: 12px; display: block; }
  .woocommerce div.product .product-right-image { display: none; }
  .woocommerce div.product .product_title { scroll-margin-top: 80px; }
}
/* Footer gained a "Legal" column. */
@media (min-width: 769px) {
  .site-footer__top { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* Free-kit signup (2026-10-13) */
.signup { max-width: 620px; text-align: center; }
.signup__form { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 1rem; }
.signup__form input[type=text], .signup__form input[type=email] { padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: inherit; font: inherit; }
.signup__form .btn { grid-column: 1 / -1; }
.signup__consent { grid-column: 1 / -1; font-size: .8rem; color: var(--text-muted, #aaa); text-align: left; display: flex; gap: 8px; align-items: flex-start; }
.signup__consent a { color: inherit; }
.signup__consent input { flex: none; margin: 3px 0 0; }
.signup__consent span { flex: 1; line-height: 1.45; }
.signup__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 600px) { .signup__form { grid-template-columns: 1fr; } }

/* Cart total next to the header cart icon (2026-10-15) */
.cart-total { font-weight: 700; font-size: .85rem; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cart-total[hidden] { display: none; }
.cart-link:hover .cart-total { color: var(--pink); }

/* Home page 3D gallery — product cards on the walls of a round room, seen from the middle
   (2026-10-24, ref «gallery of works», in the site's colours) */
.gallery3d { position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 62%, rgba(237, 25, 83, .10) 0%, rgba(18, 18, 18, 0) 60%), var(--bg); }
.gallery3d__room { --panel-w: 300px; position: relative; height: 880px; margin-top: 0; overflow: hidden; perspective-origin: 50% 50%; outline: none; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.gallery3d__room.is-dragging { cursor: grabbing; }
.gallery3d__ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; } /* motion: gallery.js (spring) */
/* lime walls (like the «gallery of works» reference); +2px width so neighbouring walls overlap without seams */
.gallery3d__panel { position: absolute; width: calc(var(--panel-w) + 2px); height: 530px; left: calc(var(--panel-w) / -2 - 1px); top: -265px; display: flex; align-items: center; justify-content: center; backface-visibility: hidden; transition: opacity .35s;
  /* one flat color per wall; gallery.js darkens it by the wall's position in the room (Rosti 2026-10-24) */
  background: var(--lime); }
.gallery3d__panel.is-hidden { opacity: 0; pointer-events: none; display: none; }
/* display:none (Rosti 2026-11-23 «height is huge»): the walls behind the viewer are projected millions of px tall.
   The slot/casino room is overflow:visible (lamp may swing above it; clip-path only clips painting), so Firefox and
   Safari counted those walls in the page size: the home page was 4.9 M px tall. Hidden walls must not take space. */
/* Seam lines across the card (Rosti 2026-10-24) are GPU tile edges of a layer drawn at a fractional
   scale/offset. The front wall is now drawn at exactly 1:1 on whole pixels (gallery.js), and no
   will-change, so the browser re-rasterises at the real size instead of stretching a cached texture. */
.gallery3d__exhibit { width: 200px; display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.gallery3d__panel .product-card { width: 100%; align-self: center; position: relative; box-shadow: 0 16px 34px rgba(0, 0, 0, .45); }
.gallery3d__panel .product-card:hover { transform: none; }
.gallery3d__panel:not(.is-front) .product-card * { pointer-events: none; }
.gallery3d__panel img, .gallery3d__panel a { -webkit-user-drag: none; user-drag: none; }
/* gallery lamp: a pink shade hanging from the ceiling over the front wall and a soft white light cone
   on the kit in front (Rosti 2026-10-24). Stays still while the room turns. */
.gallery3d__lamp { --wall-top: 175px; --lift: 30px; /* lamp hangs this far above the wall top */ position: absolute; inset: 0; pointer-events: none; z-index: 2; }
/* everything that swings hangs from one point at the top centre (gallery.js rotates it) */
.gallery3d__swing { position: absolute; left: 50%; top: 0; width: 0; height: 0; transform-origin: 0 0; }
.gallery3d__cord { position: absolute; left: -1px; top: 0; width: 2px; height: calc(var(--wall-top) - var(--lift) - 34px); background: linear-gradient(180deg, rgba(60, 60, 60, 0) 0%, rgba(60, 60, 60, 0) 40%, rgba(60, 60, 60, .35) 72%, #3a3a3a 100%); } /* starts well below the heading: the lamp must not look hung from the text */
.gallery3d__shade { position: absolute; left: -48px; top: calc(var(--wall-top) - var(--lift) - 36px); width: 96px; height: 34px;
 }
/* the shade can be pushed / grabbed (gallery.js); a bigger invisible hit area around it */
.gallery3d__shade { pointer-events: auto; cursor: grab; touch-action: none; }
.gallery3d__shade.is-held { cursor: grabbing; }
/* the shade itself is the (rectangular) hit area; the pink trapezoid is drawn by ::before */
.gallery3d__shade::before { content: ""; position: absolute; inset: 0; background: linear-gradient(58deg, var(--pink) 0 67%, #a3103a 67% 100%); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); border-radius: 2px; } /* flat pink; the shadow facet runs along the slanted right edge, from 60% of the top to 82% of the bottom (hard edge) */
.gallery3d__shade::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 34px; height: 10px; margin-left: -17px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px 6px rgba(255, 255, 255, .85), 0 0 32px 10px rgba(237, 25, 83, .45); }
.gallery3d__beam { position: absolute; left: -210px; top: calc(var(--wall-top) - var(--lift) - 4px); width: 420px; height: 590px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, .10) 30%, rgba(255, 255, 255, .04) 60%, rgba(255, 255, 255, 0) 88%);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); mix-blend-mode: screen; filter: blur(10px); }
@media (max-width: 640px) { .gallery3d__beam { width: 300px; height: 440px; left: -150px; } .gallery3d__shade { width: 80px; left: -40px; } }
/* gallery card: listen + open the kit, no price / cart */
.gallery-card__body { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: .9rem 1.1rem 1rem; color: inherit; text-decoration: none; }
.gallery-card__text { display: block; min-width: 0; }
.gallery-card__text .product-card__title { display: block; }
.gallery-card__body:hover .product-card__title, .gallery-card__body:focus-visible .product-card__title { color: var(--pink); }
.gallery3d__plaque { margin: 14px 0 0; padding: 0 2px; color: #0d0d0d; text-align: left; }
.gallery3d__plaque blockquote { margin: 0; font-size: .82rem; font-weight: 600; font-style: italic; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gallery3d__plaque figcaption { margin-top: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .7; }
@media (max-width: 640px) { .gallery3d__room { height: 770px; } .gallery3d__panel { height: 470px; top: -235px; } .gallery3d__exhibit { width: 205px; } .gallery3d__panel .btn--sm { padding-left: 10px; padding-right: 10px; } }

/* Joke slot machine after the FAQ (Rosti 2026-10-24): the gallery room + a lever on the right */
.slot-stage { position: relative; }
.slot-lever { position: absolute; z-index: 4; right: max(16px, 6%); top: 50%; width: 64px; height: 230px; margin-top: -115px; padding: 0; border: 0; background: none; cursor: pointer; touch-action: none; }
.slot-lever__base { position: absolute; left: 6px; right: 6px; bottom: 0; height: 70px; border-radius: 12px; background: linear-gradient(90deg, #2a2a2a, #444 45%, #1c1c1c); box-shadow: 0 8px 20px rgba(0, 0, 0, .5); }
.slot-lever__arm { position: absolute; left: 50%; bottom: 46px; width: 10px; height: 150px; margin-left: -5px; border-radius: 5px; background: linear-gradient(90deg, #8a8a8a, #e6e6e6 45%, #7a7a7a); transform-origin: 50% 100%; transition: transform .22s cubic-bezier(.5, 0, .7, 1); }
.slot-lever__knob { position: absolute; left: 50%; top: -22px; width: 44px; height: 44px; margin-left: -22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff7aa0, var(--pink) 45%, #a3103a 100%); box-shadow: 0 6px 14px rgba(0, 0, 0, .45); }
/* pulled: the arm tips TOWARD the viewer (3D, pivot at the base) and the knob stays facing you */
.slot-lever { perspective: 320px; perspective-origin: 50% 60%; }
.slot-lever__arm { transform-style: preserve-3d; }
.slot-lever__knob { transition: transform .22s cubic-bezier(.5, 0, .7, 1); }
.slot-lever.is-pulled .slot-lever__arm { transform: rotateX(-78deg); transition-duration: .18s; }
.slot-lever.is-pulled .slot-lever__knob { transform: rotateX(78deg); transition-duration: .18s; }
.slot-lever:hover .slot-lever__knob, .slot-lever:focus-visible .slot-lever__knob { filter: brightness(1.12); }
.slot-result { min-height: 1.6em; margin: 6px 0 0; text-align: center; font-weight: 700; color: var(--white); }
.slot-result a { color: var(--lime); }
/* "Now playing" pop-up after a casino drop (Rosti 2026-10-27, like Rocket League's track pop-up) */
.now-playing { position: fixed; left: 18px; bottom: 18px; z-index: 60; display: flex; align-items: center; gap: 12px; width: min(340px, calc(100vw - 36px)); padding: 10px 12px; border-radius: 12px; background: rgba(13, 3, 3, .92); box-shadow: 0 10px 30px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .08); backdrop-filter: blur(8px); overflow: hidden; transform: translateX(calc(-100% - 30px)); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.now-playing.is-on { transform: none; }
body:has(.demo-banner) .now-playing { bottom: 51px; }   /* above the test-mode banner */
.now-playing__cover { flex: none; width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: #222; }
.now-playing__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.now-playing__label { font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #FF0055; }
.now-playing__name { font-weight: 700; color: var(--white, #fff); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-playing__kit { font-size: .8rem; color: #BBEF1F; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-playing__kit:hover { text-decoration: underline; }
.now-playing__mute { flex: none; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--white, #fff); cursor: pointer; }
.now-playing__mute svg { width: 18px; height: 18px; fill: currentColor; }
.now-playing__mute.is-muted { color: #8a8a8a; }
.now-playing__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: var(--np, 0%); background: #FF0055; }
@media (prefers-reduced-motion: reduce) { .now-playing { transition: none; } }
@media (max-width: 640px) { .slot-lever { right: 8px; transform: scale(.8); transform-origin: 100% 50%; } }

/* «I'm more of a gamble type»: each letter cycles through RGB colors and bobs up and down, with a
   per-letter delay so the rainbow and the wave travel along the word like RGB lighting (Rosti 2026-10-24) */
.rgb-wave span { display: inline-block; animation: rgb-color 2.4s linear infinite, rgb-bob 1.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.09s), calc(var(--i) * -0.09s); text-shadow: 0 0 18px currentColor; }
@keyframes rgb-color { 0% { color: #ff1f5a; } 16% { color: #ff8a00; } 33% { color: #ffe600; } 50% { color: #2bf31f; } 66% { color: #00d4ff; } 83% { color: #a64dff; } 100% { color: #ff1f5a; } }
@keyframes rgb-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .rgb-wave span { animation: rgb-color 6s linear infinite; } }
/* slot section: the title sits lower, over the dark ceiling of the room (Rosti 2026-10-24) */
.gallery3d--slot > .container { position: relative; z-index: 5; padding-top: 90px; margin-bottom: -90px; pointer-events: none; }
/* the lever's knob lights up with a quick double blink every 5 s — a hint to pull it (Rosti 2026-10-24) */
.slot-lever__knob { animation: lever-blink 5s ease-in-out infinite; }
@keyframes lever-blink {
  0%, 84%, 100% { box-shadow: 0 6px 14px rgba(0, 0, 0, .45); filter: none; }
  88% { box-shadow: 0 0 22px 8px rgba(255, 60, 120, .85), 0 0 50px 14px rgba(255, 60, 120, .45); filter: brightness(1.35); }
  91% { box-shadow: 0 6px 14px rgba(0, 0, 0, .45); filter: none; }
  95% { box-shadow: 0 0 22px 8px rgba(255, 60, 120, .85), 0 0 50px 14px rgba(255, 60, 120, .45); filter: brightness(1.35); }
}
@media (prefers-reduced-motion: reduce) { .slot-lever__knob { animation: none; } }
/* the arm comes toward the viewer, so it is drawn in front of the base */
.slot-lever__base { z-index: 1; }
.slot-lever__arm { z-index: 2; }
/* slot room: walls 30% lower than the gallery's, lever standing on the floor in front of the front wall,
   right of the card (Rosti 2026-10-24) */
.gallery3d--slot .gallery3d__room { height: 620px; }
.gallery3d--slot .gallery3d__panel { height: 370px; top: -185px; }
.gallery3d--slot .slot-lever { right: auto; left: calc(50% + 130px); top: auto; bottom: 70px; margin-top: 0; }
@media (max-width: 640px) {
  .gallery3d--slot .gallery3d__room { height: 560px; }
  .gallery3d--slot .gallery3d__panel { height: 330px; top: -165px; }
  .gallery3d--slot .slot-lever { left: auto; right: 10px; bottom: 60px; transform: scale(.75); transform-origin: 100% 100%; }
}
.gallery3d--slot > .container { padding-top: 40px; margin-bottom: -40px; } /* lower walls → lamp is higher, keep the title clear of it */
/* while the room spins the lever is "busy": grey knob, no blinking; red and blinking again when ready */
.slot-lever.is-busy { cursor: default; }
/* grey layer over the red knob: fades in when busy, out when ready (gradients can't be transitioned) */
.slot-lever__knob::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d8d8d8, #8f8f8f 45%, #555 100%); opacity: 0; transition: opacity .6s ease; }
.slot-lever.is-busy .slot-lever__knob { animation: none; }
.slot-lever.is-busy .slot-lever__knob::after { opacity: 1; }
.slot-lever.is-ready .slot-lever__knob { animation: lever-wake 1s ease-out; }
@keyframes lever-wake {
  0% { box-shadow: 0 6px 14px rgba(0, 0, 0, .45); filter: none; }
  45% { box-shadow: 0 0 22px 8px rgba(255, 60, 120, .85), 0 0 50px 14px rgba(255, 60, 120, .45); filter: brightness(1.35); }
  100% { box-shadow: 0 6px 14px rgba(0, 0, 0, .45); filter: none; }
}
/* slot room: the lamp may swing up past the room's top edge into the title area — it is not clipped
   there and stays under the title text (title .container z-index 5); walls are still clipped at the sides */
.gallery3d--slot .gallery3d__room { overflow: visible; clip-path: inset(-260px 0 0 0); }
/* slot room: the lamp can loop all the way round — nothing clips it at the top (not the room, not the
   section); it still stays under the section title */
.gallery3d--slot { overflow: visible; }
.gallery3d--slot .gallery3d__room { clip-path: inset(-3000px 0 0 0); }
/* the slot room at 80% so the whole machine fits on screen (Rosti 2026-10-25); zoom keeps the layout
   (and the space it takes) in step with the size, unlike transform: scale */
.gallery3d--slot .slot-stage { zoom: .8; }

/* ===== Casino (Rosti 2026-10-25) — under Best Sellers ===== */
/* brand-dark casino floor: deep black with a pink glow from the top and lime from the bottom, and
   rows of chasing marquee bulbs top and bottom */
.gallery3d--casino { position: relative; padding-top: 40px; padding-bottom: 40px;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(237, 25, 83, .22), transparent 70%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(43, 243, 31, .14), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 14px),
    #0c0a0e; }
.casino-lights { position: absolute; left: 0; right: 0; height: 14px; pointer-events: none; z-index: 1;
  background-image: radial-gradient(circle, #ff3d7f 0 3px, transparent 3.5px), radial-gradient(circle, #2bf31f 0 3px, transparent 3.5px);
  background-size: 40px 14px, 40px 14px; background-position: 0 50%, 20px 50%; animation: casino-chase 1.2s steps(2) infinite;
  filter: drop-shadow(0 0 4px rgba(255, 61, 127, .8)); }
.casino-lights--top { top: 8px; } .casino-lights--bottom { bottom: 8px; }
@keyframes casino-chase { to { background-position: 20px 50%, 40px 50%; } }

/* rarity colors: common grey, rare purple, legendary red */
.rarity-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; vertical-align: middle; }
.rarity-badge--common { background: #6d6d6d; }
.rarity-badge--rare { background: #8a2be2; box-shadow: 0 0 10px rgba(166, 77, 255, .7); }
.rarity-badge--legendary { background: #e01818; box-shadow: 0 0 12px rgba(255, 42, 42, .8); }
.gallery3d--casino .gallery3d__exhibit { position: relative; }
.gallery3d--casino .gallery3d__exhibit > .rarity-badge { position: absolute; z-index: 2; top: -10px; left: 50%; transform: translateX(-50%); }
.gallery3d--casino [data-rarity="common"] .gallery-card { box-shadow: 0 0 0 3px #8a8a8a, 0 14px 30px rgba(0, 0, 0, .45); }
.gallery3d--casino [data-rarity="rare"] .gallery-card { box-shadow: 0 0 0 3px #a64dff, 0 0 26px rgba(166, 77, 255, .65), 0 14px 30px rgba(0, 0, 0, .45); }
.gallery3d--casino [data-rarity="legendary"] .gallery-card { box-shadow: 0 0 0 3px #ff2a2a, 0 0 34px rgba(255, 42, 42, .75), 0 14px 30px rgba(0, 0, 0, .45); animation: legendary-pulse 1.6s ease-in-out infinite; }
@keyframes legendary-pulse { 50% { box-shadow: 0 0 0 3px #ff5a5a, 0 0 50px rgba(255, 42, 42, .95), 0 14px 30px rgba(0, 0, 0, .45); } }

/* the result line takes the rarity color */
.slot-result[data-rarity="rare"] { color: #c98bff; text-shadow: 0 0 14px rgba(166, 77, 255, .7); }
.slot-result[data-rarity="legendary"] { color: #ff5a5a; text-shadow: 0 0 16px rgba(255, 42, 42, .8); }

/* «Your drops» list */
.casino-drops { position: relative; z-index: 3; max-width: 720px; margin: 22px auto 0; padding: 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.casino-drops__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.casino-drops__head h3 { margin: 0; font-size: 1.05rem; color: var(--white); }
.casino-drops__legend { display: flex; gap: 6px; }
.casino-drops__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 300px; overflow-y: auto; }
.casino-drop { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); border-left: 3px solid #6d6d6d; }
.casino-drop--rare { border-left-color: #a64dff; background: rgba(166, 77, 255, .08); }
.casino-drop--legendary { border-left-color: #ff2a2a; background: rgba(255, 42, 42, .09); }
.casino-drop img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex: none; }
.casino-drop__title { flex: 1; min-width: 0; font-weight: 600; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.casino-drop__dl { flex: none; font-size: .8rem; font-weight: 600; color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.slot-result a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.casino-drop__n { min-width: 2.2em; text-align: right; font-weight: 800; color: var(--text-muted, #aaa); }
.casino-drops__empty { margin: 0; color: var(--text-muted, #888); text-align: center; }

/* lever locked for the day (once-a-day mode) */
.slot-lever.is-locked { cursor: not-allowed; }
.slot-lever.is-locked .slot-lever__knob { animation: none; }
.slot-lever.is-locked .slot-lever__knob::after { opacity: 1; }

/* rare → confetti over the whole page */
.casino-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 10000; }

/* legendary → the site goes dark, a lightning bolt strikes twice, then the light comes back */
.casino-blackout { position: fixed; inset: 0; z-index: 9999; pointer-events: none; background: #000; opacity: 0; }
.casino-blackout svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
/* natural lightning: thin white core, soft blue-white glow, thinner fading forks */
.casino-bolt path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.casino-bolt__core { stroke: #fff; stroke-width: 2.4; }
.casino-bolt__glow { stroke: rgba(190, 215, 255, .55); stroke-width: 10; filter: blur(6px); }
.casino-bolt__fork { stroke: rgba(235, 242, 255, .8); stroke-width: 1.2; }
.casino-blackout::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; }
.casino-blackout.is-on { animation: casino-dark 1.7s ease forwards; }
.casino-blackout.is-on svg { animation: casino-bolt 1.7s linear forwards; }
.casino-blackout.is-on::after { animation: casino-flash 1.7s linear forwards; }
@keyframes casino-dark { 0% { opacity: 0; } 12% { opacity: .96; } 72% { opacity: .96; } 100% { opacity: 0; } }
@keyframes casino-bolt { 0%, 55% { opacity: 0; } 57% { opacity: 1; } 61% { opacity: .15; } 64% { opacity: 1; } 72% { opacity: 0; } 100% { opacity: 0; } }
@keyframes casino-flash { 0%, 55% { opacity: 0; } 57% { opacity: .55; } 60% { opacity: 0; } 64% { opacity: .35; } 68%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .casino-lights { animation: none; } .gallery3d--casino [data-rarity="legendary"] .gallery-card { animation: none; } }

/* casino mod menu (?mod=1): a draggable "cheat" panel, game-hack style */
.mod-menu { position: fixed; z-index: 9000; right: 18px; top: 120px; width: 200px; font: 12px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; color: #d9ffd4;
  background: rgba(8, 10, 8, .9); border: 1px solid #2bf31f; border-radius: 8px; box-shadow: 0 0 0 1px rgba(43, 243, 31, .2), 0 0 24px rgba(43, 243, 31, .25), 0 12px 30px rgba(0, 0, 0, .6); backdrop-filter: blur(6px); user-select: none; }
.mod-menu__bar { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; cursor: grab; border-bottom: 1px solid rgba(43, 243, 31, .35); background: linear-gradient(90deg, rgba(43, 243, 31, .25), rgba(237, 25, 83, .2)); border-radius: 8px 8px 0 0; font-weight: 800; letter-spacing: .12em; touch-action: none; }
.mod-menu__bar:active { cursor: grabbing; }
.mod-menu__bar em { font-style: normal; opacity: .6; font-weight: 400; letter-spacing: 0; }
.mod-menu__body { display: grid; gap: 6px; padding: 10px; }
.mod-menu button { font: inherit; text-align: left; padding: 6px 8px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); color: #e8e8e8; cursor: pointer; }
.mod-menu button:hover { background: rgba(255, 255, 255, .09); }
.mod-menu button.is-on { border-color: #2bf31f; color: #2bf31f; background: rgba(43, 243, 31, .12); }
.mod-menu .mod-menu__common.is-on { border-color: #9a9a9a; color: #d0d0d0; background: rgba(160, 160, 160, .15); }
.mod-menu .mod-menu__rare.is-on { border-color: #a64dff; color: #d1a6ff; background: rgba(166, 77, 255, .18); }
.mod-menu .mod-menu__legendary.is-on { border-color: #ff2a2a; color: #ff8a8a; background: rgba(255, 42, 42, .18); }
.mod-menu__lock { display: flex; align-items: center; gap: 6px; margin-top: 2px; opacity: .85; cursor: pointer; }
.mod-menu__state { margin-top: 2px; padding-top: 6px; border-top: 1px dashed rgba(43, 243, 31, .3); color: #2bf31f; }
.mod-menu__sep { margin-top: 4px; padding-top: 6px; border-top: 1px dashed rgba(43, 243, 31, .3); opacity: .7; text-transform: uppercase; letter-spacing: .1em; font-size: 10px; }

/* ===== Casino layout v2 (Rosti 2026-10-27, marked-up screenshot) =====
   the whole section at 80% (like the browser zoomed out), the lever moved off the centre walls to the
   right where the floor starts, «You got» as a stamped label with an icon download button */
.gallery3d--casino { zoom: .8; overflow-x: clip; }   /* the 3D ring must not widen the page */
.gallery3d--slot .slot-lever { left: min(calc(50% + 535px), calc(100% - 96px)); right: auto; bottom: 6px; }   /* Rosti 27.10: lower and left, on the floor */
.slot-result { display: flex; align-items: center; justify-content: center; gap: 14px; width: fit-content; max-width: calc(100% - 32px); min-height: 0; margin: 14px auto 0; padding: 0; font-weight: 700; }
.slot-result:not(:empty) { padding: 8px 8px 8px 20px; border-radius: 14px; background: #0D0303; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 10px 30px rgba(0, 0, 0, .45); }
.slot-result__label { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #BBEF1F; white-space: nowrap; }
.slot-result strong { font-size: 1.15rem; color: var(--white, #fff); }
.slot-result[data-rarity="rare"] strong { color: #c98bff; }
.slot-result[data-rarity="legendary"] strong { color: #ff5a5a; }
.slot-result[data-rarity] { text-shadow: none; }
.dl-btn { flex: none; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: #7b2cff; color: #fff !important; text-decoration: none !important; box-shadow: 0 6px 18px rgba(123, 44, 255, .45); transition: transform .15s, background .15s, color .15s; }
.dl-btn svg { width: 22px; height: 22px; }
.dl-btn:hover, .dl-btn:focus-visible { background: #BBEF1F; color: #0D0303 !important; transform: translateY(-1px); }
.casino-drop .dl-btn { width: 34px; height: 34px; border-radius: 8px; box-shadow: none; }
.casino-drop .dl-btn svg { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .gallery3d--casino { zoom: 1; }
  .slot-result:not(:empty) { flex-wrap: wrap; justify-content: center; text-align: center; }
}

/* ===== Collection book (Rosti 2026-10-27) — a hardcover that opens and flips; owned drops in colour ===== */
.casino-book-open { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; padding: 7px 14px; border: 0; border-radius: 999px; background: #FF0055; color: #fff; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgba(255, 0, 85, .35); transition: background .15s, color .15s, transform .15s; }
.casino-book-open svg { width: 18px; height: 18px; }
.casino-book-open:hover, .casino-book-open:focus-visible { background: #BBEF1F; color: #0D0303; transform: translateY(-1px); }
.casino-book-open__n { padding: 1px 7px; border-radius: 999px; background: rgba(0, 0, 0, .25); font-variant-numeric: tabular-nums; }
.book-overlay { --pw: min(380px, calc((100vw - 48px) / 2)); --ph: min(calc(var(--pw) * 1.38), calc(100vh - 150px)); position: fixed; inset: 0; z-index: 9000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: rgba(5, 2, 2, .82); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.book-overlay.is-on { opacity: 1; }
.book-close { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.book-close:hover { background: #FF0055; }
.book { position: relative; width: calc(var(--pw) * 2); height: var(--ph); perspective: 2600px; transition: transform .9s cubic-bezier(.3, .1, .2, 1); }
.book.is-closed { transform: translateX(-25%); }
.book.is-end { transform: translateX(25%); }
.book-leaf { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-origin: 0 50%; transform-style: preserve-3d; will-change: transform; transition: transform .9s cubic-bezier(.3, .1, .2, 1); cursor: pointer; }
.book-leaf.is-flipped { transform: rotateY(-180deg); }
.book-face { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 0 10px 10px 0; }
.book-face--back { transform: rotateY(180deg); border-radius: 10px 0 0 10px; }
.book-face--front { transform: rotateY(0deg) translateZ(.5px); }   /* own 3D layer: no backface flicker */
.book-face--back { transform: rotateY(180deg) translateZ(.5px); }
/* paper: a white sheet, darker towards the spine, a stack of page edges on the outside */
.book-page { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 22px 22px 34px 26px; color: #141414; background: linear-gradient(90deg, rgba(0, 0, 0, .16), rgba(0, 0, 0, 0) 9%), #f6f6f3; box-shadow: inset -3px 0 0 #e2e2dc, inset -5px 0 0 #fafaf7, inset -7px 0 0 #dcdcd5; }
.book-face--back .book-page { padding: 22px 26px 34px 22px; background: linear-gradient(270deg, rgba(0, 0, 0, .16), rgba(0, 0, 0, 0) 9%), #f6f6f3; box-shadow: inset 3px 0 0 #e2e2dc, inset 5px 0 0 #fafaf7, inset 7px 0 0 #dcdcd5; }
.book-pn { position: absolute; bottom: 10px; right: 18px; font-size: .7rem; color: #9a9a92; font-variant-numeric: tabular-nums; }
.book-face--back .book-pn { right: auto; left: 18px; }
/* the cover: black hardcover, pink corners, a lime counter sticker */
.book-cover { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 34px; color: #fff; background: radial-gradient(ellipse at 30% 20%, #2a1418, #0D0303 70%); box-shadow: inset 10px 0 18px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.book-cover::before, .book-cover::after { content: ""; position: absolute; right: 0; width: 34px; height: 34px; background: #FF0055; }
.book-cover::before { top: 0; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.book-cover::after { bottom: 0; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.book-cover__brand { font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: #FF0055; }
.book-cover__title { margin: 10px 0 6px; font-size: calc(var(--pw) * .125); font-weight: 900; line-height: .92; text-transform: uppercase; letter-spacing: -.01em; }
.book-cover__vol { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: #9a9a9a; }
.book-cover__count { position: absolute; right: 30px; bottom: 54px; display: grid; place-items: center; width: 86px; height: 86px; border-radius: 50%; background: #BBEF1F; color: #0D0303; font-size: 1.3rem; font-weight: 900; transform: rotate(-12deg); box-shadow: 0 8px 18px rgba(0, 0, 0, .5); }
.book-cover__hint { position: absolute; left: 34px; bottom: 26px; font-size: .72rem; color: #777; }
/* intro page */
.book-page--intro h4 { margin: 6px 0 14px; font-size: 1.6rem; font-weight: 900; text-transform: uppercase; line-height: 1; }
.book-intro__owner { margin: 0 0 22px; font-size: .85rem; color: #555; display: flex; gap: 8px; }
.book-intro__owner i { flex: 1; border-bottom: 1px solid #999; }
.book-intro__bar { height: 12px; border-radius: 6px; background: #e1e1db; overflow: hidden; }
.book-intro__bar b { display: block; height: 100%; background: linear-gradient(90deg, #FF0055, #BBEF1F); }
.book-intro__got { margin: 8px 0 18px; color: #555; }
.book-intro__got strong { font-size: 1.4rem; color: #141414; }
.book-intro__r { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.book-intro__r li { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 8px; background: #ececE6; font-weight: 700; font-variant-numeric: tabular-nums; }
.book-intro__r--rare { color: #6a1fd1; }
.book-intro__r--legendary { color: #c81818; }
.book-intro__note { margin-top: auto; font-size: .8rem; color: #777; }
.book-page--end { align-items: center; justify-content: center; text-align: center; color: #9a9a92; font-style: italic; }
/* slots: a sticker album — numbered, grey until found */
.book-grid { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-height: 0; }
.book-grid--6 { grid-template-rows: repeat(3, 1fr); }
.book-grid--4 { grid-template-rows: repeat(2, 1fr); }
.book-slot { position: relative; display: flex; flex-direction: column; min-height: 0; padding: 6px; border-radius: 8px; background: #fff; color: inherit; text-decoration: none; box-shadow: 0 2px 6px rgba(0, 0, 0, .14), inset 0 0 0 2px #c9c9c9; }
.book-slot--rare { box-shadow: 0 2px 6px rgba(0, 0, 0, .14), inset 0 0 0 2px #a64dff; }
.book-slot--legendary { box-shadow: 0 2px 10px rgba(255, 42, 42, .35), inset 0 0 0 2px #ff2a2a; }
.book-slot__no { position: absolute; top: 4px; left: 6px; z-index: 1; padding: 0 5px; border-radius: 4px; background: rgba(13, 3, 3, .8); color: #fff; font-size: .62rem; font-weight: 700; }
.book-slot__img { flex: 1; min-height: 0; border-radius: 5px; overflow: hidden; background: #1a1a1a; }
.book-slot__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book-slot__t { margin-top: 5px; font-size: .72rem; font-weight: 700; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-slot__meta { display: flex; justify-content: space-between; align-items: center; gap: 4px; font-size: .62rem; color: #777; }
.book-slot__n { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: #141414; }
.book-slot__n svg { width: 12px; height: 12px; }
.book-slot--rare .book-slot__r { color: #6a1fd1; }
.book-slot--legendary .book-slot__r { color: #c81818; }
a.book-slot { transition: transform .15s; }
a.book-slot:hover { transform: translateY(-2px) rotate(-1deg); }
.book-slot.is-missing { background: #ececE6; box-shadow: inset 0 0 0 2px #cfcfc8; }
.book-slot.is-missing .book-slot__img { background: #d6d6d0; }
.book-slot.is-missing .book-slot__img img { filter: grayscale(1) contrast(.75) brightness(1.15); opacity: .35; }
.book-slot.is-missing .book-slot__t, .book-slot.is-missing .book-slot__n { color: #9a9a92; font-weight: 600; }
.book-slot.is-missing .book-slot__r { color: #9a9a92; }
.book-nav { display: flex; gap: 14px; }
.book-nav button { width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.book-nav button:hover:not(:disabled) { background: #FF0055; }
.book-nav button:disabled { opacity: .3; cursor: default; }
@media (max-width: 640px) {
  .book-overlay { --pw: calc((100vw - 16px) / 2); }
  .book-page { padding: 12px 10px 26px 12px; }
  .book-face--back .book-page { padding: 12px 12px 26px 10px; }
  .book-grid { gap: 6px; }
  .book-slot__meta { display: none; }
  .book-cover { padding: 18px; }
  .book-cover__count { width: 60px; height: 60px; font-size: 1rem; right: 14px; bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) { .book, .book-leaf { transition: none; } }
/* back cover (Rosti 2026-10-27): logo, fake critic quotes, the slogan, a barcode */
.book-cover--back { justify-content: flex-start; gap: 12px; padding: 30px 30px 26px; box-shadow: inset -10px 0 18px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.book-cover--back::before, .book-cover--back::after { right: auto; left: 0; }
.book-cover--back::before { clip-path: polygon(0 0, 100% 0, 0 100%); }
.book-cover--back::after { clip-path: polygon(0 0, 100% 100%, 0 100%); }
.book-back__logo { width: 72%; max-width: 260px; height: auto; margin: 4px auto 6px; display: block; }
.book-back__lead { margin: 0 0 4px; font-size: .95rem; font-weight: 800; line-height: 1.25; color: #BBEF1F; text-align: center; }
.book-cover--back blockquote { margin: 0; padding-left: 12px; border-left: 3px solid #FF0055; font-size: .82rem; font-style: italic; line-height: 1.35; color: #e9e9e9; }
.book-cover--back cite { display: block; margin-top: 2px; font-size: .7rem; font-style: normal; color: #8a8a8a; }
.book-back__slogan { margin: auto 0 0; font-size: .75rem; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; color: #FF0055; }
.book-back__isbn { display: flex; align-items: flex-end; gap: 10px; padding: 8px 10px; border-radius: 4px; background: #fff; color: #111; }
.book-back__isbn i { flex: none; width: 92px; height: 40px; background: repeating-linear-gradient(90deg, #111 0 2px, #fff 2px 3px, #111 3px 4px, #fff 4px 7px, #111 7px 10px, #fff 10px 11px, #111 11px 12px, #fff 12px 14px); }
.book-back__isbn span { font-size: .62rem; line-height: 1.25; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .book-cover--back { padding: 16px 14px; gap: 8px; }
  .book-cover--back blockquote:nth-of-type(3) { display: none; }
  .book-back__isbn i { width: 56px; height: 28px; }
}
/* «You got» v3 (Rosti 2026-10-27): the space is always reserved (nothing below jumps when it appears),
   «YOU GOT» on its own line above the name, and the download button in the store's lime style
   (like .btn--lime: lime fill, dark arrow; on hover outlined) instead of purple */
.slot-result { display: flex; align-items: center; justify-content: flex-start; gap: 18px; box-sizing: border-box; width: fit-content; max-width: calc(100% - 32px); height: 72px; min-height: 0; margin: 14px auto 0; padding: 0 12px 0 22px; border-radius: var(--radius, 14px); background: transparent; box-shadow: none; transition: background .25s, box-shadow .25s; }
.slot-result:not(:empty) { padding: 0 12px 0 22px; background: #0D0303; box-shadow: inset 0 0 0 1px rgba(43, 243, 31, .22), 0 0 24px rgba(43, 243, 31, .08), 0 10px 30px rgba(0, 0, 0, .45); }
.slot-result[data-rarity="rare"]:not(:empty) { box-shadow: inset 0 0 0 1px rgba(166, 77, 255, .5), 0 0 26px rgba(166, 77, 255, .2), 0 10px 30px rgba(0, 0, 0, .45); }
.slot-result[data-rarity="legendary"]:not(:empty) { box-shadow: inset 0 0 0 1px rgba(255, 42, 42, .55), 0 0 28px rgba(255, 42, 42, .25), 0 10px 30px rgba(0, 0, 0, .45); }
.slot-result > * { animation: result-in .35s ease-out both; }
@keyframes result-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.slot-result__text { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; line-height: 1.15; text-align: left; }
.slot-result__label { font-size: .68rem; letter-spacing: .22em; color: var(--lime, #2BF31F); }
.slot-result strong { max-width: 100%; font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-btn { width: 46px; height: 46px; border: 2px solid var(--lime, #2BF31F); border-radius: var(--radius, 10px); background: var(--lime, #2BF31F); color: #0D0303 !important; box-shadow: 0 0 18px rgba(43, 243, 31, .35); }
.dl-btn svg { width: 22px; height: 22px; }
.dl-btn:hover, .dl-btn:focus-visible { background: transparent; color: var(--lime, #2BF31F) !important; box-shadow: 0 0 22px rgba(43, 243, 31, .5); transform: translateY(-1px); }
.casino-drop .dl-btn { width: 36px; height: 36px; border-radius: 8px; box-shadow: none; }
.casino-drop .dl-btn:hover, .casino-drop .dl-btn:focus-visible { box-shadow: 0 0 14px rgba(43, 243, 31, .45); }
@media (max-width: 640px) {
  .slot-result, .slot-result:not(:empty) { flex-wrap: nowrap; padding: 0 10px 0 16px; gap: 12px; }
  .slot-result strong { max-width: 58vw; font-size: 1rem; }
}
/* «You got» leaving on the next pull (Rosti 2026-10-27): contents lift and fade, then the box dims */
.slot-result.is-leaving:not(:empty) { background: transparent; box-shadow: none; transition: background .3s ease-in .08s, box-shadow .3s ease-in .08s; }
.slot-result.is-leaving > * { animation: result-out .3s cubic-bezier(.4, 0, 1, 1) forwards; }
@keyframes result-out { to { opacity: 0; transform: translateY(-8px) scale(.97); filter: blur(2px); } }
@media (prefers-reduced-motion: reduce) { .slot-result > *, .slot-result.is-leaving > * { animation: none; } }
/* the site header slides away while the casino fills the screen (Rosti 2026-10-27, gallery.js casino-focus) */
.site-header { transition: transform .35s cubic-bezier(.3, .1, .2, 1), opacity .35s; }
body.casino-focus .site-header { transform: translateY(-100%); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }
/* tighter: «You got» sits right under the walls (Rosti 2026-10-27, smaller gap) */
.gallery3d--casino .slot-result { position: relative; z-index: 6; margin-top: -74px; }
@media (max-width: 640px) { .gallery3d--casino .slot-result { margin-top: -40px; } }
.mod-menu .mod-menu__x { margin-left: 8px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 4px; background: rgba(43, 243, 31, .12); color: #2bf31f; font: 14px/1 inherit; cursor: pointer; }
.mod-menu .mod-menu__x:hover { background: #ff2a2a; color: #fff; }
/* legendary v2 (Rosti 2026-10-27): three full-height bolts (centre + mirrored pair), staggered; the page quakes */
.casino-blackout.is-on svg { animation: none; opacity: 1; }
.casino-bolt__strike { opacity: 0; }
.casino-blackout.is-on .casino-bolt__strike { animation: casino-bolt 1.7s linear forwards; }
.casino-bolt__core { stroke-width: 3; }
.casino-bolt__glow { stroke-width: 16; filter: blur(9px); stroke: rgba(190, 215, 255, .6); }
html.casino-quake body { animation: casino-quake .5s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes casino-quake { 10%, 90% { transform: translate(-2px, 1px); } 20%, 80% { transform: translate(4px, -2px); } 30%, 50%, 70% { transform: translate(-7px, 3px); } 40%, 60% { transform: translate(7px, -3px); } }
@media (prefers-reduced-motion: reduce) { html.casino-quake body { animation: none; } }
/* legendary timing v2 (Rosti 2026-10-27: «too much delay between blackout and lightning, after lightning should ease out»):
   dark in 0.16 s, strike at ~0.35 s, then the blackout eases out over ~1.1 s */
.casino-blackout.is-on { animation: casino-dark2 1.6s forwards; }
.casino-blackout.is-on::after { animation: casino-flash2 1.6s linear forwards; }
.casino-blackout.is-on .casino-bolt__strike { animation: casino-bolt2 1.6s linear forwards; }
@keyframes casino-dark2 { 0% { opacity: 0; animation-timing-function: ease-in; } 10% { opacity: .96; } 30% { opacity: .96; animation-timing-function: cubic-bezier(.15, .55, .3, 1); } 100% { opacity: 0; } }
@keyframes casino-bolt2 { 0%, 20% { opacity: 0; } 22% { opacity: 1; } 26% { opacity: .15; } 29% { opacity: 1; animation-timing-function: ease-out; } 55%, 100% { opacity: 0; } }
@keyframes casino-flash2 { 0%, 20% { opacity: 0; } 22% { opacity: .6; } 25% { opacity: 0; } 29% { opacity: .4; } 36%, 100% { opacity: 0; } }
/* legendary v3 (Rosti 2026-10-27: «ease out of darkness slowly», «look like lightnings, not lines»):
   3.2 s — dark in 0.16 s, strikes from ~0.35 s a beat apart (gallery.js), a brief dark hold, then the
   darkness lifts slowly; bolts: soft wide halo + glow + tapered white core, thin fading branches */
.casino-blackout.is-on { animation: casino-dark3 3.2s forwards; }
.casino-blackout.is-on::after { animation: casino-flash3 3.2s linear forwards; }
.casino-blackout.is-on .casino-bolt__strike { animation: casino-bolt3 3.2s linear forwards; }
.casino-bolt__halo { stroke: rgba(150, 180, 255, .28); stroke-width: 34; filter: blur(18px); }
.casino-bolt__glow { stroke: rgba(200, 220, 255, .75); stroke-width: 9; filter: blur(4px); }
.casino-bolt__core { stroke: #fff; }
.casino-bolt__fork { stroke: #eef3ff; filter: drop-shadow(0 0 3px rgba(190, 210, 255, .9)); }
@keyframes casino-dark3 { 0% { opacity: 0; animation-timing-function: ease-in; } 5% { opacity: .96; } 20% { opacity: .96; animation-timing-function: cubic-bezier(.45, .05, .3, 1); } 100% { opacity: 0; } }
@keyframes casino-bolt3 { 0%, 10.5% { opacity: 0; } 11% { opacity: 1; } 12.5% { opacity: .1; } 13.5% { opacity: 1; } 14.5% { opacity: .5; } 15.5% { opacity: 1; animation-timing-function: ease-out; } 30%, 100% { opacity: 0; } }
@keyframes casino-flash3 { 0%, 10.5% { opacity: 0; } 11% { opacity: .55; } 12.5% { opacity: 0; } 13.5% { opacity: .4; } 15% { opacity: .08; } 15.5% { opacity: .3; } 19%, 100% { opacity: 0; } }
/* v3.1 (Rosti 2026-10-27: «still look like lines; for a split second before it gets bright there is a normal lightning»):
   the white flash lights the sky BEHIND the bolts instead of washing them out, and the glow is thinner so the
   jagged core and its branches carry the shape */
.casino-blackout svg { z-index: 2; }
.casino-blackout::after { z-index: 1; }
.casino-bolt__halo { stroke: rgba(150, 180, 255, .16); stroke-width: 26; filter: blur(16px); }
.casino-bolt__glow { stroke: rgba(200, 220, 255, .45); stroke-width: 5; filter: blur(2.5px); }
.casino-bolt__fork { stroke: #f2f6ff; filter: drop-shadow(0 0 2px rgba(190, 210, 255, .95)); }
@keyframes casino-flash3 { 0%, 10.5% { opacity: 0; } 11% { opacity: .35; } 12.5% { opacity: 0; } 13.5% { opacity: .25; } 15% { opacity: .05; } 15.5% { opacity: .18; } 19%, 100% { opacity: 0; } }
/* the sky flash follows the four lightning waves (gallery.js casinoFx.WAVE = 110 ms = 3.44% of 3.2 s) */
.casino-blackout.is-on::after { animation: casino-flash4 3.2s linear forwards; }
@keyframes casino-flash4 { 0%, 10.5% { opacity: 0; } 11% { opacity: .28; } 12.2% { opacity: 0; } 14.4% { opacity: .3; } 15.6% { opacity: .02; } 17.9% { opacity: .26; } 19.1% { opacity: .02; } 21.3% { opacity: .4; } 23% { opacity: .1; } 23.6% { opacity: .22; } 29%, 100% { opacity: 0; } }
/* v3.2 (Rosti 2026-10-27: «fine for a split second, then look like lines»). Causes found and fixed:
   1) the quake moved <body>; a transformed body becomes the containing block of position:fixed children, so
      the blackout + bolts jumped to the top of the document (off-screen while scrolled) for the whole quake
      and came back already faded. Now only the page content (.site-main) shakes; the overlay stays put.
   2) a drop-shadow filter on every branch (≈100 filtered paths) cost frames — replaced by a plain glow stroke.
   3) the overlay gets its own compositing layer. */
html.casino-quake body { animation: none; }
html.casino-quake .site-main { animation: casino-quake .5s cubic-bezier(.36, .07, .19, .97) both; }
.casino-blackout { will-change: opacity; contain: strict; }
.casino-bolt__fork { filter: none; stroke: #f2f6ff; }
.casino-bolt__forkglow { fill: none; stroke: rgba(185, 205, 255, 1); stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { html.casino-quake .site-main { animation: none; } }
/* «You got» v4 (Rosti 2026-10-27, «fix download button alignment»): the button and the text share the same top and
   bottom edge — «YOU GOT» starts where the button starts, the name ends where it ends */
.slot-result, .slot-result:not(:empty) { align-items: stretch; padding: 13px 13px 13px 22px; }
.slot-result__text { justify-content: space-between; padding: 1px 0; }
.slot-result__label, .slot-result strong { line-height: 1; }
.slot-result .dl-btn { align-self: stretch; width: auto; height: auto; aspect-ratio: 1 / 1; }
@media (max-width: 640px) { .slot-result, .slot-result:not(:empty) { padding: 13px 12px 13px 16px; } }
/* the casino title takes taps (5 quick taps = mod menu on phones; gallery.js) though its container lets clicks through */
.gallery3d--casino .section__title { pointer-events: auto; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
/* the collection book as an object next to «Your drops» (Rosti 2026-10-27): a closed hardcover lying at an
   angle, page edges on the right, the lime counter sticker; it lifts on hover, click opens the book */
.casino-floor { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 56px; max-width: 1120px; margin: 22px auto 24px; padding: 0 16px; }
.casino-floor .casino-drops { flex: 0 1 720px; margin: 0; min-width: 0; }
.casino-book { position: relative; flex: none; width: 210px; height: 284px; padding: 0; border: 0; background: none; cursor: pointer; perspective: 900px; color: #fff; font: inherit; text-align: left; }
.casino-book__cover, .casino-book__pages { position: absolute; inset: 0; border-radius: 4px 12px 12px 4px; transform: rotateY(-16deg) rotateX(4deg); transform-origin: 0 50%; transition: transform .35s cubic-bezier(.3, .1, .2, 1), box-shadow .35s; }
.casino-book__pages { background: repeating-linear-gradient(180deg, #f4f4f0 0 2px, #d8d8d2 2px 3px); transform: rotateY(-16deg) rotateX(4deg) translate3d(9px, 5px, -8px); box-shadow: 0 30px 40px rgba(0, 0, 0, .55); }
.casino-book__cover { display: flex; flex-direction: column; justify-content: center; padding: 24px 22px 24px 30px; overflow: hidden; background: radial-gradient(ellipse at 30% 20%, #2a1418, #0D0303 70%); box-shadow: inset 12px 0 0 #050101, inset 13px 0 0 rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(255, 255, 255, .08), 0 18px 30px rgba(0, 0, 0, .5); }
.casino-book__cover::before, .casino-book__cover::after { content: ""; position: absolute; right: 0; width: 26px; height: 26px; background: #FF0055; }
.casino-book__cover::before { top: 0; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.casino-book__cover::after { bottom: 0; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.casino-book__brand { font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: #FF0055; }
.casino-book__title { margin: 8px 0 4px; font-size: 1.75rem; font-weight: 900; line-height: .92; text-transform: uppercase; }
.casino-book__vol { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: #9a9a9a; }
.casino-book__count { position: absolute; right: 16px; bottom: 40px; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--lime, #2BF31F); color: #0D0303; font-size: 1rem; font-weight: 900; transform: rotate(-12deg); box-shadow: 0 6px 14px rgba(0, 0, 0, .5); }
.casino-book__hint { position: absolute; left: 30px; bottom: 18px; font-size: .62rem; color: #777; transition: color .2s; }
.casino-book:hover .casino-book__cover, .casino-book:focus-visible .casino-book__cover { transform: rotateY(-8deg) rotateX(2deg) translateY(-6px); box-shadow: inset 12px 0 0 #050101, inset 13px 0 0 rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(255, 0, 85, .5), 0 26px 40px rgba(0, 0, 0, .55), 0 0 30px rgba(255, 0, 85, .25); }
.casino-book:hover .casino-book__pages, .casino-book:focus-visible .casino-book__pages { transform: rotateY(-8deg) rotateX(2deg) translate3d(8px, -1px, -8px); }
.casino-book:hover .casino-book__hint { color: var(--lime, #2BF31F); }
.casino-book:focus-visible { outline: none; }
@media (max-width: 900px) {
  .casino-floor { flex-direction: column; gap: 26px; }
  .casino-floor .casino-drops { width: 100%; }
  .casino-book { width: 150px; height: 204px; }
  .casino-book__title { font-size: 1.25rem; }
  .casino-book__count { width: 48px; height: 48px; font-size: .8rem; right: 10px; bottom: 30px; }
}
@media (prefers-reduced-motion: reduce) { .casino-book__cover, .casino-book__pages { transition: none; } }
/* the book object is not the old pink pill button */
.casino-book.casino-book-open, .casino-book.casino-book-open:hover, .casino-book.casino-book-open:focus-visible { display: block; padding: 0; border-radius: 0; background: none; box-shadow: none; color: #fff; transform: none; }
.casino-book .casino-book__count { padding: 0; }
/* «Your drops» stays centred and is the layout reference; the book lies to its left without moving it
   (Rosti 2026-10-27). Narrow screens: the book sits above the list. */
.casino-floor { display: block; max-width: 720px; padding: 0; }
.casino-floor .casino-drops { width: 100%; }
.casino-floor .casino-book { position: absolute; right: calc(100% + 64px); top: 50%; margin-top: -142px; }
@media (max-width: 1050px) {
  .casino-floor { display: flex; flex-direction: column; align-items: center; gap: 26px; max-width: 720px; padding: 0 16px; }
  .casino-floor .casino-book { position: relative; right: auto; top: auto; margin-top: 0; }
}
/* the book flies from the page into the middle (Rosti 2026-10-27; gallery.js casinoBook FLIP): the book itself
   is visible from the first frame — only the dark backdrop, the arrows and × fade in/out around it */
.book-overlay { opacity: 1; background: rgba(5, 2, 2, 0); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); transition: background .45s, backdrop-filter .45s, -webkit-backdrop-filter .45s; }
.book-overlay.is-on { background: rgba(5, 2, 2, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.book-overlay .book-nav, .book-overlay .book-close { opacity: 0; transition: opacity .3s; }
.book-overlay.is-on .book-nav, .book-overlay.is-on .book-close { opacity: 1; transition-delay: .45s; }
.book-fly { position: relative; will-change: transform; }
.book-fly .book-face { box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.casino-book.is-away { visibility: hidden; }
/* Rosti 2026-10-27: «move the wheel down, leave the headline and the lamp where they are, and add a magnifying
   frame to the middle item». The room grows by --drop and the ring's centre moves down by the same amount (the
   lamp and the heading are measured from the room's top, so they stay); the front item is magnified inside a
   frame once the room stands still (gallery.js toggles .is-still). */
.gallery3d--casino .gallery3d__room { --drop: 70px; height: calc(620px + var(--drop)); }
.gallery3d--casino .gallery3d__ring { top: calc(50% + var(--drop) / 2); }
.gallery3d--casino .gallery3d__lamp .gallery3d__beam { height: calc(590px + var(--drop)); }
.gallery3d--casino .gallery3d__exhibit { transition: transform .45s cubic-bezier(.2, .8, .2, 1.15); }
.gallery3d--casino .gallery3d__room.is-still .gallery3d__panel.is-front .gallery3d__exhibit { transform: scale(1.2); }
.slot-frame { position: absolute; left: 50%; top: calc(50% + var(--drop, 0px) / 2); z-index: 3; width: 268px; height: 396px; margin: -198px 0 0 -134px; border-radius: 22px; pointer-events: none;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .28), 0 0 0 1px rgba(0, 0, 0, .25), 0 0 40px rgba(255, 0, 85, .18);
  background:
    linear-gradient(#FF0055, #FF0055) 0 0 / 40px 5px no-repeat, linear-gradient(#FF0055, #FF0055) 0 0 / 5px 40px no-repeat,
    linear-gradient(#FF0055, #FF0055) 100% 0 / 40px 5px no-repeat, linear-gradient(#FF0055, #FF0055) 100% 0 / 5px 40px no-repeat,
    linear-gradient(#FF0055, #FF0055) 0 100% / 40px 5px no-repeat, linear-gradient(#FF0055, #FF0055) 0 100% / 5px 40px no-repeat,
    linear-gradient(#FF0055, #FF0055) 100% 100% / 40px 5px no-repeat, linear-gradient(#FF0055, #FF0055) 100% 100% / 5px 40px no-repeat,
    linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 35%);
  opacity: .45; transform: scale(.94); transition: opacity .35s, transform .45s cubic-bezier(.2, .8, .2, 1.15); }
.gallery3d--casino .gallery3d__room.is-still .slot-frame { opacity: 1; transform: none; }
@media (max-width: 640px) {
  .gallery3d--casino .gallery3d__room { --drop: 40px; height: calc(560px + var(--drop)); }
  .slot-frame { width: 236px; height: 350px; margin: -175px 0 0 -118px; }
}
/* frame centred on the magnified card (measured: the card sits 35px above the ring centre) */
.slot-frame { top: calc(50% + var(--drop, 0px) / 2 - 35px); width: 292px; height: 410px; margin: -205px 0 0 -146px; }
@media (max-width: 640px) { .slot-frame { top: calc(50% + var(--drop, 0px) / 2 - 30px); width: 250px; height: 360px; margin: -180px 0 0 -125px; } }
/* stronger magnifier: the side walls come towards the viewer in perspective, so the front card needs more */
.gallery3d--casino .gallery3d__room.is-still .gallery3d__panel.is-front .gallery3d__exhibit { transform: scale(1.35); }
.slot-frame { width: 304px; height: 436px; margin: -218px 0 0 -152px; }
/* «Now playing» seek bar (Rosti 2026-10-27): a thin line along the bottom with a tall invisible hit area;
   it thickens and shows a knob on hover; the fill is moved every frame by gallery.js (--np) */
.now-playing__seek { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; cursor: pointer; touch-action: none; outline: none; }
.now-playing__seek::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .1); transition: height .15s; }
.now-playing__seek .now-playing__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--np, 0%); background: #FF0055; transition: height .15s; }
.now-playing__seek .now-playing__bar::after { content: ""; position: absolute; right: -6px; bottom: -4.5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px rgba(255, 0, 85, .8); opacity: 0; transform: scale(.4); transition: opacity .15s, transform .15s; }
.now-playing__seek:hover::before, .now-playing__seek:hover .now-playing__bar, .now-playing__seek:focus-visible::before, .now-playing__seek:focus-visible .now-playing__bar { height: 5px; }
.now-playing__seek:hover .now-playing__bar::after, .now-playing__seek:focus-visible .now-playing__bar::after { opacity: 1; transform: none; bottom: -3.5px; }
/* the casino wheel a little lower still (headline and lamp stay) */
.gallery3d--casino .gallery3d__room { --drop: 100px; }
/* the knob must not be cut by the card edge: the seek line sits inside the card, 14px from both sides */
.now-playing { overflow: visible; }
.now-playing__seek { left: 14px; right: 14px; bottom: 6px; }
.gallery3d--casino .gallery3d__room { --drop: 135px; }   /* the magnified card and its frame clear the lamp */
/* (Rosti 2026-10-27) the lamp hangs from the top edge of the casino section: the pivot moves up by --hang
   (measured by gallery.js: room top → the marquee lights) and the cord becomes a visible line all the way */
.gallery3d--casino .gallery3d__swing { top: calc(-1 * var(--hang, 0px)); }
.gallery3d--casino .gallery3d__cord { left: -1px; width: 2px; height: calc(var(--hang, 0px) + var(--wall-top) - var(--lift) - 34px); background: linear-gradient(90deg, #2c2c2c, #6a6a6a 50%, #2c2c2c); }
.gallery3d--casino .gallery3d__shade { top: calc(var(--hang, 0px) + var(--wall-top) - var(--lift) - 36px); }
.gallery3d--casino .gallery3d__beam { top: calc(var(--hang, 0px) + var(--wall-top) - var(--lift) - 4px); }
/* the magnifier is part of the front card itself, so it always hugs it whatever the screen or zoom
   (the separate frame drifted off in Rosti's browser) */
.slot-frame { display: none; }
.gallery3d--casino .gallery3d__exhibit::after { content: ""; position: absolute; inset: -16px -12px -12px; border-radius: 18px; pointer-events: none; opacity: 0; transform: scale(.96); transition: opacity .3s, transform .45s cubic-bezier(.2, .8, .2, 1.15);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3), 0 0 30px rgba(255, 0, 85, .22);
  background:
    linear-gradient(#FF0055, #FF0055) 0 0 / 30px 4px no-repeat, linear-gradient(#FF0055, #FF0055) 0 0 / 4px 30px no-repeat,
    linear-gradient(#FF0055, #FF0055) 100% 0 / 30px 4px no-repeat, linear-gradient(#FF0055, #FF0055) 100% 0 / 4px 30px no-repeat,
    linear-gradient(#FF0055, #FF0055) 0 100% / 30px 4px no-repeat, linear-gradient(#FF0055, #FF0055) 0 100% / 4px 30px no-repeat,
    linear-gradient(#FF0055, #FF0055) 100% 100% / 30px 4px no-repeat, linear-gradient(#FF0055, #FF0055) 100% 100% / 4px 30px no-repeat; }
.gallery3d--casino .gallery3d__room.is-still .gallery3d__panel.is-front .gallery3d__exhibit::after { opacity: 1; transform: none; }
.gallery3d--casino .gallery3d__cord { width: 2px; background: linear-gradient(90deg, #3a3a3a, #a8a8a8 50%, #3a3a3a); box-shadow: 0 0 6px rgba(255, 0, 85, .25); }   /* visible on the dark casino wall */
/* the magnifier is the «You got» (Rosti 2026-10-27, sketch): after a drop the front card shows «YOU GOT» above
   its category and name, with the download button beside the name, all inside the frame; the separate result box
   under the room is only kept for screen readers */
.gallery3d--casino .slot-result, .gallery3d--casino .slot-result:not(:empty) { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; background: none; box-shadow: none; }
.gallery3d--casino .gallery-card__won { display: block; max-height: 0; overflow: hidden; opacity: 0; font-size: .62rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--lime, #2BF31F); transition: max-height .35s, opacity .3s, margin .35s; }
.gallery3d--casino .gallery3d__panel.is-won .gallery-card__won { max-height: 1.4em; margin-bottom: 4px; opacity: 1; }
.gallery3d--casino .gallery3d__panel.is-won[data-rarity="rare"] .gallery-card__won { color: #c98bff; }
.gallery3d--casino .gallery3d__panel.is-won[data-rarity="legendary"] .gallery-card__won { color: #ff5a5a; }
.gallery3d--casino .gallery-card__body { display: flex; align-items: flex-end; gap: 10px; }
.gallery3d--casino .gallery-card__text { flex: 1; min-width: 0; }
.gallery3d--casino .gallery-card__dl { width: 0; height: 34px; border-width: 0; opacity: 0; overflow: hidden; pointer-events: none; transform: scale(.6); box-shadow: none; transition: width .3s, opacity .3s, transform .35s cubic-bezier(.2, .8, .2, 1.3); }
.gallery3d--casino .gallery3d__panel.is-won .gallery-card__dl { width: 34px; border-width: 2px; opacity: 1; pointer-events: auto; transform: none; border-radius: 8px; }
.gallery3d--casino .gallery-card__dl svg { width: 18px; height: 18px; }
/* the room no longer needs the gap that the result box overlapped */
.gallery3d--casino .casino-floor { margin-top: 0; }
/* Rosti 2026-10-28: the lamp hangs at 2/5 of the width, on a shorter rope (--rope-cut lifts the shade) */
.gallery3d--casino .gallery3d__room { --rope-cut: 34px; }
.gallery3d--casino .gallery3d__swing { left: 27%; }   /* Rosti 28.10: «even more left» */
.gallery3d--casino .gallery3d__cord { height: calc(var(--hang, 0px) + var(--wall-top) - var(--lift) - 34px - var(--rope-cut)); }
.gallery3d--casino .gallery3d__shade { top: calc(var(--hang, 0px) + var(--wall-top) - var(--lift) - 36px - var(--rope-cut)); }
.gallery3d--casino .gallery3d__beam { top: calc(var(--hang, 0px) + var(--wall-top) - var(--lift) - 4px - var(--rope-cut)); }
/* «Engrave your certificate» (Rosti 2026-10-28): name first, then the signed PDF downloads */
.engrave { position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center; padding: 16px; background: rgba(5, 2, 2, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: engrave-in .25s ease-out; }
@keyframes engrave-in { from { opacity: 0; } to { opacity: 1; } }
.engrave__card { width: min(420px, 100%); padding: 26px 24px 18px; border-radius: 16px; background: #0D0303; color: #eee; box-shadow: inset 0 0 0 1px rgba(255, 42, 42, .45), 0 0 40px rgba(255, 42, 42, .25), 0 20px 60px rgba(0, 0, 0, .6); }
.engrave__kicker { font-size: .66rem; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: #ff5a5a; }
.engrave__card h3 { margin: 6px 0 6px; font-size: 1.35rem; color: #fff; }
.engrave__card p { margin: 0 0 16px; font-size: .85rem; color: #aaa; }
.engrave__name { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 2px solid rgba(255, 255, 255, .14); border-radius: 10px; background: #1a1212; color: #fff; font: inherit; font-size: 1.05rem; outline: none; }
.engrave__name:focus { border-color: #FF0055; }
.engrave__row { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.engrave__row button { padding: 10px 16px; border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer; }
.engrave__cancel { border: 2px solid rgba(255, 255, 255, .14); background: none; color: #ccc; }
.engrave__go { border: 2px solid var(--lime, #2BF31F); background: var(--lime, #2BF31F); color: #0D0303; }
.engrave__go:hover:not(:disabled) { background: transparent; color: var(--lime, #2BF31F); }
.engrave__go:disabled { opacity: .6; cursor: progress; }
.engrave__note { margin: 12px 0 0 !important; font-size: .72rem !important; color: #777 !important; }
/* phone casino (Rosti 2026-10-28, marked-up screenshots from the phone) */
@media (max-width: 1050px) {
  .casino-floor .casino-drops { flex: none; }   /* in the column layout flex-basis 720px was the box's HEIGHT: empty space under the list */
}
@media (max-width: 640px) {
  /* the magnified card and its frame fit inside the front wall (266px): the side walls no longer cut the pink corners
     and the card does not cover them (205 × 1.35 + frame was ~310px) */
  .gallery3d--casino .gallery3d__exhibit { width: 192px; }
  .gallery3d--casino .gallery3d__exhibit::after { inset: -14px -10px -10px; }
  .gallery3d--casino .gallery3d__room.is-still .gallery3d__panel.is-front .gallery3d__exhibit { transform: scale(1.18); }
  /* the lever stands on the floor under the room, right of the collection book (Rosti's drawing) */
  .gallery3d--slot .slot-lever { left: calc(50% + 74px); right: auto; top: calc(100% + 30px); bottom: auto; transform: scale(.75); transform-origin: 50% 100%; }
  /* the book: room around it (off the walls, away from «Your drops»), shifted left to leave the lever its spot */
  .gallery3d--casino .casino-floor { gap: 44px; padding-top: 28px; }
  .casino-floor .casino-book { margin-right: 120px; }
  .casino-book__cover { padding: 20px 14px 20px 26px; }
  .casino-book__title { font-size: 1.05rem; }   /* «COLLECTION» fits the cover instead of being cut at the N */
}
/* long drop names no longer widen the list's grid column past the box (phones lost the download buttons off the right edge) */
.casino-drops__list { grid-template-columns: minmax(0, 1fr); }
/* «Recently played» (Rosti 2026-10-27): the «Now playing» history under «Your drops», same box and rows */
.casino-played { max-width: 720px; margin: 0 auto 24px; }
.casino-played .casino-drops__head { margin-bottom: 12px; }
.casino-played__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.casino-played__text .casino-drop__title { flex: none; }
.casino-played__kit { font-size: .8rem; color: var(--lime, #2BF31F); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.casino-played__kit:hover, .casino-played__kit:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.casino-played .dl-btn { width: 36px; height: 36px; padding: 0; border-radius: 8px; box-shadow: none; cursor: pointer; }
.casino-played .dl-btn svg { width: 16px; height: 16px; }
.casino-played .dl-btn:hover, .casino-played .dl-btn:focus-visible { box-shadow: 0 0 14px rgba(43, 243, 31, .45); }
@media (max-width: 1050px) { .casino-played { max-width: min(688px, calc(100% - 32px)); } }   /* as wide as «Your drops» in the column layout */
/* desktop: the book hangs from the top of «Your drops» (a short list centred it up into the walls — Rosti 28.10) */
@media (min-width: 1051px) {
  .gallery3d--casino .casino-floor { margin-top: 28px; }
  .casino-floor .casino-book { top: 0; margin-top: 0; }
}
.casino-floor .casino-played { margin-top: 18px; }
@media (min-width: 1051px) { .gallery3d--casino .casino-floor { min-height: 300px; } }   /* room for the whole book */

/* Phones (Rosti 2026-10-28 «layout problems»): the 4 social buttons in one row were 61px wider than a 375px
   screen — the whole page got a sideways scroll. Two per row below 520px. */
@media (max-width: 520px) { .socials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Speed (2026-10-28 «casino lagging on phone»): each wall darkens by a black layer's opacity (gallery.js) instead of a
   new background colour every frame — the graphics card does it, nothing is repainted. The wall's content sits above it. */
.gallery3d__dim { position: absolute; inset: 0; z-index: 0; background: #000; opacity: 0; pointer-events: none; will-change: opacity; }
.gallery3d__panel > :not(.gallery3d__dim) { position: relative; z-index: 1; }

/* Lite effects (2026-10-28): html.fx-lite is set by site.js on weak phones (≤4 GB / ≤4 cores) and with Data Saver.
   Same features; blur and big soft shadows — the costliest things to draw on a phone — become flat equivalents. */
html.fx-lite .site-header, html.fx-lite .now-playing, html.fx-lite .book-overlay, html.fx-lite .book-overlay.is-on,
html.fx-lite .engrave, html.fx-lite .mod-menu { backdrop-filter: none; -webkit-backdrop-filter: none; }
html.fx-lite .site-header { background: rgba(18, 18, 18, .98); }
html.fx-lite .now-playing { background: rgba(13, 3, 3, .97); }
html.fx-lite .gallery3d__panel .product-card { box-shadow: 0 10px 18px rgba(0, 0, 0, .4); }
html.fx-lite .casino-bolt__halo { filter: none; stroke-width: 18; stroke: rgba(150, 180, 255, .1); }
html.fx-lite .casino-bolt__glow { filter: none; stroke-width: 4; stroke: rgba(200, 220, 255, .35); }
/* the casino title: words never break inside (index.php .rgb-wave__w); a space between them is the only break */
.rgb-wave__w { display: inline-block; white-space: nowrap; font-weight: inherit; }
.rgb-wave { word-spacing: .12em; }
/* weak phones: the glowing shadow of 25 colour-cycling letters is repainted every frame — dropped there */
html.fx-lite .rgb-wave span { text-shadow: none; }
/* the casino's fine print (Rosti 2026-10-28, legal): free to play, no money, the real chances */
.casino-fine { position: relative; z-index: 2; max-width: 640px; margin: 22px auto 0; padding: 0 16px 8px; text-align: center; font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, .5); }

/* the slogan under the logo (Rosti 2026-10-28: «in header under logo instead of hero section») */
.site-logo { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
.site-logo img { display: block; }
.site-logo__slogan { font-size: 10.5px; line-height: 1.2; font-weight: 500; letter-spacing: .02em; color: rgba(255, 255, 255, .62); white-space: nowrap; }
@media (max-width: 768px) { .site-logo__slogan { font-size: 9px; } }

/* Legendary on phones (2026-10-28 «audio glitches out and the animation feels glitched on mobile»): shaking the whole page
   re-draws the 3D room every frame, and five blurred full-screen bolts are heavy — on touch screens the phone vibrates
   instead (navigator.vibrate) and the bolts glow without blur filters. Desktop unchanged. */
@media (pointer: coarse) {
  html.casino-quake .site-main { animation: none; }
  .casino-bolt__halo { filter: none; stroke-width: 18; stroke: rgba(150, 180, 255, .1); }
  .casino-bolt__glow { filter: none; stroke-width: 4; stroke: rgba(200, 220, 255, .35); }
}
/* the current hero without the slogan (moved under the logo): its text takes the whole row */
.section--hero .hero { grid-template-columns: 1fr; }
/* slogan v2 (Rosti 2026-10-28 «slogan misaligned»): exactly as wide as the logo and centred under it, tucked closer */
.site-logo { align-items: center; gap: 0; }
.site-logo__slogan { font-size: 10px; letter-spacing: .18em; margin-top: -1px; text-align: center; }
@media (max-width: 768px) { .site-logo__slogan { font-size: 7.6px; letter-spacing: .15em; margin-top: 0; } }

/* idle visitor (idle.js, Rosti 2026-11-02): a clip at the pointer after a minute without moving */
.idle-pop { position: fixed; z-index: 2000; width: 240px; max-height: 200px; pointer-events: none; opacity: 0; transform: scale(.85) rotate(-3deg); transition: opacity .25s, transform .35s cubic-bezier(.2, .9, .25, 1.3); }
.idle-pop.is-on { opacity: 1; transform: none; }
.idle-pop img, .idle-pop video { display: block; width: 100%; max-height: 200px; object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 18px 40px rgba(0, 0, 0, .6); }

/* scrollbars (Rosti 2026-11-03: «remove that scroll on right, style it so it's not in the eyes»): thin and dark, the
   thumb lights up pink only on hover — the page bar and inner lists («Your drops») alike */
html { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .16) #0d0303; }
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .16) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-track { background: #0d0303; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #FF0055; }
::-webkit-scrollbar-button { display: none; height: 0; width: 0; }

/* casino cursor (Rosti 2026-11-03: «my pointer is broken in casino» — it kept flipping between the grab hand of the
   draggable room and the pointing hand of the cards as the walls moved under it): a plain arrow in the room, the
   pointing hand only on the lever and buttons, the closed hand only while dragging */
.gallery3d__room, .gallery3d__shade { cursor: default; }
.gallery3d__room.is-dragging, .gallery3d__shade.is-held, .gallery3d__room.is-dragging * { cursor: grabbing; }
.gallery3d__room .product-card, .gallery3d__room .gallery3d__panel { cursor: default; }
.gallery3d__room .slot-lever, .gallery3d__room .dl-btn, .gallery3d__room a, .gallery3d__room button { cursor: pointer; }
.gallery3d__room .slot-lever.is-busy { cursor: default; }
.gallery3d__room .slot-lever.is-locked { cursor: not-allowed; }

/* «Coming soon» products (D6 2026-11-21): cover visible, no price, no cart buttons */
.product-card .onsale--soon { background: rgba(18, 18, 18, 0.85); color: var(--lime); border: 1px solid var(--lime); }
.product-card__soon { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.shop-soon__title { margin-top: 3.5rem; font-size: 1.6rem; }
.product-soon { margin: 1rem 0 1.5rem; padding: 0.9rem 1.1rem; border: 1px dashed var(--lime); border-radius: var(--radius); }
.product-soon__label { margin: 0; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lime); }
.product-soon__text { margin: 0.3rem 0 0; font-size: 0.9rem; color: var(--text-muted); }
/* seller identity block on Terms / Privacy / Refund (D3 2026-11-21) */
.legal__seller { font-size: 0.9rem; padding: 0.8rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); margin: 0 0 1.5rem; }
.legal__seller p { margin: 0.15rem 0; }
.legal__todo { background: #ffe066; color: #121212; padding: 0 0.3rem; border-radius: 3px; font-weight: 700; }
