:root {
  color-scheme: dark;
  --background: #101015;
  --surface: #18181f;
  --surface-hover: #1d1c26;
  --line: #2a2935;
  --text: #f5f4fb;
  --muted: #aaa8ba;
  --quiet: #9390a5;
  --accent: #7c60f7;
  --accent-light: #baabff;
  --radius: 14px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--text);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 290px; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
svg { display: block; }
.symbols { position: absolute; width: 0; height: 0; pointer-events: none; }
.icon {
  width: 1.2rem;
  height: 1.2rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:focus-visible { outline: 2px solid #c4b7ff; outline-offset: 4px; }
.skip-link { position: absolute; top: 12px; left: 12px; z-index: 5; transform: translateY(-150%); padding: 10px 16px; background: var(--surface); }
.skip-link:focus { transform: none; }
.shell { width: min(100% - 64px, 1152px); margin-inline: auto; }
.topbar { border-bottom: 1px solid #25242e; background: #121218; }
.topbar-inner, .main-nav, .brand, .footer-inner, .footer-brand { display: flex; align-items: center; }
.topbar-inner { min-height: 72px; justify-content: space-between; gap: 24px; }
.brand { gap: 11px; color: var(--text); font-size: .94rem; font-weight: 850; text-decoration: none; letter-spacing: .065em; white-space: nowrap; }
.brand b { color: #aa96ff; font-weight: inherit; }
.brand-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #937afc, #6f4df0);
  color: white;
  box-shadow: inset 0 0 0 1px #d4bfff4d, 0 4px 17px #6242e638;
}
.brand-icon .icon { width: 22px; height: 22px; }
.main-nav { gap: 26px; }
.main-nav a { font-size: .91rem; text-decoration: none; color: #dfdbea; font-weight: 650; }
.main-nav a:hover { color: var(--accent-light); }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.25;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
  transition: background-color 130ms ease, border-color 130ms ease;
}
.button-outline { background: #201b31; border-color: #44365f; color: #dbceff; }
.button-outline:hover { background: #2e2446; border-color: #6c58a2; }
.button-primary { background: #7858ef; border-color: #a18afd55; color: white; }
.button-primary:hover { background: #6846e8; }
.button-quiet { background: #141227c9; border-color: #433b60; color: #eeeafd; }
.button-quiet:hover { background: #272145; border-color: #776aa5; }
.text-button { padding: 6px 0; border: 0; background: transparent; color: var(--muted); font-size: .9rem; }
.text-button:hover { color: var(--text); }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 350px;
  margin-top: 33px;
  border: 1px solid #373151;
  border-radius: 18px;
  background: #101027;
}
.hero-art { position: absolute; inset: 0 0 0 auto; width: 85%; height: 100%; object-fit: cover; object-position: 60% 52%; z-index: -2; }
.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, #151123 2%, #151229 23%, #13112ce3 34%, #10102b58 57%, #0d0d2a08 84%), linear-gradient(0deg, #0f0d2580, transparent 28%);
}
.hero-content { width: min(100%, 565px); padding: 44px 0 46px 49px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 13px; color: #c5b3ff; font-size: .79rem; font-weight: 750; letter-spacing: .115em; text-transform: uppercase; }
.eyebrow .icon { width: 16px; height: 16px; }
.hero h1 { margin: 0; font-size: clamp(3rem, 6.1vw, 5rem); line-height: .99; font-weight: 850; letter-spacing: -.075em; text-wrap: balance; }
.hero-description { max-width: 390px; margin: 19px 0 25px; color: #d5d1e7; font-size: 1.04rem; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .button { min-height: 47px; padding-inline: 18px; }
.library { margin-top: 41px; scroll-margin-top: 22px; }
.library-heading { display: flex; justify-content: space-between; gap: 22px; align-items: end; }
.library h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.18rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.library-heading p { color: var(--muted); margin: 9px 0 0; font-size: 1rem; }
.search { min-width: 245px; display: flex; align-items: center; gap: 9px; min-height: 43px; border: 1px solid var(--line); background: #17171e; border-radius: 9px; color: #a29eb8; padding-inline: 12px; }
.search:focus-within { border-color: #9981fb; box-shadow: 0 0 0 2px #9981fb38; }
.search .icon { width: 18px; height: 18px; }
.search input { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: .91rem; }
.search input::placeholder { color: #a8a4b9; }
.library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block: 22px 19px; }
.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter { border: 1px solid var(--line); background: #17171e; color: #c4c1d2; border-radius: 8px; padding: 7px 12px; min-height: 36px; font-size: .88rem; font-weight: 650; }
.filter:hover { background: #262332; color: var(--text); }
.filter[aria-pressed="true"] { background: #2e2349; color: #e2d7ff; border-color: #574282; }
.results-count { color: var(--quiet); font-size: .87rem; white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; }
.card:hover, .card:focus-within { border-color: #65518b; }
.card-cover { position: relative; overflow: hidden; display: block; width: 100%; aspect-ratio: 2.04; border: 0; padding: 0; background: #211d36; color: white; }
.card-cover:focus-visible { outline-offset: -4px; }
.card-cover img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cover-play {
  position: absolute;
  display: grid;
  place-items: center;
  bottom: 11px;
  right: 11px;
  width: 35px;
  height: 35px;
  border: 1px solid #ede5ff55;
  border-radius: 50%;
  background: #161023c9;
  transition: background-color 130ms ease;
}
.cover-play .icon { margin-left: 2px; width: 15px; height: 15px; }
.card-cover:hover .cover-play, .card-cover:focus-visible .cover-play { background: #7858ef; }
.card-content { flex: 1; padding: 15px 16px 14px; display: flex; flex-direction: column; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.card-labels { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.genre { padding: 3px 8px; border-radius: 5px; background: #2d2448; color: #d0baff; font-size: .78rem; font-weight: 700; }
.locked-pill { display: inline-flex; align-items: center; gap: 3px; padding: 3px 6px; border-radius: 5px; color: #ffd8a1; background: #3c2a23; font-size: .78rem; font-weight: 700; }
.locked-pill .icon { width: 13px; height: 13px; }
.genre[data-genre="arcade"] { background: #242e55; color: #a9befd; }
.genre[data-genre="action"], .genre[data-genre="acción"] { background: #3c213d; color: #f4a5dd; }
.players { display: flex; gap: 5px; align-items: center; color: var(--muted); font-size: .82rem; text-align: right; }
.players .icon { width: 14px; height: 14px; }
.card h3 { margin: 0; font-size: 1.29rem; line-height: 1.19; letter-spacing: -.03em; }
.card-title { padding: 0; border: 0; background: transparent; color: var(--text); font-size: inherit; font-weight: 800; text-align: left; }
.card-title:hover { color: #cfbaff; }
.card-description { margin: 8px 0 12px; color: #b9b6c8; font-size: .94rem; line-height: 1.48; overflow-wrap: anywhere; }
.card-author { margin: auto 0 0; color: var(--quiet); font-size: .82rem; overflow-wrap: anywhere; }
.empty { margin: 0; border: 1px dashed var(--line); padding: 25px 18px; color: var(--muted); border-radius: var(--radius); text-align: center; }
.library-heading + .empty, .grid:empty + .empty { margin-top: 20px; }
.callout { display: flex; align-items: center; gap: 16px; padding: 19px 22px; margin-block: 29px 35px; border: 1px solid #322944; border-radius: var(--radius); background: linear-gradient(105deg, #211a33, #1a1823 70%); }
.callout-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 9px; color: #c5b0ff; background: #36274f; }
.callout-icon .icon { width: 22px; height: 22px; }
.callout h2 { margin: 0; font-size: 1rem; }
.callout p { margin: 5px 0 0; color: var(--muted); font-size: .94rem; }
.callout .button { margin-left: auto; }
.footer { border-top: 1px solid #24232c; }
.footer-inner { min-height: 66px; justify-content: space-between; gap: 12px; }
.footer-brand { gap: 8px; text-decoration: none; font-size: .9rem; color: var(--muted); font-weight: 650; }
.footer-brand .icon { width: 17px; height: 17px; color: #baa7ff; }
.dialog { max-width: min(100% - 28px, 100%); max-height: calc(100% - 28px); padding: 0; color: var(--text); background: var(--surface); border: 1px solid #49405d; border-radius: var(--radius); }
.dialog::backdrop { background: #08070cda; backdrop-filter: blur(6px); }
.dialog[open] { overscroll-behavior: contain; }
body:has(.dialog[open]) { overflow: hidden; }
.dialog-content { padding: 23px; }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dialog-heading h2 { margin: 0; font-size: 1.8rem; line-height: 1.1; letter-spacing: -.04em; overflow-wrap: anywhere; }
.dialog-heading .eyebrow { margin-bottom: 8px; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #393442; border-radius: 8px; padding: 0; color: #e4d9f6; background: #231f2c; }
.icon-button:hover { background: #362a49; border-color: #70538c; }
.guide { width: 620px; }
.guide p:not(.eyebrow), .guide li, .player-info p { color: #c1bbce; line-height: 1.55; }
.steps { padding-left: 1.4em; }
.steps li + li { margin-top: 8px; }
code, pre { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .87em; }
code { overflow-wrap: anywhere; color: #dfcaff; }
.manifest { border: 1px solid var(--line); border-radius: 8px; background: #121116; }
.manifest summary { padding: 11px 13px; cursor: pointer; }
.manifest-code { position: relative; }
.manifest pre { padding: 12px; margin: 0; overflow: auto; color: #d8c4f6; line-height: 1.45; }
.manifest .button { position: absolute; right: 7px; top: 4px; min-height: 32px; font-size: .8rem; padding: 5px 8px; }
.repository-link { margin-top: 16px; }
.inline-status { margin: 8px 0 0; min-height: 0; font-size: .9rem; overflow-wrap: anywhere; }
.inline-status:empty { display: none; }
.player { width: 1080px; }
.player .dialog-content { padding: 0; }
.player-heading { align-items: center; padding: 16px 19px; }
.player-heading h2 { font-size: 1.45rem; }
.player-genre { display: block; color: var(--accent-light); margin-bottom: 4px; font-size: .83rem; }
.player-actions { display: flex; gap: 6px; }
.frame-stage { background: #08080e; width: 100%; height: clamp(360px, 59vh, 660px); }
.frame-stage:fullscreen { width: 100%; height: 100%; }
.frame-stage iframe { display: block; width: 100%; height: 100%; border: 0; }
.external-game { display: grid; min-height: 160px; align-content: center; justify-items: center; gap: 12px; padding: 22px; border-block: 1px solid var(--line); background: #141222; }
.external-game .button { white-space: normal; }
.external-game p { margin: 0; color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.external-game .password-note { display: flex; align-items: center; gap: 8px; color: #ffd8a1; }
.password-note .icon { width: 16px; height: 16px; }
.external-fallback { display: inline-block; margin-top: 10px; color: var(--accent-light); font-size: .92rem; }
.player-info { padding: 10px 19px 17px; }
.player-info p { margin: 5px 0 0; }
.player-info .controls { font-size: .93rem; }
.screenshots { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.screenshots img { width: min(220px, 100%); border-radius: 8px; }
@media (max-width: 850px) {
  .shell { width: calc(100% - 40px); }
  .hero-content { padding-left: 33px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .shell { width: calc(100% - 28px); }
  .topbar-inner { min-height: 62px; gap: 8px; }
  .brand { font-size: .82rem; gap: 7px; letter-spacing: .035em; }
  .brand-icon { width: 33px; height: 33px; }
  .brand-icon .icon { width: 19px; height: 19px; }
  .main-nav > a { display: none; }
  .contribute { padding: 7px 9px; font-size: .8rem; gap: 5px; min-height: 39px; white-space: normal; }
  .contribute .icon { width: 16px; height: 16px; }
  .hero { margin-top: 19px; min-height: 370px; align-items: end; border-radius: 14px; }
  .hero-art { width: 100%; height: 100%; object-position: 67% 30%; }
  .hero::after { background: linear-gradient(0deg, #151124 1%, #151124f5 28%, #15112492 55%, #17112900 90%); }
  .hero-content { padding: 23px 18px; }
  .hero h1 { font-size: 3.2rem; }
  .hero-description { margin: 12px 0 17px; }
  .hero-actions .button { min-height: 43px; padding-inline: 12px; }
  .library { margin-top: 31px; }
  .library-heading { align-items: stretch; flex-direction: column; gap: 15px; }
  .library-toolbar { margin-block: 15px; align-items: start; }
  .filter { padding-inline: 9px; }
  .results-count { padding-top: 9px; }
  .grid { grid-template-columns: 1fr; gap: 13px; }
  .callout { grid-template-columns: 38px 1fr; display: grid; padding: 14px; gap: 11px; }
  .callout-icon { height: 38px; width: 38px; }
  .callout .button { grid-column: 2; margin-left: 0; justify-self: start; }
  .dialog-content { padding: 16px; }
  .player-heading { padding: 11px; }
  .player-heading h2 { font-size: 1.16rem; }
  .player-genre { font-size: .77rem; }
  .player-actions { gap: 5px; }
  .icon-button { width: 36px; height: 36px; }
  .player-info { padding: 9px 11px 13px; }
  .frame-stage { height: clamp(290px, 63dvh, 540px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
