.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.page-content {
    box-sizing: border-box;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 1.5rem 5%;
}

@media (max-width: 600px) {
    .page-content {
        padding: 1rem 4%;
    }
}

.site-header {
    background: rgba(253, 241, 222, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #f0d9b5;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(163, 93, 0, 0.12);
}

.site-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 5%;
    max-width: 1300px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.site-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #d98c1f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #d98c1f;
    flex-shrink: 0;
}

.site-brand-text h1 {
    margin: 0;
    font-size: 1.4rem;
}

    .site-brand-text h1:focus {
        outline: none;
    }

.site-brand-text p {
    margin: 0;
    color: #666;
    font-size: 0.85rem;
}

.site-nav {
    background: rgba(240, 168, 48, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.site-nav-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0.5rem 5%;
    flex-wrap: wrap;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    padding: 0.25rem 0.4rem;
    cursor: pointer;
}

.site-nav-collapsible {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-nav-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

    .site-nav-links a {
        color: #fff;
        text-decoration: none;
        font-weight: 600;
        padding: 0.2rem 0.5rem;
        border-radius: 4px;
        transition: background-color 0.15s ease;
    }

        .site-nav-links a:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }

        .site-nav-links a.active {
            background-color: #fff;
            color: #d98c1f;
        }

.nav-item-dropdown {
    position: relative;
}

.nav-social-trigger {
    display: inline-block;
    color: #fff;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    cursor: default;
}

.nav-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    padding: 0.4rem 0;
    min-width: 160px;
    width: max-content;
    z-index: 20;
}

    .nav-submenu a {
        display: block;
        color: #333 !important;
        padding: 0.5rem 1rem;
        border-radius: 0;
        white-space: nowrap;
    }

        .nav-submenu a:hover {
            background-color: #fdecc8 !important;
        }

        .nav-submenu a.active {
            background-color: #fdecc8 !important;
            color: #a35d00 !important;
        }

.nav-item-dropdown:hover > .nav-submenu,
.nav-item-dropdown.open > .nav-submenu {
    display: block;
}

.nav-item-dropdown:hover > .nav-social-trigger {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-submenu .nav-item-dropdown {
    position: relative;
}

    .nav-submenu .nav-item-dropdown > a {
        padding-right: 1.75rem;
    }

        .nav-submenu .nav-item-dropdown > a::after {
            content: "▸";
            position: absolute;
            right: 0.9rem;
            color: #b8926a;
        }

    .nav-submenu .nav-item-dropdown > .nav-submenu {
        top: -0.4rem;
        left: 100%;
    }

.site-search {
    display: flex;
}

    .site-search input {
        border: none;
        border-radius: 4px 0 0 4px;
        padding: 0.4rem 0.6rem;
    }

    .site-search button {
        border: none;
        border-radius: 0 4px 4px 0;
        background: #d98c1f;
        color: #fff;
        padding: 0.4rem 0.8rem;
    }

.page-title-band {
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(90deg, #f0a830 0%, #d98c1f 100%);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

    .page-title-band .rz-text-h3 {
        color: #fff;
        font-family: 'Mochiy Pop One', sans-serif;
        letter-spacing: 0.03em;
        font-size: clamp(0.85rem, 4.3vw, 1.75rem) !important;
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.rz-text-h4 {
    display: inline-block;
    padding-bottom: 0.25rem;
    border-bottom: 3px solid #d98c1f;
}

.hero-banner-wrap {
    position: relative;
    margin-bottom: 1.5rem;
}

    .hero-banner-wrap::before {
        content: "";
        position: absolute;
        inset: -14px;
        z-index: 0;
        border-radius: 30px;
        background: linear-gradient(120deg, rgba(255, 173, 224, 0.6) 0%, rgba(173, 216, 255, 0.55) 30%, rgba(186, 255, 214, 0.5) 60%, rgba(255, 214, 153, 0.55) 100%);
        filter: blur(18px);
    }

.hero-banner {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 220px;
    overflow: hidden;
    background: radial-gradient(120% 140% at 50% 12%, #fffdf7 0%, #fff3da 45%, #fbe2ac 100%);
    border-radius: 18px;
    box-sizing: border-box;
    box-shadow: 0 10px 28px rgba(163, 93, 0, 0.12), inset 0 0 0 1px rgba(217, 140, 31, 0.16);
}

.hero-deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.hero-deco-grass {
    bottom: -10px;
    line-height: 1;
}

.hero-deco-grass-l1 {
    left: 0%;
    font-size: 4.3rem;
    transform: rotate(-10deg);
    opacity: 0.95;
}

.hero-deco-grass-l2 {
    left: 5%;
    font-size: 3.8rem;
    transform: rotate(4deg);
    opacity: 0.93;
}

.hero-deco-grass-l3 {
    left: 10%;
    font-size: 3.2rem;
    transform: rotate(-4deg) scaleX(-1);
    opacity: 0.9;
}

.hero-deco-grass-l4 {
    left: 15%;
    font-size: 2.7rem;
    transform: rotate(8deg);
    opacity: 0.88;
}

.hero-deco-grass-l5 {
    left: 20%;
    font-size: 2.3rem;
    transform: rotate(-7deg);
    opacity: 0.85;
}

.hero-deco-grass-l6 {
    left: 26%;
    font-size: 1.9rem;
    transform: scaleX(-1) rotate(6deg);
    opacity: 0.82;
}

.hero-deco-grass-l7 {
    left: 32%;
    font-size: 1.6rem;
    transform: rotate(-5deg);
    opacity: 0.78;
}

.hero-deco-grass-r1 {
    right: 0%;
    font-size: 4.3rem;
    transform: scaleX(-1) rotate(-10deg);
    opacity: 0.95;
}

.hero-deco-grass-r2 {
    right: 5%;
    font-size: 3.8rem;
    transform: scaleX(-1) rotate(4deg);
    opacity: 0.93;
}

.hero-deco-grass-r3 {
    right: 10%;
    font-size: 3.2rem;
    transform: rotate(-4deg);
    opacity: 0.9;
}

.hero-deco-grass-r4 {
    right: 15%;
    font-size: 2.7rem;
    transform: scaleX(-1) rotate(8deg);
    opacity: 0.88;
}

.hero-deco-grass-r5 {
    right: 20%;
    font-size: 2.3rem;
    transform: scaleX(-1) rotate(-7deg);
    opacity: 0.85;
}

.hero-deco-grass-r6 {
    right: 26%;
    font-size: 1.9rem;
    transform: rotate(6deg);
    opacity: 0.82;
}

.hero-deco-grass-r7 {
    right: 32%;
    font-size: 1.6rem;
    transform: scaleX(-1) rotate(-5deg);
    opacity: 0.78;
}

.hero-deco-flowerbed {
    bottom: 0;
    font-size: 0.9rem;
    animation: hero-flower-spin 7s linear infinite;
}

.hero-deco-flowerbed-1 {
    left: 3%;
    bottom: 14px;
    font-size: 0.8rem;
    color: rgba(255, 214, 153, 0.95);
}

.hero-deco-flowerbed-2 {
    left: 9%;
    bottom: 6px;
    font-size: 1rem;
    color: rgba(255, 182, 213, 0.9);
    animation-duration: 9s;
    animation-direction: reverse;
}

.hero-deco-flowerbed-3 {
    left: 18%;
    bottom: 18px;
    font-size: 0.7rem;
    color: rgba(255, 214, 153, 0.9);
    animation-duration: 6s;
}

.hero-deco-flowerbed-4 {
    left: 28%;
    bottom: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    animation-duration: 8s;
    animation-direction: reverse;
}

.hero-deco-flowerbed-5 {
    left: 38%;
    bottom: 16px;
    font-size: 0.75rem;
    color: rgba(255, 182, 213, 0.85);
    animation-duration: 10s;
}

.hero-deco-flowerbed-6 {
    right: 38%;
    bottom: 10px;
    font-size: 0.85rem;
    color: rgba(255, 214, 153, 0.9);
    animation-duration: 7s;
    animation-direction: reverse;
}

.hero-deco-flowerbed-7 {
    right: 28%;
    bottom: 18px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    animation-duration: 9s;
}

.hero-deco-flowerbed-8 {
    right: 18%;
    bottom: 6px;
    font-size: 1rem;
    color: rgba(255, 182, 213, 0.9);
    animation-duration: 6.5s;
    animation-direction: reverse;
}

.hero-deco-flowerbed-9 {
    right: 9%;
    bottom: 16px;
    font-size: 0.8rem;
    color: rgba(255, 214, 153, 0.95);
    animation-duration: 8.5s;
}

.hero-deco-flowerbed-10 {
    right: 3%;
    bottom: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    animation-duration: 7.5s;
    animation-direction: reverse;
}

.hero-deco-flower-spin {
    animation: hero-flower-spin 6s linear infinite;
}

.hero-deco-flower-2 {
    bottom: 22%;
    left: 9%;
    font-size: 1rem;
    color: rgba(255, 214, 153, 0.9);
}

.hero-deco-flower-4 {
    bottom: 8%;
    left: 3%;
    font-size: 1.3rem;
    color: rgba(255, 214, 153, 0.9);
    animation-duration: 8s;
    animation-direction: reverse;
}

.hero-deco-flower-5 {
    top: 10%;
    right: 4%;
    font-size: 0.9rem;
    color: rgba(255, 214, 153, 0.85);
    animation-duration: 5s;
}

@keyframes hero-flower-spin {
    to {
        transform: rotate(360deg);
    }
}

.hero-checker {
    position: absolute;
    inset: -22px;
    background-image:
        linear-gradient(45deg, rgba(163, 93, 0, 0.03) 25%, transparent 25%, transparent 75%, rgba(163, 93, 0, 0.03) 75%, rgba(163, 93, 0, 0.03)),
        linear-gradient(45deg, rgba(163, 93, 0, 0.03) 25%, transparent 25%, transparent 75%, rgba(163, 93, 0, 0.03) 75%, rgba(163, 93, 0, 0.03));
    background-size: 60px 60px, 60px 60px;
    background-position: 0 0, 30px 30px;
    animation: hero-checker-drift 30s linear infinite;
    pointer-events: none;
}

@keyframes hero-checker-drift {
    0% {
        background-position: 0 0, 30px 30px;
    }

    100% {
        background-position: 60px 0, 90px 30px;
    }
}

.hero-checker-gray {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
    transform: translateX(-120%);
    animation: hero-sheen-sweep 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hero-sheen-sweep {
    0%, 25% {
        transform: translateX(-120%);
    }

    60%, 100% {
        transform: translateX(120%);
    }
}

.hero-glow {
    position: absolute;
    top: 46%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 30%, rgba(255, 255, 255, 0.35) 62%, rgba(255, 255, 255, 0) 85%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-trails {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-trail {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 1 16;
    opacity: 0.8;
}

.hero-trail-1 {
    stroke: rgba(255, 255, 255, 0.85);
    animation: hero-trail-move 7s linear infinite;
}

.hero-trail-2 {
    stroke: rgba(255, 209, 102, 0.85);
    animation: hero-trail-move 9s linear infinite reverse;
}

@keyframes hero-trail-move {
    to {
        stroke-dashoffset: -340;
    }
}

.hero-marquee {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    pointer-events: none;
}

.hero-marquee-track {
    display: flex;
    white-space: nowrap;
    animation: hero-marquee-scroll 28s linear infinite;
}

    .hero-marquee-track span {
        font-size: 60px;
        font-weight: 800;
        color: rgba(163, 93, 0, 0.16);
        letter-spacing: 0.08em;
        animation: hero-marquee-color 8s ease-in-out infinite;
    }

@keyframes hero-marquee-color {
    0% {
        color: rgba(163, 93, 0, 0.26);
    }

    45%, 55% {
        color: rgba(163, 93, 0, 0.14);
    }

    100% {
        color: rgba(163, 93, 0, 0.26);
    }
}

@keyframes hero-marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.hero-content {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    height: 100%;
    min-height: 220px;
    padding: 1rem;
}

.mascot-sprite-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bubbles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.bubble {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.6), 0 3px 10px rgba(163, 93, 0, 0.18);
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

.mascot-sprite-wrap {
    position: relative;
}

    .mascot-sprite-wrap::before {
        content: "";
        position: absolute;
        bottom: 4px;
        left: 50%;
        width: 150px;
        height: 56px;
        transform: translateX(-50%);
        background: radial-gradient(ellipse at center, rgba(240, 168, 48, 0.35) 0%, rgba(240, 168, 48, 0) 72%);
        filter: blur(1px);
        pointer-events: none;
        z-index: 0;
    }

    .mascot-sprite-wrap .mascot-sprite {
        position: relative;
        z-index: 1;
    }

.mascot-sprite {
    height: 230px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

    .mascot-sprite img {
        height: 100%;
        width: auto;
        image-rendering: pixelated;
    }

    .mascot-sprite img.mascot-crown {
        height: 80%;
        align-self: center;
    }

    .mascot-sprite img.mascot-eggplant {
        height: 130px;
        width: 120px;
        object-fit: contain;
        object-position: bottom center;
        align-self: flex-end;
    }

    .mascot-sprite img.mascot-eggplant-jump {
        height: 180px;
        width: 170px;
        object-fit: contain;
        object-position: bottom center;
        align-self: flex-end;
    }

    .mascot-sprite img.mascot-eggplant-7 {
        height: 195px;
        width: 183px;
        object-fit: contain;
        object-position: bottom center;
        align-self: flex-end;
    }

.sparkles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    color: #ffb703;
    font-size: 1.5rem;
    animation-name: sparkle-twinkle;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    pointer-events: none;
}

@keyframes sparkle-twinkle {
    0%, 100% {
        opacity: var(--sparkle-min, 0.25);
        transform: scale(0.8);
    }

    50% {
        opacity: var(--sparkle-max, 1);
        transform: scale(1.15);
    }
}

.video-thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin: 1.25rem 0;
}

.video-thumb-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #f0e0c0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

    .video-thumb-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 24px rgba(163, 93, 0, 0.16);
        border-color: #f0c988;
    }

.video-thumb-card-pending {
    border-style: dashed;
    background: #fafafa;
}

    .video-thumb-card-pending:hover {
        transform: none;
        box-shadow: none;
    }

.video-thumb-link {
    display: block;
}

.video-thumb-wrap {
    position: relative;
    display: block;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
}

    .video-thumb-wrap img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.video-thumb-wrap-pending {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumb-pending-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    opacity: 0.5;
}

.video-thumb-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    padding-left: 3px;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.video-thumb-link:hover .video-thumb-play {
    background: #d98c1f;
    transform: translate(-50%, -50%) scale(1.08);
}

.video-thumb-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.9rem 1.1rem 1.1rem;
    gap: 0.3rem;
    flex: 1 1 auto;
}

.video-thumb-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-thumb-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.video-thumb-desc {
    color: #555;
    font-size: 0.88rem;
    line-height: 1.5;
}

.video-thumb-button {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #f0a830 0%, #d98c1f 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(163, 93, 0, 0.25);
}

    .video-thumb-button:hover {
        color: #fff;
        box-shadow: 0 4px 10px rgba(163, 93, 0, 0.35);
    }

.video-thumb-ownguide {
    display: inline-block;
    margin-top: 0.4rem;
    color: #1f7a3d;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dashed #1f7a3d;
}

    .video-thumb-ownguide:hover {
        border-bottom-style: solid;
    }

.video-thumb-more-label {
    margin-top: 0.7rem !important;
    color: #a35d00 !important;
    font-size: 0.8rem !important;
}

.video-thumb-more-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    width: 100%;
}

.video-thumb-more-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    width: 130px;
    text-decoration: none;
}

.video-thumb-more-thumb {
    position: relative;
    display: block;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
}

    .video-thumb-more-thumb img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.video-thumb-play-sm {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
    padding-left: 2px;
}

.video-thumb-more-title {
    color: #555;
    font-size: 0.72rem;
    line-height: 1.35;
}

    .video-thumb-more-item:hover .video-thumb-more-title {
        color: #a35d00;
    }

.video-guide-icon {
    flex-shrink: 0;
    font-size: 1.8rem;
    width: 2rem;
    text-align: center;
}

.video-guide-stars {
    flex-shrink: 0;
    color: #d98c1f;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
}

.video-guide-star-empty {
    color: #e6d5b0;
}

.video-guide-tag {
    display: inline-block;
    flex-shrink: 0;
    white-space: nowrap;
    margin-top: 0.6rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.video-guide-tag-beginner {
    background: #eaf3fb;
    color: #2a6ca8;
}

.video-guide-tag-tactics {
    background: #ffe1c2;
    color: #a35d00;
}

.video-guide-tag-alliance {
    background: #eef7f0;
    color: #1f7a3d;
}

.video-guide-tag-kingdom {
    background: #f3e8fb;
    color: #7a3fa8;
}

.video-guide-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.9rem;
}

.video-guide-link {
    color: #333;
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 1px dashed #d98c1f;
    align-self: flex-start;
}

    .video-guide-link:hover {
        color: #a35d00;
        border-bottom-style: solid;
    }

.video-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
    margin: 0.75rem 0 1.5rem;
}

.video-legend-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #fdf6ea;
    border: 1px solid #f5e6c8;
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    font-size: 0.88rem;
    color: #555;
}

.site-footer {
    border-top: 1px solid #e0e0e0;
    margin-top: 2rem;
    padding: 1.5rem 5%;
    text-align: center;
    color: #666;
    font-size: 0.85rem;
}

.site-footer-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

    .site-footer-links a {
        color: #555;
        text-decoration: none;
    }

        .site-footer-links a:hover {
            text-decoration: underline;
        }

@media (max-width: 700px) {
    .site-header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav-collapsible {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding-top: 0.5rem;
    }

        .site-nav-collapsible.nav-open {
            display: flex;
        }

    .site-nav-links {
        flex-direction: column;
        gap: 0.6rem;
        width: 100%;
    }

    .nav-submenu {
        display: block;
        position: static;
        box-shadow: none;
        background: none;
        padding: 0 0 0 1.2rem;
        margin-top: 0.3rem;
    }

        .nav-submenu a {
            color: #fff !important;
            padding: 0.3rem 0.5rem;
        }

    .site-search {
        width: 100%;
    }

        .site-search input {
            flex: 1;
        }
}

.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

    .video-embed iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 0.75rem 0;
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

    .guide-table th,
    .guide-table td {
        padding: 0.6rem 0.8rem;
        text-align: left;
        border-bottom: 1px solid #eee;
        white-space: nowrap;
    }

    .guide-table th {
        background: #f0a830;
        color: #fff;
    }

    .guide-table tbody tr:nth-child(even) {
        background: #fdf6ea;
    }

    .guide-table-rank {
        font-weight: 700;
        color: #a35d00;
    }

    .guide-table-total {
        font-weight: 700;
        background: #fdecc8 !important;
    }

    .guide-table-link {
        color: #333;
        font-weight: 600;
        text-decoration: none;
        border-bottom: 1px dashed #d98c1f;
    }

        .guide-table-link:hover {
            color: #a35d00;
            border-bottom-style: solid;
        }

.guide-tag {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: #eee;
    color: #555;
    font-size: 0.8rem;
    white-space: nowrap;
}

.guide-tag-top {
    background: #ffe1c2;
    color: #a35d00;
    font-weight: 700;
}

.kvk-tag-win {
    background: #d7f5df;
    color: #1f7a3d;
    font-weight: 700;
}

.kvk-tag-lose {
    background: #fdecec;
    color: #c0392b;
    font-weight: 700;
}

.kvk-hero {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 1.25rem 0;
    flex-wrap: wrap;
}

.kvk-crest-image {
    width: 130px;
    height: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 6px 14px rgba(163, 93, 0, 0.35));
}

.kvk-crest-wrap {
    position: relative;
    flex-shrink: 0;
    z-index: 0;
}

.kvk-crest-wrap::before {
    content: "";
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 236, 176, 0.65) 0%, rgba(255, 224, 130, 0) 70%);
    animation: kvk-crest-glow 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.kvk-crest-image {
    position: relative;
    z-index: 1;
}

.kvk-sparkle {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(circle, #ffffff 0%, #fff2c9 45%, rgba(255, 242, 201, 0) 75%);
    clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.95));
    animation: kvk-sparkle-twinkle 2s ease-in-out infinite;
}

.kvk-sparkle-sm {
    width: 8px;
    height: 8px;
}

.kvk-sparkle-md {
    width: 13px;
    height: 13px;
}

.kvk-sparkle-lg {
    width: 18px;
    height: 18px;
}

@keyframes kvk-crest-glow {
    0%, 100% {
        opacity: 0.35;
        transform: scale(0.9);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.15);
    }
}

@keyframes kvk-sparkle-twinkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.3) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(25deg);
    }
}

.kvk-hero .kvk-stat-band {
    margin: 0;
    flex: 1 1 320px;
}

.kvk-stat-band {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.4rem;
    background: linear-gradient(135deg, #d98c1f 0%, #a35d00 100%);
    border-radius: 14px;
    padding: 1.2rem 1.6rem;
    margin: 1.25rem 0;
    box-shadow: 0 8px 22px rgba(163, 93, 0, 0.28);
    color: #fff;
}

.kvk-stat-band-blue {
    background: linear-gradient(135deg, #2f8fd9 0%, #185a99 100%);
    box-shadow: 0 8px 22px rgba(24, 90, 153, 0.3);
}

.kvk-stat-band-green {
    background: linear-gradient(135deg, #2fae7a 0%, #16704d 100%);
    box-shadow: 0 8px 22px rgba(22, 112, 77, 0.3);
}

    .kvk-stat-band-blue .home-kvk-highlight-more,
    .kvk-stat-band-green .home-kvk-highlight-more {
        color: #eafff5;
    }

.kvk-stat-crown {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    font-size: 2.4rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.home-kvk-highlight {
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .home-kvk-highlight:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(163, 93, 0, 0.4);
    }

.home-kvk-highlight-more {
    flex-basis: 100%;
    text-align: right;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffe9a8;
    margin-top: 0.3rem;
}

.kvk-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.kvk-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.1;
}

.kvk-stat-label {
    font-size: 0.78rem;
    opacity: 0.85;
    letter-spacing: 0.05em;
}

.kvk-stat-win .kvk-stat-value {
    color: #baffc9;
}

.kvk-stat-lose .kvk-stat-value {
    color: #ffd0d0;
}

.kvk-stat-rate .kvk-stat-value {
    font-size: 2.1rem;
    color: #ffe9a8;
}


.guide-overview {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.75rem 0 1.5rem;
}

.guide-bar-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: nowrap;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    background: #fdf6ea;
    border: 1px solid #f5e6c8;
}

    .guide-bar-row .guide-tag {
        flex-shrink: 0;
        width: 108px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: center;
    }

    a.guide-bar-row:hover {
        background: #fdecc8;
    }

.guide-bar-badge {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0a830 0%, #d98c1f 100%);
    color: #fff;
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-bar-icon {
    flex-shrink: 0;
    font-size: 1.15rem;
    width: 1.3rem;
    text-align: center;
}

.guide-bar-label {
    flex-shrink: 0;
    width: 92px;
    font-weight: 700;
    color: #333;
}

.guide-bar-track {
    flex: 1 1 80px;
    min-width: 60px;
    height: 10px;
    background: #f0e0bf;
    border-radius: 999px;
    overflow: hidden;
}

.guide-bar-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #f0a830 0%, #d98c1f 100%);
    border-radius: 999px;
}

.guide-bar-value {
    flex-shrink: 0;
    width: 40px;
    text-align: right;
    font-weight: 700;
    color: #a35d00;
    font-size: 0.9rem;
}

.guide-overview-compact .guide-bar-row {
    background: #fff;
}

.guide-rank {
    scroll-margin-top: 1rem;
    border: 1px solid #eee;
    border-radius: 10px;
    margin: 1.25rem 0;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .guide-rank:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(163, 93, 0, 0.2);
    }

.guide-rank-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: linear-gradient(90deg, #fdf1de 0%, #fdecc8 100%);
    padding: 0.9rem 1.1rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background 0.15s ease;
}

    .guide-rank-header:hover {
        background: linear-gradient(90deg, #fdecc8 0%, #fbdfb0 100%);
    }

    .guide-rank-header::-webkit-details-marker {
        display: none;
    }

    .guide-rank-header > div {
        flex: 1;
    }

.guide-rank-icon {
    flex-shrink: 0;
    width: 1.8rem;
    font-size: 1.5rem;
    text-align: center;
}

.guide-rank-chevron {
    flex-shrink: 0;
    color: #a35d00;
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

details.guide-rank[open] .guide-rank-chevron {
    transform: rotate(180deg);
}

.guide-rank-badge {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0a830 0%, #d98c1f 100%);
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-rank-percent {
    color: #a35d00;
    font-weight: 700;
    font-size: 0.85rem;
}

.guide-rank-body {
    padding: 1.1rem;
}

.guide-list {
    margin: 0.5rem 0;
    padding-left: 1.4rem;
}

    .guide-list li {
        margin: 0.3rem 0;
    }

    .guide-list li::marker {
        color: #d98c1f;
        font-weight: 700;
    }

.guide-rank-body > ul.guide-list,
.guide-rank-body > ol.guide-list {
    background: #fff;
    border: 1px solid #f5e6c8;
    border-radius: 8px;
    padding: 0.4rem 1.25rem 0.4rem 2rem;
    margin: 0.75rem 0;
    overflow: hidden;
}

    .guide-rank-body > ul.guide-list > li,
    .guide-rank-body > ol.guide-list > li {
        padding: 0.4rem 0.5rem;
        margin: 0.15rem -0.5rem;
        border-radius: 4px;
    }

        .guide-rank-body > ul.guide-list > li:nth-child(even),
        .guide-rank-body > ol.guide-list > li:nth-child(even) {
            background: #fdf1de;
        }

.guide-rank-body strong {
    color: #a35d00;
}

.guide-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 0;
}

    .guide-checklist li {
        background: #eef7f0;
        border: 1px solid #cdead4;
        border-radius: 8px;
        padding: 0.5rem 0.9rem;
        color: #1f7a3d;
        font-weight: 600;
    }

        .guide-checklist li::before {
            content: "✅ ";
        }

.guide-section-divider {
    border-top: 1px dashed #e6d5b0;
    margin: 1.75rem 0 0;
}

.guide-callout {
    margin-top: 0.9rem;
    padding: 0.8rem 1rem;
    background: #eef7f0;
    border-left: 4px solid #06d6a0;
    border-radius: 6px;
}

.guide-callout-warn {
    background: #fdecec;
    border-left-color: #ff6b6b;
}

.guide-callout-conclusion {
    background: #fdf1de;
    border-left-color: #d98c1f;
    margin: 1.5rem 0;
}

.swordland-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4em;
    height: 1.4em;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 0.8em;
    line-height: 1;
}

.swordland-num-red {
    background: #e53e3e;
}

.swordland-num-blue {
    background: #3b82f6;
}

.swordland-num-green {
    background: #22c55e;
}

.swordland-num-purple {
    background: #a855f7;
}

.swordland-num-orange {
    background: #f0a830;
}

.swordland-num-teal {
    background: #14b8a6;
}

.swordland-num-pink {
    background: #ec4899;
}

.guide-table rt {
    font-size: 0.62em;
    color: #a35d00;
}

.bear-toggle {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 440px;
    background: #f0e6d2;
    border-radius: 999px;
    padding: 5px;
    margin: 0.75rem 0 1.2rem;
    box-shadow: inset 0 1px 4px rgba(163, 93, 0, 0.15);
}

.bear-toggle-thumb {
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(50% - 5px);
    height: calc(100% - 10px);
    background: linear-gradient(90deg, #f0a830 0%, #d98c1f 100%);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(163, 93, 0, 0.4);
    transition: transform 0.25s ease;
}

    .bear-toggle-thumb.is-right {
        transform: translateX(100%);
    }

.bear-toggle-btn {
    position: relative;
    z-index: 1;
    border: none;
    background: transparent;
    padding: 0.6rem 0.5rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.88rem;
    color: #a35d00;
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
}

    .bear-toggle-btn.active {
        color: #fff;
    }

.hero-tier-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin: 0.75rem 0;
}

.hero-tier-note {
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.5rem !important;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 0.7rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.hero-badge-blue {
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
}

.hero-badge-red {
    background: linear-gradient(90deg, #ef4444 0%, #b91c1c 100%);
}

.hero-badge-purple {
    background: linear-gradient(90deg, #a855f7 0%, #7e22ce 100%);
}

.hero-badge-green {
    background: linear-gradient(90deg, #4ade80 0%, #15803d 100%);
}

.hero-badge-gold {
    background: linear-gradient(90deg, #f0a830 0%, #d98c1f 100%);
}

.hero-portrait-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-portrait-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.hero-portrait {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 18%;
    border: 3px solid;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-portrait-blue {
    border-color: #1d4ed8;
}

.hero-portrait-red {
    border-color: #b91c1c;
}

.hero-portrait-purple {
    border-color: #7e22ce;
}

.hero-portrait-green {
    border-color: #15803d;
}

.hero-portrait-gold {
    border-color: #d98c1f;
}

.hero-portrait-pair {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.hero-portrait-plus {
    color: #d98c1f;
    font-weight: 800;
    font-size: 1rem;
}

.hero-portrait-sm {
    width: 60px;
    height: 60px;
}

.hero-portrait-margo {
    object-position: 35% 15%;
}

.hero-portrait-name {
    display: inline-block;
    padding: 0.15rem 0.7rem;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    font-size: 0.76rem;
    white-space: nowrap;
}

.hero-portrait-name-blue {
    background: #1d4ed8;
}

.hero-portrait-name-red {
    background: #b91c1c;
}

.hero-portrait-name-purple {
    background: #7e22ce;
}

.hero-portrait-name-green {
    background: #15803d;
}

.hero-portrait-name-gold {
    background: #d98c1f;
}

.tip-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin: 0.75rem 0;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    background: #fdf6ea;
    border: 1px solid #f5e6c8;
    border-radius: 10px;
    padding: 0.7rem 1rem;
}

.tip-num {
    flex-shrink: 0;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0a830 0%, #d98c1f 100%);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.tip-desc {
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.2rem !important;
}

.swordland-phase-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    margin: 1rem 0;
}

.swordland-phase-arrow,
.swordland-phase-plus {
    align-self: center;
    color: #d98c1f;
    font-weight: 800;
    font-size: 1.3rem;
    line-height: 1;
}

.swordland-phase-card {
    background: #fff;
    border: 1px solid #f0e0c0;
    border-radius: 10px;
    padding: 1rem 1.1rem;
}

.swordland-phase-badge {
    display: inline-block;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 0.7rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.swordland-phase-early {
    background: linear-gradient(90deg, #4ade80 0%, #16a34a 100%);
}

.swordland-phase-mid {
    background: linear-gradient(90deg, #f0a830 0%, #d98c1f 100%);
}

.swordland-phase-late {
    background: linear-gradient(90deg, #f87171 0%, #dc2626 100%);
}

.swordland-phase-gather {
    background: linear-gradient(90deg, #60a5fa 0%, #2563eb 100%);
}

.swordland-priority-chain {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.6rem;
}

.swordland-chip {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    white-space: nowrap;
}

.swordland-chain-op {
    font-weight: 800;
    color: #bbb;
    font-size: 0.85rem;
}

.swordland-phase-notes {
    margin: 0;
    font-size: 0.85rem;
}

    .swordland-phase-notes li {
        margin: 0.25rem 0;
    }

.guide-diagram {
    display: block;
    width: 100%;
    max-width: 640px;
    margin: 0.75rem auto 0;
    border-radius: 10px;
    border: 1px solid #f0e0c0;
}

.guide-callout-label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #333;
}

.guide-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    background: #fdf6ea;
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    margin: 0.5rem 0 1rem;
    font-weight: 600;
}

.guide-ratio-badge {
    display: inline-block;
    background: linear-gradient(90deg, #f0a830 0%, #d98c1f 100%);
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 6px rgba(163, 93, 0, 0.25);
}

.guide-squad-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.guide-squad-badge {
    display: inline-block;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.guide-squad-badge-1 {
    background: linear-gradient(90deg, #f7c948 0%, #d9a520 100%);
}

.guide-squad-badge-2 {
    background: linear-gradient(90deg, #b8c0c8 0%, #8b96a3 100%);
}

.guide-squad-badge-3 {
    background: linear-gradient(90deg, #d18a54 0%, #a86230 100%);
}

.guide-priority-num {
    display: inline-block;
    font-size: 1.3em;
    font-weight: 800;
    color: #d98c1f;
    margin-right: 0.15rem;
}

.guide-flow-arrow {
    color: #d98c1f;
    font-weight: 800;
}

.guide-compare {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

    .guide-compare > div {
        flex: 1 1 260px;
    }

.alliance-highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.9rem;
    margin: 1.25rem 0;
}

.alliance-highlight-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    background: linear-gradient(180deg, #fffaf0 0%, #fdecc8 100%);
    border: 1px solid #f0d9b5;
    border-radius: 12px;
    padding: 1.1rem 0.9rem;
    text-decoration: none;
    color: #333;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

    .alliance-highlight-card:hover {
        background: linear-gradient(180deg, #f7c15c 0%, #d98c1f 100%);
        border-color: #a35d00;
        transform: translateY(-3px);
        box-shadow: 0 10px 22px rgba(163, 93, 0, 0.3);
    }

        .alliance-highlight-card:hover .alliance-highlight-title,
        .alliance-highlight-card:hover .alliance-highlight-desc {
            color: #fff;
        }

.alliance-highlight-icon {
    font-size: 1.8rem;
}

.alliance-highlight-title {
    font-weight: 800;
    font-size: 1.05rem;
    color: #a35d00;
}

.alliance-highlight-desc {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.4;
}

.alliance-highlight-card-pending {
    background: #fafafa;
    border-style: dashed;
    color: #999;
    cursor: default;
}

    .alliance-highlight-card-pending:hover {
        background: #fafafa;
        border-color: #f0d9b5;
        transform: none;
        box-shadow: none;
    }

        .alliance-highlight-card-pending:hover .alliance-highlight-title,
        .alliance-highlight-card-pending:hover .alliance-highlight-desc {
            color: #999;
        }

    .alliance-highlight-card-pending .alliance-highlight-title {
        color: #999;
    }

.home-content-grid .alliance-highlight-card {
    background: linear-gradient(180deg, #fffaf0 0%, var(--accent-light) 100%);
    border-color: var(--accent-light);
}

.home-content-grid .alliance-highlight-title {
    color: var(--accent);
}

.home-content-grid .alliance-highlight-card:hover {
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-color: var(--accent-dark);
}

.home-card-red {
    --accent: #ef4444;
    --accent-light: #fde2e2;
    --accent-dark: #b91c1c;
}

.home-card-gold {
    --accent: #d9a520;
    --accent-light: #fdf1cf;
    --accent-dark: #b8860b;
}

.home-card-green {
    --accent: #22c55e;
    --accent-light: #e1f7e8;
    --accent-dark: #15803d;
}

.home-card-teal {
    --accent: #14b8a6;
    --accent-light: #dcf5f2;
    --accent-dark: #0f766e;
}

.home-card-blue {
    --accent: #3b82f6;
    --accent-light: #e2ecfd;
    --accent-dark: #1d4ed8;
}

.home-card-purple {
    --accent: #a855f7;
    --accent-light: #f2e5fd;
    --accent-dark: #7e22ce;
}

.alliance-section {
    scroll-margin-top: 1rem;
    background: #fff;
    border: 1px solid #f0e0c0;
    border-radius: 12px;
    padding: 1.1rem 1.4rem 1.4rem;
    margin: 1.25rem 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

    .alliance-section:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 24px rgba(163, 93, 0, 0.16);
        border-color: #f0c988;
    }

@media (max-width: 700px) {
    .guide-bar-label {
        width: 68px;
        font-size: 0.9rem;
    }

    .guide-bar-track {
        flex-basis: 60px;
    }

    .guide-bar-row .guide-tag {
        display: none;
    }
}

.gen-countdown-band {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
    border-radius: 12px;
    padding: 0.85rem 1.3rem;
    margin: 1rem 0;
    box-shadow: 0 8px 22px rgba(126, 34, 206, 0.3);
    color: #fff;
    text-decoration: none;
    flex-wrap: wrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .gen-countdown-band:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(126, 34, 206, 0.42);
    }

.gen-countdown-icon {
    font-size: 1.8rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.gen-countdown-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.gen-countdown-label {
    font-size: 0.72rem;
    opacity: 0.85;
    letter-spacing: 0.05em;
}

.gen-countdown-title {
    font-weight: 800;
    font-size: 1.05rem;
}

.gen-countdown-date {
    font-weight: 800;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 0.25rem 0.6rem;
}

.gen-countdown-days {
    font-weight: 800;
    color: #f5e1ff;
}

.gen-countdown-more {
    margin-left: auto;
    font-size: 0.85rem;
    font-weight: 700;
    color: #f5e1ff;
}

.gen-stat-band {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.4rem;
    background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
    border-radius: 14px;
    padding: 1.2rem 1.6rem;
    margin: 1.25rem 0;
    box-shadow: 0 8px 22px rgba(126, 34, 206, 0.3);
    color: #fff;
}

.gen-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
}

.gen-stat-item .gen-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.gen-stat-item .gen-stat-label {
    font-size: 0.78rem;
    opacity: 0.85;
    letter-spacing: 0.05em;
}

.gen-stat-item-next .gen-stat-value {
    color: #f5e1ff;
}

.gen-stat-item-days .gen-stat-value {
    font-size: 1.7rem;
    color: #ffe9a8;
}

.gen-stat-arrow {
    font-size: 1.4rem;
    opacity: 0.8;
}

.gen-stat-divider {
    width: 1px;
    align-self: stretch;
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 700px) {
    .gen-countdown-band {
        gap: 0.6rem;
        padding: 0.7rem 1rem;
    }

    .gen-countdown-more {
        flex-basis: 100%;
        margin-left: 0;
        text-align: right;
    }

    .gen-stat-divider {
        display: none;
    }
}

.gen-hero-portrait {
    width: 100%;
    max-width: 180px;
    height: 120px;
    object-fit: contain;
    object-position: center bottom;
    background: #fff;
    border-radius: 10px;
    border: 3px solid;
    padding: 0.3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.gen-hero-portrait-red {
    border-color: #b91c1c;
}

.gen-hero-portrait-blue {
    border-color: #1d4ed8;
}

.gen-hero-portrait-purple {
    border-color: #7e22ce;
}

.gen-hero-grid .alliance-highlight-title {
    color: var(--accent-dark);
}

.gen-hero-more {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-dark);
    opacity: 0.8;
}

.gen-hero-grid .alliance-highlight-card:hover .gen-hero-more {
    color: #fff;
    opacity: 1;
}

.emu-toggle {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 440px;
    background: #f0e6d2;
    border-radius: 999px;
    padding: 5px;
    margin: 0.75rem 0 1.2rem;
    box-shadow: inset 0 1px 4px rgba(163, 93, 0, 0.15);
}

.emu-toggle-thumb {
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(50% - 5px);
    height: calc(100% - 10px);
    background: linear-gradient(90deg, #f0a830 0%, #d98c1f 100%);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(163, 93, 0, 0.4);
    transition: transform 0.25s ease;
}

    .emu-toggle-thumb.is-right {
        transform: translateX(100%);
    }

.emu-toggle-btn {
    position: relative;
    z-index: 1;
    border: none;
    background: transparent;
    padding: 0.6rem 0.5rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.88rem;
    color: #a35d00;
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
}

    .emu-toggle-btn.active {
        color: #fff;
    }

.cycle-flow {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    margin: 1rem 0;
}

.cycle-flow-arrow {
    align-self: center;
    color: #d98c1f;
    font-weight: 800;
    font-size: 1.3rem;
    line-height: 1.1;
    text-align: center;
}

.cycle-flow-note {
    align-self: center;
    color: #a35d00;
    font-weight: 700;
    font-size: 0.8rem;
    margin-top: -0.15rem;
}

.cycle-card {
    background: #fff;
    border: 1px solid #f0e0c0;
    border-radius: 10px;
    padding: 0.9rem 1.1rem;
}

.cycle-card-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.cycle-card-desc {
    color: #555;
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
}

.cycle-badge {
    display: inline-block;
    padding: 0.22rem 0.8rem;
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    font-size: 0.78rem;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.cycle-badge-red {
    background: linear-gradient(90deg, #f87171 0%, #dc2626 100%);
}

.cycle-badge-orange {
    background: linear-gradient(90deg, #f0a830 0%, #d98c1f 100%);
}

.cycle-badge-gold {
    background: linear-gradient(90deg, #d9a520 0%, #b8860b 100%);
}

.cycle-badge-blue {
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
}

.cycle-badge-teal {
    background: linear-gradient(90deg, #14b8a6 0%, #0f766e 100%);
}

.cycle-badge-purple {
    background: linear-gradient(90deg, #a855f7 0%, #7e22ce 100%);
}

.cycle-badge-gray {
    background: linear-gradient(90deg, #9ca3af 0%, #4b5563 100%);
}

.cycle-overlay-box {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0.75rem 0;
}

.cycle-overlay-chip {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #fdf6ea;
    border: 1px solid #f0e0c0;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #a35d00;
}

.cycle-timeline {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0.2rem 1.1rem;
    margin: 0.75rem 0;
}

.cycle-timeline-node {
    flex: 0 0 auto;
    padding: 0.65rem 1.1rem;
    border-radius: 10px;
    color: #fff;
    font-weight: 800;
    font-size: 0.92rem;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

.cycle-timeline-node-red {
    background: linear-gradient(90deg, #f87171 0%, #dc2626 100%);
}

.cycle-timeline-node-orange {
    background: linear-gradient(90deg, #f0a830 0%, #d98c1f 100%);
}

.cycle-timeline-node-gold {
    background: linear-gradient(90deg, #d9a520 0%, #b8860b 100%);
}

.cycle-timeline-node-blue {
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
}

.cycle-timeline-node-teal {
    background: linear-gradient(90deg, #14b8a6 0%, #0f766e 100%);
}

.cycle-timeline-node-purple {
    background: linear-gradient(90deg, #a855f7 0%, #7e22ce 100%);
}

.cycle-timeline-node-gray {
    background: linear-gradient(90deg, #9ca3af 0%, #4b5563 100%);
}

.cycle-timeline-arrow {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

.cycle-timeline-arrow-symbol {
    color: #d98c1f;
    font-weight: 800;
    font-size: 1.3rem;
}

.cycle-timeline-arrow-label {
    color: #a35d00;
    font-weight: 700;
    font-size: 0.7rem;
    white-space: nowrap;
}

.cycle-flow .cycle-timeline-node {
    align-self: center;
}

.cycle-flow-h {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0.2rem 1.1rem;
    margin: 0.75rem 0;
}

.cycle-card-h {
    flex: 0 0 230px;
    border-top-width: 4px;
    border-top-style: solid;
}

.cycle-card-accent-red {
    border-top-color: #dc2626;
}

.cycle-card-accent-orange {
    border-top-color: #d98c1f;
}

.cycle-card-accent-gold {
    border-top-color: #b8860b;
}

.cycle-card-accent-blue {
    border-top-color: #1d4ed8;
}

.cycle-card-accent-teal {
    border-top-color: #0f766e;
}

.cycle-card-accent-purple {
    border-top-color: #7e22ce;
}

.cycle-card-accent-gray {
    border-top-color: #4b5563;
}

.guide-stars {
    color: #d98c1f;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
}

.guide-star-empty {
    color: #e6d5b0;
}

.guide-tag-day1,
.guide-tag-day2,
.guide-tag-day3,
.guide-tag-day4,
.guide-tag-day5 {
    font-weight: 700;
}

.guide-tag-day1 {
    background: #fdecc8;
    color: #a35d00;
}

.guide-tag-day2 {
    background: #dbeafe;
    color: #1d4ed8;
}

.guide-tag-day3 {
    background: #ccfbf1;
    color: #0f766e;
}

.guide-tag-day4 {
    background: #f3e8ff;
    color: #7e22ce;
}

.guide-tag-day5 {
    background: #fee2e2;
    color: #dc2626;
}

.budget-tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.guide-checklist-warn li {
    background: #fdecec;
    border-color: #f3c6c6;
    color: #b3261e;
}

    .guide-checklist-warn li::before {
        content: "❌ ";
    }

/* ============ /stats (MightPulse) ============ */
.stats-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.9rem;
    margin: 1.25rem 0;
}

.stats-summary-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-align: center;
    background: linear-gradient(135deg, #d98c1f 0%, #a35d00 100%);
    border-radius: 14px;
    padding: 1.1rem 0.9rem;
    color: #fff;
    box-shadow: 0 8px 22px rgba(163, 93, 0, 0.28);
}

.stats-summary-value {
    font-size: 1.5rem;
    font-weight: 800;
}

.stats-summary-label {
    font-size: 0.8rem;
    color: #ffe9a8;
}

.stats-updated {
    text-align: right;
    font-size: 0.8rem;
    color: #888;
    margin: 0.4rem 0 0.5rem;
}

.stats-board-select-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 1rem 0;
}

.stats-board-select-label {
    font-weight: 700;
    color: #a35d00;
}

.stats-board-select {
    flex: 1 1 auto;
    max-width: 260px;
    padding: 0.5rem 0.7rem;
    border: 1px solid #f0d9b5;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 0.95rem;
}

.stats-loading {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: #fdf6ea;
    border: 1px solid #f0d9b5;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin: 1rem 0;
    color: #555;
}

.stats-loading-note {
    font-size: 0.82rem;
    color: #888;
    margin-top: 0.2rem;
}

.stats-loading-spinner {
    flex-shrink: 0;
    width: 1.6rem;
    height: 1.6rem;
    border: 3px solid #f0d9b5;
    border-top-color: #d98c1f;
    border-radius: 50%;
    animation: stats-spin 0.8s linear infinite;
}

@keyframes stats-spin {
    to {
        transform: rotate(360deg);
    }
}

.stats-error {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    background: #fdecec;
    border: 1px solid #f3c6c6;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin: 1rem 0;
    color: #b3261e;
}

.stats-retry-btn {
    flex-shrink: 0;
    background: #b3261e;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.1rem;
    font-weight: 700;
    cursor: pointer;
}

    .stats-retry-btn:hover {
        background: #921e17;
    }

.stats-disclaimer {
    background: #fafafa;
    border: 1px dashed #ddd;
    border-radius: 10px;
    padding: 0.9rem 1.1rem;
    color: #777;
    font-size: 0.82rem;
    line-height: 1.7;
}

    .stats-disclaimer p {
        margin: 0.2rem 0;
    }

/* ============ /jp-active ============ */
.jp-active-rank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}

.jp-active-rank-card {
    background: #fff;
    border: 1px solid #f0d9b5;
    border-radius: 12px;
    padding: 1rem 1.1rem 1.2rem;
    box-shadow: 0 4px 12px rgba(163, 93, 0, 0.1);
}

.jp-active-rank-title {
    font-weight: 700;
    color: #a35d00;
    margin-bottom: 0.6rem;
}

.jp-active-rank-table {
    width: 100%;
}

.jp-active-row-highlight {
    background: #fff1d6 !important;
    font-weight: 700;
}