/* Avakin Topluluğu — living world map homepage */
.home-v9 {
    --hv9-bg: #08060b;
    --hv9-panel: rgba(10, 7, 13, .9);
    --hv9-panel-text: #fff;
    --hv9-panel-muted: rgba(255, 255, 255, .72);
    --hv9-gold: #f1c85b;
    position: relative;
    z-index: 1;
    overflow: visible;
    overflow-x: clip;
    overflow-y: visible;
    color: #fff;
    background: var(--hv9-bg);
    text-align: left !important;
    isolation: isolate;
}

.home-v9 *,
.home-v9 *::before,
.home-v9 *::after { box-sizing: border-box; }

.home-v9 .container {
    width: min(100% - 48px, 1240px) !important;
    max-width: 1240px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.home-v9 h1,
.home-v9 h2,
.home-v9 p { margin-top: 0; text-align: left !important; }
.home-v9 a { text-decoration: none; }

.hv9-world {
    position: fixed;
    z-index: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    margin: 0;
    overflow: hidden;
    background: #08060b;
}

.home-page .modern-footer {
    position: relative;
    z-index: 3;
}

.hv9-layers,
.hv9-layer,
.hv9-layer > img,
.hv9-layer__veil {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hv9-layer {
    overflow: hidden;
    opacity: 0;
    transform: scale(1.025);
    transition: opacity .9s ease, transform 1.35s cubic-bezier(.2, .65, .2, 1);
}

.hv9-layer.is-active { opacity: 1; transform: scale(1); }

.hv9-layer > img {
    object-fit: cover;
    object-position: center;
    filter: saturate(.84) contrast(1.04) brightness(.85);
}

.hv9-layer__veil {
    background:
        linear-gradient(90deg, rgba(7, 5, 10, .89), rgba(7, 5, 10, .42) 48%, rgba(7, 5, 10, .28)),
        linear-gradient(0deg, rgba(7, 5, 10, .67), transparent 50%, rgba(7, 5, 10, .28));
}

[data-hv9-layer="entry"] > img { object-position: center 47%; }
[data-hv9-layer="entry"] .hv9-theme-image {
    transition: opacity 1.6s cubic-bezier(.42, 0, .2, 1), filter .7s ease;
}

[data-hv9-layer="entry"] .hv9-entry-slide { opacity: 0; }
body:not(.home-theme-light) [data-hv9-layer="entry"] .hv9-entry-slide--dark.is-current { opacity: 1; }
body.home-theme-light [data-hv9-layer="entry"] .hv9-entry-slide--light.is-current { opacity: 1; }

[data-hv9-layer="entry"] .hv9-entry-slide--sunset { object-position: center 51%; }
[data-hv9-layer="entry"] .hv9-entry-slide--moon { object-position: center 48%; }
[data-hv9-layer="entry"] .hv9-entry-slide--yacht-day { object-position: center 44%; }
[data-hv9-layer="entry"] .hv9-entry-slide--skate-day { object-position: center 47%; }

[data-hv9-layer="entry"] .hv9-layer__veil {
    background:
        linear-gradient(90deg, rgba(7, 5, 10, .95), rgba(7, 5, 10, .67) 39%, rgba(7, 5, 10, .14) 73%, rgba(7, 5, 10, .3)),
        linear-gradient(0deg, rgba(7, 5, 10, .72), transparent 47%, rgba(7, 5, 10, .2));
}

[data-hv9-layer="community"] > img { object-position: 55% center; }
[data-hv9-layer="news"] .hv9-layer__veil {
    background:
        linear-gradient(90deg, rgba(7, 5, 10, .2), rgba(7, 5, 10, .48) 46%, rgba(7, 5, 10, .92)),
        linear-gradient(0deg, rgba(7, 5, 10, .66), transparent 50%, rgba(7, 5, 10, .22));
}

[data-hv9-layer="events"] > img { object-position: center; }
[data-hv9-layer="gallery"] > img { object-position: center; }

.hv9-layer--guide {
    background:
        radial-gradient(circle at 32% 45%, rgba(241, 200, 91, .17), transparent 22%),
        radial-gradient(circle at 72% 38%, rgba(93, 73, 145, .22), transparent 29%),
        linear-gradient(135deg, #17111d, #08060b 70%);
}

.hv9-layer--guide .hv9-layer__veil {
    background: linear-gradient(90deg, rgba(8, 6, 11, .16), rgba(8, 6, 11, .55) 48%, rgba(8, 6, 11, .92));
}

.hv9-guide-world {
    position: absolute;
    top: 50%;
    left: 31%;
    width: min(46vw, 560px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(241, 200, 91, .18);
    border-radius: 50%;
    box-shadow: inset 0 0 100px rgba(241, 200, 91, .04), 0 0 100px rgba(241, 200, 91, .035);
}

.hv9-guide-world::before,
.hv9-guide-world::after {
    position: absolute;
    inset: 13%;
    border: 1px dashed rgba(241, 200, 91, .17);
    border-radius: 50%;
    content: "";
}

.hv9-guide-world::after { inset: 31%; border-style: solid; }

.hv9-guide-world i {
    position: absolute;
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    color: var(--hv9-gold);
    background: #1a1420;
    border: 1px solid rgba(241, 200, 91, .22);
    border-radius: 21px;
    font-size: 24px;
}

.hv9-guide-world i:first-child {
    top: 50%;
    left: 50%;
    width: 116px;
    height: 116px;
    color: #171018;
    background: var(--hv9-gold);
    border-radius: 34px;
    font-size: 38px;
    transform: translate(-50%, -50%) rotate(-5deg);
}

.hv9-guide-world i:nth-child(2) { top: 13%; left: 17%; }
.hv9-guide-world i:nth-child(3) { right: 10%; bottom: 16%; }

.hv9-layer--connect {
    background:
        radial-gradient(circle at 50% 42%, rgba(88, 101, 242, .2), transparent 25%),
        radial-gradient(circle at 28% 68%, rgba(241, 200, 91, .09), transparent 25%),
        linear-gradient(145deg, #15101b, #08060b 72%);
}

.hv9-layer--connect .hv9-layer__veil { background: radial-gradient(circle at center, transparent, rgba(8, 6, 11, .7) 78%); }

.hv9-connect-world {
    position: absolute;
    top: 45%;
    left: 50%;
    display: grid;
    width: min(46vw, 540px);
    aspect-ratio: 1;
    place-items: center;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(88, 101, 242, .18);
    border-radius: 50%;
    box-shadow: 0 0 120px rgba(88, 101, 242, .09);
}

.hv9-connect-world i {
    position: absolute;
    color: rgba(255, 255, 255, .055);
    font-size: clamp(110px, 14vw, 210px);
}

.hv9-connect-world i:first-child { transform: translate(-24%, -12%); }
.hv9-connect-world i:last-child { transform: translate(26%, 18%) scale(.72); }

.hv9-route {
    position: absolute;
    z-index: 5;
    top: 50%;
    right: 24px;
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    margin: 0 !important;
    padding: 9px;
    transform: translateY(-50%);
    background: rgba(8, 6, 11, .84);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .23);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}

.home-v9.hv9-footer-near .hv9-route {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(14px, -50%, 0);
}

.hv9-route__link {
    position: relative;
    display: grid !important;
    width: 34px;
    height: 34px;
    place-items: center;
    color: rgba(255, 255, 255, .48) !important;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 50%;
    font-family: "Oxanium", sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .04em;
    transition: color .25s ease, background-color .25s ease, border-color .25s ease, transform .25s ease;
}

.hv9-route__link.is-active {
    color: #171018 !important;
    background: var(--hv9-gold);
    border-color: var(--hv9-gold);
    transform: scale(1.08);
}

.hv9-stop {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: max(680px, 100vh);
    min-height: max(680px, 100svh);
    align-items: center;
    scroll-margin-top: 0;
}

.hv9-stop__inner {
    display: flex;
    min-height: inherit;
    align-items: center;
    justify-content: flex-start;
    padding-top: 120px;
    padding-bottom: 86px;
}

.hv9-stop__inner--right { justify-content: flex-end; }
.hv9-stop__inner--center { justify-content: center; text-align: center; }

.home-theme-toggle {
    position: absolute;
    z-index: 7;
    top: 126px;
    right: max(72px, calc((100vw - 1240px) / 2));
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 9px;
    padding: 7px 13px 7px 8px;
    color: rgba(255, 255, 255, .84);
    background: rgba(8, 6, 11, .88);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 999px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .22);
    font-family: "Oxanium", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    cursor: pointer;
}

.home-theme-toggle__icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    color: #161018;
    background: var(--hv9-gold);
    border-radius: 50%;
}

.home-theme-toggle__icon .fa-moon { display: none; }

.hv9-intro { width: min(650px, 66%); }

.hv9-intro h1 {
    margin-bottom: 24px;
    color: #fff;
    font-family: "Oxanium", sans-serif;
    font-size: clamp(54px, 6.5vw, 96px);
    font-weight: 700;
    line-height: .94;
    letter-spacing: -.06em;
    text-transform: none;
}

.hv9-intro h1 em { display: block; color: var(--hv9-gold); font-style: normal; font-weight: 600; }

.hv9-intro p {
    max-width: 550px;
    margin-bottom: 36px;
    color: rgba(255, 255, 255, .78);
    font-size: clamp(16px, 1.45vw, 20px);
    line-height: 1.65;
}

.hv9-enter,
.hv9-action,
.hv9-button {
    position: relative;
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 21px;
    border-radius: 999px;
    font-family: "Oxanium", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    white-space: nowrap;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.hv9-enter,
.hv9-action {
    color: #171018 !important;
    background: var(--hv9-gold);
    border: 1px solid var(--hv9-gold);
    box-shadow: 0 12px 32px rgba(241, 200, 91, .16);
}

.hv9-enter { padding-right: 8px; }

.hv9-enter i {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    background: rgba(19, 13, 21, .12);
    border-radius: 50%;
}

.hv9-panel {
    width: min(100%, 535px);
    padding: 38px 40px 40px;
    opacity: 1;
    color: var(--hv9-panel-text);
    background: var(--hv9-panel);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 26px;
    box-shadow: 0 28px 75px rgba(0, 0, 0, .34);
    transform: none;
    transition: opacity .65s ease, transform .75s cubic-bezier(.22, .7, .25, 1);
}

.home-v9.hv9-is-ready .hv9-panel { opacity: .16; transform: translate3d(0, 34px, 0) scale(.985); }
.home-v9.hv9-is-ready .hv9-panel.is-current { opacity: 1; transform: none; }

.hv9-panel__icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 27px;
    place-items: center;
    color: var(--hv9-gold);
    background: rgba(241, 200, 91, .08);
    border: 1px solid rgba(241, 200, 91, .22);
    border-radius: 16px;
    font-size: 20px;
}

.hv9-panel h2 {
    margin-bottom: 19px;
    color: var(--hv9-panel-text);
    font-family: "Oxanium", sans-serif;
    font-size: clamp(40px, 5vw, 66px);
    font-weight: 650;
    line-height: 1.02;
    letter-spacing: -.05em;
    text-transform: none;
}

.hv9-panel p {
    margin-bottom: 31px;
    color: var(--hv9-panel-muted);
    font-size: 16px;
    line-height: 1.75;
}

.hv9-panel--connect { width: min(100%, 690px); text-align: center; }
.hv9-panel--connect .hv9-panel__icon { margin-right: auto; margin-left: auto; }
.hv9-panel--connect h2,
.hv9-panel--connect p { max-width: 560px; margin-right: auto; margin-left: auto; text-align: center !important; }
.hv9-connect-actions { display: flex; justify-content: center; gap: 12px; }

.hv9-button { overflow: visible; }

.hv9-button--discord {
    isolation: isolate;
    color: #fff !important;
    background: #5865f2;
    border: 1px solid #7481ff;
    box-shadow: 0 12px 28px rgba(88, 101, 242, .24);
}

.hv9-button--discord img {
    position: relative;
    z-index: 2;
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, .24));
}

.hv9-button__label { position: relative; z-index: 2; }

.hv9-button--forum {
    isolation: isolate;
    overflow: hidden;
    color: var(--hv9-gold) !important;
    background: rgba(241, 200, 91, .06);
    border: 1px solid rgba(241, 200, 91, .3);
}

.hv9-button--forum::before {
    position: absolute;
    z-index: 1;
    top: -45%;
    bottom: -45%;
    left: -42%;
    width: 28%;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(255, 247, 209, .62), transparent);
    opacity: 0;
    transform: skewX(-18deg) translate3d(-180%, 0, 0);
    pointer-events: none;
}

.hv9-button--forum > i { position: relative; z-index: 2; }

.hv3-discord-sparkles {
    position: absolute;
    inset: -28px;
    z-index: 1;
    overflow: visible;
    pointer-events: none;
}

.hv3-discord-sparkles i {
    position: absolute;
    top: var(--spark-y);
    left: var(--spark-x);
    width: var(--spark-size);
    height: var(--spark-size);
    border-radius: 50%;
    background: #b6c4ff;
    box-shadow: 0 0 7px rgba(153, 169, 255, .95), 0 0 15px rgba(88, 101, 242, .7);
    opacity: 0;
    animation: hv9DiscordSpark .82s cubic-bezier(.18, .7, .2, 1) var(--spark-delay) both;
}

.hv3-discord-sparkles i:nth-child(3n) {
    background: #fff;
    box-shadow: 0 0 7px rgba(255, 255, 255, .95), 0 0 14px rgba(114, 137, 255, .66);
}

@keyframes hv9DiscordSpark {
    0% { opacity: 0; transform: translate3d(0, 0, 0) scale(.35); }
    18% { opacity: .95; }
    100% { opacity: 0; transform: translate3d(var(--spark-dx), var(--spark-dy), 0) scale(1.05); }
}

@media (hover: hover) and (pointer: fine) {
    .hv9-enter:hover,
    .hv9-action:hover { transform: translateY(-3px); box-shadow: 0 17px 38px rgba(241, 200, 91, .24); }
    .hv9-button:hover { transform: translateY(-3px); }
    .hv9-button--discord:hover { box-shadow: 0 16px 34px rgba(88, 101, 242, .36); }
    .hv9-button--forum:hover { border-color: rgba(241, 200, 91, .58); box-shadow: 0 13px 30px rgba(241, 200, 91, .1); }
    .hv9-button--forum:hover::before,
    .hv9-button--forum:focus-visible::before { animation: hv9ForumReflection .9s cubic-bezier(.2, .7, .2, 1) both; }
    .hv9-route__link:hover { color: #fff !important; border-color: rgba(241, 200, 91, .35); }
    .hv9-route__link.is-active:hover { color: #171018 !important; }
}

@keyframes hv9ForumReflection {
    0% { opacity: 0; transform: skewX(-18deg) translate3d(-180%, 0, 0); }
    22% { opacity: .82; }
    100% { opacity: 0; transform: skewX(-18deg) translate3d(720%, 0, 0); }
}

body.home-theme-light .home-v9 {
    --hv9-bg: #eee7d9;
    --hv9-panel: rgba(255, 252, 245, .93);
    --hv9-panel-text: #241c25;
    --hv9-panel-muted: #6c626d;
}

body.home-theme-light .hv9-layer > img { filter: saturate(.92) contrast(1.01) brightness(1.04); }
body.home-theme-light .hv9-layer__veil { opacity: .68; }
body.home-theme-light [data-hv9-layer="entry"] .hv9-theme-image--dark { opacity: 0; }
body.home-theme-light [data-hv9-layer="entry"] .hv9-layer__veil {
    opacity: 1;
    background:
        linear-gradient(90deg, rgba(18, 11, 20, .88), rgba(18, 11, 20, .56) 39%, rgba(18, 11, 20, .08) 74%),
        linear-gradient(0deg, rgba(18, 11, 20, .48), transparent 53%, rgba(18, 11, 20, .12));
}
body.home-theme-light .home-theme-toggle { color: #f7f1fa; }
body.home-theme-light .home-theme-toggle__icon .fa-sun { display: none; }
body.home-theme-light .home-theme-toggle__icon .fa-moon { display: block; }
body.home-theme-light .hv9-panel { border-color: rgba(83, 61, 27, .16); box-shadow: 0 28px 75px rgba(44, 33, 47, .18); }

@media (max-width: 991.98px) {
    .hv9-stop { min-height: max(700px, 100svh); }
    .hv9-stop__inner { padding-top: 112px; padding-bottom: 78px; }
    .home-theme-toggle { top: 104px; right: 76px; }
    .hv9-intro { width: min(590px, 76%); }
    .hv9-panel { width: min(100%, 500px); }
    .hv9-route { right: 14px; }
    .hv9-guide-world { left: 28%; width: min(58vw, 500px); }
}

@media (max-width: 767.98px) {
    .home-v9 .container { width: min(100% - 32px, 1240px) !important; }
    .hv9-stop { min-height: max(680px, 100svh); }
    .hv9-stop__inner,
    .hv9-stop__inner--right,
    .hv9-stop__inner--center { align-items: flex-end; justify-content: flex-start; padding-top: 126px; padding-bottom: 76px; }
    [data-hv9-layer="entry"] > img { object-position: 61% center; }
    [data-hv9-layer="entry"] .hv9-entry-slide--skate-day { object-position: 72% center; }
    [data-hv9-layer="community"] > img { object-position: 64% center; }
    [data-hv9-layer="news"] > img { object-position: 35% center; }
    [data-hv9-layer="events"] > img { object-position: 62% center; }
    [data-hv9-layer="gallery"] > img { object-position: 54% center; }
    .hv9-layer__veil,
    [data-hv9-layer="entry"] .hv9-layer__veil,
    [data-hv9-layer="news"] .hv9-layer__veil,
    .hv9-layer--guide .hv9-layer__veil {
        background: linear-gradient(0deg, rgba(7, 5, 10, .95), rgba(7, 5, 10, .42) 67%, rgba(7, 5, 10, .22));
    }
    .home-theme-toggle { top: 130px; right: 16px; width: 44px; padding: 6px; justify-content: center; }
    .home-theme-toggle__label { display: none; }
    .hv9-intro { width: 100%; padding-right: 30px; }
    .hv9-intro h1 { font-size: clamp(46px, 12.8vw, 70px); }
    .hv9-intro p { max-width: 470px; font-size: 15px; }
    .hv9-panel { width: min(calc(100% - 34px), 390px); padding: 29px 30px 31px; border-radius: 22px; }
    .hv9-stop__inner--right { justify-content: flex-end; }
    .hv9-stop__inner--center { justify-content: center; }
    .hv9-panel h2 { font-size: clamp(36px, 10vw, 52px); }
    .hv9-panel p { font-size: 14px; line-height: 1.65; }
    .hv9-panel__icon { width: 48px; height: 48px; margin-bottom: 21px; border-radius: 14px; font-size: 18px; }
    .hv9-panel--connect { width: 100%; }
    .hv9-connect-actions { align-items: stretch; flex-direction: column; }
    .hv9-button { width: 100%; }
    .hv9-route {
        top: auto;
        right: auto;
        bottom: 16px;
        left: 50%;
        flex-direction: row;
        gap: 5px;
        padding: 7px;
        transform: translateX(-50%);
    }
    .home-v9.hv9-footer-near .hv9-route { transform: translate3d(-50%, 14px, 0); }
    .hv9-route__link { width: 31px; height: 31px; font-size: 7px; }
    .hv9-guide-world { top: 35%; left: 50%; width: min(82vw, 440px); opacity: .75; }
    .hv9-connect-world { top: 34%; width: min(82vw, 440px); }
}

@media (max-width: 419.98px) {
    .home-v9 .container { width: min(100% - 24px, 1240px) !important; }
    .hv9-stop { min-height: max(640px, 100svh); }
    .hv9-stop__inner,
    .hv9-stop__inner--right,
    .hv9-stop__inner--center { padding-top: 116px; padding-bottom: 68px; }
    .hv9-intro { padding-right: 20px; }
    .hv9-intro h1 { margin-bottom: 17px; font-size: clamp(41px, 12.4vw, 52px); }
    .hv9-intro p { margin-bottom: 27px; font-size: 14px; }
    .hv9-enter,
    .hv9-action { width: 100%; min-height: 50px; }
    .hv9-enter { padding-right: 8px; }
    .hv9-panel { width: min(calc(100% - 24px), 330px); padding: 25px 23px 27px; }
    .hv9-panel h2 { font-size: 36px; }
    .hv9-panel p { margin-bottom: 25px; }
    .hv9-route__link { width: 28px; height: 28px; }
}

@media (max-width: 359.98px) {
    .hv9-panel { width: calc(100% - 8px); }
    .hv9-panel h2 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    .hv9-layer,
    .hv9-panel,
    .hv9-enter,
    .hv9-action,
    .hv9-button,
    .hv9-route__link {
        transition: none !important;
        animation: none !important;
    }

    .hv3-discord-sparkles { display: none; }
    .hv9-button--forum::before { display: none; }

    .hv9-panel { opacity: 1; transform: none; }
    [data-hv9-layer="entry"] .hv9-theme-image { transition: none !important; }
}
