@font-face {
    font-family: "gamefont";
    src: url(./fonts/font.ttf);
}

html,
body{
    padding: 0px;
    margin: 0px;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

html{
    cursor: url("./images/cursor/hand.png"), auto;
    font-family: "gamefont", serif;
    font-size: 16px;
    background-color: #222;
}

#renderCanvas {
    width: 100%;
    height: 100%;
    touch-action: none;
    
} 

#loadingScreen {
    width: 100%;
    height: 100%;
    color: white;
    text-align: center;
    background-color: #14101a;
    z-index: 9999;
    position: relative;
}

#loadingLogo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    animation: bw-pulse 2.4s ease-in-out infinite;
}

#loadingBrand {
    margin-top: 14px;
    color: #e9b873;
    font-size: 34px;
    font-weight: bold;
    letter-spacing: 3px;
}

@keyframes bw-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.92; }
}

.disable-selection {
    -moz-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    user-select: none;
    outline: none;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0); /* mobile webkit */
}

.vertical-center {
    margin: 0 auto;
    position: absolute;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 100%;
  }

/* ------------------------------------------------------------------ */
/* TRENCHORIA — mobile touch controls                                   */
/* ------------------------------------------------------------------ */
.bw-joy-base {
    position: fixed;
    left: 26px;
    bottom: 26px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(20, 16, 26, 0.35);
    border: 2px solid rgba(233, 184, 115, 0.5);
    z-index: 50;
    touch-action: none;
    display: none; /* shown on touch devices via media query below */
}
.bw-joy-knob {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 56px;
    height: 56px;
    margin-left: -28px;
    margin-top: -28px;
    border-radius: 50%;
    background: rgba(233, 184, 115, 0.85);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.04s linear;
}
.bw-action-btn {
    position: fixed;
    right: 30px;
    bottom: 40px;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(233, 184, 115, 0.85);
    color: #1a1620;
    font-size: 38px;
    line-height: 84px;
    text-align: center;
    z-index: 50;
    touch-action: none;
    user-select: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    display: none;
}
/* show the controls only on coarse-pointer (touch) devices */
@media (pointer: coarse) {
    .bw-joy-base,
    .bw-action-btn {
        display: block;
    }
}

/* ------------------------------------------------------------------ */
/* TRENCHORIA — rotate-to-landscape overlay (phones in portrait)        */
/* ------------------------------------------------------------------ */
#rotateOverlay {
    display: none;
}
@media (pointer: coarse) and (orientation: portrait) {
    #rotateOverlay {
        display: flex;
        position: fixed;
        inset: 0;
        z-index: 9998;
        background: #14101a;
        color: #e9b873;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    /* hide touch controls while the rotate prompt is up */
    .bw-joy-base,
    .bw-action-btn {
        display: none !important;
    }
}
.rotate-icon {
    font-size: 64px;
    margin-bottom: 16px;
}
.rotate-title {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.rotate-text {
    font-size: 15px;
    color: #b8b3c2;
    max-width: 280px;
    margin: 0 auto;
}