*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg, #090a0f);
    color: var(--text, #fafafa);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body:not([data-ready]) { opacity: 0; }
body[data-ready]       { opacity: 1; transition: opacity .25s ease; }

img { max-width: 100%; display: block; }

h1, h2, h3, p, figure { margin: 0; }

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

a { color: inherit; text-decoration: none; }

[hidden] { display: none !important; }

::selection {
    background: var(--core);
    color: var(--on-core);
}

:focus-visible {
    outline: 2px solid var(--core-text);
    outline-offset: 3px;
    border-radius: 2px;
}

.sn-sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.sn-noscroll::-webkit-scrollbar { display: none; }
.sn-noscroll { -ms-overflow-style: none; scrollbar-width: none; }

.sn-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sn-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

:root[data-playing="true"]  .sn-icon-play  { display: none; }
:root[data-playing="false"] .sn-icon-pause { display: none; }

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