/* NaN2 2026-11-26: hero phone animation (home screen -> tap NaN2 -> loading -> rotate -> gameplay). Sources C:/m2/web/site_mobil */
.n2-hero-inner.n2-mob-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 40px; }
.n2-mob-grid .n2-hero-copy { max-width: 600px; }
/* the hero art stays, dimmed on the right so the phone reads first */
.n2-hero:has(.n2-mob-grid) .n2-hero-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(38% 55% at 74% 55%, rgba(8, 6, 6, .78), rgba(8, 6, 6, .35) 70%, rgba(8, 6, 6, .2)); }
.n2-hero-video { z-index: 0; }

.n2-mob-pitch { margin: 0 0 22px; max-width: 560px; }
.n2-mob-badge {
	display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 6px 12px 6px 10px;
	border-radius: 999px; border: 1px solid rgba(61, 220, 132, .45); background: rgba(12, 32, 21, .78);
	color: #bff5d6; font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
	box-shadow: 0 0 0 0 rgba(61, 220, 132, .4); animation: n2-mob-badge 2.4s ease-out infinite;
}
.n2-mob-badge i { color: #3ddc84; font-size: 14px; }
.n2-mob-pitch p { margin: 0; font-size: 16px; line-height: 1.55; color: #e4d9c8; }
.n2-mob-pitch b { color: #fff; font-weight: 700; }
.n2-btn.n2-btn-apk { background: linear-gradient(180deg, #1d4a31, #12301f); border: 1px solid rgba(61, 220, 132, .6); color: #e6fff1; }
.n2-btn.n2-btn-apk:hover, .n2-btn.n2-btn-apk:focus-visible { background: linear-gradient(180deg, #24603e, #173d28); border-color: #3ddc84; color: #fff; box-shadow: 0 0 22px rgba(61, 220, 132, .3); }
.n2-btn.n2-btn-apk i { color: #3ddc84; }
.n2-mob-note { margin: 12px 0 0; max-width: 560px; font-size: 12.5px; line-height: 1.5; color: #a99d8c; }
.n2-mob-note i { color: #3ddc84; margin-right: 3px; }
@keyframes n2-mob-badge { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .45); } 70%, 100% { box-shadow: 0 0 0 12px rgba(61, 220, 132, 0); } }

/* ---- phone ---- */
.n2-ph-wrap {
	--rx: 0deg; --ry: 0deg;
	position: relative; width: 28em; height: 28em; font-size: clamp(14px, 1.32vw, 19px);
	transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .35s ease-out;
}
.n2-ph-glow { position: absolute; inset: 8% 4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(181, 40, 31, .45), rgba(201, 164, 92, .12) 60%, transparent); filter: blur(18px); opacity: 0; transition: opacity 1.2s; }
.n2-ph-wrap.on .n2-ph-glow { opacity: 1; }
.n2-ph {
	--r: 10deg; --tx: 3em; --sc: .9;
	position: absolute; left: 50%; top: 50%; width: 12.6em; height: 26em; padding: .5em; box-sizing: border-box;
	border-radius: 2.1em; background: linear-gradient(145deg, #2a2a2e, #0c0c0e 45%, #1b1b1f);
	box-shadow: 0 0 0 1px #4b3a22, 0 0 0 3px #0d0d0f, inset 0 0 0 1px rgba(255, 255, 255, .08), 0 2.2em 3.5em -1em rgba(0, 0, 0, .85), 0 0 3em rgba(181, 40, 31, .18);
	transform: translate(-50%, -50%) translateX(var(--tx)) rotate(var(--r)) scale(var(--sc));
	opacity: 0; cursor: pointer;
	transition: transform 1s cubic-bezier(.2, .85, .25, 1.05), opacity .8s ease, width .9s cubic-bezier(.3, .8, .3, 1), height .9s cubic-bezier(.3, .8, .3, 1);
}
.n2-ph.st-in { --r: 0deg; --tx: 0em; --sc: 1; opacity: 1; }
.n2-ph.st-rot { --r: -90deg; transition-duration: .85s; }
.n2-ph.st-land { --r: 0deg; width: 26em; height: 12.6em; }
.n2-ph.snap, .n2-ph.snap * { transition: none !important; }
.n2-ph-cam { position: absolute; left: 50%; top: .95em; width: .5em; height: .5em; margin-left: -.25em; border-radius: 50%; background: #050506; box-shadow: inset 0 0 0 1px #222, 0 0 0 1px #000; z-index: 5; }
.n2-ph.st-land .n2-ph-cam { left: .95em; top: 50%; margin: -.25em 0 0; }
.n2-ph::before, .n2-ph::after { content: ''; position: absolute; right: -.18em; width: .18em; border-radius: 0 .15em .15em 0; background: #2b2b30; }
.n2-ph::before { top: 5.5em; height: 2.6em; }
.n2-ph::after { top: 8.8em; height: 1.4em; }
.n2-ph.st-land::before, .n2-ph.st-land::after { right: auto; top: -.18em; height: .18em; border-radius: .15em .15em 0 0; }
.n2-ph.st-land::before { left: 5.5em; width: 2.6em; }
.n2-ph.st-land::after { left: 8.8em; width: 1.4em; }

.n2-ph-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 1.65em; background: #000; isolation: isolate; }
.n2-ph-screen::after { content: ''; position: absolute; inset: 0; z-index: 9; pointer-events: none; border-radius: inherit; background: linear-gradient(125deg, rgba(255, 255, 255, .09), transparent 32%, transparent 70%, rgba(255, 255, 255, .03)); }

/* home screen */
.n2-ph-home {
	position: absolute; inset: 0; display: flex; flex-direction: column; color: #fff; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	background: radial-gradient(120% 60% at 20% 0%, #5a1712 0%, transparent 60%), radial-gradient(90% 60% at 100% 100%, #3a2a10 0%, transparent 65%), linear-gradient(180deg, #1b0d0b, #0a0707);
	transition: transform .6s ease, opacity .5s ease, filter .6s ease;
}
.n2-ph-bar { display: flex; justify-content: space-between; align-items: center; padding: .7em 1.2em 0 1.3em; font-size: .62em; opacity: .9; }
.n2-ph-bar span { display: flex; gap: .45em; }
.n2-ph-big { margin-top: 1.1em; text-align: center; font-size: 2.8em; font-weight: 300; letter-spacing: .02em; line-height: 1; text-shadow: 0 .1em .4em rgba(0, 0, 0, .5); }
.n2-ph-date { text-align: center; font-size: .68em; opacity: .75; margin-top: .4em; }
.n2-ph-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.05em .6em; padding: 0 1em; margin-top: auto; justify-items: center; }
.n2-ph-apps > i, .n2-ph-dock > i { display: block; width: 2.3em; height: 2.3em; border-radius: .7em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); opacity: .82; }
.a1 { background: linear-gradient(140deg, #4f8cff, #2a4fb8); } .a2 { background: linear-gradient(140deg, #f5f5f5, #b9b9b9); }
.a3 { background: linear-gradient(140deg, #ffb347, #e9672a); } .a4 { background: linear-gradient(140deg, #35c76b, #1d7f45); }
.a5 { background: linear-gradient(140deg, #9a6bff, #5b35c7); } .a6 { background: linear-gradient(140deg, #ff5f7a, #b8243d); }
.a7 { background: linear-gradient(140deg, #3fd0d4, #1c7f92); } .a8 { background: linear-gradient(140deg, #ffd84d, #c99a1c); }
.a9 { background: linear-gradient(140deg, #6b6b73, #2f2f35); }
.n2-ph-app { position: relative; display: flex; flex-direction: column; align-items: center; gap: .25em; }
.n2-ph-app img { display: block; width: 2.3em; height: 2.3em; border-radius: .7em; box-shadow: 0 0 0 1px rgba(232, 199, 122, .55), 0 0 1em rgba(232, 199, 122, .45); transition: transform .18s ease; animation: n2-ph-appglow 1.6s ease-in-out infinite; }
.n2-ph-app small { font-size: .5em; color: #f3e2b5; }
.n2-ph-app small, .n2-ph-apps > i + small { line-height: 1; }
.n2-ph.tap .n2-ph-app img { transform: scale(.86); }
.n2-ph-dock { display: flex; justify-content: space-around; margin: 1.2em .7em .9em; padding: .55em .4em; border-radius: 1.2em; background: rgba(255, 255, 255, .08); backdrop-filter: blur(4px); }
@keyframes n2-ph-appglow { 50% { box-shadow: 0 0 0 1px rgba(232, 199, 122, .9), 0 0 1.6em rgba(232, 199, 122, .7); } }

/* finger */
.n2-ph-finger { position: absolute; z-index: 8; left: 50%; top: 50%; width: 2.6em; height: 2.6em; margin: -1.3em 0 0 -1.3em; border-radius: 50%; background: rgba(255, 255, 255, .32); box-shadow: 0 0 0 .12em rgba(255, 255, 255, .55); opacity: 0; transform: scale(1.5); transition: opacity .35s, transform .35s; pointer-events: none; }
.n2-ph.finger .n2-ph-finger { opacity: 1; transform: scale(1); }
.n2-ph.tap .n2-ph-finger { transform: scale(.72); background: rgba(255, 255, 255, .5); }

/* splash */
.n2-ph-splash {
	position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2em;
	background: radial-gradient(70% 45% at 50% 45%, rgba(150, 28, 20, .55), transparent 70%), #080505;
	opacity: 0; transform: scale(.15); transform-origin: var(--ox, 50%) var(--oy, 80%); transition: opacity .45s ease, transform .55s cubic-bezier(.2, .8, .25, 1);
}
.n2-ph.st-splash .n2-ph-splash { opacity: 1; transform: none; }
.n2-ph.st-splash .n2-ph-home { opacity: 0; transform: scale(1.08); filter: blur(4px); }
.n2-ph-logo { width: 72%; max-width: 15em; height: auto; filter: drop-shadow(0 .3em 1em rgba(0, 0, 0, .7)); animation: n2-ph-breathe 2.2s ease-in-out infinite; }
.n2-ph.st-land .n2-ph-logo { width: 38%; }
.n2-ph-load { width: 62%; height: .32em; border-radius: 1em; background: rgba(255, 255, 255, .1); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(201, 164, 92, .35); }
.n2-ph.st-land .n2-ph-load { width: 40%; }
.n2-ph-load i { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: linear-gradient(90deg, #8f1d14, #e8c77a 70%, #fff3c4); box-shadow: 0 0 .6em rgba(232, 199, 122, .8); transition: width .25s linear; }
.n2-ph-load-t { min-height: 1.2em; font-size: .62em; letter-spacing: .06em; color: #e9dcc3; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
@keyframes n2-ph-breathe { 50% { transform: scale(1.04); filter: drop-shadow(0 .3em 1em rgba(0, 0, 0, .7)) drop-shadow(0 0 .8em rgba(232, 199, 122, .35)); } }

/* gameplay */
.n2-ph-game { position: absolute; inset: 0; z-index: 4; opacity: 0; transition: opacity .7s ease; background: #0c0c0e; }
.n2-ph.st-game .n2-ph-game { opacity: 1; }
.n2-ph-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; display: block; background: #0c0c0e; }

.n2-ph-toast { position: absolute; left: 50%; top: .7em; z-index: 2; padding: .35em .9em; border-radius: 1em; background: rgba(10, 30, 18, .88); border: 1px solid rgba(61, 220, 132, .6); color: #d7ffe8; font: 600 .55em/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; white-space: nowrap; transform: translate(-50%, -2.5em); opacity: 0; transition: transform .5s cubic-bezier(.2, .9, .3, 1.3), opacity .4s; }
.n2-ph-toast i { color: #3ddc84; }
.n2-ph.n2-ph-toast-on .n2-ph-toast { transform: translate(-50%, 0); opacity: 1; }
/* background farm notification (heads-up, like the real Android one) */
.n2-ph-notif { position: absolute; left: 50%; top: .6em; z-index: 3; display: flex; align-items: center; gap: .6em; width: 58%; padding: .55em .8em; border-radius: .9em; background: rgba(32, 32, 38, .95); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 .4em 1.2em rgba(0, 0, 0, .5); color: #c9c9d1; font: 400 .5em/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; transform: translate(-50%, -160%); opacity: 0; transition: transform .55s cubic-bezier(.2, .9, .3, 1.2), opacity .4s; }
.n2-ph-notif img { width: 2.6em; height: 2.6em; border-radius: .6em; flex: none; }
.n2-ph-notif b { display: block; color: #fff; font-weight: 600; }
.n2-ph-notif em { font-style: normal; font-weight: 600; color: #f3c969; font-variant-numeric: tabular-nums; }
.n2-ph.n2-ph-notif-on .n2-ph-notif { transform: translate(-50%, 0); opacity: 1; }
.n2-mob-farm i { color: #f3c969; margin-right: .2em; }

.n2-ph-cap { position: absolute; left: 0; right: 0; bottom: 1.2em; margin: 0; text-align: center; font-size: .62em; letter-spacing: .08em; text-transform: uppercase; color: rgba(233, 220, 195, .55); opacity: 0; transition: opacity .8s; }
.n2-ph-wrap.played .n2-ph-cap { opacity: 1; }

.n2-ph-wrap.paused *, .n2-ph-wrap.paused *::before, .n2-ph-wrap.paused *::after { animation-play-state: paused !important; }

@media (max-width: 980px) {
	.n2-hero-inner.n2-mob-grid { grid-template-columns: minmax(0, 1fr); }
	.n2-ph-wrap { margin: 0 auto; font-size: min(15px, 3.15vw); height: 27em; }
}
@media (max-width: 700px) {
	.n2-mob-pitch p { font-size: 15px; }
	.n2-hero-cta .n2-btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.n2-ph-wrap, .n2-ph, .n2-ph * { transition: none !important; animation: none !important; }
	.n2-mob-badge { animation: none; }
}
