@import url('https://fonts.googleapis.com/css2?family=Shojumaru&family=Saira:wght@400;700&display=swap');

body {
    font-family: 'Saira', sans-serif;
    background-color: #1c1917;
    color: #fca5a5;
    overflow-x: hidden
}

.font-ninja {
    font-family: 'Shojumaru', cursive
}

.dojo-bg {
    background: url('https://images.unsplash.com/photo-1547841571-0819777174db?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    position: relative
}

.tatami {
    background: linear-gradient(#fcd34d 2px, transparent 2px), linear-gradient(90deg, #fcd34d 2px, transparent 2px);
    background-size: 100px 100px;
    opacity: 0.1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%
}

.scroll-container {
    background: #fef3c7;
    color: #000;
    padding: 40px;
    width: 300px;
    margin: 20px auto;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-top: 10px solid #78350f;
    border-bottom: 10px solid #78350f
}

.scroll-container::before {
    content: '';
    position: absolute;
    left: -20px;
    top: -10px;
    bottom: -10px;
    width: 30px;
    background: #92400e;
    border-radius: 5px
}

.scroll-container::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -10px;
    bottom: -10px;
    width: 30px;
    background: #92400e;
    border-radius: 5px
}

.fraction-display {
    font-size: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 0.8
}

.frac-line {
    width: 100%;
    height: 4px;
    background: #000;
    margin: 5px 0
}

.sword-slash {
    position: absolute;
    width: 100%;
    height: 5px;
    background: #fff;
    top: 50%;
    left: 0;
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.1s;
    box-shadow: 0 0 10px #fff
}

.sword-slash.animate {
    opacity: 1;
    transform: scaleX(1) rotate(-15deg)
}

.ninja-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 15px 40px;
    font-family: 'Shojumaru';
    font-size: 1.5rem;
    cursor: pointer;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    transition: all 0.2s
}

.ninja-btn:hover {
    background: #991b1b;
    transform: scale(1.1)
}

.shuriken {
    position: absolute;
    width: 40px;
    height: 40px;
    background: #525252;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: spin 0.5s linear infinite
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}