@-ms-viewport {
    user-zoom: fixed;
    max-zoom: 1;
    min-zoom: 1;
}

@font-face {
    font-family: 'Sofia';
    src: url('fonts/SofiaSansSemiCondensed-VariableFont_wght.ttf') format('truetype');
	font-style: normal;
}

@font-face {
    font-family: 'Sofia';
    src: url('fonts/SofiaSansSemiCondensed-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
	font-style: italic;
}

body:not(.premium) .premiumContent {
    color: #ffcc00;
    opacity: 0.5;
}

.strokeText {
    text-shadow:
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000,
         2px  2px 0 #000;
}

.themedUIArea {
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(24px) saturate(4);
    border-radius: 12px;
    border: 1px solid #000000;
    pointer-events: initial;
}




html {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

html, body {
    height: 100%;
    width: 100%;
	margin: 0px;
	padding: 0px;
    overflow: hidden;
    background-color: #000000;
    scrollbar-width: thin;
    scrollbar-color: #444 rgba(0, 0, 0, 0.2); /* Thumb color, then Track color */
    /*scrollbar-gutter: stable;*/
}

/* 1. The container (the track) */
::-webkit-scrollbar {
    width: 8px;     /* Keep it slim */
}

/* 2. The background of the scrollbar area */
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2); /* Semi-transparent so it's subtle */
    border-radius: 10px;
}

/* 3. The actual draggable handle */
::-webkit-scrollbar-thumb {
    background: #444; /* A dark grey that matches your UI */
    border-radius: 10px;
    border: 2px solid transparent; /* Creates a "padding" effect around the thumb */
    background-clip: content-box;
}

/* 4. Hover effect to make it feel interactive */
::-webkit-scrollbar-thumb:hover {
    background: #666; /* Lighten up slightly when the user interacts */
}

#baseAppArea {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: 1fr auto;
    overflow: hidden;
}

#appArea {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.titleShowing #appArea {
    background-image: url(images/background.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#scrollHolder, #wrapper {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
}

.titleShowing #scrollHolder {
    display: none;
}

#wrapper {
    display: grid;
    grid-template-rows: 1fr auto;
    overflow: hidden;
    font-family: 'Sofia', sans-serif;
    pointer-events: none;
}

#titleScreen {
    display: none;
    color: #ffffff;
    padding: 48px;
    width: calc(100% - 96px);
    height: calc(100% - 96px);
    overflow: hidden;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto 1fr auto auto;
    gap: 12px;
    pointer-events: initial;
    font-weight: 800;
    transition: 0.2s;
    background-color: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
}

.titleShowing #titleScreen {
    display: grid;
}

#imTitleLogo {
    grid-row: 1;
    grid-column: 1;
    width: 75%;
    max-width: 620px;
    height: auto;
}

#titleTopRightArea {
    grid-row: 1;
    grid-column: 3;
    text-align: right;
}

.titleAccountHolder {
    cursor: pointer;
}

.titleOnlinePlayers {
    opacity: 0.75;
    font-size: 14px;
}

.titleAccountSignInHeader {
    font-size: 20px;
    margin-right: 32px;
    cursor: pointer
}

.titleAccountSignInInfo {
    font-size: 14px;
    opacity: 0.75;
    font-style: italic;
    font-weight: 500;
    cursor: pointer
}

#titleScreenColonyInfo {
    grid-column: 1 / span 3;
    grid-row: 2;
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    padding: 12px 5% 0px 5%;
}

/*
.titleScreenColonyScreenshot {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 8px;
}
*/
#titleScreenColonyMetaHolder {
    display: grid;
    grid-template-rows: 1fr auto;
    overflow: hidden;
    height: 100%;
    width: 100%;
    max-width: 640px;
    margin: 0px auto;
    justify-content: center;
}

.titleScreenColonyMetaInfo {
    align-content: center;
}

.titleScreenColonyHeader {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0px 12px;
    align-items: center;
}

.titleScreenColonyWorldIcon {
    grid-row: 1 / span 2;
    width: 64px;
    height: 64px;
}

.titleScreenColonyTitle {
    font-size: 28px;
    font-weight: 600;
}

.titleScreenColonySector {
    font-size: 18px;
    opacity: 0.75;
}

.titleScreenColonyStatsGrid {
    display: grid;
    grid-template-columns: auto 1fr;
    margin-top: 24px;
}

.titleScreenColonyStatLine {
    display: contents;
}

.titleScreenColonyStatValue {
    text-align: right;
    opacity: 0.75;
}

.titleScreenColonyActionButtons {
    display: flex;
    gap: 0px 32px;
    justify-content: center;
}

#titleScreenOptions {
    display: flex;
    gap: 0px 32px;
    grid-column: 1 / span 3;
    grid-row: 3;
    justify-content: center;
    padding: 12px;
}

.titleMenuOption {
    cursor: pointer;
    font-size: 24px;
    transition: 0.2s;
}

#titleScreen {
    .adlGamepadSelectable:hover, .adlGamepadSelectable.gamepadHighlighted {
        color: var(--adl-theme-color);
        filter: drop-shadow(0px 0px 6px var(--adl-theme-color));
    }

    .adlGamepadSelectable:active {
        transform: scale(0.95);
        opacity: 0.8;
    }
}



#titleScreenFooter {
    grid-column: 1;
    grid-row: 4;
    align-content: end;
}

#titleFooterVersionInfo {
    opacity: 0.5;
    font-size: 14px;
    cursor: pointer;
}

#titleFooterCopyrightArea {
    cursor: pointer;
}

#titleScreenLeaderboards {
    grid-column: 3;
    grid-row: 4;
    align-content: end;
}

.titleScreenLeaderboardsHeader {
    font-size: 14px;
    opacity: 0.75;
    margin-bottom: 8px;
}

.titleScreenColonyCards {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 0px 8px;
}

.titleScreenColonyCard {
    display: contents;
}

.titleScreenColonyCardPosition {
    font-weight: 400;
    opacity: 0.75;
}

.titleScreenColonyCardName {
    cursor: pointer;
}

.titleScreenColonyCardTrophy {
    font-family: fluent;
    font-weight: 400;
}

.titleScreenColonyCardTrophyCount {
    text-align: right;
}

#playArea {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    display: none;
}

.playMode #playArea {
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

#playAreaTopBar {
    grid-row: 1;
    grid-column: 1 / span 2;
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0px;
    padding: 8px 12px;
    padding-left: calc(12px + env(safe-area-inset-left));
    padding-right: calc(12px + env(safe-area-inset-right));
    padding-top: calc(8px + env(safe-area-inset-top));
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
}

#playAreaTopBarColonyName {
    grid-row: 1;
    grid-column: 1;
    font-weight: 600;
}

#playAreaTopBarDistrictName {
    grid-row: 2;
    grid-column: 1;
    opacity: 0.5;
}

#vitalsHolder {
    grid-row: 1;
    grid-column: 3;
    display: grid;
    grid-auto-flow: column;
    display: flex;
    margin-left: auto;
    font-size: 14px;
}

#utilitiesHolder {
    grid-row: 2;
    grid-column: 3;
    display: grid;
    grid-auto-flow: column;
    display: flex;
    margin-left: auto;
    font-size: 14px;
}

#playAreaMainArea {
    grid-row: 2;
    grid-column: 1;
    margin-left: 8px;
    margin-left: calc(8px + env(safe-area-inset-left));
    position: relative;
    display: grid;
    grid-template-rows: 1fr auto;
    overflow: hidden;
}

#playAreaMainAreaInner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

#playGamepadReceptical {
    display: none;
}

.inputMethodgamepad #playGamepadReceptical {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: 3px solid;
    border-color: #02ec73;
    border-radius: 50%;
    height: 32px;
    width: 32px;
    opacity: 0.6;
}

#chatReadoutHolder {
    align-content: end;
    overflow: hidden;
}

#questReadoutHolder {
    text-align: right;
}


#miniHoverInfoHolder {
    position: absolute;
    bottom: 0px;
    right: 0px;
    padding: 8px;
    display: grid;
    grid-auto-flow: column;
    font-size: 14px;
    pointer-events: none;
    align-items: center;
    gap: 12px;
}

.miniHoverInfoButton {
    cursor: pointer;
    pointer-events: initial;
    height: 20px;
    width: 20px;
}

#hudPopupsHolder {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

#playAreaSidebar {
    grid-row: 2;
    grid-column: 2;
    margin-right: 8px;
    margin-right: calc(8px + env(safe-area-inset-right));
    display: none;
}

.buildMenuOpen #playAreaSidebar {
    display: grid;
    width: 280px;
    overflow: hidden;
    grid-template-rows: auto auto auto 1fr auto;
}

#sidebarRadar {
    border-radius: 12px;
    border: 1px solid #000000;
    background-color: #000000;
    height: 200px;
    width: 256px;
    margin: 12px auto 0px auto;
    position: relative;
}

#radarCanvas {
    width: 100%;
    height: 100%;
}

#sidebarButtons {
    display: grid;
    grid-auto-flow: column;
    margin: 12px 0px;
}

.sidebarButton {
    cursor: pointer;
    height: 28px;
    width: 28px;
    display: block;
    margin: 0px auto;
}

#sidebarDropdownHolder {
    margin-bottom: 12px;
}

#sidebarBuildCategories {
    width: calc(100% - 24px);
    margin: 0px auto;
    display: block;
    font-size: 16px;
    padding: 6px;
    border-radius: 8px;
    background-color: var(--transBG);
    color: #ffffff;
    border: 1px solid #000000;
}

#sidebarListingHolder {
    overflow: auto;
    padding: 0px 12px;
}

#sidebarListing {
    /*overflow: auto;*/
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    
}

.buildItem {
    height: 64px;
    border-radius: 8px;
    background-color: var(--transBG);
    border: 1px solid #000000;
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    justify-content: center;
}

.buildItem.cantAfford {
    opacity: 0.25;
    cursor: default;
    background-color: rgba(255, 0, 0, 0.75);
    border: 1px solid #ff0000;
}

.buildItemIcon {
    overflow: hidden;
    height: 90%;
    width: auto;
}

.buildItemCount {
    position: absolute;
    top: 0px;
    right: 0px;
    padding: 4px;
    width: calc(100% - 8px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    text-align: right;
    opacity: 0.6;
}

.buildItemTitle {
    position: absolute;
    bottom: 0px;
    left: 0px;
    padding: 4px;
    width: calc(100% - 8px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
}

#iptSidebarFilter {
    margin: 12px;
    width: calc(100% - 42px);
    background-color: rgba(0, 0, 0, 0.25);
}

#playAreaBottomBar {
    grid-row: 3;
    grid-column: 1 / span 2;
    border-bottom: none;
    border-left: none;
    border-right: none;
    border-radius: 0px;
    padding: 0px;
    padding-left: calc(8px + env(safe-area-inset-left));
    padding-right: calc(8px + env(safe-area-inset-right));
    display: grid;
    grid-template-columns: auto auto 1fr auto auto;
    gap: 12px;
    align-items: center;
}

.premium #playAreaBottomBar {
    padding-bottom: env(safe-area-inset-bottom);
}

.playScreenBottomBarBtn {
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: 0.2s;
    padding: 8px 0px;
}

.playScreenBottomBarBtn:active {
    transform: scale(0.9);
    opacity: 0.8;
}

#playScreenBottomBarMiddle {
    display: grid;
    height: 100%;
    width: 100%;
    grid-template-rows: 1fr 1fr;
    font-size: 14px;
    overflow: hidden;
}

#marqueeResourceTicker {
    align-items: end;
}

.marqueeDiv {
    width: 100%;
    height: 24px;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    position: relative;
    display: flex;
}

.tickerItem, .utilityReadout {
    position: absolute;
    padding: 0px 12px;
    display: grid;
    grid-auto-flow: column;
    grid-gap: 6px;
    align-items: center;
    height: 100%;
    align-content: center;
}

.tickerItemText {
    align-self: center;
}

.utilityReadout {
    position: relative;
}

.tickerItem.withCallback {
    cursor: pointer;
}

.tickerItem.withCallback:hover {
    text-decoration: underline;
}

.tickerItemIcon, .utilityIcon {
    height: 20px;
    width: 20px;
}

.chatCard {
    max-width: 500px;
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 0px 8px;
    margin-top: 8px;
}

.chatCardIcon {
    width: 18px;
    height: 18px;
    border-radius: 9px;
}

.chatCardSender {
    font-size: 14px;
    opacity: 0.75;
    cursor: pointer;
    font-weight: 600;
    pointer-events: initial;
    transition: 0.2s;
}

.chatCardSender:hover {
    text-decoration: underline;
    opacity: 1;
}

.chatCardMessage {
    grid-row: 2;
    grid-column: 2 / span 2;
    font-weight: 900;
}

#popupChat {
    display: none;
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    max-width: 90%;
}

.popupChatOpen #popupChat {
    display: block;
}

#chatSidebar {
    grid-row: 1;
    grid-column: 2;
    display: none;
    width: 0px;
    overflow: hidden;
    transition: 0.2s;
}

.chatOpen #chatSidebar {
    display: grid;
    background-color: var(--transBG);
    border: 1px solid var(--borderColor);
    border-radius: var(--commonRadius);
    margin: 12px;
    margin-right: calc(12px + env(safe-area-inset-right));
    margin-top: calc(12px + env(safe-area-inset-top));
    width: 280px;
    grid-template-rows: 1fr auto;
}

.premium.chatOpen #chatSidebar {
    margin-bottom: calc(12px + env(safe-area-inset-bottom));
}

#chatSidebarListing {
    overflow: auto;
}

#chatSidebarInputArea {
    padding: 12px;
}

#chatSidebarInput {
    background-color: rgba(0, 0, 0, 0.25);
}

#chatSidebarListing .chatCard {
    margin: 24px 8px 0px 8px;
}

#chatSidebarListing .chatCardSender {
    font-size: 12px;
}

#chatSidebarListing .chatCardMessage {
    font-size: 14px;
    font-weight: 500;
}

#adUnit {
    grid-row: 2;
    grid-column: 1 / span 2;
}

.popupWindow {
    display: none;
}

.popupWindow.open {
    display: grid;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 12px;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    gap: 12px;
    max-height: calc(90% - 24px);
}

.popupWindow input.adl.gamepadHighlighted {
    outline: 2px solid var(--adl-theme-color);
}

.popupWindowTitlebar {
    font-weight: 700;
}

#newGameWindowMainArea {
    overflow: auto;
}

#popupTechTree {
    width: min(96vw, 1320px);
    max-height: calc(95% - 24px);
}

#techTreeWindowMainArea {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 8px;
    min-height: min(72vh, 860px);
}

.techTreeControls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.techTreeControlButton {
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
}

.techTreeZoomReadout {
    min-width: 48px;
    text-align: center;
    font-size: 12px;
    opacity: 0.75;
}

.techTreeViewport {
    position: relative;
    overflow: auto;
    min-height: 420px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: radial-gradient(circle at 12% 14%, rgba(53, 171, 255, 0.18), rgba(9, 17, 26, 0.85) 42%), linear-gradient(160deg, rgba(4, 8, 12, 0.78), rgba(2, 4, 6, 0.96));
}

.techTreeGraph {
    position: relative;
    transform-origin: 0 0;
}

.techTreeSvg {
    position: absolute;
    top: 0px;
    left: 0px;
    pointer-events: none;
}

.techTreeNodes {
    position: absolute;
    top: 0px;
    left: 0px;
}

.techTreeStageGuides {
    position: absolute;
    top: 0px;
    left: 0px;
    pointer-events: none;
}

.techTreeStageSeparator {
    position: absolute;
    width: 228px;
    border-top: 1px dashed rgba(199, 226, 255, 0.45);
}

.techTreeStageLabel {
    position: absolute;
    top: -9px;
    right: 0px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(210, 236, 255, 0.92);
    padding: 1px 6px;
    border-radius: 999px;
    border: 1px solid rgba(148, 198, 255, 0.58);
    background-color: rgba(16, 35, 52, 0.9);
}

.techTreeConnector {
    fill: none;
    stroke: rgba(255, 255, 255, 0.25);
    stroke-width: 2;
}

.techTreeConnectorOptional {
    stroke-dasharray: 6 5;
}

.techTreeConnectorSatisfied {
    stroke: rgba(111, 255, 144, 0.75);
}

.techNode {
    position: absolute;
    width: 228px;
    height: 118px;
    display: grid;
    grid-template-rows: auto minmax(0px, 1fr) auto auto;
    gap: 4px;
    border-radius: 12px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(0, 0, 0, 0.42);
    color: #ffffff;
    overflow: hidden;
}

.techNodeHeader {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: center;
}

.techNodeIcon {
    height: 24px;
    width: 24px;
    border-radius: 4px;
}

.techNodeTitle {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
}

.techNodeDescription {
    font-size: 11px;
    opacity: 0.88;
    line-height: 1.2;
    min-height: 0px;
    overflow: hidden;
}

.techNodeDetails {
    font-size: 10px;
    opacity: 0.85;
    max-height: 24px;
    min-height: 0px;
    overflow: hidden;
}

.techNodeDetail {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.techNodeRequirement {
    color: #ffd86f;
}

.techNodeActions {
    display: flex;
    justify-content: flex-end;
    min-height: 16px;
}

.techNodeStateTag {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
}

.techNodeTagUnlocked {
    color: #2e7d32;
    background-color: rgba(157, 255, 165, 0.82);
}

.techNodeTagLocked {
    color: #ffe0e0;
    background-color: rgba(129, 42, 42, 0.65);
}

.techNodeTagUnaffordable {
    color: #ffe7ca;
    background-color: rgba(131, 83, 24, 0.72);
}

.techNodeResearchButton {
    cursor: pointer;
    border: 1px solid rgba(141, 255, 159, 0.8);
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 10px;
    font-weight: 700;
    color: #d7ffe0;
    background-color: rgba(33, 110, 46, 0.7);
}

.techNodeResearchButton:hover {
    background-color: rgba(55, 163, 73, 0.82);
}

.techNodeUnlocked {
    border-color: rgba(140, 255, 162, 0.75);
    box-shadow: 0px 0px 14px rgba(95, 255, 126, 0.35);
}

.techNodeAvailable {
    border-color: rgba(110, 198, 255, 0.82);
    box-shadow: 0px 0px 14px rgba(82, 175, 255, 0.28);
}

.techNodeUnaffordable {
    border-color: rgba(255, 184, 82, 0.78);
}

.techNodeLocked {
    opacity: 0.68;
}

.techNodePending {
    box-shadow: 0px 0px 14px rgba(255, 238, 126, 0.48);
}

.techTreeEmpty {
    opacity: 0.7;
    font-size: 12px;
}

.popupItemInputOption {
    margin-bottom: 24px;
}

#titleScreenSelGameType {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
}

.titleGameTypeSelItem {
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    opacity: 0.25;
    border: 2px solid #ffffff;
    border-radius: 12px;
    padding: 6px;
    align-content: center;
}

.titleGameTypeSelItemSelected {
    opacity: 1;
    border-color: rgb(93, 240, 95);
    background-color: rgba(93, 240, 95, 0.1);
    color: rgb(93, 240, 95);
    box-shadow: 0px 0px 12px rgba(93, 240, 95, 0.35);
}

.titleGameTypeSelItem:hover, .titleGameTypeSelItem.gamepadHighlighted {
    opacity: 0.75;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0px 0px 12px rgba(255, 255, 255, 0.25);
}

.titleGameTypeSelItemSelected:hover, .titleGameTypeSelItemSelected.gamepadHighlighted {
    opacity: 1;
    background-color: rgba(93, 240, 95, 0.25);
    box-shadow: 0px 0px 12px rgba(93, 240, 95, 0.55);
}

.titleGameTypeSelItem:active {
    transform: scale(0.95);
    opacity: 0.8;
}

.titleGameTypeSelLabel {
    font-size: 13px;
    font-weight: 600;
}

.titleGameTypeSelItemIcon {
    height: 24px;
    width: 24px;
}

.titleAreaDisclaimerItem {
    font-size: 10px;
    opacity: 0.75;
    font-style: italic;
    color: #fb4949;
    margin-top: 6px;
    font-weight: 600;
}

.titleAreaSupplementalItem {
    font-size: 10px;
    opacity: 0.75;
    margin-top: 6px;
    font-weight: 600;
}

.popupIconTitleDescItem {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
    gap: 0px 12px;
    align-items: start;
    cursor: pointer;
    transition: 0.2s;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 12px;
}

.popupIconTitleDescItem:hover, .popupIconTitleDescItem.gamepadHighlighted {
    background-color: rgba(71, 171, 253, 0.4);
    border: 2px solid rgba(71, 171, 253, 1);
    box-shadow: 0px 0px 24px rgba(71, 171, 253, 0.45);
}

.popupIconTitleDescItem:active {
    transform: scale(0.95);
    opacity: 0.8;
}

.popupIconTitleDescItemIcon {
    grid-column: 1;
    grid-row: 1 / span 2;
    height: 32px;
    width: 32px;
    align-self: start;
}

.popupIconTitleDescItemTitle {
    font-weight: 600;
}

.popupIconTitleDescItemDesc {
    font-size: 13px;
    opacity: 0.75;
}

.popupWindowButtonsArea {
    text-align: right;
}

.popupWindowButton {
    display: inline-block;
    margin-left: 4px;
    border: 2px solid rgba(71, 171, 253, 0.75);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    background-color: rgba(71, 171, 253, 0.1);
    color: rgb(71, 171, 253);
    transition: 0.2s;
    cursor: pointer;
}

.popupWindowButton:active {
    transform: scale(0.95);
    opacity: 0.8;
}

.popupWindowButton:hover, .popupWindowButton.gamepadHighlighted {
    background-color: rgba(71, 171, 253, 0.4);
    border: 2px solid rgba(71, 171, 253, 1);
    box-shadow: 0px 0px 24px rgba(71, 171, 253, 0.45);
}

.popupWindowButtonNegative {
    border-color: rgba(255, 71, 71, 0.75);
    background-color: rgba(255, 71, 71, 0.1);
    color: rgb(255, 71, 71);
}

.popupWindowButtonNegative:hover, .popupWindowButtonNegative.gamepadHighlighted {
    background-color: rgba(255, 71, 71, 0.4);
    border-color: rgba(255, 71, 71, 1);
    box-shadow: 0px 0px 24px rgba(255, 71, 71, 0.45);
}

.popupItemInputOptionLabel {
    font-size: 14px;
    margin-bottom: 6px;
}

#popupBackdrop {
    display: none;
}

.popupWindowOpen #popupBackdrop {
    display: block;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px) saturate(0.5);
}

#huhPopupObjectInfo {
    display: none;
}

.hasSelectedObject #huhPopupObjectInfo {
    display: grid;
    position: absolute;
    bottom: 0px;
    left: 0px;
    padding: 12px;
    min-width: 180px;
    gap: 12px;
}

#hudPopupObjectInfoName {
    font-weight: 600;
    font-size: 14px;
}

#hudPopupObjectInfoData {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
}

.hudPopupObjectInfoDataRow {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: center;
}

.hudPopupObjectInfoDataIcon {
    height: 24px;
    width: 24px;
}

.hudPopupObjectInfoDataBarHolder {
    position: relative;
    height: 18px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #000000;
}

.hudPopupObjectInfoDataBar {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 0%;
}

.hudPopupObjectInfoDataBarOverlay {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.14) 24%, rgba(255, 255, 255, 0.04) 42%, rgba(255, 255, 255, 0) 58%);
}

.hudPopupObjectInfoDataBarLabel {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.hudPopupObjectInfoOptionsHolder {
    display: grid;
    gap: 12px;
    grid-auto-flow: column;
    align-items: center;
    justify-content: center;
}

.popupOption {
    cursor: pointer;
    transition: 0.2s;
    display: grid;
}

.popupOption.gamepadHighlighted {
    color: var(--adl-theme-color);
    filter: drop-shadow(0px 0px 6px var(--adl-theme-color));
    transform: scale(1.1);
}

.popupOption:active {
    transform: scale(0.9);
    opacity: 0.8;
}

.popupOptionIcon {
    height: 28px;
    width: 28px;
}

#buildConfirmHolder {
    display: none;
}

.buildConfirmShowing #buildConfirmHolder {
    display: grid;
    padding: 12px;
    margin-top: 8px;
    gap: 8px;
}

#buildConfirmTopRow, #buildConfirmBottomRow {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
}

#buildConfirmTopRowOptions, #buildConfirmBottomRowOptions {
    display: grid;
    grid-auto-flow: column;
    gap: 12px;
}

.buildConfirmOption {
    height: 22px;
    width: 22px;
    cursor: pointer;
    transition: 0.2s;
}

#buildConfirmCosts {
    display: flex;
    gap: 12px;
}

.buildConfirmCostCard {
    display: inline-grid;
    grid-template-columns: auto auto;
    gap: 6px;
    align-items: center;
}

.buildConfirmCostCard.insufficient {
    color: #ff4949;
}

.buildConfirmCostIcon {
    height: 20px;
    width: 20px;
}

#buildOptionPopupInfo {
    display: none;
}

.hoveringBuildCard #buildOptionPopupInfo {
    display: block;
    position: absolute;
    left: 0px;
    padding: 12px;
    top: 0px;
    width: calc(100% - 24px);
    display: grid;
    gap: 4px;
}

#buildOptionPopupInfoCost {
    display: flex;
    gap: 12px;
}

#buildOptionPopupInfoDescription {
    font-size: 14px;
}

@media (orientation: portrait) {
    body.titleShowing {
        background-image: url('images/background-port.webp');
    }
}