:root {
    --bg-1: #0a1424;
    --bg-2: #0d1b2f;
    --bg-3: #0b0f1a;
    --accent: #49e2c2;
    --accent-2: #f4b860;
    --text-main: #f6f8ff;
    --text-muted: #a7b6ca;
    --card-bg: rgba(12, 20, 34, 0.78);
    --card-border: rgba(3, 122, 255, 0.55);
    --card-border-strong: rgba(3, 122, 255, 0.95);
    --hover-border: rgba(3, 122, 255, 1);
    --hover-glow: rgba(3, 122, 255, 0.6);
    --shadow-strong: 0 20px 55px rgba(4, 14, 28, 0.55), 0 0 16px rgba(3, 122, 255, 0.22);
    --tile-size: 200px;
}

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

html, body {
    width: 100%;
    overflow-x: hidden;
}

html, body {
    min-height: 100%;
}

html {
    background-color: #000;
    background-image: url("/static/img/back.jpg");
    background-repeat: no-repeat;
    background-position: center 0;
    background-size: cover;
}

body {
    height: auto;
    position: relative;
    justify-content: center;
    padding: 56px 24px 88px;
    gap: 28px;
    color: var(--text-main);
    font-family: "MyriadProRegular", "MyriadProCond", sans-serif;
    background-color: transparent;
    background:
        radial-gradient(850px 520px at 18% -10%, rgba(73, 226, 194, 0.1), transparent 60%),
        radial-gradient(820px 520px at 90% 0%, rgba(244, 184, 96, 0.1), transparent 60%),
        linear-gradient(180deg, rgba(6, 12, 22, 0.2), rgba(6, 12, 22, 0.35));
    background-attachment: fixed;
}

#top-area {
    width: min(1100px, 94vw);
    margin: 0 auto 12px;
    text-align: center;
}

#logo {
    width: 100%;
    height: auto;
}

#logo > img {
    width: min(900px, 90vw);
    height: auto;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.6));
}

#desc {
    margin-top: 16px;
    font-size: 15px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-muted);
}

#desc > span {
    color: var(--text-main);
    background: linear-gradient(120deg, var(--text-main), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.top_icon,
.bottom_section .icon_boxing .box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 0;
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(8px);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.top_icon > div {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
}

.top_icon {
    width: min(440px, 92vw);
    height: auto;
    padding: 14px 20px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background-image: none;
}

.top_icon::after,
.bottom_section .icon_boxing .box::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(140deg, rgba(73, 226, 194, 0.14), transparent 55%);
    opacity: 0.55;
    pointer-events: none;
}

.top_icon:hover,
.bottom_section .icon_boxing .box:hover {
    transform: translateY(-4px);
    border-color: var(--hover-border);
    box-shadow: 0 0 36px var(--hover-glow), 0 0 12px rgba(140, 210, 255, 0.4);
}

.bottom_section .icon_boxing .box > a {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 0;
    padding-top: 0;
}

.bottom_section .icon_boxing .box.active > a {
    justify-content: flex-start;
}

.top_icon .content.pl-name {
    height: auto;
    margin-bottom: 0;
}

.top_icon .content.pl-name span,
.bottom_section .icon_boxing .box .content span {
    font-family: "MyriadProRegular", sans-serif;
    font-size: 19px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--text-main);
    line-height: 1.1;
}

.top_icon .content.pl-icon {
    width: 230px;
    height: 145px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -8px auto 0;
}

.top_icon .content.pl-icon > div {
    width: 230px;
    height: 145px;
    transform: scale(0.86);
    transform-origin: 0 0;
    margin: 4px 0 0 16px;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35));
}

#load-button {
    width: clamp(140px, 55%, 180px);
    height: auto;
    padding: 6px 16px;
    margin-top: 0;
    border-radius: 0;
    background: rgb(3, 122, 255);
    box-shadow: 0 0 12px rgba(3, 122, 255, 0.35), 0 0 4px rgba(3, 122, 255, 0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgb(3, 122, 255);
    align-self: center;
}

#load-button:hover {
    background: rgb(43, 147, 255);
    box-shadow: 0 0 16px rgba(3, 122, 255, 0.55), 0 0 6px rgba(3, 122, 255, 0.45);
}

#load-button > span {
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    line-height: 1;
}

.bottom_section {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom_section .icon_boxing {
    width: min(1100px, 94vw);
    display: grid;
    grid-template-columns: repeat(5, var(--tile-size));
    justify-content: center;
    gap: 16px;
    margin-top: 26px;
    position: static;
}

.bottom_section .icon_boxing .box {
    width: var(--tile-size);
    height: var(--tile-size);
    min-height: 0;
    padding: 4px 12px 6px;
    background-image: none;
    margin: 0;
}

.bottom_section .icon_boxing .box.active {
    border-color: var(--card-border-strong);
    width: 200px;
    height: 200px;
}

.bottom_section .icon_boxing .box.active:hover:before {
    content: none;
}

.bottom_section .icon_boxing .box:first-child,
.bottom_section .icon_boxing .box:last-child {
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
    margin: 0;
}

.bottom_section .icon_boxing .content.pl-name {
    height: auto;
    margin-bottom: 0;
}

.bottom_section .content.pl-icon {
    width: 172px;
    height: 122px;
    display: block;
    overflow: hidden;
    margin: -4px auto 0;
}

.bottom_section .icon_boxing .box.active .content.pl-icon {
    margin-top: 12px;
}

.bottom_section .icon_boxing .box.active .content.pl-name {
    margin-top: 7px;
}

.bottom_section .icon_boxing .box:not(.active) .content.pl-name {
    margin-top: 7px;
}

.bottom_section .icon_boxing .box:not(.active) .content.pl-icon {
    margin-top: 12px;
}

.bottom_section .content.pl-icon > div {
    width: 230px;
    height: 145px;
    transform: scale(0.7);
    transform-origin: 0 0;
    margin: 4px 0 0 5px;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.macos .content.pl-icon {
    height: 122px;
    overflow: hidden;
}

.macos .content.pl-icon > div {
    transform: scale(0.7);
    margin: 0;
}

.bottom_section .icon_boxing .content.pl-not-sup .soon-str,
.top_icon .content.pl-not-sup .soon-str {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    margin-top: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
}

.bottom_section .icon_boxing .content.pl-not-sup {
    margin-top: 6px;
    padding-bottom: 0;
}

.bottom_section .icon_boxing .box:not(.active) .content.pl-not-sup {
    margin-top: -9px;
}

.top_icon .pl-not-sup {
    position: static;
    margin-top: 4px;
}

.over-top,
.over-mid,
.over-bot {
    display: none;
}

.bottom_section .icon_boxing .box:not(.active) {
    border-color: rgba(255, 255, 255, 0.08);
    opacity: 0.82;
    transform: none;
}

@media (max-width: 1023px) {
    .bottom_section .icon_boxing {
        grid-template-columns: repeat(3, var(--tile-size));
        gap: 14px;
    }
}

@media (max-width: 767px) {
    body {
        padding: 44px 18px 60px;
        justify-content: flex-start;
    }
    .top_icon,
    .bottom_section .icon_boxing .box {
        border-radius: 0;
    }
    .top_icon {
        width: 220px;
        height: 220px;
    }
    .top_icon .content.pl-icon {
        width: 230px;
        height: 145px;
    }
    .top_icon .content.pl-icon > div {
        width: 230px;
        height: 145px;
        transform: translateX(0) scale(0.82);
        transform-origin: 0 0;
        margin: 0;
    }
    #load-button {
        width: clamp(130px, 70%, 180px);
        min-width: 0;
    }
    .bottom_section .icon_boxing {
        grid-template-columns: repeat(2, 200px);
        margin-top: 20px;
    }
    .bottom_section .icon_boxing .box {
        width: 200px;
        height: 200px;
        min-height: 200px;
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 520px) {
    .bottom_section .icon_boxing {
        grid-template-columns: var(--tile-size);
        justify-content: center;
    }
    .top_icon {
        padding: 16px;
        width: 220px;
        height: 220px;
        aspect-ratio: auto;
    }
    .top_icon > div {
        height: 100%;
        justify-content: space-between;
        gap: 0;
    }
    .top_icon .content.pl-name {
        margin-top: 4px;
    }
    .top_icon .content.pl-icon {
        margin-top: 0;
    }
    #load-button {
        margin-top: 0;
    }
    .top_icon .content.pl-icon {
        width: 190px;
        height: 120px;
    }
    .top_icon .content.pl-icon > div {
        width: 230px;
        height: 145px;
        transform: scale(0.826);
        transform-origin: 0 0;
        margin: 0;
    }
}

@media (max-width: 360px) {
    body {
        padding: 36px 14px 52px;
    }
    .top_icon {
        padding: 14px;
        width: 220px;
        height: 220px;
        aspect-ratio: auto;
    }
    .top_icon > div {
        height: 100%;
        justify-content: space-between;
        gap: 0;
    }
    .top_icon .content.pl-name {
        margin-top: 2px;
    }
    .top_icon .content.pl-icon {
        margin-top: 0;
    }
    #load-button {
        margin-top: 0;
    }
    #load-button {
        width: clamp(130px, 75%, 170px);
        padding: 6px 12px;
    }
    #load-button > span {
        font-size: 10px;
        letter-spacing: 0.2em;
    }
    .top_icon .content.pl-name span {
        font-size: 19px;
        letter-spacing: 0;
    }
    .top_icon .content.pl-icon > div {
        width: 230px;
        height: 145px;
        transform: scale(0.826);
        transform-origin: 0 0;
        margin: 0;
    }
    .top_icon .content.pl-icon > div {
        margin: 0;
    }
}
