/* ---------- shared motion ---------- */
@keyframes atm-turn { to { transform: rotate(360deg); } }
@keyframes atm-turn-back { to { transform: rotate(-360deg); } }
@keyframes atm-dash { to { stroke-dashoffset: -120; } }
@keyframes atm-blink-k { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes atm-bob-k { 0%, 100% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(3px, -8px) rotate(4deg); } 50% { transform: translate(0, -12px) rotate(0); } 75% { transform: translate(-3px, -6px) rotate(-4deg); } }
@keyframes atm-wave-k { 0% { transform: scale(.8); opacity: .55; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes atm-pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes atm-tw { 0%, 100% { opacity: .2; transform: scale(.7) rotate(0); } 50% { opacity: .9; transform: scale(1.1) rotate(90deg); } }

.atm-flow { stroke-dasharray: 14 10; animation: atm-dash calc(4s * var(--atm-speed, 1)) linear infinite; animation-play-state: var(--atm-play, running); }
.atm-blink { animation: atm-blink-k 1.8s ease-in-out infinite; }
.atm-spin { transform-origin: 50px 50px; animation: atm-turn 6s linear infinite; }

/* ---------- offer card ---------- */
.elementor-widget-aminh_tm_offer { align-self: stretch; }
.elementor-widget-aminh_tm_offer > .elementor-widget-container { height: 100%; }
.atm-offer {
	--atm-bg: #fcb90c; --atm-ink: #111; --atm-disc: #fff; --atm-d: 110px;
	position: relative; overflow: hidden; height: 100%; box-sizing: border-box;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
	padding: 28px 18px; text-align: center; border-radius: 8px;
	background: var(--atm-bg); color: var(--atm-ink);
	background-image: radial-gradient(circle at 50% 38%, rgba(255,255,255,.45), rgba(255,255,255,0) 60%);
	background-color: var(--atm-bg);
}
.atm-offer-lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .22; pointer-events: none; }
.atm-offer-plus { position: absolute; font: 700 22px/1 sans-serif; opacity: .5; animation: atm-tw calc(2.6s * var(--atm-speed, 1)) ease-in-out infinite; animation-play-state: var(--atm-play, running); }
.atm-offer-plus.p1 { top: 14%; right: 14%; }
.atm-offer-plus.p2 { bottom: 16%; left: 12%; animation-delay: -1.3s; }
.atm-offer-badge { position: relative; width: calc(var(--atm-d) * 1.55); height: calc(var(--atm-d) * 1.55); flex: none; display: grid; place-items: center; }
.atm-offer-badge > * { grid-area: 1 / 1; }
.atm-disc {
	width: var(--atm-d); height: var(--atm-d); border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 2;
	background: var(--atm-disc); color: var(--atm-ink); font-weight: 800; font-size: calc(var(--atm-d) * .42); line-height: 1;
	box-shadow: 0 0 0 6px rgba(255,255,255,.35), 0 10px 30px rgba(17,17,17,.18);
	animation: atm-pop calc(2.4s * var(--atm-speed, 1)) ease-in-out infinite; animation-play-state: var(--atm-play, running);
}
.atm-ring { position: absolute; inset: 0; border-radius: 50%; animation: atm-turn calc(9s * var(--atm-speed, 1)) linear infinite; animation-play-state: var(--atm-play, running); }
.atm-ring.r1 { border: 2px dashed currentColor; opacity: .7; }
.atm-ring.r1 i { position: absolute; top: 50%; right: -7px; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--atm-ink); box-shadow: 0 0 0 4px rgba(255,255,255,.6), 0 0 14px var(--atm-disc); }
.atm-ring.r2 { inset: 9%; border: 1.5px solid currentColor; border-color: currentColor transparent currentColor transparent; opacity: .45; animation-name: atm-turn-back; animation-duration: calc(5s * var(--atm-speed, 1)); }
.atm-wave { position: absolute; width: var(--atm-d); height: var(--atm-d); border-radius: 50%; border: 2px solid var(--atm-disc); animation: atm-wave-k calc(2.4s * var(--atm-speed, 1)) ease-out infinite; animation-play-state: var(--atm-play, running); }
.atm-wave.w2 { animation-delay: calc(-1.2s * var(--atm-speed, 1)); }
.atm-offer-text { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.atm-offer-title { font-weight: 800; font-size: 25px; line-height: 1.4; }
.atm-offer-sub { font-size: 16px; line-height: 1.7; opacity: .85; }
.atm-offer-btn {
	display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 9px 18px; border-radius: 8px;
	background: var(--atm-ink); color: var(--atm-bg) !important; font-weight: 700; font-size: 15px; transition: transform .25s, box-shadow .25s;
}
.atm-offer-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(17,17,17,.25); }
@media (max-width: 767px) {
	.atm-offer { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 16px; text-align: right; }
	.atm-offer-text { align-items: flex-start; gap: 4px; }
	.atm-offer-btn { margin-top: 4px; padding: 6px 14px; font-size: 14px; }
}

/* ---------- floaters layer ---------- */
.elementor-widget-aminh_tm_floaters { position: absolute !important; inset: 0; width: auto !important; max-width: none !important; margin: 0 !important; z-index: 0; pointer-events: none; }
.elementor-widget-aminh_tm_floaters > .elementor-widget-container { height: 100%; }
.e-con:has(> .elementor-widget-aminh_tm_floaters) > .elementor-element:not(.elementor-widget-aminh_tm_floaters),
.e-con:has(> .elementor-widget-aminh_tm_floaters) > .e-con-inner > .elementor-element:not(.elementor-widget-aminh_tm_floaters) { position: relative; z-index: 1; }
.atm-float-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.atm-fl { position: absolute; display: block; width: 60px; will-change: transform; }
.atm-fl svg, .atm-fl img { display: block; width: 100%; height: auto; overflow: visible; }
.elementor-widget-aminh_tm_floaters.atm-front-yes { z-index: 2; }
.atm-bob { display: block; animation: atm-bob-k 6s ease-in-out infinite; }
.atm-fl:nth-child(2n) .atm-bob { animation-duration: 7.5s; animation-delay: -2s; }
.atm-fl:nth-child(3n) .atm-bob { animation-duration: 5s; animation-delay: -3.5s; }
@media (min-width: 1400px) { .atm-float-layer { overflow: visible; } }
@media (max-width: 767px) { .atm-fl.atm-hide-m { display: none; } }
@media (prefers-reduced-motion: reduce) {
	.atm-bob, .atm-flow, .atm-ring, .atm-wave, .atm-disc, .atm-offer-plus, .atm-spin, .atm-blink { animation: none !important; }
}

/* ---------- tap game ---------- */
.atm-game { --atm-g-bg: #111; --atm-g-acc: #fcb90c; --atm-g-fg: #fff; background: var(--atm-g-bg); color: var(--atm-g-fg); border-radius: 8px; padding: 20px; position: relative; overflow: hidden; }
.atm-game-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.atm-game-title { font-weight: 800; font-size: 25px; line-height: 1.4; color: var(--atm-g-acc); }
.atm-game-text { font-size: 16px; opacity: .8; }
.atm-game-stats { display: flex; gap: 10px; }
.atm-game-stats span { border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: 6px 12px; font-size: 14px; white-space: nowrap; }
.atm-game-stats b { color: var(--atm-g-acc); font-size: 18px; margin-right: 4px; }
.atm-game-field { position: relative; height: 320px; border-radius: 8px; overflow: hidden; touch-action: manipulation;
	background-color: rgba(255,255,255,.03);
	background-image: linear-gradient(rgba(252,185,12,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(252,185,12,.08) 1px, transparent 1px);
	background-size: 32px 32px; }
.atm-game-field template { display: none; }
.atm-game-target { position: absolute; width: 64px; height: 64px; padding: 6px; border: 0; background: none; color: var(--atm-g-acc); cursor: crosshair; display: none;
	filter: drop-shadow(0 0 10px var(--atm-g-acc)); transition: left .18s ease-out, top .18s ease-out, transform .18s; }
.atm-game-target svg { width: 100%; height: 100%; display: block; }
.atm-game.is-on .atm-game-target { display: block; }
.atm-game-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(17,17,17,.55); }
.atm-game-msg { font-size: 20px; font-weight: 700; }
.atm-game-msg:empty { display: none; }
.atm-game-btn { background: var(--atm-g-acc) !important; color: #111 !important; border: 0; border-radius: 8px; padding: 10px 26px; font-weight: 800; font-size: 16px; cursor: pointer; }
.atm-game-boom { position: absolute; color: var(--atm-g-acc); font-weight: 800; font-size: 20px; pointer-events: none; animation: atm-boom .7s ease-out forwards; }
@keyframes atm-boom { to { transform: translateY(-40px) scale(1.4); opacity: 0; } }
@media (max-width: 767px) {
	.atm-game { padding: 15px; }
	.atm-game-title { font-size: 20px; }
	.atm-game-text { font-size: 15px; }
	.atm-game-stats { width: 100%; }
	.atm-game-stats span { flex: 1; text-align: center; padding: 6px 4px; }
	.atm-game-target { width: 56px; height: 56px; }
}
.atm-game .atm-game-target { display: none !important; position: absolute !important; margin: 0 !important; padding: 6px !important; background: none !important; box-shadow: none !important; border: 0 !important; min-height: 0 !important; }
.atm-game.is-on .atm-game-target { display: block !important; }

/* 1.2.3: gadgets drift in the field before the game starts, so it never looks empty */
.atm-game-idle { position: absolute; inset: 0; pointer-events: none; }
.atm-game-idle span { position: absolute; width: 54px; height: 54px; margin: -27px 0 0 -27px; color: var(--atm-g-acc); opacity: .55; animation: atm-idle calc(6s / var(--atm-g-speed, 1)) ease-in-out infinite alternate; }
.atm-game-idle span svg { width: 100%; height: 100%; display: block; }
.atm-game.is-on .atm-game-idle { display: none; }
.atm-game-over { background: rgba(17,17,17,.35); }
.atm-game-hint { font-size: 14px; opacity: .85; text-align: center; padding: 0 12px; }
.atm-game.is-on .atm-game-hint, .atm-game-msg:not(:empty) ~ .atm-game-hint { display: none; }
@keyframes atm-idle { 0% { transform: translate(0,0) rotate(-8deg); } 50% { transform: translate(18px,-14px) rotate(6deg); } 100% { transform: translate(-12px,10px) rotate(-4deg); } }
@media (max-width: 767px) { .atm-game-idle span { width: 40px; height: 40px; margin: -20px 0 0 -20px; } }
@media (prefers-reduced-motion: reduce) { .atm-game-idle span { animation: none; } }
