/* @font-face {
    font-family: 'Ninja NarutoRUS';
    src: url('../fonts/') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
} */

:root {
    --site-dark: #0e0708;
    --site-navy: #1b1d29;
    --site-brown: #693a1c;
    --site-accent: #d76f17;
    --site-accent-hover: #f28a2c;
    --site-accent-active: #a85510;
    color-scheme: dark;
}

html {
    scroll-padding-top: 110px;
}

body {
    color: #fff;
    background-color: var(--site-dark);
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(215, 111, 23, 0.22), transparent 55%),
        radial-gradient(ellipse at 100% 100%, rgba(105, 58, 28, 0.35), transparent 50%),
        linear-gradient(180deg, var(--site-navy) 0%, var(--site-dark) 100%);
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body,
.navbar,
footer {
    transition: background-color 0.3s ease, filter 0.3s ease, border-color 0.3s ease;
}

header {
    top: 15px;
}

.navbar,
footer {
    background-color: var(--site-dark);
    border: 1px solid rgba(215, 111, 23, 0.25);
}

.navbar {
    --bs-navbar-color: rgba(255, 255, 255, 0.75);
    --bs-navbar-hover-color: var(--site-accent-hover);
    --bs-navbar-active-color: var(--site-accent);
    --bs-navbar-brand-color: #fff;
    --bs-navbar-brand-hover-color: var(--site-accent-hover);
    --bs-navbar-toggler-border-color: rgba(255, 255, 255, 0.1);
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-brand:active {
    color: var(--site-accent-active);
}

.navbar .nav-link {
    transition: color 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus-visible {
    color: var(--site-accent-hover);
}

.navbar .nav-link:active {
    color: var(--site-accent-active);
}

a:focus-visible,
.navbar-toggler:focus-visible,
.btn-close:focus-visible {
    outline: 2px solid var(--site-accent);
    outline-offset: 2px;
}

.offcanvas {
    --bs-offcanvas-bg: var(--site-dark);
    --bs-offcanvas-color: #fff;
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.naruto-fonts {
    font-family: 'Ninja NarutoRUS', var(--bs-body-font-family);
}

.text-accent {
    color: var(--site-accent);
}

.btn-download {
    --bs-btn-color: var(--site-dark);
    --bs-btn-bg: var(--site-accent);
    --bs-btn-hover-color: var(--site-dark);
    --bs-btn-hover-bg: var(--site-accent-hover);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--site-accent-active);
    --bs-btn-focus-shadow-rgb: 242, 138, 44;
}

.social-link {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
    color: var(--site-accent-hover);
}

.social-link:active {
    color: var(--site-accent-active);
}

@media (max-width: 425px) {
    .header-title {
        font-size: 18px;
    }
}

@media (max-width: 398px) {
    .navbar>.container-fluid {
        flex-direction: column;
        align-items: stretch;
        row-gap: 10px;
    }

    .navbar-toggler {
        --bs-navbar-toggler-padding-y: 0;
    }
}

@media (max-width: 375px) {
    .header-title {
        font-size: 16px;
    }
}


/* ===== фишки: снег и герои (исходные стили выше не менялись) ===== */
#snow {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

main,
footer {
    position: relative;
    z-index: 1;
}

.stage {
    --c: #ff9a1f;
    position: relative;
    width: min(80vw, 360px);
    aspect-ratio: 1;
    margin: 0 auto;
}

.stage-bg {
    position: absolute;
    inset: 8% 4% 4% 12%;
    border: 2px solid var(--c);
    border-radius: 50%;
    background: color-mix(in srgb, var(--c) 15%, var(--site-dark));
}

#hero {
    position: absolute;
    z-index: 1;
    left: -3%;
    bottom: 0;
    width: 100%;
    height: auto;
    -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 84%, transparent 100%);
}

#hero.in {
    animation: pop 0.4s ease-out;
}

@keyframes pop {
    from { opacity: 0; scale: 0.7; }
    to { opacity: 1; scale: 1; }
}

.puffs {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.puff {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90px;
    height: 90px;
    margin: -45px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff, #cfd3dc 60%, transparent 72%);
    animation: puff 0.7s ease-out forwards;
}

@keyframes puff {
    to { transform: translate(var(--x), var(--y)) scale(2.2); opacity: 0; }
}

.info {
    min-height: 92px;
}

.info h3 {
    color: var(--c, #fff);
}

.info q {
    font-style: italic;
    quotes: "«" "»";
}

.roster button {
    width: 58px;
    height: 58px;
    padding: 0;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: var(--site-navy);
    cursor: pointer;
}

.roster button:hover {
    border-color: var(--site-accent-hover);
}

.roster button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.roster button[aria-pressed="true"] {
    border-color: var(--site-accent);
    background: var(--site-brown);
}

.roster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}

.stage {
    cursor: crosshair;
    user-select: none;
    touch-action: manipulation;
}

.shuriken {
    position: absolute;
    z-index: 3;
    width: 30px;
    height: 30px;
    margin: -15px;
    pointer-events: none;
    color: #c9ced8;
    filter: drop-shadow(0 2px 3px #000);
}

.dmg {
    position: absolute;
    z-index: 4;
    translate: -50% -50%;
    color: #ff5a4d;
    font-size: 1.4rem;
    font-weight: 800;
    text-shadow: 0 2px 0 #000;
    pointer-events: none;
    animation: dmg 0.8s ease-out forwards;
}

@keyframes dmg {
    to { transform: translateY(-44px); opacity: 0; }
}

#hero.hit {
    animation: hit 0.25s linear;
}

@keyframes hit {
    25% { translate: -7px 0; }
    75% { translate: 7px 0; }
}

#hero.down {
    transform-origin: 50% 100%;
    filter: grayscale(1) brightness(0.55);
    rotate: 8deg;
    transition: filter 0.3s ease, rotate 0.3s ease;
}

.hp {
    width: 200px;
    height: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.5);
}

.hp .progress-bar {
    transition: width 0.25s ease, background-color 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

.season-toggle {
    padding: 0;
    border: 0;
    background: none;
    font-size: inherit;
    line-height: inherit;
    cursor: pointer;
}

.season-toggle[aria-pressed="false"] {
    opacity: 0.4;
}

/* узкие экраны (проверено до 280px): ряд героев не шире экрана, длинный текст переносится */
.game {
    width: 100%;
    min-width: 0;
    overflow-x: clip; /* сюрикэн, влетающий снаружи, и упавший герой не растягивают страницу вбок */
}

.info q {
    overflow-wrap: anywhere;
}

.roster {
    flex-wrap: wrap;
}

.roster button {
    width: clamp(40px, 15vw, 58px);
    height: clamp(40px, 15vw, 58px);
}
