/* Peepsule colours: night sky, cyan-to-blue neon (same tokens as peepsule.com) */
@font-face { font-family: "Outfit"; src: url("/static/fonts/Outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #02040c; --panel: rgba(8, 16, 32, 0.78); --panel2: #0b1830; --line: rgba(62, 203, 255, 0.24); --text: #e8f4ff; --muted: #8eafd0;
  --accent: #3ecbff; --accent2: #5b7cff; --warn: #ffb020; --danger: #ff5a6a; --radius: 14px;
  --grad: linear-gradient(90deg, #3ecbff 0%, #1a7cff 45%, #5b7cff 70%, #4f7dff 100%);
  --grad-diag: linear-gradient(135deg, #3ecbff 0%, #2f6dff 50%, #4f7dff 100%);
  --glow: 0 0 18px rgba(62, 203, 255, 0.45), 0 0 42px rgba(91, 124, 255, 0.3);
  color-scheme: dark;
}
:root[data-theme="light"] { --bg: #f2f7ff; --panel: #fff; --panel2: #e8f1ff; --line: #c9dcf5; --text: #0a1a33; --muted: #4a6385; --accent: #1a7cff; --accent2: #5b7cff; color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.55 "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1 { font-size: 1.7rem; margin: .4em 0; } h2 { font-size: 1.3rem; } h3 { margin: .3em 0; }
code { background: var(--panel2); padding: .1em .35em; border-radius: 5px; font-size: .9em; }
small, .hint { color: var(--muted); }
.center { text-align: center; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 18px; padding-bottom: 48px; min-height: 70vh; }

/* header */
.top { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.bar { display: flex; align-items: center; gap: 18px; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
nav.main { display: flex; gap: 16px; }
nav.main a { color: var(--text); font-weight: 500; }
nav.main a.modrush { color: var(--accent2); }
.search { flex: 1; }
.search input { width: 100%; max-width: 420px; }
.me { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.menu summary::-webkit-details-marker { display: none; }
.dropdown { position: absolute; right: 0; top: 44px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; min-width: 210px; box-shadow: 0 10px 30px #0006; }
.dropdown a, .dropdown button { display: block; width: 100%; text-align: left; padding: 8px 10px; color: var(--text); border-radius: 6px; background: none; border: 0; font: inherit; cursor: pointer; }
.dropdown a:hover, .dropdown button:hover { background: var(--panel2); text-decoration: none; }
.av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; background: var(--grad-diag); color: #fff; font-weight: 700; vertical-align: middle; }
.av.big { width: 96px; height: 96px; font-size: 2.2rem; }

/* controls */
input, select, textarea { background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; }
textarea { width: 100%; }
label { display: block; margin: 10px 0; font-weight: 500; }
label input:not([type=checkbox]):not([type=radio]), label select, label textarea { display: block; width: 100%; margin-top: 4px; font-weight: 400; }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.btn { display: inline-flex; align-items: center; gap: 6px; background: var(--grad); color: #fff; border: 0; padding: 9px 18px; border-radius: 999px; box-shadow: 0 6px 22px rgba(26, 124, 255, 0.3); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important; }
.btn:hover { box-shadow: 0 6px 28px rgba(62, 203, 255, 0.5); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost.on { border-color: var(--accent2); color: var(--accent2); }
.btn.small { padding: 6px 11px; font-size: .9rem; }
.btn.big { padding: 13px 22px; font-size: 1.05rem; }
.btn.danger { background: var(--danger); box-shadow: none; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
button.link { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0 4px; }
button.link.danger, a.danger { color: var(--danger); }
form.inline { display: inline; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.cols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }

/* cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 14px 0; }
.card.narrow { max-width: 620px; margin: 30px auto; }
.card.stat { display: flex; flex-direction: column; color: var(--text); }
.card.stat b { font-size: 1.5rem; }
.announce { background: color-mix(in srgb, var(--accent) 18%, var(--panel)); border: 1px solid var(--accent); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 14px; }
.announce.warn { background: color-mix(in srgb, var(--warn) 15%, var(--panel)); border-color: var(--warn); }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; padding: 2px 7px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); }
.badge.premium { background: var(--grad); color: #fff; border-color: transparent; }
.badge.supporter { background: var(--accent2); color: #062; border-color: var(--accent2); }
.badge.warn { background: var(--warn); color: #000; border-color: var(--warn); }
.badge.staff { background: var(--danger); color: #fff; border-color: var(--danger); }
.empty { color: var(--muted); padding: 30px 0; text-align: center; }
.ok { color: var(--accent2); }

/* hero */
.hero { display: flex; justify-content: space-between; gap: 30px; align-items: center; background: radial-gradient(700px 300px at 0% 0%, rgba(62, 203, 255, 0.18), transparent 65%), radial-gradient(600px 300px at 100% 100%, rgba(91, 124, 255, 0.18), transparent 65%), var(--panel); border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); padding: 34px; margin-bottom: 10px; }
.hero h1 { font-size: 2.3rem; line-height: 1.15; }
.hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero.small { display: block; text-align: center; padding: 26px; }
.hero .stats { display: flex; gap: 22px; }
.hero .stats div { display: flex; flex-direction: column; align-items: center; color: var(--muted); }
.hero .stats b { font-size: 1.8rem; color: var(--text); }
h2.sec { display: flex; justify-content: space-between; align-items: baseline; margin-top: 30px; }
h2.sec a { font-size: .9rem; font-weight: 500; }
.head-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.crumbs { color: var(--muted); font-size: .9rem; }

/* grids */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.mod-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); display: flex; flex-direction: column; transition: transform .12s, border-color .12s; }
.mod-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--glow); text-decoration: none; }
.thumb { aspect-ratio: 16/9; background: var(--panel2); position: relative; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.adult img { filter: blur(14px); }
.noimg { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 2.6rem; font-weight: 800; color: var(--muted); }
.thumb .cat { position: absolute; left: 8px; bottom: 8px; background: #000a; color: #fff; font-size: .75rem; padding: 2px 8px; border-radius: 99px; }
.mod-card .body { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.mod-card h3 { font-size: 1.02rem; margin: 0; }
.mod-card p { color: var(--muted); font-size: .9rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mod-card .meta, .file-row .meta { display: flex; gap: 12px; font-size: .82rem; color: var(--muted); margin-top: auto; }
.mod-card .by, .mod-card .game { font-size: .82rem; color: var(--muted); }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.game-tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); display: flex; flex-direction: column; }
.game-tile img, .game-tile .noimg { aspect-ratio: 3/4; object-fit: cover; height: auto; background: var(--panel2); }
.game-tile b { padding: 8px 10px 0; } .game-tile span:last-child { padding: 0 10px 10px; color: var(--muted); font-size: .82rem; }
.game-tile:hover { border-color: var(--accent); text-decoration: none; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0 18px; }
.pager { display: flex; gap: 14px; justify-content: center; align-items: center; margin: 24px 0; }

/* mod page */
.mod-head { display: grid; grid-template-columns: minmax(0, 460px) 1fr; gap: 24px; margin: 12px 0 18px; }
.mod-head .pic { border-radius: var(--radius); overflow: hidden; background: var(--panel2); aspect-ratio: 16/9; }
.mod-head .pic img { width: 100%; height: 100%; object-fit: cover; }
.mod-head .pic.adult img { filter: blur(16px); }
.mod-head .summary { color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 18px; margin: 12px 0; }
.facts span { display: flex; flex-direction: column; font-size: .8rem; color: var(--muted); }
.facts b { font-size: 1.05rem; color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: 10px 16px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--text); border-color: var(--accent); }
.tab { padding: 16px 0; }
.rich p { margin: .3em 0; } .rich h3, .rich h4, .rich h5 { margin: .8em 0 .3em; }
.spoiler { background: var(--text); color: var(--text); border-radius: 3px; cursor: pointer; } .spoiler:hover { color: var(--bg); }
.file-row { display: flex; justify-content: space-between; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 8px 0; }
.file-row h4 { margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.gallery img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
.gallery.small { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.comment { border-top: 1px solid var(--line); padding: 12px 0; }
.comment.reply { margin-left: 34px; border-top: 0; padding-top: 4px; }
.c-head { display: flex; align-items: center; gap: 8px; }
.c-head .av { width: 26px; height: 26px; font-size: .8rem; }
.status { font-size: .75rem; padding: 2px 8px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); }
.status.published, .status.clean, .status.fixed { color: var(--accent2); border-color: var(--accent2); }
.status.pending, .status.draft, .status.open { color: var(--warn); border-color: var(--warn); }
.status.infected, .status.removed, .status.hidden, .status.error { color: var(--danger); border-color: var(--danger); }
.reqs ul { margin: 4px 0; }

/* download page */
.dl-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.dl-options .opt { background: var(--panel2); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.plan .price { font-size: 2rem; font-weight: 800; } .plan .price small { font-size: .9rem; color: var(--muted); font-weight: 400; }
.plan.premium { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan.current { outline: 2px solid var(--accent2); }
.plan form { display: flex; gap: 8px; flex-wrap: wrap; }
.amounts { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.pill { display: inline-flex; gap: 6px; border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; margin: 0; }

/* profile */
.profile { display: flex; gap: 20px; align-items: center; }

/* upload */
.drop { display: block; border: 2px dashed var(--line); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); cursor: pointer; }
.drop.small { padding: 6px; font-size: .8rem; }
.drop.over { border-color: var(--accent); }
.progress { position: relative; height: 22px; background: var(--panel2); border-radius: 99px; overflow: hidden; margin: 10px 0; }
.progress div { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .2s; }
.progress span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 600; }
.key { width: 100%; font-family: ui-monospace, monospace; }
.danger-zone { border-color: var(--danger); }

/* tables */
table.list { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.list th, table.list td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.list th { background: var(--panel2); font-size: .82rem; color: var(--muted); }
tr.dim { opacity: .55; }
img.mini { width: 34px; height: 34px; object-fit: cover; border-radius: 5px; vertical-align: middle; }
ul.notes { list-style: none; padding: 0; } ul.notes li { padding: 8px 0; border-bottom: 1px solid var(--line); } ul.notes li.new a { font-weight: 700; }

/* admin */
.admin { display: grid; grid-template-columns: 190px 1fr; gap: 20px; }
.admin aside { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; height: fit-content; position: sticky; top: 76px; }
.admin aside a { display: block; padding: 7px 10px; border-radius: 6px; color: var(--text); }
.admin aside a.on { background: var(--grad); color: #fff; }
.admin-main { min-width: 0; overflow-x: auto; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tiles .card { margin: 0; } .tiles a.card:hover { border-color: var(--accent); text-decoration: none; }
.acts input { padding: 3px 6px; font-size: .82rem; max-width: 150px; }
.acts select { padding: 3px 6px; font-size: .82rem; }

footer.foot { border-top: 1px solid var(--line); padding: 22px 0; color: var(--muted); font-size: .9rem; }
footer.foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 860px) {
  nav.main { display: none; }
  .hero { flex-direction: column; padding: 22px; } .hero h1 { font-size: 1.7rem; }
  .mod-head { grid-template-columns: 1fr; }
  .dl-options { grid-template-columns: 1fr; }
  .admin { grid-template-columns: 1fr; } .admin aside { position: static; display: flex; flex-wrap: wrap; }
  .search input { max-width: none; }
  table.list { display: block; overflow-x: auto; }
}
@media (max-width: 560px) { .bar { gap: 8px; } .logo span { display: none; } }

/* ===== 2026-10-17 revamp: Peepsule night, motion and glass ===== */
html { background: var(--bg); scroll-behavior: smooth; }
body { background: transparent; overflow-x: hidden; }
svg { max-width: 100%; }
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
body::before { content: ""; position: fixed; inset: -20%; z-index: -2; pointer-events: none;
  background: radial-gradient(40% 35% at 15% 10%, rgba(62, 203, 255, .16), transparent 70%), radial-gradient(35% 30% at 90% 30%, rgba(91, 124, 255, .18), transparent 70%),
    radial-gradient(45% 40% at 50% 100%, rgba(26, 124, 255, .14), transparent 70%), var(--bg);
  animation: aurora 26s ease-in-out infinite alternate; }
@keyframes aurora { 50% { transform: translate(3%, -2%) rotate(3deg) scale(1.05); } 100% { transform: translate(-3%, 2%) rotate(-2deg); } }
::selection { background: rgba(62, 203, 255, .35); }

/* header */
.top { background: rgba(2, 4, 12, .6); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--grad); background-size: 200% 100%; animation: flow 6s linear infinite; opacity: .7; }
@keyframes flow { to { background-position: 200% 0; } }
.logo img { filter: drop-shadow(0 0 8px rgba(62, 203, 255, .6)); transition: transform .4s; }
.logo:hover img { transform: rotate(-8deg) scale(1.08); }
nav.main a { position: relative; padding: 4px 0; text-decoration: none !important; }
nav.main a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
nav.main a:hover::after { transform: scaleX(1); }
.search input { border-radius: 999px; background: rgba(11, 24, 48, .7); transition: box-shadow .25s, border-color .25s; }
.search input:focus, .hero2-search input:focus, input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(62, 203, 255, .18), var(--glow); }

/* buttons: lift, glow and a light sweep */
.btn { position: relative; overflow: hidden; transition: transform .2s, box-shadow .25s; background-size: 160% 100%; }
.btn:hover { transform: translateY(-2px); background-position: 100% 0; }
.btn:active { transform: translateY(0) scale(.98); }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); transition: left .6s; }
.btn:hover::after, .btn.shimmer::after { left: 130%; }
.btn.shimmer::after { animation: sweep 3.6s ease-in-out infinite; transition: none; }
@keyframes sweep { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.btn.ghost { backdrop-filter: blur(6px); } .btn.ghost:hover { border-color: var(--accent); box-shadow: var(--glow); }

/* text effects */
.grad, .shine { background: linear-gradient(90deg, #3ecbff, #1a7cff, #5b7cff, #9ad8ff, #3ecbff); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: flow 8s linear infinite; }
.rotator { display: inline-block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; transition: opacity .35s, transform .35s, filter .35s; }
.rotator.out { opacity: 0; transform: translateY(-.35em); filter: blur(6px); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(62, 203, 255, .08); color: var(--accent); font-size: .82rem; font-weight: 600; letter-spacing: .02em; backdrop-filter: blur(6px); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ecbff; box-shadow: 0 0 0 0 rgba(62, 203, 255, .7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(62, 203, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 203, 255, 0); } }

/* scroll reveal (only when the script runs; without it everything simply shows) */
.js .reveal { opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--delay, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* tilt + spotlight (the script sets --rx --ry --mx --my) */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out, box-shadow .3s, border-color .3s; will-change: transform; }
.js .reveal.in.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.spot { position: relative; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(62, 203, 255, .18), transparent 60%); }
.spot:hover::before { opacity: 1; }

/* cards */
.card { background: var(--panel); backdrop-filter: blur(10px); border-radius: 18px; }
.mod-card, .game-tile { border-radius: 18px; background: rgba(8, 16, 32, .72); backdrop-filter: blur(8px); }
.mod-card:hover, .game-tile:hover { border-color: rgba(62, 203, 255, .7); box-shadow: var(--glow), 0 20px 40px rgba(0, 0, 0, .4); text-decoration: none; }
.mod-card .thumb img, .game-tile img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.mod-card:hover .thumb img, .game-tile:hover img { transform: scale(1.07); }
.game-tile { position: relative; }
.game-tile b { padding: 10px 12px 0; } .game-tile span:last-child { padding: 0 12px 12px; }

/* generated posters for games and mods without a picture */
.poster { position: relative; display: flex; align-items: flex-end; width: 100%; height: 100%; aspect-ratio: inherit; overflow: hidden; padding: 14px;
  background: radial-gradient(120% 90% at 0% 0%, hsl(var(--h) 95% 62% / .95), transparent 60%), radial-gradient(90% 80% at 100% 100%, hsl(calc(var(--h) + 40) 90% 55% / .9), transparent 65%), hsl(var(--h) 70% 14%); }
.poster i { position: absolute; inset: -40%; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 22px); animation: drift 18s linear infinite; }
.poster::after { content: ""; position: absolute; width: 70%; aspect-ratio: 1; right: -18%; top: -18%; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); box-shadow: 0 0 0 18px rgba(255, 255, 255, .05), 0 0 0 40px rgba(255, 255, 255, .03); }
.poster b { position: relative; z-index: 1; color: #fff; font-size: 1.15rem; line-height: 1.1; font-weight: 800; text-shadow: 0 2px 14px rgba(0, 0, 0, .45); letter-spacing: -.01em; }
@keyframes drift { to { transform: translateX(22%); } }
.game-tile .poster { aspect-ratio: 3/4; }
.thumb .poster { padding: 12px; } .thumb .poster b { font-size: 1rem; }

/* homepage */
.hero2 { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; padding: 64px 48px; margin: 10px 0 18px; border-radius: 32px;
  background: rgba(6, 12, 28, .7); border: 1px solid transparent; overflow: hidden; isolation: isolate; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.hero2-ring { position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1;
  background: conic-gradient(from var(--a, 0deg), transparent 0 60%, #3ecbff 75%, #5b7cff 85%, transparent 95%); animation: spin 6s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --a: 360deg; } }
.hero2-glow { position: absolute; inset: -30%; z-index: -2; pointer-events: none;
  background: radial-gradient(closest-side at 22% 30%, rgba(62, 203, 255, .3), transparent), radial-gradient(closest-side at 82% 72%, rgba(91, 124, 255, .32), transparent);
  animation: glow 12s ease-in-out infinite alternate; }
@keyframes glow { to { transform: translate(6%, -5%) scale(1.1); } }
.hero2 h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -.03em; margin: 18px 0 16px; font-weight: 800; }
.hero2 p { font-size: 1.12rem; color: var(--muted); max-width: 560px; }
.hero2-search { display: flex; gap: 8px; margin: 24px 0 16px; max-width: 560px; }
.hero2-search input { flex: 1; padding: 14px 20px; border-radius: 999px; font-size: 1rem; background: rgba(11, 24, 48, .8); }
.hero2-stats { display: flex; gap: 34px; margin-top: 26px; } .hero2-stats div { display: flex; flex-direction: column; color: var(--muted); } .hero2-stats b { font-size: 2rem; color: var(--text); }
.hero2-art { position: relative; height: 420px; }
.float-tile { position: absolute; width: 48%; aspect-ratio: 3/4; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .15); box-shadow: var(--glow), 0 30px 60px rgba(0, 0, 0, .5); animation: bob 7s ease-in-out infinite; }
.float-tile img, .float-tile .poster { width: 100%; height: 100%; object-fit: cover; }
.float-tile .poster b { font-size: 1.4rem; }
.float-tile.t0 { left: 0; top: 12%; --r: -8deg; } .float-tile.t1 { left: 26%; top: 0; z-index: 2; animation-delay: -2.3s; --r: 2deg; } .float-tile.t2 { right: 0; top: 16%; animation-delay: -4.6s; --r: 9deg; }
@keyframes bob { 0%, 100% { translate: 0 0; rotate: var(--r); } 50% { translate: 0 -16px; rotate: calc(var(--r) * .6); } }

.ribbon { overflow: hidden; margin: 0 -16px 26px; padding: 6px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ribbon-track { display: flex; gap: 12px; width: max-content; animation: marquee 40s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(8, 16, 32, .7); color: var(--text); white-space: nowrap; font-weight: 600; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.ribbon a:hover { border-color: var(--accent); box-shadow: var(--glow); }
.ribbon a i { width: 10px; height: 10px; border-radius: 50%; background: hsl(var(--h) 90% 60%); box-shadow: 0 0 10px hsl(var(--h) 90% 60%); }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }

.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 34px; }
.why-card { background: rgba(8, 16, 32, .72); border: 1px solid var(--line); border-radius: 22px; padding: 22px; backdrop-filter: blur(8px); transition: border-color .3s, box-shadow .3s, translate .3s; }
.why-card:hover { border-color: rgba(62, 203, 255, .6); box-shadow: var(--glow); translate: 0 -4px; }
.why-card i { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: linear-gradient(135deg, rgba(62, 203, 255, .22), rgba(91, 124, 255, .18)); box-shadow: inset 0 0 0 1px rgba(62, 203, 255, .35); }
.why-card i svg { width: 24px; height: 24px; stroke: #6fdcff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.why-card:hover i svg { animation: wiggle .6s; }
@keyframes wiggle { 30% { transform: rotate(-12deg) scale(1.15); } 60% { transform: rotate(8deg); } }
.why-card h3 { margin: 14px 0 6px; } .why-card p { color: var(--muted); margin: 0; font-size: .95rem; }

.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin: 20px 0 40px; }
.showcase h2, .creators h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.1; margin: 14px 0; letter-spacing: -.02em; }
.showcase p, .creators p { color: var(--muted); font-size: 1.05rem; }
.mr-window { border-radius: 18px; overflow: hidden; border: 1px solid rgba(62, 203, 255, .3); background: rgba(5, 10, 24, .92); box-shadow: var(--glow), 0 30px 70px rgba(0, 0, 0, .55); }
.mr-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(62, 203, 255, .18); font-size: .85rem; color: var(--muted); }
.mr-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .mr-bar i:nth-child(2) { background: #febc2e; } .mr-bar i:nth-child(3) { background: #28c840; }
.mr-bar span { margin-left: 8px; }
.mr-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .04); font-size: .92rem; }
.mr-row em { font-style: normal; font-size: .75rem; font-weight: 700; color: #6fdcff; }
.mr-row em::after { content: "Downloading"; animation: state 6s steps(1) infinite; animation-delay: var(--d); }
@keyframes state { 0% { content: "Queued"; color: #8eafd0; } 15% { content: "Downloading"; color: #6fdcff; } 55% { content: "Installing"; color: #a9b8ff; } 80% { content: "Done ✓"; color: #4be3a4; } }
.mr-prog { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.mr-prog div { height: 100%; width: 0; border-radius: 6px; background: var(--grad); box-shadow: 0 0 10px rgba(62, 203, 255, .6); animation: fill 6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes fill { 0%, 12% { width: 0; } 55% { width: 70%; } 80%, 100% { width: 100%; } }

.creators { display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; align-items: center; margin: 40px 0; padding: 42px; border-radius: 32px; border: 1px solid var(--line);
  background: radial-gradient(600px 300px at 100% 0%, rgba(91, 124, 255, .22), transparent 70%), radial-gradient(500px 260px at 0% 100%, rgba(62, 203, 255, .14), transparent 70%), rgba(6, 12, 28, .75); }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: flex; flex-direction: column; padding: 15px 16px 15px 64px; position: relative; border-radius: 18px; background: rgba(11, 24, 48, .8); border: 1px solid var(--line); color: var(--muted); transition: border-color .3s, translate .3s; }
.steps li:hover { border-color: var(--accent); translate: 6px 0; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; box-shadow: var(--glow); }
.steps b { color: var(--text); }

.cta-band { position: relative; overflow: hidden; text-align: center; padding: 60px 20px; margin: 30px 0 10px; border-radius: 32px; background: linear-gradient(120deg, #3ecbff, #1a7cff, #5b7cff, #3ecbff); background-size: 300% 100%; animation: flow 12s linear infinite; color: #fff; box-shadow: 0 24px 70px rgba(26, 124, 255, .35); }
.cta-orbs i { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .14); animation: bob 8s ease-in-out infinite; --r: 0deg; }
.cta-orbs i:nth-child(1) { width: 180px; height: 180px; left: -40px; top: -60px; } .cta-orbs i:nth-child(2) { width: 120px; height: 120px; right: 8%; bottom: -40px; animation-delay: -3s; } .cta-orbs i:nth-child(3) { width: 60px; height: 60px; right: 30%; top: 20px; animation-delay: -5s; }
.cta-band h2 { position: relative; font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 8px; letter-spacing: -.02em; } .cta-band p { position: relative; opacity: .92; margin: 0 0 22px; font-size: 1.08rem; }
.cta-band .btn { background: #fff; color: #0a2a66; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); } .cta-band .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.center-row { justify-content: center; position: relative; }
h2.sec { font-size: 1.5rem; letter-spacing: -.01em; }
.foot { position: relative; border-top: 1px solid var(--line); background: rgba(2, 4, 12, .6); backdrop-filter: blur(10px); }

@media (max-width: 900px) {
  .hero2 { grid-template-columns: 1fr; padding: 40px 22px; border-radius: 26px; } .hero2-art { height: 260px; max-width: 420px; width: 100%; margin: 0 auto; }
  .why { grid-template-columns: 1fr 1fr; } .showcase { grid-template-columns: 1fr; } .creators { grid-template-columns: 1fr; padding: 26px; }
}
@media (max-width: 560px) {
  .hero2 h1 { font-size: 2.5rem; } .hero2-search { flex-direction: column; } .hero2-art { height: 210px; }
  .why { grid-template-columns: 1fr; gap: 10px; } .why-card { display: grid; grid-template-columns: 50px 1fr; gap: 2px 14px; padding: 16px; } .why-card i { grid-row: span 2; } .why-card h3 { margin: 2px 0 0; font-size: 1.05rem; } .why-card p { font-size: .9rem; }
  .games { grid-template-columns: repeat(2, 1fr); } .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (max-width: 860px) {
  .bar { flex-wrap: wrap; height: auto; padding: 10px 0; row-gap: 10px; }
  nav.main { display: flex !important; order: 5; width: 100%; overflow-x: auto; gap: 8px; scrollbar-width: none; }
  nav.main::-webkit-scrollbar { display: none; }
  nav.main a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; white-space: nowrap; background: rgba(8, 16, 32, .6); }
  nav.main a::after { display: none; }
}
/* "Continue with Peepsule" */
.ps-btn { width: 100%; justify-content: center; gap: 10px; background: linear-gradient(90deg, #0b1830, #12305e); border: 1px solid rgba(62, 203, 255, .45); box-shadow: 0 0 22px rgba(62, 203, 255, .18); }
.ps-btn:hover { border-color: #3ecbff; box-shadow: var(--glow); }
.ps-btn img { filter: drop-shadow(0 0 6px rgba(62, 203, 255, .8)); animation: bob 5s ease-in-out infinite; --r: 0deg; }
.or { display: flex; align-items: center; gap: 12px; margin: 16px 0 6px; color: var(--muted); font-size: .85rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.status.review { color: var(--warn); border-color: var(--warn); }
/* the installable app */
.install-card { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50; display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 12px 14px; border-radius: 20px; background: rgba(8, 16, 32, .92); border: 1px solid rgba(62, 203, 255, .45); box-shadow: var(--glow), 0 20px 50px rgba(0, 0, 0, .6);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transform: translateY(140%); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.install-card.show { transform: none; }
.install-card img { border-radius: 12px; flex: none; }
.install-card div { flex: 1; display: flex; flex-direction: column; font-size: .88rem; color: var(--muted); } .install-card div b { color: var(--text); font-size: .98rem; }
.install-card svg { vertical-align: -2px; }
.install-card .x { background: none; border: 0; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 4px 6px; }
.install-app { font-weight: 600; }
/* running as the installed app: room for the notch and the home bar */
.app .top { padding-top: env(safe-area-inset-top); }
.app .foot { padding-bottom: env(safe-area-inset-bottom); }

/* dashboard: generate an API key */
.keygen { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin: 14px 0 6px; }
.keygen label { flex: 1; min-width: 200px; margin: 0; }
