:root {
  color-scheme: dark;
  --bg: #141714;
  --panel: #1c201c;
  --text: #f2f0e7;
  --muted: #a3aa9f;
  --line: #333a31;
  --accent: #d8ee9a;
  --font: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 760px; pointer-events: none; z-index: -1; background: radial-gradient(ellipse at 80% 20%, #27302565, transparent 55%); }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
svg { display: block; }
::selection { color: var(--bg); background: var(--accent); }
[hidden] { display: none !important; }
.shell { width: min(1232px, calc(100% - 112px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 14px 20px; z-index: 10; background: var(--accent); color: var(--bg); transform: translateY(-160%); border-radius: 6px; }
.skip-link:focus { transform: translateY(0); }
.site-header { height: 112px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark { color: var(--accent); width: 34px; height: 34px; }
.brand-name { font-size: 29px; line-height: 1; font-weight: 800; letter-spacing: -1.5px; }
.brand-name span { display: block; font-size: 9px; letter-spacing: 3.2px; margin-top: 6px; font-weight: 600; padding-left: 2px; }
.main-nav { display: flex; align-items: center; gap: 36px; margin-left: -30px; }
.main-nav a { font-size: 13px; color: var(--muted); transition: color .2s; padding: 12px 0; }
.main-nav a:hover, .main-nav .nav-active { color: var(--text); }
.nav-active::before { content: ""; display: inline-block; margin: 0 9px 2px 0; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.header-note { display: flex; align-items: center; gap: 9px; font-size: 11px; letter-spacing: 1px; color: var(--muted); }
.status-dot { height: 5px; width: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px #d8ee9a0b; }
.hero { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 38px; padding-top: 75px; padding-bottom: 78px; }
.eyebrow { font-family: "Consolas", "SFMono-Regular", monospace; font-size: 10px; letter-spacing: 2px; line-height: 1.7; font-weight: 500; margin: 0; color: var(--muted); }
.hero .eyebrow { display: flex; align-items: center; gap: 10px; color: #c0c5b8; }
.tiny-star { font-family: var(--font); color: var(--accent); font-size: 18px; line-height: 1; }
h1 { font-size: clamp(48px, 5.4vw, 76px); font-weight: 800; letter-spacing: -3px; line-height: 1.28; margin: 25px 0 25px; }
.hero-accent { color: var(--accent); position: relative; display: inline-block; }
.hero-accent svg { position: absolute; width: 99%; height: 10px; left: 0; bottom: -6px; }
.hero-period { color: var(--accent); }
.hero-description { font-size: 14px; line-height: 1.95; letter-spacing: .6px; margin: 0; color: var(--muted); }
.hero-link { display: inline-flex; align-items: center; gap: 19px; font-size: 12px; letter-spacing: 1px; margin-top: 26px; padding: 4px 0 7px; border-bottom: 1px solid #6b7658; }
.hero-link span { font-family: sans-serif; font-size: 24px; line-height: 1; color: var(--accent); transition: transform .2s; }
.hero-link:hover span { transform: translate(3px, 3px); }
.hero-art { position: relative; height: 340px; width: 100%; max-width: 430px; justify-self: end; display: grid; place-items: center; isolation: isolate; }
.controller { width: 290px; transform: rotate(-13deg); filter: drop-shadow(2px 16px 0 #00000020); }
.orbit { position: absolute; border: 1px solid #4a56403d; border-radius: 50%; transform: rotate(-29deg); z-index: -1; }
.orbit-one { width: 92%; height: 71%; }
.orbit-two { width: 68%; height: 94%; transform: rotate(26deg); }
.orbit-spark { position: absolute; font-family: sans-serif; font-weight: 400; }
.spark-one { font-size: 49px; color: #e7b98f; top: 36px; right: 48px; }
.spark-two { font-size: 24px; color: var(--accent); bottom: 47px; left: 28px; }
.art-caption { position: absolute; font: 9px "Consolas", monospace; letter-spacing: 2px; color: #8d9a80; bottom: 15px; left: 76px; transform: rotate(-13deg); }
.art-sticker { position: absolute; right: 3px; bottom: 56px; background: #e5ba94; color: #292519; font-size: 10px; letter-spacing: 1px; padding: 9px 12px; transform: rotate(9deg); box-shadow: 4px 4px 0 #121512; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-eyebrow { font-size: 9px; letter-spacing: 1.6px; }
.section-eyebrow span { display: inline-block; padding-inline: 10px; color: #565f50; }
.section-heading h2 { font-size: 29px; letter-spacing: -.8px; font-weight: 650; margin: 9px 0 0; line-height: 1.4; }
.collection-note { display: flex; align-items: center; gap: 8px; margin: 0 0 5px; font-size: 11px; letter-spacing: .4px; color: var(--muted); }
.collection-note svg { width: 17px; height: 17px; }
.collection-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 26px 0 25px; }
.filters { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.filter { color: var(--muted); background: transparent; border: 1px solid transparent; padding: 10px 15px; min-height: 40px; border-radius: 7px; font-size: 11px; line-height: 1.3; letter-spacing: .2px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.filter:hover { background: #242b22; color: var(--text); }
.filter.is-active { background: #2b3425; color: var(--accent); border-color: #465238; }
.filter span { margin-left: 9px; font: 9px "Consolas", monospace; opacity: .65; }
.result-count { color: #929d89; white-space: nowrap; font-size: 10px; letter-spacing: .5px; }
.game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; }
.game-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--panel); min-width: 0; transition: border-color .25s, transform .25s, box-shadow .25s; }
.game-card:hover { transform: translateY(-5px); border-color: #6b795c; box-shadow: 0 16px 35px #0002; }
.game-card:focus-visible { outline-offset: 5px; }
.card-art { aspect-ratio: 1.78; position: relative; overflow: hidden; isolation: isolate; }
.card-art > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.65,.25,1); }
.game-card:hover .card-art > img { transform: scale(1.035); }
.fighter-art { background: #899cef; }
.fighter-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #151b4840, transparent 65%); pointer-events: none; }
.fighter-art > img { object-position: center 42%; }
.art-category { position: absolute; z-index: 3; top: 18px; left: 18px; display: flex; align-items: center; gap: 7px; background: #161d24e8; border: 1px solid #ffffff29; color: #f8f4ec; font-size: 10px; padding: 6px 10px; border-radius: 5px; letter-spacing: .6px; }
.category-symbol { font-size: 13px; font-family: sans-serif; line-height: 1; }
.art-number { position: absolute; z-index: 3; right: 20px; top: 20px; font: 10px "Consolas", monospace; color: #fff; text-shadow: 0 1px 8px #000; letter-spacing: 2px; }
.cover-wordmark { position: absolute; bottom: 21px; left: 23px; z-index: 2; font-size: clamp(19px, 2.5vw, 36px); font-family: "Arial Black", "Segoe UI", sans-serif; line-height: 1; font-weight: 900; letter-spacing: -1.4px; color: white; transform: rotate(-3deg); }
.cover-wordmark span { font-size: .68em; letter-spacing: -.5px; }
.fighter-wordmark { text-shadow: 0 2px 12px #12256691; }
.sea-art { background: #173b41; }
.sea-art::after { content: ""; position: absolute; width: 270px; height: 270px; border: 1px solid #f2e3b21c; border-radius: 50%; top: -130px; left: -100px; z-index: -1; }
.sea-sun { position: absolute; width: 175px; height: 175px; left: 22%; top: 23px; border-radius: 50%; background: #dfcc8d; opacity: .92; z-index: -1; }
.sea-waves { position: absolute; width: 100%; height: 100%; inset: 0; z-index: -1; }
.card-art > .sea-character { position: absolute; height: 120%; width: auto; max-width: none; right: 0; bottom: -20%; object-fit: contain; transform: rotate(3deg); filter: drop-shadow(-9px 12px 12px #0c262b66); }
.game-card:hover .card-art > .sea-character { transform: rotate(1deg) scale(1.03); }
.sea-wordmark { color: #f1e8ca; left: 24px; bottom: 25px; font-size: clamp(18px, 2.5vw, 33px); text-shadow: 0 2px 12px #173b41; max-width: 45%; }
.card-art > .sea-logo { position: absolute; width: 56%; height: auto; left: 10px; bottom: 16px; z-index: 2; object-fit: contain; filter: drop-shadow(0 3px 5px #062d35); }
.card-body { padding: 25px 27px 27px; }
.game-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.game-kicker { font: 9px "Consolas", monospace; color: #b6bfae; letter-spacing: 2px; }
.input-label { display: inline-flex; align-items: center; gap: 5px; color: #a6aea0; font-size: 10px; letter-spacing: .3px; }
.input-label svg { width: 16px; height: 16px; }
.game-card h3 { font-size: clamp(23px, 2.3vw, 31px); line-height: 1.4; letter-spacing: -.5px; font-weight: 650; margin: 0 0 12px; }
.title-dot { color: #c2c6ed; margin-left: 4px; }
.sea-card .title-dot { color: var(--accent); }
.game-description { color: var(--muted); font-size: 12px; letter-spacing: .2px; line-height: 1.95; margin: 0; }
.game-tags { display: flex; gap: 8px; list-style: none; padding: 0; margin: 20px 0 24px; }
.game-tags li { border: 1px solid #353e32; border-radius: 4px; padding: 5px 8px; font-size: 9px; color: #b3bdab; letter-spacing: .4px; }
.card-action { border-top: 1px solid var(--line); padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.play-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 44px; background: var(--text); border: 1px solid transparent; color: #1c2119; font-size: 12px; letter-spacing: 1px; font-weight: 600; border-radius: 6px; padding: 12px 17px; min-height: 44px; transition: background .2s; }
.sea-card .play-button { background: var(--accent); }
.game-card:hover .play-button { background: #e6f7bc; }
.play-button svg { width: 19px; height: 19px; transition: transform .2s; }
.game-card:hover .play-button svg { transform: translateX(4px); }
.game-mood { display: inline-flex; align-items: center; gap: 12px; color: #a0aa97; font-size: 10px; letter-spacing: 1px; }
.game-mood span { color: #8d9b80; font-family: sans-serif; font-size: 16px; }
.about-section { display: flex; gap: 33px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 74px; padding-block: 39px; }
.about-symbol { font-family: var(--font); font-size: 66px; line-height: 1; color: var(--accent); padding: 0 14px 0 6px; font-weight: 300; }
.about-copy .eyebrow { font-size: 8px; letter-spacing: 1.8px; color: #a2af95; }
.about-copy h2 { font-size: 22px; letter-spacing: -.2px; font-weight: 600; margin: 9px 0 10px; }
.about-copy > p:last-child { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.9; letter-spacing: .4px; }
.back-to-games { display: grid; place-items: center; margin-left: auto; width: 47px; height: 47px; flex-shrink: 0; border: 1px solid #48543d; border-radius: 50%; color: var(--accent); transition: background .2s; }
.back-to-games:hover { background: #303d26; }
.back-to-games svg { width: 24px; height: 24px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 32px 35px; color: #b0b7a8; }
.footer-name { font-size: 10px; letter-spacing: 1.4px; font-weight: 650; }
.footer-name span { font-family: "Consolas", monospace; font-size: 9px; letter-spacing: 0; color: #808d76; font-weight: 400; margin-left: 16px; }
.footer-signoff { display: flex; align-items: center; gap: 15px; font-size: 10px; letter-spacing: 1px; color: #949e8b; }
.footer-signoff > span { color: var(--accent); font-family: sans-serif; font-size: 16px; }

@media (min-width: 1500px) { .hero { padding-top: 85px; padding-bottom: 88px; } }
@media (max-width: 1100px) {
  .shell { width: calc(100% - 72px); }
  .hero { gap: 10px; }
  .hero-art { transform: scale(.86); transform-origin: center right; }
  .game-grid { gap: 20px; }
  .card-body { padding: 23px; }
  .desktop-break { display: none; }
  .game-description { min-height: 48px; }
  .play-button { gap: 28px; }
  .card-art > .sea-character { right: -5%; }
  .sea-wordmark { font-size: 27px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 40px); }
  .site-header { height: 86px; }
  .brand-mark { width: 27px; height: 27px; }
  .brand { gap: 9px; }
  .brand-name { font-size: 25px; }
  .brand-name span { font-size: 7px; letter-spacing: 2.9px; margin-top: 5px; }
  .main-nav { margin: 0; gap: 24px; }
  .main-nav a { font-size: 11px; }
  .header-note { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 47px; padding-bottom: 50px; position: relative; gap: 0; }
  .hero-copy { z-index: 1; }
  .hero .eyebrow { font-size: 8px; letter-spacing: 1px; }
  .tiny-star { font-size: 15px; }
  h1 { font-size: clamp(45px, 7.6vw, 58px); line-height: 1.35; letter-spacing: -1.8px; margin-top: 21px; margin-bottom: 23px; }
  .hero-description { font-size: 12px; line-height: 1.95; }
  .hero-link { font-size: 11px; gap: 18px; margin-top: 23px; }
  .hero-art { position: absolute; right: 10px; top: 91px; width: 190px; height: 170px; opacity: .16; transform: none; z-index: 0; }
  .controller { width: 175px; transform: rotate(-18deg); }
  .orbit-one { width: 182px; height: 130px; }
  .orbit-two { width: 152px; height: 177px; }
  .spark-one { right: 9px; top: 0; font-size: 30px; }
  .spark-two, .art-sticker, .art-caption { display: none; }
  .section-eyebrow { font-size: 8px; letter-spacing: 1.3px; }
  .section-heading h2 { font-size: 23px; margin-top: 7px; }
  .collection-note { display: none; }
  .collection-toolbar { margin: 21px 0 21px; gap: 10px; }
  .filter { padding: 10px 11px; font-size: 10px; min-height: 42px; }
  .filter span { margin-left: 6px; }
  .filters { gap: 4px; }
  .result-count { font-size: 9px; }
  .game-grid { grid-template-columns: 1fr; gap: 24px; }
  .game-card { border-radius: 13px; }
  .card-art { aspect-ratio: 1.7; }
  .cover-wordmark { font-size: 32px; }
  .card-art > .sea-character { right: 0; }
  .sea-wordmark { font-size: 30px; }
  .card-body { padding: 23px; }
  .game-card h3 { font-size: 27px; }
  .game-description { font-size: 12px; min-height: 0; }
  .game-tags { margin-block: 19px 22px; }
  .game-tags li { font-size: 9px; }
  .play-button { gap: 45px; }
  .about-section { gap: 18px; margin-top: 46px; padding-block: 29px; align-items: flex-start; }
  .about-symbol { font-size: 38px; padding: 19px 0 0; }
  .about-copy .eyebrow { font-size: 7px; letter-spacing: 1.2px; }
  .about-copy h2 { font-size: 17px; line-height: 1.5; margin-top: 8px; }
  .about-copy > p:last-child { font-size: 10px; line-height: 2; }
  .back-to-games { display: none; }
  .site-footer { padding-block: 26px; gap: 14px; }
  .footer-name { font-size: 9px; letter-spacing: 1px; }
  .footer-name span { display: block; margin: 7px 0 0; font-size: 8px; }
  .footer-signoff { font-size: 9px; letter-spacing: .4px; gap: 8px; }
}
@media (max-width: 360px) {
  .shell { width: calc(100% - 32px); }
  .main-nav { gap: 14px; }
  .main-nav a { font-size: 10px; }
  h1 { font-size: 41px; }
  .hero .eyebrow { letter-spacing: .6px; font-size: 7px; }
  .result-count { display: none; }
  .filter { padding-inline: 10px; }
  .game-card h3 { font-size: 24px; }
  .card-body { padding: 20px; }
  .game-mood { gap: 6px; font-size: 9px; }
  .play-button { gap: 30px; }
  .sea-wordmark { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
