* { margin: 0; padding: 0; box-sizing: border-box; }

    html, body {
        min-height: 100vh;
    }

    body {
        background: #050505;
        color: #d8d0c8;
        font-family: 'Cormorant Garamond', 'Times New Roman', serif;
        padding: 0;
        position: relative;
        overflow-x: hidden;
    }

    /* ============================================
       ФОНОВЫЕ СЛОИ
       ============================================ */
    .bg {
        position: fixed;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        overflow: hidden;
    }

    /* глубокий кровавый градиент */
    .bg::before {
        content: '';
        position: absolute;
        inset: 0;
        background:
            radial-gradient(ellipse at 20% 10%, rgba(140, 0, 0, 0.4) 0%, transparent 45%),
            radial-gradient(ellipse at 80% 90%, rgba(80, 0, 0, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse at 50% 50%, #0a0505 0%, #000 90%);
    }

    /* японский вертикальный текст */
    .kanji-col {
        position: absolute;
        font-family: 'Noto Serif JP', serif;
        font-weight: 900;
        color: #6a0000;
        opacity: 0.18;
        writing-mode: vertical-rl;
        font-size: clamp(40px, 8vw, 110px);
        letter-spacing: 0.15em;
        line-height: 1;
        text-shadow: 0 0 40px rgba(200, 0, 0, 0.4);
        user-select: none;
    }

    .kanji-col.k1 { top: 8%; left: 3%; }
    .kanji-col.k2 { top: 20%; right: 4%; color: #8a1010; opacity: 0.14; }
    .kanji-col.k3 { bottom: 12%; left: 6%; color: #4a0000; opacity: 0.22; font-size: clamp(30px, 6vw, 80px); }
    .kanji-col.k4 { bottom: 8%; right: 8%; color: #8a0000; opacity: 0.16; }

    /* чернильные брызги */
    .splat {
        position: absolute;
        pointer-events: none;
        opacity: 0.55;
    }

    .splat.s1 {
        top: -60px;
        right: -80px;
        width: 420px;
        height: 420px;
        background: radial-gradient(circle at 40% 60%,
            rgba(180, 0, 0, 0.9) 0%,
            rgba(120, 0, 0, 0.6) 20%,
            transparent 55%);
        filter: blur(2px);
        transform: rotate(20deg);
    }

    .splat.s2 {
        bottom: -120px;
        left: -100px;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle at 60% 40%,
            rgba(80, 0, 0, 0.9) 0%,
            rgba(40, 0, 0, 0.5) 30%,
            transparent 60%);
        filter: blur(3px);
    }

    /* мелкие капли */
    .drop {
        position: absolute;
        background: #8a0000;
        border-radius: 50%;
        opacity: 0.7;
        box-shadow: 0 0 15px rgba(200, 0, 0, 0.6);
    }

    .drop.d1 { width: 6px; height: 6px; top: 22%; right: 18%; }
    .drop.d2 { width: 4px; height: 4px; top: 25%; right: 15%; opacity: 0.5; }
    .drop.d3 { width: 10px; height: 10px; top: 28%; right: 12%; opacity: 0.6; }
    .drop.d4 { width: 3px; height: 3px; top: 32%; right: 20%; }
    .drop.d5 { width: 5px; height: 5px; bottom: 30%; left: 10%; opacity: 0.4; }
    .drop.d6 { width: 8px; height: 8px; bottom: 25%; left: 6%; opacity: 0.5; }

    /* зернистость */
    .grain {
        position: fixed;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        opacity: 0.08;
        background-image: url("/assets/img/friends/curse-n-dreams/noise.svg");
    }

    /* ============================================
       КОНТЕНТ
       ============================================ */
    .wrap {
        position: relative;
        z-index: 2;
        max-width: 1100px;
        margin: 0 auto;
        padding: 60px 30px 80px;
    }

    /* ============================================
       ВЕРХНЯЯ СТРОКА
       ============================================ */
    .top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(180, 0, 0, 0.4);
        margin-bottom: 60px;
        font-family: 'JetBrains Mono', monospace;
        font-size: 11px;
        letter-spacing: 4px;
        color: #6a5a55;
        text-transform: uppercase;
    }

    .top-bar .vial {
        display: inline-flex;
        align-items: center;
        gap: 10px;
    }

    .top-bar .vial::before {
        content: '';
        width: 8px;
        height: 8px;
        background: #d00000;
        border-radius: 50%;
        box-shadow: 0 0 12px #ff0000, 0 0 4px #ff0000;
        animation: pulse 2s ease-in-out infinite;
    }

    @keyframes pulse {
        0%, 100% { opacity: 1; transform: scale(1); }
        50% { opacity: 0.5; transform: scale(0.85); }
    }

    /* ============================================
       ГЕРОЙ
       ============================================ */
    .hero {
        margin-bottom: 80px;
        position: relative;
    }

    /* маленькая подпись "реальное имя" */
    .hero-real {
        font-family: 'JetBrains Mono', monospace;
        font-size: 12px;
        letter-spacing: 6px;
        color: #8a0000;
        text-transform: uppercase;
        margin-bottom: 12px;
    }

    .hero-real::before {
        content: '// ';
        color: #4a0000;
    }

    /* главное имя */
    .hero-title {
        font-family: 'Cormorant Garamond', serif;
        font-weight: 900;
        font-size: clamp(52px, 12vw, 150px);
        line-height: 0.85;
        letter-spacing: -3px;
        color: #e8e0d8;
        text-shadow:
            0 0 40px rgba(180, 0, 0, 0.5),
            0 0 80px rgba(120, 0, 0, 0.3),
            3px 3px 0 rgba(140, 0, 0, 0.8);
        margin-bottom: 24px;
        position: relative;
    }

    /* обводка-кровь на имени */
    .hero-title .accent {
        color: #d00000;
        font-style: italic;
        font-family: 'Noto Serif JP', serif;
        font-weight: 400;
    }

    /* вторая строка — эпитет */
    .hero-sub {
        display: flex;
        align-items: center;
        gap: 20px;
        font-family: 'Noto Serif JP', serif;
        font-weight: 400;
        font-size: clamp(16px, 2vw, 22px);
        color: #a89890;
        letter-spacing: 8px;
        margin-top: 20px;
    }

    .hero-sub::before,
    .hero-sub::after {
        content: '';
        height: 1px;
        background: linear-gradient(90deg, transparent, #8a0000, transparent);
        flex: 1;
    }

    .hero-sub::before { max-width: 120px; }
    .hero-sub::after { max-width: 120px; flex: 0; width: 120px; }

    /* теги */
    .tags {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 34px;
    }

    .tag {
        padding: 8px 18px;
        border: 1px solid rgba(180, 0, 0, 0.5);
        background: rgba(60, 0, 0, 0.25);
        color: #d8c0b8;
        font-family: 'JetBrains Mono', monospace;
        font-size: 11px;
        letter-spacing: 3px;
        text-transform: uppercase;
        position: relative;
        backdrop-filter: blur(8px);
    }

    .tag::before {
        content: '§';
        color: #8a0000;
        margin-right: 8px;
    }

    /* ============================================
       ОСНОВНАЯ СЕТКА ДОСЬЕ
       ============================================ */
    .dossier {
        display: grid;
        grid-template-columns: 1fr 1.6fr;
        gap: 40px;
        margin-bottom: 60px;
    }

    @media (max-width: 820px) {
        .dossier { grid-template-columns: 1fr; gap: 30px; }
    }

    /* ---- ЛЕВАЯ: карточка-портрет ---- */
    .portrait-card {
        background: linear-gradient(180deg, rgba(20, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.95) 100%);
        border: 1px solid rgba(140, 0, 0, 0.4);
        padding: 28px 26px;
        position: relative;
        overflow: hidden;
        box-shadow:
            0 0 60px rgba(80, 0, 0, 0.4) inset,
            0 0 30px rgba(140, 0, 0, 0.15);
    }

    /* декоративный уголок */
    .portrait-card::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 60px;
        height: 60px;
        background:
            linear-gradient(225deg, transparent 50%, #8a0000 50%);
        opacity: 0.6;
    }

    .portrait-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(140, 0, 0, 0.3);
        margin-bottom: 22px;
        font-family: 'JetBrains Mono', monospace;
        font-size: 10px;
        letter-spacing: 3px;
        color: #8a0000;
        text-transform: uppercase;
    }

    /* маска-заглушка */
    .mask {
        aspect-ratio: 1;
        background:
            radial-gradient(circle at 50% 40%, rgba(60, 0, 0, 0.6) 0%, rgba(0, 0, 0, 1) 70%);
        border: 1px solid rgba(140, 0, 0, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 22px;
        position: relative;
        overflow: hidden;
    }

    .mask::before {
        content: '';
        position: absolute;
        inset: 0;
        background:
            repeating-linear-gradient(
                45deg,
                rgba(140, 0, 0, 0.06) 0px,
                rgba(140, 0, 0, 0.06) 2px,
                transparent 2px,
                transparent 14px
            );
    }

    .mask-eye {
        font-family: 'Noto Serif JP', serif;
        font-size: 60px;
        color: #d00000;
        text-shadow: 0 0 30px #ff0000, 0 0 60px #8a0000;
        z-index: 1;
        line-height: 1;
        animation: eye 4s ease-in-out infinite;
    }

    @keyframes eye {
        0%, 90%, 100% { opacity: 1; }
        93%, 95% { opacity: 0.2; }
    }

    /* строчки характеристик */
    .attr {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        padding: 10px 0;
        border-bottom: 1px dotted rgba(140, 0, 0, 0.25);
    }

    .attr:last-child { border-bottom: none; }

    .attr-key {
        font-family: 'JetBrains Mono', monospace;
        font-size: 10px;
        letter-spacing: 3px;
        color: #7a5a55;
        text-transform: uppercase;
    }

    .attr-val {
        font-family: 'Cormorant Garamond', serif;
        font-size: 20px;
        font-weight: 700;
        color: #e8d0c8;
        letter-spacing: 1px;
    }

    .attr-val.red {
        color: #d00000;
        text-shadow: 0 0 15px rgba(200, 0, 0, 0.6);
    }

    .attr-val.dim {
        color: #5a4a45;
        font-style: italic;
    }

    /* ---- ПРАВАЯ: досье-манифест ---- */
    .file {
        background: rgba(10, 5, 5, 0.5);
        border: 1px solid rgba(80, 0, 0, 0.4);
        padding: 34px 36px;
        backdrop-filter: blur(10px);
        position: relative;
    }

    .file-head {
        font-family: 'JetBrains Mono', monospace;
        font-size: 11px;
        letter-spacing: 6px;
        color: #8a0000;
        text-transform: uppercase;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .file-head::after {
        content: '';
        flex: 1;
        height: 1px;
        background: linear-gradient(90deg, #8a0000, transparent);
    }

    .file-text {
        font-size: 19px;
        line-height: 1.65;
        color: #b8a8a0;
        margin-bottom: 22px;
        font-style: italic;
    }

    .file-text strong {
        color: #d00000;
        font-style: normal;
        font-weight: 700;
        letter-spacing: 0.5px;
    }

    .file-text .dim {
        color: #6a5550;
    }

    /* цитата-эпиграф */
    .quote {
        margin-top: 30px;
        padding: 20px 0 20px 24px;
        border-left: 3px solid #d00000;
        font-family: 'Cormorant Garamond', serif;
        font-size: 22px;
        font-style: italic;
        color: #e8d0c8;
        line-height: 1.4;
        position: relative;
    }

    .quote::before {
        content: '「';
        position: absolute;
        top: -10px;
        left: -6px;
        font-family: 'Noto Serif JP', serif;
        font-size: 40px;
        color: #8a0000;
        opacity: 0.6;
    }

    /* ============================================
       БЛОК С КИСЛОТОЙ (справка)
       ============================================ */
    .acid-block {
        border: 1px solid rgba(140, 0, 0, 0.5);
        background:
            linear-gradient(180deg, rgba(20, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.9) 100%),
            repeating-linear-gradient(
                90deg,
                rgba(140, 0, 0, 0.04) 0px,
                rgba(140, 0, 0, 0.04) 40px,
                transparent 40px,
                transparent 41px
            );
        padding: 40px 36px;
        margin-bottom: 60px;
        position: relative;
        overflow: hidden;
    }

    .acid-block::before {
        content: 'Rc 細胞';
        position: absolute;
        top: -20px;
        right: 20px;
        font-family: 'Noto Serif JP', serif;
        font-weight: 900;
        font-size: 100px;
        color: #8a0000;
        opacity: 0.06;
        letter-spacing: 0.1em;
        pointer-events: none;
    }

    .acid-title {
        font-family: 'Cormorant Garamond', serif;
        font-weight: 900;
        font-size: clamp(32px, 5vw, 52px);
        color: #e8d0c8;
        letter-spacing: -1px;
        line-height: 1;
        margin-bottom: 8px;
    }

    .acid-sub {
        font-family: 'Noto Serif JP', serif;
        font-size: 14px;
        letter-spacing: 8px;
        color: #8a0000;
        margin-bottom: 30px;
    }

    .acid-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 24px;
        position: relative;
        z-index: 1;
    }

    .acid-item {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 18px 0;
        border-top: 1px solid rgba(140, 0, 0, 0.3);
    }

    .acid-item-key {
        font-family: 'JetBrains Mono', monospace;
        font-size: 10px;
        letter-spacing: 3px;
        color: #6a4a45;
        text-transform: uppercase;
    }

    .acid-item-val {
        font-family: 'Cormorant Garamond', serif;
        font-size: 26px;
        font-weight: 700;
        color: #e8d0c8;
        letter-spacing: 0.5px;
        line-height: 1.1;
    }

    .acid-item-val em {
        font-style: italic;
        color: #a8a09a;
        font-size: 18px;
        font-weight: 400;
        display: block;
        margin-top: 4px;
    }

    /* ============================================
       ФИНАЛЬНАЯ ПЛАШКА
       ============================================ */
    .final {
        text-align: center;
        padding: 50px 20px;
        position: relative;
    }

    .final::before,
    .final::after {
        content: '';
        display: block;
        width: 1px;
        height: 40px;
        background: linear-gradient(180deg, transparent, #8a0000, transparent);
        margin: 0 auto;
    }

    .final::before { margin-bottom: 30px; }
    .final::after { margin-top: 30px; }

    .final-mark {
        font-family: 'Noto Serif JP', serif;
        font-weight: 900;
        font-size: 44px;
        color: #8a0000;
        letter-spacing: 0.2em;
        text-shadow: 0 0 40px rgba(200, 0, 0, 0.5);
        line-height: 1;
    }

    .final-sub {
        font-family: 'JetBrains Mono', monospace;
        font-size: 11px;
        letter-spacing: 8px;
        color: #5a4a45;
        text-transform: uppercase;
        margin-top: 18px;
    }

    /* ============================================
       ПОДВАЛ
       ============================================ */
    .footer {
        margin-top: 40px;
        padding-top: 24px;
        border-top: 1px solid rgba(140, 0, 0, 0.2);
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 14px;
        font-family: 'JetBrains Mono', monospace;
        font-size: 10px;
        letter-spacing: 4px;
        color: #3a2a28;
        text-transform: uppercase;
    }


/* v2: living background instead of static decoration */
.bg::before {
    inset: -12%;
    background:
        radial-gradient(ellipse at 18% 12%, rgba(155, 0, 0, 0.42) 0%, transparent 38%),
        radial-gradient(ellipse at 82% 80%, rgba(90, 0, 0, 0.36) 0%, transparent 42%),
        radial-gradient(ellipse at 55% 46%, rgba(65, 0, 0, 0.18) 0%, transparent 34%),
        radial-gradient(ellipse at 50% 50%, #0a0505 0%, #000 82%);
    animation: blood-drift 18s ease-in-out infinite alternate;
}
.bg::after {
    content: '';
    position: absolute;
    width: 58vw;
    height: 58vw;
    min-width: 420px;
    min-height: 420px;
    top: 14%;
    left: 22%;
    border-radius: 45% 55% 52% 48%;
    background:
        radial-gradient(circle at 35% 40%, rgba(190,0,0,.12), transparent 42%),
        radial-gradient(circle at 68% 62%, rgba(110,0,0,.13), transparent 36%);
    filter: blur(26px);
    animation: acid-orbit 24s linear infinite;
}
.kanji-col.k1, .kanji-col.k3 { animation: kanji-float-a 13s ease-in-out infinite alternate; }
.kanji-col.k2, .kanji-col.k4 { animation: kanji-float-b 16s ease-in-out infinite alternate; }
.splat.s1 { animation: splat-breathe 10s ease-in-out infinite alternate; }
.splat.s2 { animation: splat-breathe 14s ease-in-out infinite alternate-reverse; }

@keyframes blood-drift {
    0% { transform: translate3d(-2%, -1%, 0) scale(1.02); }
    50% { transform: translate3d(2%, 1.5%, 0) scale(1.06); }
    100% { transform: translate3d(-1%, 2%, 0) scale(1.03); }
}
@keyframes acid-orbit {
    from { transform: rotate(0deg) translateX(3%) rotate(0deg); }
    to { transform: rotate(360deg) translateX(3%) rotate(-360deg); }
}
@keyframes kanji-float-a {
    from { transform: translateY(-8px) rotate(-1deg); opacity: .13; }
    to { transform: translateY(18px) rotate(1deg); opacity: .22; }
}
@keyframes kanji-float-b {
    from { transform: translateY(12px) rotate(1deg); opacity: .12; }
    to { transform: translateY(-16px) rotate(-1deg); opacity: .2; }
}
@keyframes splat-breathe {
    from { transform: scale(.96) rotate(18deg); opacity: .42; }
    to { transform: scale(1.08) rotate(23deg); opacity: .62; }
}


.twitch-link {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 14px;
    padding: 12px 16px;
    border: 1px solid rgba(170, 20, 20, .46);
    background: rgba(115, 0, 0, .12);
    color: #d8d0c8;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    transition: background .18s ease, transform .18s ease, border-color .18s ease;
}
.twitch-link:hover,
.twitch-link:focus-visible {
    transform: translateY(-2px);
    background: rgba(150, 0, 0, .18);
    border-color: rgba(210, 30, 30, .72);
    outline: none;
}
.twitch-link-main {
    color: #d8d0c8;
    font-size: 12px;
    letter-spacing: 1px;
}
.twitch-link-sub {
    color: #795d59;
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Refinement: keep the dossier atmosphere, make it survive real screens. */
.site-back {
    position: relative; z-index: 3; width: min(1100px, calc(100% - 60px)); margin: 24px auto -28px;
    font-family: 'JetBrains Mono', monospace;
}
.site-back a {
    display: inline-flex; align-items: center; min-height: 38px; padding: 8px 12px;
    border: 1px solid rgba(140,0,0,.5); background: rgba(5,5,5,.72); color: #8a6a64;
    text-decoration: none; font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
    backdrop-filter: blur(8px);
}
.site-back a:hover { color: #d00000; border-color: #8a0000; }
.site-back a:focus-visible { outline: 2px solid #d00000; outline-offset: 4px; }
.hero-title, .file-text, .acid-item-val { overflow-wrap: anywhere; }
.hero-title { text-wrap: balance; }
.attr { gap: 18px; }
.attr-val { text-align: right; overflow-wrap: anywhere; }
@media (max-width: 820px) {
    .site-back { width: calc(100% - 36px); margin-top: 18px; margin-bottom: -20px; }
}
@media (max-width: 520px) {
    .wrap { padding: 44px 16px 56px; }
    .top-bar { letter-spacing: 2px; gap: 10px; flex-wrap: wrap; margin-bottom: 44px; }
    .hero { margin-bottom: 58px; }
    .hero-real { letter-spacing: 3px; }
    .hero-title { font-size: clamp(43px, 15vw, 74px); letter-spacing: -2px; }
    .hero-sub { letter-spacing: 4px; gap: 10px; }
    .tags { gap: 7px; }
    .tag { letter-spacing: 1.5px; }
    .portrait-card, .file, .acid-block { padding-inline: 20px; }
    .attr { align-items: flex-start; }
    .attr-key { letter-spacing: 2px; }
    .attr-val { font-size: 18px; max-width: 55%; }
    .file-text { font-size: 17px; }
    .acid-grid { grid-template-columns: 1fr; gap: 10px; }
    .acid-sub, .final-sub { letter-spacing: 4px; }
    .footer { letter-spacing: 2px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}


/* v5 avatar: deliberately stretch the source to fill the portrait area. */
.avatar-mask {
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    padding: 0 !important;
    overflow: hidden !important;
    display: block !important;
    background: #050000 !important;
}
.avatar-mask::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    pointer-events: none !important;
    background:
        linear-gradient(to bottom, rgba(0,0,0,.02), rgba(0,0,0,.12)),
        repeating-linear-gradient(45deg, rgba(140,0,0,.025) 0 2px, transparent 2px 14px) !important;
}
.avatar-mask img {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: fill !important;
    object-position: center !important;
    filter: contrast(1.03) saturate(.95) !important;
}




/* v6 background polish: softer red glow, less attention-grabbing blur circles, calmer kanji motion */
.bg {
    isolation: isolate;
    overflow: hidden;
}

.bg::before {
    inset: -8% !important;
    background:
        radial-gradient(ellipse at 16% 18%, rgba(120, 0, 0, 0.20) 0%, rgba(120, 0, 0, 0.12) 16%, transparent 50%),
        radial-gradient(ellipse at 84% 22%, rgba(135, 0, 0, 0.13) 0%, transparent 48%),
        radial-gradient(ellipse at 18% 82%, rgba(110, 0, 0, 0.12) 0%, transparent 52%),
        radial-gradient(ellipse at 82% 86%, rgba(125, 0, 0, 0.11) 0%, transparent 54%),
        radial-gradient(circle at 50% 48%, rgba(90, 0, 0, 0.10) 0%, transparent 42%),
        radial-gradient(ellipse at 50% 50%, #090303 0%, #000 84%) !important;
    animation: bg-breath 26s ease-in-out infinite alternate !important;
}

.bg::after {
    content: '' !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 118vmax !important;
    height: 118vmax !important;
    min-width: 1080px !important;
    min-height: 1080px !important;
    transform: translate(-50%, -50%) !important;
    border-radius: 50% !important;
    background:
        radial-gradient(circle at 50% 50%, rgba(150, 0, 0, 0.06) 0%, rgba(120, 0, 0, 0.045) 22%, rgba(90, 0, 0, 0.02) 42%, transparent 68%) !important;
    filter: blur(72px) !important;
    opacity: .85 !important;
    animation: halo-drift 34s ease-in-out infinite alternate !important;
}

.splat {
    opacity: 0.18 !important;
}
.splat.s1 {
    top: -14% !important;
    right: -10% !important;
    width: 34vw !important;
    height: 34vw !important;
    min-width: 340px !important;
    min-height: 340px !important;
    background: radial-gradient(circle at 48% 54%, rgba(135, 0, 0, 0.32) 0%, rgba(95, 0, 0, 0.16) 28%, transparent 64%) !important;
    filter: blur(28px) !important;
}
.splat.s2 {
    bottom: -16% !important;
    left: -12% !important;
    width: 38vw !important;
    height: 38vw !important;
    min-width: 380px !important;
    min-height: 380px !important;
    background: radial-gradient(circle at 56% 42%, rgba(105, 0, 0, 0.26) 0%, rgba(65, 0, 0, 0.12) 30%, transparent 66%) !important;
    filter: blur(32px) !important;
}

.drop {
    opacity: .34 !important;
    box-shadow: 0 0 10px rgba(170, 0, 0, 0.28) !important;
}

.kanji-col {
    opacity: .10 !important;
    text-shadow: 0 0 22px rgba(145, 0, 0, 0.18) !important;
    filter: blur(.15px);
}
.kanji-col.k1 { opacity: .09 !important; }
.kanji-col.k2 { opacity: .08 !important; }
.kanji-col.k3 { opacity: .11 !important; }
.kanji-col.k4 { opacity: .09 !important; }

.kanji-col.k1, .kanji-col.k3 {
    animation: kanji-drift-a 18s ease-in-out infinite alternate !important;
}
.kanji-col.k2, .kanji-col.k4 {
    animation: kanji-drift-b 22s ease-in-out infinite alternate !important;
}

@keyframes bg-breath {
    0%   { transform: translate3d(-1.2%, -0.8%, 0) scale(1.01); }
    50%  { transform: translate3d(1%, 1.1%, 0) scale(1.035); }
    100% { transform: translate3d(-0.4%, 1.5%, 0) scale(1.02); }
}

@keyframes halo-drift {
    0%   { transform: translate(-50%, -50%) scale(0.98); opacity: .72; }
    50%  { transform: translate(-49%, -51%) scale(1.02); opacity: .88; }
    100% { transform: translate(-51%, -49%) scale(1.00); opacity: .78; }
}

@keyframes kanji-drift-a {
    0%   { transform: translate3d(0, -10px, 0) rotate(-0.6deg); }
    50%  { transform: translate3d(4px, 4px, 0) rotate(0deg); }
    100% { transform: translate3d(-2px, 14px, 0) rotate(0.6deg); }
}

@keyframes kanji-drift-b {
    0%   { transform: translate3d(0, 8px, 0) rotate(0.5deg); }
    50%  { transform: translate3d(-3px, -2px, 0) rotate(0deg); }
    100% { transform: translate3d(2px, -12px, 0) rotate(-0.5deg); }
}

@keyframes splat-breathe {
    from { transform: scale(.985) rotate(18deg); opacity: .14; }
    to   { transform: scale(1.025) rotate(21deg); opacity: .20; }
}

@media (max-width: 900px) {
    .bg::after {
        width: 130vmax !important;
        height: 130vmax !important;
        min-width: 900px !important;
        min-height: 900px !important;
        filter: blur(64px) !important;
    }
    .splat.s1, .splat.s2 {
        opacity: .14 !important;
    }
    .kanji-col { opacity: .075 !important; }
}

/* 0.8.2.1 mobile typography hotfix */
@media (max-width: 560px) {
  .hero-title {
    font-size: clamp(40px, 12.8vw, 66px) !important;
    letter-spacing: -1.5px !important;
    white-space: nowrap;
    overflow-wrap: normal !important;
    word-break: normal;
    text-wrap: nowrap;
  }
  .hero-sub { font-size: 14px; letter-spacing: 3px; }
  .hero { margin-bottom: 48px; }
}
@media (max-width: 360px) {
  .hero-title { font-size: clamp(35px, 11.8vw, 46px) !important; }
  .tag { padding-inline: 9px; }
}

/* 0.8.2.1 mobile typography hotfix */
@media (max-width: 560px) {
  .hero-title {
    font-size: clamp(40px, 12.8vw, 66px) !important;
    letter-spacing: -1.5px !important;
    white-space: nowrap;
    overflow-wrap: normal !important;
    word-break: normal;
    text-wrap: nowrap;
  }
  .hero-sub { font-size: 14px; letter-spacing: 3px; }
  .hero { margin-bottom: 48px; }
}
@media (max-width: 360px) {
  .hero-title { font-size: clamp(35px, 11.8vw, 46px) !important; }
  .tag { padding-inline: 9px; }
}
