:root {
    --pink: #ff4fa0;
    --hot: #f62599;
    --blue: #093b78;
    --cyan: #51bcf3;
    --red: #ef2443;
    --shadow: rgba(104, 24, 86, 0.28);
}
* {
    box-sizing: border-box;
}
@font-face {
    font-family: SEGAMaruGothicDB;
    src: url("/SEGAMaruGothicDB.woff2");
}
html,
body {
    font-family: SEGAMaruGothicDB;
}
body {
    margin: 0;
    font-family:
        SEGAMaruGothicDB,
        ui-rounded,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: var(--blue);
    background:
        url("/assets/maimai-bg/top_right.png") top right / min(14rem, 22.5vw) auto no-repeat,
        url("/assets/maimai-bg/top_left.png") top left / min(12rem, 22vw) auto no-repeat,
        url("/assets/maimai-bg/bottom_right.png") bottom right / min(14rem, 24vw) auto no-repeat,
        url("/assets/maimai-bg/bottom_left.png") bottom left / min(14rem, 24vw) auto no-repeat,
        linear-gradient(135deg, var(--hot), #ff7bb6 45%, #ff4fa0 74%, #ff2a97);
    min-height: 100vh;
    overflow-x: hidden;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.22) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.16) 2px, transparent 2px),
        radial-gradient(
            circle at 50% 48%,
            transparent 0 12rem,
            rgba(255, 255, 255, 0.26) 12.1rem 12.35rem,
            transparent 12.5rem
        ),
        radial-gradient(
            circle at 50% 48%,
            transparent 0 20rem,
            rgba(255, 255, 255, 0.18) 20.1rem 20.35rem,
            transparent 20.5rem
        );
    background-size:
        4.5rem 4.5rem,
        4.5rem 4.5rem,
        auto,
        auto;
    transform: perspective(600px) rotateX(55deg) translateY(10rem) scale(1.4);
    transform-origin: center top;
    opacity: 0.48;
    animation: background-scroll 18s linear infinite;
}
.shell {
    position: relative;
    z-index: 1;
    max-width: 92rem;
    margin: 0 auto;
    padding: 1.1rem 1rem 4rem;
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 78rem;
    margin: 0 auto;
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0.8rem 0 rgba(0, 0, 0, 0.14);
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: max-content;
    font-size: clamp(1.45rem, 3vw, 2.25rem);
    line-height: 1;
    font-weight: 1000;
    color: var(--hot);
    text-shadow: 0.08em 0.08em 0 var(--cyan);
    letter-spacing: -0.04em;
}
.brand img {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 1rem;
}
.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.25rem 0.85rem;
    align-items: center;
    font-weight: 1000;
    font-size: clamp(0.88rem, 1.6vw, 1.15rem);
}
.nav-links a {
    color: var(--blue);
    text-decoration: none;
    padding: 0.35rem 0.1rem;
    white-space: nowrap;
}
.nav-links a:hover {
    color: var(--hot);
}
.pill {
    background: #ff5fa7;
    color: #fff !important;
    padding: 0.55rem 1rem !important;
    border-radius: 999px;
}
.hero {
    position: relative;
    min-height: 48rem;
    display: grid;
    place-items: center;
    padding: 2rem 0 4rem;
}
.shape {
    position: absolute;
    pointer-events: none;
    filter: drop-shadow(0.2rem 0.25rem 0 rgba(0, 0, 0, 0.16));
}
.cube {
    width: 4.2rem;
    height: 4.2rem;
    transform: rotate(18deg);
    background: conic-gradient(
        from 45deg,
        #ff2e94,
        #ff2e94 25%,
        #42cfff 0 50%,
        #e8ff61 0 75%,
        #1d58d8 0
    );
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.cube.one {
    left: 2rem;
    top: 6rem;
    animation: float-a 4.8s ease-in-out infinite;
}
.cube.two {
    right: 4rem;
    top: 19rem;
    transform: rotate(-18deg) scale(1.2);
    animation: float-b 5.6s ease-in-out infinite;
}
.spark {
    right: 12rem;
    bottom: 8rem;
    color: #f5ff55;
    font-size: 4rem;
    font-weight: 1000;
    transform: rotate(16deg);
    animation: float-c 4.2s ease-in-out infinite;
}
.hero-card {
    text-align: center;
    width: min(64rem, 100%);
}
.kuma-stage {
    position: relative;
    width: min(38rem, 86vw);
    height: calc(min(16rem, 36vw) + 1rem);
    margin: 0.2rem auto 1.2rem;
    overflow: hidden;
}
.kuma-stage img {
    position: absolute;
    left: 50%;
    top: 1rem;
    width: 100%;
    transform: translateX(-50%);
    filter: drop-shadow(0.35rem 0.45rem 0 rgba(0, 0, 0, 0.14));
}
.kuma-bounce {
    animation-name: kuma-bounce;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    animation-direction: alternate;
    animation-iteration-count: infinite;
}
.kuma-bounce.yeti {
    --bounce: -8px;
    animation-duration: 1390ms;
    animation-delay: 540ms;
}
.kuma-bounce.hige {
    --bounce: -8px;
    animation-duration: 1180ms;
    animation-delay: 80ms;
}
.kuma-bounce.onemu {
    --bounce: -9px;
    animation-duration: 1450ms;
    animation-delay: 330ms;
}
.kuma-bounce.risu {
    --bounce: -8px;
    animation-duration: 1210ms;
    animation-delay: 420ms;
}
.kuma-bounce.megane {
    --bounce: -10px;
    animation-duration: 1370ms;
    animation-delay: 260ms;
}
.kuma-bounce.panda {
    --bounce: -9px;
    animation-duration: 1320ms;
    animation-delay: 190ms;
}
.kuma-bounce.tanuk {
    --bounce: -11px;
    animation-duration: 1510ms;
    animation-delay: 120ms;
}
.kuma-bounce.mitsu {
    --bounce: -7px;
    animation-duration: 1240ms;
    animation-delay: 20ms;
}
.kuma-bounce.center {
    --bounce: -12px;
    animation-duration: 1120ms;
    animation-delay: 0ms;
}
.logo-title {
    display: inline-block;
    margin: 0 auto;
    padding: 0.2rem 1.4rem 0.5rem;
    font-size: clamp(3.2rem, 10vw, 8rem);
    line-height: 0.9;
    font-weight: 1000;
    font-style: italic;
    letter-spacing: -0.08em;
    background: linear-gradient(
        #fff,
        #ffd7ed 42%,
        #ff58ad 43%,
        #fff 68%,
        #6fe8ff 69%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 0.055em var(--blue);
    filter: drop-shadow(0.08em 0.08em 0 #00d8ff)
        drop-shadow(0.13em 0.13em 0 #ff1490);
}
.subtitle {
    color: #fff;
    font-weight: 1000;
    font-size: clamp(1.1rem, 2.5vw, 1.9rem);
    text-shadow:
        0.11em 0.11em 0 var(--hot),
        0.16em 0.16em 0 var(--blue);
    margin: 0.8rem 0 1.4rem;
}
.cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-width: 12rem;
    min-height: 4.2rem;
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    border: 0.22rem solid white;
    background: var(--red);
    color: white;
    text-decoration: none;
    font-weight: 1000;
    font-size: 1.1rem;
    box-shadow:
        0 0.45rem 0 #b60c25,
        0 0 0 0.18rem #ff7487;
    transition:
        transform 140ms ease,
        box-shadow 140ms ease,
        filter 140ms ease;
}
.button:hover {
    transform: translateY(-0.18rem) scale(1.035);
    filter: brightness(1.06) saturate(1.08);
    box-shadow:
        0 0.62rem 0 #b60c25,
        0 0 0 0.18rem #ff7487,
        0 0.9rem 1.2rem rgba(239, 36, 67, 0.22);
}
.button:active {
    transform: translateY(0.28rem) scale(0.985);
    filter: brightness(0.98);
    box-shadow:
        0 0.18rem 0 #b60c25,
        0 0 0 0.18rem #ff7487;
}
.button:focus-visible {
    outline: 0.22rem solid #fff;
    outline-offset: 0.22rem;
}
.button.alt {
    background: var(--red);
    color: white;
    box-shadow:
        0 0.45rem 0 #b60c25,
        0 0 0 0.18rem #ff7487;
}
.panel {
    width: min(68rem, calc(100% - 1rem));
    margin: -1rem auto 0;
    padding: clamp(1.3rem, 4vw, 3rem);
    border-radius: 2.2rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 1rem 1.1rem 0 var(--shadow);
}
.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.6rem);
    margin: 0 0 1.8rem;
    color: var(--blue);
    font-weight: 1000;
    letter-spacing: -0.04em;
}
.section-title::before,
.section-title::after {
    content: "✦✦✦";
    color: #ff7db8;
    font-size: 0.65em;
    margin: 0 0.45em;
}
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.card {
    border-radius: 1.4rem;
    padding: 1.15rem;
    background: #fff3fb;
    border: 0.18rem solid #ffd0e8;
    min-height: 11rem;
}
.card:nth-child(2) {
    background: #e9fbff;
    border-color: #aaeaff;
}
.card:nth-child(3) {
    background: #f3ffe2;
    border-color: #d8ff86;
}
.card h3 {
    margin: 0 0 0.45rem;
    font-size: 1.35rem;
}
.card p {
    margin: 0;
    color: #4b5563;
    font-weight: 700;
}
.legal {
    margin-top: 1.4rem;
    text-align: center;
    color: #6b7280;
    font-weight: 800;
}
.legal a {
    color: var(--blue);
}
footer {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    text-align: center;
    color: white;
    font-weight: 900;
    text-shadow: 0.08em 0.08em 0 var(--blue);
    padding: 2rem 1rem 0;
}
footer a {
    color: white;
}
@keyframes background-scroll {
    from {
        background-position:
            0 0,
            0 0,
            0 0,
            0 0;
    }
    to {
        background-position:
            4.5rem 4.5rem,
            4.5rem 4.5rem,
            0 0,
            0 0;
    }
}
@keyframes kuma-bounce {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(-50%) translateY(var(--bounce));
    }
}
@keyframes float-a {
    0%,
    100% {
        transform: translateY(0) rotate(18deg);
    }
    50% {
        transform: translateY(-1rem) rotate(26deg);
    }
}
@keyframes float-b {
    0%,
    100% {
        transform: translateY(0) rotate(-18deg) scale(1.2);
    }
    50% {
        transform: translateY(1rem) rotate(-26deg) scale(1.2);
    }
}
@keyframes float-c {
    0%,
    100% {
        transform: translateY(0) rotate(16deg) scale(1);
    }
    50% {
        transform: translateY(-0.8rem) rotate(8deg) scale(1.08);
    }
}
@media (max-width: 800px) {
    .nav {
        border-radius: 1.4rem;
        align-items: flex-start;
        flex-direction: column;
    }
    .nav-links {
        justify-content: flex-start;
    }
    .hero {
        min-height: 39rem;
    }
    .cards {
        grid-template-columns: 1fr;
    }
    .cube.two {
        right: 1rem;
    }
}
