.coinopp {
	--co-red: #b3122c;
	--co-red-dark: #6b0a1a;
	--co-red-light: #e0203f;
	--co-black: #14141a;
	--co-steel: #2b2b34;
	--co-steel-light: #4a4a58;
	--co-led: #ffb020;
	--co-led-dim: rgba(255, 176, 32, 0.25);
	--co-gold: #f1c40f;
	--co-green: #2ecc71;
	--co-text: #f4f4f6;
	--co-font: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
	--co-mono: "SF Mono", "Fira Mono", Consolas, monospace;
	font-family: var(--co-font);
	color: var(--co-text);
	max-width: 2200px; /* the carousel coins grow with the screen (client 2026-09-24: 4-5x larger) */
	margin: 0 auto;
	padding: 20px;
	box-sizing: border-box;
	user-select: none;
	-webkit-user-select: none;
	position: relative;
}
.coinopp *, .coinopp *::before, .coinopp *::after { box-sizing: border-box; }
body.coinopp-page main.wp-block-group { margin-top: 0 !important; }
body.coinopp-page main > .wp-block-group { padding-top: 16px !important; }
body.coinopp-page .wp-block-post-title { display: none; }
body.coinopp-page .entry-content { margin-top: 0; }
body.coinopp-page .coinopp { padding-top: 20px; }
.coinopp button { font-family: inherit; }

.coinopp-stage {
	/* Three columns as in the client's layout (2026-09-22): carousel (right aligned), machine,
	   empty column for now. 30/40/30 since 2026-09-24 so the carousel coins can be big. */
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 3fr); /* minmax(0,..): the zoomed machine must not widen its column */
	align-items: stretch;
	perspective: 1600px;
}
.coinopp-stage > .coinopp-machine { grid-column: 2; justify-self: center; align-self: start; }
.coinopp-machine {
	position: relative;
	width: min(100%, 760px);
	transform-origin: 50% 100%;
	opacity: 0;
	animation: coinopp-appear 0.01s 1.6s forwards;
}
.coinopp-machine.is-ready { opacity: 1; animation: none; transition: opacity 0.25s ease; }
@keyframes coinopp-appear { to { opacity: 1; } }
.coinopp-winnings { opacity: 0; animation: coinopp-appear 0.01s 1.6s forwards; }
.coinopp.is-ready .coinopp-winnings { opacity: 1; animation: none; }
.coinopp-machine.is-shaking { animation: coinopp-shake 0.55s ease-in-out infinite; }
@keyframes coinopp-shake {
	0%, 100% { transform: translate(0, 0) rotate(0); }
	15% { transform: translate(-3px, 1px) rotate(-0.25deg); }
	30% { transform: translate(3px, -1px) rotate(0.25deg); }
	45% { transform: translate(-2px, 2px) rotate(-0.15deg); }
	60% { transform: translate(2px, -2px) rotate(0.15deg); }
	75% { transform: translate(-1px, 1px) rotate(-0.1deg); }
}

.coinopp-cabinet {
	background:
		linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0) 30%),
		linear-gradient(90deg, var(--co-red-dark), var(--co-red) 12%, var(--co-red) 88%, var(--co-red-dark));
	border-radius: 22px 22px 10px 10px;
	padding: 14px 18px 18px;
	box-shadow:
		0 30px 60px rgba(0,0,0,0.55),
		0 8px 16px rgba(0,0,0,0.35),
		inset 0 2px 0 rgba(255,255,255,0.18),
		inset 0 -4px 0 rgba(0,0,0,0.35);
	position: relative;
}
.coinopp-base {
	height: 26px;
	margin: 0 28px;
	background: linear-gradient(180deg, #1d1d24, #0b0b0f);
	border-radius: 0 0 12px 12px;
	box-shadow: 0 18px 30px rgba(0,0,0,0.5);
}

.coinopp-marquee {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	height: 58px;
	margin-bottom: 12px;
	border-radius: 14px;
	background: linear-gradient(180deg, #1a1a22, #0d0d12);
	box-shadow: inset 0 0 0 2px #3a3a48, inset 0 0 24px rgba(0,0,0,0.8), 0 2px 0 rgba(255,255,255,0.08);
}
.coinopp-marquee-text {
	font-weight: 900;
	font-size: clamp(18px, 3.4vw, 28px);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	background: linear-gradient(180deg, #fff6d5, var(--co-gold) 55%, #b8860b);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 0 8px rgba(241,196,15,0.55));
}

/* --- signage board: same LED font and colour as the token displays --- */
.coinopp-signage {
	flex: 1 1 auto;
	min-width: 0;
	align-self: center;
	display: flex;
	align-items: center;
	height: 40px;
	padding: 0 12px;
	border-radius: 8px;
	background: #05070a;
	box-shadow: inset 0 0 0 1px #2a2f3a, inset 0 0 14px rgba(0,0,0,0.9);
}
.coinopp-signage-screen {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
}
.coinopp-signage-track {
	display: flex;
	width: max-content;
	will-change: transform;
	animation-name: coinopp-signage-scroll;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}
.coinopp-signage-msg {
	flex: 0 0 auto;
	padding-right: 120px;
	font-family: var(--co-mono);
	font-size: clamp(15px, 2.4vw, 22px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.04em;
	white-space: nowrap;
	color: var(--co-led);
	text-shadow: 0 0 6px var(--co-led), 0 0 14px var(--co-led-dim);
}
@keyframes coinopp-signage-scroll {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(-50%, 0, 0); }
}

/* --- keypad background switcher --- */
.coinopp-key.is-bg-active {
	box-shadow: inset 0 0 0 2px var(--co-gold), 0 0 10px rgba(241,196,15,0.55);
}
.coinopp-marquee-bulbs {
	flex: 1;
	height: 10px;
	max-width: 160px;
	background-image: radial-gradient(circle, #ffd86b 0 3px, rgba(255,216,107,0.25) 3.5px, transparent 4.5px);
	background-size: 18px 10px;
	background-repeat: repeat-x;
	background-position: 0 50%;
	opacity: 0.9;
}
.coinopp-machine.is-flashing .coinopp-marquee-bulbs { animation: coinopp-bulbs 0.25s steps(2) infinite; }
.coinopp-machine.is-shaking .coinopp-marquee-bulbs { animation: coinopp-bulbs 0.16s steps(2) infinite; }
@keyframes coinopp-bulbs { to { background-position: 18px 50%; } }

.coinopp-body {
	display: grid;
	grid-template-columns: 1fr 150px;
	grid-template-areas: "window panel" "tray panel";
	gap: 14px;
}

.coinopp-window {
	grid-area: window;
	position: relative;
	border-radius: 12px;
	background:
		radial-gradient(120% 90% at 50% 0%, #2c2c38, #101015 70%);
	box-shadow: inset 0 0 0 6px #23232c, inset 0 0 0 8px #4a4a58, inset 0 0 40px rgba(0,0,0,0.85);
	padding: 10px 10px 12px;
	overflow: hidden;
	perspective: 900px;
}
.coinopp-categories {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 6px;
	padding: 4px 6px 8px;
}
.coinopp-category {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	font-size: 10px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-align: center;
	padding: 4px 3px;
	border-radius: 8px;
	color: #fff;
	background: linear-gradient(180deg, color-mix(in srgb, var(--cat) 85%, #fff), var(--cat));
	box-shadow: 0 2px 0 rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.35);
	overflow-wrap: anywhere;
}
.coinopp-shelves { display: flex; flex-direction: column; gap: 0; }
.coinopp-shelf {
	position: relative;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 6px;
	padding: 2px 6px 9px;
}
.coinopp-shelf-edge {
	position: absolute;
	left: 0; right: 0; bottom: 2px;
	height: 6px;
	background: linear-gradient(180deg, #6a6a7a, #34343f 60%, #1c1c24);
	border-radius: 2px;
	box-shadow: 0 3px 6px rgba(0,0,0,0.6);
}
.coinopp-slot {
	position: relative;
	z-index: 1;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	border-radius: 6px;
	outline: none;
	cursor: pointer;
	transition: transform 0.18s ease;
	perspective: 320px;
}
.coinopp-slot.is-empty { cursor: default; }
.coinopp-slot .coinopp-coil {
	position: absolute;
	left: 12%; right: 12%; bottom: 2px;
	height: 10px;
	background-image: repeating-linear-gradient(90deg, #9a9aaa 0 2px, transparent 2px 7px);
	opacity: 0.55;
	border-radius: 2px;
	mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.coinopp-box {
	width: 100%;
	height: auto;
	position: relative;
	top: 5%; /* sit a little lower in the cell */
	z-index: 2;
	transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.22s ease, opacity 0.3s ease;
	filter: drop-shadow(0 6px 6px rgba(0,0,0,0.5));
	transform-origin: 50% 90%;
}
.coinopp-box-img { width: 100%; height: auto; display: block; transform: scale(1.24); transform-origin: 50% 100%; }
.coinopp-box > .coinopp-gift { transform: scale(1.24); transform-origin: 50% 100%; }
.coinopp-slot:not(.is-empty):hover, .coinopp-slot:focus-visible, .coinopp-slot.is-selected { z-index: 4; }
/* Hover / selected: highlight in place, no lift (boxes stay in their row). */
.coinopp-slot:not(.is-empty):hover .coinopp-box,
.coinopp-slot:focus-visible .coinopp-box { filter: drop-shadow(0 6px 6px rgba(0,0,0,0.5)) brightness(1.12); }
.coinopp-slot.is-selected .coinopp-box {
	filter: drop-shadow(0 0 10px rgba(241,196,15,0.9)) drop-shadow(0 6px 6px rgba(0,0,0,0.5)) brightness(1.08);
}
.coinopp-gift {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}
.coinopp-gift .gift-shadow { fill: rgba(0,0,0,0.55); }
.coinopp-gift .gift-l { fill: var(--cat, #888); }
.coinopp-gift .gift-r { fill: color-mix(in srgb, var(--cat, #888) 58%, #000); }
.coinopp-gift .gift-lid-l { fill: color-mix(in srgb, var(--cat, #888) 82%, #fff); }
.coinopp-gift .gift-lid-r { fill: color-mix(in srgb, var(--cat, #888) 62%, #000); }
.coinopp-gift .gift-t { fill: color-mix(in srgb, var(--cat, #888) 60%, #fff); }
.coinopp-gift .gift-inner { fill: color-mix(in srgb, var(--cat, #888) 30%, #000); }
.coinopp-gift .gift-rib { fill: url(#coinopp-ribbon-v); }
.coinopp-gift .gift-rib-r { fill: url(#coinopp-ribbon-vr); }
.coinopp-gift .gift-rib-t { fill: url(#coinopp-ribbon-t); }
.coinopp-gift .gift-bow { fill: url(#coinopp-bow); stroke: rgba(120,80,0,0.55); stroke-width: 0.8; }
.coinopp-gift .gift-knot { fill: url(#coinopp-knot); }
.coinopp-gift .gift-hl { fill: url(#coinopp-hl); }
.coinopp-gift .gift-glow { fill: url(#coinopp-glow); opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; transform: scale(0.2); }
.coinopp-gift .gift-lid, .coinopp-gift .gift-ribv, .coinopp-gift .gift-bowg { transform-box: fill-box; }
.coinopp-gift .gift-lid { transform-origin: 20% 40%; transition: transform 0.7s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.4s ease 0.35s; }
.coinopp-gift .gift-ribv { transform-origin: 50% 0%; transition: transform 0.45s cubic-bezier(0.4, 0, 0.7, 1), opacity 0.4s ease; }
.coinopp-gift .gift-bowg { transform-origin: 50% 80%; transition: transform 0.45s cubic-bezier(0.34, 1.5, 0.64, 1), opacity 0.35s ease 0.1s; }
.coinopp-gift.is-opening .gift-ribv { transform: translateY(14px) scaleY(1.08); opacity: 0; }
.coinopp-gift.is-opening .gift-bowg { transform: translateY(-16px) rotate(-25deg) scale(1.15); opacity: 0; }
.coinopp-gift.is-open .gift-lid { transform: translate(-4px, -8px) rotate(-42deg) scale(0.94); }
.coinopp-gift .gift-burst { opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; transform: scale(0.2) rotate(0deg); }
.coinopp-gift .gift-ray { fill: url(#coinopp-ray); }
.coinopp-gift .gift-spark { fill: #fff6c8; opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; }
.coinopp-gift.is-open .gift-burst { animation: coinopp-gift-rays 1.7s cubic-bezier(0.22, 0.9, 0.36, 1) forwards; }
.coinopp-gift.is-open .gift-spark { animation: coinopp-gift-spark 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.coinopp-gift.is-open .gift-spark:nth-child(2) { animation-delay: 0.05s; }
.coinopp-gift.is-open .gift-spark:nth-child(3) { animation-delay: 0.1s; }
.coinopp-gift.is-open .gift-spark:nth-child(4) { animation-delay: 0.15s; }
.coinopp-gift.is-open .gift-spark:nth-child(5) { animation-delay: 0.08s; }
.coinopp-gift.is-open .gift-spark:nth-child(6) { animation-delay: 0.12s; }
.coinopp-gift.is-open .gift-spark:nth-child(7) { animation-delay: 0.03s; }
.coinopp-gift.is-open .gift-spark:nth-child(8) { animation-delay: 0.18s; }
@keyframes coinopp-gift-rays { 0% { opacity: 0; transform: scale(0.2) rotate(0deg); } 18% { opacity: 1; } 75% { opacity: 0.8; } 100% { opacity: 0; transform: scale(1.5) rotate(70deg); } }
@keyframes coinopp-gift-spark { 0% { opacity: 0; transform: translate(0,0) scale(0.4); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(0.3); } }
.coinopp-gift.is-open .gift-glow { opacity: 1; transform: scale(1.35); transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease; }
@keyframes coinopp-box-wobble {
	0%, 100% { transform: perspective(260px) rotateY(-10deg) rotateX(3deg); }
	50% { transform: perspective(260px) rotateY(10deg) rotateX(-2deg); }
}
.coinopp-slot:not(.is-empty):hover .coinopp-box,
.coinopp-slot:focus-visible .coinopp-box,
.coinopp-slot.is-selected .coinopp-box { animation: coinopp-box-wobble 4s ease-in-out infinite; }
.coinopp-slot.is-selected::after {
	content: "";
	position: absolute;
	inset: -2px -3px -2px; /* ring stays within the row; box may peek above it */
	border-radius: 8px;
	border: 2px solid var(--co-gold);
	box-shadow: 0 0 14px rgba(241,196,15,0.7), inset 0 0 14px rgba(241,196,15,0.25);
	animation: coinopp-pulse 1.1s ease-in-out infinite;
	pointer-events: none;
}
@keyframes coinopp-pulse { 50% { box-shadow: 0 0 4px rgba(241,196,15,0.4), inset 0 0 4px rgba(241,196,15,0.1); } }
.coinopp-slot.is-vended .coinopp-box, .coinopp-slot.is-vended .coinopp-box-count { opacity: 0; }
.coinopp-box-count {
	position: absolute;
	top: 2px; right: 2px;
	z-index: 6;
	min-width: 20px; height: 20px;
	padding: 0 6px;
	border-radius: 10px;
	background: rgba(0,0,0,0.75);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 20px;
	text-align: center;
	box-shadow: 0 0 0 1px rgba(255,255,255,0.25);
	pointer-events: none;
}
.coinopp-slot.is-shuffling .coinopp-box { transition: transform 0.55s cubic-bezier(0.34, 1.3, 0.64, 1); }
.coinopp-slot.is-returning .coinopp-box { animation: coinopp-return 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes coinopp-return { from { opacity: 0; transform: scale(0.2) translateY(-20px); } to { opacity: 1; transform: none; } }

.coinopp-glass {
	position: absolute;
	inset: 6px;
	border-radius: 8px;
	pointer-events: none;
	z-index: 5;
	background:
		linear-gradient(115deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.03) 30%, rgba(255,255,255,0) 45%, rgba(255,255,255,0.05) 70%, rgba(255,255,255,0.12) 100%);
	box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), inset 0 1px 0 rgba(255,255,255,0.25);
	overflow: hidden;
}
.coinopp-shimmer {
	position: absolute;
	top: -20%; bottom: -20%;
	left: -40%;
	width: 35%;
	background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.05) 35%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.05) 65%, transparent 100%);
	transform: skewX(-18deg);
	opacity: 0;
}
.coinopp-machine.is-shaking .coinopp-shimmer { animation: coinopp-shimmer 1.2s ease-in-out infinite; }
@keyframes coinopp-shimmer {
	0% { left: -40%; opacity: 0; }
	15% { opacity: 1; }
	85% { opacity: 1; }
	100% { left: 110%; opacity: 0; }
}
.coinopp-lights {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 4;
	opacity: 0;
	background:
		linear-gradient(90deg, rgba(255,176,32,0.35), transparent 20%, transparent 80%, rgba(255,176,32,0.35)),
		radial-gradient(60% 40% at 50% 0%, rgba(255,255,255,0.25), transparent);
}
.coinopp-machine.is-flashing .coinopp-lights { animation: coinopp-lights 0.3s steps(2) infinite; }
@keyframes coinopp-lights { to { opacity: 1; } }

.coinopp-flyer {
	position: absolute;
	z-index: 3;
	pointer-events: none;
	width: 0;
	transform-origin: 50% 90%;
	will-change: transform;
}
.coinopp-flyer .coinopp-box,
.coinopp-landed .coinopp-box { width: 100%; }
.coinopp-flyer .coinopp-box-img,
.coinopp-flyer .coinopp-gift,
.coinopp-landed .coinopp-box-img,
.coinopp-landed .coinopp-gift { filter: none; }
.coinopp-flyer .gift-shadow,
.coinopp-landed .gift-shadow { display: none; }
.coinopp-flyer .coinopp-box,
.coinopp-landed .coinopp-box { filter: none; }
/* Box sitting in the tray: 10% smaller than the shelf boxes (1.24 * 0.9). */
.coinopp-landed .coinopp-box-img,
.coinopp-landed .coinopp-box > .coinopp-gift { transform: scale(1.116); transform-origin: 50% 100%; }

.coinopp-panel {
	grid-area: panel;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px 10px;
	border-radius: 12px;
	background: linear-gradient(180deg, #1c1c24, #0f0f14);
	box-shadow: inset 0 0 0 2px #3a3a48, inset 0 0 20px rgba(0,0,0,0.8);
}

/* --- liquid glass cabinet: heavy blur + vibrancy, hairline rim --- */
.coinopp-cabinet {
	background:
		linear-gradient(115deg, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0.05) 20%, rgba(255,255,255,0) 44%),
		linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.06) 22%, rgba(255,255,255,0) 55%),
		linear-gradient(90deg, rgba(107,10,26,0.26), rgba(179,18,44,0.15) 12%, rgba(179,18,44,0.15) 88%, rgba(107,10,26,0.26));
	-webkit-backdrop-filter: blur(36px) saturate(185%) brightness(1.06);
	backdrop-filter: blur(36px) saturate(185%) brightness(1.06);
	box-shadow:
		0 40px 80px rgba(0,0,0,0.45),
		0 12px 28px rgba(0,0,0,0.30),
		inset 0 1px 0 rgba(255,255,255,0.45),
		inset 0 0 0 1px rgba(255,255,255,0.14),
		inset 0 -1px 0 rgba(0,0,0,0.30);
}
.coinopp-window {
	background:
		linear-gradient(160deg, rgba(255,255,255,0.16), rgba(255,255,255,0.02) 45%),
		linear-gradient(180deg, rgba(10,10,14,0.30), rgba(10,10,14,0.42));
	-webkit-backdrop-filter: blur(22px) saturate(170%);
	backdrop-filter: blur(22px) saturate(170%);
	box-shadow:
		inset 0 0 0 1px rgba(255,255,255,0.16),
		inset 0 1px 0 rgba(255,255,255,0.32),
		inset 0 0 40px rgba(0,0,0,0.35);
}
.coinopp-panel {
	background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.03) 40%, rgba(10,10,14,0.30));
	-webkit-backdrop-filter: blur(26px) saturate(175%);
	backdrop-filter: blur(26px) saturate(175%);
	box-shadow:
		inset 0 0 0 1px rgba(255,255,255,0.14),
		inset 0 1px 0 rgba(255,255,255,0.34);
}
.coinopp-display {
	background: #05070a;
	border-radius: 8px;
	padding: 6px 8px 8px;
	box-shadow: inset 0 0 0 1px #2a2f3a, inset 0 0 14px rgba(0,0,0,0.9);
}
.coinopp-display label {
	display: block;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #8d93a3;
	margin-bottom: 4px;
}
.coinopp-led {
	font-family: var(--co-mono);
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
	color: var(--co-led);
	text-shadow: 0 0 6px var(--co-led), 0 0 14px var(--co-led-dim);
	text-align: right;
	letter-spacing: 0.04em;
	white-space: nowrap;
	overflow: hidden;
	transition: color 0.2s ease;
}
.coinopp-led.is-bump { animation: coinopp-bump 0.35s ease; }
.coinopp-led.is-error { color: #ff4d4d; text-shadow: 0 0 8px #ff4d4d; animation: coinopp-blink 0.25s steps(2) 4; }
.coinopp-led-price.is-green { color: var(--co-green); text-shadow: 0 0 6px var(--co-green); }
@keyframes coinopp-bump { 50% { transform: scale(1.12); } }
@keyframes coinopp-blink { to { opacity: 0.2; } }
.coinopp-coinslot {
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg, #3a3a48, #22222b);
	border-radius: 6px;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}
.coinopp-coinslot span {
	width: 34px; height: 5px;
	background: #05070a;
	border-radius: 3px;
	box-shadow: inset 0 1px 2px #000, 0 1px 0 rgba(255,255,255,0.12);
}
.coinopp-buy {
	display: block !important;
	width: 100% !important;
	box-sizing: border-box;
	height: 54px;
	border: none;
	border-radius: 8px;
	font-size: 20px;
	font-weight: 900;
	letter-spacing: 0.16em;
	color: #2b1500;
	background: linear-gradient(180deg, #ffe27a, #f1b400 55%, #c98d00);
	box-shadow: 0 5px 0 #7a5400, 0 8px 16px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.6);
	cursor: pointer;
	transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.2s ease;
}
.coinopp-buy:hover:not(:disabled) { filter: brightness(1.08); }
.coinopp-buy:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 #7a5400, 0 3px 8px rgba(0,0,0,0.5); }
.coinopp-buy:disabled { filter: grayscale(0.7) brightness(0.55); cursor: not-allowed; box-shadow: 0 3px 0 #333, inset 0 1px 0 rgba(255,255,255,0.2); }
.coinopp-buy.is-ready { animation: coinopp-ready 1.2s ease-in-out infinite; }
@keyframes coinopp-ready { 50% { box-shadow: 0 5px 0 #7a5400, 0 0 24px rgba(241,196,15,0.8), inset 0 1px 0 rgba(255,255,255,0.6); } }
/* Terms gate: while locked, the secondary buttons are dimmed (they open the Terms pop-up); BUY reads START. */
.coinopp-machine.is-gated .coinopp-gettokens,
.coinopp-machine.is-gated .coinopp-vaultbtn { opacity: 0.55; cursor: pointer; }
.coinopp-machine.is-gated .coinopp-buy { letter-spacing: 0.12em; }
.coinopp-gettokens {
	display: block;
	text-align: center;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #0b0b0f !important;
	background: linear-gradient(180deg, #7ff0a8, #2ecc71);
	border-radius: 8px;
	padding: 7px 4px;
	text-decoration: none !important;
	box-shadow: 0 3px 0 #146b3a;
}
.coinopp-keypad {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
	padding: 6px 4px;
}
.coinopp-keypad span {
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #5a5a6c, #2a2a34 70%);
	box-shadow: 0 2px 0 #0b0b0f, inset 0 1px 0 rgba(255,255,255,0.2);
}
.coinopp-music {
	margin-top: auto;
	height: 34px;
	border-radius: 10px;
	border: 1px solid #3a3a48;
	background: #1a1a22;
	color: #8d93a3;
	font-size: 18px;
	cursor: pointer;
}
.coinopp-music[aria-pressed="true"] { color: var(--co-led); border-color: var(--co-led); box-shadow: 0 0 10px var(--co-led-dim); }

.coinopp-tray {
	grid-area: tray;
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
}
.coinopp-door {
	position: relative;
	flex: 1;
	height: 96px;
	border-radius: 10px;
	background: linear-gradient(180deg, #0a0a0e, #1a1a22 60%, #0a0a0e);
	box-shadow: inset 0 0 0 4px #2b2b34, inset 0 0 0 6px #4a4a58, inset 0 0 30px #000;
	overflow: hidden;
}
.coinopp-door.is-glowing::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: radial-gradient(60% 70% at 50% 72%, rgba(241,196,15,0.55), transparent 70%);
	animation: coinopp-glow-bloom 1.1s ease-out;
	pointer-events: none;
}
@keyframes coinopp-glow-bloom {
	0% { opacity: 0; }
	28% { opacity: 1; }
	100% { opacity: 0; }
}
.coinopp-flap {
	position: absolute;
	inset: 6px;
	border-radius: 6px;
	background: linear-gradient(180deg, #4a4a58, #2b2b34);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 6px 12px rgba(0,0,0,0.6);
	transform-origin: 50% 0%;
	transition: transform 0.55s cubic-bezier(0.34, 1.2, 0.64, 1);
	z-index: 4;
}
.coinopp-flap::after {
	content: "";
	position: absolute;
	left: 50%; top: 50%;
	width: 60px; height: 6px;
	transform: translate(-50%, -50%);
	border-radius: 3px;
	background: #0a0a0e;
	box-shadow: 0 1px 0 rgba(255,255,255,0.15);
}
.coinopp-door.is-open .coinopp-flap { transform: rotateX(-78deg); }
.coinopp-tray-floor {
	position: absolute;
	left: 8px; right: 8px; bottom: 8px;
	height: 14px;
	background: linear-gradient(180deg, #2a2a34, #14141a);
	border-radius: 4px;
	z-index: 1;
}
.coinopp-landed {
	position: absolute;
	left: 50%; bottom: 8px;
	width: 80px;
	transform: translateX(-50%);
	z-index: 2;
	transition: opacity 0.4s ease;
}
.coinopp-landed.is-front { z-index: 5; }
.coinopp-landed.is-landing { animation: coinopp-land-bounce 0.6s cubic-bezier(0.33, 0, 0.2, 1) both; }
@keyframes coinopp-land-bounce {
	0%   { transform: translateX(-50%) translateY(-7px) scaleX(0.92) scaleY(1.1); }
	32%  { transform: translateX(-50%) translateY(0) scaleX(1.22) scaleY(0.72); }
	48%  { transform: translateX(-50%) translateY(-6px) scaleX(0.94) scaleY(1.08); }
	64%  { transform: translateX(-50%) translateY(0) scaleX(1.1) scaleY(0.9); }
	78%  { transform: translateX(-50%) translateY(-3px) scaleX(0.97) scaleY(1.04); }
	100% { transform: translateX(-50%) scale(1); }
}
.coinopp-impact-ring {
	position: absolute;
	left: 50%; bottom: 6px;
	width: 60px; height: 14px;
	transform: translate(-50%, 0) scale(0.3);
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(255,255,255,0.55), rgba(255,255,255,0) 72%);
	opacity: 0;
	pointer-events: none;
	z-index: 1;
}
.coinopp-impact-ring.is-active { animation: coinopp-impact 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes coinopp-impact {
	0% { transform: translate(-50%, 0) scale(0.25); opacity: 0.7; }
	100% { transform: translate(-50%, 0) scale(1.7); opacity: 0; }
}
.coinopp-tray-label {
	width: 150px;
	text-align: center;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.3em;
	color: rgba(255,255,255,0.4);
	padding: 12px 0;
	border-radius: 8px;
	background: rgba(0,0,0,0.25);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.coinopp-locked {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(8,8,12,0.55);
	backdrop-filter: blur(2px);
	border-radius: 22px 22px 10px 10px;
}
.coinopp-locked a {
	background: var(--co-gold);
	color: #2b1500 !important;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 14px 28px;
	border-radius: 10px;
	text-decoration: none !important;
	box-shadow: 0 6px 0 #7a5400, 0 12px 24px rgba(0,0,0,0.6);
}

.coinopp-winnings {
	margin-top: 28px;
	min-height: 40px;
}
.coinopp-items {
	--count: 1;
	--gap: clamp(8px, 1.6vw, 18px);
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: flex-end; /* mixed item shapes: Keep/Sell rows stay aligned along the bottom */
	gap: var(--gap);
	perspective: 900px;
}
.coinopp-item {
	width: min(var(--coinopp-item-size, 150px), calc((100% - (var(--count) - 1) * var(--gap)) / var(--count)));
	flex: 0 0 auto;
	container-type: inline-size;
	text-align: center;
	will-change: transform;
}
.coinopp-item.is-gone { transition: transform 0.35s ease, opacity 0.35s ease; transform: scale(0.6) translateY(20px); opacity: 0; pointer-events: none; }
@keyframes coinopp-glow-pulse {
	0% { filter: brightness(1); }
	45% { filter: brightness(1.4); }
	100% { filter: brightness(1); }
}
.coinopp-item.is-settled.rarity-rare .coinopp-item-img,
.coinopp-item.is-settled.rarity-epic .coinopp-item-img,
.coinopp-item.is-settled.rarity-legendary .coinopp-item-img { animation: coinopp-glow-pulse 0.7s ease-out; }
.coinopp-item-img {
	--metal-a: #ffffff;
	--metal-b: #cfd6e0;
	--metal-c: #6b7280;
	--metal-glow: rgba(200,215,235,0.7);
	position: relative;
	width: 86%;
	aspect-ratio: 1;
	margin: 4% auto 3%;
	transform-style: preserve-3d;
	transform: none;
	transition: transform 0.4s cubic-bezier(0.34, 1.3, 0.64, 1);
	cursor: help;
	outline: none;
}
.coinopp-item-img:focus, .coinopp-item-img *:focus { outline: none; }
.coinopp-item.rarity-rare .coinopp-item-img { --metal-a: #e8f4ff; --metal-b: #9cc3ea; --metal-c: #2f6ea5; --metal-glow: rgba(52,152,219,0.7); }
.coinopp-item.rarity-epic .coinopp-item-img { --metal-a: #f6e8ff; --metal-b: #c39be0; --metal-c: #6b2f9a; --metal-glow: rgba(155,89,182,0.75); }
.coinopp-item.rarity-legendary .coinopp-item-img,
.coinopp[data-coin-metal="gold"] .coinopp-item-img { --metal-a: #fff3b0; --metal-b: #f1c40f; --metal-c: #8a6508; --metal-glow: rgba(241,196,15,0.75); }
.coinopp[data-coin-metal="silver"] .coinopp-item-img { --metal-a: #ffffff; --metal-b: #cfd6e0; --metal-c: #6b7280; --metal-glow: rgba(200,215,235,0.7); }
.coinopp-item-img:hover,
.coinopp-item-img:focus-visible { transform: translateY(-4px) scale(1.06); }
.coinopp-item-img .coin-glow {
	position: absolute;
	inset: -14%;
	border-radius: 50%;
	background: radial-gradient(circle, var(--metal-glow), transparent 70%);
	filter: blur(6px);
	transform: translateZ(-2px);
	transition: opacity 0.3s ease;
	opacity: 0.8;
}
.coinopp-item-img:hover .coin-glow { opacity: 1; }
.coinopp-item-img .coin-edge { position: absolute; inset: 0; border-radius: 50%; transform-style: preserve-3d; }
.coinopp-item-img .coin-edge i {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: conic-gradient(from 0deg, var(--metal-c), var(--metal-b) 12%, var(--metal-a) 22%, var(--metal-b) 34%, var(--metal-c) 50%, var(--metal-b) 62%, var(--metal-a) 72%, var(--metal-b) 84%, var(--metal-c));
}
.coinopp-item-img .coin-face {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	overflow: hidden;
	backface-visibility: hidden;
	background: radial-gradient(circle at 35% 30%, #4a4a58, #14141a 75%);
	box-shadow: inset 0 0 0 1.4cqw var(--metal-b), inset 0 0 0 2.2cqw var(--metal-c), 0 6px 14px rgba(0,0,0,0.35);
}
.coinopp-item-img .coin-face::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: linear-gradient(135deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.08) 35%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.12) 80%, rgba(255,255,255,0.35) 100%);
	mix-blend-mode: screen;
	pointer-events: none;
}
.coinopp-item-img .coin-face.front { transform: translateZ(7px); }
.coinopp-item-img .coin-face.back { transform: rotateY(180deg) translateZ(1px); background: radial-gradient(circle at 50% 50%, var(--metal-b), var(--metal-c) 80%); }
.coinopp-item-img .coin-face.back::before {
	content: "★";
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 50cqw;
	color: rgba(0,0,0,0.25);
}
.coinopp-item-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.coinopp[data-item-style="card"] .coinopp-item-img { transform: none; }
.coinopp[data-item-style="card"] .coinopp-item-img .coin-edge,
.coinopp[data-item-style="card"] .coinopp-item-img .coin-face.back,
.coinopp[data-item-style="card"] .coinopp-item-img .coin-face::after { display: none; }
.coinopp[data-item-style="card"] .coinopp-item-img .coin-face { border-radius: 12%; box-shadow: 0 10px 20px rgba(0,0,0,0.5), 0 0 0 2px var(--metal-b); transform: none; }
.coinopp[data-item-style="card"] .coinopp-item-img img { inset: 0; width: 100%; height: 100%; border-radius: 12%; object-fit: contain; }
/* Per-column won-item shape (Vending Machine settings > Columns > Won-item shape). Circle = the coin above, untouched. */
.coinopp-item[data-shape="square"] .coinopp-item-img { aspect-ratio: 1; }
.coinopp-item[data-shape="vrect"] .coinopp-item-img { aspect-ratio: 3 / 4; }
.coinopp-item[data-shape="hrect"] .coinopp-item-img { aspect-ratio: 4 / 3; }
.coinopp-item[data-shape="square"] .coinopp-item-img,
.coinopp-item[data-shape="vrect"] .coinopp-item-img,
.coinopp-item[data-shape="hrect"] .coinopp-item-img { transform-style: flat; }
.coinopp-item[data-shape="square"] .coinopp-item-img .coin-edge,
.coinopp-item[data-shape="vrect"] .coinopp-item-img .coin-edge,
.coinopp-item[data-shape="hrect"] .coinopp-item-img .coin-edge,
.coinopp-item[data-shape="square"] .coinopp-item-img .coin-face.back,
.coinopp-item[data-shape="vrect"] .coinopp-item-img .coin-face.back,
.coinopp-item[data-shape="hrect"] .coinopp-item-img .coin-face.back,
.coinopp-item[data-shape="square"] .coinopp-item-img .coin-face::after,
.coinopp-item[data-shape="vrect"] .coinopp-item-img .coin-face::after,
.coinopp-item[data-shape="hrect"] .coinopp-item-img .coin-face::after { display: none; }
.coinopp-item[data-shape="square"] .coinopp-item-img .coin-face,
.coinopp-item[data-shape="vrect"] .coinopp-item-img .coin-face,
.coinopp-item[data-shape="hrect"] .coinopp-item-img .coin-face { border-radius: 8px; transform: none; background: #14141a; box-shadow: inset 0 0 0 1.4cqw var(--metal-b), inset 0 0 0 2.2cqw var(--metal-c), 0 8px 18px rgba(0,0,0,0.45), 0 0 14px var(--metal-glow); }
.coinopp-item[data-shape="square"] .coinopp-item-img img,
.coinopp-item[data-shape="vrect"] .coinopp-item-img img,
.coinopp-item[data-shape="hrect"] .coinopp-item-img img { border-radius: 6px; object-fit: contain; padding: 2.2cqw; box-sizing: border-box; background: #14141a; }
.coinopp-item-name {
	display: none;
	font-size: clamp(9px, 8.5cqw, 13px);
	font-weight: 700;
	line-height: 1.25;
	height: 2.5em;
	overflow: hidden;
	margin-bottom: 5%;
	color: #2b2b34;
}
.coinopp-item-actions { display: flex; gap: 4%; justify-content: center; }
.coinopp-item-actions .coinopp-btn { font-size: clamp(8px, 8cqw, 12px); padding: 0.6em 1.1em; min-width: 0; white-space: nowrap; }
@container (max-width: 132px) {
	.coinopp-item-actions { flex-direction: column; align-items: stretch; gap: 4px; }
	.coinopp-item-actions .coinopp-btn { width: 100%; padding: 0.55em 0.4em; font-size: clamp(9px, 10cqw, 12px); }
}
.coinopp-btn {
	border: none;
	border-radius: 8px;
	padding: 8px 14px;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #2b1500;
	cursor: pointer;
	background: linear-gradient(180deg, #ffe27a, #f1b400 55%, #c98d00);
	box-shadow: 0 3px 0 #7a5400, 0 5px 10px rgba(0,0,0,0.4);
	transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s ease;
}
/* Theme/Elementor button rules override the plugin radius on <button> elements; force one radius (= .coinopp-display). */
.coinopp-buy, .coinopp-gettokens, .coinopp-vaultbtn, .coinopp-btn, .coinopp-btn-ship, .coinopp-category { border-radius: 8px !important; }
.coinopp-btn:hover:not(:disabled) { filter: brightness(1.08); }
.coinopp-btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 0 0 #7a5400; filter: brightness(0.92); }
.coinopp-btn:disabled { opacity: 0.5; cursor: wait; }
.coinopp-btn-sell { background: linear-gradient(180deg, #7ff0a8, #2ecc71 55%, #1e9c55); box-shadow: 0 3px 0 #146b3a, 0 5px 10px rgba(0,0,0,0.4); color: #052b15; }
.coinopp-bulk {
	display: none;
	justify-content: center;
	gap: 14px;
	margin-top: 22px;
}
.coinopp-bulk.is-visible { display: flex; }
.coinopp-bulk .coinopp-btn { padding: 12px 26px; font-size: 13px; }

.coinopp-tooltip {
	position: fixed;
	z-index: 100001;
	max-width: 260px;
	padding: 10px 12px;
	border-radius: 8px;
	background: rgba(8,8,12,0.95);
	color: #fff;
	font-size: 12px;
	line-height: 1.45;
	box-shadow: 0 10px 24px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.12);
	pointer-events: none;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 0.15s ease, transform 0.15s ease;
}
.coinopp-tooltip.is-visible { opacity: 1; transform: none; }
.coinopp-tooltip strong { display: block; font-size: 13px; color: var(--co-gold); margin-bottom: 4px; }
.coinopp-tooltip em { display: block; font-style: normal; color: #b8bcc8; margin-bottom: 6px; }
.coinopp-tooltip span { display: block; }
.coinopp-tooltip b { color: var(--co-green); }

.coinopp-shop {
	position: fixed;
	inset: 0;
	z-index: 100003;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(8, 8, 12, 0.72);
	backdrop-filter: blur(3px);
}
.coinopp-shop.is-visible { display: flex; }
.coinopp-shop-panel {
	width: min(720px, 96vw);
	max-height: 92vh;
	display: flex;
	flex-direction: column;
	border-radius: 16px;
	background: linear-gradient(180deg, #1c1c24, #101015);
	box-shadow: 0 30px 80px rgba(0,0,0,0.7), inset 0 0 0 2px #3a3a48, inset 0 2px 0 rgba(255,255,255,0.12);
	overflow: hidden;
}
.coinopp-shop-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	background: linear-gradient(90deg, var(--co-red-dark), var(--co-red) 30%, var(--co-red) 70%, var(--co-red-dark));
}
.coinopp-shop-title {
	font-weight: 900;
	font-size: 17px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff6d5;
}
.coinopp-shop-close {
	border: none;
	width: 34px;
	height: 34px;
	padding: 0;
	border-radius: 50% !important; /* round; !important beats the theme's button rules */
	font-size: 20px;
	line-height: 1;
	color: #fff;
	background: rgba(0,0,0,0.35);
	cursor: pointer;
}
.coinopp-shop-close:hover { background: rgba(0,0,0,0.55); }
.coinopp-shop-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px;
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: #f1b400 #17171d;
}
.coinopp-shop-list::-webkit-scrollbar { width: 10px; }
.coinopp-shop-list::-webkit-scrollbar-track { background: #17171d; }
.coinopp-shop-list::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #ffe27a, #c98d00); border-radius: 99px; border: 2px solid #17171d; }
.coinopp-shop-head, .coinopp-shop-note, .coinopp-vault-foot, .coinopp-shop-foot { flex: 0 0 auto; }
.coinopp-shop-list.is-hidden { display: none; }
/* Get Tokens: payment method selector + per-pack quantity */
.coinopp-shop-pay {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 14px 18px 0;
	flex: 0 0 auto;
}
.coinopp-shop-pay-label { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #b8bcc8; }
.coinopp-seg {
	display: inline-flex;
	padding: 3px;
	border-radius: 8px;
	background: #0d0d12;
	box-shadow: inset 0 0 0 1px #3a3a48;
}
.coinopp .coinopp-seg-btn {
	border: none !important;
	border-radius: 6px !important;
	padding: 7px 14px !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	letter-spacing: 0.04em;
	line-height: 1.2 !important;
	color: #b8bcc8 !important;
	background: transparent !important;
	box-shadow: none !important;
	cursor: pointer;
}
.coinopp .coinopp-seg-btn.is-on {
	color: #2b1500 !important;
	background: linear-gradient(180deg, #ffe27a, #f1b400 55%, #c98d00) !important;
	box-shadow: 0 2px 0 #7a5400 !important;
}
.coinopp-shop-pay[hidden] { display: none; }
.coinopp-shop-pack { cursor: default; }
.coinopp-qty {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px;
	border-radius: 8px;
	background: #0d0d12;
	box-shadow: inset 0 0 0 1px #3a3a48;
}
.coinopp .coinopp-qty-btn {
	width: 28px !important;
	height: 28px !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 6px !important;
	font-size: 16px !important;
	font-weight: 900 !important;
	line-height: 28px !important;
	color: #f4f4f6 !important;
	background: #23232c !important;
	box-shadow: inset 0 0 0 1px #3a3a48 !important;
	cursor: pointer;
}
.coinopp .coinopp-qty-btn:hover { background: #2f2f3a !important; }
.coinopp-qty-num {
	min-width: 22px;
	text-align: center;
	font-family: var(--co-mono);
	font-size: 15px;
	font-weight: 700;
	color: var(--co-led);
	text-shadow: 0 0 6px var(--co-led-dim);
}
.coinopp .coinopp-shop-go {
	border: none !important;
	border-radius: 8px !important;
	padding: 9px 18px !important;
	font-size: 13px !important;
	font-weight: 900 !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.2 !important;
	color: #0b0b0f !important;
	background: linear-gradient(180deg, #7ff0a8, #2ecc71) !important;
	box-shadow: 0 3px 0 #146b3a !important;
	cursor: pointer;
}
.coinopp .coinopp-shop-go:hover { filter: brightness(1.08); }
.coinopp .coinopp-shop-go:active { transform: translateY(2px); box-shadow: 0 1px 0 #146b3a !important; }
@media (max-width: 560px) {
	.coinopp-shop-pack { grid-template-columns: 1fr auto; }
	.coinopp-shop-pack .coinopp-shop-grants { grid-column: 1; }
	.coinopp-shop-pack .coinopp-shop-name { grid-column: 1 / -1; }
	.coinopp-shop-pack .coinopp-qty { grid-column: 1; justify-self: start; }
	.coinopp-shop-pack .coinopp-shop-price { grid-column: 2; grid-row: 1; }
	.coinopp-shop-pack .coinopp-shop-go { grid-column: 2; }
}
/* Terms of Service / Instructions gate */
.coinopp-gate .coinopp-shop-panel { width: min(680px, 96vw); }
.coinopp-gate-tabs { display: flex; gap: 8px; padding: 14px 18px 0; flex: 0 0 auto; }
.coinopp .coinopp-gate-tab {
	flex: 1;
	border: none !important;
	border-radius: 8px !important;
	padding: 10px 12px !important;
	font-size: 13px !important;
	font-weight: 800 !important;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.2 !important;
	color: #b8bcc8 !important;
	background: #0d0d12 !important;
	box-shadow: inset 0 0 0 1px #3a3a48 !important;
	cursor: pointer;
}
.coinopp .coinopp-gate-tab.is-on {
	color: #2b1500 !important;
	background: linear-gradient(180deg, #ffe27a, #f1b400 55%, #c98d00) !important;
	box-shadow: 0 2px 0 #7a5400 !important;
}
.coinopp-gate-body { display: block; max-height: 52vh; font-size: 14px; line-height: 1.55; color: #d8dae2; }
.coinopp-gate-body p { margin: 0 0 12px; color: #d8dae2; }
.coinopp-gate-body h1, .coinopp-gate-body h2, .coinopp-gate-body h3, .coinopp-gate-body h4 { color: #fff6d5; margin: 16px 0 8px; font-size: 15px; }
.coinopp-gate-body ul, .coinopp-gate-body ol { margin: 0 0 12px 20px; }
.coinopp-gate-body a { color: var(--co-gold); }
.coinopp-gate-pane { display: none; }
.coinopp-gate-pane.is-on { display: block; }
.coinopp-gate-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px 18px;
	border-top: 1px solid #2a2a36;
	flex: 0 0 auto;
}
.coinopp-gate-agree { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #f4f4f6; cursor: pointer; }
.coinopp-gate-agree input { width: 18px; height: 18px; accent-color: #f1b400; margin: 0; }
.coinopp-gate-hint { margin: 0; font-size: 13px; color: #b8bcc8; }
.coinopp-gate-login { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; position: relative; }
.coinopp .coinopp-gate-go { font-size: 13px; padding: 0.8em 1.6em; }
.coinopp .coinopp-gate-go:disabled { opacity: 0.45; cursor: not-allowed; }
#coinopp-gate-login #web3-auth-status-msg { position: static !important; transform: none !important; white-space: normal !important; width: auto !important; font-size: 13px !important; }
.coinopp-shop-pack {
	display: grid;
	grid-template-columns: auto 1fr auto auto auto;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border: none;
	border-radius: 12px;
	background: linear-gradient(180deg, #23232c, #17171d);
	box-shadow: inset 0 0 0 1px #3a3a48, 0 3px 8px rgba(0,0,0,0.4);
	color: var(--co-text);
	cursor: pointer;
	text-align: left;
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.coinopp-shop-pack:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--co-gold), 0 8px 18px rgba(0,0,0,0.5), 0 0 14px rgba(241,196,15,0.25); }
.coinopp-shop-grants {
	font-family: var(--co-mono);
	font-weight: 700;
	font-size: 16px;
	color: var(--co-led);
	text-shadow: 0 0 6px var(--co-led-dim);
	white-space: nowrap;
}
.coinopp-shop-name { font-size: 13px; color: #b8bcc8; }
.coinopp-shop-price {
	font-weight: 900;
	font-size: 15px;
	color: var(--co-green);
	white-space: nowrap;
}
.coinopp-vault-shipdue { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; margin: 0 0 10px; padding: 10px 12px; border: 1px solid rgba(255, 179, 71, .55); border-radius: 8px; background: rgba(255, 179, 71, .12); color: #fde68a; font-size: 13px; line-height: 1.4; }
.coinopp-vault-shipdue-btns { display: flex; gap: 8px; align-items: center; }
.coinopp .coinopp-vault-shipdue-pay { padding: 7px 14px !important; border: none; border-radius: 8px !important; background: #22c55e; color: #fff; font-weight: 700; cursor: pointer; }
.coinopp-shop-framewrap { display: none; flex: 1; min-height: 0; padding: 0 12px 12px; }
.coinopp-shop-framewrap.is-visible { display: flex; }
.coinopp-shop-frame {
	width: 100%;
	height: min(74vh, 800px);
	border: none;
	border-radius: 10px;
	background: #fff;
}
.coinopp-vaultbtn {
	display: block;
	width: 100%;
	text-align: center;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.4;
	color: #14141a;
	background: linear-gradient(180deg, #ffe27a, #f1b400 55%, #c98d00);
	border: none;
	border-radius: 8px;
	padding: 7px 4px;
	cursor: pointer;
	box-shadow: 0 3px 0 #7a5400;
}
.coinopp-vaultbtn:hover { filter: brightness(1.08); }
.coinopp-vaultbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 #7a5400; }
.coinopp-vaultpop .coinopp-shop-panel { width: min(1160px, 96vw); }
.coinopp-vault-summary {
	padding: 14px 16px;
	border-radius: 12px;
	background: linear-gradient(180deg, #101015, #0a0a0e);
	box-shadow: inset 0 0 0 1px #2c2c38;
}
.coinopp-vault-totals {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
	font-size: 13px;
	color: #b8bcc8;
}
.coinopp-vault-totals b { color: var(--co-text); font-size: 15px; }
.coinopp-vault-bar {
	margin-top: 10px;
	height: 8px;
	border-radius: 99px;
	background: #23232c;
	overflow: hidden;
}
.coinopp-vault-bar i {
	display: block;
	height: 100%;
	border-radius: 99px;
	background: linear-gradient(90deg, #f1c40f, #2ecc71);
	transition: width 0.4s ease;
}
.coinopp-vault-ok { margin-top: 8px; font-size: 12px; font-weight: 700; color: #2ecc71; }
.coinopp-vault-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
	gap: 12px;
}
.coinopp-vault-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 14px 12px;
	border-radius: 12px;
	text-align: center;
	background: linear-gradient(180deg, #23232c, #17171d);
	box-shadow: inset 0 0 0 1px #3a3a48, 0 3px 8px rgba(0,0,0,0.4);
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.coinopp-vault-item:hover {
	transform: translateY(-2px);
	box-shadow: inset 0 0 0 1px var(--co-gold), 0 8px 18px rgba(0,0,0,0.5), 0 0 14px rgba(241,196,15,0.25);
}
.coinopp-vault-shot {
	width: 100%;
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: #0d0d12;
	box-shadow: inset 0 0 0 1px #2c2c38;
	overflow: hidden;
}
.coinopp-vault-item img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.coinopp-vault-name { font-size: 13px; font-weight: 700; color: var(--co-text); line-height: 1.3; }
.coinopp-vault-val { font-size: 12px; color: #b8bcc8; }
.coinopp-vault-val b { color: var(--co-text); }
.coinopp-vault-item .coinopp-btn { width: 100%; padding: 9px 12px; font-size: 11px; }
.coinopp-vault-empty { padding: 24px; text-align: center; color: #8d93a3; font-size: 13px; }
.coinopp-vault-status { margin-top: 8px; font-size: 12px; font-weight: 700; color: #b8bcc8; }
.coinopp-vault-status.is-ok { color: #2ecc71; }
.coinopp-vault-status.is-warn { color: #f1c40f; }
.coinopp-vault-selectors { display: flex; gap: 14px; margin-top: 8px; }
.coinopp-vault-link {
	border: none;
	background: none;
	padding: 0;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--co-gold);
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.coinopp-vault-link:hover { color: #ffe27a; }
.coinopp-vault-item { position: relative; }
.coinopp-vault-item.is-checked { box-shadow: inset 0 0 0 1px #2ecc71, 0 3px 8px rgba(0,0,0,0.4); }
.coinopp-vault-check {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2;
	width: 24px;
	height: 24px;
	margin: 0;
	cursor: pointer;
}
.coinopp-vault-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.coinopp-vault-check span {
	position: absolute;
	inset: 0;
	border-radius: 6px;
	background: #0d0d12;
	box-shadow: inset 0 0 0 2px #4a4a5a;
	transition: background 0.12s ease, box-shadow 0.12s ease;
}
.coinopp-vault-check span::after {
	content: '';
	position: absolute;
	left: 8px;
	top: 3px;
	width: 6px;
	height: 12px;
	border: solid #052b15;
	border-width: 0 3px 3px 0;
	transform: rotate(45deg) scale(0);
	transition: transform 0.12s ease;
}
.coinopp-vault-check input:checked + span { background: linear-gradient(180deg, #7ff0a8, #2ecc71); box-shadow: inset 0 0 0 2px #1e9c55; }
.coinopp-vault-check input:checked + span::after { transform: rotate(45deg) scale(1); }
.coinopp-vault-check input:focus-visible + span { box-shadow: inset 0 0 0 2px var(--co-gold), 0 0 0 3px rgba(241,196,15,0.35); }
.coinopp-vault-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px 20px;
	background: none;
	box-shadow: none;
}
.coinopp-vault-foot[hidden] { display: none; }
.coinopp-vault-foot-info { font-size: 12px; font-weight: 700; color: #b8bcc8; }
.coinopp-btn-ship {
	padding: 11px 18px !important; /* theme button rules override plain padding */
	font-size: 13px;
	line-height: 1.2;
	white-space: nowrap;
	background: linear-gradient(180deg, #7ff0a8, #2ecc71 55%, #1e9c55);
	box-shadow: 0 3px 0 #146b3a, 0 5px 10px rgba(0,0,0,0.4);
	color: #052b15;
}
.coinopp-btn-ship:disabled { cursor: not-allowed; }
.coinopp-key {
	aspect-ratio: 1;
	border: none;
	border-radius: 50%;
	color: rgba(255,255,255,0.55);
	font-size: 10px;
	font-weight: 800;
	cursor: pointer;
	background: radial-gradient(circle at 35% 30%, #5a5a6c, #2a2a34 70%);
	box-shadow: 0 2px 0 #0b0b0f, inset 0 1px 0 rgba(255,255,255,0.2);
	transition: filter 0.12s ease, transform 0.08s ease;
}
.coinopp-key:hover { filter: brightness(1.35); }
.coinopp-key:active { transform: translateY(2px); box-shadow: 0 0 0 #0b0b0f, inset 0 1px 0 rgba(255,255,255,0.2); }
.coinopp-key.is-playing {
	color: #0b0b0f;
	background: radial-gradient(circle at 35% 30%, #ffe27a, #f1b400 70%);
	box-shadow: 0 2px 0 #7a5400, 0 0 12px rgba(241,196,15,0.6);
}
@media (max-width: 640px) {
	.coinopp-vault-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
	.coinopp-vault-summary { padding: 12px; }
	.coinopp-vault-totals { font-size: 12px; }
	.coinopp-vault-totals b { font-size: 14px; }
}

.coinopp-shop-note {
	padding: 0 18px 14px;
	font-size: 12px;
	color: #8d93a3;
	text-align: center;
}

@media (max-width: 640px) {
	.coinopp-shop { padding: 8px; align-items: flex-end; }
	.coinopp-shop-panel { width: 100%; max-height: 94dvh; border-radius: 14px 14px 0 0; }
	.coinopp-shop-head { padding: 12px 14px; }
	.coinopp-shop-title { font-size: 15px; }
	.coinopp-shop-list { padding: 12px; gap: 8px; }
	.coinopp-shop-pack { gap: 10px; padding: 12px; }
	.coinopp-shop-grants { font-size: 14px; }
	.coinopp-shop-name { font-size: 12px; }
	.coinopp-shop-price { font-size: 14px; }
	.coinopp-shop-framewrap { padding: 0 8px 8px; }
	.coinopp-shop-frame { height: 72dvh; }
	.coinopp-vault-item { gap: 6px; padding: 10px 8px; }
	.coinopp-vault-foot { flex-direction: column; align-items: stretch; padding: 10px 12px; gap: 8px; text-align: center; }
	.coinopp-btn-ship { width: 100%; padding: 11px 8px !important; font-size: 12px; white-space: normal; }
	.coinopp-vault-selectors { justify-content: center; }
	.coinopp-vault-name { font-size: 12px; }
	.coinopp-vault-val { font-size: 11px; }
	.coinopp-vault-item .coinopp-btn { padding: 8px 6px; font-size: 10px; }
}

/* Site-wide message style (same as the marketplace toast): white card, bottom right,
   coloured left border + icon. Client 2026-09-22: one look and one position everywhere. */
.coinopp-toast {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 100005; /* above the vault popup (100003) and its refund box (100004), client 2026-10-08 */
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 280px;
	max-width: min(420px, calc(100vw - 48px));
	padding: 14px 20px;
	border-radius: 10px;
	border: 1px solid #e2e8f0;
	border-left: 3px solid #ef4444;
	background: #ffffff;
	color: #0f172a;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-weight: 600;
	font-size: 13px;
	line-height: 1.4;
	box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06), 0 10px 30px rgba(0,0,0,0.25);
	opacity: 0;
	pointer-events: none;
	transform: translateX(120%);
	transition: opacity 0.3s ease, transform 0.35s ease;
}
.coinopp-toast.is-visible { opacity: 1; transform: translateX(0); }
.coinopp-toast.is-good { border-left-color: #22c55e; }
.coinopp-toast .coinopp-toast-icon { flex-shrink: 0; display: flex; color: #ef4444; }
.coinopp-toast.is-good .coinopp-toast-icon { color: #22c55e; }
.coinopp-toast .coinopp-toast-icon svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .coinopp-toast { right: 12px; bottom: 12px; min-width: 0; left: 12px; max-width: none; } }

/* Full-size picture on click (client 2026-10-12): ticker cards, won items and vault pictures. Above the vault popup (100003) and the toast (100005). */
.coinopp-scr-item img, .coinopp-item-img, .coinopp-vault-shot img { cursor: zoom-in; }
.coinopp-lightbox { position: fixed; inset: 0; z-index: 100006; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; background: rgba(0, 0, 0, 0.88); cursor: zoom-out; }
.coinopp-lightbox.is-visible { display: flex; }
.coinopp-lightbox img { max-width: min(96vw, 1200px); max-height: 84vh; width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); cursor: default; }
.coinopp-lightbox-cap { color: #fff; font: 600 14px/1.3 system-ui, sans-serif; text-align: center; max-width: 90vw; }
.coinopp-lightbox-close { position: absolute; top: 14px; right: 18px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.15); color: #fff; font-size: 26px; line-height: 40px; cursor: pointer; }
.coinopp-lightbox-close:hover { background: rgba(255, 255, 255, 0.3); }

@media (max-width: 900px) {
	.coinopp-body { grid-template-columns: 1fr 118px; gap: 10px; }
	.coinopp-cabinet { padding: 10px 12px 14px; }
	.coinopp-marquee { height: 48px; }
	.coinopp-led { font-size: 18px; }
	.coinopp-buy { height: 46px; font-size: 17px; }
	.coinopp-door { height: 80px; }
	.coinopp-landed { width: 58px; }
	.coinopp-tray-label { width: 110px; }
}

@media (max-width: 640px) {
	.coinopp { padding: 12px 6px 32px; }
	.coinopp-machine { width: 100%; zoom: 1 !important; }
	.coinopp-body { grid-template-columns: 1fr; grid-template-areas: "window" "tray" "panel"; gap: 10px; }
	.coinopp-cabinet { padding: 8px 8px 12px; }
	.coinopp-window { padding: 6px 6px 8px; }
	.coinopp-categories { gap: 3px; padding: 2px 3px 6px; }
	.coinopp-shelf { gap: 3px; padding: 4px 3px 12px; }
	.coinopp-box { width: 86%; }
	.coinopp-box-count { min-width: 16px; height: 16px; line-height: 16px; font-size: 9px; top: 2px; right: 3px; }
	.coinopp-door { height: clamp(64px, 20vw, 90px); }
	.coinopp-landed { width: clamp(42px, 13vw, 58px); }
	.coinopp-led { font-size: clamp(16px, 5.5vw, 22px); }
	.coinopp-buy { height: clamp(42px, 12vw, 54px); font-size: clamp(15px, 4.6vw, 20px); }
	.coinopp-panel { flex-direction: row; flex-wrap: wrap; }
	.coinopp-panel .coinopp-display { flex: 1 1 40%; }
	.coinopp-panel .coinopp-coinslot, .coinopp-panel .coinopp-keypad { display: none; }
	.coinopp-panel .coinopp-buy { flex: 1 1 100%; }
	.coinopp-panel .coinopp-gettokens { flex: 1 1 60%; }
	.coinopp-panel .coinopp-music { flex: 0 0 48px; margin-top: 0; }
	.coinopp-window { min-height: 0; }
	.coinopp-category { font-size: 8px; letter-spacing: 0.04em; }
	.coinopp-tray-label { display: none; }
}

/* Item pool scrollers left of the machine (same pool in both columns, the first rolls up and the
   second rolls down). Images keep their own transparency: no background is painted behind them. */
.coinopp-scrollers {
	grid-column: 1;
	justify-self: stretch; /* fill the column (with "end" Chrome shrank the two columns to their minimum) */
	display: flex;
	justify-content: flex-end;
	align-self: stretch;
	gap: 14px;
	margin: 0;
	padding: 0 44px 0 0; /* 40-50 px gap to the machine, as requested */
	max-width: 100%;
}
.coinopp-scroller {
	flex: 1 1 var(--coinopp-scr-w, 300px);
	min-width: 110px;
	max-width: 320px;
	align-self: stretch;
	position: relative;
	overflow: hidden;
	contain: size; /* the long track must not make the stage (and the page) taller than the machine */
	opacity: 0;
	transition: opacity 0.4s ease;
	-webkit-mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
}
.coinopp-scroller.is-on { opacity: 1; }
.coinopp-scr-track {
	display: flex;
	flex-direction: column;
	will-change: transform;
	animation: coinopp-scr-up var(--coinopp-scr-dur, 40s) linear infinite;
}
.coinopp-scroller--right .coinopp-scr-track { animation-name: coinopp-scr-down; }
.coinopp-scroller:hover .coinopp-scr-track { animation-play-state: paused; }
@keyframes coinopp-scr-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes coinopp-scr-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.coinopp-scr-item {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0 0 16px;
	width: 100%;
	border-radius: 14px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.04);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
/* The picture keeps the whole square; the text sits under it (client 2026-09-24: the label must
   not cover the dates on the coins). */
.coinopp-scr-item img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; background: transparent; }
.coinopp-scr-skel {
	aspect-ratio: 1 / 1;
	background: linear-gradient(100deg, rgba(255, 255, 255, 0.05) 30%, rgba(255, 255, 255, 0.14) 50%, rgba(255, 255, 255, 0.05) 70%);
	background-size: 250% 100%;
	animation: coinopp-scr-shimmer 1.4s ease-in-out infinite;
}
.coinopp-scr-skel::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 44px;
	background: rgba(0, 0, 0, 0.35);
}
@keyframes coinopp-scr-shimmer { from { background-position: 120% 0; } to { background-position: -130% 0; } }
.coinopp-scr-cap {
	position: relative;
	padding: 7px 8px 8px;
	background: rgba(0, 0, 0, 0.62);
	color: #fff;
	font-size: clamp(11px, 1.05vw, 15px);
	line-height: 1.25;
	text-align: center;
}
.coinopp-scr-val { display: block; color: #ffd54a; font-weight: 700; font-size: clamp(12px, 1.15vw, 17px); margin-top: 3px; }
@media (max-width: 1240px) { .coinopp-scroller { --coinopp-scr-w: 150px; } .coinopp-scrollers { gap: 8px; padding-right: 28px; } }
@media (max-width: 1000px) {
	.coinopp-scrollers { display: none; }
	.coinopp-stage { grid-template-columns: minmax(0, 1fr); }
	.coinopp-stage > .coinopp-machine { grid-column: 1; }
}

/* Reveal spot: the vended box floats out of the tray and opens right in front of the tray door
   (client 2026-09-24: not below the machine, no extra room; the won items stay directly under
   the machine). The spot is a point that JS places over the door; it never takes up space. */
.coinopp-reveal {
	position: absolute;
	left: 50%;
	top: 0;
	width: 0;
	height: 0;
	overflow: visible;
	pointer-events: none;
	z-index: 6;
}
.coinopp-reveal::before {
	content: "";
	position: absolute;
	left: 0; top: calc(var(--coinopp-reveal-w, 120px) * 0.5 - 4px);
	width: calc(var(--coinopp-reveal-w, 120px) * 1.25);
	height: 22px;
	transform: translateX(-50%);
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(0,0,0,0.6), rgba(0,0,0,0) 75%);
	opacity: 0;
	transition: opacity 0.4s ease;
}
.coinopp-reveal.is-visible::before { opacity: 1; animation: coinopp-float-shadow 2.8s ease-in-out infinite; }
.coinopp-reveal.is-glowing::before {
	background: radial-gradient(closest-side, rgba(241,196,15,0.7), rgba(241,196,15,0) 75%);
	height: 34px;
}
.coinopp-reveal-inner {
	position: absolute;
	width: var(--coinopp-reveal-w, 120px);
	left: calc(var(--coinopp-reveal-w, 120px) * -0.5);
	top: calc(var(--coinopp-reveal-w, 120px) * -0.5);
	opacity: 0;
	transform-origin: 50% 60%;
	will-change: transform;
	transition: opacity 0.25s ease;
}
.coinopp-reveal.is-visible .coinopp-reveal-inner { opacity: 1; }
.coinopp-reveal-inner .coinopp-box { width: 100%; top: 0; filter: drop-shadow(0 16px 14px rgba(0,0,0,0.6)); transition: none; }
.coinopp-reveal-inner .coinopp-box-img,
.coinopp-reveal-inner .coinopp-box > .coinopp-gift { transform: none; }
.coinopp-reveal-inner .gift-shadow { display: none; }
.coinopp-reveal-inner.is-floating { animation: coinopp-float 2.8s ease-in-out infinite; }
@keyframes coinopp-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}
@keyframes coinopp-float-shadow {
	0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; }
	50% { transform: translateX(-50%) scale(0.86); opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
	.coinopp-scr-track { animation: none; }
	.coinopp-machine.is-shaking { animation-duration: 0.01s; }
	.coinopp-machine.is-shaking .coinopp-shimmer { animation-duration: 0.01s; }
	.coinopp-machine.is-flashing .coinopp-marquee-bulbs,
	.coinopp-machine.is-shaking .coinopp-marquee-bulbs { animation-duration: 0.01s; }
	.coinopp-machine.is-flashing .coinopp-lights { animation-duration: 0.01s; }
	.coinopp-slot.is-shuffling .coinopp-box { transition-duration: 0.12s; }
	.coinopp-slot.is-returning .coinopp-box { animation-duration: 0.12s; }
	.coinopp-flap { transition-duration: 0.15s; }
	.coinopp-landed.is-landing { animation-duration: 0.18s; }
	.coinopp-impact-ring.is-active { animation-duration: 0.15s; }
	.coinopp-gift .gift-lid, .coinopp-gift .gift-ribv, .coinopp-gift .gift-bowg { transition-duration: 0.1s; }
	.coinopp-gift.is-open .gift-burst, .coinopp-gift.is-open .gift-spark { animation-duration: 0.2s; }
	.coinopp-reveal-inner.is-floating, .coinopp-reveal.is-visible::before { animation: none; }
}


/* ---- Refund credits -> $DIVID: machine button + popup in the marketplace purchase-popup look (2026-09-29) ---- */
.coinopp-refundbtn {
	display: block;
	width: 100%;
	margin-top: 6px;
	text-align: center;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.4;
	color: #fff;
	background: linear-gradient(180deg, #6d64f0, #4f46e5 55%, #3b34b8);
	border: none;
	border-radius: 8px !important;
	padding: 7px 4px;
	cursor: pointer;
	box-shadow: 0 3px 0 #2a2585;
}
.coinopp-refundbtn:hover { filter: brightness(1.08); }
.coinopp-refundbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 #2a2585; }
.coinopp-machine.is-gated .coinopp-refundbtn { opacity: 0.55; }
.coinopp-refund {
	position: fixed;
	inset: 0;
	z-index: 100004;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(15, 23, 42, 0.62);
	backdrop-filter: blur(3px);
}
.coinopp-refund.is-visible { display: flex; }
.coinopp-refund-card {
	position: relative;
	width: min(460px, 96vw);
	max-height: 92vh;
	overflow: auto;
	padding: 24px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid #e2e8f0;
	box-shadow: 0 24px 60px rgba(0,0,0,0.35);
	color: #0f172a;
	font-family: inherit;
	text-align: left;
}
.coinopp-refund-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid #e2e8f0;
	border-radius: 8px !important;
	background: #f8fafc;
	color: #0f172a;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}
.coinopp-refund-close:hover { background: #e2e8f0; }
.coinopp-refund-title { margin: 0 32px 14px 0; font-size: 18px; font-weight: 700; color: #0f172a; line-height: 1.3; }
.coinopp-refund-info {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px 14px;
	margin-bottom: 14px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #f8fafc;
	font-size: 14px;
}
.coinopp-refund-info > div { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.coinopp-refund-info span { color: #64748b; }
.coinopp-refund-info b { color: #0f172a; font-weight: 600; font-size: 14px; text-align: right; word-break: break-all; }
.coinopp-refund-link { border: 0; padding: 6px 10px; border-radius: 6px; background: #4f46e5; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.coinopp-refund-label { display: block; margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #64748b; }
.coinopp-refund-input {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 10px 14px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #f8fafc;
	color: #0f172a;
	font-size: 20px;
	font-weight: 600;
}
.coinopp-refund-input:focus { outline: 2px solid #c7d2fe; border-color: #4f46e5; }
.coinopp-refund-total { margin: 8px 0 0; font-size: 15px; font-weight: 600; color: #0f172a; min-height: 20px; }
.coinopp-refund-note { margin: 8px 0 0; font-size: 13px; color: #64748b; line-height: 1.45; }
.coinopp-refund-status { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; font-size: 13px; line-height: 1.45; background: #f1f5f9; color: #0f172a; }
.coinopp-refund-status.is-info { background: #eef2ff; color: #3730a3; }
.coinopp-refund-status.is-good { background: #ecfdf5; color: #166534; }
.coinopp-refund-status.is-error { background: #fef2f2; color: #b91c1c; }
.coinopp-refund-status a { color: inherit; text-decoration: underline; }
.coinopp-refund-actions { display: flex; gap: 10px; margin-top: 16px; }
.coinopp-refund-confirm, .coinopp-refund-cancel {
	flex: 1 1 0;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 8px !important;
	border: 1px solid transparent;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	line-height: 1;
}
.coinopp-refund-confirm { background: #4f46e5; color: #fff; }
.coinopp-refund-confirm:hover { background: #4338ca; }
.coinopp-refund-confirm:disabled { opacity: 0.55; cursor: not-allowed; }
.coinopp-refund-cancel { background: #f8fafc; color: #0f172a; border-color: #e2e8f0; }
.coinopp-refund-cancel:hover { background: #e2e8f0; }

/* Get Tokens: one checkout for all chosen packs (client 2026-10-01). */
.coinopp-shop-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 12px 18px;
	border-top: 1px solid #2a2a35;
	background: #17171d;
}
.coinopp-shop-foot.is-hidden { display: none; }
.coinopp-shop-sum { font-family: var(--co-mono); font-size: 14px; font-weight: 700; color: var(--co-led); text-shadow: 0 0 6px var(--co-led-dim); }
.coinopp .coinopp-shop-checkout { padding: 11px 26px !important; font-size: 14px !important; }
.coinopp .coinopp-shop-checkout[disabled] { opacity: 0.4; cursor: not-allowed; filter: none; transform: none; }
.coinopp-shop-pack.is-picked { box-shadow: inset 0 0 0 1px var(--co-gold), 0 3px 8px rgba(0,0,0,0.4), 0 0 10px rgba(241,196,15,0.25); }

/* Chosen box: "Click again to BUY" on the box itself (client 2026-09-30). */
.coinopp-slot .coinopp-box-cta {
	display: none;
	position: absolute;
	left: 6%; right: 6%; top: 26%;
	z-index: 6;
	padding: 5px 3px;
	border-radius: 6px;
	border: 1px dashed #6b4e00;
	background: rgba(255, 226, 122, 0.94);
	color: #1a1200;
	font-family: var(--co-mono);
	font-size: 11px;
	font-weight: 900;
	line-height: 1.15;
	letter-spacing: 0.03em;
	text-align: center;
	text-transform: uppercase;
	box-shadow: 0 2px 6px rgba(0,0,0,0.5);
	pointer-events: none;
}
.coinopp-slot.is-selected .coinopp-box-cta { display: block; animation: coinopp-cta-pop 0.25s ease-out; }
.coinopp-slot.is-vended .coinopp-box-cta, .coinopp-slot.is-shuffling .coinopp-box-cta { display: none; }
@keyframes coinopp-cta-pop { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (max-width: 560px) { .coinopp-slot .coinopp-box-cta { font-size: 9px; padding: 3px 2px; } }

/* Client 2026-10-02: the four column buttons (Buy Box, Get Tokens, Refund Credits, Vault) share one text size. */
.coinopp-panel .coinopp-buy, .coinopp-panel .coinopp-gettokens, .coinopp-panel .coinopp-refundbtn, .coinopp-panel .coinopp-vaultbtn {
	font-size: 13px !important;
	font-weight: 900 !important;
	letter-spacing: 0.08em !important;
	line-height: 1.3 !important;
	text-transform: uppercase;
}
.coinopp-panel .coinopp-buy { height: auto; padding: 12px 6px; }
.coinopp-panel .coinopp-gettokens, .coinopp-panel .coinopp-refundbtn, .coinopp-panel .coinopp-vaultbtn { padding: 10px 6px; margin-top: 6px; }
@media (max-width: 760px) { .coinopp-panel .coinopp-buy { height: auto; font-size: 13px !important; } }

/* ══════════════════════════════════════════════════════════════════════
   Colour harmonization (client chat 2026-10-21, live 2026-10-24):
   welcome gate header → nav blue #00a1e8, gate buttons → logo gold #ecc15e
   with black text (same as the site's Connect Wallet buttons).
   ══════════════════════════════════════════════════════════════════════ */
.coinopp-gate .coinopp-shop-head,
#coinopp-gate .coinopp-shop-head {
	background: linear-gradient(90deg, #0086c3, #00a1e8 30%, #00a1e8 70%, #0086c3) !important;
}
.coinopp-gate .coinopp-shop-title { color: #ffffff; text-shadow: 0 1px 2px rgba(0,0,0,0.35); }
.coinopp .coinopp-gate-tab.is-on,
.coinopp .coinopp-gate-tabs .coinopp-gate-tab.is-on {
	color: #111111 !important;
	background: #ecc15e !important;
	box-shadow: 0 2px 0 #b8902f !important;
}
.coinopp .coinopp-gate-tab.is-on:hover { background: #f3d27f !important; }
.coinopp .coinopp-gate-go,
.coinopp #coinopp-gate-go,
.coinopp #coinopp-gate-login-btn,
#coinopp-gate .coinopp-btn.coinopp-gate-go {
	color: #111111 !important;
	background: #ecc15e !important;
	box-shadow: 0 3px 0 #b8902f, 0 5px 10px rgba(0,0,0,0.35) !important;
}
.coinopp .coinopp-gate-go:hover:not(:disabled),
.coinopp #coinopp-gate-go:hover:not(:disabled),
.coinopp #coinopp-gate-login-btn:hover:not(:disabled) { background: #f3d27f !important; filter: none; }
