/* The shared site shell is supplied by ../pages.css. */
.demos-page {
  --demo-surface: #121926;
  --demo-border: #293446;
  --demo-muted: #aab7ca;
  --demo-blue: #70b0e0;
}
.demos-page [hidden] { display: none !important; }
.demos-page button, .demos-page input, .demos-page select { font: inherit; }
.demos-page button, .demos-page select { cursor: pointer; }
.demos-page h2, .demos-page h3 { font-family: 'Sora', 'Inter', sans-serif; letter-spacing: -0.035em; }
.demos-page .nav-links { gap: 22px; }
.demos-page .nav-links a { position: relative; white-space: nowrap; }
.demos-page .nav-links a[aria-current="page"] { color: var(--accent-ink); }
.demos-page .nav-links a[aria-current="page"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: var(--accent); border-radius: 2px; }
.demos-page .mobile-menu a[aria-current="page"] { color: var(--accent-ink); background: #eef5fc; }
.demos-page .nav-inner { gap: 16px; }
.demos-page .logo { flex-shrink: 0; }
.demos-page .nav-cta { flex-shrink: 0; }
.demos-page .logo-img { object-fit: contain; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.demo-stage { color: #f7f9fc; background: radial-gradient(ellipse at 86% 3%, #112b43 0, transparent 36%), var(--bg-dark); }
.demo-stage :focus-visible { outline: 3px solid #86c5f4; outline-offset: 4px; }
.demo-hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; padding-top: 76px; padding-bottom: 64px; }
.hero-copy { min-width: 0; }
.demo-eyebrow, .section-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.demo-eyebrow { display: flex; align-items: center; gap: 10px; color: #b8cce1; margin-bottom: 24px; }
.status-dot { display: inline-block; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: #60d6a0; }
.demo-eyebrow .status-dot { box-shadow: 0 0 0 4px rgb(96 214 160 / 9%); }
.demo-hero h1 { font-size: clamp(2.8rem, 4.3vw, 4rem); line-height: 1.12; letter-spacing: -.055em; font-weight: 700; }
.demo-hero h1 span { color: #70b0e0; background: linear-gradient(115deg, #70b0e0, #a5d3ef); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-description { max-width: 430px; margin-top: 24px; color: #b8c3d3; font-size: 1.02rem; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 30px; }
.hero-actions .btn { gap: 14px; padding: 14px 24px; }
.hero-aside { color: #aab7ca; font-size: .78rem; }
.featured-demo { position: relative; display: block; min-width: 0; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 18px; border: 1px solid #3b4c5a; isolation: isolate; box-shadow: 0 24px 64px rgb(0 0 0 / 30%); transition: transform .25s ease, border-color .25s ease; }
.featured-demo > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.featured-demo::after { position: absolute; content: ''; inset: 0; background: linear-gradient(180deg, rgb(5 10 17 / 15%), transparent 30%, rgb(5 10 17 / 22%) 48%, rgb(5 10 17 / 96%) 100%); pointer-events: none; }
.featured-top { position: absolute; z-index: 1; inset: 20px 20px auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.featured-label, .quality-badge { padding: 6px 10px; border-radius: 5px; font-size: .65rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.featured-label { background: rgb(8 14 23 / 85%); color: #e0e9f2; border: 1px solid rgb(255 255 255 / 18%); }
.quality-badge { color: #fff; background: #0069a8; }
.featured-caption { position: absolute; z-index: 1; bottom: 26px; left: 26px; right: 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.featured-kicker { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: #c6d3e0; }
.featured-caption h2 { font-size: 2.2rem; line-height: 1.2; margin: 5px 0 8px; }
.featured-caption p { font-size: .76rem; color: #c6d3e0; }
.featured-caption p span { margin: 0 4px; }
.featured-play { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid rgb(255 255 255 / 50%); border-radius: 50%; background: rgb(255 255 255 / 12%); backdrop-filter: blur(8px); flex-shrink: 0; transition: background .2s ease, color .2s ease; }
.featured-play svg { margin-left: 2px; }
.featured-demo:focus-visible .featured-play { background: #fff; color: #0a0d17; }

.demo-proof { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--demo-border); border-bottom: 1px solid var(--demo-border); padding-top: 19px; padding-bottom: 19px; color: #bec9d7; font-size: .8rem; }
.demo-proof > span { display: flex; align-items: center; gap: 10px; }
.demo-proof svg { width: 20px; height: 20px; fill: none; stroke: #78b6df; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.demo-library { padding-top: 58px; padding-bottom: 58px; scroll-margin-top: 85px; }
.library-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.demo-stage .section-kicker { color: #8abfe4; margin-bottom: 10px; }
.library-heading h2 { font-size: clamp(1.65rem, 2.7vw, 2.1rem); line-height: 1.25; }
.channel-link { display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; font-size: .8rem; color: #b8c5d7; white-space: nowrap; }
.channel-link:hover { color: #fff; }
.channel-link > span[aria-hidden] { font-size: 1.25rem; color: #8abfe4; }
.library-tools { display: flex; align-items: center; gap: 20px; padding: 16px; background: rgb(255 255 255 / 2%); border: 1px solid var(--demo-border); border-radius: 12px; }
.demo-search { flex: 1 1 260px; min-width: 160px; position: relative; }
.demo-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); stroke: #9cacc1; stroke-width: 1.7; stroke-linecap: round; pointer-events: none; }
.demo-search input { display: block; width: 100%; min-height: 44px; padding: 10px 12px 10px 42px; border: 1px solid #344154; border-radius: 7px; background: #0a101c; color: #f7f9fc; font-size: .88rem; color-scheme: dark; }
.demo-search input::placeholder { color: #a2b0c3; opacity: 1; }
.resolution-filters { display: flex; align-items: center; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }
.filter-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; border: 1px solid transparent; border-radius: 7px; padding: 9px 13px; background: transparent; color: #b8c5d7; font-size: .8rem !important; font-weight: 600 !important; white-space: nowrap; transition: background .2s ease, border-color .2s ease; }
.filter-button:hover { background: #202b3b; }
.filter-button[aria-pressed="true"] { background: #15334c; border-color: #326289; color: #d3eaff; }
.filter-count { font-size: .68rem; font-weight: 500; opacity: .85; }
.demo-sort { position: relative; margin-left: auto; flex-shrink: 0; }
.demo-sort select { width: 138px; appearance: none; min-height: 44px; padding: 9px 28px 9px 12px; background: #0a101c; color: #c5d0df; border: 1px solid #344154; border-radius: 7px; font-size: .8rem; color-scheme: dark; }
.demo-sort > svg { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); pointer-events: none; color: #9cacc1; }
.library-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #aab7ca; font-size: .73rem; padding: 22px 0 18px; }
.linux-note { display: inline-flex; align-items: center; gap: 7px; }
.linux-note .status-dot { width: 5px; height: 5px; }
.demo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 20px; }
.demo-card { min-width: 0; border: 1px solid var(--demo-border); background: var(--demo-surface); border-radius: 12px; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.demo-card-link { display: flex; flex-direction: column; height: 100%; border-radius: inherit; }
.demo-card-link:focus-visible { outline-offset: 4px; }
.demo-thumbnail { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 11px 11px 0 0; background: #1c293a; }
.demo-thumbnail > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease; }
.demo-thumbnail::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 14%), transparent 40%, rgb(0 0 0 / 25%)); pointer-events: none; }
.card-badges { position: absolute; z-index: 1; inset: 10px 10px auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.linux-badge, .resolution-badge { display: inline-flex; align-items: center; gap: 5px; background: rgb(8 14 23 / 94%); color: #f2f5fa; border: 1px solid rgb(255 255 255 / 18%); border-radius: 4px; padding: 3px 6px; font-size: .6rem; font-weight: 650; letter-spacing: .02em; }
.linux-badge > span { color: #60d6a0; font-size: .42rem; }
.resolution-badge { background: #edf6fc; color: #10334b; border-color: #edf6fc; font-weight: 800; }
.video-duration { position: absolute; z-index: 1; bottom: 9px; right: 9px; background: rgb(8 14 23 / 94%); color: #fff; border-radius: 4px; padding: 2px 5px; font-size: .67rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.card-play { position: absolute; z-index: 1; top: 50%; left: 50%; display: grid; place-items: center; width: 42px; height: 42px; transform: translate(-50%, -50%); border: 1px solid rgb(255 255 255 / 45%); border-radius: 50%; background: rgb(8 14 23 / 65%); color: #fff; opacity: 0; transition: opacity .2s ease; }
.card-play svg { margin-left: 2px; }
.demo-card-link:focus-visible .card-play { opacity: 1; }
.demo-card-body { display: flex; flex: 1; flex-direction: column; padding: 17px 16px 14px; }
.game-genre { color: #9eb8ce; font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-bottom: 9px; }
.demo-card h3 { font-size: .95rem; line-height: 1.45; min-height: 2.9em; color: #f3f6fb; font-weight: 600; }
.game-hardware { margin-top: 9px; margin-bottom: 18px; font-size: .66rem; line-height: 1.6; color: #aebbcf; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; border-top: 1px solid #2a3545; }
.card-bottom time { color: #aab7ca; font-size: .61rem; }
.watch-label { color: #9acbef; font-size: .65rem; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.watch-arrow { font-size: .9rem; line-height: 1; }
.empty-state { padding: 64px 20px; text-align: center; border: 1px dashed #3a4b61; border-radius: 12px; }
.empty-state > svg { stroke: #8abfe4; stroke-width: 1.4; stroke-linecap: round; margin-bottom: 18px; }
.empty-state h3 { font-size: 1.3rem; }
.empty-state p { margin: 10px 0 22px; color: var(--demo-muted); }
.load-controls { display: flex; justify-content: center; padding-top: 36px; }
.load-more { border: 1px solid #3e6587; background: #172c41; color: #d8e9f8; gap: 20px; }
.load-more:hover { background: #203d57; }
#loadSentinel { height: 1px; }
.page-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; font-size: .85rem; }
.page-links:not(:empty) { padding-top: 30px; }
.page-links a { color: #9acbef; padding: 10px; }
.recording-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 30px; color: #aab7ca; font-size: .68rem; line-height: 1.7; }
.recording-note svg { flex-shrink: 0; margin-top: 1px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.noscript-note { margin-top: 20px; color: #c5d0df; font-size: .85rem; }

.demo-next { padding: 60px 0; background: #f7f9fc; border-top: 1px solid #e6e8ec; }
.next-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.demo-next .section-kicker { color: var(--accent-ink); margin-bottom: 12px; }
.demo-next h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.3; }
.demo-next p:not(.section-kicker) { color: var(--text-soft); font-size: .94rem; margin-top: 12px; }
.next-actions { display: flex; align-items: center; flex-direction: column; gap: 12px; flex-shrink: 0; }
.next-actions .btn { gap: 32px; }
.connection-link { color: var(--text-soft); font-size: .79rem; padding: 8px; }
.connection-link:hover { color: var(--accent-ink); }
.connection-link span { margin-left: 6px; }
.demos-page footer { padding-bottom: 100px; }
.demos-page .footer-col a { display: inline-block; padding: 4px 0; }
.demos-page .footer-col li { margin-bottom: 5px; }

@media (hover: hover) {
  .featured-demo:hover { transform: translateY(-3px); border-color: #70b0e0; }
  .featured-demo:hover > img { transform: scale(1.035); }
  .featured-demo:hover .featured-play { background: #fff; color: #0a0d17; }
  .demo-card:hover { transform: translateY(-5px); border-color: #5b92bd; box-shadow: 0 16px 30px rgb(0 0 0 / 24%); }
  .demo-card:hover .demo-thumbnail > img { transform: scale(1.04); }
  .demo-card:hover .card-play { opacity: 1; }
}
@media (hover: none) { .card-play { opacity: 1; width: 36px; height: 36px; } }
@media (min-width: 901px) and (max-width: 1100px) {
  .demos-page .nav-links { gap: 14px; font-size: .82rem; }
  .demos-page .nav-cta > .btn-ghost { display: none; }
  .demo-hero { gap: 32px; }
  .hero-aside { display: none; }
  .library-tools { gap: 12px; }
  .filter-button { padding-left: 10px; padding-right: 10px; }
  .demo-grid { gap: 20px 14px; }
  .demo-card-body { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 900px) {
  .demo-hero { gap: 28px; padding-top: 48px; padding-bottom: 40px; }
  .demo-hero h1 { font-size: clamp(2.1rem, 5vw, 3rem); }
  .demo-eyebrow { font-size: .6rem; letter-spacing: .1em; margin-bottom: 18px; }
  .hero-description { font-size: .9rem; margin-top: 18px; }
  .hero-actions { margin-top: 22px; }
  .hero-actions .btn { font-size: .85rem; padding: 12px 18px; }
  .hero-aside { display: none; }
  .featured-demo { aspect-ratio: 4 / 3; }
  .featured-top { inset: 14px 14px auto; }
  .featured-label, .quality-badge { font-size: .55rem; padding: 5px 7px; }
  .featured-caption { left: 18px; right: 18px; bottom: 18px; gap: 10px; }
  .featured-caption h2 { font-size: 1.6rem; }
  .featured-caption p { font-size: .65rem; }
  .featured-kicker { font-size: .57rem; }
  .featured-play { width: 42px; height: 42px; }
  .demo-proof { font-size: .68rem; gap: 16px; }
  .demo-proof > span { gap: 8px; }
  .demo-proof svg { width: 18px; height: 18px; flex-shrink: 0; }
  .demo-library { padding-top: 40px; padding-bottom: 40px; }
  .library-tools { flex-wrap: wrap; gap: 12px; padding: 12px; }
  .demo-search { flex-basis: 100%; }
  .demo-search input { font-size: 16px; }
  .demo-sort select { font-size: 16px; width: 160px; }
  .demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .demo-card h3 { font-size: 1.05rem; }
  .game-genre { font-size: .65rem; }
  .game-hardware { font-size: .76rem; }
  .card-bottom time, .watch-label { font-size: .72rem; }
  .next-inner { gap: 24px; }
}
@media (max-width: 560px) {
  .demo-hero { grid-template-columns: 1fr; gap: 30px; padding-top: 34px; padding-bottom: 28px; }
  .demo-hero h1 { font-size: clamp(2.7rem, 11vw, 3.3rem); }
  .demo-eyebrow { font-size: .64rem; }
  .hero-description { max-width: 360px; font-size: .95rem; }
  .hero-actions { gap: 14px; }
  .hero-actions .btn { min-height: 48px; font-size: .9rem; }
  .hero-aside { display: block; font-size: .7rem; }
  .featured-demo { aspect-ratio: 16 / 10; }
  .featured-caption h2 { font-size: 1.8rem; }
  .featured-caption p { font-size: .7rem; }
  .featured-label, .quality-badge { font-size: .6rem; }
  .demo-proof { flex-wrap: wrap; gap: 14px 20px; justify-content: flex-start; padding-top: 18px; padding-bottom: 18px; font-size: .72rem; }
  .demo-proof > span { flex: 1 0 43%; }
  .library-heading { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 20px; }
  .library-heading h2 { font-size: 1.7rem; }
  .section-kicker { font-size: .64rem; }
  .channel-link { padding: 4px 0; min-height: 36px; }
  .library-tools { gap: 14px; }
  .resolution-filters { gap: 4px; flex: 1 1 100%; }
  .filter-button { flex: 1; padding-left: 9px; padding-right: 9px; min-height: 44px; }
  .demo-sort { margin-left: 0; width: 100%; }
  .demo-sort select { width: 100%; }
  .library-status { align-items: flex-start; font-size: .66rem; gap: 8px; }
  .demo-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .demo-card-body { padding: 20px; }
  .demo-card h3 { min-height: 0; font-size: 1.1rem; }
  .game-genre { font-size: .65rem; }
  .game-hardware { margin-top: 10px; margin-bottom: 20px; font-size: .78rem; }
  .card-bottom { padding-top: 16px; }
  .card-bottom time, .watch-label { font-size: .75rem; }
  .card-badges { inset: 12px 12px auto; }
  .linux-badge, .resolution-badge { font-size: .68rem; padding: 4px 7px; }
  .video-duration { font-size: .75rem; bottom: 12px; right: 12px; }
  .recording-note { font-size: .7rem; margin-top: 24px; }
  .demo-next { padding: 42px 0; }
  .next-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .next-actions { align-items: flex-start; }
  .connection-link { padding-left: 0; }
  .demos-page .ai-fab { right: 16px; bottom: 16px; }
  .demos-page .to-top { right: 18px; bottom: 82px; }
}
@media (prefers-reduced-motion: reduce) {
  .featured-demo, .demo-card, .featured-demo > img, .demo-thumbnail > img { transform: none !important; }
}
