/* Acyuta.GG - games showcase. Tokens follow stitch-screens/DESIGN.md ("Acyuta.GG Showcase"). */
:root {
  --bg: #0E0F13; --s1: #181A21; --s2: #222530; --line: #2A2D39;
  --orange: #FF8A1F; --green: #25D366; --green-hi: #2EE06E; --amber: #F59E0B;
  --text: #F2F2F2; --muted: #9AA0AA;
  --r: 12px; --pad: 16px; --max: 1240px;
  --display: 'Unbounded', system-ui, sans-serif; --body: 'Plus Jakarta Sans', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.5 var(--body); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; }
h1, h2 { font-family: var(--display); letter-spacing: -0.02em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
main { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* header */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px;
  padding: 10px var(--pad); background: rgba(14,15,19,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.logo img { height: 36px; width: auto; }
.lang { margin-left: auto; display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang a { text-decoration: none; font: 700 12px/1 var(--body); padding: 7px 10px; border-radius: 999px; color: var(--muted); }
.lang a.on { background: var(--s2); color: var(--orange); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--r);
  padding: 11px 16px; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer;
  min-height: 44px; transition: background .15s, transform .15s; }
.btn.wa { background: var(--green); color: #fff; }
.btn.wa:hover { background: var(--green-hi); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn.ghost:hover { background: var(--s1); border-color: var(--muted); }
.btn.big { width: 100%; padding: 14px 18px; font-size: 16px; }
.wa-ic { width: 22px; height: 22px; flex: none; }
.top-wa { padding: 8px 12px; min-height: 40px; }
.top-wa span { display: none; }

/* hero */
.hero { padding: 36px 0 28px; max-width: 640px; margin: 0 auto; text-align: left; }
.hero h1 { font-size: 32px; line-height: 1.12; font-weight: 800; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .sub { color: var(--muted); margin: 10px 0 20px; }
.search { position: relative; display: flex; align-items: center; background: var(--s1); border: 1px solid var(--line);
  border-radius: var(--r); height: 54px; padding: 0 12px; margin-bottom: 12px; }
.search:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,138,31,.18); }
.search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font: 500 16px var(--body);
  padding: 0 10px; height: 100%; outline: none; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; }
.clear { background: var(--s2); border: 0; width: 30px; height: 30px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; }

/* sections */
section { padding: 22px 0; }
.sec-h { margin-bottom: 14px; }
.sec-h h2 { font-size: 21px; }
.sec-h p { color: var(--muted); margin: 4px 0 0; font-size: 14px; }

/* cards */
.card { display: flex; flex-direction: column; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; text-decoration: none; transition: border-color .15s, transform .15s; }
.card:hover { border-color: #3a3e4d; transform: translateY(-2px); }
.cv { position: relative; aspect-ratio: 616 / 353; background: var(--s2); }
.cv img { width: 100%; height: 100%; object-fit: cover; }
.nocover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 10px;
  background: radial-gradient(120% 120% at 100% 100%, rgba(255,138,31,.35), transparent 55%), linear-gradient(135deg, #20232d, #12131a); }
.nocover span { font: 800 15px/1.2 var(--display); text-align: center; text-wrap: balance; }
.rank { position: absolute; top: 8px; left: 8px; background: var(--orange); color: #1a0d00; font: 800 10.5px/1 var(--body);
  letter-spacing: .04em; padding: 5px 7px; border-radius: 6px; }
.ltag { position: absolute; bottom: 8px; right: 8px; background: rgba(14,15,19,.82); border: 1px solid var(--line);
  color: var(--text); font: 700 10.5px/1 var(--body); letter-spacing: .03em; padding: 5px 7px; border-radius: 999px; }
.ltag.inline { position: static; display: inline-block; }
.meta { display: flex; flex-direction: column; flex: 1; padding: 10px 11px 12px; }
.meta h3 { font: 700 14.5px/1.3 var(--body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat { color: var(--muted); font-size: 12.5px; margin: 3px 0 8px; }
.acc { margin: auto 0 0; display: flex; gap: 7px; align-items: flex-start; font-size: 13px; line-height: 1.35; color: var(--text); }
.acc i, .need i, .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; background: var(--muted); }
.acc.free i, .need.free i, .dot.free { background: var(--green); box-shadow: 0 0 6px rgba(37,211,102,.6); }
.acc.paid { color: var(--amber); }
.acc.paid i, .need.paid i, .dot.paid { background: var(--amber); }

.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); padding-bottom: 6px; margin: 0 calc(-1 * var(--pad)); padding-left: var(--pad);
  padding-right: var(--pad); scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.shelf .card { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

/* chips + tools */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad) 8px;
  scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; background: var(--s1); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
  font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--orange); border-color: var(--orange); color: #1a0d00; }
.chip.static { cursor: default; font-size: 12.5px; padding: 6px 12px; }
.tools { display: flex; align-items: center; gap: 10px; margin: 8px 0 14px; }
.tool { display: inline-flex; align-items: center; gap: 6px; background: var(--s1); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 12px; font-weight: 600; font-size: 13.5px; cursor: pointer; min-height: 40px; }
.tool svg { width: 18px; height: 18px; }
.tool b { background: var(--orange); color: #1a0d00; border-radius: 999px; font-size: 11px; padding: 1px 6px; }
.count { color: var(--muted); font-size: 13px; }
.sort { margin-left: auto; display: flex; background: var(--s1); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.sort button { background: none; border: 0; padding: 7px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.sort button.on { background: var(--s2); color: var(--orange); }
.filters { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 14px; }
.filters fieldset { border: 0; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.filters legend { font: 700 12px var(--body); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 12px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.opt span .dot { margin-top: 0; }
.opt input:checked + span { border-color: var(--orange); background: rgba(255,138,31,.12); color: var(--orange); }
.opt input:focus-visible + span { outline: 2px solid var(--orange); }
.frow { display: flex; justify-content: space-between; align-items: center; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; }

.empty { text-align: center; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 18px; }
.empty > svg { width: 64px; height: 64px; color: var(--orange); margin: 0 auto 8px; display: block; }
.empty h3 { font: 800 17px/1.3 var(--display); margin-bottom: 6px; }
.empty p { color: var(--muted); margin: 0 0 16px; }
.showall { display: flex; margin: 16px auto 0; }
.notfound { margin-top: 22px; background: linear-gradient(135deg, var(--s1), #1d1a17); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.notfound h3 { font: 800 17px/1.3 var(--display); }
.notfound p { color: var(--muted); margin: 6px 0 0; }

.more h2 { font-size: 20px; }
.more > p { color: var(--muted); margin: 4px 0 14px; }
.topics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.topic { display: flex; justify-content: space-between; align-items: center; gap: 6px; background: var(--s1);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px; text-decoration: none; font-weight: 600; font-size: 14px; min-height: 48px; }
.topic span { color: var(--green); }
.topic:hover { border-color: var(--green); }
.about { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.about h2 { font-size: 16px; }
.about p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 6px 0 0; max-width: 760px; }
.intro { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: -2px 0 12px; }
.intro b { color: var(--text); font-weight: 600; }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 24px; padding: 26px var(--pad) 96px; text-align: center; color: var(--muted); font-size: 14px; }
.foot-logo { height: 34px; width: auto; margin: 0 auto 14px; opacity: .9; }
.channels { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 12px; }
.channels a { color: var(--text); text-decoration: none; font-weight: 600; }
.addr a { color: var(--orange); font-weight: 600; text-decoration: none; }
.small { font-size: 12.5px; margin: 6px 0; }

.fab { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40; width: 58px; height: 58px;
  border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(37,211,102,.35); }
.fab .wa-ic { width: 30px; height: 30px; }

/* sheet + game page */
.sheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 560px; max-height: 92vh; background: var(--s2);
  color: var(--text); border-radius: 18px 18px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.5); }
.sheet::backdrop { background: rgba(0,0,0,.62); }
.sheet[open] { animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.sheet-in { padding: 10px 16px calc(16px + env(safe-area-inset-bottom)); overflow-y: auto; max-height: 92vh; }
.sheet-top { display: flex; justify-content: center; position: sticky; top: -10px; z-index: 2; padding: 8px 0 12px; margin: -10px -16px 0; background: var(--s2); }
.grab { width: 44px; height: 5px; border-radius: 3px; background: #3a3e4d; }
.x { position: absolute; right: 12px; top: 4px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--s1); font-size: 20px; cursor: pointer; }
.dcover { position: relative; aspect-ratio: 616 / 353; border-radius: var(--r); overflow: hidden; background: var(--s1); margin-bottom: 14px; }
.dcover img { width: 100%; height: 100%; object-fit: cover; }
.rankline { display: inline-block; background: rgba(255,138,31,.12); border: 1px solid rgba(255,138,31,.4); color: var(--orange);
  border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; margin: 0 0 10px; }
.detail h1, .sheet h2 { font: 800 22px/1.2 var(--display); letter-spacing: -0.02em; margin-bottom: 10px; }
.dtags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.genre { color: var(--muted); font-size: 13px; }
.need { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 12px; }
.need h4 { font: 700 11.5px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.need p { margin: 0; display: flex; gap: 9px; font-size: 15px; font-weight: 500; }
.need.paid p { color: var(--amber); }
.dmeta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; font-size: 13.5px; margin-bottom: 16px; }
.kv { margin: 0; color: var(--text); }
.kv span { color: var(--muted); margin-right: 4px; }
.site { color: var(--orange); text-decoration: none; font-weight: 600; }
.dbtns { display: grid; gap: 10px; }
.gp { padding-top: 14px; max-width: 760px; }
.backlink { display: inline-block; color: var(--muted); text-decoration: none; margin: 4px 0 14px; font-weight: 600; }
.detail { background: var(--s2); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.same h2 { font-size: 19px; margin-bottom: 12px; }

@media (min-width: 640px) {
  .top-wa span { display: inline; }
  .hero { text-align: center; padding: 56px 0 34px; }
  .hero h1 { font-size: 46px; }
  .btn.big { width: auto; }
  .hero .btn.big { min-width: 280px; }
  .shelf { grid-auto-columns: calc((100% - 36px) / 3.3); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .topics { display: flex; flex-wrap: wrap; justify-content: center; }
  .more { text-align: center; }
  .about { text-align: center; }
  .about p { margin: 6px auto 0; }
  .notfound { flex-direction: row; align-items: center; justify-content: space-between; padding: 24px 28px; }
  .dbtns { grid-template-columns: 1fr 1fr; }
  .dbtns .btn.big { width: 100%; }
  .sheet { margin: auto; border-radius: 18px; }
}
@media (min-width: 1024px) {
  .logo img { height: 40px; }
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .shelf { grid-auto-columns: calc((100% - 48px) / 5); overflow-x: auto; }
  .chips { -webkit-mask-image: none; mask-image: none; flex-wrap: wrap; }
  .fab { display: none; }
  .foot { padding-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
