/* Dark only, cyberpunk-noir: near-black surfaces, one neon accent per subject, the games' panels the loudest. */
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-display: swap; src: url(/fonts/chakra-petch-700.woff2) format("woff2"); }
:root {
  color-scheme: dark;
  --cyan: #3ee8ff; --magenta: #ff5cc8; --amber: #ffc247;
  --fg: #e6e8f2; --dim: #9ea3bb; --line: #232738; --acc: var(--cyan); --on-acc: #06070b;
  --bg: #07080d; --card: #0f111a; --shadow: 0 12px 32px rgba(0, 0, 0, .45);
  --display: "Chakra Petch", system-ui, sans-serif; --mono: ui-monospace, SFMono-Regular, Consolas, Menlo, monospace;
  --glow: 0 0 18px color-mix(in srgb, var(--acc) 45%, transparent);
  --arcade: radial-gradient(circle at 88% 8%, rgba(255, 92, 200, .30), transparent 45%),
    radial-gradient(circle at 4% 100%, rgba(62, 232, 255, .22), transparent 50%), linear-gradient(160deg, #0c0a1a, #170d2e 60%, #0a0913);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; background: var(--bg); }
body { margin: 0; color: var(--fg); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; min-height: 100vh;
  background: radial-gradient(ellipse 60% 40% at 0 0, rgba(255, 92, 200, .09), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 0, rgba(62, 232, 255, .07), transparent 70%),
    linear-gradient(rgba(120, 140, 255, .035) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(120, 140, 255, .035) 1px, transparent 1px) 0 0 / 40px 40px, var(--bg); }
a { color: var(--acc); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--magenta) 45%, transparent); color: #fff; }
p { margin: 0 0 14px; }
h1, h2, h3, .brand { font-family: var(--display); font-weight: 700; letter-spacing: .2px; }

.top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 20px; padding: 10px max(24px, calc(50% - 536px));
  background: rgba(7, 8, 13, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; opacity: .7;
  background: linear-gradient(90deg, transparent, var(--magenta) 30%, var(--cyan) 70%, transparent); }
.brand { font-size: 17px; color: var(--fg); text-decoration: none; white-space: nowrap; text-shadow: 0 0 14px rgba(62, 232, 255, .35); }
nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
nav a { padding: 6px 12px; border-radius: 8px; color: var(--dim); text-decoration: none; font-size: 15px; white-space: nowrap; }
nav a:hover { background: var(--card); color: var(--fg); }
nav a[aria-current] { background: color-mix(in srgb, var(--acc) 14%, transparent); color: var(--acc); font-weight: 600;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 40%, transparent); }
@media (max-width: 720px) {
  .top { flex-direction: column; align-items: stretch; gap: 4px; padding: 8px 16px 6px; }
  nav { margin: 0 -16px; padding: 0 10px; }
}

main { max-width: 1120px; margin: 0 auto; padding: 48px 24px 64px; }
.hero { max-width: 720px; }
h1 { font-size: clamp(32px, 6vw, 50px); line-height: 1.1; margin: 0 0 14px; }
.lead { font-size: 20px; }
h2 { font-size: 25px; margin: 0 0 6px; }
section { margin-top: 56px; }
section > p { max-width: 680px; }
.small { font-size: 15px; color: var(--dim); }

.cards { display: grid; gap: 16px; margin-top: 20px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.cards.compact { gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { display: flex; gap: 14px; padding: 18px; background: linear-gradient(180deg, #121522, var(--card)); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: color-mix(in srgb, var(--acc) 45%, var(--line)); box-shadow: var(--shadow), var(--glow); }
.compact .card { padding: 14px; gap: 12px; }
.icon { flex: none; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.compact .icon { width: 44px; height: 44px; border-radius: 8px; }
.blank { display: grid; place-items: center; background: color-mix(in srgb, var(--acc) 14%, var(--card)); color: var(--acc); font: 700 20px var(--display); }
.text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.card h3 { margin: 0; font-size: 18px; line-height: 1.25; }
.compact h3 { font-size: 16px; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--acc); }
.line { margin: 0; color: var(--dim); font-size: 15px; line-height: 1.45; }
.card .line { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.compact .line { font-size: 14px; -webkit-line-clamp: 2; }
.foot { margin-top: auto; padding-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.price { font-weight: 650; font-size: 15px; margin-right: auto; }
.buy, .soon { padding: 6px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.buy { background: var(--acc); color: var(--on-acc); text-decoration: none; box-shadow: var(--glow); }
.buy:hover { filter: brightness(1.12); }
.soon { border: 1px solid var(--line); color: var(--dim); font-weight: 500; }
.extras { margin: 0; font-size: 14px; }

footer { margin-top: 64px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--dim); }

.page { max-width: 860px; }
.page h1 { font-size: 32px; }
.page h2 { font-size: 21px; margin: 32px 0 12px; }
.product { display: flex; gap: 20px; margin-bottom: 28px; }
.product .icon { width: 88px; height: 88px; border-radius: 16px; box-shadow: var(--glow); }
.product h1 { margin: 0; }
.product .line { font-size: 17px; }
.product .price { margin-right: 4px; }
.product .links { margin: 4px 0 0; font-size: 14px; color: var(--dim); }
.shots { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 0 28px; padding-bottom: 6px; }
.shot { flex: none; width: min(100%, 720px); height: auto; scroll-snap-align: start; border-radius: 10px; border: 1px solid var(--line); }
@media (max-width: 560px) {
  .compact .card { padding: 12px; }
  .compact .line { -webkit-line-clamp: 1; }
  .compact .foot { padding-top: 0; }
  .compact .buy, .compact .soon { padding: 4px 12px; font-size: 13px; }
  .product { flex-direction: column; gap: 12px; }
  .product .icon { width: 64px; height: 64px; }
  .page h1 { font-size: 27px; }
}
code, pre { font-family: var(--mono); font-size: .88em; }
code { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: .1em .35em; }
pre { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
  overflow-x: auto; line-height: 1.5; }
pre code { background: none; border: 0; padding: 0; font-size: 1em; }
table { border-collapse: collapse; margin: 0 0 18px; }
th, td { padding: 6px 12px; border: 1px solid var(--line); text-align: left; }

/* Subjects: each has its accent, its page a band on top. */
.theme-games { --acc: var(--magenta); }
.theme-extensions { --acc: #7fa9ff; }
.theme-addons { --acc: #4ff0a8; }
.theme-shopify { --acc: var(--cyan); }
.page.wide { max-width: 1120px; }
.wide section { margin-top: 44px; }
.band { position: relative; overflow: hidden; padding: 30px 32px; border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 16%, var(--card)), var(--card) 70%);
  border: 1px solid color-mix(in srgb, var(--acc) 35%, var(--line)); box-shadow: 0 0 40px color-mix(in srgb, var(--acc) 10%, transparent); }
.band h1 { margin: 0 0 8px; font-size: clamp(30px, 5vw, 44px); text-shadow: 0 0 24px color-mix(in srgb, var(--acc) 45%, transparent); }
.band p { max-width: 720px; margin: 0; color: var(--dim); font-size: 17px; }
.chips { flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips a { padding: 6px 14px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); color: var(--fg); font-size: 14px; font-weight: 600; }
.chips a:hover { border-color: var(--acc); }
.chips span { color: var(--dim); font-weight: 500; }

/* The games' panels: the landing's and the games page's band, gridded and scanlined. */
.arcade, .theme-games .band { background: var(--arcade); border: 1px solid rgba(255, 92, 200, .35); color: #f3f1ff;
  box-shadow: 0 0 0 1px rgba(62, 232, 255, .06), 0 30px 80px rgba(255, 92, 200, .12); }
.arcade::before, .theme-games .band::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-size: 28px 28px;
  background-image: linear-gradient(rgba(62, 232, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(62, 232, 255, .08) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 70% 20%, #000 20%, transparent 75%); }
.arcade::after, .theme-games .band::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px); }
.arcade > *, .band > * { position: relative; z-index: 1; }
.theme-games .band h1 { color: #fff; text-shadow: 0 0 26px rgba(255, 92, 200, .5); }
.theme-games .band p, .theme-games .band .chips span { color: #cdc8e6; }
.theme-games .band a { color: var(--amber); }
.theme-games .band .chips a { background: rgba(255, 255, 255, .05); border-color: rgba(62, 232, 255, .25); color: #fff; }
.theme-games .band .chips a:hover { border-color: var(--cyan); box-shadow: 0 0 14px rgba(62, 232, 255, .3); }

/* Home: the games as a panel, the rest as tiles. */
.home .hero { margin-bottom: 8px; }
.arcade { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px 44px; margin-top: 28px;
  padding: 44px; border-radius: 18px; }
.kicker { margin: 0 0 10px; text-transform: uppercase; letter-spacing: .2em; font: 700 13px var(--mono); color: var(--cyan);
  text-shadow: 0 0 12px rgba(62, 232, 255, .6); }
.kicker::before { content: "// "; color: var(--magenta); }
.arcade h2 { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.08; margin: 0 0 14px; color: #fff; text-shadow: 0 0 28px rgba(255, 92, 200, .45); }
.arcade p { color: #cdc8e6; font-size: 17px; }
.arcade a { color: var(--amber); }
.cta { display: inline-block; margin-top: 4px; padding: 10px 22px; border-radius: 8px; background: var(--amber); color: #120c1f !important;
  font: 700 17px var(--display); letter-spacing: .5px; text-decoration: none; box-shadow: 0 0 22px rgba(255, 194, 71, .45); }
.cta:hover { filter: brightness(1.1); }
.mosaic { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-content: center; }
.mosaic .icon { width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px; transform: rotate(-2deg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 10px 24px rgba(0, 0, 0, .6); }
.mosaic .icon:nth-child(even) { transform: rotate(2deg) translateY(6px); }
.lanes { grid-column: 1 / -1; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.lane { display: flex; flex-direction: column; padding: 16px 18px; border-radius: 12px; background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(62, 232, 255, .22); color: #fff !important; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.lane:hover { border-color: var(--cyan); box-shadow: 0 0 18px rgba(62, 232, 255, .3); transform: translateY(-2px); }
.lane b { font: 700 17px var(--display); }
.lane b::after, .more::after { content: " \2192"; }
.lane span { color: #bdb8d8; font-size: 14px; }
.tools h2::before { content: "// "; color: var(--magenta); }
.tiles { display: grid; gap: 16px; margin-top: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.tile { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 12px; background: linear-gradient(180deg, #121522, var(--card));
  border: 1px solid var(--line); box-shadow: var(--shadow), inset 0 2px 0 var(--acc); color: var(--fg); text-decoration: none;
  transition: transform .15s, border-color .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--acc) 50%, var(--line)); box-shadow: var(--shadow), inset 0 2px 0 var(--acc), var(--glow); }
.tile .icons { display: flex; gap: 6px; }
.tile .icon { width: 40px; height: 40px; border-radius: 8px; font-size: 16px; }
.tile h3 { margin: 4px 0 0; font-size: 20px; }
.tile p { margin: 0; color: var(--dim); font-size: 14.5px; line-height: 1.45; }
.more { margin-top: auto; padding-top: 6px; color: var(--acc); font-weight: 650; font-size: 15px; }

/* The games page's demos. */
.demos { display: grid; gap: 10px; margin-top: 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.demo { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line);
  color: var(--fg); text-decoration: none; font-weight: 600; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.demo:hover { border-color: var(--acc); box-shadow: var(--glow); }
.demo .icon { width: 40px; height: 40px; border-radius: 8px; font-size: 16px; }
.demo span { flex: 1; min-width: 0; }
.demo b { font-size: 13px; padding: 4px 10px; border-radius: 6px; background: var(--acc); color: var(--on-acc); box-shadow: var(--glow); }
.demo b::before { content: "\25B6  "; font-size: 10px; }
@media (max-width: 820px) {
  .arcade { grid-template-columns: 1fr; padding: 26px 22px; gap: 22px; border-radius: 14px; }
  .mosaic { gap: 8px; }
  .mosaic .icon:nth-child(n+11) { display: none; }
  .lanes { grid-template-columns: 1fr 1fr; gap: 10px; }
  .lane { padding: 12px 14px; }
  .lane b { font-size: 15px; }
  .band { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
