/* =====================================================================
   KaedeMS — website styles
   Light sakura theme · classic portal layout
   Brand: bg #FFF4F8 · purple #6B3FA0 · pink #E0457A · leaf #C9244D/#FF5C80 · outline #5A1730
   ===================================================================== */

:root {
    --k-bg: #FFFBF7;
    --k-bg-deep: #FDE9F1;
    --k-cream: #FFFBF6;
    --k-card: #FFFFFF;
    --k-purple: #6B3FA0;
    --k-purple-dark: #4E2B79;
    --k-purple-soft: #EDE3F8;
    --k-lilac: #CDB6EC;
    --k-pink: #E0457A;
    --k-pink-light: #FF5C80;
    --k-pink-soft: #FFE3EC;
    --k-leaf: #C9244D;
    --k-plum: #5A1730;
    --k-plum-2: #3E0F21;
    --k-ink: #3B2140;
    --k-ink-soft: #7A6382;
    --k-line: #EADFF2;
    --k-line-strong: #D9C8F0;
    --k-gold: #F2B533;
    --k-green: #3FB97A;
    --k-radius: 18px;
    --k-radius-sm: 12px;
    --k-shadow: 0 6px 0 #F0E7F7, 0 14px 30px rgba(107, 63, 160, .08);
    --k-shadow-hover: 0 8px 0 #E6DAF2, 0 20px 40px rgba(107, 63, 160, .14);
    --k-font-display: "Fredoka", "Nunito", system-ui, sans-serif;
    --k-font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
    --k-font-jp: "Zen Maru Gothic", "Fredoka", sans-serif;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--k-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--k-ink);
    background-color: var(--k-bg);
}
h1, h2, h3, h4, h5, h6 { font-family: var(--k-font-display); color: var(--k-purple); font-weight: 600; line-height: 1.25; }
a { color: var(--k-pink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--k-leaf); }
::selection { background: var(--k-pink-soft); color: var(--k-plum); }
img { max-width: 100%; }
.k-main { flex: 1 0 auto; position: relative; z-index: 2; }
.k-jp { font-family: var(--k-font-jp); font-weight: 900; color: var(--k-leaf); }
.text-soft { color: var(--k-ink-soft) !important; }
.visually-hidden-focusable:focus { position: fixed; top: 8px; left: 8px; z-index: 3000; background: #fff; padding: 8px 14px; border-radius: 10px; }

/* ---------- Top strip ---------- */
.k-topbar {
    background: var(--k-plum);
    color: #F8DCE7;
    font-size: .85rem;
    position: relative;
    z-index: 30;
}
.k-topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.k-topbar a { color: #FFD7E5; font-weight: 700; }
.k-topbar a:hover { color: #fff; }
.k-topbar__left, .k-topbar__right { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.k-topbar__item { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.k-topbar__item i { color: var(--k-pink-light); }
.k-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: #B9A2B3; display: inline-block; flex-shrink: 0;
}
.k-dot.is-online { background: var(--k-green); box-shadow: 0 0 0 0 rgba(63, 185, 122, .6); animation: k-pulse 2.2s infinite; }
.k-dot.is-offline { background: #E35D6A; }
@keyframes k-pulse {
    0% { box-shadow: 0 0 0 0 rgba(63, 185, 122, .55); }
    70% { box-shadow: 0 0 0 7px rgba(63, 185, 122, 0); }
    100% { box-shadow: 0 0 0 0 rgba(63, 185, 122, 0); }
}

/* ---------- Hero scene (layered parallax) ---------- */
.k-scene {
    position: relative;
    height: 470px;
    overflow: hidden;
    background: url("../images/scene/sky.png") center top / 100% 100% no-repeat, #EEE2FC;
    isolation: isolate;
}
.k-scene--compact { height: 290px; }
.k-scene__layer {
    position: absolute; left: 0; right: 0; bottom: 0;
    background-repeat: repeat-x;
    background-position: 0 100%;
    will-change: background-position, transform;
    pointer-events: none;
}
.k-scene__clouds   { top: 26px; bottom: auto; height: 160px; background-image: url("../images/scene/blossom-clouds.png"); background-size: auto 160px; animation: k-drift 120s linear infinite; opacity: .95; }
.k-scene__mountains{ height: 250px; background-image: url("../images/scene/far-mountains.png"); background-size: auto 250px; bottom: 40px; }
.k-scene__far      { height: 210px; background-image: url("../images/scene/far-cherry-trees.png"); background-size: auto 210px; bottom: 34px; }
.k-scene__near     { height: 300px; background-image: url("../images/scene/near-cherry-trees.png"); background-size: auto 300px; bottom: -36px; }
.k-scene--compact .k-scene__clouds { height: 110px; background-size: auto 110px; top: 14px; }
.k-scene--compact .k-scene__mountains { height: 170px; background-size: auto 170px; bottom: 20px; }
.k-scene--compact .k-scene__far { height: 150px; background-size: auto 150px; bottom: 18px; }
.k-scene--compact .k-scene__near { height: 210px; background-size: auto 210px; bottom: -40px; }
@keyframes k-drift { from { background-position: 0 0; } to { background-position: -1200px 0; } }

.k-scene__content {
    position: relative; z-index: 5;
    height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    padding: 0 1rem 120px;
}
.k-scene--compact .k-scene__content { padding-bottom: 90px; }
.k-scene__logo {
    width: min(560px, 86vw);
    height: auto;
    filter: drop-shadow(0 8px 18px rgba(107, 63, 160, .18));
    animation: k-float 6s ease-in-out infinite;
}
.k-scene--compact .k-scene__logo { width: min(330px, 70vw); }
@keyframes k-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.k-scene__tagline {
    margin: .25rem 0 1.1rem;
    font-family: var(--k-font-display);
    font-weight: 500;
    font-size: 1.15rem;
    color: var(--k-purple-dark);
    background: rgba(255, 255, 255, .72);
    padding: .35rem 1.1rem;
    border-radius: 999px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 0 rgba(107, 63, 160, .08);
}
.k-scene__actions { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }
.k-scene__title {
    font-size: clamp(2rem, 4vw, 2.9rem);
    color: var(--k-purple);
    margin: 0;
    text-shadow: 0 3px 0 #fff, 0 6px 0 rgba(205, 182, 236, .9);
}
.k-scene__crumb { font-family: var(--k-font-display); color: var(--k-purple-dark); background: rgba(255,255,255,.75); padding: .2rem .9rem; border-radius: 999px; margin-top: .6rem; font-size: .95rem; }

/* ---------- Navigation ribbon ---------- */
.k-nav-wrap {
    position: relative;
    z-index: 25;
    margin-top: -32px;
}
.k-nav {
    background: var(--k-card);
    border: 2px solid var(--k-line-strong);
    border-radius: 22px;
    box-shadow: 0 6px 0 #E6DAF2, 0 16px 34px rgba(90, 23, 48, .10);
    padding: .45rem .55rem;
}
.k-nav .navbar { padding: 0; }
.k-nav__brand { display: flex; align-items: center; gap: .5rem; font-family: var(--k-font-display); font-weight: 700; font-size: 1.25rem; color: var(--k-purple) !important; padding: 0 .5rem; }
.k-nav__brand img { width: 34px; height: 34px; }
.k-nav__brand small { color: var(--k-pink); font-size: .8rem; font-weight: 700; margin-left: -.25rem; align-self: flex-end; margin-bottom: .35rem; }
.k-nav .nav-link {
    font-family: var(--k-font-display);
    font-weight: 500;
    font-size: 1.02rem;
    color: var(--k-ink) !important;
    padding: .55rem .95rem !important;
    border-radius: 14px;
    display: flex; align-items: center; gap: .45rem;
    transition: background .2s, color .2s, transform .2s;
}
.k-nav .nav-link i { color: var(--k-pink); font-size: .95rem; width: 1.1em; text-align: center; }
.k-nav .nav-link:hover { background: var(--k-pink-soft); color: var(--k-plum) !important; }
.k-nav .nav-link.active { background: linear-gradient(180deg, #F4ECFC, #E9DDF8); color: var(--k-purple) !important; box-shadow: inset 0 -3px 0 var(--k-lilac); }
.k-nav .navbar-toggler { border: 2px solid var(--k-line-strong); border-radius: 12px; padding: .35rem .6rem; color: var(--k-purple); }
.k-nav .navbar-toggler:focus { box-shadow: 0 0 0 3px var(--k-pink-soft); }
.k-nav .dropdown-menu {
    border: 2px solid var(--k-line);
    border-radius: 16px;
    padding: .45rem;
    box-shadow: 0 14px 30px rgba(90, 23, 48, .14);
    min-width: 220px;
}
.k-nav .dropdown-item { border-radius: 10px; padding: .5rem .75rem; color: var(--k-ink); font-weight: 600; display: flex; gap: .6rem; align-items: center; }
.k-nav .dropdown-item i { color: var(--k-pink); width: 1.1em; text-align: center; }
.k-nav .dropdown-item:hover, .k-nav .dropdown-item:focus { background: var(--k-pink-soft); color: var(--k-plum); }
.k-nav .dropdown-divider { border-color: var(--k-line); }
.k-nav__cta { display: flex; gap: .5rem; align-items: center; }

/* ---------- Buttons ---------- */
.k-btn {
    --b1: var(--k-pink-light); --b2: var(--k-pink); --b3: var(--k-leaf);
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    font-family: var(--k-font-display);
    font-weight: 600;
    font-size: 1.02rem;
    letter-spacing: .01em;
    color: #fff !important;
    background: linear-gradient(180deg, var(--b1), var(--b2));
    border: 2px solid var(--b3);
    border-radius: 14px;
    padding: .6rem 1.35rem;
    box-shadow: 0 4px 0 var(--b3), inset 0 2px 0 rgba(255, 255, 255, .35);
    text-shadow: 0 1px 0 rgba(90, 23, 48, .35);
    cursor: url("../images/cursor/pointer.png") 3 1, pointer;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s;
    white-space: nowrap;
}
.k-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--b3), inset 0 2px 0 rgba(255, 255, 255, .35); filter: brightness(1.04); }
.k-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--b3), inset 0 2px 0 rgba(255, 255, 255, .25); }
.k-btn:focus-visible { outline: 3px solid var(--k-lilac); outline-offset: 2px; }
.k-btn--purple { --b1: #8A5CC4; --b2: var(--k-purple); --b3: var(--k-purple-dark); }
.k-btn--cream { --b1: #FFFFFF; --b2: #FFF1F6; --b3: var(--k-line-strong); color: var(--k-purple) !important; text-shadow: none; }
.k-btn--discord { --b1: #7984F5; --b2: #5865F2; --b3: #3E49C4; }
.k-btn--lg { font-size: 1.18rem; padding: .78rem 1.7rem; border-radius: 16px; }
.k-btn--sm { font-size: .9rem; padding: .38rem .9rem; border-radius: 11px; box-shadow: 0 3px 0 var(--b3), inset 0 2px 0 rgba(255,255,255,.35); }
.k-btn--block { width: 100%; }
.k-btn.disabled, .k-btn[aria-disabled="true"] { pointer-events: none; opacity: .6; }

/* ---------- Panels ---------- */
.k-panel {
    background: var(--k-card);
    border: 2px solid var(--k-line);
    border-radius: var(--k-radius);
    box-shadow: var(--k-shadow);
    position: relative;
}
.k-panel + .k-panel { margin-top: 1.6rem; }
.k-panel__head {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1rem 1.3rem .85rem;
    border-bottom: 2px dashed var(--k-line);
}
.k-panel__title {
    display: flex; align-items: center; gap: .6rem;
    margin: 0;
    font-size: 1.28rem;
    color: var(--k-purple);
}
.k-panel__title img { width: 26px; height: 26px; }
.k-panel__title i { color: var(--k-pink); }
.k-panel__body { padding: 1.15rem 1.3rem 1.3rem; }
.k-panel__more { font-family: var(--k-font-display); font-weight: 500; font-size: .92rem; white-space: nowrap; }
.k-panel--tint { background: linear-gradient(180deg, #FFFFFF 0%, #FBF7FF 100%); }
.k-panel--ribbon::before {
    content: ""; position: absolute; top: -2px; left: 26px; right: 26px; height: 6px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(90deg, var(--k-pink-light), var(--k-purple));
}

.k-section { padding: 2.4rem 0; }
.k-section-head { text-align: center; margin-bottom: 1.8rem; }
.k-eyebrow {
    display: inline-flex; align-items: center; gap: .45rem;
    font-family: var(--k-font-display); font-weight: 600; font-size: .82rem;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--k-pink);
    background: var(--k-pink-soft);
    border-radius: 999px;
    padding: .28rem .85rem;
}
.k-eyebrow img { width: 16px; height: 16px; }
.k-section-title { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: .6rem 0 .35rem; }
.k-section-sub { color: var(--k-ink-soft); max-width: 640px; margin: 0 auto; }

/* Ornamental divider:  ——— 楓 ——— */
.k-divider { display: flex; align-items: center; gap: .9rem; color: var(--k-lilac); margin: 1.2rem 0; }
.k-divider::before, .k-divider::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, transparent, var(--k-lilac), transparent); }
.k-divider span { font-family: var(--k-font-jp); font-weight: 900; color: var(--k-leaf); font-size: 1.1rem; }

/* ---------- Welcome card ---------- */
.k-welcome { overflow: hidden; }
.k-welcome__inner { display: grid; grid-template-columns: 1fr auto; gap: 1.2rem; align-items: center; padding: 1.6rem 1.6rem 1.3rem; }
.k-welcome h1 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin: .4rem 0 .6rem; }
.k-welcome p { color: var(--k-ink-soft); margin-bottom: 0; }
.k-welcome__leaf { width: 120px; height: 120px; animation: k-sway 5s ease-in-out infinite; transform-origin: 50% 85%; }
@keyframes k-sway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
.k-steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px dashed var(--k-line); }
.k-step {
    display: flex; gap: .85rem; align-items: flex-start;
    padding: 1.05rem 1.2rem;
    color: var(--k-ink);
    transition: background .2s;
    border-right: 2px dashed var(--k-line);
}
.k-step:last-child { border-right: 0; }
.k-step:hover { background: #FBF7FF; color: var(--k-ink); }
.k-step__num {
    flex-shrink: 0;
    width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center;
    font-family: var(--k-font-display); font-weight: 700; font-size: 1.2rem;
    color: #fff;
    background: linear-gradient(180deg, #8A5CC4, var(--k-purple));
    box-shadow: 0 3px 0 var(--k-purple-dark);
}
.k-step strong { display: block; font-family: var(--k-font-display); font-weight: 600; color: var(--k-purple); font-size: 1.05rem; }
.k-step small { color: var(--k-ink-soft); line-height: 1.35; display: block; }

/* ---------- Notice board ---------- */
.k-notices { list-style: none; margin: 0; padding: 0; }
.k-notice { border-bottom: 1px solid var(--k-line); }
.k-notice:last-child { border-bottom: 0; }
.k-notice a {
    display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center;
    padding: .85rem .4rem;
    color: var(--k-ink);
    border-radius: 12px;
    transition: background .2s, padding .2s;
}
.k-notice a:hover { background: #FBF7FF; padding-left: .8rem; }
.k-notice__title { font-weight: 700; color: var(--k-ink); display: block; }
.k-notice__desc { color: var(--k-ink-soft); font-size: .9rem; display: block; line-height: 1.4; }
.k-notice__date { font-size: .82rem; color: var(--k-ink-soft); white-space: nowrap; font-weight: 600; }
.k-tag {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 88px;
    font-family: var(--k-font-display); font-weight: 600; font-size: .78rem; letter-spacing: .03em;
    padding: .2rem .6rem; border-radius: 8px;
    border: 2px solid currentColor;
    background: #fff;
}
.k-tag--notice { color: var(--k-purple); }
.k-tag--update { color: #2E9D6B; }
.k-tag--event { color: var(--k-pink); }
.k-tag--maintenance { color: #D9822B; }
.k-new { font-family: var(--k-font-display); font-size: .7rem; font-weight: 700; color: #fff; background: var(--k-pink); border-radius: 6px; padding: .05rem .4rem; margin-left: .35rem; vertical-align: 2px; }
.k-empty { text-align: center; color: var(--k-ink-soft); padding: 1.6rem 1rem; }
.k-empty img { width: 54px; opacity: .55; margin-bottom: .5rem; filter: grayscale(.2); }

/* ---------- Feature cards ---------- */
.k-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.k-feature {
    background: var(--k-cream);
    border: 2px solid var(--k-line);
    border-radius: 16px;
    padding: 1.1rem 1.1rem 1rem;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.k-feature:hover { transform: translateY(-4px); border-color: var(--k-line-strong); box-shadow: 0 10px 22px rgba(107, 63, 160, .10); }
.k-feature__icon {
    width: 48px; height: 48px; border-radius: 14px;
    display: grid; place-items: center;
    font-size: 1.3rem; color: #fff;
    background: linear-gradient(180deg, var(--k-pink-light), var(--k-pink));
    box-shadow: 0 3px 0 var(--k-leaf);
    margin-bottom: .75rem;
}
.k-feature:nth-child(3n+2) .k-feature__icon { background: linear-gradient(180deg, #8A5CC4, var(--k-purple)); box-shadow: 0 3px 0 var(--k-purple-dark); }
.k-feature:nth-child(3n+3) .k-feature__icon { background: linear-gradient(180deg, #F6C65B, #E9A320); box-shadow: 0 3px 0 #C17F0E; }
.k-feature h3 { font-size: 1.1rem; margin: 0 0 .3rem; }
.k-feature p { font-size: .92rem; color: var(--k-ink-soft); margin: 0; line-height: 1.5; }

/* ---------- Automated events ---------- */
.k-events { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; }
.k-event { --ev: var(--k-pink); --ev2: var(--k-leaf); text-align: center; background: #fff; border: 2px solid var(--k-line); border-radius: 16px; padding: 1.1rem .7rem .95rem; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.k-event::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--ev); }
.k-event:hover { transform: translateY(-5px); border-color: var(--ev); box-shadow: 0 10px 22px rgba(107, 63, 160, .12); }
.k-event__icon { width: 54px; height: 54px; margin: 0 auto .65rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; color: #fff; background: var(--ev); box-shadow: 0 4px 0 var(--ev2); }
.k-event:hover .k-event__icon { animation: k-wiggle .5s ease; }
@keyframes k-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
.k-event h3 { font-size: .98rem; margin: 0 0 .25rem; }
.k-event p { font-size: .86rem; color: var(--k-ink-soft); margin: 0; line-height: 1.45; }
.k-event--red { --ev: #E5484D; --ev2: #A82A33; }
.k-event--green { --ev: #2E9D6B; --ev2: #1E7550; }
.k-event--purple { --ev: var(--k-purple); --ev2: var(--k-purple-dark); }
.k-event--gold { --ev: #E9A320; --ev2: #C17F0E; }
.k-event--blue { --ev: #3B82C9; --ev2: #285F99; }
.k-cmd { font-family: ui-monospace, Consolas, monospace; font-weight: 700; color: var(--k-purple-dark); background: var(--k-purple-soft); border-radius: 7px; padding: .1rem .45rem; }
.k-worldevents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-top: 1rem; }
.k-worldevent { display: flex; gap: .9rem; align-items: flex-start; padding: 1.05rem 1.1rem; border-radius: 16px; color: #fff; position: relative; overflow: hidden; }
.k-worldevent h3 { color: #fff; font-size: 1.15rem; margin: 0 0 .25rem; }
.k-worldevent p { margin: 0; font-size: .9rem; line-height: 1.5; color: rgba(255, 255, 255, .92); }
.k-worldevent b { color: #fff; }
.k-worldevent__icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .45); }
.k-worldevent--surge { background: linear-gradient(125deg, #C9244D, #F0603A 70%, #F2B533); border: 2px solid #A82A33; box-shadow: 0 5px 0 #A82A33; }
.k-worldevent--fortune { background: linear-gradient(125deg, #5A2F92, #8A3E9E 55%, #E0457A); border: 2px solid #4E2B79; box-shadow: 0 5px 0 #4E2B79; }
.k-prize { display: flex; align-items: center; justify-content: center; gap: .7rem; margin-top: 1rem; padding: .65rem 1rem; border-radius: 14px; background: linear-gradient(90deg, #FFF3D6, #FFE9F0); border: 2px dashed #F2CF6B; color: var(--k-ink); font-weight: 700; }
.k-prize b { color: var(--k-pink); font-family: var(--k-font-display); font-weight: 600; font-size: 1.08rem; }
.k-prize__coin { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff, #FFE3EC 60%, #F8C3D5); box-shadow: 0 0 0 2px #F2CF6B; }
.k-prize__coin img { width: 22px; height: 22px; }
@media (max-width: 1199px) { .k-events { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .k-events { grid-template-columns: repeat(2, minmax(0, 1fr)); } .k-worldevents { grid-template-columns: 1fr; } }

/* ---------- Kaede Market showcase ---------- */
.k-market {
    overflow: hidden;
    background: linear-gradient(180deg, #F3EAFE 0%, #FFE9F1 70%, #FFF4F8 100%);
}
.k-market__inner { display: grid; grid-template-columns: 210px 1fr; gap: 1.4rem; align-items: center; padding: 1.5rem 1.6rem .4rem; }
.k-market__sign { width: 210px; filter: drop-shadow(0 8px 12px rgba(90, 23, 48, .15)); }
.k-market h2 { font-size: 1.6rem; margin-bottom: .4rem; }
.k-market p { color: var(--k-ink-soft); }
.k-market__stalls { display: flex; justify-content: center; gap: 0; margin-top: .4rem; padding: 0 1rem; overflow: hidden; }
.k-market__stalls img { width: 112px; height: auto; margin: 0 -2px; transition: transform .25s; }
.k-market__stalls img:hover { transform: translateY(-6px); }
.k-market__ground { height: 18px; background: linear-gradient(180deg, #F6C3D6, #EFB0C7); border-top: 2px solid #E79BB7; }

/* ---------- Sidebar widgets ---------- */
.k-side > * + * { margin-top: 1.4rem; }
.k-account { text-align: center; }
.k-account__avatar {
    width: 76px; height: 76px; margin: -2px auto .6rem;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, #fff, var(--k-pink-soft));
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--k-line-strong), 0 6px 14px rgba(224, 69, 122, .2);
    display: grid; place-items: center;
}
.k-account__avatar img { width: 48px; height: 48px; }
.k-account__name { font-family: var(--k-font-display); font-weight: 600; font-size: 1.25rem; color: var(--k-purple); }
.k-account__links { display: grid; gap: .45rem; margin-top: 1rem; text-align: left; }
.k-account__links a {
    display: flex; align-items: center; gap: .7rem;
    padding: .55rem .8rem;
    border-radius: 12px;
    background: #FBF7FF;
    border: 2px solid var(--k-line);
    color: var(--k-ink);
    font-weight: 700; font-size: .95rem;
    transition: border-color .2s, background .2s, transform .2s;
}
.k-account__links a i { color: var(--k-pink); width: 1.2em; text-align: center; }
.k-account__links a:hover { border-color: var(--k-line-strong); background: #fff; transform: translateX(3px); }
.k-account__guest p { color: var(--k-ink-soft); font-size: .95rem; margin-bottom: 1rem; }
.k-account__btns { display: grid; gap: .65rem; }
.k-account__forgot { display: inline-block; margin-top: .75rem; font-size: .88rem; font-weight: 700; }

.k-stats { list-style: none; margin: 0; padding: 0; }
.k-stats li {
    display: flex; justify-content: space-between; align-items: center; gap: .5rem;
    padding: .62rem 0;
    border-bottom: 1px dashed var(--k-line);
}
.k-stats li:last-child { border-bottom: 0; }
.k-stats__label { display: flex; align-items: center; gap: .6rem; color: var(--k-ink-soft); font-weight: 600; font-size: .93rem; }
.k-stats__label i { color: var(--k-pink); width: 1.1em; text-align: center; }
.k-stats__value { font-family: var(--k-font-display); font-weight: 600; color: var(--k-purple); font-size: 1.05rem; font-variant-numeric: tabular-nums; }

.k-rates { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem; }
.k-rate {
    text-align: center;
    background: #FBF7FF;
    border: 2px solid var(--k-line);
    border-radius: 14px;
    padding: .65rem .4rem .55rem;
}
.k-rate b { display: block; font-family: var(--k-font-display); font-size: 1.6rem; font-weight: 700; color: var(--k-pink); line-height: 1.05; }
.k-rate span { font-size: .8rem; font-weight: 700; color: var(--k-ink-soft); text-transform: uppercase; letter-spacing: .08em; }
.k-rate--hi { background: linear-gradient(180deg, #F6EEFF, #EDE3F8); border-color: var(--k-lilac); }
.k-rate--hi b { color: var(--k-purple); }

.k-ratecard {
    position: relative; overflow: hidden;
    display: flex; align-items: center; gap: 1.1rem;
    padding: 1.25rem 1.3rem;
    border-radius: var(--k-radius);
    color: #fff;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 255, 255, .28), transparent 45%),
        linear-gradient(125deg, #5A2F92 0%, #8A3E9E 45%, #E0457A 100%);
    border: 2px solid #4E2B79;
    box-shadow: 0 6px 0 #4E2B79, 0 16px 34px rgba(107, 63, 160, .28);
}
.k-ratecard__leaf { position: absolute; right: -26px; bottom: -34px; width: 150px; opacity: .22; transform: rotate(-18deg); pointer-events: none; }
.k-ratecard__x {
    position: relative; flex-shrink: 0;
    font-family: var(--k-font-display); font-weight: 700; font-size: 4.2rem; line-height: .9; letter-spacing: -.03em;
    color: #fff;
    text-shadow: 0 4px 0 rgba(62, 15, 33, .35), 0 0 26px rgba(255, 196, 214, .75);
}
.k-ratecard__x span { font-size: .62em; color: #FFD7E5; margin-left: .04em; }
.k-ratecard__text { position: relative; min-width: 0; }
.k-ratecard__text strong { display: block; font-family: var(--k-font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; margin-bottom: .5rem; }
.k-ratecard__chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.k-ratecard__chips span {
    font-family: var(--k-font-display); font-weight: 500; font-size: .8rem; letter-spacing: .04em;
    padding: .12rem .6rem; border-radius: 999px;
    background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .4);
    backdrop-filter: blur(2px);
}
.k-ratecard--wide { padding: 1.5rem 1.8rem; gap: 1.6rem; }
.k-ratecard--wide .k-ratecard__x { font-size: 5.4rem; }
.k-ratecard--wide .k-ratecard__text strong { font-size: 1.7rem; }
.k-ratecard--wide .k-ratecard__chips span { font-size: .92rem; padding: .18rem .85rem; }
.k-ratecard--wide .k-ratecard__leaf { width: 210px; }
.k-top5 { list-style: none; margin: 0; padding: 0; counter-reset: top; }
.k-top5 li { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; border-bottom: 1px dashed var(--k-line); }
.k-top5 li:last-child { border-bottom: 0; }
.k-top5__rank {
    width: 30px; height: 30px; flex-shrink: 0; border-radius: 10px;
    display: grid; place-items: center;
    font-family: var(--k-font-display); font-weight: 700; font-size: .95rem;
    background: var(--k-purple-soft); color: var(--k-purple);
}
.k-top5 li:nth-child(1) .k-top5__rank { background: linear-gradient(180deg, #FFE08A, #F2B533); color: #7A4C00; }
.k-top5 li:nth-child(2) .k-top5__rank { background: linear-gradient(180deg, #F1F1F6, #CFCFDC); color: #4D4D62; }
.k-top5 li:nth-child(3) .k-top5__rank { background: linear-gradient(180deg, #FFD3B5, #E39B6A); color: #6B3413; }
.k-top5__who { flex: 1; min-width: 0; line-height: 1.2; }
.k-top5__who strong { display: block; color: var(--k-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-top5__who small { color: var(--k-ink-soft); }
.k-top5__lv { font-family: var(--k-font-display); font-weight: 600; color: var(--k-pink); }

.k-discord-card {
    background: linear-gradient(160deg, #6F7BF7 0%, #5865F2 60%, #4752C4 100%);
    border-color: #4752C4;
    box-shadow: 0 6px 0 #3C45A8, 0 14px 30px rgba(88, 101, 242, .25);
    color: #fff;
    overflow: hidden;
}
.k-discord-card .k-panel__body { position: relative; }
.k-discord-card h3 { color: #fff; font-size: 1.3rem; margin-bottom: .35rem; }
.k-discord-card p { color: rgba(255, 255, 255, .85); font-size: .93rem; }
.k-discord-card .fa-discord.k-discord-card__bg { position: absolute; right: -18px; bottom: -22px; font-size: 7.5rem; color: rgba(255, 255, 255, .1); }
.k-discord-card .k-btn { --b1: #fff; --b2: #F1F2FF; --b3: #3C45A8; color: #4752C4 !important; text-shadow: none; }

/* ---------- Generic content helpers ---------- */
.k-subnav { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 1.8rem; }
.k-chip {
    display: inline-flex; align-items: center; gap: .45rem;
    font-family: var(--k-font-display); font-weight: 500; font-size: .95rem;
    padding: .42rem .95rem;
    border-radius: 999px;
    background: #fff;
    border: 2px solid var(--k-line);
    color: var(--k-ink);
    transition: border-color .2s, background .2s, color .2s, transform .2s;
}
.k-chip i { color: var(--k-pink); }
.k-chip:hover { border-color: var(--k-line-strong); color: var(--k-plum); transform: translateY(-2px); }
.k-chip.is-active { background: var(--k-purple); border-color: var(--k-purple-dark); color: #fff; box-shadow: 0 3px 0 var(--k-purple-dark); }
.k-chip.is-active i { color: #FFD7E5; }
.k-chip .job-chip-icon { width: 16px !important; height: 16px !important; display: inline-block !important; }

.k-list { list-style: none; padding: 0; margin: 0; }
.k-list li { position: relative; padding-left: 1.7rem; margin-bottom: .5rem; }
.k-list li::before {
    content: ""; position: absolute; left: 0; top: .32em;
    width: 1.05rem; height: 1.05rem;
    background: url("../images/brand/kaede-leaf-64.png") center / contain no-repeat;
}

.k-callout {
    display: flex; gap: .9rem; align-items: flex-start;
    background: #FBF7FF;
    border: 2px dashed var(--k-line-strong);
    border-radius: 14px;
    padding: .9rem 1.05rem;
    color: var(--k-ink);
}
.k-callout i { color: var(--k-pink); font-size: 1.2rem; margin-top: .15rem; }
.k-callout--purple { background: #F7F1FD; border-color: var(--k-lilac); }
.k-callout--purple i { color: var(--k-purple); }

/* Game guide: classes */
.k-classes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.k-class {
    text-align: center;
    background: #fff;
    border: 2px solid var(--k-line);
    border-radius: 18px;
    padding: 1.2rem .8rem 1rem;
    box-shadow: 0 5px 0 #F0E7F7;
    transition: transform .2s, box-shadow .2s;
}
.k-class:hover { transform: translateY(-5px); box-shadow: 0 9px 0 #E6DAF2; }
.k-class__icon {
    width: 64px; height: 64px; margin: 0 auto .7rem; border-radius: 20px;
    display: grid; place-items: center; font-size: 1.7rem; color: #fff;
}
.k-class__icon svg { width: 34px; height: 34px; }
.k-class h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.k-class p { font-size: .85rem; color: var(--k-ink-soft); margin: 0; line-height: 1.45; }
.k-class--warrior .k-class__icon { background: linear-gradient(180deg, #FF7A7A, #D9434B); box-shadow: 0 4px 0 #A82A33; }
.k-class--magician .k-class__icon { background: linear-gradient(180deg, #9F7BE0, #6B3FA0); box-shadow: 0 4px 0 #4E2B79; }
.k-class--bowman .k-class__icon { background: linear-gradient(180deg, #6FD39A, #2E9D6B); box-shadow: 0 4px 0 #1E7550; }
.k-class--thief .k-class__icon { background: linear-gradient(180deg, #8C8FA8, #545873); box-shadow: 0 4px 0 #3A3D52; }
.k-class--pirate .k-class__icon { background: linear-gradient(180deg, #6FB7F0, #3B82C9); box-shadow: 0 4px 0 #285F99; }

/* Game guide: world */
.k-world { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.k-region { background: var(--k-cream); border: 2px solid var(--k-line); border-radius: 16px; padding: 1rem 1.1rem; }
.k-region h3 { font-size: 1.12rem; display: flex; align-items: center; gap: .5rem; margin-bottom: .7rem; }
.k-region h3 i { color: var(--k-pink); }
.k-towns { display: flex; flex-wrap: wrap; gap: .45rem; }
.k-town { font-size: .88rem; font-weight: 700; color: var(--k-ink); background: #fff; border: 2px solid var(--k-line); border-radius: 10px; padding: .22rem .65rem; }
.k-town--new { border-color: var(--k-pink); color: var(--k-pink); }
.k-town--new::after { content: "NEW"; font-family: var(--k-font-display); font-size: .62rem; color: #fff; background: var(--k-pink); border-radius: 5px; padding: 0 .3rem; margin-left: .35rem; vertical-align: 1px; }

/* Game guide: bosses */
.k-bosses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.k-boss { text-align: center; padding: 1.2rem .8rem; border-radius: 18px; background: linear-gradient(180deg, #4A1A35, var(--k-plum-2)); color: #FBDCE7; border: 2px solid #2B0A17; box-shadow: 0 5px 0 #2B0A17; }
.k-boss i { font-size: 1.8rem; color: var(--k-pink-light); margin-bottom: .5rem; }
.k-boss h3 { color: #fff; font-size: 1.12rem; margin: 0 0 .2rem; }
.k-boss small { color: #E8B6C8; }

/* Game guide: systems */
.k-systems { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.k-system { display: grid; grid-template-columns: auto 1fr; gap: .95rem; padding: 1.1rem 1.2rem; background: #fff; border: 2px solid var(--k-line); border-radius: 16px; }
.k-system h3 { font-size: 1.1rem; margin: .1rem 0 .3rem; }
.k-system p, .k-system ul { font-size: .93rem; color: var(--k-ink-soft); margin: 0; }
.k-system ul { padding-left: 1.1rem; margin-top: .35rem; }

/* Rates big */
.k-rates-big { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.k-rates-big .k-rate { padding: 1.1rem .5rem 1rem; border-radius: 18px; }
.k-rates-big .k-rate b { font-size: 2.4rem; }

/* ---------- Rankings ---------- */
.k-podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 1rem; align-items: end; margin-bottom: 1.6rem; }
.k-podium__card {
    text-align: center; background: #fff;
    border: 2px solid var(--k-line); border-radius: 20px;
    padding: 1.3rem .9rem 1.1rem;
    box-shadow: var(--k-shadow);
    position: relative;
}
.k-podium__card--1 { padding-top: 1.9rem; border-color: #F2CF6B; background: linear-gradient(180deg, #FFFBEA, #fff 60%); box-shadow: 0 6px 0 #F4DC92, 0 16px 34px rgba(242, 181, 51, .2); }
.k-podium__card--2 { border-color: #D6D6E3; }
.k-podium__card--3 { border-color: #EDC0A2; }
.k-podium__medal {
    width: 54px; height: 54px; margin: 0 auto .6rem; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.35rem; color: #fff;
    border: 3px solid #fff;
}
.k-podium__card--1 .k-podium__medal { width: 66px; height: 66px; font-size: 1.7rem; background: linear-gradient(180deg, #FFD95E, #E9A320); box-shadow: 0 0 0 3px #F2CF6B; }
.k-podium__card--2 .k-podium__medal { background: linear-gradient(180deg, #E4E4EE, #A9A9BE); box-shadow: 0 0 0 3px #D6D6E3; }
.k-podium__card--3 .k-podium__medal { background: linear-gradient(180deg, #F6C09A, #C9764A); box-shadow: 0 0 0 3px #EDC0A2; }
.k-podium__name { font-family: var(--k-font-display); font-weight: 600; font-size: 1.25rem; color: var(--k-ink); word-break: break-word; }
.k-podium__job { color: var(--k-ink-soft); font-size: .9rem; font-weight: 600; }
.k-podium__lv { display: inline-block; margin-top: .55rem; font-family: var(--k-font-display); font-weight: 700; color: #fff; background: var(--k-purple); border-radius: 10px; padding: .15rem .75rem; box-shadow: 0 3px 0 var(--k-purple-dark); }
.k-podium__card--1 .k-podium__lv { background: var(--k-pink); box-shadow: 0 3px 0 var(--k-leaf); }

.k-rank-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.k-rank-table th {
    font-family: var(--k-font-display); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
    color: var(--k-ink-soft); text-align: left;
    padding: .7rem 1rem; border-bottom: 2px solid var(--k-line);
}
.k-rank-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--k-line); vertical-align: middle; }
.k-rank-table tr:last-child td { border-bottom: 0; }
.k-rank-table tbody tr { transition: background .15s; }
.k-rank-table tbody tr:hover { background: #FBF7FF; }
.k-rank-table .num { width: 70px; font-family: var(--k-font-display); font-weight: 700; color: var(--k-purple); font-size: 1.05rem; }
.k-rank-table .lv { font-family: var(--k-font-display); font-weight: 600; color: var(--k-pink); text-align: right; white-space: nowrap; }
.k-rank-table th.lv { text-align: right; }
.k-who { display: flex; align-items: center; gap: .75rem; }
.k-who__icon {
    width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
    display: grid; place-items: center;
    background: var(--k-purple-soft); color: var(--k-purple);
}
.k-who__icon i, .k-who__icon svg { font-size: 1rem; width: 18px !important; height: 18px !important; display: block !important; }
.k-who strong { display: block; color: var(--k-ink); }
.k-who small { color: var(--k-ink-soft); font-weight: 600; }
.k-online { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--k-green); margin-left: .4rem; vertical-align: 2px; }

/* ---------- FAQ ---------- */
.k-faq-cat { margin-bottom: 1.6rem; }
.k-faq-cat h2 { font-size: 1.35rem; display: flex; align-items: center; gap: .55rem; margin-bottom: .8rem; }
.k-faq-cat h2 i { color: var(--k-pink); }
.k-faq { border: 2px solid var(--k-line); border-radius: 14px; background: #fff; margin-bottom: .6rem; overflow: hidden; transition: border-color .2s; }
.k-faq[open] { border-color: var(--k-line-strong); box-shadow: 0 4px 0 #F0E7F7; }
.k-faq summary {
    list-style: none; cursor: url("../images/cursor/pointer.png") 3 1, pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: .85rem 1.1rem;
    font-family: var(--k-font-display); font-weight: 500; font-size: 1.05rem; color: var(--k-ink);
}
.k-faq summary::-webkit-details-marker { display: none; }
.k-faq summary::after {
    content: "+"; flex-shrink: 0;
    width: 28px; height: 28px; border-radius: 9px;
    display: grid; place-items: center;
    background: var(--k-pink-soft); color: var(--k-pink); font-weight: 700; font-size: 1.2rem;
    transition: transform .25s, background .2s;
}
.k-faq[open] summary::after { content: "–"; background: var(--k-pink); color: #fff; }
.k-faq summary:hover { color: var(--k-purple); }
.k-faq__a { padding: 0 1.1rem 1rem; color: var(--k-ink-soft); }
.k-faq-search { position: relative; max-width: 520px; margin: 0 auto 1.8rem; }
.k-faq-search i { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--k-pink); }
.k-faq-search input { padding-left: 2.8rem !important; }

/* ---------- Kaede Points ---------- */
.k-packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.k-pack {
    text-align: center; background: #fff;
    border: 2px solid var(--k-line); border-radius: 20px;
    padding: 1.4rem 1rem 1.2rem;
    box-shadow: 0 5px 0 #F0E7F7;
    position: relative;
    transition: transform .2s, box-shadow .2s;
}
.k-pack:hover { transform: translateY(-5px); box-shadow: 0 9px 0 #E6DAF2; }
.k-pack--best { border-color: var(--k-pink); box-shadow: 0 5px 0 #F7B7CB; }
.k-pack__flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); font-family: var(--k-font-display); font-size: .78rem; font-weight: 600; color: #fff; background: var(--k-pink); padding: .15rem .8rem; border-radius: 999px; white-space: nowrap; box-shadow: 0 2px 0 var(--k-leaf); }
.k-pack__coin { width: 58px; height: 58px; margin: 0 auto .6rem; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff, #FFE3EC 60%, #F8C3D5); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--k-line-strong); }
.k-pack__coin img { width: 34px; height: 34px; }
.k-pack__kp { font-family: var(--k-font-display); font-size: 1.8rem; font-weight: 700; color: var(--k-purple); line-height: 1; }
.k-pack__kp small { display: block; font-size: .8rem; font-weight: 600; color: var(--k-ink-soft); letter-spacing: .1em; text-transform: uppercase; margin-top: .3rem; }
.k-pack__price { font-family: var(--k-font-display); font-weight: 600; font-size: 1.15rem; color: var(--k-pink); margin: .7rem 0 .85rem; }
.k-shops { display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; }
.k-shop { text-align: center; padding: 1rem .6rem; background: var(--k-cream); border: 2px solid var(--k-line); border-radius: 16px; }
.k-shop i { font-size: 1.5rem; color: var(--k-pink); margin-bottom: .4rem; }
.k-shop strong { display: block; font-family: var(--k-font-display); font-weight: 600; color: var(--k-purple); }
.k-shop small { color: var(--k-ink-soft); font-size: .82rem; line-height: 1.35; display: block; }

/* ---------- Download ---------- */
.k-mirrors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.k-mirror { text-align: center; background: #fff; border: 2px solid var(--k-line); border-radius: 18px; padding: 1.3rem 1rem 1.1rem; box-shadow: 0 5px 0 #F0E7F7; }
.k-mirror__icon { font-size: 1.9rem; margin-bottom: .45rem; color: var(--k-purple); }
.k-mirror h3 { font-size: 1.15rem; margin-bottom: .15rem; }
.k-mirror small { display: block; color: var(--k-ink-soft); margin-bottom: .85rem; }
.k-howto { counter-reset: how; list-style: none; padding: 0; margin: 0; }
.k-howto li { counter-increment: how; position: relative; padding: .2rem 0 1rem 3.2rem; }
.k-howto li::before {
    content: counter(how);
    position: absolute; left: 0; top: 0;
    width: 36px; height: 36px; border-radius: 11px;
    display: grid; place-items: center;
    font-family: var(--k-font-display); font-weight: 700; color: #fff;
    background: linear-gradient(180deg, var(--k-pink-light), var(--k-pink)); box-shadow: 0 3px 0 var(--k-leaf);
}
.k-howto li strong { color: var(--k-purple); font-family: var(--k-font-display); font-weight: 600; }
.k-req { width: 100%; }
.k-req td { padding: .5rem .2rem; border-bottom: 1px dashed var(--k-line); }
.k-req td:first-child { font-weight: 700; color: var(--k-ink-soft); width: 42%; }

.k-zip-pass { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--k-font-display); font-weight: 500; color: var(--k-purple-dark); background: #fff; border: 2px dashed var(--k-lilac); border-radius: 12px; padding: .35rem .95rem; }
.k-zip-pass i { color: var(--k-pink); }
.k-zip-pass b { color: var(--k-pink); font-size: 1.15rem; letter-spacing: .08em; }

/* ---------- Screenshots ---------- */
.k-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.k-shot { margin: 0; border: 2px solid var(--k-line-strong); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 5px 0 #F0E7F7; transition: transform .2s, box-shadow .2s; }
.k-shot:hover { transform: translateY(-4px); box-shadow: 0 9px 0 #E6DAF2; }
.k-shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.k-shot figcaption { font-family: var(--k-font-display); font-weight: 500; color: var(--k-purple); padding: .5rem .9rem; border-top: 2px dashed var(--k-line); }
.k-worldmap { margin: 0 auto 1.2rem; max-width: 640px; border: 2px solid var(--k-line-strong); border-radius: 16px; overflow: hidden; box-shadow: 0 5px 0 #F0E7F7; }
.k-worldmap img { display: block; width: 100%; height: auto; }
@media (max-width: 575px) { .k-shots { grid-template-columns: 1fr; } }

/* ---------- Admin ---------- */
.k-admin-table td { vertical-align: middle; }
.k-admin-actions { display: inline-flex; gap: .45rem; align-items: center; }
.k-admin-actions form { margin: 0; }
.k-admin-body { font-family: ui-monospace, Consolas, monospace; font-size: .92rem; font-weight: 500; line-height: 1.55; }
.k-check { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--k-ink); cursor: url("../images/cursor/pointer.png") 3 1, pointer; }
.k-check input { width: 1.15rem; height: 1.15rem; accent-color: var(--k-pink); }
select.k-input { padding-right: 2.2rem; }

/* ---------- Profile ---------- */
.k-profile-head { display: flex; align-items: center; gap: 1.1rem; }
.k-profile-head .k-account__avatar { margin: 0; flex-shrink: 0; }
.k-kv { list-style: none; margin: 0; padding: 0; }
.k-kv li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--k-line); }
.k-kv li:last-child { border-bottom: 0; }
.k-kv span { color: var(--k-ink-soft); font-weight: 600; }
.k-kv b { color: var(--k-ink); text-align: right; }

/* ---------- Notes (patch notes) ---------- */
.k-article { font-size: 1.02rem; }
.k-article h1, .k-article h2, .k-article h3 { margin-top: 1.6rem; }
.k-article h2 { font-size: 1.45rem; padding-bottom: .35rem; border-bottom: 2px dashed var(--k-line); }
.k-article h3 { font-size: 1.18rem; color: var(--k-pink); }
.k-article ul { padding-left: 0; list-style: none; }
.k-article ul li { position: relative; padding-left: 1.6rem; margin-bottom: .4rem; }
.k-article ul li::before { content: ""; position: absolute; left: 0; top: .38em; width: 1rem; height: 1rem; background: url("../images/brand/kaede-leaf-64.png") center / contain no-repeat; }
.k-article img { border-radius: 14px; border: 2px solid var(--k-line); }
.k-article table { width: 100%; margin: 1rem 0; border: 2px solid var(--k-line); border-radius: 12px; overflow: hidden; border-collapse: separate; border-spacing: 0; }
.k-article th { background: var(--k-purple-soft); color: var(--k-purple); font-family: var(--k-font-display); font-weight: 600; }
.k-article th, .k-article td { padding: .55rem .8rem; border-bottom: 1px solid var(--k-line); }
.k-article blockquote { border-left: 4px solid var(--k-pink); background: #FBF7FF; padding: .7rem 1rem; border-radius: 0 12px 12px 0; color: var(--k-ink-soft); }
.k-article code { background: var(--k-purple-soft); color: var(--k-purple-dark); border-radius: 6px; padding: .1rem .35rem; }

/* ---------- Forms & modals ---------- */
.k-input, .modal .form-control {
    background: #FFFBFD;
    border: 2px solid var(--k-line);
    border-radius: 12px;
    padding: .62rem .9rem;
    font-weight: 600;
    color: var(--k-ink);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.k-input:focus, .modal .form-control:focus { border-color: var(--k-pink); box-shadow: 0 0 0 4px rgba(224, 69, 122, .14); background: #fff; color: var(--k-ink); }
.k-input::placeholder, .modal .form-control::placeholder { color: #B89DB0; font-weight: 600; }
.modal .form-label, .k-label { font-family: var(--k-font-display); font-weight: 500; color: var(--k-purple); margin-bottom: .3rem; font-size: .95rem; }
.k-field { margin-bottom: .95rem; }
.k-hint { font-size: .8rem; color: var(--k-ink-soft); margin-top: .25rem; display: block; }
.modal-backdrop.show { opacity: .35; background: var(--k-plum-2); }
.modal-content {
    border: 2px solid var(--k-line-strong);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 8px 0 #E6DAF2, 0 30px 60px rgba(62, 15, 33, .25);
    overflow: hidden;
}
.modal-header {
    border-bottom: 2px dashed var(--k-line);
    padding: 1.1rem 1.4rem;
    background: linear-gradient(180deg, #FFF4F8, #fff);
    position: relative;
}
.modal-header::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, var(--k-pink-light), var(--k-purple)); }
.modal-title { display: flex; align-items: center; gap: .55rem; font-size: 1.35rem; }
.modal-title img { width: 28px; height: 28px; }
.modal-body { padding: 1.3rem 1.4rem; }
.modal-footer { border-top: 2px dashed var(--k-line); padding: .9rem 1.4rem; }
.btn-close { border-radius: 10px; background-color: var(--k-pink-soft); opacity: .8; padding: .6rem; }
.btn-close:hover { opacity: 1; }
.k-modal-note { font-size: .88rem; color: var(--k-ink-soft); text-align: center; margin-top: 1rem; }
.k-captcha { display: flex; justify-content: center; margin: .4rem 0 1rem; min-height: 78px; }

/* ---------- Toast ---------- */
.k-toast {
    position: fixed; top: 20px; right: 20px; z-index: 2000;
    max-width: 380px;
    display: flex; align-items: flex-start; gap: .8rem;
    background: #fff;
    border: 2px solid var(--k-line-strong);
    border-radius: 16px;
    padding: .9rem 1rem .9rem .95rem;
    box-shadow: 0 6px 0 #E6DAF2, 0 18px 40px rgba(62, 15, 33, .18);
    animation: k-toast-in .45s cubic-bezier(.2, 1.3, .5, 1) both;
}
.k-toast img { width: 30px; height: 30px; flex-shrink: 0; }
.k-toast p { margin: 0; font-weight: 700; color: var(--k-ink); padding-top: .2rem; }
.k-toast button { margin-left: auto; border: 0; background: transparent; color: var(--k-ink-soft); font-size: 1.15rem; line-height: 1; padding: .1rem .2rem; }
.k-toast.is-hiding { animation: k-toast-out .3s ease forwards; }
@keyframes k-toast-in { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes k-toast-out { to { opacity: 0; transform: translateY(-10px); } }

/* ---------- Footer ---------- */
.k-footer { position: relative; margin-top: 3.5rem; color: #F2D0DD; flex-shrink: 0; }
.k-footer__trees {
    height: 120px;
    background: url("../images/scene/far-cherry-trees.png") 0 100% / auto 150px repeat-x;
    opacity: .95;
    margin-bottom: -2px;
}
.k-footer__main { background: var(--k-plum); padding: 2.4rem 0 1.2rem; position: relative; }
.k-footer__main::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 10px; background: linear-gradient(180deg, #EFB0C7, var(--k-plum)); }
.k-footer__logo { width: 190px; margin-bottom: .6rem; }
.k-footer p { color: #E6B9CC; font-size: .92rem; }
.k-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: .7rem; }
.k-footer ul { list-style: none; padding: 0; margin: 0; }
.k-footer li { margin-bottom: .4rem; }
.k-footer a { color: #FFD7E5; font-weight: 600; }
.k-footer a:hover { color: #fff; }
.k-footer__bottom { border-top: 1px solid rgba(255, 215, 229, .18); margin-top: 1.6rem; padding-top: 1rem; font-size: .8rem; color: #CE9DB1; text-align: center; }
.k-footer__social { display: flex; gap: .6rem; margin-top: .9rem; }
.k-footer__social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 215, 229, .2); font-size: 1.1rem; transition: background .2s, transform .2s; }
.k-footer__social a:hover { background: var(--k-pink); color: #fff; transform: translateY(-2px); }

/* ---------- Petals ---------- */
#kPetals { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.k-petal-toggle {
    position: fixed; right: 18px; bottom: 18px; z-index: 40;
    display: inline-flex; align-items: center; gap: .45rem;
    font-family: var(--k-font-display); font-weight: 500; font-size: .9rem;
    background: #fff; color: var(--k-purple);
    border: 2px solid var(--k-line-strong); border-radius: 999px;
    padding: .4rem .85rem .4rem .5rem;
    box-shadow: 0 4px 0 #E6DAF2;
    transition: transform .2s;
}
.k-petal-toggle img { width: 22px; height: 22px; transition: transform .4s; }
.k-petal-toggle:hover { transform: translateY(-2px); }
.k-petal-toggle[aria-pressed="false"] { color: var(--k-ink-soft); }
.k-petal-toggle[aria-pressed="false"] img { filter: grayscale(1); opacity: .6; }
.k-petal-toggle[aria-pressed="true"] img { transform: rotate(20deg); }

/* ---------- Reveal on scroll ---------- */
.k-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.k-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .k-classes { grid-template-columns: repeat(3, 1fr); }
    .k-shops { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
    .k-scene { height: 400px; }
    .k-nav .navbar-collapse { padding: .5rem 0 .3rem; }
    .k-nav__cta { margin-top: .5rem; }
    .k-features { grid-template-columns: repeat(2, 1fr); }
    .k-bosses { grid-template-columns: repeat(2, 1fr); }
    .k-packs { grid-template-columns: repeat(2, 1fr); }
    .k-side { margin-top: 1.6rem; }
}
@media (max-width: 767px) {
    .k-topbar__hide-sm { display: none !important; }
    .k-scene { height: 430px; }
    .k-scene--compact { height: 250px; }
    .k-scene__content { padding-bottom: 150px; }
    .k-scene--compact .k-scene__content { padding-bottom: 80px; }
    .k-scene__tagline { font-size: .95rem; }
    .k-scene__actions .k-btn--lg { font-size: 1.02rem; padding: .6rem 1.1rem; }
    .k-notice .k-tag { justify-self: start; min-width: 0; }
    .k-petal-toggle { padding: .45rem; font-size: 0; gap: 0; }
    .k-steps { grid-template-columns: 1fr; }
    .k-step { border-right: 0; border-bottom: 2px dashed var(--k-line); }
    .k-step:last-child { border-bottom: 0; }
    .k-welcome__inner { grid-template-columns: 1fr; }
    .k-welcome__leaf { display: none; }
    .k-world, .k-systems, .k-mirrors { grid-template-columns: 1fr; }
    .k-classes { grid-template-columns: repeat(2, 1fr); }
    .k-rates-big { grid-template-columns: repeat(2, 1fr); }
    .k-market__inner { grid-template-columns: 1fr; text-align: center; }
    .k-market__sign { margin: 0 auto; width: 170px; }
    .k-market__stalls img { width: 84px; }
    .k-podium { grid-template-columns: 1fr; }
    .k-podium__card--1 { order: -1; }
    .k-notice a { grid-template-columns: 1fr; gap: .3rem; }
    .k-rank-table .hide-sm { display: none; }
    .k-shops { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .k-features, .k-packs { grid-template-columns: 1fr; }
    .k-panel__head, .k-panel__body { padding-left: 1rem; padding-right: 1rem; }
    .k-rank-table td, .k-rank-table th { padding: .6rem .5rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .k-reveal { opacity: 1; transform: none; }
}

/* Version C: inner-page panels match the home page boxes */
.k-panel { box-shadow: 0 5px 0 #F0E7F7; }
.k-panel__head { background: #EFE7FA; border-bottom: 2px solid var(--k-line); border-radius: 16px 16px 0 0; padding: .7rem 1.2rem; }
.k-panel__title { font-size: 1.15rem; }
.k-panel--ribbon::before { display: none; }
.k-section-head { margin-bottom: 1.5rem; }
.k-eyebrow { background: #EFE7FA; color: var(--k-purple); }
.k-rank-table--medals .num { text-align: center; }
.k-rank-table--medals tbody .num { position: relative; z-index: 0; }
.k-rank-table--medals tbody tr:nth-child(-n+3) .num { color: #fff; }
.k-rank-table--medals tbody tr:nth-child(-n+3) .num::after { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 11px; }
.k-rank-table--medals tbody tr:nth-child(1) .num::after { background: linear-gradient(180deg, #FFD95E, #E9A320); }
.k-rank-table--medals tbody tr:nth-child(2) .num::after { background: linear-gradient(180deg, #D9D9E6, #A9A9BE); }
.k-rank-table--medals tbody tr:nth-child(3) .num::after { background: linear-gradient(180deg, #F6C09A, #C9764A); }

/* =====================================================================
   Version C layout (strip, masthead, nav, hero, sidebar, boxes)
   ===================================================================== */
:root { --c-bg: #FFFBF7; --c-card: #FFFFFF; --c-ink: #3B2140; --c-soft: #7A6382; --c-purple: #6B3FA0; --c-purple2: #4E2B79; --c-lilac: #EFE7FA; --c-lilac2: #D9C8F0;
  --c-pink: #E0457A; --c-pink2: #B11E44; --c-pinksoft: #FFE9F0; --c-plum: #3E0F21; --c-line: #EADFF2; --c-green: #2E9D6B; --c-gold: #E9A320;
  --c-head: "Fredoka", system-ui, sans-serif; --c-body: "Nunito", system-ui, sans-serif; --c-r: 16px; }
.c-dot.is-offline { background: #E35D6A; box-shadow: 0 0 0 3px rgba(227, 93, 106, .18); }
.c-dot:not(.is-online):not(.is-offline) { background: #B9A2B3; box-shadow: none; }
.c-strip .dropdown-toggle { color: #FFD7E5; font-weight: 700; }
.c-menu { border: 2px solid var(--c-line); border-radius: 14px; padding: .4rem; box-shadow: 0 14px 30px rgba(62, 15, 33, .18); min-width: 220px; white-space: normal; }
.c-menu .dropdown-item { border-radius: 9px; padding: .45rem .7rem; color: var(--c-ink) !important; font-weight: 700; display: flex; gap: .6rem; align-items: center; }
.c-menu .dropdown-item i { color: var(--c-pink) !important; width: 1.1em; text-align: center; margin: 0; }
.c-menu .dropdown-item:hover { background: var(--c-lilac); }
.c-crumb { background: var(--c-lilac); border-bottom: 2px solid var(--c-line); font-size: 14px; font-weight: 700; color: var(--c-soft); padding: 8px 0; }
.c-crumb i { font-size: 10px; margin: 0 6px; color: #B9A2D6; } .c-crumb b { color: var(--c-purple); font-family: var(--c-head); font-weight: 600; }
.c-box, a.c-box { color: var(--c-ink); }
.c-box__t, .c-hero h1, .c-card h3, .c-banner h3 { margin: 0; }
.c-hero h1 { color: var(--c-purple); }
.c-captcha { display: flex; justify-content: center; margin: 2px 0 12px; min-height: 0; }
.c-captcha[hidden] { display: none; }
.c-notices .k-tag { min-width: 0; }
.c-notices .k-new { margin: 0; }
.c-box--discord { transition: transform .15s; } a.c-box--discord, a.c-box--discord:hover { color: #fff; } .c-box--discord:hover { transform: translateY(-2px); }
.c-mast .k-btn { margin-left: auto; } .c-mast__tag { margin-right: 0; }
@media (max-width: 600px) { .c-mast .k-btn--lg { font-size: 1rem; padding: .55rem .9rem; } }
/* strip */
.c-strip { background: var(--c-plum); color: #F2D0DD; font-size: 13.5px; }
.c-strip__in { display: flex; gap: 22px; align-items: center; min-height: 36px; white-space: nowrap; }
.c-strip b { color: #fff; } .c-strip i.fas, .c-strip i.fab { color: #FF9DB8; margin-right: 4px; }
.c-strip__r { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.c-strip a { color: #FFD7E5; font-weight: 700; } .c-strip a:hover { color: #fff; }
.c-strip__join { background: var(--c-pink); padding: 2px 12px; border-radius: 999px; color: #fff !important; }

/* masthead */
.c-mast { background: #fff; }
.c-mast__in { display: flex; align-items: center; gap: 28px; padding-top: 12px; padding-bottom: 12px; }
.c-mast__logo img { height: 104px; width: auto; }
.c-mast__tag { margin-right: auto; padding-left: 26px; border-left: 2px solid var(--c-line); }
.c-mast__tag p { margin: 0; font-family: var(--c-head); font-weight: 500; font-size: 19px; line-height: 1.35; color: var(--c-soft); }

/* nav: solid purple bar */
.c-nav { background: var(--c-purple); border-bottom: 4px solid var(--c-purple2); position: sticky; top: 0; z-index: 20; }
.c-nav__in { display: flex; flex-wrap: wrap; gap: 2px; }
.c-nav a { color: #EADCFB; font: 500 16px var(--c-head); padding: 13px 18px; position: relative; transition: color .15s, background .15s; }
.c-nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.c-nav a.active { color: #fff; background: rgba(255,255,255,.14); }
.c-nav a.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 4px; border-radius: 4px 4px 0 0; background: #FF7A98; }

.c-page { padding-top: 30px; padding-bottom: 54px; }

/* photo frames */
.c-frame { margin: 0; background: #fff; padding: 8px; border-radius: 22px; border: 2px solid var(--c-line); box-shadow: 0 14px 34px rgba(107,63,160,.14); position: relative; }
.c-frame img { width: 100%; border-radius: 15px; }
.c-frame figcaption { position: absolute; left: 20px; bottom: 20px; background: rgba(255,255,255,.94); border-radius: 999px; font-size: 13px; font-weight: 700; padding: 3px 12px; color: var(--c-purple); }
.c-frame figcaption i { color: var(--c-pink); margin-right: 3px; }
.c-frame--s { padding: 6px; border-radius: 18px; box-shadow: 0 6px 16px rgba(107,63,160,.1); } .c-frame--s img { aspect-ratio: 16/10; object-fit: cover; border-radius: 12px; }

/* hero */
.c-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; margin-bottom: 34px; }
.c-hero .c-frame img { aspect-ratio: 16/10; object-fit: cover; }
.c-hero__card { background: #fff; border: 2px solid var(--c-line); border-radius: 22px; box-shadow: 0 14px 34px rgba(107,63,160,.16); padding: 30px 28px 28px; margin-left: -40px; position: relative; z-index: 2; }
.c-hero h1 { font-size: clamp(27px, 3vw, 37px); font-weight: 600; color: var(--c-purple); text-wrap: balance; padding-right: 76px; }
.c-hero p { color: var(--c-soft); margin: 14px 0 20px; }
.c-hero__btns { display: flex; gap: 14px; flex-wrap: wrap; }
.c-seal { position: absolute; top: -20px; right: 20px; width: 84px; height: 84px; border-radius: 22px; color: #fff; display: grid; place-content: center; text-align: center; transform: rotate(6deg);
  background: radial-gradient(circle at 20% 0%, rgba(255,255,255,.3), transparent 50%), linear-gradient(135deg, #5A2F92, #E0457A); border: 2px solid var(--c-purple2); box-shadow: 0 5px 0 var(--c-purple2); }
.c-seal b { font: 700 36px/1 var(--c-head); } .c-seal b i { font-style: normal; font-size: .62em; color: #FFD7E5; } .c-seal span { font: 600 11px var(--c-head); letter-spacing: .14em; text-transform: uppercase; }

/* layout */
.c-cols { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
.c-side, .c-main { display: grid; gap: 22px; }

/* panels */
.c-box { background: var(--c-card); border: 2px solid var(--c-line); border-radius: var(--c-r); box-shadow: 0 5px 0 #F0E7F7; overflow: hidden; }
.c-box__t { display: flex; align-items: center; gap: 10px; background: var(--c-lilac); color: var(--c-purple); font-size: 18px; font-weight: 600; padding: 10px 16px; border-bottom: 2px solid var(--c-line); }
.c-box__t::before { content: ""; width: 18px; height: 18px; flex-shrink: 0; background: url("../images/brand/kaede-leaf-64.png") center/contain no-repeat; }
.c-box__t .c-more, .c-box__t .c-note { margin-left: auto; font: 700 13px var(--c-body); color: var(--c-soft); }
.c-box__t .c-more { color: var(--c-pink); }
.c-box__t code { background: #fff; border-radius: 6px; padding: 1px 7px; font-weight: 700; color: var(--c-purple2); }
.c-box__b { padding: 18px; }
.c-more { font-weight: 700; font-size: 14px; }
.c-box > .c-more { display: block; padding: 10px 16px 12px; border-top: 1px dashed var(--c-line); color: var(--c-pink); }

.c-lbl { display: block; font: 500 14px var(--c-head); color: var(--c-purple); margin: 0 0 4px; }
.c-inp { width: 100%; font: 600 16px var(--c-body); padding: 9px 12px; border: 2px solid var(--c-line); border-radius: 12px; background: #FFFCFE; color: var(--c-ink); margin-bottom: 12px; }
.c-inp:focus { outline: 0; border-color: var(--c-pink); box-shadow: 0 0 0 4px rgba(224,69,122,.14); }
.c-mini { text-align: center; font-size: 13.5px; font-weight: 700; margin: 14px 0 0; color: var(--c-soft); }

.c-ledger { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.c-ledger td { padding: 9px 16px; border-bottom: 1px dashed var(--c-line); } .c-ledger tr:last-child td { border: 0; }
.c-ledger td:first-child { color: var(--c-soft); font-weight: 600; white-space: nowrap; } .c-ledger td:last-child { text-align: right; font: 600 15px var(--c-head); color: var(--c-purple); white-space: nowrap; }

.c-rank { list-style: none; margin: 0; padding: 4px 0; }
.c-rank li { display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-bottom: 1px dashed var(--c-line); } .c-rank li:last-child { border: 0; }
.c-rank b { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--c-lilac); font: 700 14px var(--c-head); color: var(--c-purple); }
.c-rank li:nth-child(1) b { background: linear-gradient(180deg, #FFE08A, #F2B533); color: #7A4C00; }
.c-rank li:nth-child(2) b { background: linear-gradient(180deg, #F1F1F6, #CFCFDC); color: #4D4D62; }
.c-rank li:nth-child(3) b { background: linear-gradient(180deg, #FFD3B5, #E39B6A); color: #6B3413; }
.c-rank span { flex: 1; font-weight: 800; line-height: 1.2; } .c-rank small { display: block; font-weight: 600; color: var(--c-soft); font-size: 12.5px; }
.c-rank em { font: 600 16px var(--c-head); color: var(--c-pink); font-style: normal; } .c-rank em::before { content: "Lv. "; font-size: 12px; color: var(--c-soft); }
.c-box--discord { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: linear-gradient(160deg, #6F7BF7, #5865F2); color: #fff; border-color: #4752C4; box-shadow: 0 5px 0 #3C45A8; }
.c-box--discord i { font-size: 30px; } .c-box--discord b { display: block; font: 600 17px var(--c-head); } .c-box--discord span { font-size: 13.5px; opacity: .9; }

/* notices */
.c-notices { list-style: none; margin: 0; padding: 0; }
.c-notices a { display: grid; grid-template-columns: 62px 104px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px dashed var(--c-line); color: var(--c-ink); transition: background .15s; }
.c-notices li:last-child a { border: 0; } .c-notices a:hover { background: #FBF7FF; }
.c-notices time { font: 500 14px var(--c-head); color: var(--c-soft); } .c-notices b { font-weight: 800; }

/* events */
.c-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.c-card { background: #fff; border: 2px solid var(--c-line); border-radius: 14px; padding: 0 8px 12px; text-align: center; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.c-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(107,63,160,.14); }
.c-card__top { display: grid; place-items: center; height: 66px; margin: 0 -8px 10px; font-size: 26px; color: #fff; }
.c-card h3 { font-size: 15.5px; font-weight: 600; color: var(--c-purple); } .c-card p { margin: 3px 0 0; font-size: 13px; color: var(--c-soft); line-height: 1.4; }
.c-card--a .c-card__top { background: #E5484D; } .c-card--b .c-card__top { background: var(--c-green); } .c-card--c .c-card__top { background: #3B82C9; } .c-card--d .c-card__top { background: var(--c-purple); } .c-card--e .c-card__top { background: var(--c-gold); }
.c-prize { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0; padding: 9px; border-radius: 12px; border: 2px dashed #F2CF6B; background: linear-gradient(90deg, #FFF3D6, #FFE9F0); font-weight: 700; }
.c-prize img { width: 22px; } .c-prize b { font: 600 17px var(--c-head); color: var(--c-pink); }
.c-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.c-banner { display: flex; gap: 14px; padding: 14px 16px; color: #fff; border-radius: 14px; }
.c-banner > i { font-size: 22px; width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.2); }
.c-banner h3 { font-size: 18px; font-weight: 600; } .c-banner p { margin: 2px 0 0; font-size: 14px; line-height: 1.45; opacity: .95; }
.c-banner--surge { background: linear-gradient(125deg, #C9244D, #F0603A 70%, #F2B533); box-shadow: 0 4px 0 #A82A33; }
.c-banner--fortune { background: linear-gradient(125deg, #5A2F92, #8A3E9E 55%, #E0457A); box-shadow: 0 4px 0 var(--c-purple2); }

/* numbered features */
.c-feats { list-style: none; counter-reset: f; margin: 0; padding: 6px 18px 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 30px; }
.c-feats li { counter-increment: f; position: relative; padding: 13px 0 13px 52px; border-bottom: 1px dashed var(--c-line); }
.c-feats li:nth-last-child(-n+2) { border: 0; }
.c-feats li::before { content: counter(f); position: absolute; left: 0; top: 14px; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font: 700 18px var(--c-head); color: #fff; background: linear-gradient(180deg, #8A5CC4, var(--c-purple)); box-shadow: 0 3px 0 var(--c-purple2); }
.c-feats li:nth-child(even)::before { background: linear-gradient(180deg, #FF6E90, var(--c-pink)); box-shadow: 0 3px 0 var(--c-pink2); }
.c-feats b { display: block; font: 600 16.5px var(--c-head); color: var(--c-purple); } .c-feats span { font-size: 14px; color: var(--c-soft); line-height: 1.5; display: block; }
.c-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

/* footer */
.c-foot { background: var(--c-plum); color: #E6B9CC; font-size: 13.5px; }
.c-foot__in { display: flex; align-items: center; gap: 26px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.c-foot img { height: 54px; } .c-foot p { flex: 1 1 300px; margin: 0; } .c-foot nav { display: flex; gap: 16px; } .c-foot a { color: #FFD7E5; font-weight: 700; }

/* a few drifting maple leaves */
.c-leaves { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 30; }
.c-leaves i { position: absolute; top: -40px; width: 20px; height: 20px; background: url("../images/brand/kaede-leaf-64.png") center/contain no-repeat; opacity: .6; animation: fall linear infinite; }
.c-leaves i:nth-child(1) { left: 6%; animation-duration: 21s; } .c-leaves i:nth-child(2) { left: 24%; animation-duration: 27s; animation-delay: -8s; width: 15px; }
.c-leaves i:nth-child(3) { left: 47%; animation-duration: 24s; animation-delay: -14s; } .c-leaves i:nth-child(4) { left: 66%; animation-duration: 30s; animation-delay: -4s; width: 17px; }
.c-leaves i:nth-child(5) { left: 82%; animation-duration: 22s; animation-delay: -11s; } .c-leaves i:nth-child(6) { left: 94%; animation-duration: 28s; animation-delay: -19s; width: 14px; }
@keyframes fall { to { transform: translate(-90px, 110vh) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) { .c-leaves { display: none; } .c-card { transition: none; } }

@media (max-width: 900px) {
  .c-hero { grid-template-columns: 1fr; } .c-hero__card { margin: -26px 14px 0; }
  .c-cols { grid-template-columns: 1fr; } .c-main { order: -1; }
  .c-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .c-mast__tag { display: none; } .c-mast__logo { margin-right: auto; } .c-mast__logo img { height: 76px; }
}
@media (max-width: 600px) {
  .c-hide-s { display: none; } .c-strip__in { gap: 12px; } .c-strip__r { gap: 12px; }
  .c-mast__logo img { height: 58px; }
  .c-nav a { padding: 10px 12px; font-size: 14.5px; }
  .c-cards, .c-shots { grid-template-columns: 1fr 1fr; } .c-duo, .c-feats { grid-template-columns: 1fr; }
  .c-feats li:nth-last-child(2) { border-bottom: 1px dashed var(--c-line); }
  .c-notices a { grid-template-columns: 56px 1fr; } .c-notices .k-tag, .c-notices .k-new { display: none; }
  .c-hero h1 { padding-right: 0; padding-top: 48px; } .c-box__t .c-note { display: none; }
}
.c-wrap { max-width: 1180px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.c-banner h3 { color: #fff; }
.c-hero { margin-top: 0; }
@media (max-width: 600px) { .c-mast .k-btn.k-btn--lg { font-size: 1rem; padding: .5rem .9rem; border-radius: 13px; } }
.c-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; background: #B9A2B3; }
.c-dot.is-online { background: var(--c-green); box-shadow: 0 0 0 3px rgba(46, 157, 107, .18); }
.c-frame img, .c-foot img, .c-mast__logo img { display: block; }

/* ---------- Version C: colour + cherry blossoms from the brand pack ---------- */
html { background: #EADFF9; }
body { background: linear-gradient(180deg, #E6D9F8 0%, #F1E4F8 34%, #FBE6F1 70%, #FFE4EC 100%); background-attachment: fixed; }
.c-mast { background: linear-gradient(100deg, #FFFFFF 0%, #FFFFFF 38%, #F6EDFD 72%, #FFE6EE 100%); position: relative; overflow: hidden; }
.c-mast__in { position: relative; }
.c-mast__bloom { position: absolute; right: -185px; top: -50px; width: 250px; height: auto; transform: scaleX(-1) rotate(-8deg); pointer-events: none; max-width: none; }
.c-mast .k-btn { position: relative; z-index: 1; }
.c-crumb { background: rgba(255, 255, 255, .55); border-bottom-color: #DCCBF1; }
.c-bloom { position: absolute; z-index: -1; pointer-events: none; height: auto; max-width: none; filter: drop-shadow(0 6px 10px rgba(107, 63, 160, .12)); }
.c-bloom--a { left: 0; top: 0; width: clamp(180px, 19vw, 330px); }
.c-bloom--b { right: 0; bottom: 6px; width: clamp(190px, 21vw, 360px); }
.c-box, .k-panel { box-shadow: 0 5px 0 #DFD0F1, 0 14px 28px rgba(107, 63, 160, .08); border-color: #E2D5F3; }
.c-frame, .c-hero__card { border-color: #E2D5F3; }
.k-section-sub, .c-crumb { color: #5F4A72; }
.k-chip { border-color: #DCCBF1; }
.c-leaves i:nth-child(even) { background: #FFB3CB; width: 13px; height: 9px; border-radius: 85% 0 85% 0; opacity: .8; }
@media (max-width: 900px) { .c-bloom { display: none; } .c-mast__bloom { right: -70px; width: 190px; opacity: .55; } }

/* =====================================================================
   VERSION D — one visual language, taken from the brand book
   Everything is drawn like the logo: flat fills, one plum outline,
   and the hard lilac under-shadow that sits beneath the "Kaede" wordmark.
   Palette (brand only): blush #FFF4F8 · purple #6B3FA0 · lilac #D8B8F2 ·
   pink #E0457A · petal #FFC2DA · plum #5A1730 · blossom yellow #FFD25A
   Type: Fredoka (display) + Zen Maru Gothic (text) — the two brand fonts.
   ===================================================================== */
:root {
    --d-blush: #FFF4F8; --d-card: #FFFAFC; --d-field: #EBDCF9; --d-purple: #6B3FA0; --d-lilac: #D8B8F2; --d-lilac-soft: #F3E9FC;
    --d-pink: #E0457A; --d-petal: #FFC2DA; --d-petal-soft: #FFE3EF; --d-plum: #5A1730; --d-branch: #6B3A4F; --d-sun: #FFD25A;
    --d-ink: #3A1F3F; --d-soft: #6B5576; --d-o: 2px solid var(--d-plum); --d-shadow: 0 5px 0 var(--d-lilac);
    --k-font-body: "Zen Maru Gothic", "Nunito", system-ui, sans-serif; --c-body: var(--k-font-body);
    --k-line: #E3CFF5; --c-line: #E3CFF5; --k-line-strong: var(--d-lilac); --k-ink: var(--d-ink); --k-ink-soft: var(--d-soft); --c-ink: var(--d-ink); --c-soft: var(--d-soft);
    --k-plum: var(--d-plum); --c-plum: var(--d-plum); --k-purple-dark: #4E2B79; --k-leaf: #B11E44;
}
html { background: var(--d-field); }
body { background: var(--d-field) url("../images/brand/blossom-pattern.svg") 0 0 / 360px 320px; background-attachment: scroll; color: var(--d-ink); font-family: var(--k-font-body); font-weight: 500; }
b, strong { font-weight: 900; }
a { color: var(--d-purple); } a:hover { color: var(--d-pink); }
.k-reveal { opacity: 1; transform: none; transition: none; }

/* top strip + footer: plum, flat */
.c-strip, .c-foot { background: var(--d-plum); }
.c-strip__join { background: var(--d-pink); border-radius: 999px; }
.c-foot { border-top: 0; }

/* masthead = the brand header */
.d-mast { position: relative; overflow: hidden; background: var(--d-blush); text-align: center; padding: 22px 20px 26px; border-bottom: var(--d-o); }
.d-mast__logo { display: inline-block; position: relative; z-index: 1; }
.d-mast__logo img { height: 138px; width: auto; display: block; }
.d-mast__branch { position: absolute; pointer-events: none; height: auto; max-width: none; }
.d-mast__branch--a { left: -8px; top: -12px; width: clamp(150px, 21vw, 330px); }
.d-mast__branch--b { right: -8px; bottom: -8px; width: clamp(150px, 21vw, 330px); }

/* nav: flat purple, plum outline, active item is a blush tab */
.c-nav { background: var(--d-purple); border-bottom: var(--d-o); position: sticky; top: 0; z-index: 20; }
.c-nav__in { align-items: center; gap: 4px; padding-top: 7px; padding-bottom: 7px; }
.c-nav a:not(.k-btn) { color: #F3E6FF; font: 600 16px var(--k-font-display); padding: 7px 15px; border-radius: 999px; border: 2px solid transparent; }
.c-nav a:not(.k-btn):hover { background: rgba(255, 255, 255, .14); color: #fff; }
.c-nav a.active:not(.k-btn) { background: var(--d-blush); color: var(--d-purple); border-color: var(--d-plum); }
.c-nav a.active::after { display: none; }
.d-nav__play { margin-left: auto; padding: .4rem 1.1rem; font-size: 1rem; }
.c-crumb { background: var(--d-blush); border-bottom: var(--d-o); color: var(--d-soft); }
.c-crumb b { color: var(--d-purple); }

/* buttons: flat sticker */
.k-btn { background: var(--d-pink); border: var(--d-o); border-radius: 999px; box-shadow: 0 4px 0 var(--d-plum); text-shadow: none; font-weight: 600; }
.k-btn:hover { box-shadow: 0 6px 0 var(--d-plum); filter: none; }
.k-btn:active { box-shadow: 0 1px 0 var(--d-plum); }
.k-btn--purple { background: var(--d-purple); }
.k-btn--cream { background: var(--d-blush); color: var(--d-purple) !important; }
.k-btn--sm { box-shadow: 0 3px 0 var(--d-plum); border-radius: 999px; }
.k-btn--lg { border-radius: 999px; }
.k-discord-card .k-btn, .k-btn--discord { background: var(--d-blush); color: var(--d-purple) !important; }

/* the one card recipe: blush fill, plum outline, hard lilac under-shadow */
.c-box, .k-panel, .c-hero__card, .c-frame, .k-feature, .k-class, .k-region, .k-system, .k-pack, .k-shop, .k-mirror, .k-event, .c-card, .k-faq, .k-shot, .k-worldmap, .modal-content, .k-toast {
    background: var(--d-card); border: var(--d-o); box-shadow: var(--d-shadow); border-radius: 18px; }
.k-feature:hover, .k-class:hover, .k-pack:hover, .c-card:hover { box-shadow: 0 9px 0 var(--d-lilac); border-color: var(--d-plum); }
.c-box { overflow: visible; }
.c-side, .c-main { gap: 34px; }
.c-cols { gap: 30px; margin-top: 16px; }
.k-panel + .k-panel { margin-top: 2.6rem; }

/* titles are purple pill labels sitting on the top edge of their card */
.c-box__t { display: flex; background: none; border: 0; padding: 0 14px; margin: -19px 0 6px; align-items: center; gap: 10px; color: #fff; }
.c-box__t::before, .c-box__t::after { display: none; }
.d-tab, .k-panel__title { display: inline-flex; align-items: center; gap: 8px; background: var(--d-purple); color: #fff; border: var(--d-o); border-radius: 999px; padding: 4px 16px 5px; font: 600 17px/1.3 var(--k-font-display); box-shadow: 0 3px 0 var(--d-plum); white-space: nowrap; }
.k-panel__title i, .k-panel__title img { color: var(--d-sun); width: auto; height: 1em; }
.c-box__t .c-more, .c-box__t .c-note { margin-left: auto; background: var(--d-blush); border: var(--d-o); border-radius: 999px; padding: 3px 13px; font: 700 13px var(--k-font-body); color: var(--d-purple); white-space: nowrap; }
.c-box__t .c-more i, .c-more i, .k-panel__more i { display: none; }
.c-box__t code { background: var(--d-petal-soft); color: var(--d-plum); }
.k-panel__head { background: none; border: 0; border-radius: 0; padding: 0 14px; margin-top: -18px; }
.k-panel__head > :not(.k-panel__title):not(div) { background: var(--d-blush); border: var(--d-o); border-radius: 999px; padding: 3px 13px; font: 700 13px var(--k-font-body); color: var(--d-purple); letter-spacing: 0; text-transform: none; }
.k-panel__body { padding-top: 1rem; }
.c-box > .c-more { border-top: 2px dotted var(--d-lilac); color: var(--d-purple); }

/* hero */
.c-page { padding-top: 34px; }
.c-frame { padding: 8px; border-radius: 22px; box-shadow: 0 6px 0 var(--d-lilac); }
.c-frame img { border-radius: 13px; border: var(--d-o); }
.c-frame figcaption { background: var(--d-blush); border: var(--d-o); color: var(--d-purple); }
.c-frame figcaption i { color: var(--d-pink); }
.c-frame--s { box-shadow: 0 4px 0 var(--d-lilac); border-radius: 16px; }
.c-hero__card { border-radius: 22px; box-shadow: 0 6px 0 var(--d-lilac); }
.c-hero h1 { color: var(--d-purple); font-weight: 700; text-shadow: 0 3px 0 var(--d-lilac); }
.c-hero p { color: var(--d-soft); }
.c-seal { background: var(--d-sun); border: var(--d-o); border-radius: 50%; box-shadow: 0 4px 0 var(--d-plum); color: var(--d-plum); width: 88px; height: 88px; top: -28px; right: 18px; transform: rotate(8deg); }
.c-seal b { font: 700 34px/1 var(--k-font-display); } .c-seal span { font: 600 11px var(--k-font-display); letter-spacing: .06em; text-transform: none; }

/* sidebar pieces */
.c-lbl { color: var(--d-purple); }
.c-inp, .k-input, .modal .form-control { background: #fff; border: var(--d-o); border-radius: 12px; font-family: var(--k-font-body); }
.c-inp:focus, .k-input:focus, .modal .form-control:focus { border-color: var(--d-pink); box-shadow: 0 0 0 4px var(--d-petal-soft); }
.c-ledger td, .c-rank li, .c-notices a, .c-feats li, .k-kv li, .k-stats li, .k-req td { border-bottom: 2px dotted var(--d-lilac); }
.c-ledger td:last-child { color: var(--d-purple); font-family: var(--k-font-display); }
.c-rank b { background: var(--d-lilac-soft); border: var(--d-o); color: var(--d-plum); border-radius: 50%; }
.c-rank li:nth-child(1) b { background: var(--d-sun); color: var(--d-plum); }
.c-rank li:nth-child(2) b, .c-rank li:nth-child(3) b { background: var(--d-petal); color: var(--d-plum); }
.c-rank em { color: var(--d-pink); }
.c-box--discord, a.c-box--discord { background: var(--d-purple); border: var(--d-o); box-shadow: 0 5px 0 var(--d-plum); color: #fff; }
.c-box--discord i { color: var(--d-sun); }

/* notices */
.c-notices a:hover { background: var(--d-petal-soft); }
.c-notices li:first-child a { border-radius: 0; }
.k-tag { border: var(--d-o); border-radius: 999px; background: var(--d-lilac-soft); color: var(--d-plum) !important; }
.k-tag--update { background: var(--d-petal); } .k-tag--event { background: var(--d-sun); } .k-tag--maintenance { background: #fff; }
.k-new { background: var(--d-pink); border-radius: 999px; text-transform: none; }

/* events: one card shape, two brand colours, no gradients */
.c-card { padding: 14px 8px 12px; overflow: visible; box-shadow: 0 4px 0 var(--d-lilac); }
.c-card__top { width: 54px; height: 54px; margin: 0 auto 8px; border-radius: 50%; border: var(--d-o); font-size: 22px; color: var(--d-plum); }
.c-card--a .c-card__top, .c-card--c .c-card__top, .c-card--e .c-card__top { background: var(--d-petal); }
.c-card--b .c-card__top, .c-card--d .c-card__top { background: var(--d-lilac); }
.c-card h3 { color: var(--d-purple); } .c-card p { color: var(--d-soft); }
.c-prize, .k-prize { background: var(--d-sun); border: var(--d-o); border-radius: 999px; color: var(--d-plum); font-weight: 700; }
.c-prize b, .k-prize b { color: var(--d-plum); font-weight: 700; }
.c-prize img { display: none; }
.c-banner, .k-worldevent { border: var(--d-o); border-radius: 18px; box-shadow: 0 4px 0 var(--d-plum); }
.c-banner--surge, .k-worldevent--surge { background: var(--d-pink); } .c-banner--fortune, .k-worldevent--fortune { background: var(--d-purple); }
.c-banner > i, .k-worldevent__icon { background: var(--d-sun); color: var(--d-plum); border: var(--d-o); border-radius: 50%; }

/* features list: blossom bullets instead of numbers (it is not a sequence) */
.c-feats li { padding-left: 44px; }
.c-feats li::before, .c-feats li:nth-child(even)::before { content: ""; width: 30px; height: 30px; top: 15px; background: url("../images/brand/blossom.svg") center / contain no-repeat; box-shadow: none; border-radius: 0; }
.c-feats b { color: var(--d-purple); }
.k-list li::before, .k-article ul li::before { background-image: url("../images/brand/blossom.svg"); }

/* petals: the only ambient motion */
.d-petals { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 30; }
.d-petals i { position: absolute; top: -30px; width: 14px; height: 10px; background: var(--d-petal); border: 1.5px solid #E46E9F; border-radius: 90% 10% 90% 10%; animation: fall linear infinite; }
.d-petals i:nth-child(1) { left: 8%; animation-duration: 23s; } .d-petals i:nth-child(2) { left: 29%; animation-duration: 29s; animation-delay: -9s; }
.d-petals i:nth-child(3) { left: 52%; animation-duration: 25s; animation-delay: -15s; } .d-petals i:nth-child(4) { left: 73%; animation-duration: 31s; animation-delay: -5s; }
.d-petals i:nth-child(5) { left: 91%; animation-duration: 27s; animation-delay: -20s; }
@media (prefers-reduced-motion: reduce) { .d-petals { display: none; } }

/* ---------- inner pages, same recipe ---------- */
.k-section-head .k-eyebrow { display: none; }
.k-section-title { color: var(--d-purple); font-weight: 700; text-shadow: 0 3px 0 var(--d-lilac); }
.k-section-sub { color: var(--d-soft); }
.k-chip { background: var(--d-card); border: var(--d-o); color: var(--d-plum); box-shadow: 0 3px 0 var(--d-lilac); }
.k-chip i { color: var(--d-pink); }
.k-chip.is-active { background: var(--d-purple); border-color: var(--d-plum); box-shadow: 0 3px 0 var(--d-plum); }
.k-chip.is-active i { color: var(--d-sun); }
.k-feature__icon, .k-class__icon, .k-step__num, .k-event__icon, .k-who__icon { border: var(--d-o); border-radius: 50%; box-shadow: none !important; color: var(--d-plum); background: var(--d-petal) !important; }
.k-feature:nth-child(even) .k-feature__icon, .k-class:nth-child(even) .k-class__icon, .k-system:nth-child(even) .k-feature__icon { background: var(--d-lilac) !important; }
.k-who__icon { background: var(--d-lilac-soft) !important; }
.k-feature { background: var(--d-card); }
.k-region { background: var(--d-card); } .k-region h3 i { color: var(--d-pink); }
.k-town { border: var(--d-o); border-radius: 999px; background: var(--d-lilac-soft); color: var(--d-plum); }
.k-town--new { background: var(--d-sun); color: var(--d-plum); border-color: var(--d-plum); } .k-town--new::after { background: var(--d-plum); border-radius: 999px; }
.k-boss { background: var(--d-plum); border: var(--d-o); box-shadow: var(--d-shadow); border-radius: 18px; }
.k-boss i { color: var(--d-sun); }
.k-callout { background: var(--d-petal-soft); border: 2px dashed var(--d-plum); border-radius: 16px; } .k-callout--purple { background: var(--d-lilac-soft); border-color: var(--d-plum); }
.k-callout i, .k-callout--purple i { color: var(--d-pink); }
.k-howto li::before { background: var(--d-sun); color: var(--d-plum); border: var(--d-o); border-radius: 50%; box-shadow: none; }
.k-pack--best { border-color: var(--d-plum); box-shadow: 0 5px 0 var(--d-pink); }
.k-pack__flag { background: var(--d-sun); color: var(--d-plum); border: var(--d-o); box-shadow: none; }
.k-pack__coin { background: var(--d-petal-soft); border: var(--d-o); box-shadow: none; }
.k-pack__price { color: var(--d-pink); }
.k-shop { background: var(--d-card); } .k-shop i { color: var(--d-pink); }
.k-mirror__icon { color: var(--d-purple); }
.k-zip-pass { background: var(--d-sun); border: var(--d-o); border-radius: 999px; color: var(--d-plum); } .k-zip-pass i, .k-zip-pass b { color: var(--d-plum); }
.k-discord-card { background: var(--d-purple); border: var(--d-o); box-shadow: 0 5px 0 var(--d-plum); }
.k-rank-table th { color: var(--d-soft); border-bottom: 2px solid var(--d-plum); letter-spacing: 0; text-transform: none; font-size: .95rem; }
.k-rank-table td { border-bottom: 2px dotted var(--d-lilac); }
.k-rank-table tbody tr:hover { background: var(--d-petal-soft); }
.k-rank-table--medals tbody tr:nth-child(-n+3) .num { color: var(--d-plum); }
.k-rank-table--medals tbody tr:nth-child(-n+3) .num::after { border: var(--d-o); border-radius: 50%; }
.k-rank-table--medals tbody tr:nth-child(1) .num::after { background: var(--d-sun); }
.k-rank-table--medals tbody tr:nth-child(2) .num::after, .k-rank-table--medals tbody tr:nth-child(3) .num::after { background: var(--d-petal); }
.k-article h2 { border-bottom: 2px dotted var(--d-lilac); } .k-article h3 { color: var(--d-pink); }
.k-shot img { border-radius: 0; } .k-shot, .k-worldmap { overflow: hidden; }
.modal-header { background: var(--d-blush); border-bottom: var(--d-o); } .modal-header::before { display: none; }
.btn-close { background-color: var(--d-petal); border: var(--d-o); border-radius: 50%; opacity: 1; }
.k-account__links a { border: var(--d-o); border-radius: 999px; background: var(--d-card); }
.k-account__avatar { border: var(--d-o); box-shadow: none; background: var(--d-petal-soft); }
.k-empty img { filter: none; opacity: .8; }
.k-check input { accent-color: var(--d-pink); }

@media (max-width: 900px) { .d-mast__logo img { height: 104px; } .d-nav__play { margin-left: 0; } }
@media (max-width: 600px) {
    .d-mast { padding: 16px 12px 18px; } .d-mast__logo img { height: 84px; }
    .d-mast__branch--a { width: 120px; left: -30px; top: -20px; } .d-mast__branch--b { width: 120px; right: -34px; }
    .c-nav a:not(.k-btn) { padding: 6px 11px; font-size: 14.5px; } .d-nav__play { display: none; }
    .c-box__t .c-note { display: none; }
}

/* ---------- D2: no maroon. Outlines and dark fills are the wordmark's deep purple ---------- */
:root { --d-plum: #472368; --d-pink-deep: #A92A5C; --d-ink: #35204A; --d-soft: #6A5880; --k-leaf: #C9244D; }
.k-btn { box-shadow: 0 4px 0 var(--d-pink-deep); border-color: var(--d-pink-deep); }
.k-btn:hover { box-shadow: 0 6px 0 var(--d-pink-deep); } .k-btn:active { box-shadow: 0 1px 0 var(--d-pink-deep); } .k-btn--sm { box-shadow: 0 3px 0 var(--d-pink-deep); }
.k-btn--purple, .k-btn--cream, .k-discord-card .k-btn, .k-btn--discord { border-color: var(--d-plum); box-shadow: 0 4px 0 var(--d-plum); }
.k-btn--purple:hover, .k-btn--cream:hover { box-shadow: 0 6px 0 var(--d-plum); }
.k-pack--best { box-shadow: 0 5px 0 var(--d-petal); }

/* top strip: a light petal ribbon, part of the masthead instead of a dark bar */
.c-strip { background: var(--d-petal-soft); color: var(--d-soft); border-bottom: 2px solid var(--d-petal); }
.c-strip b { color: var(--d-purple); }
.c-strip i.fas, .c-strip i.fab { color: var(--d-pink); }
.c-strip a, .c-strip .dropdown-toggle { color: var(--d-purple); } .c-strip a:hover { color: var(--d-pink); }
.c-strip__join { background: var(--d-pink); color: #fff !important; border: 2px solid var(--d-pink-deep); padding: 1px 12px; }
.c-menu { border: var(--d-o); box-shadow: var(--d-shadow); } .c-menu .dropdown-item:hover { background: var(--d-lilac-soft); }

/* footer closes the page the way the masthead opens it */
.c-foot { position: relative; overflow: hidden; background: var(--d-blush); color: var(--d-soft); border-top: var(--d-o); margin-top: 26px; }
.c-foot__in { position: relative; z-index: 1; padding-top: 26px; padding-bottom: 26px; }
.c-foot img { height: 62px; } .c-foot p { max-width: 560px; }
.c-foot a { color: var(--d-purple); } .c-foot a:hover { color: var(--d-pink); }
.c-foot nav { margin-right: clamp(0px, 13vw, 190px); }
.d-foot__branch { position: absolute; right: -10px; bottom: -14px; width: clamp(130px, 17vw, 250px); height: auto !important; pointer-events: none; }

/* expedition cards join the family */
.k-boss { background: var(--d-purple); border: var(--d-o); box-shadow: 0 5px 0 var(--d-plum); }
@media (max-width: 700px) { .c-foot nav { margin-right: 0; flex-wrap: wrap; } .d-foot__branch { width: 110px; opacity: .55; } }
:root { --k-plum-2: #35204A; --c-pink2: var(--d-pink-deep); --c-gold: var(--d-sun); }
@media (max-width: 700px) { .d-foot__branch { display: none; } }

/* ---------- Background themes: the visitor picks one from the top strip (default: lilac) ---------- */
html[data-bg="sky"]{--d-field:#D6EBFA;--d-lilac:#A9D0EE;--d-lilac-soft:#EAF5FD;--k-line:#CFE4F5;--c-line:#CFE4F5;--k-line-strong:#A9D0EE;background:#D6EBFA}
html[data-bg="sky"] body{background-image:url("../images/brand/blossom-pattern-sky.svg")}
html[data-bg="cream"]{--d-field:#FAF0DC;--d-lilac:#EBD3A6;--d-lilac-soft:#FCF6E8;--k-line:#EFE0C2;--c-line:#EFE0C2;--k-line-strong:#EBD3A6;background:#FAF0DC}
html[data-bg="cream"] body{background-image:url("../images/brand/blossom-pattern-cream.svg")}
html[data-bg="matcha"]{--d-field:#E1F0DB;--d-lilac:#B4D8AA;--d-lilac-soft:#F0F8EC;--k-line:#D3E8CB;--c-line:#D3E8CB;--k-line-strong:#B4D8AA;background:#E1F0DB}
html[data-bg="matcha"] body{background-image:url("../images/brand/blossom-pattern-matcha.svg")}
html[data-bg="night"]{--d-field:#27224F;background:#27224F}
html[data-bg="night"] body{background-image:url("../images/brand/blossom-pattern-night.svg")}
html[data-bg="night"] .k-section-title{color:#fff;text-shadow:0 3px 0 #15112F}
html[data-bg="night"] .k-section-sub{color:#D9CFF2}
html[data-bg="night"]{--d-shadow:0 5px 0 #15112F}
html[data-bg="night"] .c-frame,html[data-bg="night"] .c-hero__card{box-shadow:0 6px 0 #15112F}
html[data-bg="night"] .c-card,html[data-bg="night"] .k-chip{box-shadow:0 4px 0 #E6D6F7}

html[data-bg="pink"]{--d-field:#E0457A;--d-shadow:0 5px 0 #A92A5C;background:#E0457A}
html[data-bg="pink"] body{background-image:url("../images/brand/blossom-pattern-pink.svg")}
html[data-bg="pink"] .k-section-title{color:#fff;text-shadow:0 3px 0 #A92A5C}
html[data-bg="pink"] .k-section-sub{color:#FFE3EF}
html[data-bg="pink"] .c-frame,html[data-bg="pink"] .c-hero__card{box-shadow:0 6px 0 #A92A5C}
html[data-bg="pink"] .k-chip{box-shadow:0 3px 0 #A92A5C}
html[data-bg="pink"] .d-petals i{background:#fff;border-color:#FFC2DA}
html[data-bg="petal"]{--d-field:#FFC2DA;--d-shadow:0 5px 0 #F08DB4;background:#FFC2DA}
html[data-bg="petal"] body{background-image:url("../images/brand/blossom-pattern-petal.svg")}
html[data-bg="petal"] .c-frame,html[data-bg="petal"] .c-hero__card{box-shadow:0 6px 0 #F08DB4}
html[data-bg="petal"] .k-chip{box-shadow:0 3px 0 #F08DB4}
html[data-bg="petal"] .d-petals i{background:#fff}

.d-bg .dropdown-toggle::after { display: none; }
.d-bg .c-menu { min-width: 190px; }
.d-bg .dropdown-item { background: none; border: 2px solid transparent; width: 100%; cursor: url("../images/cursor/pointer.png") 3 1, pointer; }
.d-bg .dropdown-item[aria-pressed="true"] { border-color: var(--d-plum); background: var(--d-lilac-soft); }
.d-swatch { width: 20px !important; height: 20px; border-radius: 50%; border: 2px solid #472368; display: inline-block; flex: none; }
.k-feature:last-child:nth-child(3n+1) { grid-column: 1 / -1; }

/* headlines: solid deep purple, no under-shadow (the doubled edge made them hard to read) */
.c-hero h1, .k-section-title { color: var(--d-plum); text-shadow: none; }
html[data-bg="night"] .k-section-title, html[data-bg="pink"] .k-section-title { color: #fff; text-shadow: none; }
.c-card h3, .c-feats b, .k-article h2 { color: var(--d-plum); }

.k-helper__sub { font: 600 1.15rem var(--k-font-display); color: var(--d-plum); margin: 1.4rem 0 .8rem; }

/* home 1x seal: same purple-to-pink treatment as the rates card in the guide */
.c-seal { color: #fff; border: 2px solid #4E2B79; box-shadow: 0 5px 0 #4E2B79;
    background: radial-gradient(circle at 25% 10%, rgba(255, 255, 255, .28), transparent 50%), linear-gradient(125deg, #5A2F92 0%, #8A3E9E 45%, #E0457A 100%); }
.c-seal b { color: #fff; text-shadow: 0 3px 0 rgba(62, 15, 33, .35), 0 0 16px rgba(255, 196, 214, .75); letter-spacing: -.03em; }
.c-seal b i { font-style: normal; font-size: .62em; color: #FFD7E5; margin-left: .04em; }
.c-seal span { color: #FFE3EF; }

/* snapshots: two landscape shots stacked beside the tall Widget shot */
.c-shots { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; }
.c-shots .d-shot--widget { grid-column: 2; grid-row: 1 / span 2; }
.d-shot--widget { margin: 0 auto; max-width: 365px; position: relative; }
.d-shot--widget img, .c-frame--s.d-shot--widget img { aspect-ratio: auto; object-fit: contain; width: 100%; height: auto; display: block; }
.d-shot--guide { margin-top: 1.4rem; }
@media (max-width: 700px) { .c-shots { grid-template-columns: 1fr 1fr; } .c-shots .d-shot--widget { grid-column: 1 / -1; grid-row: auto; } }
@media (max-width: 700px) { .c-shots { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.d-shot--widget { max-width: min(365px, 100%); }
.c-cols > *, .c-main > *, .c-side > * { min-width: 0; }
@media (max-width: 900px) { .c-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .c-box__t { gap: 6px; padding: 0 10px; } .c-box__t .c-more { padding: 3px 9px; font-size: 12px; } .d-tab { padding: 4px 12px 5px; font-size: 15.5px; } }

/* ---------- real class icons (Guide, Rankings, Top adventurers) ---------- */
.k-jobimg { display: block; width: 32px; height: 32px; border-radius: 9px; border: 2px solid var(--d-plum); background: var(--d-plum); flex: none; object-fit: cover; }
.k-class__icon--img { background: none !important; border: 0 !important; width: 64px; height: 64px; }
.k-class__icon--img img { width: 64px; height: 64px; display: block; image-rendering: pixelated; border-radius: 16px; border: 2px solid var(--d-plum); box-shadow: 0 4px 0 var(--d-lilac); }
.k-who__icon:has(.k-jobimg) { background: none !important; border: 0; width: auto; height: auto; }
.k-who__icon .k-jobimg { width: 36px !important; height: 36px !important; }
.k-chip .k-jobimg { width: 22px; height: 22px; border-radius: 6px; border-width: 1.5px; }
.c-rank .k-jobimg { width: 30px; height: 30px; }

/* ---------- mascots ---------- */
.d-box--mascot { position: relative; }
.d-mascot { position: absolute; pointer-events: none; height: auto; z-index: 2; }
.d-mascot--mush { width: 112px; right: -6px; top: -62px; }
.d-head--mascot { position: relative; }
.d-mascot--yeti { width: 128px; right: max(0px, calc(50% - 470px)); top: -18px; }
@media (max-width: 900px) { .d-mascot--yeti { width: 92px; right: 0; top: -8px; } .k-section-head.d-head--mascot { padding-right: 70px; } }
@media (max-width: 600px) { .d-mascot--mush { width: 92px; top: -50px; } }
.c-cols { margin-top: 52px; }
.d-mascot--mush { width: 104px; top: -58px; }
@media (max-width: 900px) { .d-box--mascot { margin-top: 30px; } }

/* ---------- trophies for places 1, 2 and 3 (the number stays for screen readers) ---------- */
.k-rank-table--medals tbody tr:nth-child(-n+3) .num { color: transparent; font-size: 0; }
.k-rank-table--medals tbody tr:nth-child(-n+3) .num::after { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 0; border-radius: 0; background: center / contain no-repeat; }
.k-rank-table--medals tbody tr:nth-child(1) .num::after { background-image: url("../images/trophies/trophy-gold.svg"); }
.k-rank-table--medals tbody tr:nth-child(2) .num::after { background-image: url("../images/trophies/trophy-silver.svg"); }
.k-rank-table--medals tbody tr:nth-child(3) .num::after { background-image: url("../images/trophies/trophy-bronze.svg"); }
.c-rank li:nth-child(-n+3) b { font-size: 0; color: transparent; border: 0; border-radius: 0; background: center / contain no-repeat; width: 30px; height: 30px; }
.c-rank li:nth-child(1) b { background-image: url("../images/trophies/trophy-gold.svg"); }
.c-rank li:nth-child(2) b { background-image: url("../images/trophies/trophy-silver.svg"); }
.c-rank li:nth-child(3) b { background-image: url("../images/trophies/trophy-bronze.svg"); }

/* ---------- custom cursor: the in-game hand ---------- */
html, body { cursor: url("../images/cursor/default.png") 3 1, auto; }
a, button, button:not(:disabled), [type="button"]:not(:disabled), [type="submit"]:not(:disabled), .btn-close, .btn, [role="button"], label, select, summary, .k-btn, .k-chip, .dropdown-item, input[type="checkbox"], input[type="radio"], input[type="submit"] { cursor: url("../images/cursor/pointer.png") 3 1, pointer; }
a:active, button:active, [role="button"]:active, .k-btn:active, .k-chip:active { cursor: url("../images/cursor/press.png") 3 1, pointer; }
input[type="text"], input[type="password"], input[type="email"], input[type="search"], input[type="number"], textarea { cursor: text; }
.k-rank-table--medals tbody tr:nth-child(-n+3) .num::after { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
.c-rank li:nth-child(-n+3) b { width: 32px; height: 32px; }

/* ---------- home: the airship sailing across the masthead, behind the logo and the branches ---------- */
.d-ship { position: absolute; z-index: 0; left: 0; top: 10px; width: 176px; pointer-events: none; animation: d-ship-sail 75s linear infinite; animation-delay: -22s; }
.d-ship__bob { position: relative; animation: d-ship-bob 4.5s ease-in-out infinite alternate; }
.d-ship__hull { display: block; width: 100%; height: auto; position: relative; z-index: 1; }
.d-ship__prop { position: absolute; z-index: 2; width: 16%; left: 67.7%; top: 53.3%; animation: d-ship-spin 1.1s linear infinite; }
.d-ship__exhaust { position: absolute; z-index: 2; width: 14.3%; left: 30%; top: 64.1%; opacity: .9; }
.d-ship__exhaust--2 { animation: d-ship-puff .3s steps(1) infinite; }
.d-ship__exhaust--1 { animation: d-ship-puff .3s steps(1) infinite reverse; }
.d-mast__branch, .d-mast__logo { z-index: 1; }
@keyframes d-ship-sail { from { transform: translateX(-200px); } to { transform: translateX(calc(100vw + 40px)); } }
@keyframes d-ship-bob { from { transform: translateY(-4px) rotate(-1.5deg); } to { transform: translateY(5px) rotate(1deg); } }
@keyframes d-ship-spin { to { transform: rotate(360deg); } }
@keyframes d-ship-puff { 0% { opacity: .9; } 50% { opacity: 0; } }
@media (max-width: 600px) { .d-ship { width: 112px; top: 6px; } }
@media (prefers-reduced-motion: reduce) {
    .d-ship { animation: none; left: auto; right: 22%; }
    .d-ship__bob, .d-ship__prop, .d-ship__exhaust { animation: none; }
    .d-ship__exhaust--2 { display: none; }
}
/* the ship slips behind a soft blush cloud around the logo instead of showing through the letters */
.d-mast__logo { position: relative; z-index: 1; }
.d-mast__logo::before { content: ""; position: absolute; z-index: -1; inset: -18px -70px; background: radial-gradient(closest-side, var(--d-blush) 80%, rgba(255, 244, 248, 0) 100%); }
@media (max-width: 600px) { .d-ship { display: none; } }

/* ---------- the guide book (pixel art, kept crisp) ---------- */
.d-guide-book { display: block; width: 96px; height: 84px; margin: 0 auto .6rem; image-rendering: pixelated; transform: rotate(-4deg); filter: drop-shadow(0 4px 0 var(--d-lilac)); }
.d-guide-book--sm { display: inline-block; width: 32px; height: 28px; margin: -8px 2px -8px -6px; vertical-align: middle; transform: rotate(-6deg); filter: none; }
.c-box__t .c-more:has(.d-guide-book) { display: inline-flex; align-items: center; gap: 4px; }
.d-guide-book, .d-guide-book--sm { transform: none; }
.d-guide-book--sm { margin: -9px 1px -9px -7px; }

/* ---------- home: clouds drifting through the masthead (two behind the ship, one wisp in front) ---------- */
.d-cloud { position: absolute; z-index: 0; left: 0; height: auto; pointer-events: none; filter: drop-shadow(0 3px 8px rgba(107, 63, 160, .22)); animation: d-cloud-drift linear infinite; }
.d-cloud--1 { width: 210px; top: 8px; animation-duration: 120s; animation-delay: -70s; }
.d-cloud--2 { width: 130px; top: 70px; animation-duration: 160s; animation-delay: -20s; opacity: .95; }
.d-cloud--3 { width: 230px; top: 110px; animation-duration: 55s; animation-delay: -40s; opacity: .9; }
@keyframes d-cloud-drift { from { transform: translateX(-260px); } to { transform: translateX(calc(100vw + 40px)); } }
@media (max-width: 600px) { .d-cloud--1 { width: 140px; } .d-cloud--2 { width: 90px; top: 50px; } .d-cloud--3 { width: 150px; top: 70px; } }
@media (prefers-reduced-motion: reduce) {
    .d-cloud { animation: none; }
    .d-cloud--1 { transform: translateX(14vw); } .d-cloud--2 { transform: translateX(70vw); } .d-cloud--3 { transform: translateX(58vw); }
}
.d-cloud { filter: drop-shadow(0 4px 10px rgba(107, 63, 160, .32)) drop-shadow(0 1px 0 rgba(216, 184, 242, .9)); }
.d-cloud--1 { top: 18px; }
.d-cloud--3 { width: 260px; opacity: 1; }

/* ---------- home: a light blue sky behind the logo, so the clouds and the airship read ---------- */
.d-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, #CDE5F8 0%, #E0EFFB 55%, #F0F7FE 100%); }
.d-sky ~ .d-mast__logo::before { inset: -40px -80px; background: linear-gradient(180deg, #CDE5F8 0%, #E0EFFB 55%, #F0F7FE 100%);
    -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }
.d-sky ~ .d-cloud { filter: drop-shadow(0 4px 10px rgba(70, 110, 170, .22)); }

/* ---------- rates icon (pixel art) ---------- */
.d-rates-ic { image-rendering: pixelated; border-radius: 7px; flex: none; }
.k-chip .d-rates-ic { width: 24px; height: 24px; margin: -4px 0 -4px -6px; border-radius: 6px; }
.k-panel__title .d-rates-ic { width: 32px; height: 32px; margin: -8px 2px -8px -10px; border: 2px solid #fff; border-radius: 9px; }
.d-rates-cell { display: inline-flex; align-items: center; gap: 8px; }
.d-rates-cell .d-rates-ic { width: 24px; height: 24px; }

/* ---------- the squid on the Notice Board ---------- */
.d-mascot--squid { width: 124px; height: auto; image-rendering: pixelated; right: max(0px, calc(50% - 430px)); top: -14px; }
@media (max-width: 900px) { .d-mascot--squid { width: 83px; top: -6px; } }
.d-mascot--squid { top: -26px; }

/* ---------- Sign up drawn on the Kaede "create" panel (wide screens; phones keep the plain card) ---------- */
@media (min-width: 992px) {
    .d-reg .modal-dialog { max-width: 980px; }
    .d-reg .modal-content { position: relative; aspect-ratio: 1440 / 832; background: url("../images/brand/create-panel.webp") center / 100% 100% no-repeat; border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
    .d-reg .modal-header { position: absolute; left: 9%; top: 9.5%; width: 40%; padding: 0; background: none; border: 0; }
    .d-reg .modal-title { font: 700 2rem/1.1 var(--k-font-display); color: var(--d-plum); display: flex; align-items: center; gap: 10px; }
    .d-reg .modal-title img { width: 38px; height: 38px; }
    .d-reg .btn-close { position: absolute; left: auto; right: -4.4%; top: -1.5%; width: 34px; height: 34px; }
    .d-reg form, .d-reg .modal-body { position: static; padding: 0; }
    .d-reg .d-reg__note { position: absolute; left: 9.3%; top: 21%; width: 38%; margin: 0; text-align: left; font-size: .95rem; }
    .d-reg .d-reg__fields { position: absolute; left: 10%; top: 37%; width: 36.5%; }
    .d-reg .d-reg__fields .form-label { margin-bottom: .2rem; font-size: .88rem; }
    .d-reg .d-reg__fields .form-control { padding: .4rem .65rem; font-size: .95rem; }
    .d-reg .d-reg__fields .k-hint { display: block; margin-top: .5rem; font-size: .8rem; line-height: 1.35; }
    .d-reg .d-reg__fields .row { --bs-gutter-y: .7rem; --bs-gutter-x: .8rem; }
    .d-reg .d-reg__cta { position: absolute; left: 19.5%; top: 83.2%; width: 23%; }
    .d-reg .d-reg__cta .k-btn { padding: .55rem 1rem; font-size: 1.05rem; }
}
@media (min-width: 992px) {
    .d-reg .modal-header { position: static; width: auto; }
    .d-reg .modal-title { position: absolute; left: 9%; top: 9.5%; font-size: 1.9rem; }
    .d-reg .btn-close { position: absolute; left: auto; right: 2.2%; top: 4.5%; margin: 0; }
}

/* ---------- the two adventurers: Download and Kaede Points ---------- */
.d-mascot--runner { width: 190px; image-rendering: pixelated; right: max(0px, calc(50% - 520px)); top: -70px; }
.d-mascot--lolli { width: 230px; image-rendering: pixelated; right: max(0px, calc(50% - 560px)); top: -28px; }
@media (max-width: 900px) { .d-mascot--runner { width: 95px; top: -30px; } .d-mascot--lolli { width: 115px; top: -8px; } }
@media (max-width: 600px) { .d-mascot--runner, .d-mascot--lolli { display: none; } .k-section-head.d-head--mascot:has(.d-mascot--runner), .k-section-head.d-head--mascot:has(.d-mascot--lolli) { padding-right: 0; } }

/* Leaf crimson: the maple-leaf colour from the logo (#C9244D, deep #5A1730) */
html[data-bg="leaf"]{--d-field:#C9244D;--d-shadow:0 5px 0 #5A1730;background:#C9244D}
html[data-bg="leaf"] body{background-image:url("../images/brand/blossom-pattern-leaf.svg")}
html[data-bg="leaf"] .k-section-title{color:#fff;text-shadow:none}
html[data-bg="leaf"] .k-section-sub{color:#FFE3EF}
html[data-bg="leaf"] .c-frame,html[data-bg="leaf"] .c-hero__card{box-shadow:0 6px 0 #5A1730}
html[data-bg="leaf"] .k-chip{box-shadow:0 3px 0 #5A1730}
html[data-bg="leaf"] .d-petals i{background:#fff;border-color:#FFC2DA}
html[data-bg="leaf"] p.k-section-sub{color:#FFE3EF !important}
.k-systems { align-items: stretch; }

/* boss art in the Expeditions cards */
.k-boss { padding-top: 1rem; }
.k-boss__img { display: block; height: 128px; width: auto; max-width: 100%; margin: 0 auto .7rem; object-fit: contain; filter: drop-shadow(0 4px 0 rgba(0,0,0,.28)); }
.k-boss__img--chaos { filter: hue-rotate(-22deg) saturate(1.5) brightness(.78) drop-shadow(0 4px 0 rgba(0,0,0,.28)); }
@media (max-width: 600px) { .k-boss__img { height: 100px; } }
.c-frame--map figcaption { left: auto; right: 20px; }

/* Loading slime: shown while a page loads or when moving between pages */
.d-load { position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; background: var(--d-blush, #FFF4F8); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease, visibility 0s linear .18s; }
html.d-loading .d-load { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .15s ease; }
.d-load__slime { position: relative; width: 190px; padding-bottom: 6px; }
.d-load__slime img { display: block; width: 100%; height: auto; image-rendering: auto; }
.d-load__shadow { position: absolute; left: 50%; bottom: -2px; width: 55%; height: 10px; margin-left: -27%; border-radius: 50%; background: rgba(71,35,104,.18); }
.d-load__text { margin: 0; font-family: "Fredoka", "Zen Maru Gothic", sans-serif; font-weight: 600; font-size: 1.15rem; color: var(--d-plum, #472368); }
.d-load__text::after { content: ""; display: inline-block; width: 1.4em; text-align: left; animation: d-load-dots 1.2s steps(4, end) infinite; }
@keyframes d-load-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
@media (prefers-reduced-motion: reduce) { .d-load__text::after { animation: none; } .d-load, html.d-loading .d-load { transition: none; } }

/* Packages: centre an incomplete last row */
@media (min-width: 992px) {
    .k-packs { grid-template-columns: repeat(6, 1fr); }
    .k-packs > * { grid-column: span 2; }
    .k-packs > :nth-last-child(2):nth-child(3n+1) { grid-column: 2 / span 2; }
    .k-packs > :last-child:nth-child(3n+1) { grid-column: 3 / span 2; }
}
@media (min-width: 601px) and (max-width: 991px) {
    .k-packs > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - .55rem); }
}

/* Alpha stage indicator */
.d-alpha { display: flex; align-items: center; justify-content: center; gap: .75rem; flex-wrap: wrap; max-width: 1100px; margin: 1rem auto 0; padding: .55rem 1rem; background: var(--d-sun, #FFD25A); border: 2px solid var(--d-plum, #472368); border-radius: 999px; box-shadow: 0 4px 0 var(--d-plum, #472368); color: var(--d-plum, #472368); }
.d-alpha p { margin: 0; font-size: .95rem; line-height: 1.35; text-align: center; }
.d-alpha__tag { display: inline-flex; align-items: center; gap: .4rem; background: var(--d-plum, #472368); color: #fff; font-family: "Fredoka", "Zen Maru Gothic", sans-serif; font-weight: 600; font-size: .85rem; padding: .15rem .7rem; border-radius: 999px; white-space: nowrap; }
.d-alpha__chip { display: inline-block; background: var(--d-sun, #FFD25A); color: var(--d-plum, #472368); font-weight: 700; font-size: .72rem; line-height: 1; padding: .22rem .5rem; border-radius: 999px; margin-right: .3rem; }
@media (max-width: 600px) { .d-alpha { border-radius: 18px; margin: .75rem .75rem 0; } }
@media (max-width: 600px) { .d-alpha__chip { display: none; } }

/* ---- Game icons (pixel art) and Party Quests ---- */
.k-icon-img { display: block; image-rendering: pixelated; }
.k-feature__icon--pix { background: var(--d-lilac-soft, #F1E6FB) !important; }
.k-feature__icon--pix .k-icon-img { width: 32px; height: 32px; }
.k-chip__img { width: 24px; height: 24px; image-rendering: pixelated; vertical-align: -7px; margin-right: .1rem; }
.k-title__img { width: 32px; height: 32px; vertical-align: -9px; image-rendering: pixelated; margin-right: .2rem; }
.k-town__img { width: 24px; height: 24px; vertical-align: -8px; margin-right: .15rem; }
.k-pqs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.k-pq { text-align: center; padding: 1.2rem .9rem 1.1rem; border-radius: 18px; background: var(--d-purple, #7B4BB5); color: #F4E8FF; border: var(--d-o, 2px solid #472368); box-shadow: 0 5px 0 var(--d-plum, #472368); }
.k-pq__tile { display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto .7rem; border-radius: 22px; background: #FFF8FC; border: 2px solid rgba(0,0,0,.18); }
.k-pq__tile img { width: 76px; height: 76px; image-rendering: pixelated; }
.k-pq h3 { color: #fff; font-size: 1.15rem; margin: 0 0 .1rem; }
.k-pq small { display: block; color: #FFD25A; font-weight: 700; margin-bottom: .6rem; }
.k-pq__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; }
.k-pq__facts span { font-size: .8rem; font-weight: 700; background: rgba(255,255,255,.16); border-radius: 999px; padding: .15rem .6rem; }
.k-icon-img--call { width: 38px; height: 38px; flex: none; }
.k-callout:has(.k-icon-img--call) { align-items: center; }
@media (max-width: 700px) { .k-pqs { grid-template-columns: 1fr; } }

/* ---- Snapshots, second set (captions under the picture) ---- */
.c-shots2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: center; padding-top: 0; }
.c-shots2__big { grid-row: 1 / span 2; }
.c-frame--cap img, .c-frame--s.c-frame--cap img { aspect-ratio: auto; object-fit: contain; height: auto; }
.c-frame--cap figcaption { position: static; display: block; text-align: center; margin-top: 6px; border-radius: 12px; padding: 4px 10px; }
@media (max-width: 700px) { .c-shots2 { grid-template-columns: 1fr; } .c-shots2__big { grid-row: auto; } }
.c-shots2__small { max-width: 260px; width: 100%; margin: 0 auto; }
.c-frame--cap video { display: block; width: 100%; height: auto; border-radius: 13px; border: var(--d-o); }

/* ---- Snapshots gallery + lightbox ---- */
.d-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.d-gallery__item { display: block; padding: 5px 5px 0; margin: 0; background: #fff; border: var(--d-o, 2px solid #472368); border-radius: 14px; box-shadow: 0 4px 0 var(--d-lilac, #D9C2F2); cursor: zoom-in; text-align: center; font: inherit; color: var(--d-plum, #472368); transition: transform .12s; }
.d-gallery__item:hover { transform: translateY(-2px); }
.d-gallery__item:focus-visible { outline: 3px solid var(--d-pink, #E0457B); outline-offset: 2px; }
.d-gallery__item img, .d-gallery__item video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 9px; }
.d-gallery__item--top img { object-position: top; }
.d-gallery__item span { display: block; font-size: .78rem; font-weight: 700; line-height: 1.2; padding: 6px 2px 7px; }
.d-lightbox { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; background: rgba(35, 14, 56, .86); padding: 56px 60px 20px; }
.d-lightbox.is-open { display: flex; }
.d-lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.d-lightbox__media img, .d-lightbox__media video { display: block; max-width: min(1000px, 100%); max-height: calc(100vh - 150px); min-width: min(360px, 80vw); width: auto; height: auto; object-fit: contain; border-radius: 14px; border: 3px solid #fff; background: #fff; }
.d-lightbox figcaption { color: #fff; font-weight: 700; text-align: center; }
.d-lightbox button { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; background: var(--d-purple, #7B4BB5); color: #fff; font-size: 1.1rem; cursor: pointer; }
.d-lightbox__close { top: 12px; right: 12px; }
.d-lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.d-lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }
@media (max-width: 991px) { .d-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .d-lightbox { padding: 60px 8px 70px; } .d-lightbox__prev, .d-lightbox__next { top: auto; bottom: 14px; transform: none; } .d-lightbox__prev { left: 30%; } .d-lightbox__next { right: 30%; } }

/* ---- phones: keep the clouds and the airship in the masthead ---- */
@media (max-width: 600px) {
    .d-ship { display: block; width: 74px; top: 4px; animation-duration: 40s; }
    .d-cloud--1 { width: 120px; top: 6px; } .d-cloud--2 { width: 80px; top: 58px; } .d-cloud--3 { width: 140px; top: 78px; animation-duration: 34s; }
    .d-cloud--1 { animation-duration: 70s; } .d-cloud--2 { animation-duration: 90s; }
    .d-sky ~ .d-mast__logo::before { inset: -6px -10px; }
}
.k-shop__img { display: block; width: 52px; height: 52px; margin: 0 auto .5rem; padding: 6px; object-fit: contain; image-rendering: pixelated; background: #fff; border: 2px solid var(--d-lilac, #D9C2F2); border-radius: 14px; }
/* ---- Vote page ---- */
.d-vote__row { display: flex; gap: .6rem; align-items: stretch; margin-bottom: .35rem; }
.d-vote__row .form-control { flex: 1 1 auto; min-width: 0; }
.d-vote__row .k-btn { flex: none; white-space: nowrap; }
@media (max-width: 600px) { .d-vote__row { flex-direction: column; } }

/* ---- Package art ---- */
.k-pack { overflow: visible; }
.k-pack__art { margin: -1.4rem -1rem .85rem; border-radius: 18px 18px 0 0; overflow: hidden; border-bottom: var(--d-o, 2px solid #472368); background: #F3E8FF; }
.k-pack__art img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; transition: transform .35s ease; }
.k-pack:hover .k-pack__art img { transform: scale(1.05); }
.k-pack__name { font-family: var(--k-font-display); font-weight: 700; font-size: .95rem; color: var(--d-pink, #E0457B); margin-bottom: .25rem; }
.k-pack__flag { z-index: 2; }
@media (prefers-reduced-motion: reduce) { .k-pack__art img, .k-pack:hover .k-pack__art img { transition: none; transform: none; } }

/* ---- Navbar Discord button ---- */
.c-nav a.d-nav__discord { margin-left: auto; display: inline-flex; align-items: center; gap: .45rem; padding: .4rem 1rem; border-radius: 999px; background: #5865F2; color: #fff !important; font-weight: 800; font-size: 1rem; border: 2px solid #2B2F8A; box-shadow: 0 3px 0 #2B2F8A; text-decoration: none; white-space: nowrap; transition: transform .12s, background .12s; }
.c-nav a.d-nav__discord i { font-size: 1.15rem; }
.c-nav a.d-nav__discord:hover, .c-nav a.d-nav__discord:focus-visible { background: #4752C4; color: #fff !important; transform: translateY(-1px); }
.c-nav a.d-nav__discord ~ .d-nav__play { margin-left: .5rem; }
@media (max-width: 900px) { .c-nav a.d-nav__discord { margin-left: 0; } }
@media (max-width: 600px) { .c-nav a.d-nav__discord { padding: 6px 12px; font-size: 14.5px; } }

/* ---- Class skill guide ---- */
.d-skills { max-width: 1100px; }
.d-skills__crumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-weight: 700; font-size: .9rem; margin-bottom: 1rem; color: var(--d-plum, #472368); }
.d-skills__crumbs a { color: var(--d-pink, #E0457B); text-decoration: none; }
.d-skills__crumbs a:hover { text-decoration: underline; }
.d-skills__hero { display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.25rem; align-items: center; padding: 1.4rem 1.5rem; margin-bottom: 1.5rem; }
.d-skills__badge { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; }
.d-skills__badge img { width: 48px; height: 48px; image-rendering: pixelated; }
.d-skills__intro h1 { font-family: var(--k-font-display); font-size: 2.1rem; margin: 0 0 .2rem; color: var(--d-plum, #472368); }
.d-skills__intro p { margin: 0; color: var(--k-ink-soft); max-width: 60ch; }
.d-skills__switch { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .45rem; }
.d-skills__chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .8rem; border-radius: 999px; border: 2px solid var(--d-lilac, #D9C2F2); background: #fff; color: var(--d-plum, #472368); font-weight: 700; font-size: .9rem; text-decoration: none; }
.d-skills__chip img { image-rendering: pixelated; }
.d-skills__chip:hover { border-color: var(--d-plum, #472368); }
.d-skills__chip.is-on { background: var(--d-purple, #7B4BB5); border-color: var(--d-plum, #472368); color: #fff; }
.d-skills__video { padding: .6rem; margin-bottom: 1.5rem; }
.d-skills__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #1c0f2e; }
.d-skills__frame iframe, .d-skills__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.d-job { margin-bottom: 1.25rem; }
.d-job .k-panel__title small { font: 600 .8rem/1 var(--k-font-body, inherit); opacity: .85; margin-left: .2rem; }
.d-skillgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.d-skill { display: flex; gap: .85rem; padding: .85rem .95rem; background: #fff; border: 2px solid var(--d-lilac, #D9C2F2); border-radius: 16px; }
.d-skill__icon { flex: none; width: 56px; height: 56px; border-radius: 14px; background: #FBF6FF; border: 2px solid var(--d-lilac, #D9C2F2); display: grid; place-items: center; }
.d-skill__icon img { width: 44px; height: 44px; image-rendering: pixelated; }
.d-skill__body { min-width: 0; }
.d-skill__name { font-family: var(--k-font-display); font-size: 1.05rem; margin: 0 0 .3rem; color: var(--d-plum, #472368); display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.d-skill__max { font: 700 .72rem/1 var(--k-font-body, inherit); background: var(--d-pink, #E0457B); color: #fff; border-radius: 999px; padding: .25rem .55rem; }
.d-skill__at { margin: 0 0 .35rem; font-size: .9rem; color: var(--d-plum, #472368); background: #FFF4F8; border-radius: 10px; padding: .35rem .55rem; }
.d-skill__desc { margin: 0; font-size: .86rem; color: var(--k-ink-soft); line-height: 1.5; }
.d-paths { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.75rem 0 1rem; }
.d-paths__tab { font: 700 1rem/1 var(--k-font-display); padding: .6rem 1.2rem; border-radius: 999px; border: 2px solid var(--d-plum, #472368); background: #fff; color: var(--d-plum, #472368); cursor: pointer; box-shadow: 0 3px 0 var(--d-lilac, #D9C2F2); }
.d-paths__tab:hover { background: #F7F0FF; }
.d-paths__tab.is-on { background: var(--d-pink, #E0457B); color: #fff; box-shadow: 0 3px 0 var(--d-plum, #472368); }
.d-paths__tab:focus-visible { outline: 3px solid var(--d-sun, #FFD25A); outline-offset: 2px; }
.d-path__title { font-family: var(--k-font-display); font-size: 1.3rem; color: var(--d-plum, #472368); margin: 0 0 .8rem; }
.js-paths .d-path { display: none; }
.js-paths .d-path.is-on { display: block; }
.js-paths .d-path__title { display: none; }
a.k-class { display: block; color: inherit; text-decoration: none; }
.k-class__more { display: inline-block; margin-top: .5rem; font-weight: 800; font-size: .85rem; color: var(--d-pink, #E0457B); }
@media (max-width: 800px) { .d-skillgrid { grid-template-columns: 1fr; } .d-skills__hero { grid-template-columns: 1fr; } .d-skills__intro h1 { font-size: 1.7rem; } }

/* Beginner joins the class list: six cards */
.k-class--beginner .k-class__icon { background: linear-gradient(180deg, #FFD27A, #E89A2E); box-shadow: 0 4px 0 #B06D14; }
.k-classes { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1100px) { .k-classes { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .k-classes { grid-template-columns: repeat(2, 1fr); } }
.k-class__icon--img img { image-rendering: pixelated; }

/* Home button icon keeps its own 38x21 shape */
.k-feature__icon--pix .k-icon-img--home { width: 38px; height: 21px; }
.k-feature ul { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .92rem; color: var(--k-ink-soft); line-height: 1.5; }
.k-feature ul b { color: var(--k-ink); }
.k-feature ul li { margin-bottom: .2rem; }

/* Helper fee table: compact */
.k-fee-table td, .k-fee-table th { padding: .45rem .7rem; }
