body {
    background: #0e1941;
}
#wallpaper {
    transition: background 0.25s ease-in-out;
    position: relative;
}
#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    background-size: cover;
    background-color: #000;
    transition: 1s opacity;
    object-fit: cover;
    opacity: 1;
}
.disclaimer {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 20px 0;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}
.modal-content {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
.fade-out {
    animation: fadeOut 0.5s;
}
.wallpaper {
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #9fcafc 0%, #5a9ce3 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.wallpaper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="25" cy="25" r="0.3" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="0.4" fill="rgba(255,255,255,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}
.dock-container {
    position: relative;
    perspective: 1000px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
}
main {
    display: flex;
    align-items: center;
    justify-content: center;
}
.dock {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 35px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    min-height: 160px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.dock::before {
    content: "";
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    filter: blur(15px);
    opacity: 0.6;
}
.dock-item {
    position: relative;
    margin: 0 15px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
}
.dock-item:hover {
    transform: scale(1.2);
}
.dock-item:hover + .dock-item {
    transform: scale(1.08);
}
.dock-item:has(+ .dock-item:hover) {
    transform: scale(1.08);
}
.icon {
    width: 120px;
    height: 120px;
    border-radius: 26px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.icon-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}
.realize-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.realize-logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #4facfe 0%, #00f2fe 100%);
    position: relative;
}
.realize-text {
    font-size: 56px;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.realize-logo::before {
    content: "";
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255, 255, 255, 0.3) 0%,
        transparent 50%
    );
    border-radius: 50%;
}
.app-logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.dedra-icon {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.dedra-logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #ff6b6b 0%, #ee5a24 100%);
    position: relative;
}
.dedra-text {
    font-size: 56px;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.dedra-logo::before {
    content: "";
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255, 255, 255, 0.3) 0%,
        transparent 50%
    );
    border-radius: 50%;
}
.opt-icon {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.opt-logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #2ecc71 0%, #27ae60 100%);
    position: relative;
}
.opt-text {
    font-size: 32px;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 1px;
}
.opt-logo::before {
    content: "";
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255, 255, 255, 0.3) 0%,
        transparent 50%
    );
    border-radius: 50%;
}
.icon::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.1) 30%,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    border-radius: 26px;
    pointer-events: none;
    z-index: 3;
}
.tooltip {
    position: absolute;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}
.dock-item:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-3px);
}

/* Game tooltip positioning - under the icon */
.game-item .tooltip {
    bottom: -50px;
    top: auto;
}

.game-item:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(3px);
}
.dock-item:hover .icon {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateZ(10px);
}
.dock-item:active {
    transform: scale(1.1);
}
.dock-item:active .icon {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
@media (min-width: 1200px) {
    .dock {
        padding: 40px;
        border-radius: 35px;
        min-height: 180px;
    }
    .icon {
        width: 140px;
        height: 140px;
        border-radius: 30px;
    }
    .dock-item {
        margin: 0 18px;
    }
    .realize-text,
    .dedra-text {
        font-size: 65px;
    }
    .opt-text {
        font-size: 38px;
    }
    .tooltip {
        bottom: 160px;
        font-size: 18px;
        padding: 12px 20px;
        border-radius: 12px;
    }

    .game-item .tooltip {
        bottom: -55px;
    }
}
@media (max-width: 991px) and (min-width: 768px) {
    .logout-container {
        top: 15px;
        right: 15px;
    }
    .logout-btn {
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 10px;
    }
    .logout-icon {
        width: 16px;
        height: 16px;
    }
    .dock {
        padding: 18px 30px;
        border-radius: 28px;
        min-height: 140px;
    }
    .icon {
        width: 100px;
        height: 100px;
        border-radius: 22px;
    }
    .dock-item {
        margin: 0 12px;
    }
    .realize-text,
    .dedra-text {
        font-size: 46px;
    }
    .opt-text {
        font-size: 26px;
    }
    .tooltip {
        bottom: 120px;
        font-size: 15px;
        padding: 9px 16px;
        border-radius: 9px;
    }

    .game-item .tooltip {
        bottom: -40px;
    }
    .dock-item:hover {
        transform: scale(1.15);
    }
}
@media (max-width: 767px) and (min-width: 576px) {
    .logout-container {
        top: 12px;
        right: 12px;
    }
    .logout-btn {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 8px;
    }
    .logout-icon {
        width: 14px;
        height: 14px;
    }
    .dock {
        padding: 15px 25px;
        border-radius: 24px;
        min-height: 110px;
    }
    .icon {
        width: 80px;
        height: 80px;
        border-radius: 18px;
    }
    .dock-item {
        margin: 0 10px;
    }
    .realize-text,
    .dedra-text {
        font-size: 36px;
    }
    .opt-text {
        font-size: 20px;
    }
    .tooltip {
        bottom: 95px;
        font-size: 14px;
        padding: 8px 14px;
        border-radius: 8px;
    }

    .game-item .tooltip {
        bottom: -35px;
    }
    .dock-item:hover {
        transform: scale(1.12);
    }
}
@media (max-width: 575px) and (min-width: 480px) {
    .logout-container {
        top: 10px;
        right: 10px;
    }
    .logout-btn {
        padding: 6px 10px;
        font-size: 11px;
        border-radius: 6px;
        gap: 6px;
    }
    .logout-icon {
        width: 12px;
        height: 12px;
    }
    .dock {
        padding: 12px 20px;
        border-radius: 20px;
        min-height: 90px;
        flex-direction: column;
    }
    .icon {
        width: 65px;
        height: 65px;
        border-radius: 16px;
    }
    .dock-item {
        margin: 0 8px;
    }
    .realize-text,
    .dedra-text {
        font-size: 28px;
    }
    .opt-text {
        font-size: 16px;
    }
    .tooltip {
        bottom: 78px;
        font-size: 13px;
        padding: 7px 12px;
        border-radius: 7px;
    }

    .game-item .tooltip {
        bottom: -30px;
    }
    .dock-item:hover {
        transform: scale(1.1);
    }
}
@media (max-width: 479px) {
    .logout-container {
        top: 8px;
        right: 8px;
    }
    .logout-btn {
        padding: 5px 8px;
        font-size: 10px;
        border-radius: 5px;
        gap: 4px;
    }
    .logout-icon {
        width: 10px;
        height: 10px;
    }
    .logout-text {
        display: none;
    }
    .logout-btn {
        min-width: 32px;
        justify-content: center;
    }
    .wallpaper {
        padding: 10px;
    }
    .dock {
        padding: 10px 16px;
        border-radius: 18px;
        width: 90vw;
        display: grid;
    }
    .icon {
        width: 55px;
        height: 55px;
        border-radius: 14px;
    }
    .dock-item {
        margin: 0 6px;
    }
    .realize-text,
    .dedra-text {
        font-size: 24px;
    }
    .opt-text {
        font-size: 14px;
        letter-spacing: 0.5px;
    }
    .tooltip {
        bottom: 68px;
        font-size: 12px;
        padding: 6px 10px;
        border-radius: 6px;
    }

    .game-item .tooltip {
        bottom: -28px;
    }
    .dock-item:hover {
        transform: scale(1.08);
    }
    .dock-item:hover + .dock-item,
    .dock-item:has(+ .dock-item:hover) {
        transform: scale(1.02);
    }
}
@media (hover: none) and (pointer: coarse) {
    .dock-item {
        padding: 8px;
        margin: 0 4px;
    }
    .dock-item:hover {
        transform: scale(1.05);
    }
    .dock-item:hover + .dock-item,
    .dock-item:has(+ .dock-item:hover) {
        transform: scale(1);
    }
    .tooltip {
        display: none;
    }
}
@media (max-width: 767px) and (orientation: landscape) {
    .logout-container {
        top: 5px;
        right: 5px;
    }
    .logout-btn {
        padding: 4px 6px;
        font-size: 9px;
        border-radius: 4px;
    }
    .logout-icon {
        width: 8px;
        height: 8px;
    }
    .logout-text {
        display: none;
    }
    .logout-btn {
        min-width: 24px;
        justify-content: center;
    }
    .wallpaper {
        align-items: center;
        padding: 5px;
    }
    .dock {
        min-height: 65px;
        padding: 8px 15px;
    }
    .icon {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }
    .realize-text,
    .dedra-text {
        font-size: 22px;
    }
    .opt-text {
        font-size: 12px;
    }
    .tooltip {
        bottom: 58px;
        font-size: 11px;
        padding: 5px 8px;
    }

    .game-item .tooltip {
        bottom: -25px;
    }
}
.realize-icon {
    border-color: #f5da5b;
}
.realize-logo {
    background-image: url(/img/realize-logo.png);
    background-size: cover;
}
.dedra-icon {
    border-color: #fafafa;
}
.dedra-logo {
    background-image: url(../img/dedra-team.png);
    background-size: cover;
    background-color: #fff;
}
.at-icon {
    border-color: #000;
}
.at-logo {
    background-image: url(/img/artisans-tale.png);
    background-size: cover;
}
.opt-logo {
    background-image: url(/img/opt-logo.png);
    background-size: cover;
    background-position: center;
}

/* Games dock styles */
.games-dock {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 25px 35px 35px 35px;
    min-height: 200px;
}

.games-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin-bottom: 10px;
}

.back-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.team-name {
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.games-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.game-item {
    margin: 0 10px;
}

.game-item .icon {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    background-size: cover;
    background-position: center;
}

.game-text {
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0.5px;
}

/* Game-specific styles */
.utrs-icon {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.utrs-logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(/uploads/games/utrs/icon-logo/Community_Icon.png);
    background-size: cover;
    background-position: center;
    position: relative;
}

.future-game-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.future-game-logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(/img/jobo.png);
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Responsive adjustments for games dock */
@media (min-width: 1200px) {
    .games-dock {
        padding: 30px 40px 40px 40px;
        min-height: 220px;
    }

    .game-item .icon {
        width: 120px;
        height: 120px;
        border-radius: 26px;
    }

    .team-name {
        font-size: 20px;
    }

    .back-btn {
        padding: 12px 24px;
        font-size: 16px;
    }

    .game-text {
        font-size: 28px;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .games-dock {
        padding: 20px 30px 30px 30px;
        min-height: 160px;
    }

    .game-item .icon {
        width: 80px;
        height: 80px;
        border-radius: 18px;
    }

    .team-name {
        font-size: 16px;
    }

    .back-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .game-text {
        font-size: 20px;
    }
}

@media (max-width: 767px) and (min-width: 576px) {
    .games-dock {
        padding: 18px 25px 25px 25px;
        min-height: 130px;
    }

    .game-item .icon {
        width: 65px;
        height: 65px;
        border-radius: 16px;
    }

    .team-name {
        font-size: 14px;
    }

    .back-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .game-text {
        font-size: 16px;
    }
}

@media (max-width: 575px) {
    .games-dock {
        padding: 15px 20px 20px 20px;
        min-height: 110px;
        width: 90vw;
    }

    .games-header {
        flex-direction: column;
        gap: 10px;
    }

    .game-item .icon {
        width: 55px;
        height: 55px;
        border-radius: 14px;
    }

    .team-name {
        font-size: 13px;
    }

    .back-btn {
        padding: 5px 10px;
        font-size: 11px;
    }

    .game-text {
        font-size: 14px;
    }
}
