/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    background-color: #0C0C1A;
    color: #F0F0F8;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.1vw, 1.1rem);
    line-height: 1.8;
    overflow-x: hidden;
}

.page-wrapper {
    width: 100%;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

h1 {
    font-weight: 600;
    font-size: clamp(2.5rem, 6vw, 5rem);
}

h2 {
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 4rem);
}

h3 {
    font-weight: 500;
    font-size: clamp(1.5rem, 4vw, 3rem);
}

.field-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6B6B8B;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 1.5rem;
}

/* Shimmer Animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes stamp {
    0% {
        transform: scale(1.5);
        opacity: 0;
    }
    60% {
        transform: scale(0.95);
        opacity: 1;
    }
    80% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Skeleton Loading Bars */
.skeleton-bar {
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, #1A1A2E 0%, #2A2A40 50%, #1A1A2E 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    margin: 0.75rem 0;
}

.skeleton-container {
    position: relative;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 1;
    transition: opacity 400ms ease-out;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
}

.content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 400ms ease-out;
    padding: 1rem 0;
}

.skeleton-container.loaded .skeleton {
    opacity: 0;
}

.skeleton-container.loaded .content {
    opacity: 1;
}

/* THE GATE SECTION */
.gate {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5vw;
    background-color: #0C0C1A;
    position: relative;
}

.gate-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.gate-divider-top,
.gate-divider-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    position: relative;
}

.gate-divider-top::before,
.gate-divider-bottom::before {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #6B6B8B;
}

.gate-divider-top::after,
.gate-divider-bottom::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #6B6B8B;
}

.blossom-endpoint {
    margin: 0 1.5rem;
    flex: none;
}

.domain-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #F0F0F8;
    margin: 2rem 0;
}

.gate-title {
    margin-top: 3rem;
}

.gate-title h2 {
    color: #F0F0F8;
    margin-bottom: 0.5rem;
}

.gate-subtitle {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6B6B8B;
    font-size: 0.95rem;
}

.chrysanthemum-container {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.chrysanthemum {
    filter: drop-shadow(0 0 20px rgba(255, 51, 102, 0.3));
}

/* THE FORM SECTION */
.form {
    background-color: #0C0C1A;
    padding: 5rem 5vw;
}

.form-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.form-field {
    margin-bottom: 8rem;
    border-top: 1px solid #6B6B8B;
    padding-top: 2rem;
}

.form-field:first-child {
    border-top: none;
    padding-top: 0;
}

.form-field p {
    color: #F0F0F8;
}

.cherry-blossom-divider {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.cherry-blossom {
    filter: drop-shadow(0 0 10px rgba(255, 51, 102, 0.2));
}

/* THE STAMP SECTION */
.stamp {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5vw;
    background-color: #0C0C1A;
    position: relative;
}

.stamp-inner {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hanko-seal {
    width: 200px;
    height: 200px;
    border: 3px solid #FF3366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(255, 51, 102, 0.3);
    animation: stamp 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1;
    position: relative;
    z-index: 10;
}

.seal-character {
    font-family: 'Shippori Mincho', serif;
    font-size: 5rem;
    color: #FF3366;
    font-weight: 400;
    line-height: 1;
}

/* Glitch Art Color Palette */
.chrysanthemum use[fill="#4AE68A"],
.cherry-blossom use[fill="#4AE68A"],
.botanical-element circle[fill="#4AE68A"] {
    fill: #4AE68A;
}

.chrysanthemum use[fill="#00E5FF"],
.cherry-blossom use[fill="#00E5FF"],
.botanical-element circle[fill="#00E5FF"] {
    fill: #00E5FF;
}

/* Botanical Orbits */
.botanical-orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.botanical-orbit-1 {
    width: 400px;
    height: 400px;
}

.botanical-orbit-2 {
    width: 500px;
    height: 500px;
}

.botanical-orbit-3 {
    width: 600px;
    height: 600px;
}

.botanical-element {
    filter: drop-shadow(0 0 8px rgba(255, 51, 102, 0.15));
}

/* THE EXIT SECTION */
.exit {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5vw;
    background-color: #0C0C1A;
}

.exit-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.exit-domain {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #F0F0F8;
    margin-bottom: 2rem;
}

.exit-divider-top {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
}

.exit-divider-top::before {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #6B6B8B;
    margin-right: 1.5rem;
}

.exit-divider-top::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #6B6B8B;
    margin-left: 1.5rem;
}

.exit-skeleton-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.exit-skeleton-container .skeleton {
    position: relative;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.exit-skeleton-container .skeleton.fade-out {
    opacity: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gate-divider-top,
    .gate-divider-bottom {
        margin: 1.5rem 0;
    }

    .blossom-endpoint {
        width: 16px;
        height: 16px;
        margin: 0 1rem;
    }

    .chrysanthemum {
        width: 150px;
        height: 150px;
    }

    .form-field {
        margin-bottom: 5rem;
    }

    .hanko-seal {
        width: 150px;
        height: 150px;
    }

    .seal-character {
        font-size: 3.5rem;
    }

    .botanical-orbit-1 {
        width: 280px;
        height: 280px;
    }

    .botanical-orbit-2 {
        width: 350px;
        height: 350px;
    }

    .botanical-orbit-3 {
        width: 420px;
        height: 420px;
    }

    .botanical-element {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .blossom-endpoint {
        width: 12px;
        height: 12px;
        margin: 0 0.75rem;
    }

    .chrysanthemum {
        width: 120px;
        height: 120px;
    }

    .cherry-blossom {
        width: 35px;
        height: 35px;
    }

    .form-field {
        margin-bottom: 3rem;
    }

    .hanko-seal {
        width: 120px;
        height: 120px;
    }

    .seal-character {
        font-size: 2.5rem;
    }

    .botanical-orbit-1 {
        width: 200px;
        height: 200px;
    }

    .botanical-orbit-2 {
        width: 260px;
        height: 260px;
    }

    .botanical-orbit-3 {
        width: 320px;
        height: 320px;
    }

    .botanical-element {
        width: 25px;
        height: 25px;
    }
}
