/* Inner pages (games / work / contact). Loaded after landing.css. */
.page-hero{ padding:140px 20px 60px; text-align:center; display:flex; flex-direction:column; align-items:center; }
.page-hero h1{ font-size:clamp(44px, 8vw, 110px); font-weight:500; letter-spacing:-.04em; line-height:1; perspective:900px; }
.page-hero h1 .w{ display:inline-block; }
.page-hero h1 .g{ color:var(--soft); }
.page-hero .hero-sub{ margin:22px 0 0; }
.page-hero .hero-sub a{ color:var(--ink); }
.stats{ display:flex; gap:10px; margin-top:28px; flex-wrap:wrap; justify-content:center; }
.stats span{ background:var(--card); border-radius:999px; padding:7px 14px; font-size:14px; color:var(--mid);
  box-shadow:0 1px 2px rgba(0,0,0,.05); }
.stats b{ color:var(--ink); font-weight:600; margin-right:4px; }
.m .page-hero h1 .w{ opacity:0; transform:translateY(.45em) rotateX(-70deg); filter:blur(8px); transform-origin:50% 100%;
  transition:opacity .9s var(--ease), transform 1.1s var(--ease), filter .9s var(--ease);
  transition-delay:calc(var(--d) * 70ms + 150ms); }
.m .page-hero.go h1 .w{ opacity:1; transform:none; filter:none; }
.inner{ padding:0 0 110px; }

/* games: games.js reads .shot img, .role-line, .tag and .status */
.project{ cursor:pointer; }
.project .shot{ aspect-ratio:16/9; border-radius:13px; overflow:hidden; position:relative; }
.project .shot img{ width:100%; height:100%; object-fit:cover; }
.project .status{ position:absolute; top:12px; left:12px; display:flex; align-items:center; gap:7px; font-size:12.5px;
  padding:5px 11px; border-radius:999px; background:rgba(255,255,255,.9); color:#1f7a3c; }
.project .status .dot{ width:7px; height:7px; border-radius:50%; background:#2fbf5b; }
.project .status.dead{ color:var(--mid); }
.project .status.dead .dot{ background:#aaa; }
.project .info{ padding:14px 8px 8px; }
.project h3{ font-size:22px; font-weight:500; letter-spacing:-.01em; }
.project .role-line{ color:var(--mid); font-size:14.5px; }
.project p{ color:var(--mid); font-size:15px; margin-top:10px; }
.tags{ display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.tag{ font-size:12.5px; padding:4px 10px; border-radius:999px; background:#e3e3e0; color:var(--mid); }
.open-hint{ display:inline-block; margin-top:14px; font-size:14px; font-weight:500; }

/* work grid, built by work.js */
.tabs{ display:flex; flex-wrap:wrap; gap:4px; padding:5px; border-radius:999px; background:var(--card);
  box-shadow:0 1px 2px rgba(0,0,0,.05); width:max-content; max-width:100%; margin:0 auto; position:relative; }
.tab-pill{ display:none; }
.tab{ font:inherit; font-size:14.5px; padding:7px 15px; border-radius:999px; border:0; background:none; color:var(--mid);
  text-decoration:none; cursor:pointer; }
.tab[aria-selected="true"]{ background:var(--ink); color:#fff; }
.tab-n{ opacity:.6; margin-left:3px; }
.tab[hidden]{ display:none; }
.wgroup{ margin-top:56px; }
.wgroup-head{ display:flex; align-items:baseline; gap:10px; margin-bottom:20px; }
.wgroup-title{ font-size:32px; font-weight:500; letter-spacing:-.03em; }
.wgroup-count{ color:var(--mid); }
.wgrid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:18px; perspective:1400px; }
.wcard{ background:var(--card); border-radius:18px; padding:8px; cursor:pointer;
  transition:transform .5s var(--ease), box-shadow .5s; }
.wcard:hover{ box-shadow:0 26px 44px -26px rgba(0,0,0,.35); }
.wshot{ position:relative; aspect-ratio:16/9; border-radius:11px; overflow:hidden; background:#ddd; }
.wshot img{ width:100%; height:100%; object-fit:cover; }
.wshot.is-text{ display:grid; place-items:center; }
.wmark{ font-size:60px; color:var(--soft); }
.wkind{ display:none; }
.wplay{ position:absolute; right:10px; bottom:10px; width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,.92); }
.wplay::after{ content:""; position:absolute; left:13px; top:10px; border-left:10px solid var(--ink);
  border-top:7px solid transparent; border-bottom:7px solid transparent; }
.winfo{ padding:12px 8px 6px; }
.wmeta{ display:flex; gap:8px; color:var(--mid); font-size:13px; }
.winfo h3{ font-size:16.5px; font-weight:500; line-height:1.3; }
.winfo p{ color:var(--mid); font-size:14px; margin-top:3px; }
.winfo .tags,.winfo .open-hint{ display:none; }
.wempty{ text-align:center; color:var(--mid); display:grid; gap:4px; }
.m .wgrid > .wcard{ opacity:0; transform:translateY(50px) rotateX(22deg); transform-origin:50% 100%;
  transition:opacity .8s var(--ease), transform 1s var(--ease), box-shadow .5s;
  transition-delay:calc(var(--i, 0) * 60ms); }
.m .wgrid.go > .wcard{ opacity:1; transform:none; }
.m .wgrid.go > .wcard:hover{ transform:translateY(-5px) rotateX(4deg); transition-delay:0ms; }

/* contact */
.cgrid{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:18px; }
.chan{ display:flex; flex-direction:column; gap:4px; background:var(--card); border-radius:20px; padding:24px;
  text-decoration:none; transition:transform .5s var(--ease), box-shadow .5s; }
.chan:hover{ transform:translateY(-5px); box-shadow:0 26px 44px -26px rgba(0,0,0,.3); }
.chan .ic{ width:40px; height:40px; border-radius:12px; display:grid; place-items:center; color:#fff; margin-bottom:22px; }
.chan .ic svg{ width:20px; height:20px; }
.chan small{ color:var(--mid); font-size:14px; }
.chan b{ font-size:19px; font-weight:500; overflow-wrap:anywhere; }
.chan span{ color:var(--mid); font-size:14.5px; margin-top:6px; }
.brief{ margin-top:80px; }
@media (max-width:800px){ .cgrid{ grid-template-columns:1fr; } }

/* dialogs */
.wpanel,.sneaks{ position:fixed; inset:0; z-index:100; display:grid; place-items:center; padding:16px; }
.wpanel[hidden],.sneaks[hidden]{ display:none; }
.wpanel-backdrop,.sneaks-backdrop{ position:absolute; inset:0; background:rgba(20,20,22,.55); backdrop-filter:blur(6px);
  opacity:0; transition:opacity .35s; }
.wpanel.on .wpanel-backdrop,.sneaks.in .sneaks-backdrop{ opacity:1; }
.wpanel-sheet,.sneaks-panel{ position:relative; width:min(1000px,100%); max-height:calc(100vh - 32px); overflow:auto;
  background:var(--card); border-radius:24px; box-shadow:0 40px 80px -30px rgba(0,0,0,.5);
  opacity:0; transform:perspective(1200px) rotateX(10deg) translateY(30px) scale(.96); transform-origin:50% 100%;
  transition:opacity .4s var(--ease), transform .6s var(--ease); }
.wpanel.on .wpanel-sheet,.sneaks.in .sneaks-panel{ opacity:1; transform:none; }
.wpanel-head{ display:flex; justify-content:space-between; gap:16px; padding:22px 24px; }
.wpanel-kind{ display:none; }
.wpanel-head h3{ font-size:26px; font-weight:500; letter-spacing:-.02em; }
.wpanel-sub{ color:var(--mid); font-size:14px; margin-top:4px; }
.wpanel-close,.sneaks-close{ flex:none; width:40px; height:40px; border-radius:50%; display:grid; place-items:center;
  border:0; background:#e6e6e3; color:var(--ink); cursor:pointer; }
.wpanel-close svg,.sneaks-close svg{ width:16px; height:16px; }
.wpanel-media{ padding:0 12px; }
.wpanel-media video,.wpanel-media img{ width:100%; max-height:70vh; border-radius:14px; background:#000; }
.wpanel-text{ padding:18px 24px; color:var(--mid); }
.wpanel-text p{ margin-bottom:8px; }
.wpanel-links{ display:flex; gap:8px; padding:0 24px 24px; }
.wpanel-links[hidden]{ display:none; }
.wpanel-links .btn,.gp-actions .btn{ padding:9px 16px; font-size:14px; }

/* ---------- game panel: one scrolling page, same language as the home ---------- */
.sneaks-panel{ width:min(1120px,100%); max-height:calc(100vh - 32px); background:var(--bg); border-radius:30px;
  padding:12px; overscroll-behavior:contain; scrollbar-width:thin; }

/* cover with the title laid over it */
.gp-hero{ position:relative; border-radius:22px; overflow:hidden; background:var(--dark); }
.gp-hero-art img{ width:100%; aspect-ratio:21/9; object-fit:cover; object-position:center 70%;
  transform:scale(1.08); transition:transform 1.4s var(--ease); }
.sneaks.in .gp-hero-art img{ transform:none; }
.gp-hero::after{ content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.78) 100%); }
.gp-hero-in{ position:absolute; z-index:1; left:0; right:0; bottom:0; padding:28px 30px; color:#fff;
  display:flex; flex-wrap:wrap; align-items:center; gap:10px 12px; }
.gp-hero-in h3{ order:2; flex-basis:100%; font-size:clamp(34px, 5.4vw, 68px); font-weight:500; letter-spacing:-.04em; line-height:1; }
.gp-status{ order:1; display:inline-flex; align-items:center; gap:7px; font-size:13px; padding:6px 12px; border-radius:999px;
  background:rgba(255,255,255,.92); color:#1f7a3c; }
.gp-status .dot{ width:7px; height:7px; border-radius:50%; background:#2fbf5b; box-shadow:0 0 0 3px rgba(47,191,91,.2); }
.gp-status.dead{ color:var(--mid); }
.gp-status.dead .dot{ background:#aaa; box-shadow:none; }
.gp-status[hidden]{ display:none; }
.gp-role{ order:3; color:rgba(255,255,255,.75); font-size:15.5px; }
.gp-tags{ order:4; display:flex; gap:6px; margin-left:auto; }
.gp-tags .tag{ margin:0; background:rgba(255,255,255,.16); color:#fff; backdrop-filter:blur(6px); }
.gp-tags[hidden]{ display:none; }
.sneaks-close{ position:absolute; z-index:2; top:24px; right:24px; width:44px; height:44px; background:rgba(255,255,255,.92);
  transition:transform .4s var(--ease); }
.sneaks-close:hover{ transform:rotate(90deg); }

/* the tab rail is gone: overview, clips and shots all sit on one page */
.gp-tabs{ display:none !important; }
.gp-bar{ display:flex; justify-content:flex-end; padding:14px 6px 0; }
.gp-bar[hidden]{ display:none; }
.gp-actions{ display:flex; gap:8px; }
.gp-actions[hidden]{ display:none; }
.gp-actions .btn{ padding:11px 18px; font-size:14.5px; }
.gp-discord{ background:#5865f2; }
.gp-discord svg{ width:17px; height:17px; }

.sneaks-body{ padding:26px 18px 18px; display:grid; gap:44px; }
.gp-pane[hidden]{ display:block !important; }
.gp-pane[data-pane="about"]{ display:grid !important; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:28px; align-items:start; }
.gp-about p{ font-size:clamp(21px, 2.3vw, 28px); line-height:1.3; letter-spacing:-.02em; font-weight:500; color:var(--ink); margin:0; }
.gp-about .sneaks-empty{ font-size:18px; }
.gp-facts{ display:grid; gap:8px; }
.gp-facts[hidden]{ display:none; }
.gp-fact{ display:flex; justify-content:space-between; gap:12px; background:var(--card); border-radius:14px; padding:13px 16px;
  box-shadow:0 1px 2px rgba(0,0,0,.05); font-size:15px; }
.gp-fact-k{ color:var(--mid); }
.gp-fact-v{ font-weight:500; text-align:right; }
@media (max-width:760px){ .gp-pane[data-pane="about"]{ grid-template-columns:1fr; } .gp-hero-in{ padding:20px; } .gp-tags{ margin-left:0; } }

/* media sections: a heading, then the clips in a dark frame like the home screen */
.gp-media::before{ display:block; font-size:clamp(26px, 3vw, 36px); font-weight:500; letter-spacing:-.03em; margin:0 0 16px 4px; }
.gp-media[data-pane="videos"]::before{ content:"Clips"; }
.gp-media[data-pane="images"]::before{ content:"Screenshots"; }
.gp-media:has(.sneaks-empty){ display:none !important; }
.gp-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(300px,1fr)); gap:10px;
  background:var(--dark); border-radius:22px; padding:10px; }
.sneak{ position:relative; aspect-ratio:16/9; background:#000; border-radius:13px; overflow:hidden; }
.sneak img,.sneak video{ width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease); }
.sneak:not(.playing):hover img,.sneak:not(.playing):hover video{ transform:scale(1.04); }
.sneak.playing video{ object-fit:contain; }
.sneak-play{ position:absolute; inset:0; margin:auto; width:56px; height:56px; border-radius:50%; display:grid; place-items:center;
  background:rgba(255,255,255,.94); color:var(--ink); border:0; cursor:pointer; transition:transform .4s var(--ease);
  box-shadow:0 10px 30px rgba(0,0,0,.35); }
.sneak-play:hover{ transform:scale(1.1); }
.sneak-play svg{ width:20px; height:20px; margin-left:3px; }
.sneak.playing .sneak-play{ display:none; }
.sneaks-empty{ color:var(--mid); }

/* entrance: hero text, then each block of the body, one after another */
.m .gp-hero-in > *, .m .gp-bar, .m .sneaks-body > *, .m .gp-grid > *{ opacity:0; transform:translateY(24px); }
.m .sneaks.in .gp-hero-in > *, .m .sneaks.in .gp-bar, .m .sneaks.in .sneaks-body > *, .m .sneaks.in .gp-grid > *{
  opacity:1; transform:none; transition:opacity .7s var(--ease), transform .9s var(--ease); }
.m .sneaks.in .gp-hero-in > :nth-child(1){ transition-delay:.15s; }
.m .sneaks.in .gp-hero-in > :nth-child(2){ transition-delay:.22s; }
.m .sneaks.in .gp-hero-in > :nth-child(3){ transition-delay:.29s; }
.m .sneaks.in .gp-hero-in > :nth-child(4){ transition-delay:.36s; }
.m .sneaks.in .gp-bar{ transition-delay:.35s; }
.m .sneaks.in .sneaks-body > :nth-child(1){ transition-delay:.4s; }
.m .sneaks.in .sneaks-body > :nth-child(2){ transition-delay:.5s; }
.m .sneaks.in .sneaks-body > :nth-child(3){ transition-delay:.6s; }
.m .sneaks.in .gp-grid > :nth-child(1){ transition-delay:.55s; }
.m .sneaks.in .gp-grid > :nth-child(2){ transition-delay:.61s; }
.m .sneaks.in .gp-grid > :nth-child(3){ transition-delay:.67s; }
.m .sneaks.in .gp-grid > :nth-child(4){ transition-delay:.73s; }
.m .sneaks.in .gp-grid > :nth-child(5){ transition-delay:.79s; }
.m .sneaks.in .gp-grid > :nth-child(n+6){ transition-delay:.85s; }


/* ============================================================
   KPlayer (player.js)
   ============================================================ */
.kp{ position:relative; width:100%; height:100%; background:#000; overflow:hidden; outline:none; border-radius:inherit;
  --kp-ease:cubic-bezier(.2,.75,.15,1); }
.kp video{ width:100%; height:100%; display:block; object-fit:contain; cursor:pointer; }
.kp.idle, .kp.idle video{ cursor:none; }
.kp:focus-visible{ box-shadow:inset 0 0 0 2px #fff; }
.wpanel-media .kp{ height:auto; border-radius:14px; }
.wpanel-media .kp video{ height:auto; max-height:70vh; border-radius:0; }

/* soft shade under the bar so white controls read on bright footage */
.kp::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:90px; pointer-events:none;
  background:linear-gradient(180deg, transparent, rgba(0,0,0,.55)); transition:opacity .4s; }
.kp.idle::after{ opacity:0; }

.kp-btn{ display:grid; place-items:center; border:0; background:none; color:#fff; cursor:pointer; padding:0;
  font:inherit; }
.kp-btn svg{ width:20px; height:20px; }

/* big centre button, only while paused */
.kp-big{ position:absolute; z-index:2; left:50%; top:50%; width:64px; height:64px; margin:-32px 0 0 -32px; border-radius:50%;
  background:rgba(255,255,255,.95); color:#121214; box-shadow:0 12px 34px rgba(0,0,0,.4);
  transition:transform .45s var(--kp-ease), opacity .3s; }
.kp-big svg{ width:24px; height:24px; margin-left:3px; }
.kp-big:hover{ transform:scale(1.08); }
.kp:not(.paused) .kp-big{ opacity:0; transform:scale(.6); pointer-events:none; }

/* bottom bar */
.kp-bar{ position:absolute; z-index:3; left:10px; right:10px; bottom:10px; display:flex; align-items:center; gap:6px;
  padding:6px 10px; border-radius:999px; background:rgba(18,18,20,.78); color:#fff;
  transition:opacity .35s, transform .45s var(--kp-ease); }
.kp.idle .kp-bar{ opacity:0; transform:translateY(12px); pointer-events:none; }
.kp-bar .kp-btn{ width:34px; height:34px; border-radius:50%; transition:background .2s; }
.kp-bar .kp-btn:hover{ background:rgba(255,255,255,.14); }
.kp-time{ font-size:12.5px; font-variant-numeric:tabular-nums; color:rgba(255,255,255,.85); min-width:34px; text-align:center; }
.kp-speed{ font-size:12.5px; font-weight:600; width:auto !important; padding:0 8px !important; border-radius:999px !important; }

/* progress */
.kp-track{ position:relative; flex:1; height:22px; cursor:pointer; touch-action:none; }
.kp-track::before, .kp-buf, .kp-fill{ content:""; position:absolute; left:0; right:0; top:50%; height:4px; margin-top:-2px;
  border-radius:4px; transform-origin:0 50%; transition:height .2s, margin .2s; }
.kp-track::before{ background:rgba(255,255,255,.2); }
.kp-buf{ background:rgba(255,255,255,.35); transform:scaleX(0); }
.kp-fill{ background:#fff; transform:scaleX(0); }
.kp-track:hover::before, .kp-track:hover .kp-buf, .kp-track:hover .kp-fill,
.kp.seeking .kp-track::before, .kp.seeking .kp-buf, .kp.seeking .kp-fill{ height:6px; margin-top:-3px; }
.kp-knob{ position:absolute; top:50%; width:14px; height:14px; margin:-7px 0 0 -7px; border-radius:50%; background:#fff;
  box-shadow:0 2px 6px rgba(0,0,0,.4); transform:scale(0); transition:transform .25s var(--kp-ease); }
.kp-track:hover .kp-knob, .kp.seeking .kp-knob{ transform:scale(1); }
.kp-tip{ position:absolute; bottom:24px; transform:translateX(-50%); padding:3px 7px; border-radius:6px; font-size:12px;
  background:#fff; color:#121214; font-variant-numeric:tabular-nums; opacity:0; pointer-events:none; transition:opacity .2s; }
.kp-track:hover .kp-tip{ opacity:1; }

/* buffering spinner */
.kp.loading::before{ content:""; position:absolute; z-index:2; left:50%; top:50%; width:38px; height:38px; margin:-19px 0 0 -19px;
  border-radius:50%; border:3px solid rgba(255,255,255,.25); border-top-color:#fff; animation:kp-spin .8s linear infinite; }
.kp.loading.paused::before{ display:none; }
@keyframes kp-spin{ to{ transform:rotate(360deg); } }

.kp.is-full{ border-radius:0; }
.kp.is-full .kp-bar{ left:24px; right:24px; bottom:24px; padding:8px 14px; }

/* small tiles inside the game panel: keep the bar compact */
.sneak .kp-bar{ left:8px; right:8px; bottom:8px; gap:2px; padding:4px 8px; }
.sneak .kp-bar .kp-btn{ width:30px; height:30px; }
.sneak .kp-speed, .sneak .kp-dur{ display:none; }
.sneak .kp-big{ width:52px; height:52px; margin:-26px 0 0 -26px; }
@media (max-width:520px){ .kp-speed, .kp-dur{ display:none; } }

/* ---------- game panel on phones: full-height sheet ---------- */
@media (max-width:640px){
  .sneaks{ padding:0; place-items:end stretch; }
  .sneaks-panel{ width:100%; max-height:none; height:100dvh; border-radius:0; padding:8px; }
  .gp-hero{ border-radius:18px; }
  .gp-hero-art img{ aspect-ratio:4/5; max-height:62vh; }
  .gp-hero-in{ padding:18px; gap:8px; }
  .gp-hero-in h3{ font-size:clamp(30px, 10vw, 40px); }
  .gp-tags{ display:none !important; }
  .sneaks-close{ top:18px; right:18px; }
  .gp-bar{ justify-content:stretch; padding:10px 0 0; }
  .gp-actions{ width:100%; }
  .gp-actions .btn{ flex:1; justify-content:center; }
  .sneaks-body{ padding:22px 4px 24px; gap:34px; }
  .gp-about p{ font-size:20px; }
  .gp-grid{ grid-template-columns:minmax(0,1fr); padding:8px; gap:8px; border-radius:18px; }
  .gp-media::before{ font-size:24px; margin-left:2px; }
}

/* panels open out of the card that was tapped (games.js sets --ox/--oy) */
.sneaks-panel{ transform-origin:var(--ox, 50%) var(--oy, 100%); }
.sneaks.in .sneaks-panel{ transition:opacity .35s var(--ease), transform .55s var(--ease); }

@media (prefers-reduced-motion:reduce){
  .wpanel-sheet, .sneaks-panel{ transform:none !important; transition:opacity .2s ease !important; }
  .gp-hero-art img{ transform:none !important; }
  .kp-bar, .kp-big, .kp-knob{ transition:opacity .2s ease !important; }
  .kp.idle .kp-bar{ transform:none; }
}
@media (prefers-reduced-transparency:reduce){
  .wpanel-backdrop, .sneaks-backdrop{ backdrop-filter:none; background:rgba(20,20,22,.75); }
  .kp-bar{ background:#121214; }
}
.sneaks-panel{ transform:scale(.55); }
.sneaks.in .sneaks-panel{ transform:none; }

/* work sheet: same grow-from-the-card path as the game panel */
.wpanel-sheet{ transform-origin:var(--ox, 50%) var(--oy, 100%); transform:scale(.55); }
.wpanel.on .wpanel-sheet{ transform:none; transition:opacity .35s var(--ease), transform .55s var(--ease); }
@media (prefers-reduced-motion:reduce){ .wpanel-sheet{ transform:none !important; } }
.cgrid.two{ grid-template-columns:repeat(2, minmax(0,1fr)); }
@media (max-width:800px){ .cgrid.two{ grid-template-columns:1fr; } }
