@font-face {
    font-family: 'Rodin Pro';
    src: local('FOT-Rodin Pro DB'), local('FOT-Rodin Pro B'), local('RodinPro-Bold');
}

body, html {
    margin: 0; padding: 0; width: 100vw; height: 100vh;
    overflow: hidden; background-color: #000;
    font-family: "Rodin Pro", "Jost", sans-serif;
    font-weight: 900;
}

#game-container {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1920px;
    height: 1080px;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    overflow: hidden;
}

#loading-screen {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #000;
    z-index: 99999;
    overflow: hidden;
    transition: opacity 0.5s ease;
}

.loading-wheel {
    position: absolute;
    bottom: -800px;
    left: -800px;
    width: 1600px;
    height: 1600px;
    animation: spin 15s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

#wip-text {
    position: absolute; left: 0; top: 0;
    color: rgba(136, 136, 136, 0.4); 
    font-size: 90px;
    letter-spacing: -4px;
    z-index: 3500;
    pointer-events: none;
    white-space: nowrap; writing-mode: vertical-rl;
    text-transform: uppercase; line-height: 0.7; margin: 0;
    display: none;
}

#fullscreen-prompt {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #000;
    z-index: 6000;
    display: flex; align-items: center; justify-content: center;
}

#fullscreen-prompt img {
    width: 1344px; 
    height: auto;
}

.prompt-actions {
    position: absolute;
    bottom: 90px;
    display: flex;
    gap: 18px;
}

.prompt-actions button,
.mobile-nav button {
    border: 1px solid #7de6fd;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #7de6fd;
    cursor: pointer;
    font: inherit;
    letter-spacing: 0.08em;
    padding: 15px 22px;
}

.prompt-actions button:hover,
.prompt-actions button:focus-visible,
.mobile-nav button:hover,
.mobile-nav button:focus-visible {
    background: #7de6fd;
    color: #000;
}

#continue-button { color: #fff; border-color: #fff; }

#mobile-ui { display: none; }

.slide-fade-out { animation: slideFadeRight 0.4s ease-out forwards; }
@keyframes slideFadeRight {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(48px); opacity: 0; }
}

#entry-screen {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 3000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.5s ease;
}

#entry-screen.fade-in {
    opacity: 1; pointer-events: auto;
}

#entry-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('background.png') no-repeat center center;
    background-size: cover;
    filter: blur(8px) brightness(1);
    transition: filter 0.5s ease, brightness 0.5s ease;
    z-index: -1;
    transform: scale(1.1);
}

#entry-screen:has(#entry-btn-inner:hover) #entry-bg {
    filter: blur(15px) brightness(0.6);
}

#blue-wipe {
    position: absolute; top: -120%; left: 0; width: 100%; height: 120%;
    background: linear-gradient(180deg, #16cffb 0%, #77fefc 50%, #16cffb 100%);
    z-index: 4000; pointer-events: none;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}
.wipe-active { animation: slideDown 0.8s ease-in forwards; }
@keyframes slideDown { 0% { top: -120%; } 100% { top: 120%; } }

#video-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.main-video { width: 100%; height: 100%; object-fit: cover; position: absolute; display: none; z-index: 1; }

.btn-wrapper { 
    position: absolute; 
    transform: translate(-50%, -50%) scale(0); 
    z-index: 100; 
    display: none; 
}
        
#about-wrapper { left: 960px; top: 430px; }
#updates-wrapper { left: 960px; top: 504px; }
#btn1-wrapper  { left: 960px; top: 579px; }
#btn2-wrapper  { left: 960px; top: 654px; }
#btn3-wrapper  { left: 937px; top: 645px; }
#btn4-wrapper  { left: 931px; top: 720px; }
#btn5-wrapper  { left: 939px; top: 795px; }
#btn6-wrapper  { left: 929px; top: 870px; }
        
#global-back-wrapper { left: 1750px; top: 980px; }

.p3-btn-inner {
    position: relative;
    width: 430px;
    height: 149px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: "Rodin Pro", "Jost", sans-serif;
}

.grayscale-btn {
    filter: grayscale(100%);
}
        
#entry-btn-inner { transform: rotate(-5deg); }
#about-button { transform: rotate(-9deg); }
#updates-button { transform: rotate(-14deg); }
#btn1-button { transform: rotate(-6deg); }
#btn2-button { transform: rotate(-11deg); }
#btn3-button { transform: rotate(-8deg); }
#btn4-button { transform: rotate(-13deg); }
#btn5-button { transform: rotate(-7deg); }
#btn6-button { transform: rotate(-12deg); }
#global-back { transform: rotate(-10deg); }

.p3-btn-inner:hover { transform: scale(1.15) rotate(-18deg) !important; }
.p3-btn-inner:hover .text-base { color: #000000 !important; }

.text-base, .text-inverted {
    position: absolute;
    font-size: 76px;
    font-style: italic;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.14em;
    margin: 0;
    white-space: nowrap;
    pointer-events: none;
}

#btn1-button .text-base,
#btn1-button .text-inverted,
#btn2-button .text-base,
#btn2-button .text-inverted {
    font-size: 64px;
}

#entry-btn-inner .text-base { color: #16cffb; }
#about-button .text-base { color: #16cffb; opacity: 0.7; } 
#updates-button .text-base { color: #7de6fd; }
#btn1-button .text-base { color: #77fefc; }
#btn2-button .text-base { color: #16cffb; }
#btn3-button .text-base { color: #7de6fd; }
#btn4-button .text-base { color: #77fefc; }
#btn5-button .text-base { color: #16cffb; }
#btn6-button .text-base { color: #7de6fd; }
#global-back .text-base { color: #16cffb; }

.update-text-base {
    position: absolute;
    font-family: "Rodin Pro", "Jost", sans-serif;
    font-style: italic;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.1em;
    margin: 0;
    white-space: nowrap;
    color: #b0b0b0;
    z-index: 10;
}

#update-title-text {
    left: 15px; 
    top: -35px; 
    font-size: 173px; 
}

#update-date-container {
    position: absolute;
    left: 1478px; 
    top: 30px; 
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#update-date-number {
    font-family: "Rodin Pro", "Jost", sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: 130px;
    line-height: 0.75;
    color: #b0b0b0;
    margin: 0;
}

#update-date-month {
    font-family: "Rodin Pro", "Jost", sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: 43px;
    text-transform: uppercase;
    color: #b0b0b0;
    line-height: 1;
    margin: 0;
    display: block;
    text-align: center;
}

#update-arrow-left {
    position: absolute;
    left: 1227px;
    top: -48px;
    transform: scale(0.5);
    transform-origin: center center;
    z-index: 10;
    cursor: pointer;
    pointer-events: auto;
    transition: filter 0.2s, opacity 0.2s;
}

#update-arrow-right {
    position: absolute;
    left: 1653px;
    top: -46px;
    transform: scale(0.5);
    transform-origin: center center;
    z-index: 10;
    cursor: pointer;
    pointer-events: auto;
    transition: filter 0.2s, opacity 0.2s;
}

.disabled-arrow {
    filter: grayscale(100%) brightness(0.4);
    opacity: 0.5;
    pointer-events: none !important;
    cursor: default !important;
}

#update-message-text {
    position: absolute;
    left: 1352px;
    top: 262px;
    color: #7de6fd;
    font-size: 27px;
    font-family: "Rodin Pro", "Jost", sans-serif;
    line-height: 1.4;
    max-width: 432px; 
    text-align: center;
    z-index: 10;
}

#update-message-image {
    position: absolute;
    left: 1350px;
    top: 595px;
    max-width: 432px; 
    transform: scale(0.7);
    transform-origin: top center;
    z-index: 10;
}

.bottom-left-grey-text {
    position: absolute;
    left: 30px;
    bottom: 30px;
    color: #808080;
    font-size: 32px;
    font-family: "Rodin Pro", "Jost", sans-serif;
    z-index: 10;
}

#update-calendar {
    position: absolute;
    left: 1348px;
    top: 650px;
    width: 450px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    z-index: 12;
}

.calendar-day {
    min-height: 58px;
    padding: 8px 4px 6px;
    border: 1px solid rgba(125, 230, 253, 0.28);
    border-radius: 0;
    background: rgba(0, 0, 0, 0.24);
    color: #808080;
    font: inherit;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.calendar-day span,
.calendar-day small {
    display: block;
}

.calendar-day span {
    color: #b0b0b0;
    font-size: 25px;
    line-height: 1;
}

.calendar-day small {
    margin-top: 6px;
    color: #607078;
    font-size: 12px;
    letter-spacing: 0.08em;
}

.calendar-day:hover,
.calendar-day.is-current {
    background: #7de6fd;
    color: #000;
    transform: translateY(-4px);
}

.calendar-day:hover span,
.calendar-day.is-current span,
.calendar-day:hover small,
.calendar-day.is-current small {
    color: #000;
}

.info-panel {
    position: absolute;
    left: 170px;
    top: 255px;
    width: 570px;
    padding: 34px 42px 38px;
    border-left: 5px solid #7de6fd;
    background: rgba(0, 0, 0, 0.38);
    color: #b0b0b0;
    z-index: 10;
}

.contact-panel { left: 1240px; top: 250px; width: 420px; }
.gear-panel { left: 145px; top: 600px; width: 760px; }

.panel-kicker {
    color: #7de6fd;
    font-size: 18px;
    letter-spacing: 0.16em;
}

.info-panel h1 {
    margin: 18px 0 16px;
    color: #fff;
    font-size: 66px;
    font-style: italic;
    line-height: 0.95;
    letter-spacing: -0.08em;
}

.info-panel p {
    max-width: 540px;
    margin: 0 0 22px;
    color: #b0b0b0;
    font-size: 25px;
    line-height: 1.35;
}

.panel-note {
    color: #607078 !important;
    font-size: 15px !important;
    letter-spacing: 0.14em;
}

.panel-link {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px solid rgba(125, 230, 253, 0.35);
    color: #7de6fd;
    font-size: 20px;
    text-decoration: none;
}

.panel-link:hover { color: #fff; }

.gear-list {
    display: grid;
    gap: 11px;
    color: #7de6fd;
    font-size: 19px;
    letter-spacing: 0.05em;
}

.gear-list div { border-top: 1px solid rgba(125, 230, 253, 0.35); padding-top: 11px; }
.gear-list span { display: inline-block; width: 46px; color: #fff; }

@keyframes slideOutL { to { transform: translateX(-58px); opacity: 0; } }
@keyframes slideInR { from { transform: translateX(58px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOutR { to { transform: translateX(58px); opacity: 0; } }
@keyframes slideInL { from { transform: translateX(-58px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

@keyframes imgSlideOutL { to { transform: translateX(-58px) scale(0.7); opacity: 0; } }
@keyframes imgSlideInR { from { transform: translateX(58px) scale(0.7); opacity: 0; } to { transform: translateX(0) scale(0.7); opacity: 1; } }
@keyframes imgSlideOutR { to { transform: translateX(58px) scale(0.7); opacity: 0; } }
@keyframes imgSlideInL { from { transform: translateX(-58px) scale(0.7); opacity: 0; } to { transform: translateX(0) scale(0.7); opacity: 1; } }

.shape-aura, .shape-mask {
    position: absolute;
    width: 120%; height: 120%; 
    left: -10%; top: -10%;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
    opacity: 0;
    clip-path: polygon(50% 50%, 50% 50%, 50% 50%);
    transition: clip-path 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s;
}

.shape-aura { background: #ffb3ff; z-index: 2; }
.shape-mask { background: #ffffff; z-index: 3; }
.text-inverted { color: #ff0000; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%); }

.p3-btn-inner:hover .shape-mask { opacity: 1; clip-path: polygon(90% 30%, 10% 45%, 80% 75%); }
.p3-btn-inner:hover .shape-aura { opacity: 1; clip-path: polygon(92% 28%, 8% 43%, 82% 77%); }

.pop-in-anim { display: block !important; animation: jumpIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
        
@keyframes jumpIn {
    0% { transform: translate(-50%, -50%) scale(0); }
    70% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

@media (max-width: 700px) {
    html, body {
        width: 100%;
        min-height: 100%;
        overflow: auto;
        background: #05090a;
    }

    #game-container {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        min-height: 100svh;
        height: auto;
        transform: none;
        overflow: hidden;
    }

    #video-container {
        position: fixed;
        opacity: 0.25;
    }

    #main-nav, #wip-text, #update-ui, #about-ui, #test1-ui, #test2-ui, #global-back-ui {
        display: none !important;
    }

    #mobile-ui {
        position: relative;
        z-index: 20;
        display: flex;
        min-height: 100svh;
        box-sizing: border-box;
        flex-direction: column;
        justify-content: center;
        padding: 32px 22px;
    }

    .mobile-heading { margin-bottom: 42px; }
    .mobile-kicker, .mobile-hint {
        color: #7de6fd;
        font-size: 12px;
        letter-spacing: 0.16em;
    }
    .mobile-heading h1 {
        margin: 8px 0 2px;
        color: #fff;
        font-size: clamp(64px, 22vw, 120px);
        font-style: italic;
        line-height: 0.8;
    }
    .mobile-heading p { color: #b0b0b0; font-size: 18px; }
    .mobile-nav { display: grid; gap: 12px; }
    .mobile-nav button { min-height: 54px; text-align: left; }
    .mobile-hint { margin-top: 34px; color: #607078; }

    #fullscreen-prompt { display: none !important; }
    #entry-screen { display: none; }

    body.mobile-screen-open #mobile-ui { display: none; }
    body.mobile-screen-open #global-back-ui { display: block !important; }
    body.mobile-screen-open #global-back-wrapper {
        left: 50% !important;
        top: auto !important;
        bottom: 24px;
    }
    body.mobile-screen-open .info-panel {
        position: relative;
        left: auto;
        top: auto;
        width: auto;
        margin: 24px 18px 100px;
        padding: 24px 22px 28px;
    }
    body.mobile-screen-open .info-panel h1 { font-size: 48px; }
    body.mobile-screen-open .info-panel p { font-size: 18px; }
    body.mobile-screen-open[data-mobile-screen="about"] #about-ui,
    body.mobile-screen-open[data-mobile-screen="test1"] #test1-ui,
    body.mobile-screen-open[data-mobile-screen="test2"] #test2-ui { display: block !important; }
    body.mobile-screen-open[data-mobile-screen="update"] #update-ui {
        display: block !important;
        position: relative;
        min-height: 100svh;
    }
    body.mobile-screen-open #update-title-text {
        position: relative;
        left: auto;
        top: auto;
        padding: 24px 18px 0;
        font-size: 72px;
    }
    body.mobile-screen-open #update-date-container,
    body.mobile-screen-open #update-arrow-left,
    body.mobile-screen-open #update-arrow-right,
    body.mobile-screen-open #update-message-text,
    body.mobile-screen-open #update-message-image,
    body.mobile-screen-open #update-calendar {
        position: relative;
        left: auto;
        top: auto;
        margin: 24px 18px 0;
    }
    body.mobile-screen-open #update-date-container { align-items: flex-start; }
    body.mobile-screen-open #update-message-text { display: block; max-width: none; text-align: left; }
    body.mobile-screen-open #update-calendar { width: auto; margin-bottom: 100px; }
}