:root {
  color-scheme: dark;
  --bg: #0b1020;
  --bg-soft: #10172b;
  --panel: #151d31;
  --panel-light: #1a243a;
  --line: #29334b;
  --line-subtle: #202a40;
  --text: #f5f7fa;
  --muted: #a1aac0;
  --muted-2: #747e97;
  --accent: #baf875;
  --accent-deep: #8dcb52;
  --violet: #b7a4ff;
  --rounded: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: Inter, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--bg); }
[hidden] { display: none !important; }
.shell { width: min(1240px, calc(100% - 80px)); margin-inline: auto; position: relative; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.glow { position: absolute; pointer-events: none; filter: blur(4px); opacity: .5; z-index: 0; }
.glow-one { top: 60px; left: -480px; width: 840px; height: 730px; background: radial-gradient(circle, rgba(43,69,111,.35), transparent 70%); }
.glow-two { top: 60px; right: -360px; width: 780px; height: 780px; background: radial-gradient(circle, rgba(57,66,111,.32), transparent 72%); }

/* Navigation */
.topbar { position: relative; z-index: 3; border-bottom: 1px solid rgba(210,225,255,.08); }
.topbar-inner { height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { background: var(--accent); color: var(--bg); height: 48px; width: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 35px; font-weight: 900; line-height: 1; transform: rotate(-6deg); }
.brand-type { display: grid; gap: 2px; }
.brand-type b { font-size: 20px; font-weight: 900; letter-spacing: -.7px; line-height: 1; }
.brand-dot { color: var(--accent); }
.brand-type small { font-size: 10px; font-weight: 800; letter-spacing: 2.3px; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 34px; font-size: 13px; font-weight: 700; }
.nav-link { color: #c0cadc; transition: color .2s ease; }
.nav-link:hover { color: var(--accent); }
.nav-cta { border: 1px solid #485367; border-radius: 50px; padding: 13px 20px; white-space: nowrap; transition: border-color .2s ease, background .2s ease; }
.nav-cta:hover { border-color: var(--accent); background: rgba(186,248,117,.08); }
.nav-cta span { color: var(--accent); margin-left: 13px; font-size: 16px; }

/* Hero */
.hero { padding-top: 98px; padding-bottom: 112px; display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(380px, .84fr); gap: 60px; align-items: center; }
.hero-copy { z-index: 2; }
.eyebrow, .section-kicker { font-size: 11px; font-weight: 850; letter-spacing: 2px; color: var(--accent); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; padding: 10px 13px; border-radius: 50px; background: rgba(186,248,117,.07); border: 1px solid rgba(186,248,117,.12); }
.eyebrow-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(186,248,117,.08); }
.hero h1 { margin: 28px 0 23px; font-size: clamp(62px, 6vw, 99px); line-height: .985; max-width: 730px; font-weight: 950; letter-spacing: -6px; }
.outlined { color: transparent; -webkit-text-stroke: 1.5px #8799ac; }
.period { color: var(--accent); }
.hero-description { max-width: 600px; font-size: 16px; line-height: 1.85; color: #b5bed0; margin: 0; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 34px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 52px; padding: 0 25px; border-radius: 12px; font-size: 13px; font-weight: 850; border: 1px solid transparent; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: #101923; }
.button-primary:hover { background: #d0ff9a; }
.button-outline { background: rgba(255,255,255,.02); border-color: #546078; color: var(--text); }
.button-outline:hover { border-color: var(--accent); }
.hero-note { font-size: 11px; line-height: 1.5; color: var(--muted-2); max-width: 175px; }
.mini-stars { color: var(--violet); display: block; letter-spacing: 7px; font-size: 13px; margin-bottom: 5px; }
.hero-art { width: 100%; aspect-ratio: 1 / .91; position: relative; min-width: 0; display: grid; place-items: center; }
.hero-art::before { content: ""; position: absolute; inset: 8% 2%; border-radius: 50%; background: radial-gradient(circle, rgba(136,128,228,.18) 0%, rgba(63,77,130,.1) 38%, transparent 66%); }
.art-orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(192,208,239,.12); transform: rotate(-24deg); }
.art-orbit-one { width: 92%; height: 65%; }
.art-orbit-two { width: 72%; height: 95%; transform: rotate(33deg); }
.art-controller { width: 95%; transform: rotate(-17deg); filter: drop-shadow(0 30px 0 rgba(36,53,65,.9)) drop-shadow(0 48px 45px rgba(0,0,0,.35)); animation: float 6s ease-in-out infinite; }
.art-controller svg { width: 100%; height: auto; }
@keyframes float { 0%,100% { transform: translateY(-5px) rotate(-17deg); } 50% { transform: translateY(8px) rotate(-14deg); } }
.art-label { position: absolute; border: 1px solid #3b4961; background: rgba(13,19,35,.88); color: #d6ddec; font-size: 10px; letter-spacing: 2px; font-weight: 850; padding: 12px 14px; border-radius: 8px; z-index: 2; }
.art-label-top { top: 12%; right: 0; transform: rotate(8deg); }
.art-label-top span { color: var(--accent); margin-left: 10px; }
.art-label-bottom { left: 0; bottom: 9%; transform: rotate(-8deg); }
.art-spark { position: absolute; color: var(--accent); z-index: 2; }
.art-spark-a { top: 7%; left: 9%; font-size: 70px; transform: rotate(13deg); }
.art-spark-b { right: 6%; bottom: 12%; font-size: 42px; color: var(--violet); }

/* Metrics */
.metric-band { border-top: 1px solid var(--line-subtle); border-bottom: 1px solid var(--line-subtle); background: rgba(17,25,44,.65); }
.metrics { display: grid; grid-template-columns: 1fr 1fr 1fr 1.15fr; }
.metric { min-height: 135px; padding: 34px 28px; border-right: 1px solid var(--line-subtle); display: flex; flex-direction: column; justify-content: center; gap: 9px; }
.metric:first-child { padding-left: 0; }
.metric:last-child { border-right: 0; padding-right: 0; }
.metric strong { font-size: 43px; letter-spacing: -2px; line-height: 1; font-weight: 900; }
.metric span { color: var(--muted); font-size: 12px; }
.metric-aside { flex-direction: row; align-items: center; justify-content: flex-end; gap: 16px; }
.metric-aside span { font-size: 15px; line-height: 1.6; }
.metric-aside b { color: var(--text); }
.metric-emblem { font-size: 57px !important; color: var(--accent) !important; }

/* Filters */
.catalog { padding-top: 113px; padding-bottom: 110px; scroll-margin-top: 20px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.section-heading h2, .vote-copy h2 { margin: 13px 0 0; font-size: clamp(36px, 3.5vw, 53px); font-weight: 900; line-height: 1.12; letter-spacing: -2.5px; }
.section-heading h2 em, .vote-copy h2 em { color: var(--accent); font-style: normal; }
.update-label { font-size: 12px; color: var(--muted-2); padding-bottom: 7px; text-align: right; }
.notice { border: 1px solid rgba(186,248,117,.25); border-radius: 12px; background: rgba(186,248,117,.07); color: #d8f5c0; padding: 14px 18px; font-size: 13px; line-height: 1.5; margin-bottom: 21px; }
.filter-panel { padding: 22px; background: var(--panel); border-radius: 20px; border: 1px solid #2b364f; box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.search-field { display: flex; align-items: center; height: 60px; border: 1px solid #34415b; border-radius: 12px; background: #0f1628; padding: 0 17px; transition: border-color .2s; }
.search-field:focus-within { border-color: var(--accent); }
.search-icon { color: var(--accent); font-size: 33px; margin-right: 13px; line-height: 1; transform: rotate(-20deg); }
.search-field input { flex: 1; border: 0; background: transparent; outline: none; color: var(--text); font-size: 14px; min-width: 0; }
.search-field input::placeholder { color: #808ba2; }
.search-kbd { border: 1px solid #38445b; border-radius: 6px; color: #8791a8; padding: 4px 8px; font-size: 12px; }
.filter-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.select-wrap { position: relative; display: grid; gap: 8px; font-size: 10px; font-weight: 850; letter-spacing: 1.2px; color: var(--muted); }
.select-wrap select { width: 100%; min-height: 48px; padding: 0 33px 0 13px; appearance: none; background: #1d273d; color: var(--text); border-radius: 9px; border: 1px solid #35415a; font-size: 12px; font-weight: 650; letter-spacing: 0; cursor: pointer; text-overflow: ellipsis; }
.select-wrap::after { content: "⌄"; position: absolute; bottom: 14px; right: 13px; pointer-events: none; font-size: 17px; color: var(--accent); }
.select-wrap select:hover { border-color: #6b7894; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 25px 0 22px; }
.tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.tab { border: 1px solid transparent; background: transparent; color: #9ca8bf; border-radius: 8px; font-size: 12px; font-weight: 800; padding: 12px 17px; transition: color .2s, background .2s; }
.tab.is-active { color: #111b20; background: var(--accent); }
.tab:hover:not(.is-active) { color: var(--text); background: #202a42; }
.result-count { color: var(--muted-2); font-size: 12px; white-space: nowrap; }

/* Cards */
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; min-height: 120px; }
.game-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid #2e3951; background: var(--panel); border-radius: var(--rounded); overflow: hidden; transition: border-color .25s, transform .25s, box-shadow .25s; animation: appear .4s both; animation-delay: calc(var(--order) * 20ms); }
@keyframes appear { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.game-card:hover { transform: translateY(-4px); border-color: #6b7c92; box-shadow: 0 22px 38px rgba(0,0,0,.2); }
.game-cover { height: 213px; display: flex; flex-direction: column; justify-content: space-between; padding: 19px; position: relative; isolation: isolate; overflow: hidden; }
.game-cover::before { content: ""; position: absolute; height: 270px; width: 270px; border-radius: 50%; border: 1px solid rgba(255,255,255,.19); top: 37px; left: 25%; box-shadow: 0 0 0 44px rgba(255,255,255,.035), 0 0 0 91px rgba(255,255,255,.027); z-index: -1; }
.game-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.13), transparent 44%); pointer-events: none; }
.cover-0 { background: linear-gradient(135deg, #15536d, #1c7a9d); }
.cover-1 { background: linear-gradient(135deg, #543b84, #8b5cca); }
.cover-2 { background: linear-gradient(135deg, #794b3c, #be7364); }
.cover-3 { background: linear-gradient(135deg, #235e53, #388e75); }
.cover-4 { background: linear-gradient(135deg, #49517e, #747ac0); }
.cover-5 { background: linear-gradient(135deg, #6f5235, #ab8951); }
.cover-noise { position: absolute; inset: 0; opacity: .1; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 13px 13px; }
.cover-upper { display: flex; justify-content: space-between; gap: 8px; z-index: 1; align-items: start; }
.cover-stamp { color: rgba(255,255,255,.8); font-size: 10px; letter-spacing: 1.5px; font-weight: 900; }
.status-pill { border: 1px solid rgba(255,255,255,.33); background: rgba(12,20,33,.4); color: #fff; font-size: 9px; font-weight: 850; padding: 8px 10px; border-radius: 50px; letter-spacing: .7px; white-space: nowrap; }
.status-live { color: #d9ffb4; }
.status-offline { color: #d3d9e6; }
.cover-emoji { font-size: 73px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -43%) rotate(-10deg); filter: drop-shadow(0 15px 8px rgba(0,0,0,.19)); line-height: 1; }
.cover-bottom { font-size: 10px; font-weight: 900; letter-spacing: 2px; color: rgba(255,255,255,.82); z-index: 1; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 23px; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--accent); font-size: 11px; font-weight: 750; }
.card-date { color: #8893aa; text-align: right; font-size: 10px; font-weight: 500; }
.game-title { margin: 14px 0 11px; font-size: 24px; line-height: 1.17; letter-spacing: -.8px; font-weight: 900; overflow-wrap: anywhere; }
.game-description { color: #a4afc3; font-size: 12px; line-height: 1.7; margin: 0 0 20px; min-height: 61px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.tags-stack { display: grid; gap: 7px; margin-top: auto; }
.game-tag { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #202c40; border-radius: 7px; min-width: 0; }
.tag-label { color: #8190a9; font-size: 9px; font-weight: 900; letter-spacing: 1px; width: 88px; flex: 0 0 88px; }
.tag-value { font-size: 11px; color: #e9edf4; font-weight: 750; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.tag-mechanic { background: #293043; }
.tag-modifier { background: #273442; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 11px; margin-top: 22px; border-top: 1px solid #323d54; padding-top: 20px; }
.stars-count { display: inline-flex; align-items: center; font-weight: 900; font-size: 17px; color: #ffdf8c; white-space: nowrap; }
.card-actions { display: flex; align-items: center; gap: 8px; }
.card-actions a { display: inline-flex; align-items: center; gap: 7px; border-radius: 8px; padding: 10px 12px; white-space: nowrap; font-size: 11px; font-weight: 850; border: 1px solid #3a4964; transition: background .2s, border-color .2s; }
.card-actions a:hover { border-color: var(--accent); }
.play-link { background: var(--accent); color: #0d1d18; border-color: var(--accent) !important; }
.play-link:hover { background: #d2ff9b; }
.star-link { color: #e6ecf7; background: #222e45; }
.link-icon { font-size: 14px; }
.card-actions .is-disabled { opacity: .34; cursor: not-allowed; pointer-events: none; background: #313b4c; color: #b8c0d1; border-color: transparent !important; }
.loading-state, .error-state { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; min-height: 260px; color: var(--muted); gap: 16px; font-size: 15px; text-align: center; }
.loading-ring { border: 3px solid #33415b; border-top-color: var(--accent); width: 28px; height: 28px; border-radius: 50%; animation: spin .85s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; border: 1px dashed #48536d; border-radius: 18px; padding: 60px 20px; background: #121a2c; }
.empty-state > span { font-size: 50px; color: var(--accent); }
.empty-state h3 { font-size: 25px; margin: 14px 0 8px; }
.empty-state p { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.show-more-wrap { display: flex; justify-content: center; margin-top: 34px; }

/* Vote CTA */
.vote-section { padding-bottom: 115px; scroll-margin-top: 30px; }
.vote-panel { background: linear-gradient(100deg, #1c2c33, #192633 55%, #1b2638); border: 1px solid #344b4a; border-radius: 27px; padding: 60px 7%; display: grid; grid-template-columns: .65fr 1fr; gap: 80px; align-items: center; overflow: hidden; }
.vote-graphic { display: grid; place-items: center; position: relative; min-height: 270px; }
.vote-graphic::before, .vote-graphic::after { content: ""; position: absolute; border: 1px dashed rgba(186,248,117,.23); border-radius: 50%; width: 270px; height: 270px; }
.vote-graphic::after { width: 360px; height: 360px; opacity: .5; }
.vote-big-star { font-size: 205px; color: var(--accent); text-shadow: 0 22px 0 #61854c, 0 30px 50px rgba(0,0,0,.3); transform: rotate(-12deg); line-height: 1; z-index: 1; }
.vote-small-star { position: absolute; right: 1%; top: -2%; font-size: 59px; color: var(--violet); }
.vote-copy h2 { font-size: clamp(34px, 3.6vw, 51px); margin-bottom: 22px; }
.vote-copy p { font-size: 14px; line-height: 1.85; color: #b9c6d1; max-width: 530px; }
.vote-footnote { display: block; border-left: 2px solid var(--accent); color: #8999aa; font-size: 12px; line-height: 1.6; padding-left: 16px; margin-top: 24px; }
.footer { border-top: 1px solid var(--line-subtle); color: #8490a8; font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 100px; }
.footer b { color: var(--text); letter-spacing: .8px; }
.footer a:hover { color: var(--accent); }

@media (max-width: 1100px) {
  .hero { gap: 18px; grid-template-columns: 1.15fr .85fr; }
  .hero h1 { font-size: clamp(57px, 6.5vw, 80px); letter-spacing: -4px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-art { width: 110%; transform: translateX(-3%); }
}
@media (max-width: 760px) {
  .shell { width: min(100% - 36px, 560px); }
  .topbar-inner { height: 72px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 11px; font-size: 28px; }
  .brand-type b { font-size: 17px; }
  .nav-link { display: none; }
  .nav { gap: 0; }
  .nav-cta { padding: 10px 12px; font-size: 11px; }
  .nav-cta span { margin-left: 5px; }
  .hero { display: flex; flex-direction: column; padding-top: 64px; padding-bottom: 62px; gap: 10px; align-items: stretch; }
  .hero h1 { font-size: clamp(56px, 12vw, 80px); letter-spacing: -3.8px; }
  .hero-description { font-size: 14px; line-height: 1.8; }
  .hero-art { width: 85%; max-width: 410px; margin: 0 auto; transform: none; }
  .art-spark-a { font-size: 55px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric { min-height: 115px; padding: 24px; border-bottom: 1px solid var(--line-subtle); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(3) { border-bottom: 0; padding-left: 0; }
  .metric:nth-child(4) { border-bottom: 0; }
  .metric strong { font-size: 36px; }
  .metric-aside { justify-content: flex-end; }
  .metric-aside span { font-size: 12px; }
  .metric-emblem { font-size: 36px !important; }
  .catalog { padding-top: 70px; padding-bottom: 80px; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; }
  .section-heading h2 { font-size: 40px; }
  .filter-panel { padding: 15px; }
  .filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-toolbar { align-items: start; flex-direction: column; gap: 10px; }
  .game-grid { grid-template-columns: 1fr; }
  .game-cover { height: 225px; }
  .game-description { min-height: unset; }
  .vote-section { padding-bottom: 70px; }
  .vote-panel { display: flex; flex-direction: column; gap: 20px; padding: 35px 27px 43px; align-items: stretch; }
  .vote-graphic { min-height: 190px; }
  .vote-big-star { font-size: 145px; }
  .vote-graphic::before { width: 200px; height: 200px; }
  .vote-graphic::after { width: 260px; height: 260px; }
  .vote-copy h2 { font-size: 36px; }
  .footer-inner { flex-wrap: wrap; padding: 25px 0; min-height: 110px; gap: 10px 20px; }
}
@media (max-width: 390px) {
  .hero h1 { font-size: 53px; }
  .eyebrow { font-size: 9px; letter-spacing: 1px; }
  .hero-actions { gap: 18px; }
  .filter-row { gap: 9px; }
  .tab { font-size: 11px; padding: 10px 11px; }
  .card-body { padding: 18px; }
  .card-actions a { padding: 9px; font-size: 10px; }
  .tag-label { flex-basis: 78px; width: 78px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
