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

:root {
    --bg-primary: #fbfbfa;
    --bg-secondary: #eceae7;
    --ink: #111111;
    --accent-red: #d61b1b;
    --accent-soft: #f5d8d8;
    --shadow-dark: rgba(0, 0, 0, 0.16);
    --shadow-soft: rgba(0, 0, 0, 0.08);
}

html,
body {
    width: 100%;
    min-height: 100%;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--ink);
    overflow: hidden;
    cursor: pointer;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 14%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 28%),
        radial-gradient(circle at 75% 36%, rgba(214, 27, 27, 0.08), transparent 20%),
        radial-gradient(circle at 24% 76%, rgba(0, 0, 0, 0.045), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f5f4f2 48%, #ebebe9 100%);
}

.animation-wrapper {
    position: relative;
    width: min(100%, 1400px);
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(12px, 2.2vw, 28px);
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    overflow: hidden;
}

.background,
.background-noise,
.ambient,
.frame-outline,
.light-column {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.background {
    background:
        radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 38%),
        radial-gradient(circle at 50% 52%, rgba(214, 27, 27, 0.08), rgba(214, 27, 27, 0) 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, 0.05) 100%);
    z-index: 0;
}

.background-noise {
    opacity: 0.16;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.018) 1px, transparent 1px);
    background-size: 130px 130px;
    mask-image: radial-gradient(circle at center, black 35%, transparent 92%);
    z-index: 0;
}

.background::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 56%, rgba(0, 0, 0, 0.028), transparent 26%),
        radial-gradient(circle at 52% 38%, rgba(214, 27, 27, 0.05), transparent 18%);
    mix-blend-mode: multiply;
}

.ambient-left {
    background: radial-gradient(circle at 18% 76%, rgba(0, 0, 0, 0.055), transparent 28%);
    z-index: 0;
}

.ambient-right {
    background: radial-gradient(circle at 84% 26%, rgba(214, 27, 27, 0.12), transparent 30%);
    z-index: 0;
}

.frame-outline {
    inset: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 32px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.65),
        0 18px 50px rgba(0, 0, 0, 0.05);
    z-index: 1;
}

.light-column {
    width: min(82vw, 760px);
    height: min(82vw, 760px);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 68%);
    filter: blur(16px);
    opacity: 0.95;
    z-index: 0;
}

.logo-stage,
.visual-stage {
    position: relative;
    z-index: 2;
}

.logo-stage {
    width: min(100%, 760px);
    max-height: calc(100dvh - 28px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(4px, 0.9vw, 10px);
    padding: clamp(10px, 2vw, 20px);
}

.brand-lockup {
    position: relative;
    width: min(100%, 430px, 44dvh);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 1.8vw, 22px);
    margin-top: -24px;
    min-height: calc(min(100%, 372px, 39dvh) * 0.54 + 78px);
    z-index: 3;
}

.text-container {
    position: relative;
    width: min(100%, 372px, 39dvh);
    opacity: 0;
    z-index: 2;
    margin-top: -8px;
}

.nikka-text {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter:
        drop-shadow(0 12px 18px rgba(0, 0, 0, 0.08))
        drop-shadow(0 2px 0 rgba(255, 255, 255, 0.5));
}

.visual-stage {
    width: min(100%, 640px, 66dvh);
    aspect-ratio: 1 / 1;
    min-height: 0;
}

.emblem-core {
    position: absolute;
    width: min(100%, 548px);
    aspect-ratio: 1;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    clip-path: circle(41.8% at 50% 48.5%);
    z-index: 1;
}

.circle-container,
.sun-container,
.bonsai-container,
.samurai-container {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    opacity: 0;
}

.circle-container {
    width: min(100%, 568px);
    aspect-ratio: 1;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.sumi-circle {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.96;
    filter:
        contrast(1.06)
        drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
}

.sun-container {
    width: min(30%, 176px);
    aspect-ratio: 1;
    top: 45.5%;
    right: 19.2%;
    z-index: 1;
}

.cloud-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cloud-layer-back {
    z-index: 1;
}

.cloud-layer-front {
    z-index: 2;
}

.cloud {
    position: absolute;
    border-radius: 999px;
    background:
        radial-gradient(circle at 32% 38%, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.16) 46%, rgba(255, 255, 255, 0) 76%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(214, 214, 214, 0.04));
    filter: blur(9px);
    opacity: 0;
    will-change: transform, opacity;
}

.cloud::before,
.cloud::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: inherit;
}

.cloud::before {
    width: 56%;
    height: 115%;
    left: 14%;
    top: -34%;
}

.cloud::after {
    width: 38%;
    height: 88%;
    right: 11%;
    top: -18%;
}

.cloud-back-left {
    width: 19%;
    height: 8%;
    top: 34%;
    right: 24.5%;
}

.cloud-back-right {
    width: 13%;
    height: 6%;
    top: 39.2%;
    right: 12.2%;
}

.cloud-front-left {
    width: 21%;
    height: 9%;
    top: 42.7%;
    right: 24%;
}

.cloud-front-center {
    width: 17%;
    height: 7%;
    top: 45.8%;
    right: 11%;
}

.cloud-front-right {
    width: 14%;
    height: 5.5%;
    top: 49%;
    right: 6%;
}

.sun-halo {
    position: absolute;
    inset: -18%;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.24) 0%, rgba(214, 27, 27, 0.12) 24%, rgba(214, 27, 27, 0.02) 56%, transparent 72%);
    filter: blur(14px);
    transform: scale(1.08);
}

.sun-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(214, 27, 27, 0.58) 0%, rgba(214, 27, 27, 0.24) 42%, transparent 76%);
    filter: blur(26px);
    transform: scale(1.34);
}

.red-sun {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter:
        saturate(1.1)
        drop-shadow(0 0 18px rgba(214, 27, 27, 0.28))
        drop-shadow(0 0 34px rgba(214, 27, 27, 0.12));
}

.bonsai-container {
    width: min(63%, 388px);
    aspect-ratio: 1 / 1.12;
    top: 13.6%;
    left: 50.2%;
    transform: translateX(-50%);
    z-index: 3;
}

.bonsai {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter:
        contrast(1.06)
        drop-shadow(0 18px 30px rgba(0, 0, 0, 0.11));
}

.samurai-container {
    width: min(34%, 196px);
    aspect-ratio: 0.78;
    left: 50%;
    bottom: 11.4%;
    transform: translateX(-50%);
    z-index: 4;
}

.samurai {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter:
        drop-shadow(0 16px 28px rgba(0, 0, 0, 0.13));
}

.stage-shadow {
    position: absolute;
    left: 50%;
    bottom: 9.2%;
    width: min(30%, 146px);
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.04) 50%, transparent 72%);
    transform: translateX(-50%);
    filter: blur(10px);
    z-index: 0;
}

.particle-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    border-radius: 999px;
    will-change: transform, opacity;
}

.petal {
    position: absolute;
    width: 14px;
    height: 8px;
    border-radius: 100% 0 100% 0;
    background: linear-gradient(135deg, rgba(214, 27, 27, 0.96), rgba(214, 27, 27, 0.35));
    box-shadow: 0 0 10px rgba(214, 27, 27, 0.18);
    opacity: 0;
    will-change: transform, opacity;
}

.tap-hint {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    opacity: 0;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    margin-top: 14px;
}

.tap-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-red);
    box-shadow: 0 0 0 0 rgba(214, 27, 27, 0.4);
}

.tap-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.76);
}

[data-chroma-key] {
    opacity: 0;
}

[data-chroma-key].is-ready {
    opacity: 1;
}

@media (max-width: 1180px) {
    .logo-stage {
        width: min(100%, 720px);
    }

    .circle-container {
        width: min(100%, 540px);
    }

    .emblem-core {
        width: min(100%, 520px);
    }

    .sun-container {
        width: min(30%, 166px);
        top: 45.6%;
        right: 19%;
    }

    .bonsai-container {
        width: min(62%, 366px);
    }

    .samurai-container {
        width: min(33%, 184px);
        bottom: 11.6%;
    }

    .brand-lockup {
        width: min(100%, 386px, 40dvh);
        margin-top: -22px;
        min-height: calc(min(100%, 340px, 34dvh) * 0.56 + 70px);
    }
}

@media (max-width: 768px) {
    .container,
    .animation-wrapper {
        min-height: 100svh;
    }

    .animation-wrapper {
        padding: 12px 10px;
    }

    .frame-outline {
        inset: 10px;
        border-radius: 24px;
    }

    .logo-stage {
        width: 100%;
        max-height: calc(100svh - 22px);
        gap: 4px;
        padding: 10px 8px 12px;
    }

    .visual-stage {
        width: min(100%, 470px, 58svh);
    }

    .emblem-core {
        width: min(100%, 414px);
    }

    .circle-container {
        width: min(100%, 432px);
        top: 48.4%;
    }

    .sun-container {
        width: min(28%, 122px);
        top: 45.8%;
        right: 19%;
    }

    .bonsai-container {
        width: min(61%, 286px);
        top: 13.2%;
    }

    .samurai-container {
        width: min(32%, 148px);
        bottom: 12%;
    }

    .stage-shadow {
        width: min(28%, 110px);
        height: 14px;
        bottom: 9.6%;
    }

    .brand-lockup {
        width: min(100%, 306px, 30svh);
        gap: 12px;
        margin-top: -18px;
        min-height: calc(min(100%, 272px, 26svh) * 0.56 + 54px);
    }

    .text-container {
        width: min(100%, 272px, 26svh);
        margin-top: -4px;
    }

    .tap-hint {
        padding: 8px 12px;
        margin-top: 10px;
    }

    .tap-label {
        font-size: 0.66rem;
        letter-spacing: 0.12em;
    }
}

@media (max-width: 480px) {
    .animation-wrapper {
        padding: 10px 6px;
    }

    .frame-outline {
        inset: 8px;
        border-radius: 18px;
    }

    .logo-stage {
        max-height: calc(100svh - 18px);
        gap: 2px;
        padding: 8px 6px 10px;
    }

    .visual-stage {
        width: min(100%, 350px, 54svh);
    }

    .emblem-core {
        width: min(100%, 306px);
    }

    .circle-container {
        width: min(100%, 320px);
        top: 48.8%;
    }

    .sun-container {
        width: min(28%, 92px);
        top: 46%;
        right: 19%;
    }

    .bonsai-container {
        width: min(60%, 204px);
        top: 13.4%;
        left: 50.2%;
    }

    .samurai-container {
        width: min(30%, 104px);
        bottom: 12.2%;
    }

    .stage-shadow {
        bottom: 10%;
        width: min(24%, 72px);
        height: 10px;
    }

    .brand-lockup {
        width: min(100%, 224px, 24svh);
        gap: 10px;
        margin-top: -15px;
        min-height: calc(min(100%, 194px, 20svh) * 0.56 + 46px);
    }

    .text-container {
        width: min(100%, 194px, 20svh);
        margin-top: -3px;
    }

    .tap-hint {
        padding: 7px 10px;
        gap: 8px;
        margin-top: 8px;
    }

    .tap-label {
        font-size: 0.56rem;
        letter-spacing: 0.1em;
    }
}

@media (max-width: 360px), (max-height: 700px) {
    .frame-outline {
        inset: 6px;
        border-radius: 16px;
    }

    .logo-stage {
        max-height: calc(100svh - 12px);
        gap: 0;
        padding: 6px 4px 8px;
    }

    .visual-stage {
        width: min(100%, 300px, 50svh);
    }

    .emblem-core {
        width: min(100%, 266px);
    }

    .circle-container {
        width: min(100%, 278px);
    }

    .sun-container {
        width: min(26%, 76px);
        right: 20%;
    }

    .bonsai-container {
        width: min(58%, 172px);
        top: 13.6%;
    }

    .samurai-container {
        width: min(29%, 86px);
        bottom: 12.4%;
    }

    .stage-shadow {
        width: min(22%, 54px);
        bottom: 10.2%;
        height: 8px;
    }

    .brand-lockup {
        width: min(100%, 188px, 20svh);
        gap: 8px;
        margin-top: -12px;
        min-height: calc(min(100%, 164px, 17svh) * 0.56 + 42px);
    }

    .text-container {
        width: min(100%, 164px, 17svh);
        margin-top: -2px;
    }

    .tap-hint {
        padding: 6px 9px;
        margin-top: 7px;
    }

    .tap-label {
        font-size: 0.5rem;
        letter-spacing: 0.08em;
    }
}
