@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap";

html,
body {
    overflow: hidden;
}

.alignment-container {
    height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center
}

.logo-image {
    height: auto;
    z-index: 1;
    width: 150px;
    pointer-events: none;
    user-select: none
}

.profile-btn {
    padding: 0;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.profile-btn img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

#spinning {
    animation: spin 24s infinite linear
}

@keyframes spin {
    from {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(360deg)
    }
}

#creation-info {
    color: #797979;
    font-weight: 500;
    font-size: 16px
}

.shortcuts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    flex-direction: column
}

.shortcut-frame {
    flex-direction: row;
    display: flex;
    margin-left: 30px;
    margin-bottom: 15px
}

.game-container {
    width: 145px;
    margin: 10px;
    height: 250px;
    overflow: hidden;
    transition: width .3s;
    margin-right: -10px;
    height: 100px
}

.game {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    width: 94px;
    border-radius: 10px;
    height: auto;
    background: #14131387;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: blur(8px);
    -moz-backdrop-filter: blur(8px);
    -ms-backdrop-filter: blur(8px)
}

.game:hover img {
    transform: scale(1.1)
}

.game img {
    width: 100%;
    border-radius: 10px;
    height: 55%;
    transition: transform .3s
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    padding: 10px;
    border-radius: 5px;
}

.dropdown-content a {
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #444;
}

.dropdown-content a:hover {
    background-color: #575757;
}

.version {
    padding: 10px;
    background-color: #333;
    color: white;
    text-align: center;
    border-radius: 5px;
    margin-top: 10px;
}

.home-layout {
    display: block;
    flex-direction: row;
    align-items: stretch;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
    align-items: stretch;
    background: transparent;
    font-family: "Inter", "Montserrat", sans-serif;
}

.home-layout .home-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: url("/assets/img/3.png") center/cover no-repeat #0d0d0d;
}

.home-layout .home-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.55) 70%);
}

.home-layout .home-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 120px 120px, 180px 180px;
    background-position: 0 0, 40px 60px;
    mix-blend-mode: soft-light;
}

.home-layout .particles-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
}

.home-layout.is-search .particles-layer {
    opacity: 0.9;
}

.home-layout.is-browsing .particles-layer {
    opacity: 0;
}

.home-layout .home-shell {
    --shell-gap: 0px;
    --panel-gap: 0px;
    --side-width: 280px;
    --frame-pad: 1px;
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    gap: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.home-layout .home-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    border: none;
    pointer-events: none;
    z-index: 0;
}

.home-layout .sidepanel {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--side-width);
    min-width: 260px;
    overflow: hidden auto;
    padding: 12px;
    box-sizing: border-box;
    border-radius: 16px;
    background: rgb(6 6 6 / 45%);
    border: none;
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    animation: panel-in 0.5s ease both;
    z-index: 3;
}

.home-layout .side-topbar {
    width: 100%;
    padding: 2px 0;
    border-radius: 12px;
    background: transparent;
    border: none;
}

.home-layout .topbar {
    padding: 0;
    background: transparent;
    width: 100%;
    border-radius: 0;
}

.home-layout .side-topbar .left-buttons a,
.home-layout .side-topbar .right-section a {
    margin-right: 8px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
}

.home-layout .side-topbar .right-section a:last-child {
    margin-right: 0;
}

.home-layout .side-topbar .left-buttons a i,
.home-layout .side-topbar .right-section a i {
    font-size: 15px;
}

.home-layout .side-topbar .nav-btn:hover {
    background: transparent;
    color: #ffffff;
}

.home-layout .sidebar-search {
    width: 100%;
    margin: 6px 0 6px;
}

.home-layout #form {
    width: 90%;
    height: 52px;
    margin-top: 10px;
    padding: 0 12px;
    background-color: rgba(255, 255, 255, 0.03);
    border: none;
    box-shadow: none;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 12px;
}

.home-layout .search {
    font-size: 14px;
    letter-spacing: 0.3px;
    padding: 0 4px;
}

.home-layout .submit-button i {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.home-layout .panel-section {
    margin-top: 10px;
}

.home-layout .panel-section:first-of-type {
    margin-top: 4px;
}

.home-layout .panel-shortcuts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.home-layout .shortcut-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 14px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    color: #e6e6e6;
    border-radius: 10px;
    transition: transform 0.2s ease, background 0.2s ease;
    text-decoration: none;
}

.home-layout .shortcut-card i {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
}

.home-layout .shortcut-card span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.78);
}

.home-layout .shortcut-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.07);
}

.home-layout .tabs-section {
    margin-top: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.home-layout .panel-title {
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.home-layout .tab-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.86);
    cursor: pointer;
}

.home-layout .tab-item.new-tab {
    margin-top: 6px;
    justify-content: flex-start;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    font-size: 12px;
    padding: 6px 12px;
}

.home-layout .tab-icon {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    flex: 0 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.home-layout .tab-icon i {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}

.home-layout .panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 8px;
    border-top: none;
}

.home-layout .legacy-tabbar {
    display: none;
}

.home-layout .footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    padding: 6px 4px;
}

.home-layout .footer-link.icon-only {
    padding: 10px 12px;
    border-radius: 8px;
    background: transparent;
    border: none;
    font-size: 16px;
}

.home-layout .footer-link.icon-only i {
    font-size: 18px;
}

.home-layout .main-surface {
    position: absolute;
    top: var(--frame-pad);
    right: var(--frame-pad);
    bottom: var(--frame-pad);
    left: calc(var(--side-width) + var(--panel-gap) + var(--frame-pad));
    min-width: 0;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: hidden;
    animation: panel-in 0.6s ease 0.08s both;
    z-index: 1;
}

.home-layout .main-surface::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.15);
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 2;
}

.home-layout.is-search .main-surface::after {
    opacity: 0.15;
}

.home-layout.is-browsing .main-surface::after {
    opacity: 0.38;
}

.home-layout #iframe-container,
.home-layout #ifr {
    height: 100%;
    width: 100%;
}

.home-layout.is-search #ifr {
    background: #00000000;
}

.home-layout.is-browsing #ifr {
    background: #050505;
}

.home-layout #iframe-container {
    position: absolute;
    inset: 0;
    z-index: 1;
}

@keyframes panel-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .home-layout .home-shell {
        height: auto;
    }

    .home-layout .sidepanel {
        position: relative;
        top: auto;
        left: auto;
        bottom: auto;
        width: 100%;
        height: auto;
    }

    .home-layout .panel-shortcuts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-layout .main-surface {
        position: relative;
        inset: 0;
        height: 60vh;
        margin-top: 12px;
    }

    .home-layout .main-surface::after {
        left: 0;
    }

    .home-layout #iframe-container {
        left: 0;
        width: 100%;
        top: 0;
        right: 0;
        bottom: 0;
    }
}