.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: 1080px;
	margin: 0 auto;
	padding: 24px 12px 48px;
	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: 8px; }
.coinopp button { font-family: inherit; }

.coinopp-stage {
	display: flex;
	justify-content: center;
	perspective: 1600px;
}
.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));
}
.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: 6px;
	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;
	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: 96%;
	height: auto;
	position: relative;
	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; }
.coinopp-slot:not(.is-empty):hover .coinopp-box,
.coinopp-slot:focus-visible .coinopp-box { transform: translateY(-4px) scale(1.06); filter: drop-shadow(0 10px 10px rgba(0,0,0,0.55)) brightness(1.1); }
.coinopp-slot.is-selected .coinopp-box {
	transform: translateY(-5px) scale(1.08);
	filter: drop-shadow(0 0 10px rgba(241,196,15,0.9)) drop-shadow(0 8px 8px rgba(0,0,0,0.5));
}
.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: translateY(-4px) scale(1.06) perspective(260px) rotateY(-14deg) rotateX(4deg); }
	50% { transform: translateY(-6px) scale(1.07) perspective(260px) rotateY(14deg) rotateX(-3deg); }
}
.coinopp-slot:not(.is-empty):hover .coinopp-box,
.coinopp-slot:focus-visible .coinopp-box,
.coinopp-slot.is-selected .coinopp-box { animation: coinopp-box-wobble 2.2s ease-in-out infinite; }
.coinopp-slot.is-selected::after {
	content: "";
	position: absolute;
	inset: -2px;
	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: 4px; right: 6px;
	z-index: 3;
	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; }

.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);
}
.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 {
	height: 54px;
	border: none;
	border-radius: 10px;
	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); } }
.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: 6px;
	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: 8px;
	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;
	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 6%;
	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; }
.coinopp-item-name {
	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: 6px;
	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;
}
.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-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	z-index: 100002;
	transform: translate(-50%, 20px);
	padding: 12px 18px;
	border-radius: 10px;
	background: #b3122c;
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.5);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}
.coinopp-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.coinopp-toast.is-good { background: #1e9c55; }

@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; }
}

@media (prefers-reduced-motion: reduce) {
	.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; }
