:root {
    color-scheme: dark;
    /* SocialChess AppColors: chrome, glassText, glassTextSoft, glassTextMeta. */
    --background: #272727;
    --text: #f5f5f5;
    --secondary: #d0d0d0;
    --muted: #b0b0b0;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; text-align: center; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a, button { color: inherit; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--text); outline-offset: 5px; }
.wrap { width: min(560px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 16px; padding: 12px 16px; background: #141414; z-index: 1; }
.skip-link:focus { top: 16px; }
.site-header { padding-block: 32px 24px; }
.brand { width: 270px; margin-inline: auto; }
.store-links { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 auto; max-width: 370px; }
.store-link { display: flex; align-items: center; flex: 1 1 0; min-width: 0; min-height: 44px; border-radius: 9px; }
.store-link img { width: 100%; }
.store-link:hover { opacity: .85; }
.download-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.app-preview { width: 230px; margin: 28px auto 0; padding: 4px; border: 1px solid #ffffff3d; border-radius: 22px; background: #141414; box-shadow: 0 12px 28px #0006; overflow: hidden; }
.preview-screens { display: grid; border-radius: 17px; overflow: hidden; isolation: isolate; }
.preview-screens img { grid-area: 1 / 1; width: 100%; aspect-ratio: 720 / 1564; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.preview-screens img.is-active { opacity: 1; z-index: 1; }
.preview-controls { display: flex; align-items: center; justify-content: center; margin-top: 6px; }
.preview-controls button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.screen-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #858585; }
.screen-dot[aria-pressed='true']::before { background: var(--text); }
.preview-controls button:hover { background: #ffffff0a; }
.preview-toggle svg { width: 14px; height: 14px; fill: var(--muted); }
.preview-toggle[data-paused='false'] .play-icon, .preview-toggle[data-paused='true'] .pause-icon { display: none; }
.site-footer { padding-block: 16px calc(20px + env(safe-area-inset-bottom)); }
.site-footer nav { display: flex; justify-content: center; gap: 28px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 12px; text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
@media (max-width: 600px) {
    .site-header { padding-block: 24px 20px; }
    .brand { width: 220px; }
    .store-links { gap: 10px; max-width: 350px; }
    .app-preview { width: min(55vw, 220px); margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .preview-screens img { transition: none; }
}
