@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #090d12;
  --surface: #111821;
  --surface-2: #161f2b;
  --surface-3: #1d2837;
  --text: #f4f7fa;
  --muted: #96a3b3;
  --subtle: #657383;
  --line: rgba(255, 255, 255, .085);
  --accent: #ff9a4d;
  --accent-hover: #ffb474;
  --accent-dark: #211309;
  --brand-blue: #3f9bff;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body.fc-games-page { padding-top: 64px; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 5%, rgba(255, 132, 45, .085), transparent 27%),
    radial-gradient(circle at 10% 48%, rgba(48, 124, 218, .075), transparent 24%),
    var(--bg);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.dialog-open { overflow: hidden; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button { border: 0; background: none; cursor: pointer; }
img { display: block; max-width: 100%; }
svg { display: block; }
::selection { color: #201308; background: var(--accent); }
::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #33404f; border: 3px solid var(--bg); border-radius: 20px; }

.container { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 16px; color: var(--accent-dark); background: var(--accent); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.site-header { position: sticky; z-index: 50; top: 0; background: rgba(9, 13, 19, .85); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.site-header::before { position: absolute; top: 0; right: 0; left: 0; height: 1px; content: ""; background: linear-gradient(90deg, transparent 6%, rgba(63, 155, 255, .45) 36%, rgba(255, 154, 77, .6) 66%, transparent 94%); pointer-events: none; }
.header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-logo { width: 40px; height: 40px; flex: 0 0 auto; overflow: hidden; background: #fff url("assets/feichuang-logo.jpg") no-repeat 50% 26% / 200%; border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; box-shadow: 0 5px 16px rgba(0, 0, 0, .28), 0 0 22px rgba(255, 139, 54, .08); transition: transform .2s, box-shadow .2s; }
.brand:hover .brand-logo { transform: translateY(-1px); box-shadow: 0 7px 20px rgba(0, 0, 0, .3), 0 0 26px rgba(63, 155, 255, .13); }
.brand-type { display: flex; flex-direction: column; line-height: 1; }
.brand-type strong { font-size: 18px; font-weight: 800; letter-spacing: 2px; white-space: nowrap; }
.brand-type small { margin-top: 6px; color: #8391a2; font-size: 7.5px; font-weight: 600; letter-spacing: 1.45px; white-space: nowrap; }
.desktop-nav { display: flex; align-self: stretch; gap: 34px; margin-left: auto; margin-right: auto; }
.nav-link { position: relative; display: flex; align-items: center; color: #b6c1cd; font-size: 13px; font-weight: 500; transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; content: ""; background: linear-gradient(90deg, var(--brand-blue), var(--accent)); }
.nav-button { padding: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.favorites-toggle { display: flex; align-items: center; gap: 9px; min-height: 39px; padding: 0 12px; color: #c4ced9; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; transition: .2s; }
.favorites-toggle:hover, .favorites-toggle.active { color: var(--accent); border-color: rgba(255, 154, 77, .38); background: rgba(255, 154, 77, .06); }
.favorites-toggle.active .icon { fill: currentColor; }
.favorites-toggle .icon { width: 16px; height: 16px; }
.count-badge { min-width: 20px; padding: 0 5px; color: var(--accent); background: rgba(255, 154, 77, .1); border-radius: 5px; font-size: 10px; text-align: center; }
.icon-button { display: inline-grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 10px; transition: .2s; }
.icon-button:hover { color: var(--accent); background: rgba(255, 255, 255, .06); }
.menu-toggle { display: none; }
.mobile-nav { padding-top: 8px; padding-bottom: 20px; }
.mobile-nav a, .mobile-nav button { display: block; width: 100%; padding: 12px 0; text-align: left; border-bottom: 1px solid var(--line); }

.hero { position: relative; min-height: 470px; margin-top: 26px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; isolation: isolate; }
.hero-image { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 57%; filter: saturate(.76) brightness(.85); transform: scale(1.015); animation: heroReveal 1.4s ease both; }
.hero-shade { position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgba(6, 10, 16, .98) 0%, rgba(6, 10, 16, .9) 30%, rgba(6, 10, 16, .43) 56%, rgba(6, 10, 16, .08) 80%), linear-gradient(0deg, rgba(6, 10, 16, .75), transparent 42%); }
.hero::after { position: absolute; z-index: -1; inset: 0; content: ""; opacity: .13; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E"); pointer-events: none; }
.hero-content { max-width: 650px; padding: 55px 54px 45px; }
.eyebrow, .section-kicker { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: 2.1px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.pulse-dot, .live-dot { display: inline-block; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px rgba(255, 154, 77, .1); }
.pulse-dot { animation: pulse 2.2s infinite; }
.hero h1 { margin: 0; font-size: clamp(46px, 5.1vw, 69px); font-weight: 800; line-height: 1.08; letter-spacing: -3.5px; }
.hero h1 span { color: var(--accent); }
.hero-content > p { margin: 22px 0 0; color: #c1cad5; font-size: 14px; line-height: 1.9; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; border-radius: 9px; font-size: 13px; font-weight: 600; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #211309; background: var(--accent); }
.button-primary:hover { background: var(--accent-hover); }
.button-primary .icon { stroke-width: 2; }
.button-ghost { color: #e7ebe3; background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(10px); }
.button-ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }
.button-dark { color: var(--accent); background: #170f09; }
.hero-stats { display: flex; gap: 0; margin-top: 35px; }
.hero-stats > div { display: flex; min-width: 120px; flex-direction: column; padding-right: 28px; }
.hero-stats > div + div { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .16); }
.hero-stats strong { font-family: "Barlow Condensed", Inter, sans-serif; font-size: 24px; font-weight: 700; line-height: 1; letter-spacing: .5px; }
.hero-stats strong small { font-size: 14px; }
.hero-stats span { margin-top: 7px; color: #92a0af; font-size: 10px; }
.hero-index { position: absolute; top: 30px; right: 30px; display: flex; align-items: baseline; gap: 8px; color: rgba(255, 255, 255, .65); font-family: "Barlow Condensed", sans-serif; }
.hero-index span:first-child { margin-right: 10px; font-size: 9px; letter-spacing: 2px; writing-mode: vertical-rl; }
.hero-index strong { color: var(--accent); font-size: 34px; line-height: 1; }
.hero-index span:last-child { font-size: 14px; }
.hero-caption { position: absolute; right: 30px; bottom: 25px; display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .65); font-size: 10px; letter-spacing: 1px; }
.caption-line { width: 28px; height: 1px; background: var(--accent); }

.quick-explore { display: flex; align-items: center; gap: 20px; padding: 24px 0 58px; border-bottom: 1px solid var(--line); }
.quick-label { display: flex; align-items: center; gap: 9px; color: #a9b5c3; font-size: 12px; white-space: nowrap; }
.quick-label .icon { width: 16px; color: var(--accent); }
.quick-buttons { display: flex; flex: 1; gap: 9px; }
.quick-buttons button { display: inline-flex; min-height: 39px; align-items: center; gap: 8px; padding: 0 14px; color: #b5c1cd; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; font-size: 12px; white-space: nowrap; transition: .2s; }
.quick-buttons button:hover { color: var(--accent); border-color: rgba(255, 154, 77, .28); background: rgba(255, 154, 77, .045); }
.quick-buttons .icon { width: 15px; height: 15px; }
.quick-icon { color: var(--accent); font-size: 16px; line-height: 1; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 12px; white-space: nowrap; }
.text-link .icon { width: 16px; transition: transform .2s; }
.text-link:hover .icon { transform: translateX(3px); }

.library-section { padding-top: 12px; padding-bottom: 90px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-kicker { margin-bottom: 10px; }
.section-heading h2 { margin: 0; font-size: 31px; line-height: 1.25; letter-spacing: -1px; }
.title-dot { color: var(--accent); }
.section-heading p { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.result-summary { display: flex; align-items: center; gap: 7px; padding-bottom: 5px; color: var(--muted); font-size: 12px; }
.result-summary .live-dot { width: 5px; height: 5px; margin-right: 4px; box-shadow: none; }
.result-summary strong { color: var(--text); }
.toolbar { display: flex; gap: 12px; margin-bottom: 18px; }
.toolbar-favorites { flex: 0 0 auto; height: 46px; min-height: 46px; padding: 0 14px; gap: 8px; background: var(--surface); border-radius: 10px; font-size: 12px; white-space: nowrap; }
.toolbar-favorites .icon { width: 16px; height: 16px; }
.search-box { display: flex; height: 46px; flex: 1; align-items: center; gap: 11px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s; }
.search-box:focus-within { border-color: rgba(255, 154, 77, .45); }
.search-box .icon { width: 17px; color: var(--muted); }
.search-box input { width: 100%; color: var(--text); background: none; border: 0; outline: 0; font-size: 12px; }
.search-box input::placeholder { color: #6f786f; }
.search-box kbd { padding: 1px 7px; color: #738293; background: #1a2431; border: 1px solid var(--line); border-radius: 5px; font-family: inherit; font-size: 11px; }
.select-wrap { position: relative; display: flex; width: 170px; height: 46px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.select-wrap > .icon:first-child { position: absolute; left: 13px; width: 16px; color: var(--muted); pointer-events: none; }
.select-wrap select { width: 100%; height: 100%; padding: 0 34px 0 39px; color: #bdc8d4; background: transparent; border: 0; outline: none; appearance: none; cursor: pointer; font-size: 12px; }
.select-wrap select option { color: var(--text); background: var(--surface-2); }
.sort-wrap { width: 140px; }
.sort-wrap select { padding-left: 15px; }
.select-chevron { position: absolute; right: 11px; width: 15px; color: var(--muted); pointer-events: none; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 27px; }
.filter-row button { min-height: 32px; padding: 0 14px; color: #8795a5; border: 1px solid transparent; border-radius: 7px; font-size: 11px; transition: .2s; }
.filter-row button:hover { color: var(--text); background: var(--surface-2); }
.filter-row button.active { color: var(--accent); background: rgba(255, 154, 77, .075); border-color: rgba(255, 154, 77, .24); }
.active-filter { display: flex; align-items: center; justify-content: space-between; margin: -10px 0 22px; padding: 11px 14px; color: var(--muted); background: rgba(255, 154, 77, .04); border: 1px solid rgba(255, 154, 77, .12); border-radius: 8px; font-size: 11px; }
.active-filter strong { color: var(--accent); font-weight: 500; }
.active-filter button { display: flex; align-items: center; gap: 6px; color: #c5cfda; font-size: 11px; }
.active-filter .icon { width: 13px; }

.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
.game-card { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; transition: transform .25s, border-color .25s, box-shadow .25s; animation: cardIn .4s ease both; }
.game-card:hover { border-color: rgba(255, 154, 77, .24); box-shadow: 0 16px 36px rgba(0, 0, 0, .22); transform: translateY(-5px); }
.card-cover { position: relative; aspect-ratio: 1.78; overflow: hidden; background: #16202c; }
.cover-action { width: 100%; height: 100%; padding: 0; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s, filter .3s; }
.game-card:hover .card-cover img { transform: scale(1.045); filter: brightness(1.08); }
.card-cover::after { position: absolute; inset: 45% 0 0; content: ""; background: linear-gradient(transparent, rgba(6, 9, 7, .65)); pointer-events: none; }
.card-badges { position: absolute; z-index: 2; top: 10px; left: 10px; display: flex; gap: 5px; pointer-events: none; }
.card-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; color: #edf3f8; background: rgba(12, 18, 27, .78); border: 1px solid rgba(255, 255, 255, .14); border-radius: 5px; backdrop-filter: blur(8px); font-size: 9px; line-height: 1; }
.card-badge.free { color: #211309; background: var(--accent); border-color: var(--accent); font-weight: 700; }
.card-badge.new { color: var(--accent); border-color: rgba(255, 154, 77, .25); background: rgba(15, 20, 28, .82); }
.favorite-button { position: absolute; z-index: 3; top: 9px; right: 9px; display: grid; width: 30px; height: 30px; place-items: center; color: white; background: rgba(10, 15, 22, .68); border: 1px solid rgba(255, 255, 255, .15); border-radius: 7px; backdrop-filter: blur(8px); transition: .2s; }
.favorite-button .icon { width: 15px; height: 15px; }
.favorite-button:hover, .favorite-button.active { color: var(--accent); background: rgba(13, 19, 28, .94); border-color: rgba(255, 154, 77, .4); }
.favorite-button.active .icon { fill: currentColor; }
.cover-number { position: absolute; z-index: 2; right: 11px; bottom: 8px; color: rgba(255, 255, 255, .6); font-family: "Barlow Condensed", sans-serif; font-size: 11px; letter-spacing: 1px; }
.card-body { padding: 16px 16px 13px; }
.card-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.card-title { min-width: 0; padding: 0; text-align: left; }
.card-title h3 { overflow: hidden; margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.card-title span { display: block; overflow: hidden; margin-top: 4px; color: #8492a1; font-size: 9px; letter-spacing: .5px; text-overflow: ellipsis; white-space: nowrap; }
.card-title:hover h3 { color: var(--accent); }
.editor-score { display: flex; align-items: center; gap: 3px; padding-top: 1px; color: var(--accent); font-family: "Barlow Condensed", sans-serif; font-size: 15px; font-weight: 600; }
.editor-score .icon { width: 11px; height: 11px; fill: currentColor; stroke-width: 0; }
.card-genres { margin-top: 12px; color: #adb8c5; font-size: 10px; }
.card-description { display: -webkit-box; min-height: 38px; overflow: hidden; margin: 8px 0 14px; color: #8492a1; font-size: 11px; line-height: 1.75; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 11px; border-top: 1px solid var(--line); }
.platform-list { display: flex; gap: 5px; }
.platform-chip { padding: 2px 4px; color: #7f8ea0; background: #18222e; border: 1px solid var(--line); border-radius: 3px; font-family: Inter, sans-serif; font-size: 7px; font-weight: 600; letter-spacing: .4px; }
.card-detail { display: inline-flex; align-items: center; gap: 6px; padding: 0; color: #b7c2cf; font-size: 10px; }
.card-detail .icon { width: 13px; height: 13px; color: var(--accent); transition: transform .2s; }
.card-detail:hover { color: var(--accent); }
.card-detail:hover .icon { transform: translateX(3px); }
.library-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 27px; color: #748293; font-size: 10px; }
.library-foot > span:first-child { display: flex; align-items: center; gap: 7px; }
.library-foot .icon { width: 13px; color: #8b9caf; }
.empty-state { padding: 70px 20px; text-align: center; background: var(--surface); border: 1px dashed #303c4b; border-radius: 14px; }
.empty-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 18px; place-items: center; color: var(--accent); background: rgba(255, 154, 77, .07); border-radius: 50%; }
.empty-icon .icon { width: 24px; height: 24px; }
.empty-state h3 { margin: 0; font-size: 18px; }
.empty-state p { margin: 8px 0 22px; color: var(--muted); font-size: 12px; }

.guide-section { padding: 75px 0 90px; border-top: 1px solid var(--line); }
.guide-heading { align-items: center; }
.guide-heading > p { margin: 0; text-align: right; line-height: 1.9; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card { position: relative; min-height: 225px; overflow: hidden; padding: 28px; background: linear-gradient(135deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: 13px; }
.step-number { position: absolute; top: 10px; right: 19px; color: rgba(255, 255, 255, .025); font-family: "Barlow Condensed", sans-serif; font-size: 82px; font-weight: 800; line-height: 1; }
.step-icon { display: grid; width: 42px; height: 42px; margin-bottom: 24px; place-items: center; color: var(--accent); background: rgba(255, 154, 77, .07); border: 1px solid rgba(255, 154, 77, .14); border-radius: 10px; }
.step-card h3 { position: relative; margin: 0 0 10px; font-size: 15px; }
.step-card p { position: relative; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.9; }
.manifesto { display: grid; min-height: 335px; grid-template-columns: 1.05fr .95fr; overflow: hidden; margin-bottom: 90px; color: #241306; background: linear-gradient(112deg, #ff9a4d, #ffb165); border-radius: 18px; }
.manifesto-copy { padding: 44px 48px; }
.section-kicker.dark { color: #744017; }
.manifesto h2 { margin: 8px 0 14px; font-size: 32px; line-height: 1.35; letter-spacing: -1px; }
.manifesto p { max-width: 510px; margin: 0 0 25px; color: #5e3517; font-size: 12px; line-height: 1.9; }
.manifesto-art { position: relative; display: grid; overflow: hidden; place-items: center; background: rgba(76, 38, 8, .06); }
.open-type { position: relative; z-index: 2; font-family: "Barlow Condensed", Impact, sans-serif; font-size: clamp(76px, 9vw, 130px); font-weight: 800; line-height: .7; letter-spacing: -4px; text-align: center; transform: rotate(-5deg); }
.open-type span { display: block; margin-top: 28px; color: transparent; -webkit-text-stroke: 1px #241306; font-size: .42em; letter-spacing: 4px; }
.manifesto-mark { position: absolute; right: 25px; bottom: 25px; width: 38px; height: 38px; }
.orbit { position: absolute; border: 1px solid rgba(76, 38, 8, .18); border-radius: 50%; }
.orbit-one { width: 360px; height: 360px; }
.orbit-two { width: 470px; height: 470px; }

.site-footer { border-top: 1px solid var(--line); background: #070b10; }
.footer-main { display: grid; grid-template-columns: 1.25fr .55fr .65fr .65fr 1.15fr; gap: 32px; padding-top: 50px; padding-bottom: 45px; }
.branch-logo { width: 38px; height: 38px; flex: 0 0 auto; object-fit: cover; border-radius: 9px; box-shadow: 0 5px 16px rgba(0, 0, 0, .28), 0 0 22px rgba(255, 139, 54, .08); }
.branch-version { margin-left: 4px; padding: 1px 6px; color: #97a5b6; border: 1px solid var(--line); border-radius: 999px; font-size: 7px; letter-spacing: .4px; }
.footer-brand p { max-width: 280px; margin: 18px 0 0; color: #7d8b9c; font-size: 11px; line-height: 1.8; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-links strong { margin-bottom: 5px; color: #c7d1dc; font-size: 11px; }
.footer-links a, .footer-links button { display: inline-flex; align-items: center; gap: 4px; padding: 0; color: #768595; font-size: 10px; }
.footer-links a:hover, .footer-links button:hover { color: var(--accent); }
.footer-links .icon { width: 11px; height: 11px; }
.footer-note { justify-self: end; max-width: 300px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 8px; color: #93a2b3; background: #0f1620; border: 1px solid var(--line); border-radius: 5px; font-size: 8px; letter-spacing: 1px; }
.status-pill .live-dot { width: 4px; height: 4px; box-shadow: none; }
.footer-note p { margin: 15px 0 0; color: #6c7a8b; font-size: 10px; line-height: 1.8; }
.footer-note a { color: var(--accent); border-bottom: 1px solid rgba(255, 154, 77, .28); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 22px; color: #586577; border-top: 1px solid var(--line); font-size: 8px; letter-spacing: 1px; }
.footer-bottom a { color: #919eb0; letter-spacing: 0; }

/* Dialogs */
dialog { color: var(--text); background: var(--surface); border: 1px solid #303c4b; border-radius: 18px; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(4, 8, 13, .84); backdrop-filter: blur(8px); }
dialog[open] { animation: dialogIn .24s ease both; }
.dialog-close { position: absolute; z-index: 10; top: 15px; right: 15px; color: white; background: rgba(8, 12, 9, .66); border-color: rgba(255, 255, 255, .18); backdrop-filter: blur(10px); }
.game-dialog { width: min(900px, calc(100% - 32px)); max-height: 90vh; padding: 0; overflow-x: hidden; overflow-y: auto; }
.detail-hero { position: relative; height: 280px; overflow: hidden; }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero::after { position: absolute; inset: 0; content: ""; background: linear-gradient(transparent 25%, rgba(10, 16, 23, .45) 58%, var(--surface) 100%); }
.detail-heading { position: absolute; z-index: 2; right: 34px; bottom: 20px; left: 34px; }
.detail-heading .card-badges { position: static; margin-bottom: 12px; }
.detail-heading h2 { margin: 0; font-size: 32px; line-height: 1.2; letter-spacing: -1px; }
.detail-heading p { margin: 5px 0 0; color: #a8b5c4; font-size: 11px; letter-spacing: 1px; }
.detail-body { display: grid; grid-template-columns: 1fr 250px; gap: 34px; padding: 14px 34px 34px; }
.detail-description { margin: 0 0 24px; color: #b3bfcc; font-size: 13px; line-height: 1.95; }
.detail-section-title { margin: 0 0 13px; color: #e4eaf0; font-size: 12px; }
.feature-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.feature-list li { display: flex; align-items: flex-start; gap: 9px; color: #93a1b0; font-size: 11px; }
.feature-list .icon { width: 14px; height: 14px; margin-top: 2px; color: var(--accent); }
.detail-sidebar { padding-left: 26px; border-left: 1px solid var(--line); }
.score-block { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.score-number { color: var(--accent); font-family: "Barlow Condensed", sans-serif; font-size: 38px; font-weight: 700; line-height: 1; }
.score-block span { color: #8b9688; font-size: 10px; line-height: 1.6; }
.detail-facts { display: grid; gap: 11px; margin: 0 0 22px; }
.detail-facts div { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; }
.detail-facts dt { color: #778274; }
.detail-facts dd { margin: 0; color: #c1c9be; text-align: right; }
.download-button { width: 100%; }
.source-button { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; margin-top: 11px; padding: 9px; color: #a7b2a3; font-size: 10px; }
.source-button:hover { color: var(--accent); }
.source-button .icon { width: 14px; }
.detail-favorite { width: 100%; margin-top: 5px; justify-content: center; }
.detail-favorite.active { color: var(--accent); border-color: rgba(255, 154, 77, .3); }
.detail-favorite.active .icon { fill: currentColor; }
.official-note { display: flex; gap: 7px; margin: 12px 0 0; color: #687364; font-size: 9px; line-height: 1.7; }
.official-note .icon { width: 12px; height: 12px; margin-top: 2px; }
.standards-dialog { width: min(590px, calc(100% - 32px)); padding: 38px; }
.standards-dialog h2 { margin: 8px 0 8px; font-size: 26px; letter-spacing: -.8px; }
.dialog-intro { margin: 0 0 25px; color: var(--muted); font-size: 12px; }
.standards-list { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.standards-list li { display: flex; gap: 13px; }
.standards-list li > span { display: grid; width: 26px; height: 26px; flex: 0 0 auto; place-items: center; color: var(--accent); background: rgba(255, 154, 77, .07); border-radius: 7px; }
.standards-list .icon { width: 14px; height: 14px; }
.standards-list strong { font-size: 12px; }
.standards-list p { margin: 3px 0 0; color: #879284; font-size: 11px; }
.standards-confirm { width: 100%; margin-top: 28px; }
.toast { position: fixed; z-index: 100; bottom: 28px; left: 50%; display: flex; align-items: center; gap: 9px; max-width: calc(100% - 32px); padding: 12px 18px; color: #211309; background: var(--accent); border-radius: 9px; box-shadow: 0 12px 40px rgba(0, 0, 0, .4); font-size: 12px; font-weight: 600; opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .icon { width: 16px; stroke-width: 2.2; }

@keyframes heroReveal { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: scale(1.015); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 154, 77, 0); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }

@media (max-width: 1080px) {
  .desktop-nav { gap: 22px; }
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick-explore { flex-wrap: wrap; }
  .quick-buttons { order: 3; flex-basis: 100%; overflow-x: auto; padding-bottom: 4px; }
  .quick-all { margin-left: auto; }
  .hero-content { padding-left: 42px; }
  .hero-shade { background: linear-gradient(90deg, rgba(6, 10, 16, .98), rgba(6, 10, 16, .77) 45%, rgba(6, 10, 16, .18)), linear-gradient(0deg, rgba(6, 10, 16, .7), transparent 50%); }
  .footer-main { grid-template-columns: 1.2fr .7fr .7fr; }
  .footer-note { grid-column: 1 / -1; justify-self: start; max-width: 500px; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 32px, 620px); }
  .header-inner { height: 66px; }
  .desktop-nav { display: none; }
  .favorites-toggle > span:not(.count-badge) { display: none; }
  .menu-toggle { display: inline-grid; }
  .hero { min-height: 500px; margin-top: 16px; border-radius: 15px; }
  .hero-image { object-position: 61% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(6, 10, 16, .94), rgba(6, 10, 16, .56)), linear-gradient(0deg, rgba(6, 10, 16, .9), transparent 65%); }
  .hero-content { padding: 48px 28px 30px; }
  .hero h1 { font-size: clamp(42px, 12vw, 58px); letter-spacing: -2.5px; }
  .hero-index { top: 22px; right: 20px; }
  .hero-index span:first-child { display: none; }
  .hero-caption { right: 20px; bottom: 18px; font-size: 8px; }
  .hero-stats > div { min-width: 0; flex: 1; padding-right: 15px; }
  .hero-stats > div + div { padding-left: 15px; }
  .quick-explore { padding-bottom: 42px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 27px; }
  .result-summary { display: none; }
  .toolbar { flex-wrap: wrap; }
  .search-box { flex-basis: 100%; }
  .select-wrap { flex: 1; width: auto; }
  .filter-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; }
  .filter-row button { flex: 0 0 auto; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .card-body { padding: 14px 12px 12px; }
  .card-description { font-size: 10px; }
  .card-title h3 { font-size: 14px; }
  .guide-heading > p { display: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { min-height: auto; }
  .manifesto { grid-template-columns: 1fr; }
  .manifesto-copy { padding: 36px 30px; }
  .manifesto-art { min-height: 250px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-note { grid-column: 1 / -1; }
  .footer-bottom span:nth-child(2) { display: none; }
  .detail-body { grid-template-columns: 1fr; gap: 28px; }
  .detail-sidebar { padding: 24px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .detail-hero { height: 240px; }
}

@media (max-width: 500px) {
  .container { width: calc(100% - 24px); }
  .header-inner { gap: 12px; }
  .brand { gap: 8px; }
  .brand-logo { width: 35px; height: 35px; border-radius: 8px; }
  .brand-type strong { font-size: 17px; letter-spacing: 1.2px; }
  .brand-type small { font-size: 6px; letter-spacing: .9px; }
  .header-actions { gap: 7px; }
  .favorites-toggle { padding: 0 9px; }
  .hero { min-height: 520px; }
  .hero-content { padding: 44px 22px 28px; }
  .hero-content > p { font-size: 12px; }
  .hero-actions .button { padding: 0 15px; }
  .hero-stats { margin-top: 36px; }
  .hero-stats strong { font-size: 21px; }
  .hero-stats span { font-size: 8px; }
  .hero-caption { display: none; }
  .quick-label { font-size: 11px; }
  .quick-all { font-size: 10px; }
  .library-section { padding-bottom: 65px; }
  .section-heading { margin-bottom: 23px; }
  .section-heading h2 { font-size: 25px; }
  .section-heading p { font-size: 11px; }
  .game-grid { grid-template-columns: 1fr; gap: 18px; }
  .card-cover { aspect-ratio: 1.95; }
  .card-title h3 { font-size: 16px; }
  .card-description { min-height: auto; font-size: 11px; }
  .library-foot { font-size: 9px; }
  .guide-section { padding: 58px 0 65px; }
  .manifesto { margin-bottom: 65px; }
  .manifesto h2 { font-size: 28px; }
  .footer-main { gap: 35px 20px; }
  .game-dialog { width: calc(100% - 16px); max-height: 94vh; border-radius: 13px; }
  .detail-hero { height: 215px; }
  .detail-heading { right: 22px; bottom: 15px; left: 22px; }
  .detail-heading h2 { font-size: 26px; }
  .detail-body { padding: 12px 22px 26px; }
  .standards-dialog { padding: 32px 24px 26px; }
  .standards-dialog h2 { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
