/* ==========================================================================
   MIZPHA GAMES — website styles
   --------------------------------------------------------------------------
   A clean white site with a quiet, premium feel. The logo gives the palette:
   a deep ink for text, Mizpha violet as the signature colour and the logo's
   amber as a warm highlight, used sparingly. Everything is set in Fredoka,
   round, friendly letters like the logo's (bolder for headings, lighter for
   reading), with Fredoka One for a few words in the logo's own style. Surfaces have quiet depth: a hairline gradient
   rim, a lit top edge and layered soft shadows; buttons press in. Motion
   is subtle: sections rise into place, the hero phone loads our games one
   after another, cards lean towards the pointer. Everything stays still
   with reduced motion turned on.
   ========================================================================== */
:root {
  --ink: #17112a;             /* text and dark surfaces */
  --ink-2: #2a2140;
  --text: #4a4560;
  --muted: #7a748e;
  --line: #ece9f3;
  --line-2: #e2ddef;
  --violet: #a12bc2;          /* Mizpha purple, the logo's own hue (its outline is #380048) */
  --violet-deep: #6b1085;
  --plum: #380048;            /* the logo's deep purple */
  --violet-soft: #f9edfc;
  --amber: #ffb547;           /* the logo's warm highlight */
  --amber-deep: #f08c00;
  --bg: #ffffff;
  --bg-soft: #faf9fd;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(23, 17, 42, 0.05), 0 2px 8px rgba(23, 17, 42, 0.04);
  --shadow: 0 1px 2px rgba(23, 17, 42, 0.04), 0 12px 32px -8px rgba(23, 17, 42, 0.12);
  --shadow-lg: 0 2px 6px rgba(23, 17, 42, 0.05), 0 30px 60px -18px rgba(56, 10, 70, 0.28);
  /* depth: a lit top edge, a hairline gradient rim and layered shadows */
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --frame: linear-gradient(#fff, #fff) padding-box, linear-gradient(170deg, #ffffff 0%, #ebe6f6 32%, #d7cfec 100%) border-box;
  --depth: 0 1px 1px rgba(23, 17, 42, 0.04), 0 2px 4px rgba(23, 17, 42, 0.04), 0 10px 18px -8px rgba(23, 17, 42, 0.1), 0 26px 44px -24px rgba(56, 10, 70, 0.22);
  --depth-up: 0 2px 2px rgba(23, 17, 42, 0.04), 0 8px 12px rgba(23, 17, 42, 0.05), 0 22px 32px -12px rgba(56, 10, 70, 0.18), 0 46px 72px -30px rgba(84, 14, 104, 0.38);
  --serif: 'Fredoka', 'Nunito', 'Varela Round', system-ui, -apple-system, 'Segoe UI', sans-serif;   /* headings */
  --logo-font: 'Fredoka One', 'Fredoka', system-ui, sans-serif;   /* round, chunky letters in the logo's style */
  --logo-ink: #380048;          /* the logo's deep purple outline */
  --sans: 'Fredoka', 'Nunito', 'Varela Round', system-ui, -apple-system, 'Segoe UI', sans-serif;    /* text and interface */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(20px, 4.5vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: var(--violet); }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; font-optical-sizing: auto; }
h1 em, h2 em, .footer-line em {
  font-style: normal; font-weight: 600;
  background: linear-gradient(100deg, var(--violet) 10%, #c83fc7 55%, var(--amber-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em;
}
p { margin: 0; }
.wrap { width: min(1200px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 8px; }
::selection { background: #f3dcfa; color: var(--ink); }

/* small labels: "01 — Our games" */
.kicker { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; font: 600 12px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--violet); }
.kicker span { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-style: normal; font-weight: 600; font-size: 15px; letter-spacing: 0; color: var(--ink); }
.kicker span::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.35; }
.kicker-light { color: var(--amber); }
.kicker-light span { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 600 15px/1 var(--sans); letter-spacing: 0.01em; text-decoration: none; cursor: pointer; border: 1px solid transparent; overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s var(--ease); }
.btn-dark {
  background: linear-gradient(180deg, #5a1477 0%, var(--plum) 100%); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -1px 0 rgba(0, 0, 0, 0.35), 0 1px 2px rgba(23, 17, 42, 0.3), 0 12px 24px -10px rgba(23, 17, 42, 0.6);
}
.btn-dark::before {               /* a soft violet glow that slides in on hover */
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: linear-gradient(110deg, var(--violet-deep), var(--violet) 60%, #c255e0);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.btn-dark { isolation: isolate; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 0 rgba(40, 0, 56, 0.4), 0 2px 4px rgba(60, 8, 80, 0.2), 0 18px 32px -12px rgba(107, 16, 133, 0.6); }
.btn-dark:hover::before { opacity: 1; }
.btn-dark:hover svg { transform: translateX(3px); }
.btn-ghost { background: var(--frame); color: var(--ink); box-shadow: var(--edge), 0 1px 2px rgba(23, 17, 42, 0.06), 0 8px 18px -10px rgba(23, 17, 42, 0.22); }
.btn-ghost:hover { transform: translateY(-2px); color: var(--violet-deep); box-shadow: var(--edge), 0 2px 4px rgba(23, 17, 42, 0.06), 0 16px 28px -12px rgba(56, 10, 70, 0.3); }
.btn:active, .badge:active, .play-web:active, .header-cta:active { transform: translateY(1px); transition-duration: 0.1s; }
.btn[disabled] { opacity: 0.6; cursor: default; transform: none; }

/* ---------- header: a frosted bar that tightens when you scroll ---------- */
/* the header floats over the page (fixed, not in the flow), so tightening
   it as you scroll never moves the page itself */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; box-shadow: 0 1px 0 rgba(23, 17, 42, 0.08); transition: background-color 0.35s, box-shadow 0.35s; }
.header.scrolled { background: rgba(255, 255, 255, 0.96); box-shadow: 0 1px 0 rgba(23, 17, 42, 0.08), 0 10px 24px -18px rgba(23, 17, 42, 0.35); }
/* three columns: the logo on the left, the menu in the middle, Start a project on the right */
.header-in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; height: 84px; transition: height 0.35s var(--ease); }
.header.scrolled .header-in { height: 68px; }
.brand { justify-self: start; }
.nav { justify-self: center; }
.header-right { justify-self: end; display: flex; align-items: center; gap: 14px; }
.brand img { height: 66px; width: auto; filter: drop-shadow(0 4px 10px rgba(107, 16, 133, 0.18)); transition: height 0.35s var(--ease), transform 0.35s var(--ease); }
.brand:hover img { transform: rotate(-3deg) scale(1.04); }
.header.scrolled .brand img { height: 52px; }
.nav { display: flex; gap: 4px; }
/* plain links; a violet-to-amber underline grows under the one you point at
   and under the section you're in */
.nav a { position: relative; padding: 10px 14px; font: 600 14px/1 var(--sans); letter-spacing: 0.02em; color: var(--text); text-decoration: none; transition: color 0.25s; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--violet), var(--amber)); transform: scaleX(0); transform-origin: 50% 50%; transition: transform 0.35s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--ink); }
.header-cta {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; background: var(--frame);
  font: 600 14px/1 var(--sans); color: var(--ink); text-decoration: none; box-shadow: var(--edge), 0 1px 2px rgba(23, 17, 42, 0.06), 0 8px 18px -10px rgba(23, 17, 42, 0.25);
  transition: color 0.25s, transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.header-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.header-cta:hover { color: var(--violet-deep); transform: translateY(-1px); box-shadow: var(--edge), 0 2px 4px rgba(23, 17, 42, 0.06), 0 14px 26px -12px rgba(56, 10, 70, 0.35); }
.header-cta:hover svg { transform: translateX(3px); }

/* ---------- soft glowing aura behind the hero and the contact panel ---------- */
.aura { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
/* (soft radial gradients, not a live blur: much lighter for the graphics card) */
.aura span { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, var(--c), transparent); opacity: 0.55; animation: drift 22s var(--ease) infinite alternate; will-change: transform; }
.aura .a1 { width: 640px; height: 640px; left: 48%; top: -220px; --c: #e7b8f5; }
.aura .a2 { width: 540px; height: 540px; left: 68%; top: 80px; --c: #ffd9a1; animation-delay: -8s; opacity: 0.45; }
.aura .a3 { width: 500px; height: 500px; left: -180px; top: 160px; --c: #f3defb; animation-delay: -14s; opacity: 0.5; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-40px, 30px) scale(1.08); } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: #fff url("../img/hero-bg.jpg") 70% 100% / cover no-repeat; padding: clamp(36px, 6vw, 72px) 0 clamp(64px, 9vw, 120px); padding-top: calc(84px + clamp(36px, 6vw, 72px)); }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.75); border: 1px solid var(--line-2); box-shadow: var(--edge), var(--shadow-sm); font: 600 13px/1 var(--sans); color: var(--ink); }
.pill-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); }
.pill-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--violet); opacity: 0; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.7; } 100% { transform: scale(1.8); opacity: 0; } }
.hero h1 { margin-top: 26px; font-size: clamp(42px, 6.4vw, 82px); font-weight: 600; line-height: 1.02; }
.lead { margin-top: 24px; max-width: 540px; font-size: clamp(17px, 1.5vw, 19px); color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 40px); margin: 44px 0 0; padding: 26px 0 0; list-style: none; border-top: 1px solid var(--line); }
.hero-meta li { display: flex; align-items: baseline; gap: 10px; }
.hero-meta b { font: 500 34px/1 var(--serif); color: var(--ink); }
.hero-meta span { max-width: 120px; font-size: 13px; line-height: 1.35; color: var(--muted); }

/* the phone: a slim, upright phone showing our games' screenshots, one after another */
.hero-art { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 0 4px; --gc: #a12bc2; --w: clamp(250px, 22vw, 290px); align-items: flex-end; }
/* the phone lines up with the page's right edge (the same line Start a
   project ends on); its glow, dots and seal follow it */
.phone-glow { position: absolute; z-index: 0; right: calc(var(--w) / 2); top: 46%; width: 560px; height: 560px; margin: -280px -280px 0 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(161, 43, 194, 0.32), rgba(161, 43, 194, 0.1) 55%, transparent); }
.phone-tilt { position: relative; z-index: 2; perspective: 1400px; animation: bob 8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.phone {
  position: relative; width: var(--w); padding: calc(var(--w) * 0.032); border-radius: calc(var(--w) * 0.155);
  background: linear-gradient(155deg, #3a3450 0%, #14111c 38%, #0b0910 62%, #2a2538 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2), inset 0 0 0 3px #08060d,
    0 2px 4px rgba(23, 17, 42, 0.12), 0 20px 38px -18px rgba(23, 17, 42, 0.4), 0 40px 70px -30px rgba(56, 10, 70, 0.5);
  transform: rotateY(var(--px, 0deg)) rotateX(var(--py, 0deg)); transition: transform 1s var(--ease);
}
.phone-island { position: absolute; z-index: 7; left: 50%; top: calc(var(--w) * 0.06); width: 30%; height: calc(var(--w) * 0.085); transform: translateX(-50%); border-radius: 99px; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.phone-screen {
  position: relative; width: 100%; aspect-ratio: 9 / 18; overflow: hidden; isolation: isolate; border-radius: calc(var(--w) * 0.125);
  /* until the first screenshot arrives: the logo (already loaded for the
     header, so it shows at once) on a soft purple screen */
  background: url("../img/logo.webp") 50% 46% / 54% auto no-repeat, radial-gradient(120% 80% at 50% 30%, #5a1477, #22062e 70%);
}
.ps-shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: 0; transform: scale(1.04); transition: opacity 0.6s ease, transform 0s linear 0.6s; }
.ps-shots img.on { opacity: 1; transform: scale(1); transition: opacity 0.6s ease, transform 2.6s cubic-bezier(0.2, 0.6, 0.3, 1); }
.ps-glare { position: absolute; inset: 0; z-index: 6; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.05) 26%, transparent 40%); }
.phone-dots { position: relative; z-index: 2; display: flex; gap: 8px; margin-top: 30px; }
/* the dots never change size in the layout (only colour and scale), so
   nothing around them moves as the games change */
.phone-dots { gap: 10px; width: var(--w); justify-content: center; }
.phone-dots button { position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: #e6d4ec; cursor: pointer; transition: transform 0.45s var(--ease), background-color 0.4s; }
.phone-dots button::before { content: ""; position: absolute; inset: -10px -4px; }
.phone-dots button:hover { background: #cfaedd; }
.phone-dots button[aria-current="true"] { background: var(--gc); transform: scale(1.5); }
/* a slowly turning seal with the logo icon */
.seal { position: absolute; z-index: 3; right: calc(var(--w) - 35px); bottom: 12%; width: clamp(104px, 10vw, 128px); aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, 0.97); box-shadow: var(--edge), var(--depth); display: grid; place-items: center; }
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: turn 26s linear infinite; }
.seal text { font: 700 16px var(--sans); fill: var(--ink); }
.seal img { width: 58%; height: auto; filter: drop-shadow(0 3px 6px rgba(107, 16, 133, 0.2)); }
@keyframes turn { to { transform: rotate(360deg); } }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.section-soft { background: var(--bg-soft); }
.section-soft::before, .section-soft::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.section-soft::before { top: 0; } .section-soft::after { bottom: 0; }
.section-head { margin-bottom: clamp(36px, 5vw, 60px); }
.section-head-row { display: grid; grid-template-columns: 1.15fr 1fr; align-items: end; gap: 24px 48px; }
.section-head h2 { font-size: clamp(36px, 5vw, 60px); }
.section-head-row p { color: var(--muted); font-size: 17px; max-width: 460px; justify-self: end; }

/* ---------- the two feature sections: Our Games and Our Services ----------
   They get more room than the rest of the page: a wider layout, more
   space above and below, larger headings with a big outlined section
   number behind them, and a soft violet light behind the content. */
.section-feature { padding: clamp(88px, 12vw, 168px) 0; }
.section-feature > .wrap { width: min(1360px, 100%); }
/* Our Services: the heading, the tiles and How we work all share one width,
   so they line up on the same left and right edges */
#services > .wrap { width: min(calc(1180px + 2 * var(--gutter)), 100%); }
.section-feature .section-head { position: relative; isolation: isolate; margin-bottom: clamp(44px, 6vw, 84px); }
.section-feature .section-head::before {
  content: attr(data-num); position: absolute; z-index: -1; right: -0.04em; top: -0.42em; pointer-events: none;
  font: 400 clamp(120px, 17vw, 250px)/1 var(--logo-font); letter-spacing: 0; color: transparent; -webkit-text-stroke: 2px rgba(120, 24, 150, 0.14);
}
.section-feature .kicker { font-size: 13px; line-height: 1.4; margin-bottom: 22px; }
.section-feature .kicker span { font-size: 18px; }
.section-feature .section-head h2 { font-size: clamp(42px, 6.4vw, 88px); line-height: 1.0; letter-spacing: -0.03em; }
.section-feature .section-head-row { grid-template-columns: 1.3fr 1fr; gap: 24px 64px; }
.section-feature .section-head-row p { font-size: clamp(15px, 1.1vw, 16px); line-height: 1.65; color: var(--muted); max-width: 440px; }
#games::before {                  /* a soft violet light behind the games */
  content: ""; position: absolute; left: 50%; top: 18%; width: min(1200px, 100%); height: 70%; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(161, 43, 194, 0.08), rgba(255, 181, 71, 0.04) 60%, transparent);
}
#games > .wrap { position: relative; }

/* ---------- games: a grid of equal cards ---------- */
/* one row that moves by itself (main.js). It runs edge to edge across the
   whole page (it sits outside the .wrap frame, so it's exactly as wide as
   the page and never off-centre), and its ends fade softly into the page
   edges. The row keeps room above and below the
   cards for their hover lift and shadow (--rp); the section gives back the
   same amount at the bottom, so the space below the cards equals the space
   above the heading. */
#games { --pad: clamp(88px, 12vw, 168px); --rp: 40px; padding-bottom: calc(var(--pad) - var(--rp)); }
.games {
  position: relative; overflow: hidden; margin: calc(-1 * var(--rp)) 0 0; padding: var(--rp) 0; touch-action: pan-y; cursor: grab;
}
.games::before, .games::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 2; width: clamp(20px, 4vw, 56px); pointer-events: none; }
.games::before { left: 0; background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0)); }
.games::after { right: 0; background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0)); }
.games.dragging { cursor: grabbing; }
.games.dragging .game { pointer-events: none; }
.games-track { display: flex; gap: clamp(18px, 2.2vw, 32px); width: max-content; will-change: transform; }
.games img { -webkit-user-drag: none; user-select: none; }
/* with reduced motion: a plain row to scroll by hand */
.games.is-static { overflow-x: auto; scroll-snap-type: x mandatory; cursor: auto; scrollbar-width: none; }
.games.is-static::-webkit-scrollbar { display: none; }
.games.is-static .game-item { scroll-snap-align: start; }
.game {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--frame); border: 1px solid transparent;
  box-shadow: var(--edge), var(--depth); overflow: hidden; isolation: isolate;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(0);
}
.game:hover { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); box-shadow: var(--edge), var(--depth-up); }
.game::before, .service::before {  /* a soft light where the pointer rests */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity 0.5s var(--ease);
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.24), transparent 45%);
}
.game:hover::before, .service:hover::before { opacity: 1; }
/* tall poster cards: the game's portrait picture fills the card, the genre
   sits on frosted glass at the top, and the name, a short line and the
   buttons sit on a frosted glass panel at the bottom. On hover the card
   lifts and leans towards the pointer, and the picture zooms gently. */
.game { aspect-ratio: 9 / 14; border-radius: 28px; background: #1e0a28; border: 0; box-shadow: 0 0 0 1px rgba(23, 17, 42, 0.06), var(--depth); }
.game:hover { box-shadow: 0 0 0 1px rgba(23, 17, 42, 0.06), var(--depth-up); }
.game { transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.game-item { flex: none; width: clamp(260px, 24vw, 340px); }
.game::before { z-index: 3; }
.game-cover { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.game-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform 1.2s var(--ease); }
.game:hover .game-cover img { transform: scale(1.06); }
.game-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(23, 17, 42, 0.35)); }
.game-tag {
  position: absolute; left: 16px; top: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); border: 1px solid rgba(255, 255, 255, 0.8);
  font: 600 12px/1 var(--sans); color: var(--ink); letter-spacing: 0.02em; box-shadow: 0 4px 14px -4px rgba(23, 17, 42, 0.3);
}
.game-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gc); }
.game-body {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; display: flex; flex-direction: column; gap: 6px; padding: 20px 18px 18px;
  border-radius: 22px; background: rgba(255, 255, 255, 0.93); border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 30px -12px rgba(23, 17, 42, 0.45);
}
.game h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 600; }
.game-blurb { color: var(--text); font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.game-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 8px; }
.game-actions .badge { justify-content: center; }
.game-actions .badge, .game-actions .play-web { border-radius: 999px; }
.game-actions .play-web i { border-radius: 50%; }

/* store badges in the official style (black, a fine grey rim, the store's
   own lettering), and Play on the web as their violet sibling. All three
   have a lit top edge and press in when clicked. */
.badge {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 13px 0 11px; border-radius: 12px; border: 1px solid #a6a6a6;
  background: linear-gradient(180deg, #23232a 0%, #0a0a0d 55%, #000 100%); color: #fff; text-decoration: none; cursor: pointer; font-family: var(--sans);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 1px 1px rgba(0, 0, 0, 0.15), 0 8px 16px -10px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.2s;
}
.badge:hover { transform: translateY(-2px); border-color: #d0d0d0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 3px rgba(0, 0, 0, 0.15), 0 16px 24px -12px rgba(0, 0, 0, 0.6); }
.badge svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.badge-play svg { width: 21px; height: 21px; }
.badge span { display: grid; text-align: left; line-height: 1; white-space: nowrap; }
.badge small { font-size: 9.5px; font-weight: 500; letter-spacing: 0.01em; margin-bottom: 3px; }
.badge-play small { font-size: 8.5px; font-weight: 600; letter-spacing: 0.1em; }
.badge b { font-size: 16.5px; font-weight: 600; letter-spacing: -0.015em; }
.play-web {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 20px 0 8px;
  border-radius: 12px; border: 1px solid #560b6b; grid-column: 1 / -1; text-decoration: none; color: #fff; font-family: var(--sans); cursor: pointer;
  background: linear-gradient(180deg, #cb59eb 0%, #8a1ea8 50%, #6b1085 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), inset 0 -2px 0 rgba(46, 4, 62, 0.3), 0 1px 1px rgba(60, 8, 80, 0.2), 0 10px 20px -10px rgba(107, 16, 133, 0.75);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.play-web::after {                /* a sheen that sweeps across on hover */
  content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent); transform: skewX(-20deg); transition: left 0.9s var(--ease);
}
.play-web:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -2px 0 rgba(46, 4, 62, 0.3), 0 2px 3px rgba(60, 8, 80, 0.2), 0 18px 28px -12px rgba(107, 16, 133, 0.8); }
.play-web:hover::after { left: 130%; }
.play-web i { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(180deg, #fff, #f6e6fc); color: var(--violet); box-shadow: 0 2px 6px rgba(40, 0, 56, 0.35); }
.play-web svg { width: 16px; height: 16px; fill: currentColor; }
.play-web span { display: grid; text-align: left; line-height: 1; white-space: nowrap; }
/* a game that's coming soon: a quiet, unclickable sibling of Play on the web */
.play-soon {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 20px 0 8px; grid-column: 1 / -1; border-radius: 999px; cursor: default;
  border: 1.5px dashed #dfbdef; background: linear-gradient(180deg, #fff, var(--violet-soft)); color: var(--violet-deep); font-family: var(--sans);
}
.play-soon i { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--violet-soft); color: var(--violet); }
.play-soon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.play-soon span { display: grid; text-align: left; line-height: 1; white-space: nowrap; }
.play-soon small { margin-bottom: 3px; font-size: 8.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; }
.play-soon b { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.game-soon {
  position: absolute; right: 16px; top: 16px; z-index: 2; padding: 7px 12px; border-radius: 999px; background: linear-gradient(180deg, #5a1477, var(--plum)); color: #fff;
  font: 700 11px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 14px -6px rgba(0, 0, 0, 0.5);
}
.play-web small { margin-bottom: 3px; font-size: 8.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.88; }
.play-web b { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 28px); }
.service {
  position: relative; overflow: hidden; isolation: isolate; min-height: clamp(240px, 22vw, 300px); padding: clamp(28px, 3.4vw, 48px); border-radius: 26px; border: 1px solid transparent; background: var(--frame);
  box-shadow: var(--edge), var(--depth); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(0);
}
.service::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(161, 43, 194, 0.07), transparent 50%); }
.service:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-5px); box-shadow: var(--edge), var(--depth-up); }
.service-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(26px, 3vw, 40px); }
.service-num { font: 600 18px/1 var(--serif); color: var(--muted); }
.service-icon {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; color: var(--violet);
  background: linear-gradient(160deg, #fff, var(--violet-soft)); border: 1px solid #f0dafa;
  box-shadow: inset 0 1px 0 #fff, 0 8px 16px -8px rgba(161, 43, 194, 0.45); transition: color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.service-icon::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: linear-gradient(160deg, #cb59eb, #6b1085); opacity: 0; transition: opacity 0.4s var(--ease); z-index: -1; }
.service-icon { isolation: isolate; }
.service-icon svg { position: relative; }
.service:hover .service-icon { color: #fff; transform: rotate(-6deg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 12px 20px -8px rgba(107, 16, 133, 0.6); }
.service:hover .service-icon::after { opacity: 1; }
.service-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* a tile arrives: it rises and settles, a light sweeps across it, its icon
   pops in and draws itself, then floats gently (only the whole icon moves:
   animating the shapes inside an icon makes the browser redo the page
   layout on every frame) */
.js .service.reveal { scale: 0.96; }
.js .service.reveal.in { scale: 1; }
.service::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 55%; z-index: 2; pointer-events: none; transform: translateX(-130%) skewX(-14deg);
  background: linear-gradient(100deg, transparent, rgba(161, 43, 194, 0.06) 38%, rgba(255, 255, 255, 0.75) 50%, rgba(161, 43, 194, 0.06) 62%, transparent);
}
.js .service.in::after { animation: sweep 1.7s var(--ease) calc(var(--d, 0ms) + 0.45s) both; }
@keyframes sweep { to { transform: translateX(280%) skewX(-14deg); } }
.js .service.in .service-icon { animation: icon-in 1s var(--ease) calc(var(--d, 0ms) + 0.2s) backwards; }
@keyframes icon-in { from { transform: scale(0.4) rotate(-25deg); opacity: 0; } 60% { transform: scale(1.08) rotate(4deg); opacity: 1; } }
.js .service-icon svg :is(path, rect, circle) { stroke-dasharray: 1 2; stroke-dashoffset: 1.02; transition: stroke-dashoffset 1.4s var(--ease) calc(var(--d, 0ms) + 0.4s); }
.js .service.in .service-icon svg :is(path, rect, circle) { stroke-dashoffset: 0; }
.service-icon svg { animation: icon-float 5s ease-in-out infinite; }
.service:nth-child(2n) .service-icon svg { animation-delay: -2.5s; }
@keyframes icon-float { 0%, 100% { transform: translateY(1px); } 50% { transform: translateY(-2px); } }
.i-ping { fill: currentColor; }
/* soft shapes float on their own and drift at their own speed (--k) as the
   section scrolls past (--sy, set by main.js) */
.floaters { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
#services > .wrap { position: relative; z-index: 1; }
.fl {
  position: absolute; display: block; translate: 0 calc(var(--sy, 0) * var(--k, 60) * 1px);
  animation: drift-shape var(--t, 12s) ease-in-out infinite alternate; will-change: transform, translate;
}
@keyframes drift-shape { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(var(--fx, 14px), var(--fy, -22px)) rotate(var(--fr, 40deg)); } }
.floaters { --m: calc((100% - 1180px) / 4); }
.fl-ring { left: calc(var(--m) - 27px); top: 8%; width: 54px; height: 54px; border-radius: 50%; border: 2px solid rgba(161, 43, 194, 0.2); --k: -80; --t: 13s; --fr: 0deg; }
.fl-ring-2 { left: auto; right: calc(var(--m) - 11px); top: 3%; width: 22px; height: 22px; border-color: rgba(240, 140, 0, 0.32); --k: 50; --t: 9s; --fx: -18px; }
.fl-plus {
  right: calc(var(--m) - 13px); top: 7%; width: 26px; height: 26px; opacity: 0.55; --k: 70; --t: 10s; --fr: 90deg;
  background: linear-gradient(var(--amber), var(--amber)) center / 100% 4px no-repeat, linear-gradient(var(--amber), var(--amber)) center / 4px 100% no-repeat;
}
.fl-square { left: calc(var(--m) - 17px); top: 45%; width: 34px; height: 34px; border-radius: 10px; border: 2px solid rgba(107, 16, 133, 0.16); --k: 90; --t: 15s; --fr: 60deg; --fx: 10px; }
.fl-dot { right: calc(var(--m) - 7px); top: 41%; width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(160deg, #d791eb, var(--violet)); opacity: 0.45; --k: -60; --t: 8s; --fy: 26px; }
.fl-dot-2 { right: auto; top: auto; left: calc(var(--m) - 5px); bottom: 30%; width: 10px; height: 10px; opacity: 0.35; --k: -40; --t: 11s; }
.fl-play { left: calc(var(--m) - 15px); bottom: 13%; width: 30px; height: 30px; clip-path: polygon(18% 8%, 92% 50%, 18% 92%); background: linear-gradient(160deg, #ffd08a, var(--amber-deep)); opacity: 0.42; --k: 75; --t: 11s; --fr: -30deg; }
.fl-spark { right: calc(var(--m) - 12px); bottom: 25%; font: 24px/1 var(--sans); color: var(--amber-deep); opacity: 0.55; --k: -95; --t: 7s; --fr: 120deg; }
/* idle motion only runs while the section is on screen */
#services:not(.live) :is(.fl, .service-icon svg) { animation-play-state: paused; }
#services:not(.live) .process-steps li::before { animation-play-state: paused; }
.service h3 { font-size: clamp(24px, 2.2vw, 30px); margin-bottom: 12px; }
.service p { color: var(--muted); font-size: clamp(15px, 1.2vw, 17px); line-height: 1.6; }
/* how we work: a timeline */
/* centred: the title, each step and the line, with equal room either side */
.process { margin-top: clamp(56px, 7vw, 88px); text-align: center; }
.process-title { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: clamp(32px, 4vw, 48px); }
.process-steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; counter-reset: step; }
/* the line runs from the first step to the last and fills, step by step,
   as the steps scroll into view (main.js sets --fill and the step classes:
   on = reached, current = the newest, done = passed) */
.process-steps::before, .process-steps::after { content: ""; position: absolute; left: calc((100% - 96px) / 10); right: calc((100% - 96px) / 10); top: 21px; height: 2px; border-radius: 2px; }
.process-steps::before { background: var(--line-2); }
.process-steps::after { background: linear-gradient(90deg, var(--violet), #c83fc7 55%, var(--amber)); transform-origin: 0 50%; }
.js .process-steps::after { transform: scaleX(var(--fill, 0)); transition: transform 0.85s cubic-bezier(0.35, 0.1, 0.45, 1); }
.process-steps li { position: relative; counter-increment: step; }
.process-steps li::before {
  content: counter(step, decimal-leading-zero); position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 18px; border-radius: 50%;
  z-index: 1; background: linear-gradient(180deg, #fff, #f5f2fc); border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(23, 17, 42, 0.06), 0 8px 14px -8px rgba(56, 10, 70, 0.3); font: 400 16px/1 var(--logo-font); color: var(--ink);
  transition: transform 0.8s var(--ease) var(--sd, 0ms), opacity 0.5s ease var(--sd, 0ms), color 0.5s var(--sd, 0ms), border-color 0.5s var(--sd, 0ms), box-shadow 0.6s var(--sd, 0ms);
}
.js .process-steps li::before { transform: scale(0.5); opacity: 0; }
.js .process-steps li.on::before { transform: none; opacity: 1; }
.process-steps li.on::before {
  background: linear-gradient(160deg, #cb59eb, var(--violet-deep)); border-color: transparent; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 18px -8px rgba(107, 16, 133, 0.6);
}
.process-steps li.current::before { animation: step-pulse 2.6s ease-out calc(var(--sd, 0ms) + 0.9s) 3; }   /* (a few pulses, then still: an endless shadow animation costs work on every frame) */
@keyframes step-pulse {
  0% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 18px -8px rgba(107, 16, 133, 0.6), 0 0 0 0 rgba(161, 43, 194, 0.42); }
  70%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 18px -8px rgba(107, 16, 133, 0.6), 0 0 0 14px rgba(161, 43, 194, 0); }
}
.js .process-steps li > * { opacity: 0; translate: 0 14px; transition: opacity 0.7s var(--ease), translate 0.8s var(--ease), color 0.5s; }
.js .process-steps li.on > b { opacity: 1; translate: none; transition-delay: calc(var(--sd, 0ms) + 0.15s), calc(var(--sd, 0ms) + 0.15s), 0s; }
.js .process-steps li.on > span { opacity: 1; translate: none; transition-delay: calc(var(--sd, 0ms) + 0.28s), calc(var(--sd, 0ms) + 0.28s), 0s; }
.process-steps li.current > b { color: var(--violet-deep); }
.process-steps b { display: block; font: 600 20px/1.2 var(--serif); color: var(--ink); margin-bottom: 6px; }
.process-steps span { display: block; max-width: 210px; margin: 0 auto; font-size: 14px; color: var(--muted); }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1.12fr 1fr; padding: 8px; border-radius: 32px; background: var(--frame); border: 1px solid transparent; box-shadow: var(--edge), var(--depth-up); }
.contact-panel { position: relative; overflow: hidden; padding: clamp(32px, 4.5vw, 56px); border-radius: 25px; background: linear-gradient(165deg, #4a1262, #240830 55%); color: #d9d4ea; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 34px -18px rgba(23, 17, 42, 0.7); }
.contact-panel > :not(.aura) { position: relative; z-index: 1; }
.aura-dark span { opacity: 0.45; }
.aura-dark .a1 { left: 34%; top: -260px; --c: #b23fd6; }
.aura-dark .a2 { left: -160px; top: 54%; --c: #f0a040; opacity: 0.3; }
.contact-panel h2 { color: #fff; font-size: clamp(34px, 4vw, 50px); }
.contact-panel h2 em { background: linear-gradient(100deg, #e1b3f0, var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact-intro { margin-top: 18px; color: #bdb6d3; max-width: 400px; }
.contact-list { list-style: none; margin: 38px 0 0; padding: 0; display: grid; gap: 4px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.cl-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 14px -8px rgba(0, 0, 0, 0.6); }
.cl-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cl-label { font: 600 11px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: #9b93b6; margin-bottom: 7px; }
.cl-value { font: 500 clamp(20px, 1.75vw, 24px)/1.3 var(--serif); color: #fff; text-decoration: none; overflow-wrap: anywhere; }
a.cl-value:hover { color: var(--amber); }
.cl-copy { display: block; margin-top: 8px; padding: 0; border: 0; background: none; color: #e1b3f0; font: 600 13px/1 var(--sans); cursor: pointer; }
.cl-copy:hover { color: #fff; }
.contact-form-wrap { padding: clamp(28px, 4.5vw, 56px); }
.form-title { font-size: 28px; margin-bottom: 26px; }
.contact-form { display: grid; gap: 18px; }
/* floating labels */
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 24px 16px 10px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg-soft); color: var(--ink);
  font: 500 16px/1.4 var(--sans); box-shadow: inset 0 1px 2px rgba(23, 17, 42, 0.05); transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field label { position: absolute; left: 17px; top: 17px; color: var(--muted); font-size: 15px; pointer-events: none; transform-origin: 0 0; transition: transform 0.25s var(--ease), color 0.25s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--violet); background: #fff; box-shadow: 0 0 0 4px rgba(161, 43, 194, 0.12); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(0.78); color: var(--violet); }
.field [aria-invalid="true"] { border-color: #e0335f; }
.field-err { display: block; margin-top: 6px; color: #c8234f; font-size: 13px; }
.field-err:empty { display: none; }
.btn-send { justify-self: start; }
.form-status { font-size: 14px; color: var(--muted); }
.form-status.err { color: #c8234f; }
.hp { position: absolute; left: -9999px; }
.contact-sent { display: grid; justify-items: start; gap: 12px; padding-top: 20px; }
.contact-sent h3 { font-size: 32px; }
.contact-sent p { color: var(--muted); }
.cs-check { width: 56px; height: 56px; fill: none; stroke: #16a34a; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- footer ---------- */
.footer { padding: clamp(64px, 8vw, 100px) 0 max(36px, env(safe-area-inset-bottom)); background: var(--bg-soft); border-top: 1px solid var(--line); }
.footer-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; padding-bottom: 44px; border-bottom: 1px solid var(--line-2); }
.footer-line { font: 500 clamp(34px, 5vw, 64px)/1.02 var(--serif); letter-spacing: -0.02em; color: var(--ink); }
.footer-brand img { height: 74px; width: auto; filter: drop-shadow(0 6px 14px rgba(107, 16, 133, 0.18)); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 26px; }
.footer-nav { display: flex; gap: 26px; }
.footer-nav a { font: 600 14px/1 var(--sans); color: var(--ink); text-decoration: none; }
.footer-nav a:hover { color: var(--violet); }
.footer-copy { color: var(--muted); font-size: 14px; }

/* ---------- "coming soon" (App Store / Google Play) ---------- */
.soon { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; background: rgba(23, 17, 42, 0.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.3s var(--ease); }
.soon.open { opacity: 1; }
.soon-card {
  position: relative; width: min(440px, 100%); padding: 30px; border-radius: 28px; background: linear-gradient(180deg, #fff 60%, #faf8ff); text-align: center; box-shadow: var(--edge), 0 2px 4px rgba(23, 17, 42, 0.08), 0 40px 80px -20px rgba(23, 17, 42, 0.45);
  transform: translateY(18px) scale(0.96); transition: transform 0.45s var(--ease);
}
.soon.open .soon-card { transform: none; }
.soon-x { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: linear-gradient(180deg, #fff, #f6f3fc); color: var(--ink); cursor: pointer; box-shadow: inset 0 1px 0 #fff, 0 4px 10px -6px rgba(23, 17, 42, 0.35); }
.soon-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.soon-x:hover { border-color: var(--ink); }
.soon-art { position: relative; width: 112px; height: 112px; margin: 6px auto 22px; }
.soon-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; border-radius: 28px; box-shadow: var(--shadow); }
.soon-store { position: absolute; right: -10px; bottom: -10px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(180deg, #23232a, #000); color: #fff; border: 3px solid #fff; box-shadow: 0 8px 16px -6px rgba(0, 0, 0, 0.45); }
.soon-store svg { width: 22px; height: 22px; fill: currentColor; }
.soon .kicker { justify-content: center; margin-bottom: 10px; }
.soon-spark { color: var(--amber-deep); font-style: normal; }
.soon .kicker span::after { display: none; }
.soon h3 { font-size: 28px; }
.soon-text { margin-top: 10px; color: var(--muted); font-size: 15px; }
.soon-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.soon-actions .btn { min-height: 46px; white-space: nowrap; padding: 0 20px; }

/* ---------- the game player ---------- */
html.modal-on, html.modal-on body { overflow: hidden; }
.player { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: auto 1fr; background: #0f0b1e; }
.player-bar {
  display: flex; align-items: center; gap: 12px; min-height: 62px;
  padding: max(8px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
  background: #fff; border-bottom: 1px solid var(--line);
}
.player-name { font-size: 22px; }
.player-genre { color: var(--muted); font-size: 14px; }
.player-actions { margin-left: auto; display: flex; gap: 8px; }
.player-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; min-width: 40px; padding: 0 14px; justify-content: center; border-radius: 999px;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: 600 14px/1 var(--sans); cursor: pointer;
}
.player-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.player-btn:hover { border-color: var(--ink); }
.player-close { background: var(--ink); color: #fff; border-color: var(--ink); }
.player-close:hover { background: var(--violet); border-color: var(--violet); }
.player-stage { position: relative; min-height: 0; overflow: hidden; }
.player-frame { position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: 0 auto; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.player.is-portrait .player-frame { width: min(100%, calc((100svh - 62px) * 9 / 16)); }
.player-spin { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.2); border-top-color: var(--amber); animation: turn 0.8s linear infinite; }
.player.loaded .player-spin { display: none; }

/* ---------- scroll reveals: content rises softly into place ---------- */
/* (it moves with `translate`, so hover transforms on cards stay free) */
.js .reveal { opacity: 0; translate: 0 26px; }
.js .reveal.in { opacity: 1; translate: none; }
.reveal { transition: opacity 0.9s var(--ease) var(--d, 0ms), translate 0.9s var(--ease) var(--d, 0ms), scale 0.9s var(--ease) var(--d, 0ms), transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }

/* ---------- the logo's lettering, reused for a few brand accents ----------
   In the logo's style: round, chunky letters (Fredoka One), set tight;
   a golden fill like "GAMES" (.logo-gold: bright yellow at the top to
   orange at the bottom) or white shading to lavender like "MIZPHA"
   (.logo-white), with a glossy highlight across the top of the letters;
   all inside the logo's thick, even, deep-purple outline. No offset, blur
   or glow. The word stays as plain (invisible) text for layout, selection
   and screen readers; two copies of it (data-text) draw the look: the
   outline behind (::before, the letters grown outward by an SVG filter in
   index.html, sized by main.js) and the fill on top (::after).
   (Selectors are doubled up to win over the headings' italic accents.) */
.logo-word, h1 em.logo-word, h2 em.logo-word, .contact-panel h2 em.logo-word, .footer-line em.logo-word {
  position: relative; z-index: 0; display: inline-block; padding: 0 0.09em; margin: 0 0.04em;
  font: 400 0.92em/1.05 var(--logo-font); letter-spacing: 0.01em; font-style: normal; text-transform: none;
  background: none; color: transparent; -webkit-text-fill-color: transparent; -webkit-text-stroke: 0; text-shadow: none;
}
/* (the copies reach past the word above and below; the matching padding
   keeps their letters exactly over the word's) */
.logo-word::before, .logo-word::after { content: attr(data-text); position: absolute; inset: -0.2em -0.1em -0.4em; padding: 0.2em 0.19em 0.4em; pointer-events: none; text-shadow: none; }
.logo-word::before { z-index: -1; color: var(--logo-ink); -webkit-text-fill-color: var(--logo-ink); filter: var(--outline, url(#logo-ink-6)); }
/* the fill, from top to bottom of the letters (they span about 21%–64% of
   this taller box): the shine (resting off the word), the glossy
   highlight along the top, then the colour */
.logo-word::after {
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0) 44%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0) 56%) 100% 0 / 300% 100% no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.7) 24%, rgba(255, 255, 255, 0) 32%) 0 0 / 100% 100% no-repeat,
    linear-gradient(180deg, #fff27a 20%, #ffdb35 32%, #ffc124 46%, #ff9e14 62%) 0 0 / 100% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.logo-word.logo-white::after {
  background-image:
    linear-gradient(105deg, rgba(255, 214, 110, 0) 44%, rgba(255, 214, 110, 0.75) 50%, rgba(255, 214, 110, 0) 56%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.7) 24%, rgba(255, 255, 255, 0) 32%),
    linear-gradient(180deg, #ffffff 20%, #ffffff 44%, #efe7ff 54%, #d3c0f7 63%);
}
/* now and then (main.js), the light sweeps across once, like a gleam on the
   logo's glossy letters */
.logo-word.shine::after { animation: logo-shine 1.6s cubic-bezier(0.45, 0, 0.2, 1) both; }
@keyframes logo-shine { from { background-position: 100% 0, 0 0, 0 0; } to { background-position: 0% 0, 0 0, 0 0; } }
.nowrap { white-space: nowrap; }   /* (keeps a word and its full stop together) */

/* ---------- responsive ---------- */
/* the shapes only float in the empty margins beside the content; on
   narrower screens there's no margin for them, so they rest */
@media (max-width: 1359px) {
  .floaters { display: none; }
}
@media (max-width: 1080px) {
  .header-cta { display: none; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .process-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 36px 24px; }
  .process-steps li { flex: 0 0 calc((100% - 48px) / 3); }
  .process-steps::before, .process-steps::after { display: none; }
}
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; width: 100%; margin: 12px auto 0; align-items: center; }
  .phone-glow { right: auto; left: 50%; margin: -280px 0 0 -280px; }
  .seal { right: calc(50% + var(--w) / 2 - 35px); }
  .hero-art { --w: 252px; }
  .section-head-row, .section-feature .section-head-row { grid-template-columns: 1fr; }
  .section-head-row p { justify-self: start; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .header-in { height: 68px; }
  .header.scrolled .header-in { height: 60px; }
  .brand img { height: 50px; }
  .header.scrolled .brand img { height: 44px; }
  .nav { gap: 0; }
  .header-in { grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
  .nav { justify-self: end; }
  .header-right { display: none; }
  .nav a { padding: 8px 7px; font-size: 13px; }
  .nav a::after { left: 7px; right: 7px; }
  .hero { padding-top: calc(68px + 28px); }
  .hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .hero-meta li { flex-direction: column; gap: 6px; }
  .hero-meta b { font-size: 28px; }
  .hero-meta span { max-width: none; font-size: 12px; }
  .hero { background-image: url("../img/hero-bg-sm.jpg"); background-position: 62% 100%; }
  .hero-art { --w: 230px; }
  .phone-dots { margin-top: 24px; }
  .seal { width: 92px; right: calc(50% + var(--w) / 2 - 32px); bottom: 16%; }
  .seal text { font-size: 17px; }
  .game-item { width: min(74vw, 300px); }
  #games { --pad: 88px; --rp: 28px; }
  .game .game-body { padding: 16px 12px 12px; left: 8px; right: 8px; bottom: 8px; }
  .game h3 { font-size: 22px; }
  .game-blurb { font-size: 13.5px; }
  .game:hover, .service:hover { transform: none; }
  .badge, .play-web, .play-soon { height: 46px; }
  .game-soon { right: 12px; top: 12px; }
  .badge { gap: 7px; padding: 0 10px; }
  .badge svg { width: 20px; height: 20px; }
  .badge-play svg { width: 18px; height: 18px; }
  .badge small { font-size: 8px; }
  .badge-play small { font-size: 7.5px; }
  .badge b { font-size: 14px; }
  .services { grid-template-columns: 1fr; gap: 14px; }
  .service { min-height: 0; }
  .section-feature .kicker { font-size: 11.5px; letter-spacing: 0.14em; }
  .service-top { margin-bottom: 20px; }
  .process-steps { display: grid; grid-template-columns: 1fr; gap: 0; }
  .process-steps li { padding-bottom: 46px; }
  .process-steps li:last-child { padding-bottom: 0; }
  .process-steps li::before { margin-bottom: 14px; }
  .process-steps li:not(:last-child)::after {
    content: ""; position: absolute; left: calc(50% - 1px); bottom: 10px; height: 26px; width: 2px; border-radius: 2px;
    background: linear-gradient(var(--violet), var(--amber)) top / 100% 0% no-repeat, var(--line-2); transition: background-size 0.9s var(--ease);
  }
  .process-steps li.done::after { background-size: 100% 100%, auto; }
  .contact { border-radius: 26px; padding: 6px; }
  .contact-panel { border-radius: 20px; padding: 30px 22px; }
  .cl-value { font-size: 17px; }
  .contact-list li { gap: 12px; }
  .footer-brand img { height: 58px; }
  /* coming soon slides up from the bottom on phones */
  .soon { place-items: end center; padding: 0; }
  .soon-card { width: 100%; border-radius: 28px 28px 0 0; padding: 30px 22px max(26px, env(safe-area-inset-bottom)); transform: translateY(100%); }
  .soon-actions .btn { flex: 1; }
  .player.is-portrait .player-frame { width: 100%; }
  .player-genre { display: none; }
}
@media (max-width: 380px) {
  .header .wrap { padding: 0 14px; }
  .header-in { gap: 4px; }
  .nav a { padding: 8px 5px; font-size: 12px; }
  .nav a::after { left: 5px; right: 5px; }
  .game-item { width: 78vw; }
  .game .game-body { padding: 14px 10px 10px; }
  .game-actions { gap: 7px; }
  .game-soon { left: 12px; right: auto; top: 46px; }
  .badge { gap: 6px; padding: 0 8px; }
  .badge svg, .badge-play svg { width: 17px; height: 17px; }
  .badge small, .badge-play small { font-size: 7px; }
  .badge b { font-size: 12.5px; }
  .hero-art { --w: 212px; }
  .brand img { height: 40px; }
  .header.scrolled .brand img { height: 36px; }
}
@media (max-width: 340px) {
  .nav a { padding: 8px 4px; }
  .nav a::after { left: 4px; right: 4px; }
  .brand img, .header.scrolled .brand img { height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: none; scale: none; }
  .js .process-steps li > *, .js .process-steps li::before { opacity: 1; translate: none; transform: none; }
  .js .service-icon svg :is(path, rect, circle) { stroke-dashoffset: 0; }
  .fl { translate: none; }
}
