/* Motion and MVP PROJECT signature touches (14.11.2026), built with the animation skills:
   ease-out for things that appear and for presses, ease for hover colours, UI motion stays under 300 ms,
   only transform and opacity animate (plus clip-path for the heading cut), hover only with a mouse.
   Reduced motion: base.css switches every transition and animation off; fx.js skips the reveals.
   Each block below is independent, so any of them can be removed on its own. */

/* ── Brand details: gold text selection, a dark scrollbar ── */
::selection { background: rgba(242, 183, 48, 0.85); color: var(--gold-ink); }
html { scrollbar-color: #2c2c2c var(--bg); }

/* ── Page transitions: pages cross-fade instead of cutting (Chrome, Edge, Safari 18+) ── */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ── Press: things you click sink a little while held; colours change softly ── */
:where(.btn, .btn-small, .btn-add, .console button, .icon-btn, .steam, .um .user-chip, .support-main, .um-vip-btn, .pf-act, .method,
       .chips button, .topup .chip, .vm-buy, .sponsor-toggle, .seg button, .tabs button, .pf-nav button, .sk-tabs button, .sk-seg button,
       .vm-pills button, .lang button, .cart-close, .kf-act, .fx-chip, .servers .srv) {
    transition: transform 150ms var(--ease-out), background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
:where(.btn, .btn-small, .btn-add, .console button, .icon-btn, .steam, .um .user-chip, .support-main, .um-vip-btn, .pf-act, .method,
       .chips button, .topup .chip, .vm-buy, .sponsor-toggle, .seg button, .tabs button, .pf-nav button, .sk-tabs button, .sk-seg button,
       .vm-pills button, .lang button, .cart-close, .fx-chip, .servers .srv):not(:disabled):active { transform: scale(0.97); }
.support-btn { transition: transform 150ms var(--ease-out), background-color 150ms ease; }
.support-btn:active { transform: scale(0.94); }
:where(.nav a, .tiers a, .community a, .skin-tile, .person, .map, .um-links a, .foot a, .pill, .rules-nav a, .sk-card) {
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms var(--ease-out);
}

/* ── Menus open from where they were called and close a little faster ── */
.um-panel, .support-panel { transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out), display 160ms allow-discrete; }
.um-panel { transform-origin: top right; }
.support-panel { transform-origin: bottom right; }
.um-panel[hidden] { opacity: 0; transform: translateY(-4px) scale(0.97); transition-duration: 120ms; }
.support-panel[hidden] { opacity: 0; transform: translateY(4px) scale(0.97); transition-duration: 120ms; }
@starting-style {
    .um-panel:not([hidden]) { opacity: 0; transform: translateY(-4px) scale(0.97); }
    .support-panel:not([hidden]) { opacity: 0; transform: translateY(4px) scale(0.97); }
}
@media (max-width: 1080px) {
    .mobile-nav { transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), display 180ms allow-discrete; }
    .mobile-nav[hidden] { opacity: 0; transform: translateY(-6px); transition-duration: 120ms; }
    @starting-style { .mobile-nav:not([hidden]) { opacity: 0; transform: translateY(-6px); } }
}
.cart-overlay { transition: opacity 200ms ease, display 200ms allow-discrete; }
.cart-overlay[hidden] { opacity: 0; }
@starting-style { .cart-overlay:not([hidden]) { opacity: 0; } }

/* ── Content that is swapped in (shop and profile tabs, the skins grid, tables) fades in ── */
:where(.panel, .pf-panel) > *, .js-lb > tr, .js-bans > tr { transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
@starting-style {
    :where(.panel, .pf-panel) > *, .js-lb > tr, .js-bans > tr { opacity: 0; transform: translateY(4px); }
}

/* ── Live: the green dot pings like a broadcast light ── */
.pill.is-online i, .now-badge i { position: relative; }
.pill.is-online i::after, .now-badge i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--live); animation: fx-ping 2.2s var(--ease-out) infinite; }
@keyframes fx-ping { 0% { opacity: 0.55; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(2.6); } }

/* ── Console: the server address blinks a caret like the CS2 console; the copy button turns green with a check ── */
.console code::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 4px; vertical-align: -0.18em; background: var(--gold); animation: fx-caret 1.1s steps(1, end) infinite; }
@keyframes fx-caret { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 0; } }
.console button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.console button .fx-check { display: none; width: 16px; height: 16px; flex: none; }
.console button.is-done { background: var(--live); }
.console button.is-done .fx-check { display: block; animation: fx-pop 200ms var(--ease-out) both; }
@keyframes fx-pop { from { opacity: 0; transform: scale(0.6); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }

/* ── Cart: the counter jumps when something is added ── */
.icon-btn .count.is-bump { animation: fx-bump 340ms var(--ease-out); }
@keyframes fx-bump { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ── Home intro, once per visit: the title is cut in by a blade, the rest rises after it ── */
@keyframes fx-cut-in { from { clip-path: polygon(-12% -20%, -12% -20%, -24% 120%, -24% 120%); } to { clip-path: polygon(-12% -20%, 112% -20%, 100% 120%, -24% 120%); } }
@keyframes fx-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fx-fade { from { opacity: 0; } to { opacity: 1; } }
.fx-intro .hero h1 { animation: fx-cut-in 560ms var(--ease-out) both; }
.fx-intro .hero .lede { animation: fx-rise 460ms var(--ease-out) 140ms both; }
.fx-intro .hero .console { animation: fx-rise 460ms var(--ease-out) 200ms both; }
.fx-intro .hero .hero-links { animation: fx-rise 460ms var(--ease-out) 260ms both; }
.fx-intro .hero .live { animation: fx-fade 600ms var(--ease-out) 180ms both; }

/* ── Home sections appear as you scroll to them: the heading is cut in, the blocks rise one after another ── */
.fx-reveal .section h2 { clip-path: polygon(-12% -20%, -12% -20%, -24% 120%, -24% 120%); transition: clip-path 560ms var(--ease-out); }
.fx-reveal .section.is-in h2 { clip-path: polygon(-12% -20%, 112% -20%, 100% 120%, -24% 120%); }
.fx-reveal .section :is(.sub, .stepper > li, .cmd-groups > *, .maps-grid > *, .tiers, .skins-row > *, .free, .why > div, .community > a, .org) {
    --fx-d: calc(var(--fx-base, 160ms) + var(--fx-i, 0) * 70ms);
    opacity: 0; transform: translateY(14px);
    transition: opacity 480ms var(--ease-out) var(--fx-d), transform 480ms var(--ease-out) var(--fx-d), background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.fx-reveal .section.is-in :is(.sub, .stepper > li, .cmd-groups > *, .maps-grid > *, .tiers, .skins-row > *, .free, .why > div, .community > a, .org) { opacity: 1; transform: none; }
.fx-reveal .section .sub { --fx-base: 90ms; }
.fx-reveal .section :is(.free, .community > a) { --fx-base: 120ms; }
.fx-reveal .section .tiers { --fx-base: 200ms; }
.fx-reveal .section .skins-row > * { --fx-base: 280ms; }
.fx-reveal .section .cmd-groups > * { --fx-base: 300ms; }
.fx-reveal :is(.stepper, .cmd-groups, .maps-grid, .skins-row, .why, .community) > :nth-child(2) { --fx-i: 1; }
.fx-reveal :is(.stepper, .cmd-groups, .maps-grid, .skins-row, .why, .community) > :nth-child(3) { --fx-i: 2; }
.fx-reveal :is(.stepper, .cmd-groups, .maps-grid, .skins-row, .why, .community) > :nth-child(4) { --fx-i: 3; }
.fx-reveal :is(.stepper, .cmd-groups, .maps-grid, .skins-row, .why, .community) > :nth-child(5) { --fx-i: 4; }
.fx-reveal :is(.stepper, .cmd-groups, .maps-grid, .skins-row, .why, .community) > :nth-child(6) { --fx-i: 5; }
.fx-reveal :is(.stepper, .cmd-groups, .maps-grid, .skins-row, .why, .community) > :nth-child(n+7) { --fx-i: 6; }
/* printing shows everything at once */
@media print {
    .fx-reveal .section h2 { clip-path: none; }
    .fx-reveal .section :is(.sub, .stepper > li, .cmd-groups > *, .maps-grid > *, .tiers, .skins-row > *, .free, .why > div, .community > a, .org) { opacity: 1; transform: none; }
    .fx-dark, .fx-chip, .kf-stack, .peek { display: none; }
}
/* blocks drawn after the section already appeared (maps, skins, team) fade in on arrival */
@starting-style {
    .fx-reveal .section.is-in :is(.maps-grid > *, .skins-row > *, .org) { opacity: 0; transform: translateY(14px); }
}

/* ── Kill feed: notices look like the CS2 kill feed; your own actions get a gold frame (CS2 marks yours in red) ── */
.kf-stack { position: fixed; z-index: 95; top: calc(var(--header-h) + 12px); right: max(16px, env(safe-area-inset-right)); display: grid; justify-items: end; gap: 6px; max-width: calc(100vw - 32px); pointer-events: none; }
.kf { pointer-events: auto; display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 12px; border-radius: 4px; background: rgba(9, 9, 10, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.09); box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.9); color: var(--text); font-size: 14px; line-height: 1.3;
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
@starting-style { .kf { opacity: 0; transform: translateX(16px); } }
.kf.is-out { opacity: 0; transform: translateX(8px); transition-duration: 150ms; }
.kf.is-you { border-color: rgba(242, 183, 48, 0.7); }
.kf-ico { flex: none; width: 30px; height: 12px; color: #fff; }
.kf-ico.is-sq { width: 16px; height: 16px; }
.kf.is-star .kf-ico { color: var(--gold); }
.kf.is-ok .kf-ico { color: var(--live); }
.kf-text { min-width: 0; }
.kf-act { flex: none; border: 0; background: none; padding: 0 0 0 4px; color: var(--gold); font: 600 14px/1.3 var(--sans); cursor: pointer; white-space: nowrap; }
.kf-act:hover { color: var(--gold-hover); }
@media (max-width: 720px) { .kf-stack { left: 16px; right: 16px; justify-items: stretch; } .kf { justify-content: flex-start; } .kf-text { flex: 1; } }

/* ── Payment success: a «Round MVP» banner like at the end of a CS2 round ── */
.notice.is-mvp { box-shadow: inset 3px 0 0 var(--gold); background: linear-gradient(90deg, rgba(242, 183, 48, 0.15), rgba(242, 183, 48, 0) 55%), var(--panel); animation: fx-drop 260ms var(--ease-out) both; }
.notice.is-mvp .fx-mvp-star { width: 24px; height: 24px; flex: none; color: var(--gold); animation: fx-star 440ms var(--ease-out) 120ms both; }
.notice.is-mvp b { font: italic 900 15px/1 var(--wide); text-transform: uppercase; color: var(--gold); margin-right: 8px; }
@keyframes fx-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes fx-star { 0% { opacity: 0; transform: scale(0.5); } 60% { opacity: 1; transform: scale(1.15); } 100% { opacity: 1; transform: scale(1); } }

/* ── Hide and seek: on every page from the menu someone hides; find them all to unlock the flashlight ── */
.peek-host { position: relative; }
.peek { position: absolute; z-index: 2; width: 44px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.peek svg { width: 28px; height: 12px; overflow: visible; transition: transform 160ms var(--ease-out); }
.peek .fx-eyes { transform-box: fill-box; transform-origin: center; }
.peek.is-blink .fx-eyes { animation: fx-blink 170ms ease-in-out; }
@keyframes fx-blink { 50% { transform: scaleY(0.1); } }
@media (hover: hover) and (pointer: fine) { .peek:hover svg { transform: scale(1.18); } }
.peek::after { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; margin-top: -1px; border-radius: 1px; background: #fff; opacity: 0; transform: rotate(-18deg) scaleX(0); transform-origin: right center; pointer-events: none; }
.peek.is-caught svg { animation: fx-caught 420ms var(--ease-out) forwards; }
.peek.is-caught::after { animation: fx-slash 300ms var(--ease-out) both; }
@keyframes fx-caught { 0% { transform: scale(1.18); opacity: 1; } 30% { transform: scale(1.3, 0.12); opacity: 1; } 100% { transform: translateY(6px) scale(0.6, 0.1); opacity: 0; } }
@keyframes fx-slash { 0% { opacity: 1; transform: rotate(-18deg) scaleX(0); } 45% { opacity: 1; transform: rotate(-18deg) scaleX(1); } 100% { opacity: 0; transform: rotate(-18deg) scaleX(1); } }

/* ── Flashlight mode (the reward): the page goes dark, only the circle around the cursor is lit ── */
.fx-dark { position: fixed; z-index: 90; left: 0; top: 0; width: 360vmax; height: 360vmax; margin: -180vmax 0 0 -180vmax; pointer-events: none; will-change: transform;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 90px, rgba(0, 0, 0, 0.62) 140px, rgba(0, 0, 0, 0.96) 230px);
    transition: opacity 240ms ease; }
@starting-style { .fx-dark { opacity: 0; } }
.fx-chip { position: fixed; z-index: 96; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid rgba(242, 183, 48, 0.5); background: rgba(9, 9, 10, 0.92); color: var(--text); border-radius: 999px; padding: 8px 14px; font: 500 14px var(--sans); cursor: pointer; }
.fx-chip kbd { font: 600 12px var(--sans); color: var(--muted); border: 1px solid var(--line-strong); border-radius: 4px; padding: 1px 5px; }
.foot .fx-flash { border: 0; background: none; padding: 0; color: var(--gold); font: inherit; cursor: pointer; }
.foot .fx-flash:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── 404: the page is hiding in a dark room, the flashlight finds the number ── */
.nf { padding-top: clamp(32px, 6vh, 64px); padding-bottom: clamp(56px, 9vh, 96px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.nf .sub { margin-bottom: 28px; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.nf-room { position: relative; overflow: hidden; height: clamp(280px, 46vh, 440px); border-radius: var(--r-lg); border: 1px solid var(--line); background: #070707; display: grid; place-items: center; }
.nf-room.is-lit { cursor: none; touch-action: none; }
.nf-404 { font: italic 900 clamp(110px, 16vw, 210px)/1 var(--wide); color: var(--gold); letter-spacing: -0.02em; }
.nf-note { position: absolute; left: 22px; bottom: 18px; color: var(--soft); font-size: 14px; }
.nf-room .peek { right: 26px; top: 22px; }
.nf-light { position: absolute; z-index: 3; left: 0; top: 0; width: 1800px; height: 1800px; margin: -900px 0 0 -900px; pointer-events: none; will-change: transform;
    background: radial-gradient(circle at center, rgba(7, 7, 7, 0) 0, rgba(7, 7, 7, 0) 70px, rgba(7, 7, 7, 0.75) 130px, #070707 200px); }
.nf-hint { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
@media (max-width: 1080px) { .nf { grid-template-columns: minmax(0, 1fr); } }
@media (hover: none), (pointer: coarse) { .nf-room.is-lit { cursor: default; } }

/* ── Loading a slow page: after 0.3 s a gold line runs along the top; after 1.4 s the loading screen,
      where the knife cuts the logo again and again and a tip is shown, like the CS2 loading screen ── */
.ld-line { position: fixed; z-index: 120; left: 0; right: 0; top: 0; height: 3px; pointer-events: none; transition: opacity 200ms ease; }
@starting-style { .ld-line { opacity: 0; } }
.ld-line i { display: block; height: 100%; transform-origin: left center; transform: scaleX(0);
    background: linear-gradient(90deg, rgba(242, 183, 48, 0.25), var(--gold) 70%, #ffe08a);
    animation: ld-trickle 10s cubic-bezier(0.08, 0.75, 0.25, 1) forwards; }
@keyframes ld-trickle { 0% { transform: scaleX(0); } 5% { transform: scaleX(0.3); } 100% { transform: scaleX(0.94); } }
.ld-screen { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 24px; background: rgba(9, 9, 10, 0.94); transition: opacity 240ms ease; }
@starting-style { .ld-screen { opacity: 0; } }
.ld-screen::before { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: repeating-radial-gradient(circle at 50% 44%, rgba(242, 183, 48, 0.08) 0 1px, transparent 1px 56px);
    -webkit-mask-image: radial-gradient(circle at 50% 44%, #000 0, transparent 40%); mask-image: radial-gradient(circle at 50% 44%, #000 0, transparent 40%); }
.ld-card { position: relative; display: grid; justify-items: center; gap: 14px; max-width: 440px; text-align: center; }
.ld-logo { transform: scale(1.7); margin: 24px 0 38px; pointer-events: none; }
.ld-title { margin: 0; font: italic 900 22px/1.15 var(--wide); text-transform: uppercase; text-wrap: balance; }
.ld-tip { margin: 0; min-height: 4.5em; color: var(--soft); font-size: 15px; line-height: 1.5; }
.ld-tip b { display: block; margin-bottom: 6px; color: var(--gold); font: italic 800 12px/1 var(--wide); letter-spacing: 0.08em; text-transform: uppercase; }
.ld-cancel { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); background: none; color: var(--muted); border-radius: 999px; padding: 7px 14px; font: 500 14px var(--sans); cursor: pointer; transition: color 150ms ease, border-color 150ms ease; }
.ld-cancel:hover { color: var(--text); border-color: rgba(242, 183, 48, 0.5); }
.ld-cancel kbd { font: 600 12px var(--sans); border: 1px solid var(--line-strong); border-radius: 4px; padding: 1px 5px; }
@media (prefers-reduced-motion: reduce) { .ld-line i { transform: scaleX(0.6); } }
@media print { .ld-line, .ld-screen { display: none; } }
