/* Vorlix Games 2026-11-30 refresh: floating nav, softer edges, colour, motion, and the Rust/wasm
   particle canvases (fx.js + fx.wasm). Loaded after site.css and vorlix.css. */
:root {
  --shift9: #ffb040; --shift9-ink: #1d1002;
  --radius: 20px;
  --spring: cubic-bezier(.22, 1.2, .36, 1);
  --glass: rgba(14, 16, 22, .62);
}
body.t-shift9 { --accent: var(--shift9); --accent-ink: var(--shift9-ink); background: #08070a; }
body.t-studio { --accent: #ffb040; --accent-ink: #1d1002; }

/* slow colour aurora behind everything */
body::before {
  content: ""; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vmax 30vmax at 15% 20%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%),
    radial-gradient(36vmax 28vmax at 85% 30%, rgba(139, 123, 255, .10), transparent 70%),
    radial-gradient(40vmax 30vmax at 60% 90%, rgba(63, 208, 255, .07), transparent 70%);
  animation: vx-aurora 28s ease-in-out infinite alternate;
}
body.t-hush::before { background: radial-gradient(45vmax 35vmax at 50% 110%, rgba(163, 18, 26, .22), transparent 70%), radial-gradient(30vmax 20vmax at 20% 10%, rgba(120, 20, 30, .10), transparent 70%); }
body.t-timber::before { background: radial-gradient(40vmax 30vmax at 80% 10%, rgba(255, 154, 60, .14), transparent 70%), radial-gradient(40vmax 30vmax at 10% 80%, rgba(110, 170, 70, .10), transparent 70%); }
body.t-chimp::before { background: radial-gradient(40vmax 30vmax at 20% 20%, rgba(242, 194, 48, .12), transparent 70%), radial-gradient(40vmax 30vmax at 85% 70%, rgba(110, 170, 40, .12), transparent 70%); }
@keyframes vx-aurora { to { transform: translate3d(4vmax, -3vmax, 0) rotate(8deg) scale(1.08); } }

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 14px 0 auto; z-index: 60; margin-inline: auto;
  width: min(1200px, calc(100% - 24px));
  background: var(--glass);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border: 1px solid rgba(255, 255, 255, .10); border-radius: 999px;
  box-shadow: 0 10px 40px -12px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: inset .5s var(--ease), width .5s var(--ease), background-color .4s, box-shadow .4s;
  animation: vx-drop .9s var(--spring) both;
}
.nav::after { /* thin accent line along the bottom edge */
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -1px; height: 1px; border-radius: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .55;
}
.nav.is-scrolled { inset: 8px 0 auto; width: min(1080px, calc(100% - 20px)); background: rgba(10, 11, 16, .78); border-bottom-color: rgba(255, 255, 255, .10); }
.nav-in { height: 60px; padding: 0 8px 0 22px; gap: 1rem; max-width: none; }
.wordmark { transition: letter-spacing .4s var(--ease); }
.wordmark:hover { letter-spacing: .06em; }
.wordmark .wm-mark { width: 22px; height: 22px; align-self: center; margin-right: .1rem; animation: vx-spin 14s linear infinite; }
.nav-links { gap: 4px; margin-left: auto; align-items: center; }
.nav-links a {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px; border-radius: 999px; font-size: .88rem; font-weight: 600;
  color: rgba(255, 255, 255, .72); box-shadow: none !important;
  transition: color .25s, background-color .3s, transform .35s var(--spring);
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .07); transform: translateY(-1px); }
.nav-links a .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c, #fff); box-shadow: 0 0 10px var(--c, #fff); transition: transform .35s var(--spring); }
.nav-links a:hover .dot { transform: scale(1.5); }
.nav-links a[aria-current] {
  color: #fff; padding-bottom: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c, #fff) 26%, transparent), color-mix(in srgb, var(--c, #fff) 10%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, #fff) 45%, transparent), 0 0 24px -6px var(--c, #fff) !important;
}
.nl-shift9 { --c: var(--shift9); } .nl-hush { --c: #ff4d4d; } .nl-timber { --c: var(--timber); } .nl-chimp { --c: var(--chimp); } .nl-home { --c: #9a8cff; }
.nav .btn-sm { height: 44px; margin-left: 6px; }
.nav-burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); color: #fff; cursor: pointer; place-items: center; margin-left: auto; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; position: relative; transition: transform .35s var(--spring), background-color .2s; }
.nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 0; }
.nav-burger span::before { top: -5px; } .nav-burger span::after { top: 5px; }
.nav.is-open .nav-burger span { background: transparent; }
.nav.is-open .nav-burger span::before { transform: translateY(5px) rotate(45deg); }
.nav.is-open .nav-burger span::after { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 860px) {
  .nav { border-radius: 26px; }
  .nav-in { flex-wrap: wrap; height: auto; min-height: 60px; padding: 8px 8px 8px 20px; }
  .nav-burger { display: grid; }
  .nav .btn-sm { display: none; }
  .nav-links { display: grid !important; order: 3; width: 100%; margin: 0; gap: 4px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease), opacity .3s, padding .4s; }
  .nav.is-open .nav-links { max-height: 420px; opacity: 1; padding: 6px 0 8px; }
  .nav-links a { height: 48px; font-size: 1rem; justify-content: flex-start; }
}

/* ---------------------------------------------------------------- smoother, more colourful surfaces */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: transform .45s var(--spring), box-shadow .35s, background-color .25s, color .25s, border-color .25s; }
.btn::after { /* light sweep on hover */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn-acc, .btn-hush { box-shadow: 0 8px 30px -10px var(--accent); }
.btn-acc:hover { box-shadow: 0 12px 40px -8px var(--accent); }
.btn-hush:hover { box-shadow: 0 12px 40px -8px var(--hush); }
.btn:hover { transform: translateY(-3px); }
.btn-shift9 { background: var(--shift9); color: var(--shift9-ink); box-shadow: 0 8px 30px -10px var(--shift9); }

.game-art { border-radius: 28px; border-color: color-mix(in srgb, var(--glow, #fff) 28%, transparent); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9), inset 0 0 60px -24px var(--glow, transparent); transition: transform .7s var(--spring), border-color .3s, box-shadow .5s; }
.game-art:hover { transform: translateY(-6px) scale(1.01); border-color: color-mix(in srgb, var(--glow, #fff) 55%, transparent); box-shadow: 0 40px 90px -40px var(--glow, #000), inset 0 0 70px -20px var(--glow, transparent); }
.game-next { --glow: var(--shift9); --dot: var(--shift9); }
.game-hush { --glow: #ff3b3b; } .game-timber { --glow: var(--timber); } .game-chimp { --glow: var(--chimp); }
.game-next .btn-acc { background: var(--shift9); color: var(--shift9-ink); box-shadow: 0 8px 30px -10px var(--shift9); }
.game h2 { transition: letter-spacing .5s var(--ease); }
.game:hover h2 { letter-spacing: -.02em; }
.game-points li { transition: transform .4s var(--spring), color .3s; }
.game-points li:hover { transform: translateX(6px); color: var(--text); }
.game-points li::before { box-shadow: 0 0 10px var(--dot, #fff); }

.gp-card, .hush-card, .s9-card { border-radius: var(--radius); transition: transform .5s var(--spring), border-color .3s, background-color .3s, box-shadow .4s; }
.gp-card:hover, .hush-card:hover, .s9-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 24px 50px -30px var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.discord { border-radius: 30px !important; overflow: hidden; position: relative; }
.discord::before { content: ""; position: absolute; inset: -40%; z-index: 0; background: conic-gradient(from 0deg, transparent, rgba(88, 101, 242, .18), transparent 30%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%); animation: vx-spin 18s linear infinite; pointer-events: none; }
.discord > * { position: relative; z-index: 1; }
.pill { border-radius: 999px; backdrop-filter: blur(6px); }
.pill-next { animation: vx-glow 2.6s ease-in-out infinite; }
.vx-title em, .grad { background-size: 200% auto; animation: vx-shine 6s linear infinite; }
.vx-title em { background-image: linear-gradient(90deg, var(--shift9), #ff4d4d, var(--timber), var(--chimp), var(--shift9)); }

/* ---------------------------------------------------------------- motion */
@keyframes vx-drop { from { opacity: 0; transform: translateY(-30px) scale(.96); } }
@keyframes vx-up { from { opacity: 0; transform: translateY(26px); filter: blur(8px); } }
@keyframes vx-spin { to { transform: rotate(360deg); } }
@keyframes vx-shine { to { background-position: 200% center; } }
@keyframes vx-glow { 50% { box-shadow: 0 0 22px -4px var(--shift9); } }
@keyframes vx-fade { from { opacity: 0; } }
@keyframes vx-float { 50% { transform: translateY(-10px); } }
.vx-hero-in > *, .gp-hero-in > *, .gp-split > * { animation: vx-up 1s var(--ease) both; }
.vx-hero-in > :nth-child(2), .gp-hero-in > :nth-child(2) { animation-delay: .08s; }
.vx-hero-in > :nth-child(3), .gp-hero-in > :nth-child(3) { animation-delay: .16s; }
.vx-hero-in > :nth-child(4), .gp-hero-in > :nth-child(4) { animation-delay: .24s; }
.vx-hero-in > :nth-child(5), .gp-hero-in > :nth-child(5) { animation-delay: .32s; }
.gp-split > :nth-child(2) { animation-delay: .2s; }
.gp-split > .fx-model, .game-art .fx-model { animation-name: vx-fade; }
.rv:has(.fx-model).in { transform: none; filter: none; transition-property: opacity; }
.rv { opacity: 0; transform: translateY(34px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; }
  .rv { opacity: 1; transform: none; filter: none; }
}

/* ---------------------------------------------------------------- Rust/wasm canvases */
.fx-field { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 40; pointer-events: none; opacity: .9; }
.fx-model { position: relative; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.fx-model:active { cursor: grabbing; }
.fx-model canvas { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 55%, transparent 100%); opacity: 0; transition: opacity 1.2s var(--ease); }
.fx-model.is-live canvas { opacity: 1; }
.fx-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .55); white-space: nowrap; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .35); backdrop-filter: blur(6px); pointer-events: none; transition: opacity .5s; }
.fx-model:hover .fx-hint { opacity: .2; }

/* model inside the home game cards: the title moves to the corner */
.game-art.has-model { place-items: stretch; }
.game-art.has-model .fx-model { position: absolute; inset: 0; z-index: 3; }
.game-art.has-model .art-word { position: absolute; left: 26px; bottom: 22px; transform: none; text-align: left; z-index: 2; font-size: clamp(1.6rem, 3vw, 2.6rem) !important; opacity: .9; }
.game-art.has-model .art-word i { font-size: .3em; letter-spacing: .3em; margin-top: .5em; }
.game-art.has-model.art-hush img { position: absolute; left: 22px; bottom: 18px; width: 38%; z-index: 2; }
.game-art.has-model .art-shaft { opacity: .7; }
.game-art .fx-hint { left: auto; right: 16px; bottom: auto; top: 14px; transform: none; }

/* game page hero: words left, spinning model right */
.gp-split { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(20px, 4vw, 60px); align-items: center; width: 100%; }
.gp-split .fx-model { height: min(72vh, 640px); border-radius: 32px; }
.gp-split .fx-model::before { content: ""; position: absolute; inset: 8% 10%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent); animation: vx-float 6s ease-in-out infinite; }
.gp-hero:has(.gp-split) { min-height: 0; padding: 130px 0 60px; align-items: center; }
.hush-page .gp-split { text-align: left; }
.hush-page .gp-split .hush-in { align-items: flex-start; }
.hush-page .gp-split .game-status, .hush-page .gp-split .game-cta { justify-content: flex-start; }
.hush-page .gp-split .vx-lead { margin-inline: 0; }
@media (max-width: 900px) {
  .gp-split { grid-template-columns: 1fr; }
  .gp-split .fx-model { height: 58vh; order: -1; }
}

/* ---------------------------------------------------------------- SHIFT 9 page */
.gp-shift9 { background: radial-gradient(ellipse 70% 80% at 70% 40%, #1c1408, #08070a 70%); }
.s9-word { white-space: nowrap; font-size: clamp(3rem, 7.2vw, 6.6rem); color: #f3efe8; letter-spacing: .02em; }
.s9-word b { color: var(--shift9); text-shadow: 0 0 .35em rgba(255, 176, 64, .6); animation: vx-flicker 5s steps(1) infinite; }
@keyframes vx-flicker { 0%, 100% { opacity: 1; } 42% { opacity: .55; } 43% { opacity: 1; } 71% { opacity: .7; } 72% { opacity: 1; } }
.s9-tag { font-weight: 700; letter-spacing: .4em; text-transform: uppercase; font-size: .78rem; color: rgba(255, 190, 110, .8); margin: -.4rem 0 1.3rem; }
.s9-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: clamp(50px, 7vw, 90px); }
.s9-card { border: 1px solid rgba(255, 176, 64, .18); padding: 26px; background: linear-gradient(180deg, rgba(255, 176, 64, .06), transparent); }
.s9-card h3 { font-size: 1.15rem; margin-bottom: .55rem; }
.s9-card p { margin: 0; color: var(--muted); }
.s9-card .num { display: block; font-size: .72rem; letter-spacing: .25em; color: var(--shift9); margin-bottom: .8rem; font-weight: 700; }
@media (max-width: 860px) { .s9-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- custom cursor (fx.js; the trail is drawn by the Rust field) */
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor input, html.has-cursor textarea, html.has-cursor [contenteditable] { cursor: text !important; }
.cur-dot, .cur-ring { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .3s; }
html.cur-on .cur-dot, html.cur-on .cur-ring { opacity: 1; }
.cur-dot::before { content: ""; position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent), 0 0 3px #fff; transition: transform .25s var(--spring); }
.cur-ring::before { content: ""; position: absolute; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 0 18px -4px var(--accent); transition: transform .35s var(--spring), background-color .3s, border-color .3s; }
.cur-ring[data-mode="link"]::before { transform: scale(1.6); background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: var(--accent); }
.cur-dot[data-mode="link"]::before { transform: scale(.6); }
.cur-ring[data-mode="drag"]::before { transform: scale(2.1); background: color-mix(in srgb, var(--accent) 10%, transparent); border-style: dashed; }
.cur-ring[data-mode="text"]::before, .cur-dot[data-mode="text"]::before { transform: scale(0); }
html.cur-down .cur-ring::before { transform: scale(.75); }
html.cur-down .cur-ring[data-mode="drag"]::before { transform: scale(1.6); }
.cur-label { position: absolute; transform: translate(-50%, -50%); font-size: .6rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .25s; white-space: nowrap; }
.cur-ring[data-mode="drag"] .cur-label { opacity: .9; }
html.has-cursor .fx-hint { display: none; }
